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... |
### $ANTLR 2.7.7 (20160104): "newsyntaxpepper.g" -> "NewSyntaxPepperParser.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>... | {
"repo_name": "andybalaam/pepper",
"path": "old/pepper1/src/newsyntaxparse/NewSyntaxPepperParser.py",
"copies": "1",
"size": "39995",
"license": "mit",
"hash": 4351324132428863000,
"line_mean": 31.6489795918,
"line_max": 253,
"alpha_frac": 0.5487685961,
"autogenerated": false,
"ratio": 3.96146988... |
### $ANTLR 2.7.7 (20160104): "newsyntaxpepper.g" -> "NewSyntaxPepperTreeWalker.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 <<<
### import antl... | {
"repo_name": "andybalaam/pepper",
"path": "old/pepper1/src/newsyntaxparse/NewSyntaxPepperTreeWalker.py",
"copies": "1",
"size": "38806",
"license": "mit",
"hash": -3041609279451810300,
"line_mean": 27.2636562272,
"line_max": 213,
"alpha_frac": 0.4210173684,
"autogenerated": false,
"ratio": 3.970... |
### $ANTLR 2.7.7 (20160104): "pepper.g" -> "PepperParser.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 a... | {
"repo_name": "andybalaam/pepper",
"path": "old/pepper1/src/parse/PepperParser.py",
"copies": "1",
"size": "38969",
"license": "mit",
"hash": -271541759041786560,
"line_mean": 31.205785124,
"line_max": 175,
"alpha_frac": 0.5427647617,
"autogenerated": false,
"ratio": 4.004212905877518,
"config_... |
### $ANTLR 2.7.7 (20160104): "pepper.g" -> "PepperTreeWalker.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 <<<
### import antlr.Token
from antl... | {
"repo_name": "andybalaam/pepper",
"path": "old/pepper1/src/parse/PepperTreeWalker.py",
"copies": "1",
"size": "40382",
"license": "mit",
"hash": 2938147023336140300,
"line_mean": 27.3980309423,
"line_max": 229,
"alpha_frac": 0.4210291714,
"autogenerated": false,
"ratio": 3.9796984330343945,
"c... |
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
from antlr3 import *
from antlr3.compat import set, frozenset
## @file
# The file defines the Lexer for C source files.
#
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
# This file is generated by running:
# java org.antlr.Too... | {
"repo_name": "bitcrystal/buildtools-BaseTools",
"path": "Source/Python/Ecc/CLexer.py",
"copies": "12",
"size": "99224",
"license": "bsd-2-clause",
"hash": 4469196425170517500,
"line_mean": 18.0574085304,
"line_max": 789,
"alpha_frac": 0.3868721277,
"autogenerated": false,
"ratio": 2.889626652687... |
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
from antlr3 import *
from antlr3.compat import set, frozenset
## @file
# The file defines the Lexer for C source files.
#
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
# This file is generated by running:
# java org.antlr.Tool C.g
#
# Copyright (c... | {
"repo_name": "MattDevo/edk2",
"path": "BaseTools/Source/Python/Ecc/CLexer.py",
"copies": "2",
"size": "99175",
"license": "bsd-2-clause",
"hash": -6816669922006539000,
"line_mean": 18.0475035375,
"line_max": 789,
"alpha_frac": 0.387063272,
"autogenerated": false,
"ratio": 2.8887044157054644,
"... |
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
from antlr3 import *
from antlr3.compat import set, frozenset
## @file
# The file defines the Lexer for C source files.
#
# THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE.
# This file is generated by running:
# java org.antlr.Tool C.g
#
# Copyright (c) 2... | {
"repo_name": "google/google-ctf",
"path": "third_party/edk2/BaseTools/Source/Python/Ecc/CParser3/CLexer.py",
"copies": "2",
"size": "99172",
"license": "apache-2.0",
"hash": -5253425472234195000,
"line_mean": 18.0468971094,
"line_max": 789,
"alpha_frac": 0.3870447304,
"autogenerated": false,
"ra... |
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
from antlr3 import *
from antlr3.compat import set, frozenset
## @file
# The file defines the parser for C source files.
#
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
# This file is generated by running:
# java org.antlr.Tool C.g
#
# Co... | {
"repo_name": "bitcrystal/buildtools-BaseTools",
"path": "Source/Python/Ecc/CParser.py",
"copies": "12",
"size": "699330",
"license": "bsd-2-clause",
"hash": 1042354630147280800,
"line_mean": 35.1115474422,
"line_max": 694,
"alpha_frac": 0.3897072913,
"autogenerated": false,
"ratio": 4.5167894903... |
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53
from __future__ import print_function
from __future__ import absolute_import
from antlr3 import *
from antlr3.compat import set, frozenset
## @file
# The file defines the parser for C source files.
#
# THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE.
# ... | {
"repo_name": "MattDevo/edk2",
"path": "BaseTools/Source/Python/Ecc/CParser.py",
"copies": "1",
"size": "698502",
"license": "bsd-2-clause",
"hash": -6069237150660897000,
"line_mean": 35.0774457243,
"line_max": 694,
"alpha_frac": 0.3905199985,
"autogenerated": false,
"ratio": 4.531842836010692,
... |
# $ANTLR 3.1.2 GDBMI.g 2010-06-08 01:02:51
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
DONE = 1
RUNNING = 2
ERROR = 3
CONNECTED = 4
EXIT = 5
STOPPED = 6
class GDBMITuple(dict):
def __getattr__(self, key):
return self[key]
cl... | {
"repo_name": "ryansturmer/cuttlebug",
"path": "cuttlebug/gdb/GDBMIParser.py",
"copies": "1",
"size": "69341",
"license": "mit",
"hash": 1753036949008737500,
"line_mean": 30.1767981439,
"line_max": 190,
"alpha_frac": 0.4901861813,
"autogenerated": false,
"ratio": 3.892937345609701,
"config_test... |
# $ANTLR 3.1.2 GDBMI.g 2010-06-08 01:02:51
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
CONSOLE=15
T__24=24
T__23=23
LOG=17
T__22=22
T__21=21
STATUS=11
T__20=20
RESULT=5
EXEC=10
TARGET=16
EOF=... | {
"repo_name": "ryansturmer/cuttlebug",
"path": "cuttlebug/gdb/GDBMILexer.py",
"copies": "1",
"size": "26732",
"license": "mit",
"hash": 1394230063792045600,
"line_mean": 21.1445887446,
"line_max": 198,
"alpha_frac": 0.4017656741,
"autogenerated": false,
"ratio": 3.03427922814983,
"config_test":... |
# $ANTLR 3.1.2 /work/projects/pyfuzzy/pyfuzzy/fuzzy/storage/fcl/FCL.g 2012-10-19 23:25:10
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
#docstring
__doc__ = """Parser for reading FCL by the pyfuzzy package."""
__revision__ = "$Id: FCLParser.py,v 1.9 2013-01-09 20:10:19 rliebscher E... | {
"repo_name": "avatar29A/pyfuzzy",
"path": "fuzzy/storage/fcl/FCLParser.py",
"copies": "1",
"size": "113649",
"license": "mit",
"hash": 2826394529754515500,
"line_mean": 34.6043233083,
"line_max": 308,
"alpha_frac": 0.5283548469,
"autogenerated": false,
"ratio": 3.6284081476278653,
"config_test... |
# $ANTLR 3.1.2 /work/projects/pyfuzzy/pyfuzzy/fuzzy/storage/fcl/FCL.g 2012-10-19 23:25:12
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
#docstring
__doc__ = """Lexer for reading FCL by the pyfuzzy package."""
__revision__ = "$ Id: FCL.g,v 1.7 2009/10/20 19:15:33 rlie... | {
"repo_name": "avatar29A/pyfuzzy",
"path": "fuzzy/storage/fcl/FCLLexer.py",
"copies": "1",
"size": "59631",
"license": "mit",
"hash": 8790102979027069000,
"line_mean": 24.2032967033,
"line_max": 513,
"alpha_frac": 0.4954973084,
"autogenerated": false,
"ratio": 2.806164705882353,
"config_test": ... |
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 /Users/walsh/Development/workspace/Intellect/intellect/grammar/Policy.g 2013-03-25 15:29:47
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from intellect.Node import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
... | {
"repo_name": "r0k3/Intellect",
"path": "intellect/grammar/PolicyParser.py",
"copies": "2",
"size": "180891",
"license": "bsd-3-clause",
"hash": 2298840445090487000,
"line_mean": 37.0662878788,
"line_max": 307,
"alpha_frac": 0.5431115976,
"autogenerated": false,
"ratio": 3.9325840253924085,
"co... |
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 /Users/walsh/Development/workspace/Intellect/intellect/grammar/Policy.g 2013-03-25 15:29:48
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
DOLLAR=79
DOUBLESLASH=67
MODIFY=32
SLASH... | {
"repo_name": "nemonik/Intellect",
"path": "intellect/grammar/PolicyLexer.py",
"copies": "2",
"size": "135998",
"license": "bsd-3-clause",
"hash": 3362097317030140400,
"line_mean": 27.3388205876,
"line_max": 894,
"alpha_frac": 0.4777055545,
"autogenerated": false,
"ratio": 3.4754542434387057,
"... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 JavaScript.g 2009-04-05 22:38:00
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
LT=4
DecimalDigit=17
EOF=-1
Identifier=5
SingleStringCharacter=9
T__93=... | {
"repo_name": "isislovecruft/torflow",
"path": "NetworkScanners/libs/jsparser/JavaScriptParser.py",
"copies": "2",
"size": "544540",
"license": "bsd-3-clause",
"hash": 4226806052322537000,
"line_mean": 33.4340457822,
"line_max": 316,
"alpha_frac": 0.5030925185,
"autogenerated": false,
"ratio": 3.... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 kv.g 2015-05-23 22:28:38
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
INSTRUCTION=18
SLASHEQUAL=42
BACKQUOTE=74
STAR=34
CIRCUMFLEXEQUAL=46
GREATEREQUAL=58
COMPLEX=79
WIDGET=9
NO... | {
"repo_name": "kived/kvlang",
"path": "kvlang/kvLexer.py",
"copies": "1",
"size": "84492",
"license": "mit",
"hash": 9083071825809299000,
"line_mean": 20.3687405159,
"line_max": 836,
"alpha_frac": 0.4160275529,
"autogenerated": false,
"ratio": 3.1503355704697986,
"config_test": false,
"has_no... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 lesscss.g 2012-12-04 00:36:14
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
FUNCTION=45
UNICODE_RANGE=67
STAR=44
EOF=-1
MEDIA_SYM=26
LBRACKET=43
INCLU... | {
"repo_name": "ateska/pyless",
"path": "pyless/lesscssParser.py",
"copies": "1",
"size": "219227",
"license": "bsd-2-clause",
"hash": -1851692924144149200,
"line_mean": 34.6234969126,
"line_max": 834,
"alpha_frac": 0.4940632313,
"autogenerated": false,
"ratio": 4.072353389185072,
"config_test":... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 lesscss.g 2012-12-04 00:36:16
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
FUNCTION=45
UNICODE_RANGE=67
STAR=44
EOF=-1
MEDIA_SYM=26
LBRACKET=43
INCLUDES=48
RPAREN=33
NAME=75
GRE... | {
"repo_name": "ateska/pyless",
"path": "pyless/lesscssLexer.py",
"copies": "1",
"size": "639531",
"license": "bsd-2-clause",
"hash": -5994230704869434000,
"line_mean": 31.0229833258,
"line_max": 582,
"alpha_frac": 0.3915009593,
"autogenerated": false,
"ratio": 3.0827159363145133,
"config_test":... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 proto_lexer.g 2013-10-23 04:20:51
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EXPONENT=60
MESSAGE_LITERAL=11
REQUIRED_PROTOBUF_SCOPE_LITERAL=29
STRING_GUTS=54
EQUALS=25
UINT32_... | {
"repo_name": "thelinuxkid/python-protolite",
"path": "protolite/parser/proto_lexer.py",
"copies": "1",
"size": "85288",
"license": "mit",
"hash": -1752709773565619200,
"line_mean": 25.49518484,
"line_max": 577,
"alpha_frac": 0.4569927774,
"autogenerated": false,
"ratio": 2.9610804430094086,
"c... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 proto_parser.g 2013-10-23 04:20:56
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EXPONENT=60
MESSAGE_LITERAL=11
REQUIRED_PROTOBUF_SCOPE_LITERAL=29
STR... | {
"repo_name": "thelinuxkid/python-protolite",
"path": "protolite/parser/proto_parser.py",
"copies": "1",
"size": "136654",
"license": "mit",
"hash": -1846773940166551800,
"line_mean": 35.5287356322,
"line_max": 301,
"alpha_frac": 0.5615861958,
"autogenerated": false,
"ratio": 3.792573268206039,
... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 src/SavedFSM/BuildFSM.g 2012-03-12 22:19:58
import sys
from antlr3 import *
from antlr3.tree import *
from antlr3.compat import set, frozenset
from pyon.core.governance.conversation.core.fsm import FSM
from pyon.core.governance.conversation.core.fsm import ExceptionFSM
fro... | {
"repo_name": "ooici/pyon",
"path": "pyon/core/governance/conversation/parsing/BuildFSM.py",
"copies": "1",
"size": "47270",
"license": "bsd-2-clause",
"hash": -2051810926013478100,
"line_mean": 36.2498029945,
"line_max": 667,
"alpha_frac": 0.4573725407,
"autogenerated": false,
"ratio": 3.9709341... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 src/SavedFSM/Monitor.g 2012-03-12 22:09:37
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
RESV=12
ANNOTATION=25
ASSERTION=28
PARALLEL=19
ID=26
T__61=61... | {
"repo_name": "ooici/pyon",
"path": "pyon/core/governance/conversation/parsing/MonitorParser.py",
"copies": "1",
"size": "206450",
"license": "bsd-2-clause",
"hash": 7800116038872353000,
"line_mean": 34.5519200964,
"line_max": 256,
"alpha_frac": 0.5232840882,
"autogenerated": false,
"ratio": 4.01... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 src/SavedFSM/Monitor.g 2012-03-12 22:09:37
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
RESV=12
ANNOTATION=25
ASSERTION=28
PARALLEL=19
T__61=61
ID=26
T__60=60
EOF=-1
PROTOCOL=20... | {
"repo_name": "ooici/pyon",
"path": "pyon/core/governance/conversation/parsing/MonitorLexer.py",
"copies": "1",
"size": "55966",
"license": "bsd-2-clause",
"hash": 1544008667884032000,
"line_mean": 21.7689178194,
"line_max": 551,
"alpha_frac": 0.4563663653,
"autogenerated": false,
"ratio": 2.9443... |
# $ANTLR 3.1.3 Mar 18, 2009 10:09:25 treelesscss.g 2012-12-04 00:36:20
import sys
from antlr3 import *
from antlr3.tree import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
FUNCTION=45
UNICODE_RANGE=67
STAR=44
EOF=-1
MEDIA_SYM=26
LBRACKET=43
INC... | {
"repo_name": "ateska/pyless",
"path": "pyless/treelesscss.py",
"copies": "1",
"size": "100603",
"license": "bsd-2-clause",
"hash": -7851616493085189000,
"line_mean": 30.214086255,
"line_max": 204,
"alpha_frac": 0.4702543662,
"autogenerated": false,
"ratio": 4.016408495688278,
"config_test": fa... |
# $ANTLR 3.1 Comments.g 2012-10-11 20:28:14
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
RBRACK=14
APOS=39
BSLAHS=36
BACKQUOTE=28
STAR=20
LBRACK=13
EMARK=34
SHARP=35
PERCENT=27
LINE_COMMENT=6
LCURLY=29
MINUS=19
EOF... | {
"repo_name": "leriomaggio/code-coherence-evaluation-tool",
"path": "code_comments_coherence/source_code_analysis/code_analysis/Comments.py",
"copies": "1",
"size": "30857",
"license": "bsd-3-clause",
"hash": -11754514667656776,
"line_mean": 19.3542216359,
"line_max": 578,
"alpha_frac": 0.429335321,
... |
# $ANTLR 3.1 ./Java.g 2013-07-16 16:21:24
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
T__159=159
T__158=158
T__160=160
LEFT_SHIFT_ASSIGN=65
T__167=167
T__168=168
EOF=-1
T__165=165
T__166=166
T__163=163
T__164=164
... | {
"repo_name": "leriomaggio/code-coherence-evaluation-tool",
"path": "code_comments_coherence/source_code_analysis/code_analysis/JavaLexer.py",
"copies": "1",
"size": "118769",
"license": "bsd-3-clause",
"hash": -5156789610085549000,
"line_mean": 22.6638772664,
"line_max": 988,
"alpha_frac": 0.4466822... |
# $ANTLR 3.4 Eval.g 2012-12-09 16:07:29
import sys
from antlr3 import *
from antlr3.tree import *
from antlr3.compat import set, frozenset
from engine import CpyBuilder
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__68=68
T__69=69
T__70=70
T__71=71
T__72=72
T__73=73
T... | {
"repo_name": "aegsea/ssdb-rocksdb",
"path": "deps/cpy/Eval.py",
"copies": "1",
"size": "136440",
"license": "bsd-3-clause",
"hash": 2681639451850277000,
"line_mean": 26.8448979592,
"line_max": 437,
"alpha_frac": 0.4493257109,
"autogenerated": false,
"ratio": 3.7453677015564524,
"config_test": ... |
# $ANTLR 3.4 Eval.g 2012-12-09 16:07:29
import sys
from antlr3 import *
from antlr3.tree import *
from antlr3.compat import set, frozenset
from engine import CpyBuilder
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__68=68
T__69=69
T__70=70
T__71=7... | {
"repo_name": "kyle-wang/ssdb",
"path": "deps/cpy/Eval.py",
"copies": "35",
"size": "141340",
"license": "bsd-3-clause",
"hash": -8684404744506362000,
"line_mean": 26.8448979592,
"line_max": 437,
"alpha_frac": 0.4337484081,
"autogenerated": false,
"ratio": 3.799564504422162,
"config_test": fals... |
# $ANTLR 3.4 SpeakPython.g 2015-09-25 20:19:02
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
ARROW=4
AT=5
AT_GLOBAL_OPTIONS=6
AT_OPTIONS=7
AT_RESULTS=8
AT_TESTS=9
B_ARROW=10
COMMA=11
COMMENT=12
END_DQUOTE_ST... | {
"repo_name": "netgio/voicecount",
"path": "devicecode/SpeakPython/SpeakPythonLexer.py",
"copies": "1",
"size": "37426",
"license": "mit",
"hash": -8049881028853731000,
"line_mean": 20.1925254813,
"line_max": 361,
"alpha_frac": 0.4177309892,
"autogenerated": false,
"ratio": 3.666699323993338,
"... |
# $ANTLR 3.4 SpeakPythonJSGF.g 2015-09-25 20:19:04
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
ARROW=4
AT=5
AT_GLOBAL_OPTIONS=6
AT_OPTIONS=7
AT_RESULTS=8
AT_TESTS=9
B_ARROW=10
COMMA=11
COMMENT=12
END_DQUOT... | {
"repo_name": "netgio/voicecount",
"path": "devicecode/SpeakPython/SpeakPythonJSGFLexer.py",
"copies": "1",
"size": "38026",
"license": "mit",
"hash": 8031992712422180000,
"line_mean": 20.5322763307,
"line_max": 365,
"alpha_frac": 0.4269184242,
"autogenerated": false,
"ratio": 3.568171155109318,
... |
# $ANTLR 3.5.1 /Users/montselozanod/Documents/Tec/Compilers/Chabuildly/chabuildly.g 2016-03-02 22:50:02
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.debug import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__11=11
T__12=12
T__13=13
T__... | {
"repo_name": "montselozanod/ChabuScript",
"path": "output/chabuildlyParser.py",
"copies": "1",
"size": "120793",
"license": "mit",
"hash": 6288906727162823000,
"line_mean": 36.6067870486,
"line_max": 199,
"alpha_frac": 0.4642653134,
"autogenerated": false,
"ratio": 3.9142255346727155,
"config_... |
# $ANTLR 3.5.1 /Users/montselozanod/Documents/Tec/Compilers/Chabuildly/chabuildly.g 2016-03-02 22:50:02
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__11=11
T__12=12
T__13=13
T__14=14
T__15=15
T__16=16
T__... | {
"repo_name": "montselozanod/ChabuScript",
"path": "output/chabuildlyLexer.py",
"copies": "1",
"size": "77675",
"license": "mit",
"hash": -8241644204435380000,
"line_mean": 25.4831230822,
"line_max": 628,
"alpha_frac": 0.5037785645,
"autogenerated": false,
"ratio": 2.7423739584804405,
"config_t... |
# $ANTLR 3.5.2 Congress.g 2015-11-02 17:04:43
import sys
from antlr3 import *
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__53=53
T__54=54
T__55=55
T__56=56
T__57=57
T__58=58
AND=4
ATOM=5
BYTESTRPREFIX=6
BYTES_CHAR_DQ=7
BYTES_CHAR_SQ=8
BYTES_ESC=9
B... | {
"repo_name": "ramineni/my_congress",
"path": "congress/datalog/Python3/CongressParser.py",
"copies": "2",
"size": "82627",
"license": "apache-2.0",
"hash": 3162882480360510000,
"line_mean": 29.3107116654,
"line_max": 147,
"alpha_frac": 0.4974645092,
"autogenerated": false,
"ratio": 3.77844338759... |
# $ANTLR 3.5.2 Congress.g 2015-11-02 17:04:43
import sys
from antlr3 import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__53=53
T__54=54
T__55=55
T__56=56
T__57=57
T__58=58
AND=4
ATOM=5
BYTESTRPREFIX=6
BYTES_CHAR_DQ=7
BYTES_CHAR_SQ=8
BYTES_ESC=9
BYTES_TESC=10
COLONMINUS=11
C... | {
"repo_name": "ramineni/my_congress",
"path": "congress/datalog/Python3/CongressLexer.py",
"copies": "2",
"size": "68168",
"license": "apache-2.0",
"hash": 440582133578715650,
"line_mean": 23.7883636364,
"line_max": 272,
"alpha_frac": 0.3762175801,
"autogenerated": false,
"ratio": 3.4728208263283... |
# $ANTLR 3.5.2 interface.g 2019-06-25 12:24:53
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
import os
import sys
import interfaceIR
from interfaceLexer import interfaceLexer
def UnquoteString(quotedString):
return quotedString[1:-1].decode('string_escape')
def StripPostComment(comm... | {
"repo_name": "legatoproject/legato-af",
"path": "framework/tools/ifgen/interfaceParser.py",
"copies": "1",
"size": "95887",
"license": "mpl-2.0",
"hash": 986767977394333000,
"line_mean": 30.2641017281,
"line_max": 201,
"alpha_frac": 0.5170669642,
"autogenerated": false,
"ratio": 4.16573985576505... |
# $ANTLR 3.5.2 interface.g 2019-06-25 12:24:53
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__30=30
T__31=31
T__32=32
T__33=33
T__34=34
T__35=35
T__36=36
T__37=37
T__38=38
T__39=39
T__40=40
T__41=41
T__42=... | {
"repo_name": "legatoproject/legato-af",
"path": "framework/tools/ifgen/interfaceLexer.py",
"copies": "1",
"size": "54588",
"license": "mpl-2.0",
"hash": -5986520868943103000,
"line_mean": 23.3914209115,
"line_max": 385,
"alpha_frac": 0.4181688283,
"autogenerated": false,
"ratio": 3.2084165980956... |
# $ANTLR 3.5 Expr.g 2013-04-12 19:22:24
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__68=68
T__69=69
T__70=70
T__71=71
T__72=72
T__73=73
T__74=74
T__75=75
T__76=76
T__77=77
T__... | {
"repo_name": "left2right/ssdb",
"path": "deps/cpy/ExprParser.py",
"copies": "36",
"size": "309324",
"license": "bsd-3-clause",
"hash": 3331183865364005400,
"line_mean": 31.4001256939,
"line_max": 292,
"alpha_frac": 0.488335855,
"autogenerated": false,
"ratio": 3.952820303115496,
"config_test":... |
# $ANTLR 3.5 Expr.g 2013-04-12 19:22:24
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__68=68
T__69=69
T__70=70
T__71=71
T__72=72
T__73=73
T__74=74
T__75=75
T__76=76
T__77=77
T__78=78
T__79=79
T__80=80
T__8... | {
"repo_name": "lingdecong/ssdb_study",
"path": "deps/cpy/ExprLexer.py",
"copies": "36",
"size": "68008",
"license": "bsd-3-clause",
"hash": 7907525342318916000,
"line_mean": 19.3616766467,
"line_max": 683,
"alpha_frac": 0.4092900835,
"autogenerated": false,
"ratio": 3.1204918784986693,
"config_... |
# $ANTLR 3.5 /Users/tim/opencode/congress/congress/datalog/Congress.g 2015-08-03 09:06:21
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.tree import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__53=53
T__54=54
T__55=55
T__56=56
T__57=5... | {
"repo_name": "ekcs/congress",
"path": "congress/datalog/CongressParser.py",
"copies": "3",
"size": "87659",
"license": "apache-2.0",
"hash": -3476326878491219000,
"line_mean": 31.3464944649,
"line_max": 193,
"alpha_frac": 0.5207223445,
"autogenerated": false,
"ratio": 3.699784746549614,
"confi... |
# $ANTLR 3.5 /Users/tim/opencode/congress/congress/datalog/Congress.g 2015-08-03 09:06:22
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EOF=-1
T__53=53
T__54=54
T__55=55
T__56=56
T__57=57
T__58=58
AND=4
ATOM=5
BYTE... | {
"repo_name": "ekcs/congress",
"path": "congress/datalog/CongressLexer.py",
"copies": "3",
"size": "75903",
"license": "apache-2.0",
"hash": -1519084461670277600,
"line_mean": 26.7626188734,
"line_max": 318,
"alpha_frac": 0.4280463223,
"autogenerated": false,
"ratio": 3.3918580748949863,
"confi... |
# $ apt-get install python-bs4
# $ easy_install beautifulsoup4
# $ pip install beautifulsoup4
# $ python setup.py install
# https://www.crummy.com/software/BeautifulSoup/bs4/doc/
html_doc = """
<html><head><title>The Dormouse's story</title></head>
<body>
<p class="title"><b>The Dormouse's story</b></p>
<p class="st... | {
"repo_name": "gdsglgf/tutorials",
"path": "python/beautifulsoup4/bs_guide.py",
"copies": "1",
"size": "2500",
"license": "mit",
"hash": 3836297942533356500,
"line_mean": 22.819047619,
"line_max": 87,
"alpha_frac": 0.6344,
"autogenerated": false,
"ratio": 2.5536261491317673,
"config_test": fals... |
#+
# NAME:
# DISK
#
# PURPOSE:
# This function returns a byte array containing a disk. The
# disk is centered at x, y, and has radius r. The array is nx,
# ny in size and has byte type. Pixel values of 1 indicate that
# the center of a pixel is within r of x,y. Pixel values of 0
# indicate the opposite. The cente... | {
"repo_name": "zkbt/mosasaurus",
"path": "mosasaurus/disk.py",
"copies": "1",
"size": "2671",
"license": "mit",
"hash": 2780961353420315000,
"line_mean": 25.4455445545,
"line_max": 66,
"alpha_frac": 0.6458255335,
"autogenerated": false,
"ratio": 2.551098376313276,
"config_test": false,
"has_n... |
import os
import sys
import string
import argparse
import shlex
import platform
import traceback
import subprocess
import email
import smtplib
import itertools
import logging
import tempfile
import locale
from email.mime.text import MIMEText
from datetime import datetime, date, time, timedelta
locale.setlocale(locale... | {
"repo_name": "nharrer/snaprunner",
"path": "snaprunner.py",
"copies": "1",
"size": "16957",
"license": "mit",
"hash": 4423937347965149700,
"line_mean": 40.4596577017,
"line_max": 253,
"alpha_frac": 0.5922038096,
"autogenerated": false,
"ratio": 3.8838754008245533,
"config_test": false,
"has_... |
#! /usr/bin/env python
'''
Name
----
gaussian
File
----
gaussian.py
Description
-----------
Routines for evaluating, estimating parameters of, and fitting Gaussians.
Package Contents
----------------
N-dimensional functions:
gaussian(x, width=1., center=0., heig... | {
"repo_name": "zkbt/mosasaurus",
"path": "mosasaurus/gaussian.py",
"copies": "1",
"size": "25888",
"license": "mit",
"hash": -2577163128737240600,
"line_mean": 31.4818067754,
"line_max": 91,
"alpha_frac": 0.586565204,
"autogenerated": false,
"ratio": 3.422527763088313,
"config_test": false,
"... |
# $autorun
# $show-in-menu
# Calc freq
from cpw_design import cpw
import pya
import sys
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcut = shortcut
self.action = action
def triggered(self):
... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/CPW Frequency.py",
"copies": "1",
"size": "1628",
"license": "mit",
"hash": 5682894012418105000,
"line_mean": 23.3134328358,
"line_max": 69,
"alpha_frac": 0.593980344,
"autogenerated": false,
"ratio": 3.501075268817204,
"config_test"... |
# $description: Make CPW out of Path
# $autorun
# $show-in-menu
import pya
import sys
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcut = shortcut
self.action = action
def triggered(self):
... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Make CPW.py",
"copies": "1",
"size": "2760",
"license": "mit",
"hash": 5836841302612969000,
"line_mean": 31.1046511628,
"line_max": 108,
"alpha_frac": 0.5807971014,
"autogenerated": false,
"ratio": 3.4936708860759493,
"config_test": ... |
# $description: Make Grounding Straps crossing CPW Paths
# $autorun
# $show-in-menu
import pya
import sys
sys.stderr = sys.stdout
import json
from numpy import sqrt, float64, array, nan, isnan
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcu... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Make Ground Straps.py",
"copies": "1",
"size": "3233",
"license": "mit",
"hash": 7588953903091675000,
"line_mean": 33.7741935484,
"line_max": 101,
"alpha_frac": 0.4992267244,
"autogenerated": false,
"ratio": 3.568432671081678,
"confi... |
# $description: Run Shapes in FastHenry
# $autorun
# $show-in-menu
import pya
import sys
import types
from os.path import curdir, join
import os
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcut = shortcut
s... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Run in FastHenry.py",
"copies": "1",
"size": "7610",
"license": "mit",
"hash": 6883596304056364000,
"line_mean": 29.3227091633,
"line_max": 104,
"alpha_frac": 0.5645203679,
"autogenerated": false,
"ratio": 3.473299863076221,
"config_... |
# $description: Split into layer cells
# $autorun
# $show-in-menu
import pya
import sys
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcut = shortcut
self.action = action
def triggered(self):
... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Make Layer Cells.py",
"copies": "1",
"size": "2057",
"license": "mit",
"hash": -7878870032128678000,
"line_mean": 27.985915493,
"line_max": 82,
"alpha_frac": 0.5950413223,
"autogenerated": false,
"ratio": 3.4056291390728477,
"config_... |
# $description: Write Image Distribution from Wafer
# $autorun
# $show-in-menu
import pya
import sys
from math import copysign
from numpy import arange
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcut = shortcut
... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Write Images.py",
"copies": "1",
"size": "4299",
"license": "mit",
"hash": -298507358363718300,
"line_mean": 31.5757575758,
"line_max": 143,
"alpha_frac": 0.5510583857,
"autogenerated": false,
"ratio": 3.4781553398058254,
"config_tes... |
# $description: Write Instances and Placements to ASML job file
# $autorun
# $show-in-menu
import pya
import sys
from datetime import datetime
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
self.shortcut = shortcut
self.... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Write Instances.py",
"copies": "1",
"size": "5658",
"license": "mit",
"hash": -2575742470663776000,
"line_mean": 35.2692307692,
"line_max": 123,
"alpha_frac": 0.5040650407,
"autogenerated": false,
"ratio": 3.6503225806451614,
"config... |
# $description: Write Mask Placements to Excel Spreadsheet
# $autorun
# $show-in-menu
import pya
import sys
from datetime import datetime
#import pandas as pd
import numpy as np
sys.stderr = sys.stdout
class MenuAction(pya.Action):
def __init__(self, title, shortcut, action):
self.title = title
sel... | {
"repo_name": "calebjordan/klayout-macros",
"path": "pymacros/Write Instances to Excel.py",
"copies": "1",
"size": "3440",
"license": "mit",
"hash": 3477924449895213600,
"line_mean": 29.990990991,
"line_max": 111,
"alpha_frac": 0.5787790698,
"autogenerated": false,
"ratio": 3.3495618305744888,
... |
"""
Helper functions for date time conversion.
"""
__version__ = "$Revision-Id:$"
import datetime
import rfc822
import time
_ISO8601_DATETIME_FORMAT = r"%Y-%m-%dT%H:%M:%SZ"
def convertToDatetime(datetimeString):
""" If all conversion tries fail C{None} is returned.
Supported form... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/persistence/common/datetime_util.py",
"copies": "1",
"size": "5906",
"license": "bsd-3-clause",
"hash": 6246323827197065000,
"line_mean": 31.7485714286,
"line_max": 75,
"alpha_frac": 0.6567897054,
"autogenerated": false,
"ratio": 4.167960... |
"""
Testing domain property base classes.
"""
import unittest
from datafinder.core.configuration.properties import domain
from datafinder.core.configuration.properties import property_type
__version__ = "$Revision-Id:$"
class _City(domain.DomainObject):
name = domain.DomainProperty(pr... | {
"repo_name": "DLR-SC/DataFinder",
"path": "test/unittest/datafinder_test/core/configuration/properties/domain_test.py",
"copies": "1",
"size": "6804",
"license": "bsd-3-clause",
"hash": -7360320935092129000,
"line_mean": 41.3375796178,
"line_max": 127,
"alpha_frac": 0.6578483245,
"autogenerated": ... |
"""
Tests the repository path filter.
"""
import unittest
from datafinder.gui.user.models.repository.filter.path_filter import PathFilter
from datafinder_test.gui.user.mocks import BaseRepositoryMock, BaseItemMock
__version__ = "$Revision-Id$"
class PathFilterTest(unittest.TestCase):
"""... | {
"repo_name": "DLR-SC/DataFinder",
"path": "test/unittest/datafinder_test/gui/user/model/repository/filter/path_filter_test.py",
"copies": "1",
"size": "3523",
"license": "bsd-3-clause",
"hash": -4308317416171051500,
"line_mean": 38.4942528736,
"line_max": 81,
"alpha_frac": 0.6906045984,
"autogener... |
"""
This module provides an annotation to make methods observable..
"""
import logging
__version__ = "$Revision-Id:$"
_log = logging.getLogger("script")
class Observable(object):
""" Implements the observable annotation for bound
methods, static methods and class methods. """
... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/common/event_observer.py",
"copies": "1",
"size": "6280",
"license": "bsd-3-clause",
"hash": 7228231272687543000,
"line_mean": 39.5894039735,
"line_max": 124,
"alpha_frac": 0.6272292994,
"autogenerated": false,
"ratio": 4.7467876039304615... |
"""
Constant definitions for connection handling.
"""
__version__ = "$Revision-Id$"
# Constants for connection pooling
MAX_POOL_NUMBER = 10
MAX_CONNECTION_NUMBER = 1
WIN32 = "win32"
UTF8 = "UTF-8"
LC_ALL = "LC_ALL"
LINK_TARGET_PROPERTY_NAME = "datafinder:____LINK____"
JSON_PROPERTY_NAME = "datafinder:json"
| {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/persistence/adapters/svn/constants.py",
"copies": "1",
"size": "1977",
"license": "bsd-3-clause",
"hash": -8430896743928244000,
"line_mean": 35.6111111111,
"line_max": 72,
"alpha_frac": 0.756196257,
"autogenerated": false,
"ratio": 3.9226... |
"""
Handles open and print actions of items. Currently it only works on Windows
"""
import os
import logging
import subprocess
try:
# pylint: disable=E0611,F0401
# E0611: "shell" exists in win32com but Pylint cannot detect it.
# F0401: "win32com.shell" exists but Pylint cannot import.
import py... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/common/fileaction_handler.py",
"copies": "1",
"size": "7438",
"license": "bsd-3-clause",
"hash": 320158599997421200,
"line_mean": 38.5638297872,
"line_max": 116,
"alpha_frac": 0.6524603388,
"autogenerated": false,
"ratio": 4.3830... |
"""
Implements adapter for manipulating a SVN file system.
"""
import logging
import os
import shutil
from datafinder.persistence.error import PersistenceError
from datafinder.persistence.adapters.svn.error import SubversionError
from datafinder.persistence.adapters.svn import constants
from datafinder.persistenc... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/persistence/adapters/svn/data/adapter.py",
"copies": "1",
"size": "12884",
"license": "bsd-3-clause",
"hash": -7471517959180663000,
"line_mean": 37.6906906907,
"line_max": 98,
"alpha_frac": 0.6226327228,
"autogenerated": false,
"ratio": 4... |
"""
Implements utility functionality for accessing a Subversion repositories.
This implementation works with CPython and is based on C[pysvn}.
"""
import locale
import logging
import os
import pysvn
import sys
import threading
# pylint: disable=E0611
# E0611: pylint could not resolve ClientError.
from pysvn impor... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/persistence/adapters/svn/util/cpython.py",
"copies": "1",
"size": "16521",
"license": "bsd-3-clause",
"hash": -4869766722680992000,
"line_mean": 35.7951002227,
"line_max": 108,
"alpha_frac": 0.6102536166,
"autogenerated": false,
"ratio": ... |
"""
Edit dialog to change authentification information such as url, username, password, ldap support
"""
from PyQt4 import QtGui
from datafinder.gui.gen.user.authentification_edit_wizard_ui import Ui_editAuth
from datafinder.gui.user.dialogs.authentification_dialog.auth_pref_dialog import AuthPrefDialo... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/dialogs/authentification_dialog/auth_edit_dialog.py",
"copies": "1",
"size": "7236",
"license": "bsd-3-clause",
"hash": -2219658480908236800,
"line_mean": 32.9565217391,
"line_max": 118,
"alpha_frac": 0.6578220011,
"autogenerated":... |
"""
This module contains utility classes for the datafinder.
"""
from datetime import datetime
from decimal import Decimal
import functools
import logging
import sys
import types
from PyQt4 import QtCore
from datafinder.core.configuration.properties.constants import SIZE_ID, CONTENT_SIZE_ID
_... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/common/util.py",
"copies": "1",
"size": "23404",
"license": "bsd-3-clause",
"hash": 1129343238161996500,
"line_mean": 37.4671163575,
"line_max": 132,
"alpha_frac": 0.6188685695,
"autogenerated": false,
"ratio": 4.890096113664856,... |
""" Handler for the generated preferences stuff. """
import base64
import codecs
import logging
from StringIO import StringIO
from xml.parsers.expat import ExpatError
from datafinder.core.configuration.gen import preferences
from datafinder.core.error import ConfigurationError
from datafinder.persiste... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/core/configuration/preferences.py",
"copies": "1",
"size": "13945",
"license": "bsd-3-clause",
"hash": -7565749219310979000,
"line_mean": 39.1356932153,
"line_max": 130,
"alpha_frac": 0.5958408032,
"autogenerated": false,
"ratio": 5.24051... |
""" Implements different script representation. """
import atexit
import imp
import sys
import tarfile
import tempfile
import traceback
from datafinder.common.logger import getDefaultLogger
from datafinder.core.configuration.scripts import constants
from datafinder.core.error import ConfigurationErro... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/core/configuration/scripts/script.py",
"copies": "1",
"size": "11020",
"license": "bsd-3-clause",
"hash": 1710166532194676000,
"line_mean": 35.7397260274,
"line_max": 112,
"alpha_frac": 0.6078947368,
"autogenerated": false,
"ratio": 4.521... |
"""
This is a basic icon to be shown on a canvas.
"""
from qt import QPixmap, QPoint, QPen, QColor
from qtcanvas import QCanvasRectangle, QCanvasText
__version__ = "$Revision-Id:$"
class PrototypeIcon(QCanvasRectangle):
"""
Prototype-icon from wich other icons inherit.
@para... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/datamodel_iconview/prototype_icon.py",
"copies": "1",
"size": "8560",
"license": "bsd-3-clause",
"hash": -8960587871634093000,
"line_mean": 34.7381974249,
"line_max": 117,
"alpha_frac": 0.6203271028,
"autogenerated": false,
"rat... |
"""
Controls view displaying current content of a collection.
"""
from PyQt4 import QtCore, QtGui
from datafinder.gui.user.common.controller import AbstractController
from datafinder.gui.user.common.delegate import AbstractDelegate
from datafinder.gui.user.common import util
__version__ = "... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/controller/repository/collection.py",
"copies": "1",
"size": "16049",
"license": "bsd-3-clause",
"hash": -5552522491253109000,
"line_mean": 36.2119047619,
"line_max": 118,
"alpha_frac": 0.6495731821,
"autogenerated": false,
"rati... |
"""
Dialog to configure connection preferences, currently only LDAP.
"""
from PyQt4 import QtCore, QtGui
from datafinder.gui.gen.user.preferences_dialog_ui import Ui_preferencesDialog
__version__ = "$Revision-Id:$"
class PreferencesDialogView(QtGui.QDialog, Ui_preferencesDialog):
"""
... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/dialogs/preferences_dialog.py",
"copies": "1",
"size": "6612",
"license": "bsd-3-clause",
"hash": -6302464879115255000,
"line_mean": 29.0516431925,
"line_max": 108,
"alpha_frac": 0.6064730792,
"autogenerated": false,
"ratio": 4.0... |
"""
Implementation of commonly used search grammar.
"""
import time
import unicodedata
from pyparsing import White, alphas, nums, QuotedString, Word, operatorPrecedence, \
opAssoc, Combine, Keyword, Group, StringEnd, Regex, ParserElement
__version__ = "$Revision-Id:$"
E... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/core/search_restriction.py",
"copies": "1",
"size": "15427",
"license": "bsd-3-clause",
"hash": -5329548059456086000,
"line_mean": 39.0292553191,
"line_max": 125,
"alpha_frac": 0.6172295326,
"autogenerated": false,
"ratio": 4.745309135650... |
"""
Module that contains the leaf item type.
"""
from datafinder.core.configuration.properties.constants import DATA_FORMAT_ID, MIME_TYPE_ID
from datafinder.core.error import ItemError
from datafinder.core.item.base import ItemBase
from datafinder.persistence.error import PersistenceError
__version__... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/core/item/leaf.py",
"copies": "1",
"size": "4146",
"license": "bsd-3-clause",
"hash": -7031689418923992000,
"line_mean": 37.4857142857,
"line_max": 98,
"alpha_frac": 0.6613603473,
"autogenerated": false,
"ratio": 4.2306122448979595,
"co... |
"""
The class ContextMenu is the main popup menu for the IconView.
The class CanvasView shows and andministrates icons.
"""
from qt import QPopupMenu, QAction, QKeySequence, QIconSet, SIGNAL, QPixmap
from qtcanvas import QCanvasView, QCanvas
from math import sin, cos, pi
from datafinder.gui.admin impor... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/datamodel_iconview/canvas_view.py",
"copies": "1",
"size": "17096",
"license": "bsd-3-clause",
"hash": 4605164411108368400,
"line_mean": 38.1314553991,
"line_max": 129,
"alpha_frac": 0.6105521759,
"autogenerated": false,
"ratio"... |
"""
This is the default data persister which is intended to store data and
access data on the same file system.
"""
import atexit
import logging
import os
import random
from tempfile import mkstemp
import time
from hashlib import sha1
from datafinder.core.error import ItemError
from datafinder.c... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/core/item/data_persister/persisters.py",
"copies": "1",
"size": "22003",
"license": "bsd-3-clause",
"hash": 3848147038925267000,
"line_mean": 37.7884267631,
"line_max": 125,
"alpha_frac": 0.6148706995,
"autogenerated": false,
"ratio": 4.4... |
"""
Controller of the property view.
"""
from PyQt4 import QtCore
from datafinder.gui.user.common.delegate import AbstractDelegate
from datafinder.gui.user.common import util
from datafinder.gui.user.common.controller import AbstractController
__version__ = "$Revision-Id:$"
class PropertiesCo... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/controller/repository/properties.py",
"copies": "1",
"size": "4173",
"license": "bsd-3-clause",
"hash": 7857777323599324000,
"line_mean": 34.9292035398,
"line_max": 125,
"alpha_frac": 0.6812844476,
"autogenerated": false,
"ratio"... |
"""
Login dialog (including a line for URL-input).
"""
from qt import PYSIGNAL, SLOT, SIGNAL
from datafinder.gui.gen import FullLoginDialog
__version__ = "$Revision-Id:$"
class LoginDialog(FullLoginDialog.FullLoginDialogForm):
"""
Login-dialog providing url, username, and password.
... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/login_dialog.py",
"copies": "1",
"size": "5917",
"license": "bsd-3-clause",
"hash": -5888394971210118000,
"line_mean": 31.6193181818,
"line_max": 107,
"alpha_frac": 0.6579347642,
"autogenerated": false,
"ratio": 4.38296296296296... |
"""
This module contains the properties model.
"""
from PyQt4 import QtCore, QtGui
from datafinder.gui.user.common.util import \
extractPyObject, determineDisplayRepresentation, determinePropertyDefinitionToolTip
from datafinder.core.configuration.properties import constants
from datafinder.core.co... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/models/properties.py",
"copies": "1",
"size": "23492",
"license": "bsd-3-clause",
"hash": -7401007111633544000,
"line_mean": 38.9268292683,
"line_max": 135,
"alpha_frac": 0.5920313298,
"autogenerated": false,
"ratio": 4.502971056... |
"""
The class draws a partial relation (a line) from a
DataTypeIcon to a RelationTypeIcon
"""
from qt import Qt, QBrush, QColor, QPointArray
from qtcanvas import QCanvasPolygon
__version__ = "$Revision-Id:$"
class PartialRelationIcon(QCanvasPolygon):
""" Represents a partial relation. """
... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/datamodel_iconview/partial_relation_icon.py",
"copies": "1",
"size": "5741",
"license": "bsd-3-clause",
"hash": -5267715409180089000,
"line_mean": 36.0198675497,
"line_max": 124,
"alpha_frac": 0.6300296116,
"autogenerated": false,... |
"""
Module for the base item declaration.
"""
import logging
from datafinder.core.configuration.properties.constants import UNMANAGED_SYSTEM_PROPERTY_CATEGORY, \
MANAGED_SYSTEM_PROPERTY_CATEGORY
from datafinder.core.error import ItemError, P... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/core/item/base.py",
"copies": "1",
"size": "24733",
"license": "bsd-3-clause",
"hash": 3746554523812909600,
"line_mean": 36.0507692308,
"line_max": 115,
"alpha_frac": 0.5824202483,
"autogenerated": false,
"ratio": 4.838223787167449,
"co... |
""" Module provides functionality for common gui related tasks. """
import sys
from thread import get_ident
from threading import Lock, Condition
from qt import QMimeSourceFactory, QCustomEvent, QObject, qApp, QEvent, \
QPixmap, QApplication, QLabel, \
QPoint, Qt, QFrame
... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/common/utils.py",
"copies": "1",
"size": "8629",
"license": "bsd-3-clause",
"hash": 3372331077392304000,
"line_mean": 34.256302521,
"line_max": 111,
"alpha_frac": 0.6554641326,
"autogenerated": false,
"ratio": 4.246555118110236,... |
"""
This module controls the tool bar view.
"""
from PyQt4 import QtCore, QtGui
from datafinder.gui.user.common import util
from datafinder.gui.user.common.delegate import AbstractDelegate
from datafinder.gui.user.common.controller import AbstractController
__version__ = "$Revision-Id:$"
cl... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/user/controller/repository/toolbar.py",
"copies": "1",
"size": "7921",
"license": "bsd-3-clause",
"hash": -8841161470594874,
"line_mean": 36.6390243902,
"line_max": 114,
"alpha_frac": 0.6653200353,
"autogenerated": false,
"ratio": 4.5... |
""""
Module provides a logging handler for the DataFinder GUIs.
"""
import logging
import Queue
from datafinder.gui.admin.common import utils
__version__ = "$Revision-Id:$"
_guiLogFormat = "%(asctime)s: %(levelname)s: %(message)s"
_guiDateFormat = "%H:%M:%S"
_levelHtmlDirective = {logging.... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/common/logger_handler.py",
"copies": "1",
"size": "3878",
"license": "bsd-3-clause",
"hash": -3201271447668878000,
"line_mean": 34.9333333333,
"line_max": 98,
"alpha_frac": 0.6835997937,
"autogenerated": false,
"ratio": 4.064989... |
"""
Importing directory structure.
"""
from logging import getLogger
from datafinder.core.configuration.properties.constants import DATATYPE_ID, DATASTORE_NAME_ID
from datafinder.gui.user import script_api as gui_api
from datafinder.script_api.error import ItemSupportError
from datafinder.script_api.i... | {
"repo_name": "DLR-SC/DataFinder",
"path": "contrib/script_examples/gui/directory_importer.py",
"copies": "1",
"size": "4036",
"license": "bsd-3-clause",
"hash": 520923501356189400,
"line_mean": 35.7196261682,
"line_max": 121,
"alpha_frac": 0.7304261645,
"autogenerated": false,
"ratio": 4.1437371... |
"""
Controller component of the create configuration dialog.
"""
import sys
import threading
from qt import QApplication, qApp
from datafinder.common import logger
from datafinder.core.error import ConfigurationError
from datafinder.gui.admin.create_configuration_dialog.view import CreateConfigurat... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/create_configuration_dialog/controller.py",
"copies": "1",
"size": "5061",
"license": "bsd-3-clause",
"hash": 4547268084933125600,
"line_mean": 37.8503937008,
"line_max": 122,
"alpha_frac": 0.6757557795,
"autogenerated": false,
... |
"""
Controller component of the data store configuration wizard.
"""
from qt import SIGNAL, QFileDialog
from datafinder.common.logger import getDefaultLogger
from datafinder.core.configuration import datastores
from datafinder.core.error import ConfigurationError
from datafinder.gui.admin.datastore_co... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/datastore_configuration_wizard/controller.py",
"copies": "1",
"size": "10493",
"license": "bsd-3-clause",
"hash": -1302358348066373000,
"line_mean": 46.3548387097,
"line_max": 134,
"alpha_frac": 0.6538644811,
"autogenerated": fals... |
"""
Defines an abstract controller component for the different option
pages of the wizard.
"""
__version__ = "$Revision-Id:$"
class AbstractOptionController(object):
""" Abstract class that defines the interface of the form controller classes. """
def __init__(self, wizardView, wi... | {
"repo_name": "DLR-SC/DataFinder",
"path": "src/datafinder/gui/admin/datastore_configuration_wizard/abstract_option_controller.py",
"copies": "1",
"size": "4251",
"license": "bsd-3-clause",
"hash": 7833481973472544000,
"line_mean": 40.9393939394,
"line_max": 94,
"alpha_frac": 0.6593742649,
"autogen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.