KlaudiaTH commited on
Commit
c5d0fec
1 Parent(s): 72cac8f

Converted json files to unix format (CLRF -> LF)

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. dataset_infos.json +1 -1
  3. tedrics-data.py +10 -11
.gitattributes CHANGED
@@ -1,3 +1,4 @@
 
1
  *.7z filter=lfs diff=lfs merge=lfs -text
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
  *.bin filter=lfs diff=lfs merge=lfs -text
 
1
+ *.json text eol=lf
2
  *.7z filter=lfs diff=lfs merge=lfs -text
3
  *.arrow filter=lfs diff=lfs merge=lfs -text
4
  *.bin filter=lfs diff=lfs merge=lfs -text
dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"tasks": {"description": "", "citation": "@misc{,\n title={ },\n author={},\n year={2022}\n}\n", "homepage": "", "license": "CC BY-SA", "features": {"task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "mbpp_task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "licence": {"dtype": "string", "id": null, "_type": "Value"}, "task": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "te_dri_cs_data", "config_name": "tasks", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3486, "num_examples": 20, "dataset_name": "te_dri_cs_data"}}, "download_checksums": {"tedrics_data_tasks.json": {"num_bytes": 5692, "checksum": "d58a1d89204b3529b7182daba3e3fdf0fa184a1127354f73ff2a9e0c404b562d"}}, "download_size": 5692, "post_processing_size": null, "dataset_size": 3486, "size_in_bytes": 9178}, "testcases": {"description": "", "citation": "@misc{,\n title={ },\n author={},\n year={2022}\n}\n", "homepage": "", "license": "CC BY-SA", "features": {"task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "mbpp_task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "task": {"dtype": "string", "id": null, "_type": "Value"}, "test_cases": {"feature": {"test_case_id": {"dtype": "int32", "id": null, "_type": "Value"}, "cot": {"dtype": "string", "id": null, "_type": "Value"}, "input": {"dtype": "string", "id": null, "_type": "Value"}, "output": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "te_dri_cs_data", "config_name": "testcases", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 15460, "num_examples": 15, "dataset_name": "te_dri_cs_data"}, "validation": {"name": "validation", "num_bytes": 4987, "num_examples": 5, "dataset_name": "te_dri_cs_data"}}, "download_checksums": {"tedrics_data_testcases.json": {"num_bytes": 19781, "checksum": "64ed6c8c26cf527627c43499b6727ecc4e51bdab04bc019122b6ff36022fb512"}, "tedrics_data_testcases_val.json": {"num_bytes": 6420, "checksum": "cba90cde39ca5869e56c32eca517b28026ae8da56c2aadc7ff1f4af8b89f13b0"}}, "download_size": 26201, "post_processing_size": null, "dataset_size": 20447, "size_in_bytes": 46648}, "codefunctions": {"description": "", "citation": "@misc{,\n title={ },\n author={},\n year={2022}\n}\n", "homepage": "", "license": "CC BY-SA", "features": {"task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "mbpp_task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "description": {"dtype": "string", "id": null, "_type": "Value"}, "cot": {"dtype": "string", "id": null, "_type": "Value"}, "imports": {"dtype": "string", "id": null, "_type": "Value"}, "function_head": {"dtype": "string", "id": null, "_type": "Value"}, "function_body": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "te_dri_cs_data", "config_name": "codefunctions", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 11301, "num_examples": 15, "dataset_name": "te_dri_cs_data"}, "validation": {"name": "validation", "num_bytes": 3726, "num_examples": 5, "dataset_name": "te_dri_cs_data"}}, "download_checksums": {"tedrics_data_codefunctions.json": {"num_bytes": 13881, "checksum": "582586136d3ec42bcc870885bc46d5d358c54bca89463984b494186b704136e1"}, "tedrics_data_codefunctions_val.json": {"num_bytes": 4592, "checksum": "cc5d7a6d96e7966a14a9bd4cb4b9578e988b32f50072eadafc2c9a0d6b2970be"}}, "download_size": 18473, "post_processing_size": null, "dataset_size": 15027, "size_in_bytes": 33500}}
 
