Datasets:

Modalities:
Text
Formats:
json
Libraries:
Datasets
pandas
License:
Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
text
stringlengths
0
1.05M
meta
dict
# $$\ $$\ $$$$$$$$\ $$\ $$\ # $$ | \__| \__$$ __| $$ | $$ | # $$ | $$\ $$$$$$$\ $$ | $$$$$$\ $$$$$$$\ $$ | $$$$$$\ # $$ | $$ |$$ __$$\ $$ | \____$$\ $$ __$$\ $$ |$$ __$$\ # $$ | $$ |$$ | $$ |$$ | $$$$$$$ |$$ | $$ |$$ |$$$$$$$$ |...
{ "repo_name": "georglind/humo", "path": "humo/xactlintable.py", "copies": "1", "size": "5041", "license": "mit", "hash": -1903651756788467700, "line_mean": 23.1196172249, "line_max": 100, "alpha_frac": 0.475104146, "autogenerated": false, "ratio": 3.180441640378549, "config_test": false, "has...
# $$\ $$\ $$\ $$\ # $$ | $$ | $$ | $$ | # $$ | $$ |$$\ $$\ $$$$$$$\ $$ | $$\ $$$$$$\ $$ | # $$$$$$$$ |$$ | $$ |$$ _____|$$ | $$ |$$ __$$\ $$ | # $$ __$$ |$$ | $$ |$$ / $$$$$$ / $$$$$$$$ |$$ | # $$ | $$ |...
{ "repo_name": "georglind/humo", "path": "humo/huckel.py", "copies": "1", "size": "2093", "license": "mit", "hash": -788217211057895300, "line_mean": 28.4788732394, "line_max": 88, "alpha_frac": 0.4567606307, "autogenerated": false, "ratio": 2.757575757575758, "config_test": false, "has_no_key...
from ctypes import * import os import numpy import pkg_resources class SWaligner(object): def __init__(self, soFile=None): # setup.py should put sw.so in the following path. if soFile is None: self.SW_DLL_PATH = os.path.dirname(os.path.abspath(__file__)) + os.path.sep + "sw.so" ...
{ "repo_name": "bnbowman/BarcodeAnalysis", "path": "BarcodeAnalysis/SWaligner.py", "copies": "1", "size": "3293", "license": "mit", "hash": 4638747237572512000, "line_mean": 43.5, "line_max": 97, "alpha_frac": 0.6155481324, "autogenerated": false, "ratio": 4.265544041450777, "config_test": false...
import logging from pbcore.io import BasH5Reader, BaxH5Reader from pbcore.io.FastaIO import * import BarcodeAnalysis.SWaligner as Aligner import numpy as n from pbcore.io.BarcodeH5Reader import LabeledZmw, \ BARCODE_DELIMITER __RC_MAP__ = dict(zip('ACGTacgt-N','TGCAtgca-N')) class BarcodeScorer(object): def...
{ "repo_name": "bnbowman/BarcodeAnalysis", "path": "BarcodeAnalysis/BarcodeScorer.py", "copies": "1", "size": "20768", "license": "mit", "hash": 3103317154239369000, "line_mean": 43.5665236052, "line_max": 117, "alpha_frac": 0.5850346687, "autogenerated": false, "ratio": 3.7026207880192548, "con...
def __init__(self, script, mode=None): self.script = script self.mode = mode self.validateSettings() def validateSettings(self): # Check the values of the specified script try: assert self.script in SCRIPT_CHOICES except: raise ValueErr...
{ "repo_name": "lufuhao/PB_rDnaTools", "path": "src/pbrdna/resequence/DagConTools.py", "copies": "2", "size": "4518", "license": "bsd-3-clause", "hash": 6348441796889369000, "line_mean": 40.8333333333, "line_max": 83, "alpha_frac": 0.5825586543, "autogenerated": false, "ratio": 4.643371017471737, ...
def __init__(self, input_file=None, output_file=None): if input_file is None: self.initialize_from_args() else: self.initialize_from_call(input_file, output_file) self.validate_settings() self.initialize_readers() def initialize_from_args(self): ...
{ "repo_name": "lufuhao/PB_rDnaTools", "path": "src/pbrdna/io/BasH5IO.py", "copies": "2", "size": "6696", "license": "bsd-3-clause", "hash": -7708361357265220000, "line_mean": 40.85, "line_max": 85, "alpha_frac": 0.5979689367, "autogenerated": false, "ratio": 4.1256931608133085, "config_test": f...
def __init__(self, listFile=None, seqFile=None, distance=None): if listFile is None or seqFile is None: self.initializeFromArgs() else: self.initializeFromCall(listFile, seqFile, distance) self.validate_settings() self.initialize_output() self.parse_s...
{ "repo_name": "lufuhao/PB_rDnaTools", "path": "src/pbrdna/rDnaResequencer.py", "copies": "2", "size": "16747", "license": "bsd-3-clause", "hash": -8621925160506433000, "line_mean": 44.2621621622, "line_max": 103, "alpha_frac": 0.5759240461, "autogenerated": false, "ratio": 4.547108335595982, "c...
#! $ANDROID_HOME/tools/bin monkeyrunner # -*- coding: utf-8 -*- '''uiparser''' import os import sys import subprocess import datetime import logging from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage #pylint: disable=import-error class NullHandler(logging.Handler): def emit(self, record)...
{ "repo_name": "9468305/script", "path": "monkeyrunner/uiparser.py", "copies": "1", "size": "1999", "license": "mit", "hash": -8114209801657805000, "line_mean": 26.0135135135, "line_max": 106, "alpha_frac": 0.6858429215, "autogenerated": false, "ratio": 3.2241935483870967, "config_test": false, ...
### $ANTLR 2.7.6 (2005-12-22): "yacc.g" -> "YaccLexer.py"$ ### import antlr and other modules .. import sys import antlr version = sys.version.split()[0] if version < '2.2.1': False = 0 if version < '2.3': True = not False ### header action >>> ### header action <<< ### preamble action >>> ### preamble ac...
{ "repo_name": "darkrsw/safe", "path": "lib/deckard/src/ptgen/YaccLexer.py", "copies": "3", "size": "15607", "license": "bsd-3-clause", "hash": 4365403030418061000, "line_mean": 31.3126293996, "line_max": 311, "alpha_frac": 0.441724867, "autogenerated": false, "ratio": 4.1897986577181205, "confi...
### $ANTLR 2.7.6 (2005-12-22): "yacc.g" -> "YaccParser.py"$ ### import antlr and other modules .. import sys import antlr version = sys.version.split()[0] if version < '2.2.1': False = 0 if version < '2.3': True = not False ### header action >>> ### header action <<< ### preamble action>>> ### preamble act...
{ "repo_name": "daejunpark/jsaf", "path": "third_party/deckard/src/ptgen/YaccParser.py", "copies": "3", "size": "7103", "license": "bsd-3-clause", "hash": 5657232878070735000, "line_mean": 25.405204461, "line_max": 92, "alpha_frac": 0.4237646065, "autogenerated": false, "ratio": 4.2004730928444705...
### $ANTLR 2.7.7 (20060930): "xlwt/excel-formula.g" -> "ExcelFormulaParser.py"$ ### import antlr and other modules .. import sys from arelle.xlwt import antlr ### header action >>> import struct from arelle.xlwt import Utils from arelle.xlwt.UnicodeUtils import upack1 from arelle.xlwt.ExcelMagic import * _RVAdelta = ...
{ "repo_name": "sternshus/arelle2.7", "path": "svr-2.7/arelle/xlwt/ExcelFormulaParser.py", "copies": "1", "size": "22206", "license": "apache-2.0", "hash": -1909032448531912000, "line_mean": 32.6965098634, "line_max": 143, "alpha_frac": 0.4560929479, "autogenerated": false, "ratio": 3.574694140373...
### $ANTLR 2.7.7 (20060930): "xlwt/excel-formula.g" -> "ExcelFormulaParser.py"$ ### import antlr and other modules .. import sys import antlr version = sys.version.split()[0] if version < '2.2.1': False = 0 if version < '2.3': True = not False ### header action >>> import struct import Utils from UnicodeUtils ...
{ "repo_name": "chirilo/remo", "path": "vendor-local/lib/python/tablib/packages/xlwt/ExcelFormulaParser.py", "copies": "69", "size": "22362", "license": "bsd-3-clause", "hash": 8553294643542764000, "line_mean": 32.0310192024, "line_max": 143, "alpha_frac": 0.4545657812, "autogenerated": false, "ra...
### $ANTLR 2.7.7 (20060930): "xlwt/excel-formula.g" -> "ExcelFormulaParser.py"$ ### import antlr and other modules .. import sys import antlr version = sys.version.split()[0] if version < '2.2.1': False = 0 if version < '2.3': True = not False ### header action >>> import struct import Utils from UnicodeUtils...
{ "repo_name": "rhefner1/ghidonations", "path": "xlwt/ExcelFormulaParser.py", "copies": "1", "size": "22904", "license": "apache-2.0", "hash": 1802339211981135000, "line_mean": 32.6823529412, "line_max": 120, "alpha_frac": 0.4429357317, "autogenerated": false, "ratio": 3.6488768519993626, "confi...
### $ANTLR 2.7.7 (20060930): "xlwt/excel-formula.g" -> "ExcelFormulaParser.py"$ ### import antlr and other modules .. import sys from . import antlr ### header action >>> import struct from . import Utils from .UnicodeUtils import upack1 from .ExcelMagic import * _RVAdelta = {"R": 0, "V": 0x20, "A": 0x...
{ "repo_name": "bopo/tablib", "path": "tablib/packages/xlwt3/ExcelFormulaParser.py", "copies": "46", "size": "22812", "license": "mit", "hash": -3495928913831055400, "line_mean": 32.6160849772, "line_max": 143, "alpha_frac": 0.4417850254, "autogenerated": false, "ratio": 3.6540124939932723, "con...
### $ANTLR 2.7.7 (20160104): "lexed.g" -> "LexedLexer.py"$ ### import antlr and other modules .. import sys import antlr version = sys.version.split()[0] if version < '2.2.1': False = 0 if version < '2.3': True = not False ### header action >>> ### header action <<< ### preamble action >>> ### preamble ac...
{ "repo_name": "andybalaam/pepper", "path": "old/pepper1/src/parse/LexedLexer.py", "copies": "1", "size": "8649", "license": "mit", "hash": 869102682061540100, "line_mean": 31.1524163569, "line_max": 131, "alpha_frac": 0.4403977338, "autogenerated": false, "ratio": 4.3201798201798205, "config_te...
### $ANTLR 2.7.7 (20160104): "lexed.g" -> "LexedParser.py"$ ### import antlr and other modules .. import sys import antlr version = sys.version.split()[0] if version < '2.2.1': False = 0 if version < '2.3': True = not False ### header action >>> ### header action <<< ### preamble action>>> ### preamble act...
{ "repo_name": "andybalaam/pepper", "path": "old/pepper1/src/parse/LexedParser.py", "copies": "1", "size": "3046", "license": "mit", "hash": -8377346580719194000, "line_mean": 23.368, "line_max": 84, "alpha_frac": 0.4878529219, "autogenerated": false, "ratio": 3.798004987531172, "config_test": f...
End of preview. Expand in Data Studio

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.

Downloads last month
11