Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
parquet
Languages:
English
Size:
10K - 100K
Tags:
code
License:
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,40 @@
|
|
1 |
---
|
2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: apache-2.0
|
3 |
+
task_categories:
|
4 |
+
- text-generation
|
5 |
+
tags:
|
6 |
+
- code
|
7 |
+
size_categories:
|
8 |
+
- 10K<n<100K
|
9 |
---
|
10 |
+
|
11 |
+
# Dataset description
|
12 |
+
This dataset consists of sequences of Python code followed by a a docstring explaining its function. It was constructed by concatenating code and text pairs
|
13 |
+
from this [dataset](https://huggingface.co/datasets/codeparrot/github-jupyter-text-code-pairs) that were originally code and markdown cells in Jupyter Notebooks.
|
14 |
+
|
15 |
+
The content of each example the following:
|
16 |
+
````
|
17 |
+
[CODE]
|
18 |
+
"""
|
19 |
+
Explanation: [TEXT]
|
20 |
+
End of explanation
|
21 |
+
"""
|
22 |
+
[CODE]
|
23 |
+
"""
|
24 |
+
Explanation: [TEXT]
|
25 |
+
End of explanation
|
26 |
+
"""
|
27 |
+
...
|
28 |
+
````
|
29 |
+
# How to use it
|
30 |
+
```python
|
31 |
+
from datasets import load_dataset
|
32 |
+
|
33 |
+
ds = load_dataset("codeparrot/github-jupyter-code-to-text", split="train")
|
34 |
+
````
|
35 |
+
````
|
36 |
+
Dataset({
|
37 |
+
features: ['repo_name', 'path', 'license', 'content'],
|
38 |
+
num_rows: 47452
|
39 |
+
})
|
40 |
+
````
|