{"columns":[{"name":"input_ids_0","type":"list<element: int64>"},{"name":"input_ids_1","type":"list<element: int64>"},{"name":"input_ids_2","type":"list<element: int64>"},{"name":"input_ids_3","type":"list<element: int64>"},{"name":"input_ids_4","type":"list<element: int64>"},{"name":"input_ids_5","type":"list<element: int64>"},{"name":"input_ids_6","type":"list<element: int64>"},{"name":"input_ids_7","type":"list<element: int64>"},{"name":"input_ids_8","type":"list<element: int64>"},{"name":"input_ids_9","type":"list<element: int64>"},{"name":"input_ids_10","type":"list<element: int64>"},{"name":"input_ids_11","type":"list<element: int64>"},{"name":"input_ids_12","type":"list<element: int64>"},{"name":"input_ids_13","type":"list<element: int64>"},{"name":"input_ids_14","type":"list<element: int64>"},{"name":"input_ids_15","type":"list<element: int64>"},{"name":"input_ids_16","type":"list<element: int64>"},{"name":"input_ids_17","type":"list<element: int64>"},{"name":"input_ids_18","type":"list<element: int64>"},{"name":"input_ids_19","type":"list<element: int64>"},{"name":"rule_ids","type":"list<element: int64>"}],"n_rows":135714,"rows_kept":4500,"cut":true,"text_format":"parquet-jsonl-2026-10-02","bounds":{"document_bytes":16777216,"package_text_limit_bytes":33554432,"package_text_slack_bytes":1024,"rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096,"vector_min":64,"vector_head_fixed":16,"vector_head_variable":64,"kv_value_chars":1048576,"nesting_max":64,"binary_text":true},"cells_cut":0,"cells_bad_utf8":0,"cells_raw":0,"cells_binary":0,"cells_binary_text":0,"cells_vector":0,"n_row_groups":136,"reader":"pyarrow 23.0.1, python 3.13","created_by":"parquet-cpp-arrow version 17.0.0","schema":{"fields":[{"name":"input_ids_0","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_1","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_2","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_3","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_4","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_5","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_6","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_7","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_8","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_9","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_10","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_11","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_12","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_13","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_14","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_15","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_16","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_17","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_18","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"input_ids_19","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]},{"name":"rule_ids","type":"list<element: int64>","nullable":true,"metadata":null,"children":[{"name":"element","type":"int64","nullable":true,"metadata":null,"children":null}]}],"parquet":"required group field_id=-1 schema {\n  optional group field_id=-1 input_ids_0 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_1 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_2 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_3 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_4 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_5 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_6 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_7 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_8 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_9 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_10 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_11 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_12 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_13 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_14 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_15 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_16 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_17 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_18 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 input_ids_19 (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n  optional group field_id=-1 rule_ids (List) {\n    repeated group field_id=-1 list {\n      optional int64 field_id=-1 element;\n    }\n  }\n}\n"},"kv_metadata":[["ARROW:schema",{"$cut":{"chars":5528,"head":""}}],["huggingface","{\"info\": {\"features\": {\"input_ids_0\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_1\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_2\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_3\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_4\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_5\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_6\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_7\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_8\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_9\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_10\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_11\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_12\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_13\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_14\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_15\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_16\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_17\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_18\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"input_ids_19\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}, \"rule_ids\": {\"feature\": {\"dtype\": \"int64\", \"_type\": \"Value\"}, \"_type\": \"Sequence\"}}}}"]]}
[[1,1,0,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