1
+ {"tasks": {"description": "", "citation": "@misc{,\n title={ },\n author={},\n year={2022}\n}\n", "homepage": "", "license": "CC BY-SA", "features": {"task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "mbpp_task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "source": {"dtype": "string", "id": null, "_type": "Value"}, "licence": {"dtype": "string", "id": null, "_type": "Value"}, "task": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "te_dri_cs_data", "config_name": "tasks", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3486, "num_examples": 20, "dataset_name": "te_dri_cs_data"}}, "download_checksums": {"tedrics_data_tasks.json": {"num_bytes": 5569, "checksum": "2dc3c8d13a07a19903b011067d01c14b6a8d6cff2587baa9d1b9bc9d8fd0e92c"}}, "download_size": 5569, "post_processing_size": null, "dataset_size": 3486, "size_in_bytes": 9055}, "testcases": {"description": "", "citation": "@misc{,\n title={ },\n author={},\n year={2022}\n}\n", "homepage": "", "license": "CC BY-SA", "features": {"task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "mbpp_task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "task": {"dtype": "string", "id": null, "_type": "Value"}, "test_cases": {"feature": {"test_case_id": {"dtype": "int32", "id": null, "_type": "Value"}, "cot": {"dtype": "string", "id": null, "_type": "Value"}, "input": {"dtype": "string", "id": null, "_type": "Value"}, "output": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "te_dri_cs_data", "config_name": "testcases", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 15460, "num_examples": 15, "dataset_name": "te_dri_cs_data"}, "validation": {"name": "validation", "num_bytes": 4987, "num_examples": 5, "dataset_name": "te_dri_cs_data"}}, "download_checksums": {"tedrics_data_testcases.json": {"num_bytes": 19405, "checksum": "54ff31cc75706e4e5e73ee9eddac7655372bfd40ba5bbd06b83fce6a908258a0"}, "tedrics_data_testcases_val.json": {"num_bytes": 6294, "checksum": "cc5a152f3dc06bf414cc6b42b157bd83d44a57aa3308b9569ba4dfcb70405849"}}, "download_size": 25699, "post_processing_size": null, "dataset_size": 20447, "size_in_bytes": 46146}, "codefunctions": {"description": "", "citation": "@misc{,\n title={ },\n author={},\n year={2022}\n}\n", "homepage": "", "license": "CC BY-SA", "features": {"task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "mbpp_task_id": {"dtype": "int32", "id": null, "_type": "Value"}, "description": {"dtype": "string", "id": null, "_type": "Value"}, "cot": {"dtype": "string", "id": null, "_type": "Value"}, "imports": {"dtype": "string", "id": null, "_type": "Value"}, "function_head": {"dtype": "string", "id": null, "_type": "Value"}, "function_body": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "te_dri_cs_data", "config_name": "codefunctions", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 11301, "num_examples": 15, "dataset_name": "te_dri_cs_data"}, "validation": {"name": "validation", "num_bytes": 3726, "num_examples": 5, "dataset_name": "te_dri_cs_data"}}, "download_checksums": {"tedrics_data_codefunctions.json": {"num_bytes": 13758, "checksum": "e4f25e11d79ede3d5ef4d282d781f6611f6c3cffbf9507aa831bc74885480d72"}, "tedrics_data_codefunctions_val.json": {"num_bytes": 4550, "checksum": "4366e2b3709ac7207acd6338416d708e490342df3d2038aca5bf2eedfbbe260e"}}, "download_size": 18308, "post_processing_size": null, "dataset_size": 15027, "size_in_bytes": 33335}}
tedrics-data.py CHANGED
@@ -43,7 +43,7 @@ class TeDriCSData(datasets.GeneratorBasedBuilder):
43
  for subset in _SUBSETS
44
  ]
45
 
46
- DEFAULT_CONFIG_NAME = "tasks"
47
 
48
  def _info(self):
49
  if self.config.name == "tasks":
@@ -126,17 +126,16 @@ class TeDriCSData(datasets.GeneratorBasedBuilder):
126
  yield id_, sample
127
  id_ += 1
128
 
129
-
130
  ####Zum Testen der Implementierung
131
- #from datasets import load_dataset
132
- #def main():
133
- #dataset = load_dataset('C:\\Users\\klaud\\TeDriCSProj\\tedrics-data\\tedrics-data.py')
134
- #print(dataset["train"])
135
- #print(dataset["train"][0])
136
- #print(dataset["validation"])
137
- #print(dataset["validation"][0])
138
-
139
- #if __name__ == "__main__":
140
  # main()
141
 
142
  #### Zum Generieren der dataset_infos.json (im Terminal)
 
43
  for subset in _SUBSETS
44
  ]
45
 
46
+ DEFAULT_CONFIG_NAME = "testcases"
47
 
48
  def _info(self):
49
  if self.config.name == "tasks":
 
126
  yield id_, sample
127
  id_ += 1
128
 
 
129
  ####Zum Testen der Implementierung
130
+ # from datasets import load_dataset
131
+ # def main():
132
+ # dataset = load_dataset('C:\\Users\\klaud\\TeDriCSProj\\tedrics-data\\tedrics-data.py')
133
+ # print(dataset["train"])
134
+ # print(dataset["train"][0])
135
+ # print(dataset["validation"])
136
+ # print(dataset["validation"][0])
137
+
138
+ # if __name__ == "__main__":
139
  # main()
140
 
141
  #### Zum Generieren der dataset_infos.json (im Terminal)