text
stringlengths
0
1.05M
meta
dict
""" Name: 'Sunflow Exporter (.sc)...' Blender: 2.4 Group: 'Export' Tip: '' """ """ Version : 0.07.0 (January 2007) Author : R Lindsay (hayfever) / Christopher Kulla Description : Export to Sunflow renderer http://sunflow.sourceforge.net/ """ ## imports ## import Blender, os,...
{ "repo_name": "agoncharuk/sunflow", "path": "exporters/blender/sunflow_export.py", "copies": "2", "size": "31884", "license": "mit", "hash": 6401192824082865000, "line_mean": 44.8762589928, "line_max": 198, "alpha_frac": 0.4633985698, "autogenerated": false, "ratio": 3.4002346166151223, "config...
#!BPY """ Name: 'TS2 Object Footprint' Blender: 249 Group: 'Export' Tooltip: 'Generate footprint for TS2 object' """ #------------------------------------------------------------------------------- # Copyright (C) 2016 DjAlex88 (https://github.com/djalex88/) # # Permission is hereby granted, free of charge, to any p...
{ "repo_name": "djalex88/blender-gmdc", "path": "gen_footprint.py", "copies": "1", "size": "6352", "license": "mit", "hash": -3518079885761567000, "line_mean": 26.9823788546, "line_max": 124, "alpha_frac": 0.6317695214, "autogenerated": false, "ratio": 3.016144349477683, "config_test": false, ...
""" Name: 'VegaStrike (selected) (.xmesh)...' Blender: 228 Group: 'Export' Tooltip: 'Export VegaStrike (selected) (.xmesh)' """ __author__ = "Dandandaman" __url__ = ("blender", "http://www.blender.org", "Author's homepage, http://black-paralysis.sf.net/") __version__ = "0.1" # # XMESH exporter for Blender v2.28+ (b...
{ "repo_name": "Ezeer/VegaStrike_win32FR", "path": "vegastrike/objconv/blender_xmesh_export.py", "copies": "1", "size": "6989", "license": "mit", "hash": 4580118239586716700, "line_mean": 27.4105691057, "line_max": 136, "alpha_frac": 0.6009443411, "autogenerated": false, "ratio": 2.765730114760585...
#!BPY # Version 9: Modified "top", so upper edges means all on the upper side of the # mesh, not any edges facing up. Took as long as all the rest of this # script. # # Friction is now sum of R, G, B components of material color. # Version 8: added the "top" property, and an error messa...
{ "repo_name": "tsteinholz/SR-Gaming", "path": "Libraries/allegro5-5.1/demos/skater/blender/ademo_export.py", "copies": "2", "size": "14533", "license": "mit", "hash": 3975027000543242000, "line_mean": 31.6584269663, "line_max": 90, "alpha_frac": 0.556388908, "autogenerated": false, "ratio": 3.496...
#!BPY """ Name: 'Inter-Quake Model' Blender: 249 Group: 'Export' Tip: 'Export Inter-Quake Model files' """ import struct, math import Blender import BPyArmature IQM_POSITION = 0 IQM_TEXCOORD = 1 IQM_NORMAL = 2 IQM_TANGENT = 3 IQM_BLENDINDEXES = 4 IQM_BLENDWEIGHTS = 5 IQM_COLOR ...
{ "repo_name": "underscorediscovery/iqm", "path": "blender-2.49/iqm_export.py", "copies": "1", "size": "40859", "license": "mit", "hash": 8663821681379570000, "line_mean": 40.2097107438, "line_max": 395, "alpha_frac": 0.5267138207, "autogenerated": false, "ratio": 3.470863064899762, "config_test...
#!BPY """ Name: 'TerasologyBlockShapeExport' Blender: 260 Group: 'Export' Tooltip: 'Export a Terasology Block Shape' """ bl_info = { "name": "Terasology Block Shape Export", "description": "Exporter for producing Terasology Block Shape files", "author": "Immortius", "version": (1, 1), "blender": (2, ...
{ "repo_name": "rapodaca/Terasology", "path": "blender_addons/io_mesh_terasology/__init__.py", "copies": "1", "size": "3098", "license": "apache-2.0", "hash": 3956464273789315600, "line_mean": 24.9565217391, "line_max": 90, "alpha_frac": 0.6904454487, "autogenerated": false, "ratio": 3.08873379860...
""" Name: 'Sunflow Exporter (.sc)...' Blender: 2.4 Group: 'Export' Tip: '' """ """ Version : 0.07.0 (January 2007) Author : R Lindsay (hayfever) / Christopher Kulla Description : Export to Sunflow renderer http://sunflow.sourceforge.net/ """ ## imports ## imp...
{ "repo_name": "Acbentle/terrain474", "path": "exporters/blender/sunflow_export.py", "copies": "2", "size": "32579", "license": "mit", "hash": -8073652812672390000, "line_mean": 44.8762589928, "line_max": 198, "alpha_frac": 0.4535129992, "autogenerated": false, "ratio": 3.3799149289345367, "conf...
"""bq_sync_pk_fix Revision ID: f3fdb9d05ab3 Revises: 7d63fbc6d9ca Create Date: 2019-08-14 12:10:16.423602 """ from alembic import op import sqlalchemy as sa import model.utils from sqlalchemy.dialects import mysql from rdr_service.participant_enums import PhysicalMeasurementsStatus, QuestionnaireStatus, OrderStatus ...
{ "repo_name": "all-of-us/raw-data-repository", "path": "rdr_service/alembic/versions/f3fdb9d05ab3_bq_sync_pk_fix.py", "copies": "1", "size": "3626", "license": "bsd-3-clause", "hash": -2718571282241484000, "line_mean": 44.325, "line_max": 128, "alpha_frac": 0.721180364, "autogenerated": false, "r...
# Bracketing Search # Created by Josien Braas to practice Python import random def play_number_game_pick(): number = random.randrange(1, 101) count_guesses = 1 print("\n>> Welcome to the number game! <<\n") while True: guess = input("Please guess the number: ") try: if int...
{ "repo_name": "josienb/python_exercises", "path": "bracketing_search/bracketing_search.py", "copies": "1", "size": "2000", "license": "mit", "hash": 6052152675816448000, "line_mean": 32.8983050847, "line_max": 72, "alpha_frac": 0.4935, "autogenerated": false, "ratio": 3.937007874015748, "config...
import collections import math import copy import sys import itertools DEBUG = True class bracketPhase(object): """Structural information for a phase of a bracket.""" def __init__(self, participants, phase=0): """Create a specified phase for a bracket with a certain number of participants...
{ "repo_name": "monocledsardine/challonge-bracket-sort", "path": "bracket.py", "copies": "2", "size": "19668", "license": "mit", "hash": -7902802679375101000, "line_mean": 32.7375643225, "line_max": 97, "alpha_frac": 0.5494712223, "autogenerated": false, "ratio": 4.521379310344828, "config_test"...
BRACKET_ROUND_OPEN = '(' BRACKET_ROUND__CLOSE = ')' BRACKET_CURLY_OPEN = '{' BRACKET_CURLY_CLOSE = '}' BRACKET_SQUARE_OPEN = '[' BRACKET_SQUARE_CLOSE = ']' TUPLE_OPEN_CLOSE = [(BRACKET_ROUND_OPEN,BRACKET_ROUND__CLOSE), (BRACKET_CURLY_OPEN,BRACKET_CURLY_CLOSE), (BRACKET_SQUARE_OP...
{ "repo_name": "alikoyuncu/balanced_parentheses", "path": "balanced_parentheses.py", "copies": "1", "size": "1414", "license": "mit", "hash": -3334427240824418000, "line_mean": 35.2564102564, "line_max": 136, "alpha_frac": 0.5523338048, "autogenerated": false, "ratio": 3.8633879781420766, "confi...
BRACKETS = [ "()", "<>", "[]" "{}" ] class TermException(Exception): pass class UnicodeHack(unicode): def __repr__(self): return unicode.__repr__(self)[2:-1].decode("unicode_escape").encode('utf-8') class DictHack(dict): def __repr__(self): return dict.__repr__(self)[1:...
{ "repo_name": "MrBadge/CAM-interpreter", "path": "utils.py", "copies": "1", "size": "1983", "license": "mit", "hash": -9173965886423754000, "line_mean": 24.7532467532, "line_max": 112, "alpha_frac": 0.4483106404, "autogenerated": false, "ratio": 3.515957446808511, "config_test": false, "has_n...
#braden carei import numpy as np import matplotlib.pyplot as plt from sklearn import metrics from sklearn.cluster import KMeans from sklearn.datasets import load_digits from sklearn.decomposition import PCA from sklearn.preprocessing import scale from sklearn import datasets from sklearn.decomposition import PCA diab...
{ "repo_name": "WmHHooper/aima-python", "path": "submissions/Carei/myKMeans.py", "copies": "1", "size": "91899", "license": "mit", "hash": -1733070315744564500, "line_mean": 49.0266739249, "line_max": 80, "alpha_frac": 0.591834514, "autogenerated": false, "ratio": 1.9343492811888274, "config_tes...
"""Bradford distribution.""" import numpy from ..baseclass import SimpleDistribution, LowerUpperDistribution class bradford(SimpleDistribution): """Standard Bradford distribution.""" def __init__(self, c=1): super(bradford, self).__init__(dict(c=c)) def _pdf(self, x, c): return c/(c*x+...
{ "repo_name": "jonathf/chaospy", "path": "chaospy/distributions/collection/bradford.py", "copies": "1", "size": "1721", "license": "mit", "hash": 6500289076439802000, "line_mean": 25.4769230769, "line_max": 66, "alpha_frac": 0.5328297501, "autogenerated": false, "ratio": 3.3032629558541267, "co...
<<<<<<< HEAD <<<<<<< HEAD #deque.py class Deque: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def addFront(self, item): self.items.append(item) def addRear(self, item): self.items.insert(0,item) def removeFront(self): re...
{ "repo_name": "ArcherSys/ArcherSys", "path": "skulpt/src/lib/pythonds/basic/deque.py", "copies": "1", "size": "1539", "license": "mit", "hash": -2564431976416208000, "line_mean": 17.7682926829, "line_max": 58, "alpha_frac": 0.587394412, "autogenerated": false, "ratio": 3.2536997885835097, "conf...
<<<<<<< HEAD <<<<<<< HEAD #queue.py class Queue: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def enqueue(self, item): self.items.insert(0,item) def dequeue(self): return self.items.pop() def size(self): return len(self.i...
{ "repo_name": "ArcherSys/ArcherSys", "path": "skulpt/src/lib/pythonds/basic/queue.py", "copies": "1", "size": "1155", "license": "mit", "hash": -5194824255487631000, "line_mean": 17.9344262295, "line_max": 58, "alpha_frac": 0.5800865801, "autogenerated": false, "ratio": 3.271954674220963, "conf...
<<<<<<< HEAD <<<<<<< HEAD #stack.py class Stack: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def push(self, item): self.items.append(item) def pop(self): return self.items.pop() def peek(self): return self.items[len(self...
{ "repo_name": "ArcherSys/ArcherSys", "path": "skulpt/src/lib/pythonds/basic/stack.py", "copies": "1", "size": "1329", "license": "mit", "hash": -1328274056627239200, "line_mean": 17.2054794521, "line_max": 58, "alpha_frac": 0.5741158766, "autogenerated": false, "ratio": 3.2414634146341466, "con...
class BinaryTree: """ A recursive implementation of Binary Tree Using links and Nodes approach. """ def __init__(self,rootObj): self.key = rootObj self.leftChild = None self.rightChild = None def insertLeft(self,newNode): if self.leftChild == None: ...
{ "repo_name": "rush2catch/algorithms-leetcode", "path": "Trees/Tree.py", "copies": "1", "size": "3928", "license": "mit", "hash": -4867716636595162000, "line_mean": 25.7278911565, "line_max": 92, "alpha_frac": 0.5748472505, "autogenerated": false, "ratio": 3.4547053649956023, "config_test": fal...
# this heap takes key value pairs, we will assume that the keys are integers class BinHeap: def __init__(self): self.heapList = [0] self.currentSize = 0 def buildHeap(self,alist): i = len(alist) // 2 self.currentSize = len(alist) self.heapList = [0] + alist[:] ...
{ "repo_name": "ArcherSys/ArcherSys", "path": "skulpt/src/lib/pythonds/trees/binheap.py", "copies": "1", "size": "1977", "license": "mit", "hash": 7981329388093676000, "line_mean": 28.5074626866, "line_max": 76, "alpha_frac": 0.5032878098, "autogenerated": false, "ratio": 3.5945454545454547, "co...
""" brain-dead simple parser for ini-style files. (C) Ronny Pfannschmidt, Holger Krekel -- MIT licensed """ __version__ = "0.2.dev2" __all__ = ['IniConfig', 'ParseError'] COMMENTCHARS = "#;" class ParseError(Exception): def __init__(self, path, lineno, msg): Exception.__init__(self, path, lineno, msg) ...
{ "repo_name": "omakk/servo", "path": "tests/wpt/css-tests/tools/py/py/_iniconfig.py", "copies": "216", "size": "5193", "license": "mpl-2.0", "hash": -8568597201732212000, "line_mean": 31.0555555556, "line_max": 80, "alpha_frac": 0.5195455421, "autogenerated": false, "ratio": 4.232273838630807, ...
""" brain-dead simple parser for ini-style files. (C) Ronny Pfannschmidt, Holger Krekel -- MIT licensed """ __version__ = "0.2.dev2" __all__ = ['IniConfig', 'ParseError'] COMMENTCHARS = "#;" class ParseError(Exception): def __init__(self, path, lineno, msg): Exception.__init__(self, path, line...
{ "repo_name": "ryanmockabee/golfr", "path": "flask/lib/python3.6/site-packages/py/_iniconfig.py", "copies": "5", "size": "5355", "license": "mit", "hash": 1734823972798259500, "line_mean": 31.0555555556, "line_max": 80, "alpha_frac": 0.5038281979, "autogenerated": false, "ratio": 4.35365853658536...
"""brainfuck interpreter adapted from (public domain) code at http://brainfuck.sourceforge.net/brain.py""" from builtins import chr from builtins import range import re import random import unittest from util import hook @hook.command def bf(inp, max_steps=1000000, buffer_size=5000): ".bf <prog> -- executes bra...
{ "repo_name": "rmmh/skybot", "path": "plugins/bf.py", "copies": "1", "size": "2502", "license": "unlicense", "hash": -6367760473383336000, "line_mean": 27.7586206897, "line_max": 61, "alpha_frac": 0.4920063949, "autogenerated": false, "ratio": 3.9714285714285715, "config_test": false, "has_no...
'''brainfuck interpreter adapted from (public domain) code at http://brainfuck.sourceforge.net/brain.py''' from builtins import chr from builtins import range import re import random import unittest from util import hook @hook.command def bf(inp, max_steps=1000000, buffer_size=5000): ".bf <prog> -- executes bra...
{ "repo_name": "crisisking/skybot", "path": "plugins/bf.py", "copies": "1", "size": "2513", "license": "unlicense", "hash": -3934448622367700500, "line_mean": 27.8965517241, "line_max": 61, "alpha_frac": 0.4898527656, "autogenerated": false, "ratio": 4.001592356687898, "config_test": false, "h...
"""brainfuck interpreter adapted from (public domain) code at http://brainfuck.sourceforge.net/brain.py""" import re import asyncio import random from cloudbot import hook BUFFER_SIZE = 5000 MAX_STEPS = 1000000 @asyncio.coroutine @hook.command("brainfuck", "bf") def bf(text): """<prog> - executes <prog> as Bra...
{ "repo_name": "DoruMolnar123/Bots", "path": "plugins/brainfuck.py", "copies": "32", "size": "2508", "license": "unlicense", "hash": 4516185721576456700, "line_mean": 26.5604395604, "line_max": 66, "alpha_frac": 0.4928229665, "autogenerated": false, "ratio": 3.8944099378881987, "config_test": fa...
'''brainfuck interpreter adapted from (public domain) code at http://brainfuck.sourceforge.net/brain.py''' import re import random from util import hook BUFFER_SIZE = 5000 MAX_STEPS = 1000000 @hook.command def bf(inp): ".bf <prog> -- executes brainfuck program <prog>""" program = re.sub('[^][<>+-.,]', ''...
{ "repo_name": "elitan/mybot", "path": "plugins/bf.py", "copies": "11", "size": "2474", "license": "unlicense", "hash": 1872002743399555600, "line_mean": 27.1136363636, "line_max": 61, "alpha_frac": 0.4805982215, "autogenerated": false, "ratio": 3.933227344992051, "config_test": false, "has_no...
# Brainfuck interpreter in python class Brainfuck: def __init__(self): self.guide = self.make_guide() def make_guide(self): guide = dict() guide['>'] = self.inc_ptr guide['<'] = self.dec_ptr guide['+'] = self.inc_byte guide['-'] = self.dec_byte gui...
{ "repo_name": "cvsmith/python-brainfuck", "path": "brainfuck.py", "copies": "1", "size": "2297", "license": "mit", "hash": -6152849343067332000, "line_mean": 25.4022988506, "line_max": 129, "alpha_frac": 0.4392686112, "autogenerated": false, "ratio": 3.4232488822652756, "config_test": false, ...
'''Brainfuck interpreter''' VERSION = '0.1.2.1103' def __static_vars(): '''Decorate, add static attr''' def decorate(func): '''The decorate''' setattr(func, 'stdin_buffer', []) return func return decorate @__static_vars() def __getchar() -> int: '''Return one char from stdin''...
{ "repo_name": "Bestoa/py-brainfuck", "path": "nbfi/__init__.py", "copies": "1", "size": "2726", "license": "mit", "hash": -257982738039760300, "line_mean": 30.3333333333, "line_max": 92, "alpha_frac": 0.5264123258, "autogenerated": false, "ratio": 3.5356679636835278, "config_test": false, "ha...
# Author: Frédéric van der Plancke # <http://go.to/fvdp/> <frederic.vdplancke@writeme.com> # Disclaimer: the author(s) take no responsibility to whatever happens # as a result of using (or not using) this program. # License: public domain _testing_ = 0 import string import re #input-ou...
{ "repo_name": "rockneurotiko/madness-things", "path": "BrainFuck/recursos/esoteric.sange.fi/brainfuck/utils/eso_bfm/bfm.py", "copies": "1", "size": "28362", "license": "mpl-2.0", "hash": 6825515787469389000, "line_mean": 29.8674157303, "line_max": 115, "alpha_frac": 0.5259502151, "autogenerated": f...
#brain on drops import os import numpy as np import nibabel as nib from collections import OrderedDict from mayavi import mlab from boyle.nifti.roi import get_rois_centers_of_mass def test_quiver3d(): x, y, z = np.mgrid[-2:3, -2:3, -2:3] r = np.sqrt(x ** 2 + y ** 2 + z...
{ "repo_name": "Neurita/cajal", "path": "cajal/connectivity.py", "copies": "1", "size": "6547", "license": "bsd-3-clause", "hash": 5037477306909398000, "line_mean": 32.2335025381, "line_max": 96, "alpha_frac": 0.5602566061, "autogenerated": false, "ratio": 3.473209549071618, "config_test": false...
# brain.py import numpy as np import random class Brain(): def __init__(self, input_synapses, hidden_synapses): self.past_values = np.zeros(10) self.input_synapses = input_synapses self.hidden_synapses = hidden_synapses @classmethod def from_random(cls): input_synapses = ...
{ "repo_name": "omivore/hunger_planks", "path": "brain.py", "copies": "1", "size": "2210", "license": "mit", "hash": 6868853582943196000, "line_mean": 39.1818181818, "line_max": 116, "alpha_frac": 0.6004524887, "autogenerated": false, "ratio": 3.581847649918963, "config_test": false, "has_no_k...
"""brain.py provides an example Steno3D project of brain volume""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import os from six import text_type from .base import BaseExample, exampleproperty ...
{ "repo_name": "3ptscience/steno3dpy", "path": "steno3d/examples/brain.py", "copies": "1", "size": "2181", "license": "mit", "hash": 7440570498507500000, "line_mean": 28.8767123288, "line_max": 74, "alpha_frac": 0.5561668959, "autogenerated": false, "ratio": 4.138519924098672, "config_test": fal...
# BrainSparks imports from brainsparks.src.calrissian.particle_network import ParticleNetwork from brainsparks.src.calrissian.layers.particle import Particle from brainsparks.src.calrissian.layers.particle import ParticleInput from brainsparks.src.calrissian.optimizers.particle_sgd import ParticleSGD from brainsparks.s...
{ "repo_name": "awlange/brainsparks", "path": "src/server/worker/worker.py", "copies": "1", "size": "5449", "license": "mit", "hash": -393118465161356540, "line_mean": 30.1371428571, "line_max": 113, "alpha_frac": 0.635345935, "autogenerated": false, "ratio": 3.24538415723645, "config_test": fal...
"""braintree_api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
{ "repo_name": "sourcelair-blueprints/braintree-rest-framework", "path": "braintree_api/braintree_api/urls.py", "copies": "1", "size": "1815", "license": "mit", "hash": 2635862324553082400, "line_mean": 35.3, "line_max": 77, "alpha_frac": 0.6578512397, "autogenerated": false, "ratio": 3.7891440501...
# ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # $$$$ .$$$$$. $$$$' # $$$DaU$$O$$DaU$$$' # '$$$$'.^.'$$$$' # '&$$$$$&' from __future__ import print_function from keras.layers import * ...
{ "repo_name": "quqixun/BrainTumorClassification", "path": "src/btc_models.py", "copies": "1", "size": "9567", "license": "mit", "hash": 241438694254119200, "line_mean": 32.6866197183, "line_max": 94, "alpha_frac": 0.5149994774, "autogenerated": false, "ratio": 3.5684446102200673, "config_test":...
"""Brainvision to conmat.""" # Author: David Meunier <david_meunier_79@hotmail.fr> import nipype.pipeline.engine as pe from nipype.interfaces.utility import IdentityInterface from ephypype.nodes.import_data import (ImportBrainVisionAscii, ImportBrainVisionVhdr) from ephypype.p...
{ "repo_name": "neuropycon/ephypype", "path": "ephypype/pipelines/brain_vision_to_conmat.py", "copies": "1", "size": "3884", "license": "bsd-3-clause", "hash": -3385600290786466300, "line_mean": 39.4583333333, "line_max": 104, "alpha_frac": 0.6833161689, "autogenerated": false, "ratio": 3.44326241...
"""brainx version/release information""" # Format expected by setup.py and doc/source/conf.py: string of form "X.Y.Z" _version_major = 0 _version_minor = 1 _version_micro = '' # use '' for first of series, number for 1 and above _version_extra = 'dev' #_version_extra = '' # Uncomment this for full releases # Construc...
{ "repo_name": "jrcohen02/brainx_archive2", "path": "brainx/version.py", "copies": "4", "size": "2781", "license": "bsd-3-clause", "hash": 9088633368006735000, "line_mean": 32.9146341463, "line_max": 79, "alpha_frac": 0.6281912981, "autogenerated": false, "ratio": 4.042151162790698, "config_test...
"""Branch and bound method for mix_integer linear programming (MILP) using Gurobi Minimize a linear objective function, subject to optional linear constraints and variable bounds:: min f(x) := inner(c,x) x subject to:: A*x == beq (linear constraints, equality) A*x <= b (linea...
{ "repo_name": "Matrixeigs/Optimization", "path": "solvers/mixed_integer_solvers_gurobi.py", "copies": "1", "size": "5770", "license": "mit", "hash": 8764107050217025000, "line_mean": 32.1609195402, "line_max": 113, "alpha_frac": 0.5537261698, "autogenerated": false, "ratio": 3.3160919540229883, ...
"""Branch and bound method for mix_integer linear programming (MILP) using Mosek Minimize a linear objective function, subject to optional linear constraints and variable bounds:: min f(x) := inner(c,x) x subject to:: A*x == beq (linear constraints, equality) A*x <= b (linear ...
{ "repo_name": "Matrixeigs/Optimization", "path": "solvers/mixed_integer_solvers_mosek.py", "copies": "1", "size": "8523", "license": "mit", "hash": -7689917292681346000, "line_mean": 35.4230769231, "line_max": 110, "alpha_frac": 0.5101490086, "autogenerated": false, "ratio": 3.6160373355960966, ...
"""Branch and bound method for mix_integer quadratic programming (MIQP) using Gurobi Minimize a linear objective function, subject to optional linear constraints and variable bounds:: min f(x) := x'Qx + inner(c,x) x subject to:: A*x == beq (linear constraints, equality) A*x <= b ...
{ "repo_name": "Matrixeigs/Optimization", "path": "solvers/mixed_integer_quadratic_programming.py", "copies": "1", "size": "7486", "license": "mit", "hash": 2640245477772032000, "line_mean": 37.587628866, "line_max": 116, "alpha_frac": 0.5581084691, "autogenerated": false, "ratio": 3.7505010020040...
#Branches & Functions from sys import exit def gold_room(): print "This room is full of gold. How much do you take?" next = raw_input("> ") if "0" in next or "1" in next: how_much = int(next) else: dead("Man, learn to type a number.") if how_much < 50: print "Nice, you are not greedy, you win!" exit...
{ "repo_name": "pparacch/PlayingWithPython", "path": "learnPythonTheHardWay/src/ex_35.py", "copies": "1", "size": "1712", "license": "mit", "hash": 5734826901633090000, "line_mean": 20.6708860759, "line_max": 71, "alpha_frac": 0.6489485981, "autogenerated": false, "ratio": 2.783739837398374, "co...
experiments = ['control', 'real_galaxy', 'variable_psf', 'multiepoch', 'full'] observation_types = ['ground', 'space'] shear_types = ['constant', 'variable'] # Generate a regular expression that will match any branch name, such as # control-ground-constant or variable_psf/space/variable, as well as a list of branch n...
{ "repo_name": "barnabytprowe/great3-public", "path": "presubmission_script/branch_id.py", "copies": "2", "size": "20336", "license": "bsd-3-clause", "hash": -8086550998656493000, "line_mean": 77.2153846154, "line_max": 124, "alpha_frac": 0.35065893, "autogenerated": false, "ratio": 2.169867690994...
BRANCH = "mozilla-aurora" MOZ_UPDATE_CHANNEL = "aurora" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/nightly/latest-%s-android-api-9/en-US" % BRANCH HG_SHARE_BASE_DIR = "/builds/hg-shared" config = { "branch": BRANCH, "log_name": "single_locale", "objdi...
{ "repo_name": "cstipkovic/spidermonkey-research", "path": "testing/mozharness/configs/single_locale/mozilla-aurora_android-api-9.py", "copies": "1", "size": "4188", "license": "mpl-2.0", "hash": -5422618387526120000, "line_mean": 40.88, "line_max": 126, "alpha_frac": 0.5522922636, "autogenerated": ...
BRANCH = "mozilla-aurora" MOZ_UPDATE_CHANNEL = "aurora" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-11/en-US" % (BRANCH) #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.mozilla.org" STAGE_USER ...
{ "repo_name": "lissyx/build-mozharness", "path": "configs/single_locale/mozilla-aurora_android-api-11.py", "copies": "2", "size": "4504", "license": "mpl-2.0", "hash": 6024144126732914000, "line_mean": 41.4905660377, "line_max": 146, "alpha_frac": 0.565053286, "autogenerated": false, "ratio": 3.0...
BRANCH = "mozilla-aurora" MOZ_UPDATE_CHANNEL = "aurora" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-9/en-US" % (BRANCH) #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.mozilla.org" STAGE_USER =...
{ "repo_name": "walac/build-mozharness", "path": "configs/single_locale/mozilla-aurora_android-api-9.py", "copies": "1", "size": "4590", "license": "mpl-2.0", "hash": -3853470390559300600, "line_mean": 41.8971962617, "line_max": 145, "alpha_frac": 0.5675381264, "autogenerated": false, "ratio": 3.0...
BRANCH = "mozilla-aurora" MOZ_UPDATE_CHANNEL = "aurora" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android/en-US" % (BRANCH) #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.mozilla.org" STAGE_USER = "ffxb...
{ "repo_name": "kartikgupta0909/gittest", "path": "configs/single_locale/mozilla-aurora_android.py", "copies": "2", "size": "5001", "license": "mpl-2.0", "hash": 4300401768102734300, "line_mean": 41.3813559322, "line_max": 139, "alpha_frac": 0.5736852629, "autogenerated": false, "ratio": 2.9228521...
BRANCH = "mozilla-beta" MOZ_UPDATE_CHANNEL = "beta" MOZILLA_DIR = BRANCH JAVA_HOME = "/tools/jdk6" JARSIGNER = "tools/release/signing/mozpass.py" OBJDIR = "obj-l10n" STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version)s-can...
{ "repo_name": "ctalbert/mozharness", "path": "configs/single_locale/staging_release_mozilla-beta_android.py", "copies": "1", "size": "2933", "license": "mpl-2.0", "hash": -8570987823811725000, "line_mean": 37.5921052632, "line_max": 176, "alpha_frac": 0.6106375725, "autogenerated": false, "ratio"...
BRANCH = "mozilla-beta" MOZ_UPDATE_CHANNEL = "beta" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-15/en-US" HG_SHARE_BASE_DIR = "/builds/hg-shared" config = { "stage_product": "mobile", "log_nam...
{ "repo_name": "cstipkovic/spidermonkey-research", "path": "testing/mozharness/configs/single_locale/release_mozilla-beta_android_api_15.py", "copies": "1", "size": "4456", "license": "mpl-2.0", "hash": 6857985812053444000, "line_mean": 44.4693877551, "line_max": 205, "alpha_frac": 0.565529623, "aut...
BRANCH = "mozilla-beta" MOZ_UPDATE_CHANNEL = "beta" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-11/en-US" #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.mozilla...
{ "repo_name": "armenzg/build-mozharness", "path": "configs/single_locale/release_mozilla-beta_android_api_11.py", "copies": "2", "size": "4932", "license": "mpl-2.0", "hash": -3907617136553975300, "line_mean": 41.1538461538, "line_max": 183, "alpha_frac": 0.5654906732, "autogenerated": false, "ra...
BRANCH = "mozilla-beta" MOZ_UPDATE_CHANNEL = "beta" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" STAGE_SERVER = "ftp.stage.mozaws.net" EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-15/en-US" HG_SHARE_BASE_DIR = "/builds/hg-shared" config = { ...
{ "repo_name": "cstipkovic/spidermonkey-research", "path": "testing/mozharness/configs/single_locale/staging_release_mozilla-beta_android_api_15.py", "copies": "1", "size": "4510", "license": "mpl-2.0", "hash": -3578078799729503700, "line_mean": 45.0204081633, "line_max": 205, "alpha_frac": 0.56784922...
BRANCH = "mozilla-central" MOZILLA_DIR = BRANCH HG_SHARE_BASE_DIR = "/builds/hg-shared" EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central" OBJDIR = "obj-l10n" MOZ_UPDATE_CHANNEL = "nightly" STAGE_SERVER = "dev-stage01.build.sjc1.mozilla.com" #STAGE_SERVER = "stage.mozilla...
{ "repo_name": "escapewindow/mozharness", "path": "configs/single_locale/mozilla-central_linux64.py", "copies": "3", "size": "5098", "license": "mpl-2.0", "hash": -4451475066603245600, "line_mean": 39.784, "line_max": 141, "alpha_frac": 0.6180855237, "autogenerated": false, "ratio": 2.718933333333...
BRANCH = "mozilla-central" MOZILLA_DIR = BRANCH HG_SHARE_BASE_DIR = "/builds/hg-shared" EN_US_BINARY_URL = "https://ftp-ssl.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central" OBJDIR = "obj-l10n" MOZ_UPDATE_CHANNEL = "nightly" STAGE_SERVER = "dev-stage01.build.sjc1.mozilla.com" #STAGE_SERVER = "stage.mo...
{ "repo_name": "lundjordan/mozharness", "path": "configs/single_locale/mozilla-central_linux.py", "copies": "1", "size": "5054", "license": "mpl-2.0", "hash": -7777366791706832000, "line_mean": 39.1111111111, "line_max": 141, "alpha_frac": 0.6183221211, "autogenerated": false, "ratio": 2.755725190...
BRANCH = "mozilla-central" MOZ_UPDATE_CHANNEL = "nightly" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android-api-9/en-US" % (BRANCH) #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.mozilla.org" STAGE_USER...
{ "repo_name": "simar7/build-mozharness", "path": "configs/single_locale/mozilla-central_android-api-9.py", "copies": "2", "size": "5014", "license": "mpl-2.0", "hash": 1599844841058828300, "line_mean": 41.4915254237, "line_max": 146, "alpha_frac": 0.5743917032, "autogenerated": false, "ratio": 2....
BRANCH = "mozilla-central" MOZ_UPDATE_CHANNEL = "nightly" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://stage.mozilla.org/pub/mozilla.org/mobile/nightly/latest-%s-android/en-US" % (BRANCH) #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.mozilla.org" STAGE_USER = "ff...
{ "repo_name": "kartikgupta0909/mozilla-mozharness", "path": "configs/single_locale/mozilla-central_android.py", "copies": "2", "size": "4985", "license": "mpl-2.0", "hash": -2721378657651909600, "line_mean": 41.2457627119, "line_max": 140, "alpha_frac": 0.5733199599, "autogenerated": false, "rati...
BRANCH = "mozilla-release" MOZ_UPDATE_CHANNEL = "release" MOZILLA_DIR = BRANCH JAVA_HOME = "/tools/jdk6" JARSIGNER = "tools/release/signing/mozpass.py" OBJDIR = "obj-l10n" STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" EN_US_BINARY_URL = "http://" + STAGE_SERVER + "/pub/mozilla.org/mobile/candidates/%(version...
{ "repo_name": "ctalbert/mozharness", "path": "configs/single_locale/staging_release_mozilla-release_android.py", "copies": "1", "size": "2948", "license": "mpl-2.0", "hash": 7840341874117961000, "line_mean": 37.7894736842, "line_max": 176, "alpha_frac": 0.6126187246, "autogenerated": false, "rati...
BRANCH = "mozilla-release" MOZ_UPDATE_CHANNEL = "release" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://archive.mozilla.org/pub/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-9/en-US" HG_SHARE_BASE_DIR = "/builds/hg-shared" config = { "stage_product": "mobile", "lo...
{ "repo_name": "cstipkovic/spidermonkey-research", "path": "testing/mozharness/configs/single_locale/release_mozilla-release_android_api_9.py", "copies": "1", "size": "4482", "license": "mpl-2.0", "hash": -7298455832225021000, "line_mean": 44.7346938776, "line_max": 204, "alpha_frac": 0.5676037483, ...
BRANCH = "mozilla-release" MOZ_UPDATE_CHANNEL = "release" MOZILLA_DIR = BRANCH OBJDIR = "obj-l10n" EN_US_BINARY_URL = "http://ftp.mozilla.org/pub/mozilla.org/mobile/candidates/%(version)s-candidates/build%(buildnum)d/android-api-11/en-US" #STAGE_SERVER = "dev-stage01.srv.releng.scl3.mozilla.com" STAGE_SERVER = "stage.m...
{ "repo_name": "walac/build-mozharness", "path": "configs/single_locale/release_mozilla-release_android_api_11.py", "copies": "1", "size": "5021", "license": "mpl-2.0", "hash": -9164070906606724000, "line_mean": 41.5508474576, "line_max": 183, "alpha_frac": 0.5684126668, "autogenerated": false, "r...
"""Branch naming conventions for 'arcyd-review/description/base' style.""" # ============================================================================= # CONTENTS # ----------------------------------------------------------------------------- # abdt_classicnaming # # Public Classes: # Naming # .make_tracker_bra...
{ "repo_name": "cs-shadow/phabricator-tools", "path": "py/abd/abdt_classicnaming.py", "copies": "4", "size": "6547", "license": "apache-2.0", "hash": -4948766706816758000, "line_mean": 33.8244680851, "line_max": 79, "alpha_frac": 0.5617840232, "autogenerated": false, "ratio": 4.332892124420913, ...
"""Branch naming conventions for 'r/base/description' style.""" # ============================================================================= # CONTENTS # ----------------------------------------------------------------------------- # abdt_rbranchnaming # # Public Classes: # Naming # .make_tracker_branch_from_na...
{ "repo_name": "cs-shadow/phabricator-tools", "path": "py/abd/abdt_rbranchnaming.py", "copies": "4", "size": "6869", "license": "apache-2.0", "hash": 4273413323649407500, "line_mean": 35.1526315789, "line_max": 79, "alpha_frac": 0.5642742757, "autogenerated": false, "ratio": 4.35573874445149, "c...
#Brandon Lee #14010627X #10/31/14 #Assignment 7 """ countLetters() - Pseudocode Import libraries: import os function definition: def countLetters(fileName, fileContent): create list with all l...
{ "repo_name": "brandonlee503/Intro-to-Computing-Projects", "path": "COMP1001_Assignment7_14010627X.py", "copies": "1", "size": "5615", "license": "mit", "hash": 6320989071863096000, "line_mean": 57.4895833333, "line_max": 165, "alpha_frac": 0.4630454141, "autogenerated": false, "ratio": 4.9340949...
#Brandon Lee #14010627X #Assignment 4 #10/8/14 #Pseudocode #Function Definition: def main(): #Prompt user for start and end numbers: start, end = eval(input("prompt")) #Prompt user for the row size and number of spaces: rowSize, spaceNum = eval(input("prompt")) # # #Declare a variable for numbe...
{ "repo_name": "brandonlee503/Intro-to-Computing-Projects", "path": "COMP1001_Assignment4_14010627X.py", "copies": "1", "size": "1565", "license": "mit", "hash": -8686424106358727000, "line_mean": 39.1282051282, "line_max": 129, "alpha_frac": 0.6626198083, "autogenerated": false, "ratio": 3.365591...
#Brandon Lee #ID: 14010627X #9/17/2014 #COMP1001 #Assignment 1 #PSEUDOCODE #function definition: def main() #prompt user to input n value: n = eval(input("string")) #create for loop with a range of the user input...
{ "repo_name": "brandonlee503/Intro-to-Computing-Projects", "path": "COMP1001_Assignment1_14010627X.py", "copies": "1", "size": "1074", "license": "mit", "hash": 394695502730284000, "line_mean": 42, "line_max": 113, "alpha_frac": 0.5484171322, "autogenerated": false, "ratio": 4.178988326848249, ...
#Brandon Lee #ID: 14010627X #9/26/14 #Question 1 Pseudocode: #function definition: def main(): #prompt user input for first name: firstName = input("String Prompt") #prompt user input for last time: lastName = input("String Prompt") #combine both inputs into a single string: ful...
{ "repo_name": "brandonlee503/Intro-to-Computing-Projects", "path": "COMP1001_Assignment2_14010627X.py", "copies": "1", "size": "2082", "license": "mit", "hash": 1539077255949060000, "line_mean": 42.3958333333, "line_max": 121, "alpha_frac": 0.6676272815, "autogenerated": false, "ratio": 3.2582159...
# Brandon Michael # cis142 # checkForQuadrant.py # Goal: This program will keep asking for input values to check for the quadrant postion, # origin, x-axis and y axis postions # Notes: I used a while loop to make testing values easier and I used the input x,y # Display program instructions print("####################...
{ "repo_name": "bwmichael/jccc-cis142-python", "path": "old/check-quadrant.py", "copies": "1", "size": "3124", "license": "apache-2.0", "hash": -382216137641463230, "line_mean": 45.6268656716, "line_max": 93, "alpha_frac": 0.5771446863, "autogenerated": false, "ratio": 4.233062330623306, "config...
# Brandon Michael # CIS 142 # Get length and width input values, run some basic calculations, then display results ## import Math libraries import math ## Declare functions ## Calculate the Perimeter of a rectangle ## P = (2l) + (2w) def calcPerimeter(l, w): length = int(l) width = int(w) result = (2*length)...
{ "repo_name": "bwmichael/jccc-cis142-python", "path": "old/calculate-area.py", "copies": "1", "size": "1053", "license": "apache-2.0", "hash": 2235744044730204000, "line_mean": 22.9545454545, "line_max": 86, "alpha_frac": 0.6676163343, "autogenerated": false, "ratio": 3.1716867469879517, "confi...
# BrandProject.py # # Brand a VSS project with a "build number", then optionally # stamp DLL/EXE files with version information. import win32api, os, string, sys import vssutil import bulkstamp def BrandProject(vssProjectName, descFile, stampPath, filesToSubstitute, buildDesc = None, auto=0, bRebrand = 0): # vssPro...
{ "repo_name": "sserrot/champion_relationships", "path": "venv/Lib/site-packages/win32/scripts/VersionStamp/BrandProject.py", "copies": "7", "size": "2509", "license": "mit", "hash": -803223667524921900, "line_mean": 29.975308642, "line_max": 113, "alpha_frac": 0.7062574731, "autogenerated": false, ...
"""brca URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
{ "repo_name": "BD2KGenomics/brca-website", "path": "django/brca/urls.py", "copies": "1", "size": "1396", "license": "apache-2.0", "hash": -205337208555144540, "line_mean": 38.8857142857, "line_max": 92, "alpha_frac": 0.6146131805, "autogenerated": false, "ratio": 3.8457300275482096, "config_tes...
BREADABILITY_AVAILABLE = True try: from breadability.readable import Article, prep_article, check_siblings except ImportError: BREADABILITY_AVAILABLE = False Article = object from operator import attrgetter from werkzeug.utils import cached_property import re from lxml.etree import tounicode, tostring ...
{ "repo_name": "denz/swarm-crawler", "path": "swarm_crawler/text.py", "copies": "1", "size": "2172", "license": "bsd-3-clause", "hash": 5846517453122105000, "line_mean": 32.4307692308, "line_max": 79, "alpha_frac": 0.6049723757, "autogenerated": false, "ratio": 4.09811320754717, "config_test": f...
"""Breadcrumb module for Zinnia""" import re from datetime import datetime from functools import wraps from django.core.urlresolvers import reverse from django.utils.dateformat import format from django.utils.timezone import is_aware from django.utils.timezone import localtime from django.utils.translation import uget...
{ "repo_name": "ghachey/django-blog-zinnia", "path": "zinnia/breadcrumbs.py", "copies": "2", "size": "4837", "license": "bsd-3-clause", "hash": -2253223687259193900, "line_mean": 30.614379085, "line_max": 79, "alpha_frac": 0.5532354765, "autogenerated": false, "ratio": 3.645064054257724, "config...
"""Breadcrumb module for Zinnia""" import re from datetime import datetime from functools import wraps from django.urls import reverse from django.utils.dateformat import DateFormat from django.utils.timezone import is_aware from django.utils.timezone import localtime from django.utils.translation import gettext as _ ...
{ "repo_name": "Fantomas42/django-blog-zinnia", "path": "zinnia/breadcrumbs.py", "copies": "1", "size": "4839", "license": "bsd-3-clause", "hash": -5279486247093683000, "line_mean": 30.4220779221, "line_max": 79, "alpha_frac": 0.5532134739, "autogenerated": false, "ratio": 3.6438253012048194, "c...
"""Breadcrumb module for Zinnia""" import re from functools import wraps from datetime import datetime from django.utils.dateformat import format from django.utils.timezone import is_aware from django.utils.timezone import localtime from django.core.urlresolvers import reverse from django.utils.translation import uget...
{ "repo_name": "pczhaoyun/obtainfo", "path": "zinnia/breadcrumbs.py", "copies": "1", "size": "5059", "license": "apache-2.0", "hash": 5812660477820116000, "line_mean": 30.4223602484, "line_max": 79, "alpha_frac": 0.5633524412, "autogenerated": false, "ratio": 3.6421886249100073, "config_test": f...
"""Breadcrumb module for Zinnia templatetags""" import re from datetime import datetime from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ class Crumb(object): """Part of the Breadcrumbs""" def __init__(self, name, url=None): self.name = name self....
{ "repo_name": "jfdsmit/django-blog-zinnia", "path": "zinnia/templatetags/zbreadcrumbs.py", "copies": "1", "size": "3619", "license": "bsd-3-clause", "hash": -2522704022275343400, "line_mean": 35.19, "line_max": 79, "alpha_frac": 0.5421387124, "autogenerated": false, "ratio": 3.7974816369359914, ...
"""Breadcrumb module for Zinnia templatetags""" import re from functools import wraps from datetime import datetime from django.utils.dateformat import format from django.utils.timezone import localtime from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ class Crumb(object...
{ "repo_name": "westinedu/similarinterest", "path": "zinnia/templatetags/zbreadcrumbs.py", "copies": "2", "size": "4783", "license": "bsd-3-clause", "hash": -3006261293929275000, "line_mean": 34.1691176471, "line_max": 79, "alpha_frac": 0.5598996446, "autogenerated": false, "ratio": 3.682063125481...
# BREAD for Field Staff from django.utils.translation import ugettext_lazy as _ from bread.bread import LabelValueReadView, EditView, AddView import django_filters from libya_elections.libya_bread import PaginatedBrowseView, SoftDeleteBread, StaffBreadMixin from libya_elections.utils import format_tristate, get_verbo...
{ "repo_name": "SmartElect/SmartElect", "path": "help_desk/views/fieldstaff_views.py", "copies": "1", "size": "2351", "license": "apache-2.0", "hash": -1965023001714368000, "line_mean": 35.1692307692, "line_max": 93, "alpha_frac": 0.6839642705, "autogenerated": false, "ratio": 3.6003062787136293, ...
"""breadStore API schemas.""" # Third-party modules import colander # Application modules from . import resources from . import util def load(schema, request, content_type='application/json'): """Deserializes the values according to the given Colander schema. Field names are changed from JavaScript to Python n...
{ "repo_name": "edelooff/breadStore", "path": "breadstore/schemas.py", "copies": "1", "size": "2998", "license": "mit", "hash": 6475963653389911000, "line_mean": 31.9450549451, "line_max": 80, "alpha_frac": 0.7091394263, "autogenerated": false, "ratio": 3.714993804213135, "config_test": false, ...
"""breadStore API utilities library.""" # Standard modules import base64 import random import re import struct import time def case_transform_python(name): """Converts a camelCase name to a lower_with_under name.""" def converter(match): return '_' + match.group(1).lower() return re.sub('([A-Z])', converte...
{ "repo_name": "edelooff/breadStore", "path": "breadstore/util.py", "copies": "1", "size": "1425", "license": "mit", "hash": -4532282022364459500, "line_mean": 28.0816326531, "line_max": 75, "alpha_frac": 0.7031578947, "autogenerated": false, "ratio": 3.6917098445595853, "config_test": false, ...
"""breadStore API views - errors module.""" # Third-party modules from pyramid import httpexceptions as exc from pyramid.view import view_config @view_config(context='colander.Invalid') def schema_validation_error(validation_result, request): """Handles schema validation errors.""" return error_response( r...
{ "repo_name": "edelooff/breadStore", "path": "breadstore/views/error.py", "copies": "1", "size": "1212", "license": "mit", "hash": 5580784674512538000, "line_mean": 30.0769230769, "line_max": 72, "alpha_frac": 0.7384488449, "autogenerated": false, "ratio": 3.9223300970873787, "config_test": fal...
"""breadStore API views - session module.""" # Standard modules import operator # Third-party modules from pyramid import httpexceptions as exc from pyramid import security from pyramid.view import view_config from pyramid.view import view_defaults # Application modules from .. import models from .. import schemas ...
{ "repo_name": "edelooff/breadStore", "path": "breadstore/views/session.py", "copies": "1", "size": "1610", "license": "mit", "hash": 7434591844873889000, "line_mean": 34, "line_max": 74, "alpha_frac": 0.7211180124, "autogenerated": false, "ratio": 3.888888888888889, "config_test": false, "has...
"""breadStore API views - subscription module.""" # Third-party modules from pyramid import httpexceptions as exc from pyramid.view import view_config from pyramid.view import view_defaults # Application modules from .. import resources from .. import schemas @view_defaults(context='..resources.Subscription') class ...
{ "repo_name": "edelooff/breadStore", "path": "breadstore/views/subscription.py", "copies": "1", "size": "1378", "license": "mit", "hash": 2408768517251091500, "line_mean": 32.6097560976, "line_max": 77, "alpha_frac": 0.7111756168, "autogenerated": false, "ratio": 4.188449848024316, "config_test...
"""breadStore model definitions.""" # Standard modyles import datetime import hashlib import pytz import re # Third-party modules import bcrypt import sqlalchemy from sqlalchemy import ( Boolean, Date, Enum, Integer, SmallInteger, String, Text, Unicode) from sqlalchemy.dialects import mysql as types from sqlalche...
{ "repo_name": "edelooff/breadStore", "path": "breadstore/models.py", "copies": "1", "size": "12568", "license": "mit", "hash": -4190367593524914000, "line_mean": 31.8146214099, "line_max": 80, "alpha_frac": 0.681572247, "autogenerated": false, "ratio": 3.4565456545654567, "config_test": false, ...
"""breadStore Web API installation script.""" import os from setuptools import setup, find_packages REQUIREMENTS = [ 'bcrypt', 'colander', 'mysql-python', 'pyramid', 'pyramid_debugtoolbar', 'pyramid_tm', 'pytz', 'simplejson', 'sqlalchemy', 'transaction', 'waitress', 'z...
{ "repo_name": "edelooff/breadStore", "path": "setup.py", "copies": "1", "size": "1202", "license": "mit", "hash": -1511972365324646700, "line_mean": 22.568627451, "line_max": 80, "alpha_frac": 0.6164725458, "autogenerated": false, "ratio": 3.545722713864307, "config_test": false, "has_no_keyw...
# Breadth-first and depth-first searches. # The only difference is how you pop from the queue of nodes left to visit. from collections import deque class Node: """ Represents a graph node, with a value and list on neighbours """ def __init__(self, value): self.value = value self.neig...
{ "repo_name": "alexakarpov/python-practice", "path": "graph_problems.py", "copies": "2", "size": "1342", "license": "mit", "hash": 9149441979782110000, "line_mean": 20.3015873016, "line_max": 84, "alpha_frac": 0.5953800298, "autogenerated": false, "ratio": 3.0921658986175116, "config_test": fal...
"""Breadth first search. Executes breadth first search from given node and creates BFS tree during the process. Behavior can be customized by providing hooks that will be called right after vertex processing starts, when edge is processed and right before vertex processing ends. BFS can be terminated early by raising a...
{ "repo_name": "niemmi/algolib", "path": "algolib/graph/bfs.py", "copies": "1", "size": "4792", "license": "bsd-3-clause", "hash": -8299893576733242000, "line_mean": 39.9572649573, "line_max": 80, "alpha_frac": 0.6116444073, "autogenerated": false, "ratio": 4.612127045235804, "config_test": fals...
"""Breadth-First Search is a search strategy where, starting at the root of a tree of nodes to explore, each node's children are explored in turn, with priority given to nodes closest to the root. """ class Node: """A node represents a particular point in search space, contained within the tree of state spaces...
{ "repo_name": "PhilipCastiglione/learning-machines", "path": "uninformed_search/algorithms/bfs.py", "copies": "1", "size": "4184", "license": "mit", "hash": 8770057969277241000, "line_mean": 38.4716981132, "line_max": 86, "alpha_frac": 0.6278680688, "autogenerated": false, "ratio": 4.326783867631...
# Breadth First Search def bfs(graph, start): color = dict() distance = dict() parent= dict() for key in graph.keys(): color[key] = 'W' distance[key] = 0 parent[key] = None color[start] = 'G' queue = list() queue.append(start) while len(queue) > 0: u = q...
{ "repo_name": "saqibns/standard-algorithms", "path": "Python/graph_search.py", "copies": "1", "size": "1937", "license": "mit", "hash": 8544643562649415000, "line_mean": 22.9135802469, "line_max": 203, "alpha_frac": 0.472379969, "autogenerated": false, "ratio": 3.031298904538341, "config_test":...
""" Breadth-first search This ignores the distance between the city data, and just cares about number of hops. This implementation is admittedly tightly-coupled to my particular city_data data set (to add clarity in understanding by making it tied to concrete data). The city_data is a list of 28 large cities in the ...
{ "repo_name": "calebmadrigal/algorithms-in-python", "path": "breadth_first_search.py", "copies": "1", "size": "2356", "license": "mit", "hash": 95673616914906290, "line_mean": 29.5974025974, "line_max": 103, "alpha_frac": 0.6315789474, "autogenerated": false, "ratio": 3.3997113997114, "config_t...
# BREADTH-FIRST-SEARCH # Visit an initial vertex, and then visit every one of its # neighbours. Only when every neighbour vertex has been # visited then move to a neighbour of a neighbour. Each time # the seach comes to a new vertex it visits all of its # neighbours before visiting any that are further from the # st...
{ "repo_name": "melayev/algods", "path": "bfs.py", "copies": "1", "size": "2241", "license": "mit", "hash": -3690646531087997400, "line_mean": 29.2837837838, "line_max": 63, "alpha_frac": 0.61535029, "autogenerated": false, "ratio": 2.8990944372574385, "config_test": false, "has_no_keywords": ...
"""Breadth First Search on a graph""" from sets import Set from linked_list import Node class lightQueue(object): """Simple queue""" def __init__(self): self.head = None self.tail = None def enqueue(self, lst): """Enqueue a list of nodes""" for obj in lst: if ...
{ "repo_name": "radome/algorithms_and_data_structures", "path": "Python/bfs.py", "copies": "1", "size": "1570", "license": "apache-2.0", "hash": 9031230088479261000, "line_mean": 25.6101694915, "line_max": 69, "alpha_frac": 0.5522292994, "autogenerated": false, "ratio": 4.120734908136483, "confi...
"""Basic algorithms for breadth-first searching the nodes of a graph.""" import networkx as nx from collections import deque __all__ = [ 'bfs_edges', 'bfs_tree', 'bfs_predecessors', 'bfs_successors', 'descendants_at_distance' ] def generic_bfs_edges(G, source, neighbors=None, depth_limit=None): """Iterat...
{ "repo_name": "sserrot/champion_relationships", "path": "venv/Lib/site-packages/networkx/algorithms/traversal/breadth_first_search.py", "copies": "1", "size": "10968", "license": "mit", "hash": 4008197121710279700, "line_mean": 27.9393139842, "line_max": 80, "alpha_frac": 0.5958242159, "autogenerat...
"""Break a subroutine with an icebreaker.""" from csrv.model import appropriations from csrv.model import cost from csrv.model import errors from csrv.model import events from csrv.model import game_object from csrv.model import parameters from csrv.model.actions import action from csrv.model.cards import card_info ...
{ "repo_name": "mrroach/CentralServer", "path": "csrv/model/actions/break_subroutine.py", "copies": "1", "size": "2127", "license": "apache-2.0", "hash": 6346978899736637000, "line_mean": 33.3064516129, "line_max": 80, "alpha_frac": 0.6737188528, "autogenerated": false, "ratio": 3.4306451612903226...
# break, breaks the loop, when we use break in our code, # as soon as the line contains break runs, compiler ignors # next iterations of loop and goes to the first line after # for or while loop n = 1 while n < 1000: print n if n > 5: break n += 1 # we expect the loop iterate over all number...
{ "repo_name": "iamvee/Python-Course", "path": "Topics/02.Loops/05.break_continue.py", "copies": "1", "size": "1731", "license": "mit", "hash": 3403462832769244700, "line_mean": 25.2272727273, "line_max": 86, "alpha_frac": 0.6556903524, "autogenerated": false, "ratio": 3.2537593984962405, "confi...
#breakout.py #A. Colwell (2015) # graphics2 module returns a TUPLE when using .getOverlap() # The tuple will have two numbers, indicating which objects # have overlapped. Only useful if you know the corresponding # object. In this case, the first brick (brick1) is the first # object drawn in the window, and the...
{ "repo_name": "MrColwell/PythonProfessionalLearning", "path": "PythonForTeachers/StudentCode/Example6_BrickBreaker.py", "copies": "1", "size": "13772", "license": "mit", "hash": -4500066207762560000, "line_mean": 33.7714285714, "line_max": 95, "alpha_frac": 0.4912140575, "autogenerated": false, "...
# graphics2 module returns a TUPLE when using .getOverlap(win) # The tuple will have two numbers, indicating which objects # have overlapped. Only useful if you know the corresponding # object. In this case, the first brick (brick1) is the first # object drawn in the window, and therefore the object 1. # All the...
{ "repo_name": "MrColwell/PythonProfessionalLearning", "path": "PythonForTeachers/StudentCode/Example7_BrickBreaker.py", "copies": "1", "size": "11003", "license": "mit", "hash": -5863205864398454000, "line_mean": 31.5457317073, "line_max": 134, "alpha_frac": 0.5606652731, "autogenerated": false, ...
#breakoutV2.py #A. Colwell (2015) # graphics2 module returns a TUPLE when using .getOverlap() # The tuple will have two numbers, indicating which objects # have overlapped. Only useful if you know the corresponding # object. In this case, the first brick (brick1) is the first # object drawn in the window, and t...
{ "repo_name": "MrColwell/PythonProfessionalLearning", "path": "PythonForTeachers/StudentCode/z_breakout_V2.py", "copies": "1", "size": "10919", "license": "mit", "hash": -4316338920700713500, "line_mean": 26.8100263852, "line_max": 87, "alpha_frac": 0.6051836249, "autogenerated": false, "ratio": ...
""" Breakpoint utility using IPython shell """ __author__ = 'Luke Campbell (Originally Dave Foster)' import functools import inspect import traceback import time import sys def breakpoint(scope=None, global_scope=None): from IPython.config.loader import Config ipy_config = Config() ipy_config.PromptMana...
{ "repo_name": "scionrep/scioncc", "path": "src/pyon/util/breakpoint.py", "copies": "1", "size": "5347", "license": "bsd-2-clause", "hash": -1673310694467535400, "line_mean": 33.7207792208, "line_max": 124, "alpha_frac": 0.5990274921, "autogenerated": false, "ratio": 3.877447425670776, "config_t...
"""Break repeating-key XOR. """ import base64 from collections import Counter import itertools import os import challenge_3 KEY_LENGTH_DELTA = 0.1 def compute_coincidence_index(buffer): """buffer: byte-like object.""" frequency_distribution = Counter( b for b in buffer ) N = len(buffer) ...
{ "repo_name": "vitkarpenko/cryptopals", "path": "set_1/challenge_6.py", "copies": "1", "size": "2833", "license": "mit", "hash": -2256320554484019200, "line_mean": 24.7545454545, "line_max": 79, "alpha_frac": 0.5898340981, "autogenerated": false, "ratio": 3.590621039290241, "config_test": false...
# Break skeleton into segments import os import cv2 from plantcv.plantcv import dilate from plantcv.plantcv import params from plantcv.plantcv import plot_image from plantcv.plantcv import print_image from plantcv.plantcv import find_objects from plantcv.plantcv import color_palette from plantcv.plantcv import image_s...
{ "repo_name": "danforthcenter/plantcv", "path": "plantcv/plantcv/morphology/segment_skeleton.py", "copies": "2", "size": "2154", "license": "mit", "hash": -4348518315001460000, "line_mean": 30.2173913043, "line_max": 119, "alpha_frac": 0.6824512535, "autogenerated": false, "ratio": 3.694682675814...
"""breaks up a sequence from a .fa file into kmerlength, and compares to kmers from other genomes """ #python k-mer.py [reference1.fa] [comparison1.fa] [comparison.fa] [comparison3.fa] > filename.fa import sys import screed def consume_genome(fname): """reads through a .fa file, returning names and sequences""" ...
{ "repo_name": "jflater/Ederson-hpc", "path": "Scripts/k_mer.py", "copies": "1", "size": "1542", "license": "mit", "hash": -8462223848542306000, "line_mean": 27.0363636364, "line_max": 97, "alpha_frac": 0.6232166018, "autogenerated": false, "ratio": 3.219206680584551, "config_test": false, "ha...
##===-- breakwin.py ------------------------------------------*- Python -*-===## ## # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception ## ##===------------------------------...
{ "repo_name": "llvm-mirror/lldb", "path": "utils/lui/breakwin.py", "copies": "13", "size": "3297", "license": "apache-2.0", "hash": 4833653223443102000, "line_mean": 34.4516129032, "line_max": 80, "alpha_frac": 0.5092508341, "autogenerated": false, "ratio": 4.243243243243243, "config_test": fal...
"""Breast Cancer Data""" from statsmodels.datasets import utils as du __docformat__ = 'restructuredtext' COPYRIGHT = """???""" TITLE = """Breast Cancer Data""" SOURCE = """ This is the breast cancer data used in Owen's empirical likelihood. It is taken from Rice, J.A. Mathematical Statistics and Data An...
{ "repo_name": "jseabold/statsmodels", "path": "statsmodels/datasets/cancer/data.py", "copies": "4", "size": "1421", "license": "bsd-3-clause", "hash": 6252038904005277000, "line_mean": 24.8363636364, "line_max": 85, "alpha_frac": 0.6657283603, "autogenerated": false, "ratio": 3.6157760814249365, ...
"""Breast Cancer Data""" __docformat__ = 'restructuredtext' COPYRIGHT = """???""" TITLE = """Breast Cancer Data""" SOURCE = """ This is the breast cancer data used in Owen's empirical likelihood. It is taken from Rice, J.A. Mathematical Statistics and Data Analysis. http://www.cengage.com/statistics/dis...
{ "repo_name": "yl565/statsmodels", "path": "statsmodels/datasets/cancer/data.py", "copies": "5", "size": "1739", "license": "bsd-3-clause", "hash": -5186020185348611000, "line_mean": 28.4745762712, "line_max": 85, "alpha_frac": 0.645773433, "autogenerated": false, "ratio": 3.5635245901639343, "...