KlaudiaTH commited on
Commit
f7a10fb
·
1 Parent(s): 301b108

Changed dataset loading script name

Browse files
dataset_infos.json DELETED
@@ -1 +0,0 @@
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}}
 
 
tedrics_data.py → tedrics-data.py RENAMED
@@ -127,18 +127,19 @@ class TeDriCSData(datasets.GeneratorBasedBuilder):
127
  id_ += 1
128
 
129
 
130
- from datasets import load_dataset
131
-
132
- def main():
133
- # Zum Testen der Implementierung
134
- dataset = load_dataset('C:\\Users\\klaud\\TeDriCSProj\\tedrics-data\\tedrics_data.py')
135
- print(dataset["train"])
136
- print(dataset["train"][0])
137
  #print(dataset["validation"])
138
  #print(dataset["validation"][0])
139
 
140
- # Zum Generieren der dataset_infos.json (im Terminal)
141
- # (hf-gptneox-cpu) PS C:\Users\klaud\TeDriCSProj\tedrics-data> datasets-cli test C:\Users\klaud\TeDriCSProj\tedrics-data\tedrics_data.py --save_infos --all_configs
 
 
 
 
142
 
143
- if __name__ == "__main__":
144
- main()
 
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)
143
+ # (hf-gptneox-cpu) PS C:\Users\klaud\TeDriCSProj\tedrics-data> datasets-cli test C:\Users\klaud\TeDriCSProj\tedrics-data\tedrics-data.py --save_infos --all_configs
144
+
145