loubnabnl HF staff commited on
Commit
c8fcdc5
1 Parent(s): b667ad5

Create readme

Browse files
Files changed (1) hide show
  1. README.md +12 -0
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CodeParrot 🦜 Dataset Cleaned and filtered (train)
2
+
3
+ ## Dataset Description
4
+
5
+ A dataset of Python files from Github. It is a more filtered version of the train split [codeparrot-clean-train](https://huggingface.co/datasets/lvwerra/codeparrot-clean-train) of [codeparrot-clean](https://huggingface.co/datasets/lvwerra/codeparrot-clean#codeparrot-%F0%9F%A6%9C-dataset-cleaned). The additional filters aim at detecting configuration and test files, as well as outlier files that are unlikely to help the model learn code. The first three filters are applied with a probability of 0.7:
6
+
7
+ - files with a mention of "test file" or "configuration file" or similar in the first 5 lines
8
+ - files with high occurence of the keywords "test " or "config"
9
+ - files without a mention of the keywords `def`, `for`, `while` and `class`
10
+ - files that use the assignment operator ```=``` less than 5 times
11
+ - files with ratio between number of characters and number of tokens after tokenization < 1.5
12
+