Datasets:

Modalities:
Text
Languages:
English
ArXiv:
Tags:
code
Libraries:
Datasets
License:
gabeorlanski commited on
Commit
3105f7f
·
1 Parent(s): 27d683f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -55,7 +55,7 @@ BC-TP3 supports:
55
  >>> load_dataset("gabeorlanski/tp3")
56
  DatasetDict({
57
  test: Dataset({
58
- features: ['qid', 'title', 'language', 'text', 'signature_with_docstring', 'signature', 'arguments', 'entry_fn_name', 'entry_cls_name', 'test_code', 'source'],
59
  num_rows: 5920
60
  })
61
  })
@@ -72,9 +72,10 @@ DatasetDict({
72
  - `arguments`: The arguments of the problem.
73
  - `entry_fn_name`: The function's name to use an entry point.
74
  - `entry_cls_name`: The class name to use an entry point.
75
- - `test_code`: The raw testing script used in the language. If you want to use this, replace `PLACEHOLDER_FN_NAME` (and `PLACEHOLDER_CLS_NAME` if needed) with the corresponding entry points. Next, replace `PLACEHOLDER_CODE_BODY` with the postprocessed prediction.
76
  - `source`: The source solution in Python.
77
-
 
 
78
  ## Dataset Creation
79
  See section 2 and section 4.4 of the [BabelCode Paper](https://arxiv.org/abs/2302.01973) to learn more about how the datasets are translated.
80
 
 
55
  >>> load_dataset("gabeorlanski/tp3")
56
  DatasetDict({
57
  test: Dataset({
58
+ features: ['qid', 'title', 'language', 'text', 'signature_with_docstring', 'signature', 'arguments', 'entry_fn_name', 'entry_cls_name', 'test_code', 'source', 'test_list', 'test_case_ids'],
59
  num_rows: 5920
60
  })
61
  })
 
72
  - `arguments`: The arguments of the problem.
73
  - `entry_fn_name`: The function's name to use an entry point.
74
  - `entry_cls_name`: The class name to use an entry point.
 
75
  - `source`: The source solution in Python.
76
+ - `test_code`: The raw testing script used in the language. If you want to use this, replace `PLACEHOLDER_FN_NAME` (and `PLACEHOLDER_CLS_NAME` if needed) with the corresponding entry points. Next, replace `PLACEHOLDER_CODE_BODY` with the postprocessed prediction.
77
+ - `test_list`: The raw json line of the list of tests for the problem. To load them, use `json.loads`
78
+ - `test_case_ids`: The list of test case ids for the problem. These are used to determine if a prediction passes or not.
79
  ## Dataset Creation
80
  See section 2 and section 4.4 of the [BabelCode Paper](https://arxiv.org/abs/2302.01973) to learn more about how the datasets are translated.
81