Datasets:

Modalities:
Text
Formats:
json
Libraries:
Datasets
pandas
License:
File size: 498 Bytes
8526d60
 
 
 
2f83b36
dfaee1d
8526d60
 
a81f633
 
1
2
3
4
5
6
7
8
9
10
---
license: apache-2.0
---

Based on tomekkorbak/codeparrot-clean-train-v2-pep8 and codeparrot/codeparrot-clean. We create a combined `quality_score` as described below: All open source non-GPL code.
Score is computed as follows:
- min(1.0, int(dat['copies'])/20 + dat['ratio']/10 +  dat['alpha_frac']* 0.1 + 0.5*(1-dat['avg_score'])) if avg_score exists
- min(1.0, int(dat['copies'])/20 + dat['ratio']/10 +  dat['alpha_frac']* 0.1) otherwise

- avg_score is the pep8 score, lower meaning better.