shibing624 commited on
Commit
4105ae6
1 Parent(s): e67b706

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +49 -3
README.md CHANGED
@@ -1,3 +1,49 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: python-source-code
3
+
4
+ languages:
5
+ - en
6
+ source_datasets:
7
+ - original
8
+ task_categories:
9
+ - text-generation
10
+ task_ids:
11
+ - language-modeling
12
+ ---
13
+
14
+
15
+ # Python source code
16
+ # Dataset Summary
17
+ Python source code dataset is a collection of 260 Github Python repos, it contains 5.22 million lines code, the zip size 41MB. This dataset can be used in different NLP tasks like language modeling and text generation tasks.
18
+
19
+ # Description
20
+ This dataset contains 5.22M python codes. text file only has code. Here is a sample of dataset:
21
+ ```python
22
+ import math
23
+
24
+
25
+ def res(x, y):
26
+ if 0 not in (x, y):
27
+ # We use the relation x^y = y*log10(x), where 10 is the base.
28
+ return y * math.log10(x)
29
+ else:
30
+ if x == 0: # 0 raised to any number is 0
31
+ return 0
32
+ elif y == 0:
33
+ return 1 # any number raised to 0 is 1
34
+ ```
35
+
36
+
37
+ ### Citation
38
+ ```latex
39
+ @misc{code-autocomplete,
40
+ author = {Xu Ming},
41
+ title = {code-autocomplete: Code AutoComplete with GPT2 model},
42
+ year = {2022},
43
+ publisher = {GitHub},
44
+ journal = {GitHub repository},
45
+ url = {https://github.com/shibing624/code-autocomplete},
46
+ }
47
+ ```
48
+ ### Contributions
49
+ Thanks to [shibing624](https://github.com/shibing624) for adding this dataset.