Update README.md
Browse files
README.md
CHANGED
@@ -47,15 +47,13 @@ DatasetDict({
|
|
47 |
})
|
48 |
})
|
49 |
```
|
50 |
-
```python
|
51 |
-
next(iter(data["train"]))
|
52 |
-
{'text': 'Maximum Prefix Sum possible by merging two given arrays | Python3 implementation of the above approach ; Stores the maximum prefix sum of the array A [ ] ; Traverse the array A [ ] ; Stores the maximum prefix sum of the array B [ ] ; Traverse the array B [ ] ; Driver code',
|
53 |
-
'code': 'def maxPresum ( a , b ) : NEW_LINE INDENT X = max ( a [ 0 ] , 0 ) NEW_LINE for i in range ( 1 , len ( a ) ) : NEW_LINE INDENT a [ i ] += a [ i - 1 ] NEW_LINE X = max ( X , a [ i ] ) NEW_LINE DEDENT Y = max ( b [ 0 ] , 0 ) NEW_LINE for i in range ( 1 , len ( b ) ) : NEW_LINE INDENT b [ i ] += b [ i - 1 ] NEW_LINE Y = max ( Y , b [ i ] ) NEW_LINE DEDENT return X + Y NEW_LINE DEDENT A = [ 2 , - 1 , 4 , - 5 ] NEW_LINE B = [ 4 , - 3 , 12 , 4 , - 3 ] NEW_LINE print ( maxPresum ( A , B ) ) NEW_LINE'}
|
54 |
-
```
|
55 |
-
Note that the data undergo some tokenization hence the additional whitespaces and the use of NEW_LINE instead of `\n` and INDENT instead of `\t`, DEDENT to cancel indentation...
|
56 |
## Data Fields
|
57 |
-
* text: natural language description
|
58 |
-
*
|
|
|
|
|
|
|
|
|
59 |
## Data Splits
|
60 |
Each subset has three splits: train, test and validation.
|
61 |
## Citation Information
|
|
|
47 |
})
|
48 |
})
|
49 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
## Data Fields
|
51 |
+
* text: natural language description.
|
52 |
+
* context: import libraries/global variables.
|
53 |
+
* code: code at program level.
|
54 |
+
* test: test function call.
|
55 |
+
* output: expected output of the function call.
|
56 |
+
* fn_call: name of the function to call.
|
57 |
## Data Splits
|
58 |
Each subset has three splits: train, test and validation.
|
59 |
## Citation Information
|