updated formatting
Browse files
README.md
CHANGED
@@ -55,11 +55,11 @@ The expected data format of the `.json` files is a list of target holes and corr
|
|
55 |
- `question`: surrounding context
|
56 |
- `target`: target hole
|
57 |
- `ctxs`: a list of repo contexts where each item is a dictionary containing
|
58 |
-
|
59 |
-
|
60 |
|
61 |
The actual java sources can be accessed via file system directly. The format is like this `[<data_set_root>/data/<split_name>/<github_user>/<repo_name>/<path/to/every/java/file/in/the/repo>.java]`. When accessed through `Datasets.load_dataset`, the data fields for the `sources` can be specified as below.
|
62 |
-
```
|
63 |
features = datasets.Features({
|
64 |
'file': datasets.Value('string'),
|
65 |
'content': datasets.Value('string')
|
@@ -67,7 +67,7 @@ features = datasets.Features({
|
|
67 |
```
|
68 |
|
69 |
When accessed through `Datasets.load_dataset`, the data fields for the repo contexts can be specified as below.
|
70 |
-
```
|
71 |
features = datasets.Features({
|
72 |
'id': datasets.Value('string'),
|
73 |
'hole_file': datasets.Value('string'),
|
|
|
55 |
- `question`: surrounding context
|
56 |
- `target`: target hole
|
57 |
- `ctxs`: a list of repo contexts where each item is a dictionary containing
|
58 |
+
- `title`: name of the repo context
|
59 |
+
- `text`: content of the repo context
|
60 |
|
61 |
The actual java sources can be accessed via file system directly. The format is like this `[<data_set_root>/data/<split_name>/<github_user>/<repo_name>/<path/to/every/java/file/in/the/repo>.java]`. When accessed through `Datasets.load_dataset`, the data fields for the `sources` can be specified as below.
|
62 |
+
```python
|
63 |
features = datasets.Features({
|
64 |
'file': datasets.Value('string'),
|
65 |
'content': datasets.Value('string')
|
|
|
67 |
```
|
68 |
|
69 |
When accessed through `Datasets.load_dataset`, the data fields for the repo contexts can be specified as below.
|
70 |
+
```python
|
71 |
features = datasets.Features({
|
72 |
'id': datasets.Value('string'),
|
73 |
'hole_file': datasets.Value('string'),
|