iNeil77 commited on
Commit
a6b5aa1
·
verified ·
1 Parent(s): b8d8ac1

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - code
4
+ size_categories:
5
+ - 10M<n<100M
6
+ ---
7
+
8
+ This is a filtered version of `bigcode/the-stack-dedup` that subsets for the following language splits:
9
+
10
+ ```python
11
+ [
12
+ 'ada', 'assembly', 'awk', 'c', 'cpp', 'c-sharp', 'clojure', 'common-lisp', 'dart', 'erlang', 'f-sharp',
13
+ 'fortran', 'glsl', 'go', 'haskell', 'isabelle', 'java', 'javascript', 'julia', 'kotlin' , 'llvm', 'markdown',
14
+ 'mathematica', 'pascal', 'perl', 'php', 'powershell', 'python', 'r', 'racket', 'ruby', 'rust', 'scala',
15
+ 'shell', 'solidity', 'sparql', 'sql', 'stan', 'typescript', 'zig'
16
+ ]
17
+ ```
18
+
19
+ Then, it has been filtered via the following steps:
20
+
21
+ 1. For files forked more than 25 times, we retain them if the average line length is less than 120, the maximum line length is less than 300 and the alphanumeric fraction is more than 30%
22
+ 2. For files forked between 15 and 25 times, we retain them if the average line length is less than 90, the maximum line length is less than 150 and the alphanumeric fraction is more than 40%
23
+ 3. For files forked less than 15 times, we retain them if the average line length is less than 80, the maximum line length is less than 120 and the alphanumeric fraction is more than 45%
24
+ 4. The resultant language splits are then capped at 5 million samples
25
+ 5. Finally, an aggressive MinHash deduplication pipeline with a threshold of 0.5 and a shingle size of 20 is applied