text
stringlengths
0
1.05M
meta
dict
from fractions import Fraction print(Fraction(1, 3)) # 1/3 print(Fraction(2, 6)) # 1/3 print(Fraction(3)) # 3 print(Fraction(0.25)) # 1/4 print(Fraction(0.33)) # 5944751508129055/18014398509481984 print(Fraction('2/5')) # 2/5 print(Fraction('16/48')) # 1/3 a = Fraction(1, 3) print(a) # 1/3 print(a.numerator) p...
{ "repo_name": "nkmk/python-snippets", "path": "notebook/fractions_test.py", "copies": "1", "size": "1561", "license": "mit", "hash": 4026253584713573400, "line_mean": 14.0096153846, "line_max": 62, "alpha_frac": 0.6931454196, "autogenerated": false, "ratio": 2.2821637426900585, "config_test": f...
from fractions import Fraction # Waits for user to type something then stores it as a # Stores input as a string a = input() print a # Converts a to an int or a float respectively. # int(a) won't accept an a that is a float i.e 2.0 or a fractional number (3/4) print int(a) + 1 print float(a) + 1 # Executes the try bl...
{ "repo_name": "NTomtishen/src", "path": "GettingUserInput.py", "copies": "1", "size": "1124", "license": "cc0-1.0", "hash": 3918735568987901400, "line_mean": 26.4390243902, "line_max": 87, "alpha_frac": 0.7268683274, "autogenerated": false, "ratio": 3.437308868501529, "config_test": false, "h...
from fractions import Fraction, _RATIONAL_FORMAT from decimal import Decimal import numbers Rational = numbers.Rational class AAFFraction(Fraction): """ Subclass of fractions.Fraction from the standard library. Behaves exactly the same, except doesn't round to the Greatest Common Divisor at the end. ...
{ "repo_name": "wjt/pyaaf", "path": "aaf/fraction_util.py", "copies": "1", "size": "3126", "license": "mit", "hash": -5543872765249963000, "line_mean": 36.2261904762, "line_max": 94, "alpha_frac": 0.4993602047, "autogenerated": false, "ratio": 5.810408921933085, "config_test": false, "has_no_k...
from fractions import Fraction from timeit import timeit def intPow(x, y): if x == y == 0: raise ValueError("Can't raise 0 to 0") if x == 0 and y < 0: raise ValueError("Can't raise 0 to negative power") if x == 0: return 0 negative = y < 0 y = abs(y) dy...
{ "repo_name": "BranislavBajuzik/muni", "path": "IV122/02/C.py", "copies": "1", "size": "1530", "license": "unlicense", "hash": -7238659482744023000, "line_mean": 20.8358208955, "line_max": 106, "alpha_frac": 0.4490196078, "autogenerated": false, "ratio": 3.311688311688312, "config_test": false,...
from fractions import Fraction def answer(pegs): # your code here # This code is based off even and odd case formulas # if n is even, # r0 = -2(p0 - 2(p1 + ... - pn-1) + pn) # # if n is odd, # r0 = -2/3(p0 - 2(p1 + ... - pn-1) + pn) length = len(pegs) # ...
{ "repo_name": "kyle8998/Practice-Coding-Questions", "path": "Google_Foobar/Gearing_Up_For_Destruction/answer.py", "copies": "1", "size": "1459", "license": "unlicense", "hash": -8134319196513770000, "line_mean": 25.0555555556, "line_max": 55, "alpha_frac": 0.4982864976, "autogenerated": false, "r...
from fractions import Fraction # reduces a variable out of a system of equations def reduce(pos, eqtn1, eqtn2): (poly1, val1) = eqtn1 (poly2, val2) = eqtn2 scale = poly1[pos]/poly2[pos] polynomial = [] value = val1 - val2*scale for i in range(len(poly1)): c = poly1...
{ "repo_name": "jonathancary1/equation-solver", "path": "solver.py", "copies": "1", "size": "2596", "license": "mit", "hash": 5427974850741751000, "line_mean": 20.9734513274, "line_max": 52, "alpha_frac": 0.5331278891, "autogenerated": false, "ratio": 3.17359413202934, "config_test": false, "h...
from fractions import gcd from collections import defaultdict import math from itertools import count import numpy as np from prime_numbers import coprime, all_prime_divisors, primesfrom2to from utils import infinite_product, PHI, is_int, fast_2matrix_expon_mod_m def pythagorean_triples(): """ returns (a,b,c)...
{ "repo_name": "CamDavidsonPilon/projecteuler-utils", "path": "number_theory.py", "copies": "1", "size": "8661", "license": "mit", "hash": 3774467902481795000, "line_mean": 24.4735294118, "line_max": 130, "alpha_frac": 0.4949774853, "autogenerated": false, "ratio": 2.9844934527911784, "config_te...
from fractions import gcd from functools import reduce from operator import mul def pythag_triple_summing_to_s(s): """Finds the list of all pythagorean triples summing to n.""" # All PPTs can be generated using coprime (m, n) of opposite # parity with m > n. The triple for (m, n) is as follows: # a =...
{ "repo_name": "peterstace/project-euler", "path": "OLD_PY_CODE/project_euler_py/pe0009.py", "copies": "1", "size": "1032", "license": "unlicense", "hash": -514503525803918850, "line_mean": 30.2727272727, "line_max": 74, "alpha_frac": 0.4815891473, "autogenerated": false, "ratio": 2.81198910081743...
from fractions import gcd from itertools import combinations from number_theory import isqrt, perfect_square def integer_120_triangles(side_limit): """ Generates all primitive integer length triangles with a 120 degree angle. These are the integer solutions to the equation: a^2 + b^2 - 2*a*b*co...
{ "repo_name": "peterstace/project-euler", "path": "OLD_PY_CODE/project_euler_old_old/143/143.py", "copies": "1", "size": "1463", "license": "unlicense", "hash": 2656384855227454000, "line_mean": 30.8043478261, "line_max": 76, "alpha_frac": 0.5174299385, "autogenerated": false, "ratio": 2.81888246...
from fractions import gcd from itertools import starmap, cycle import utilities import base64 import string import hashlib # Set the output width for formatted strings row_format ="{:>30}" * 2 # Parent class for all defined ciphers class Cipher(): socket = '' def __init__(self, socket): self.socket...
{ "repo_name": "IEEE-NITK/EaaS", "path": "src/cipher.py", "copies": "1", "size": "15312", "license": "mit", "hash": 6887514613805403000, "line_mean": 58.3449612403, "line_max": 325, "alpha_frac": 0.6396708249, "autogenerated": false, "ratio": 3.486111111111111, "config_test": false, "has_no_ke...
from fractions import gcd from random import randint def brent(N): # brent returns a divisor not guaranteed to be prime, returns n if n prime if N%2==0: return 2 y,c,m = randint(1, N-1),randint(1, N-1),randint(1, N-1) g,r,q = 1,1,1 while g==1: x = y for i in range(r): ...
{ "repo_name": "ActiveState/code", "path": "recipes/Python/579049_Prime_factors_integer_Brent/recipe-579049.py", "copies": "1", "size": "1585", "license": "mit", "hash": 8761009667609239000, "line_mean": 21.6428571429, "line_max": 77, "alpha_frac": 0.4757097792, "autogenerated": false, "ratio": 2....
from fractions import gcd from random import randrange from collections import namedtuple from math import log from binascii import hexlify, unhexlify def is_prime(n, k=30): # http://en.wikipedia.org/wiki/Miller%E2%80%93Rabin_primality_test if n <= 3: return n == 2 or n == 3 neg_one = n - 1 # ...
{ "repo_name": "ActiveState/code", "path": "recipes/Python/577737_Public_Key_Encryption_RSA/recipe-577737.py", "copies": "1", "size": "4087", "license": "mit", "hash": 6274474385554986000, "line_mean": 28.8321167883, "line_max": 91, "alpha_frac": 0.5678982138, "autogenerated": false, "ratio": 3.40...
from fractions import gcd from random import randrange, random from collections import namedtuple from math import log from binascii import hexlify, unhexlify def is_prime(n, k=30): if n <= 3: return n == 2 or n == 3 neg_one = n - 1 s, d = 0, neg_one while not d & 1: s, d = s+1, d>>1 ...
{ "repo_name": "kelleyb/CryptoProject", "path": "blind_signature.py", "copies": "1", "size": "3908", "license": "mit", "hash": -4842708028764394000, "line_mean": 27.3260869565, "line_max": 91, "alpha_frac": 0.5834186285, "autogenerated": false, "ratio": 3.2377796188898094, "config_test": false, ...
from fractions import gcd def answer(): def ppts(s): """Finds the list of all pythagorean triples summing <= s.""" # All PPTs can be generated using coprime (m, n) of opposite # parity with m > n. The triple for (m, n) is as follows: # a = m^2 - n^2 # b = 2mn # ...
{ "repo_name": "peterstace/project-euler", "path": "OLD_PY_CODE/project_euler_py/pe0039.py", "copies": "1", "size": "1325", "license": "unlicense", "hash": 7954583874122867000, "line_mean": 31.3170731707, "line_max": 78, "alpha_frac": 0.3916981132, "autogenerated": false, "ratio": 3.30423940149625...
from fractions import gcd def calculateSteps(target, container1, container2): if target > container1 and target > container2: print -1 else: if target % gcd(container1, container2) != 0: print -1 else: result = {} class Container: def __init__(self): self.weight = 0 self.size = 0 d...
{ "repo_name": "prabhugs/scripts", "path": "bucket.py", "copies": "1", "size": "4012", "license": "mit", "hash": -2081578368676693200, "line_mean": 23.7654320988, "line_max": 113, "alpha_frac": 0.6455633101, "autogenerated": false, "ratio": 3.397121083827265, "config_test": false, "has_no_keyw...
from fractions import gcd class Fraction: def __init__(self, nominator, denominator): self.nominator = nominator self.denominator = denominator # least common multiple @staticmethod def lcm(a, b): absolute_value = abs(a * b) greatest_common_divisor = gcd(a, b) ...
{ "repo_name": "stoilov/Programming101", "path": "week1/1-Python-OOP-problems-set/Fraction_class.py", "copies": "1", "size": "1835", "license": "mit", "hash": 880556407394470800, "line_mean": 28.126984127, "line_max": 71, "alpha_frac": 0.5967302452, "autogenerated": false, "ratio": 3.3485401459854...
from fractions import gcd ''' Note: we represent the matrix [a+b a] [a b] with the pair (a,b) ''' def mmul((a,b),(c,d),m): ''' Multiply the matrices (a,b) and (c,d), i.e. [a+b a] [c+d c] [a b] and [c d] ''' bd = b*d return ( ((a+b)*(c+d) - bd) % m, (a*c +...
{ "repo_name": "atupal/oj", "path": "hackerrank/contests/algorithms/infinitum11/refer_h.py", "copies": "1", "size": "1523", "license": "mit", "hash": 8367642447096526000, "line_mean": 20.1527777778, "line_max": 72, "alpha_frac": 0.4576493762, "autogenerated": false, "ratio": 2.092032967032967, "...
from fragment_capping.helpers.molecule import molecule_from_pdb_str, Molecule, Atom PDBS = { 'ethanol': '''HEADER UNCLASSIFIED 21-Sep-17 TITLE ALL ATOM STRUCTURE FOR MOLECULE LIG AUTHOR GROMOS AUTOMATIC TOPOLOGY BUILDER REVISION 2017-09-18 11:...
{ "repo_name": "bertrand-caron/fragment_capping", "path": "test_pdb.py", "copies": "1", "size": "14937", "license": "mit", "hash": -4169751144348392400, "line_mean": 53.9154411765, "line_max": 213, "alpha_frac": 0.4397134632, "autogenerated": false, "ratio": 2.4386938775510205, "config_test": fa...
from Fragment import * from Matchset import * from Neighbour import * from GetCandidateMatchSet import GetCandidateMatchSet from GetNeighbourhood import GetNeighbourhood from GetGlobalConsistency import GetGlobalConsistency from merge import getMergedFragment from merge import * from SmithWaterman import * from transf...
{ "repo_name": "raltgz/OpenSoft14", "path": "src/GetMergedImage.py", "copies": "2", "size": "3885", "license": "apache-2.0", "hash": 3652255582509922000, "line_mean": 32.5, "line_max": 126, "alpha_frac": 0.4504504505, "autogenerated": false, "ratio": 3.462566844919786, "config_test": false, "h...
from fragstats import * ## TODO 4/23/15-- break this hard-coded monster up into functions ## there is a lot of repeated pieces of code - tighten it up, shrink it def summarize_fragstats(fragstats_df, extensive=False, g4=False, timecheck=False): ## fragstats_df is dataframe from make_fragstats_dataframe() has2...
{ "repo_name": "JohnUrban/poreminion", "path": "poreminion/fragsummary.py", "copies": "1", "size": "65966", "license": "mit", "hash": -1780729879530802700, "line_mean": 82.5012658228, "line_max": 579, "alpha_frac": 0.6632962435, "autogenerated": false, "ratio": 2.573981582643983, "config_test": ...
from frame_buffer import FrameBuffer from functools import partial from replay_memory import ReplayMemory from six.moves import range, zip, zip_longest from stats import Stats import itertools import logging import random import tensorflow as tf import utils class DQNAgent: # Reward penalty on failure for each envi...
{ "repo_name": "viswanathgs/dist-dqn", "path": "src/dqn_agent.py", "copies": "1", "size": "9891", "license": "mit", "hash": 2090276046441375700, "line_mean": 33.7052631579, "line_max": 80, "alpha_frac": 0.6749570316, "autogenerated": false, "ratio": 3.8292682926829267, "config_test": true, "ha...
from ._frame import Command from ._base import ResponseException, Functionality, Irq try: from enum import Enum except ImportError: from enum34 import Enum class DigitalInputs(Functionality): """Attributes and methods needed for operating the digital inputs channels. Args: i2c_hat (:obj:`raspihat...
{ "repo_name": "raspihats/raspihats", "path": "raspihats/i2c_hats/_digital.py", "copies": "1", "size": "8309", "license": "mit", "hash": -601586602694910100, "line_mean": 41.6102564103, "line_max": 135, "alpha_frac": 0.5850282826, "autogenerated": false, "ratio": 3.8378752886836027, "config_test...
from frame import Frame from block import Block from types import FunctionType import operator # Comparison operators are defined in cpython/Include/object.h CMP_OPS = [ operator.lt, operator.le, operator.eq, operator.ne, operator.gt, operator.ge, lambda x, y: x in y, lambda x, y: x no...
{ "repo_name": "mjpatter88/mjpython", "path": "src/virtual_machine.py", "copies": "1", "size": "7665", "license": "mit", "hash": 2874090087558433000, "line_mean": 32.1818181818, "line_max": 108, "alpha_frac": 0.6033920417, "autogenerated": false, "ratio": 3.5884831460674156, "config_test": false...
from frame import Frame from collections import namedtuple from dis import dis Block = namedtuple("Block", "type, handler, stack_height") class VirtualMachineError(Exception): pass class VirtualMachine(object): def __init__(self): self.frames = [] self.frame = None self.return_value =...
{ "repo_name": "doubledherin/my_compiler", "path": "virtual_machine.py", "copies": "1", "size": "11483", "license": "mit", "hash": 5826576555742240000, "line_mean": 28.5192802057, "line_max": 89, "alpha_frac": 0.5338326221, "autogenerated": false, "ratio": 3.8702392989551737, "config_test": fals...
from frame import Frame, OPCODE_TEXT, OPCODE_BINARY __all__ = ['Message', 'TextMessage', 'BinaryMessage'] class Message(object): def __init__(self, opcode, payload): self.opcode = opcode self.payload = payload def frame(self, mask=False): return Frame(self.opcode, self.payload, mask...
{ "repo_name": "taddeus/wspy", "path": "message.py", "copies": "1", "size": "1452", "license": "bsd-3-clause", "hash": -1310995241239097000, "line_mean": 28.04, "line_max": 79, "alpha_frac": 0.6143250689, "autogenerated": false, "ratio": 3.751937984496124, "config_test": false, "has_no_keyword...
from ..frame import H2OFrame import urllib from h2o import expr class TransformAttributeError(AttributeError): def __init__(self,obj,method): super(AttributeError, self).__init__("No {} method for {}".format(method,obj.__class__.__name__)) class H2OTransformer(object): """H2O Transforms H2O Transforms imp...
{ "repo_name": "madmax983/h2o-3", "path": "h2o-py/h2o/transforms/transform_base.py", "copies": "1", "size": "1800", "license": "apache-2.0", "hash": 681776940703868700, "line_mean": 30.5964912281, "line_max": 104, "alpha_frac": 0.6461111111, "autogenerated": false, "ratio": 3.7037037037037037, "...
from ..frame import H2OFrame import urllib class TransformAttributeError(AttributeError): def __init__(self,obj,method): super(AttributeError, self).__init__("No {} method for {}".format(method,obj.__class__.__name__)) class H2OTransformer(object): """H2O Transforms H2O Transforms implement the following ...
{ "repo_name": "pchmieli/h2o-3", "path": "h2o-py/h2o/transforms/transform_base.py", "copies": "1", "size": "1732", "license": "apache-2.0", "hash": 41652200475688020, "line_mean": 30.5090909091, "line_max": 104, "alpha_frac": 0.6443418014, "autogenerated": false, "ratio": 3.7408207343412525, "co...
from ..frame import H2OFrame class TransformAttributeError(AttributeError): def __init__(self,obj,method): super(AttributeError, self).__init__("No {} method for {}".format(method,obj.__class__.__name__)) class H2OTransformer(object): """H2O Transforms H2O Transforms implement the following methods * ...
{ "repo_name": "datachand/h2o-3", "path": "h2o-py/h2o/transforms/transform_base.py", "copies": "3", "size": "1717", "license": "apache-2.0", "hash": -5932748628720131000, "line_mean": 30.2363636364, "line_max": 104, "alpha_frac": 0.6429819453, "autogenerated": false, "ratio": 3.7489082969432315, ...
from frame import makeFrame, parseFrame from settings import TYPE from settings import ConnectReturn as CR from binascii import hexlify, unhexlify frames = [] frames.append(hexlify(makeFrame(TYPE.CONNECT, 1,1,1, name = "daiki", passwd = "10!", will = 1, willTopic = "will/u", willMessag...
{ "repo_name": "ami-GS/pyMQTT", "path": "test.py", "copies": "1", "size": "1454", "license": "mit", "hash": -194186739418457020, "line_mean": 57.16, "line_max": 119, "alpha_frac": 0.7015130674, "autogenerated": false, "ratio": 2.817829457364341, "config_test": false, "has_no_keywords": false, ...
from frame import * from scipy.interpolate import interp1d import numpy as np class FeaturedFrame(Frame): def __init__(self, frame): super(FeaturedFrame, self).__init__(frame.get_frame_data(), frame.get_size(), frame.get_overlap(), frame.get_raw_data()) ...
{ "repo_name": "BavoGoosens/Gaiter", "path": "data_utils/featured_frame.py", "copies": "1", "size": "2909", "license": "mit", "hash": 5795349417348631000, "line_mean": 28.9896907216, "line_max": 106, "alpha_frac": 0.5049845308, "autogenerated": false, "ratio": 3.479665071770335, "config_test": f...
from frame_list import FrameList class Video: """Encapsulates a video and its frames.""" def __init__(self, filename): """ Args: filename: The video's filename. """ self.filename = filename self.frames = FrameList(self) self.__start = 0 def __l...
{ "repo_name": "matachi/identify-tv-series-intros", "path": "video.py", "copies": "1", "size": "2729", "license": "mit", "hash": 4377079632053054000, "line_mean": 29.3333333333, "line_max": 108, "alpha_frac": 0.5305972884, "autogenerated": false, "ratio": 4.019145802650957, "config_test": false,...
from framenet import loadXMLAttributes, getNoneTextChildNodes class Frame(dict): """ The frame class """ def __init__(self): """ Constructor, doesn't do much. """ dict.__init__(self) self['definition'] = None self['fes'] = {} self['lexunits'] =...
{ "repo_name": "dasmith/FrameNet-python", "path": "framenet/frame.py", "copies": "1", "size": "6422", "license": "mit", "hash": -8464974267298070000, "line_mean": 29.7272727273, "line_max": 117, "alpha_frac": 0.4775770788, "autogenerated": false, "ratio": 4.650253439536567, "config_test": false,...
from framer import template from framer.util import cstring, unindent T_SHORT = "T_SHORT" T_INT = "T_INT" T_LONG = "T_LONG" T_FLOAT = "T_FLOAT" T_DOUBLE = "T_DOUBLE" T_STRING = "T_STRING" T_OBJECT = "T_OBJECT" T_CHAR = "T_CHAR" T_BYTE = "T_BYTE" T_UBYTE = "T_UBYTE" T_UINT = "T_UINT" T_ULONG = "T_ULONG" T_STRING_INPLAC...
{ "repo_name": "mollstam/UnrealPy", "path": "UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/Python-2.7.10/Tools/framer/framer/member.py", "copies": "50", "size": "1933", "license": "mit", "hash": -8502403472369238000, "line_mean": 25.4794520548, "line_max": 71, ...
from framer import template from framer.util import cstring, unindent T_SHORT = "T_SHORT" T_INT = "T_INT" T_LONG = "T_LONG" T_FLOAT = "T_FLOAT" T_DOUBLE = "T_DOUBLE" T_STRING = "T_STRING" T_OBJECT = "T_OBJECT" T_CHAR = "T_CHAR" T_BYTE = "T_BYTE" T_UBYTE = "T_UBYTE" T_UINT = "T_UINT" T_ULONG = "T_ULONG" ...
{ "repo_name": "MattDevo/edk2", "path": "AppPkg/Applications/Python/Python-2.7.2/Tools/framer/framer/member.py", "copies": "6", "size": "2006", "license": "bsd-2-clause", "hash": 4900622804668418000, "line_mean": 25.4794520548, "line_max": 71, "alpha_frac": 0.5413758724, "autogenerated": false, "r...
from framework.auth.core import _get_current_user from website.files.models.base import File, Folder, FileNode, FileVersion __all__ = ('DataverseFile', 'DataverseFolder', 'DataverseFileNode') class DataverseFileNode(FileNode): provider = 'dataverse' class DataverseFolder(DataverseFileNode, Folder): pass ...
{ "repo_name": "zamattiac/osf.io", "path": "website/files/models/dataverse.py", "copies": "39", "size": "1543", "license": "apache-2.0", "hash": 3693805418283804000, "line_mean": 34.0681818182, "line_max": 114, "alpha_frac": 0.6215165262, "autogenerated": false, "ratio": 4.371104815864022, "conf...
from framework.auth import Auth from website.archiver import ( StatResult, AggregateStatResult, ARCHIVER_NETWORK_ERROR, ARCHIVER_SIZE_EXCEEDED, ) from website.archiver.model import ArchiveJob from website import mails from website import settings from website.project.model import NodeLog def send_archiv...
{ "repo_name": "HarryRybacki/osf.io", "path": "website/archiver/utils.py", "copies": "5", "size": "5565", "license": "apache-2.0", "hash": 27255303790770110, "line_mean": 28.9193548387, "line_max": 132, "alpha_frac": 0.6555256065, "autogenerated": false, "ratio": 3.7050599201065246, "config_test...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Ass_aluno_turma import Ass_aluno_turma as ModelAss_aluno_turma class Ass_aluno_turma(object): def pegarAss_aluno_turmas(self, condicao, valores): associacoes = [] for associacao in BancoDeDados().consultarMultiplos("SELECT * FROM ass_aluno_t...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Ass_aluno_turma.py", "copies": "1", "size": "1237", "license": "mit", "hash": -2439363257332973600, "line_mean": 46.5769230769, "line_max": 147, "alpha_frac": 0.7518189167, "autogenerated": false, "ratio": 2.420743639921...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Ass_disc_pre import Ass_disc_pre as ModelAss_disc_pre class Ass_disc_pre(object): def pegarAss_disc_pres(self, condicao, valores): associacoes = [] for associacao in BancoDeDados().consultarMultiplos("SELECT * FROM ass_disc_pre %s" % (condic...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Ass_disc_pre.py", "copies": "1", "size": "1213", "license": "mit", "hash": -3178394860206995500, "line_mean": 45.6538461538, "line_max": 156, "alpha_frac": 0.7469084913, "autogenerated": false, "ratio": 2.597430406852248...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Ass_oferta_turma import Ass_oferta_turma as ModelAss_oferta_turma class Ass_oferta_turma(object): def pegarAss_oferta_turmas(self, condicao, valores): associacoes = [] for associacao in BancoDeDados().consultarMultiplos("SELECT * FROM ass_of...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Ass_oferta_turma.py", "copies": "1", "size": "1257", "license": "mit", "hash": 749441608622810400, "line_mean": 47.3461538462, "line_max": 150, "alpha_frac": 0.7557677009, "autogenerated": false, "ratio": 2.4598825831702...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Ass_periodo_disciplina import Ass_periodo_disciplina as ModelAss_periodo_disciplina from Database.Models.Fluxo import Fluxo class Ass_periodo_disciplina(object): def pegarAss_periodo_disciplinas(self, condicao, valores): associacoes = [] for...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Ass_periodo_disciplina.py", "copies": "1", "size": "1995", "license": "mit", "hash": 1959288499231076400, "line_mean": 59.4848484848, "line_max": 448, "alpha_frac": 0.7844611529, "autogenerated": false, "ratio": 2.618110...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Ass_turma_prof import Ass_turma_prof as ModelAss_turma_prof class Ass_turma_prof(object): def pegarAss_turma_profs(self, condicao, valores): associacoes = [] for associacao in BancoDeDados().consultarMultiplos("SELECT * FROM ass_turma_prof %...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Ass_turma_prof.py", "copies": "1", "size": "1217", "license": "mit", "hash": 4478418217580472000, "line_mean": 45.8076923077, "line_max": 144, "alpha_frac": 0.7477403451, "autogenerated": false, "ratio": 2.57838983050847...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Curriculo_disciplina import Curriculo_disciplina as ModelCurriculo_disciplina class Curriculo_disciplina(object): def pegarCurriculo_disciplina(self, condicao, valores): curriculo_disciplinas = [] for curriculo_disciplina in BancoDeDados().co...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Curriculo_disciplina.py", "copies": "1", "size": "1737", "license": "mit", "hash": -7681278459616296000, "line_mean": 65.8076923077, "line_max": 310, "alpha_frac": 0.7990788716, "autogenerated": false, "ratio": 2.4464788...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Curriculo import Curriculo as ModelCurriculo class Curriculo(object): def pegarCurriculos(self, condicao, valores): curriculos = [] for curriculo in BancoDeDados().consultarMultiplos("SELECT * FROM curriculo %s" % (condicao), valores): cur...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Curriculo.py", "copies": "1", "size": "1264", "license": "mit", "hash": 3706906588792377300, "line_mean": 47.6153846154, "line_max": 204, "alpha_frac": 0.7650316456, "autogenerated": false, "ratio": 2.5229540918163673, ...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Curso import Curso as ModelCurso class Curso(object): def pegarCursos(self, condicao, valores): cursos = [] for curso in BancoDeDados().consultarMultiplos("SELECT * FROM curso %s" % (condicao), valores): cursos.append(ModelCurso(curso)) ...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Curso.py", "copies": "1", "size": "2066", "license": "mit", "hash": 5796986953110401000, "line_mean": 78.4615384615, "line_max": 646, "alpha_frac": 0.766214908, "autogenerated": false, "ratio": 2.2579234972677598, "con...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Departamento import Departamento as ModelDepartamento class Departamento(object): def pegarDepartamentos(self, condicao, valores): departamentos = [] for departamento in BancoDeDados().consultarMultiplos("SELECT * FROM departamento %s" % (co...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Departamento.py", "copies": "1", "size": "1333", "license": "mit", "hash": 3837283289547098600, "line_mean": 50.2692307692, "line_max": 200, "alpha_frac": 0.7756939235, "autogenerated": false, "ratio": 2.788702928870293,...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Disciplina import Disciplina as ModelDisciplina class Disciplina(object): def pegarDisciplinas(self, condicao, valores): disciplinas = [] for disciplina in BancoDeDados().consultarMultiplos("SELECT * FROM disciplina %s" % (condicao), valores)...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Disciplina.py", "copies": "1", "size": "1296", "license": "mit", "hash": -8394590215750439000, "line_mean": 48.8461538462, "line_max": 208, "alpha_frac": 0.7700617284, "autogenerated": false, "ratio": 2.5362035225048922,...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Escopo_disciplina import Escopo_disciplina as ModelEscopo_disciplina class Escopo_disciplina(object): def pegarMultiplosEscopo_disciplina(self, condicao, valores): escopo_disciplina = [] for escopo in BancoDeDados().consultarMultiplos("SELEC...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Escopo_disciplina.py", "copies": "1", "size": "1274", "license": "mit", "hash": 3876588573413833000, "line_mean": 48, "line_max": 122, "alpha_frac": 0.773155416, "autogenerated": false, "ratio": 2.412878787878788, "con...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Fluxo import Fluxo as ModelFluxo class Fluxo(object): def pegarFluxo(self, condicao, valores): fluxos = [] for fluxo in BancoDeDados().consultarMultiplos("SELECT * FROM fluxo %s" % (condicao), valores): fluxos.append(ModelFluxo(fluxo)) r...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Fluxo.py", "copies": "1", "size": "1140", "license": "mit", "hash": 857239905055652200, "line_mean": 42.8461538462, "line_max": 202, "alpha_frac": 0.7280701754, "autogenerated": false, "ratio": 2.441113490364026, "conf...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Horario import Horario as ModelHorario class Horario(object): def pegarHorarios(self, condicao, valores): horarios = [] for horario in BancoDeDados().consultarMultiplos("SELECT * FROM horario %s" % (condicao), valores): horarios.append(Mo...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Horario.py", "copies": "1", "size": "1075", "license": "mit", "hash": -8794042782464386000, "line_mean": 40.3461538462, "line_max": 138, "alpha_frac": 0.7386046512, "autogenerated": false, "ratio": 2.541371158392435, "...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Matricula import Matricula as ModelMatricula class Matricula(object): def pegarMatriculas(self, condicao, valores): matriculas = [] for curso in BancoDeDados().consultarMultiplos("SELECT * FROM matricula %s" % (condicao), valores): matricul...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Matricula.py", "copies": "1", "size": "1270", "license": "mit", "hash": 4243086258105785000, "line_mean": 49.8, "line_max": 211, "alpha_frac": 0.7606299213, "autogenerated": false, "ratio": 2.5760649087221097, "config_...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Oferta import Oferta as ModelOferta class Oferta(object): def pegarOfertass(self, condicao, valores): ofertas = [] for oferta in BancoDeDados().consultarMultiplos("SELECT * FROM oferta %s" % (condicao), valores): ofertas.append(ModelOfert...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Oferta.py", "copies": "1", "size": "1115", "license": "mit", "hash": 2247761858371273000, "line_mean": 41.8846153846, "line_max": 170, "alpha_frac": 0.7399103139, "autogenerated": false, "ratio": 2.372340425531915, "co...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Periodo import Periodo as ModelPeriodo class Periodo(object): def pegarPeriodos(self, condicao, valores): periodos = [] for periodo in BancoDeDados().consultarMultiplos("SELECT * FROM periodo %s" % (condicao), valores): periodos.append(Mod...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Periodo.py", "copies": "1", "size": "1119", "license": "mit", "hash": -2361849517818275000, "line_mean": 42.0384615385, "line_max": 160, "alpha_frac": 0.745308311, "autogenerated": false, "ratio": 2.6963855421686747, "...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Predio import Predio as ModelPredio class Predio(object): def pegarPredios(self, condicao, valores): predios = [] for predio in BancoDeDados().consultarMultiplos("SELECT * FROM predio %s" % (condicao), valores): predios.append(ModelPredio...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Predio.py", "copies": "1", "size": "1191", "license": "mit", "hash": 6000355473129657000, "line_mean": 44.8076923077, "line_max": 208, "alpha_frac": 0.7355163728, "autogenerated": false, "ratio": 2.6704035874439462, "c...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Prereq import Prereq as ModelPrereq class Prereq(object): def pegarPrereqs(self, condicao, valores): prereqs = [] for prereq in BancoDeDados().consultarMultiplos("SELECT * FROM prereq %s" % (condicao), valores): prereqs.append(ModelPrereq...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Prereq.py", "copies": "1", "size": "1031", "license": "mit", "hash": 1201934056806937000, "line_mean": 38.6923076923, "line_max": 132, "alpha_frac": 0.731328807, "autogenerated": false, "ratio": 2.610126582278481, "con...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Professor import Professor as ModelProfessor class Professor(object): def pegarProfessors(self, condicao, valores): professors = [] for professor in BancoDeDados().consultarMultiplos("SELECT * FROM professor %s" % (condicao), valores): pr...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Professor.py", "copies": "1", "size": "1047", "license": "mit", "hash": -2753391772296741400, "line_mean": 39.2692307692, "line_max": 106, "alpha_frac": 0.7545367717, "autogenerated": false, "ratio": 2.528985507246377, ...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Registro import Registro_login as ModelRegistro class Registro_login(object): def pegarRegistro(self, condicao, valores): registro = [] for registro in BancoDeDados().consultarMultiplos("SELECT * FROM registro_login %s" % (condicao), valores...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Registro_login.py", "copies": "1", "size": "1256", "license": "mit", "hash": 3792869921205075000, "line_mean": 47.3076923077, "line_max": 212, "alpha_frac": 0.7436305732, "autogenerated": false, "ratio": 2.68376068376068...
from Framework.BancoDeDados import BancoDeDados from Database.Models.RegistroLogin import RegistroLogin as ModelRegistroLogin class RegistroLogin(object): def pegarRegistro(self, condicao, valores): registro = [] for registro in BancoDeDados().consultarMultiplos("SELECT * FROM registro_login %s" % (condicao),...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/RegistroLogin.py", "copies": "1", "size": "1214", "license": "mit", "hash": 5814592693820910000, "line_mean": 45.6923076923, "line_max": 162, "alpha_frac": 0.7479406919, "autogenerated": false, "ratio": 2.721973094170403...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Resp_sala import Resp_sala as ModelResp_sala class Resp_sala(object): def pegarMultiplosResp_sala(self, condicao, valores): resps_sala = [] for resp_sala in BancoDeDados().consultarMultiplos("SELECT * FROM resp_sala %s" % (condicao), valores...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Resp_sala.py", "copies": "1", "size": "1058", "license": "mit", "hash": 1907575052547631600, "line_mean": 39.6923076923, "line_max": 106, "alpha_frac": 0.7258979206, "autogenerated": false, "ratio": 2.5011820330969265, ...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Sala import Sala as ModelSala class Sala(object): def pegarSalas(self, condicao, valores): salas = [] for sala in BancoDeDados().consultarMultiplos("SELECT * FROM sala %s" % (condicao), valores): salas.append(ModelSala(sala)) return sal...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Sala.py", "copies": "1", "size": "1034", "license": "mit", "hash": 2310484503710601000, "line_mean": 38.7692307692, "line_max": 156, "alpha_frac": 0.7156673114, "autogenerated": false, "ratio": 2.421545667447307, "conf...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Turma import Turma as ModelTurma class Turma(object): def pegarTurmas(self, condicao, valores): turmas = [] for turma in BancoDeDados().consultarMultiplos("SELECT * FROM turma %s" % (condicao), valores): turmas.append(ModelTurma(turma)) ...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Turma.py", "copies": "1", "size": "1287", "license": "mit", "hash": 2114747320501727500, "line_mean": 48.5, "line_max": 264, "alpha_frac": 0.735042735, "autogenerated": false, "ratio": 2.314748201438849, "config_test":...
from Framework.BancoDeDados import BancoDeDados from Database.Models.Usuario import Usuario as ModelUsuario class Usuario(object): def pegarUsuarios(self, condicao, valores): usuarios = [] for usuario in BancoDeDados().consultarMultiplos("SELECT * FROM usuario %s" % (condicao), valores): usuarios.append(Mo...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Database/Controllers/Usuario.py", "copies": "1", "size": "1725", "license": "mit", "hash": 1644292641504850200, "line_mean": 56.5, "line_max": 419, "alpha_frac": 0.7257971014, "autogenerated": false, "ratio": 2.324797843665768, "config_tes...
from framework.basicstimuli import BasicStimuli from psychopy import visual,core,event # import some libraries from PsychoPy from serial import * import io, os, glob import matplotlib.pyplot as plt from pylab import * class Main(BasicStimuli): def __init__(self): BasicStimuli.__init__(self) ...
{ "repo_name": "villawang/SNAP", "path": "src/modules/RSVP_paradigm.py", "copies": "1", "size": "4613", "license": "bsd-3-clause", "hash": 6619381154772749000, "line_mean": 30.2587412587, "line_max": 113, "alpha_frac": 0.4936050293, "autogenerated": false, "ratio": 3.8441666666666667, "config_te...
from framework.brains.surgical.storage import InsecureStorage from framework.brains.surgical.crypto import Crypto from framework.brains.surgical.logging import Logging from datetime import datetime from blessings import Terminal t = Terminal() class SurgicalAPI(object): def __init__(self, apks): super(S...
{ "repo_name": "HackerTool/lobotomy", "path": "framework/brains/surgical/api.py", "copies": "4", "size": "1524", "license": "mit", "hash": 5784309029206764000, "line_mean": 30.1020408163, "line_max": 105, "alpha_frac": 0.5419947507, "autogenerated": false, "ratio": 4.198347107438017, "config_tes...
from _Framework.ButtonElement import ButtonElement, ON_VALUE, OFF_VALUE class ButtonElementEx(ButtonElement): """ A special type of ButtonElement that allows skinning (that can be overridden when taking control) """ default_states = { True: 'DefaultButton.On', False: 'DefaultButton.Disabled' } ...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/ButtonElementEx.py", "copies": "1", "size": "1185", "license": "mit", "hash": -253015175164474460, "line_mean": 32.8571428571, "line_max": 82, "alpha_frac": 0.6278481013, "autogenerated": false, "ratio": 3.68012...
from _Framework.ButtonElement import Color, ButtonValue from Debug import * debug = initialize_debug() class MonoColor(Color): def draw(self, interface): try: interface.set_darkened_value(0) super(MonoColor, self).draw(interface) except: super(MonoColor, self).draw(interface) class BiColor(MonoCo...
{ "repo_name": "LividInstruments/LiveRemoteScripts", "path": "_Mono_Framework/LividColors.py", "copies": "1", "size": "2697", "license": "mit", "hash": 92222226236128590, "line_mean": 18.5434782609, "line_max": 67, "alpha_frac": 0.6347793845, "autogenerated": false, "ratio": 2.4080357142857145, ...
from _Framework.ButtonElement import Color from _Framework.Skin import Skin from Colors import * class Colors: class Modes: Selected = ColorEx(Rgb.GREEN, Animation.PULSE_1_BEAT) NotSelected = ColorEx(Rgb.GREEN, Brightness.LOW) class DefaultButton: On = ColorEx(Rgb.GREEN) Disab...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/SkinDefault.py", "copies": "1", "size": "1115", "license": "mit", "hash": 5239528496871688000, "line_mean": 33.84375, "line_max": 71, "alpha_frac": 0.6869955157, "autogenerated": false, "ratio": 3.02989130434782...
from _Framework.ButtonElement import Color from consts import * class Rgb: OFF = 0 BLUE = 1 AZURE = 10 TEAL = 20 MINT = 40 GREEN = 52 YELLOW = 61 ORANGE = 68 RED = 85 PINK_RED = 93 PINK = 100 FUCHSIA = 111 PURPLE = 115 class Animation: NONE = 0 GATE_8_BEAT...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/Colors.py", "copies": "1", "size": "1181", "license": "mit", "hash": 4524980162870533600, "line_mean": 20.0892857143, "line_max": 95, "alpha_frac": 0.5901778154, "autogenerated": false, "ratio": 2.75291375291375...
from _Framework.ButtonElement import * # noqa class ConfigurableButtonElement(ButtonElement): """ Special button class that can be configured with custom on- and off-values """ def __init__(self, is_momentary, msg_type, channel, identifier): ButtonElement.__init__(self, is_momentary, msg_type, channel, identif...
{ "repo_name": "jim-cooley/abletonremotescripts", "path": "remote-scripts/samples/Launchpad95/ConfigurableButtonElement.py", "copies": "1", "size": "2135", "license": "apache-2.0", "hash": 8725274849450769000, "line_mean": 33.435483871, "line_max": 139, "alpha_frac": 0.7320843091, "autogenerated": f...
from _Framework.ButtonMatrixElement import ButtonMatrixElement from _Framework.CompoundComponent import CompoundComponent from _Framework.SubjectSlot import SubjectEvent, subject_slot, subject_slot_group from Debug import * debug = initialize_debug() class TranslationComponent(CompoundComponent): def __init__(sel...
{ "repo_name": "LividInstruments/LiveRemoteScripts", "path": "_Mono_Framework/TranslationComponent.py", "copies": "1", "size": "2873", "license": "mit", "hash": 1970645993443334100, "line_mean": 28.9270833333, "line_max": 87, "alpha_frac": 0.7069265576, "autogenerated": false, "ratio": 3.242663656...
from _Framework.ButtonMatrixElement import ButtonMatrixElement from _Framework.ControlSurface import ControlSurface from _Framework.InputControlElement import MIDI_CC_TYPE from _Framework.Layer import Layer from _Framework.ModesComponent import LayerMode from consts import * from Colors import * from BackgroundCompon...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/TwisterControlSurface.py", "copies": "1", "size": "2954", "license": "mit", "hash": -6397523640029487000, "line_mean": 35.4691358025, "line_max": 94, "alpha_frac": 0.6296547055, "autogenerated": false, "ratio": ...
from _Framework.ButtonSliderElement import ButtonSliderElement from _Framework.InputControlElement import * # noqa from consts import * # noqa import math SLIDER_MODE_OFF = 0 SLIDER_MODE_ONOFF = 1 SLIDER_MODE_SLIDER = 2 SLIDER_MODE_PRECISION_SLIDER = 3 SLIDER_MODE_SMALL_ENUM = 4 SLIDER_MODE_BIG_ENUM = 5 #TODO: repe...
{ "repo_name": "jim-cooley/abletonremotescripts", "path": "remote-scripts/samples/Launchpad95/DeviceControllerStrip.py", "copies": "1", "size": "6638", "license": "apache-2.0", "hash": -8346145583679729000, "line_mean": 26.2049180328, "line_max": 109, "alpha_frac": 0.6402530883, "autogenerated": fal...
from _Framework.ButtonSliderElement import ButtonSliderElement from _Framework.InputControlElement import * # noqa SLIDER_MODE_SINGLE = 0 SLIDER_MODE_VOLUME = 1 SLIDER_MODE_PAN = 2 class PreciseButtonSliderElement(ButtonSliderElement): """ Class representing a set of buttons used as a slider """ def __init__(self,...
{ "repo_name": "jim-cooley/abletonremotescripts", "path": "remote-scripts/samples/Launchpad95/PreciseButtonSliderElement.py", "copies": "1", "size": "5444", "license": "apache-2.0", "hash": -6890916476414788000, "line_mean": 33.6815286624, "line_max": 116, "alpha_frac": 0.6664217487, "autogenerated"...
from _Framework.ChannelStripComponent import ChannelStripComponent TRACK_FOLD_DELAY = 2 class SpecialChannelStripComponent(ChannelStripComponent): ' Subclass of channel strip component using select button for (un)folding tracks ' __module__ = __name__ def __init__(self): ChannelStripComponent.__...
{ "repo_name": "jim-cooley/abletonremotescripts", "path": "remote-scripts/branches/VCM600_2/SpecialChannelStripComponent.py", "copies": "1", "size": "1311", "license": "apache-2.0", "hash": 7073927881248054000, "line_mean": 38.7575757576, "line_max": 99, "alpha_frac": 0.6155606407, "autogenerated": ...
from _Framework.CompoundComponent import CompoundComponent from _Framework.DeviceComponent import DeviceComponent from _Framework.Layer import Layer from _Framework.ModesComponent import LayerMode, ComponentMode from _Framework.ModesComponent import ModesComponent from _Framework.SubjectSlot import subject_slot_group, ...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/DeviceComponentEx.py", "copies": "1", "size": "8488", "license": "mit", "hash": 616755387393238800, "line_mean": 34.9661016949, "line_max": 99, "alpha_frac": 0.6024976437, "autogenerated": false, "ratio": 3.8096...
from Framework.Controller import Controller from Database.Controllers.Curso import Curso as BDCurso from Models.Curso.RespostaListar import RespostaListar from Models.Curso.RespostaCadastrar import RespostaCadastrar from Models.Curso.RespostaEditar import RespostaEditar from Models.Curso.RespostaVer import RespostaVer ...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Controllers/Curso.py", "copies": "1", "size": "2818", "license": "mit", "hash": 8580740306548679000, "line_mean": 52.1698113208, "line_max": 288, "alpha_frac": 0.788502484, "autogenerated": false, "ratio": 2.3308519437551696, "config_test"...
from Framework.Controller import Controller from Database.Controllers.Matricula import Matricula as BDMatricula from Models.Matricula.RespostaListar import RespostaListar from Models.Matricula.RespostaCadastrar import RespostaCadastrar from Models.Matricula.RespostaEditar import RespostaEditar from Models.Matricula.Res...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Controllers/Matricula.py", "copies": "1", "size": "1954", "license": "mit", "hash": -4131662560048812500, "line_mean": 51.8108108108, "line_max": 348, "alpha_frac": 0.7891504606, "autogenerated": false, "ratio": 2.581241743725231, "config_...
from Framework.Controller import Controller from Database.Controllers.Predio import Predio as BDPredio from Models.Predio.RespostaListar import RespostaListar from Models.Predio.RespostaCadastrar import RespostaCadastrar from Models.Predio.RespostaEditar import RespostaEditar from Models.Predio.RespostaVer import Respo...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Controllers/Predio.py", "copies": "1", "size": "1894", "license": "mit", "hash": 394117226411694200, "line_mean": 47.5641025641, "line_max": 275, "alpha_frac": 0.7740232313, "autogenerated": false, "ratio": 2.556005398110661, "config_test"...
from Framework.Controller import Controller from Database.Controllers.Sala import Sala as BDSala from Models.Sala.RespostaListar import RespostaListar from Models.Sala.RespostaEditar import RespostaEditar from Models.Sala.RespostaCadastrar import RespostaCadastrar from Models.Sala.RespostaVer import RespostaVer from Mo...
{ "repo_name": "AEDA-Solutions/matweb", "path": "backend/Controllers/Sala.py", "copies": "1", "size": "1714", "license": "mit", "hash": 5415149377588594000, "line_mean": 46.6111111111, "line_max": 298, "alpha_frac": 0.7572928821, "autogenerated": false, "ratio": 2.4485714285714284, "config_test"...
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent from consts import * # noqa class InstrumentPresetsComponent(): def __init__(self, *a, **k): self.octave_index_offset = 0 self.is_horizontal = True self.interval = 3 def _set_scale_mode(self, octave_index_offset, orientation, interval): ...
{ "repo_name": "jim-cooley/abletonremotescripts", "path": "remote-scripts/samples/Launchpad95/ScaleComponent.py", "copies": "1", "size": "18264", "license": "apache-2.0", "hash": -1581642452886848800, "line_mean": 32.0869565217, "line_max": 333, "alpha_frac": 0.6512264564, "autogenerated": false, ...
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent from _Framework.SubjectSlot import subject_slot_group, subject_slot from Colors import * OFF_COLOR = ColorEx(Rgb.OFF, Brightness.OFF) class MenuComponent(ControlSurfaceComponent): """ A component that allows for a set of buttons to be gra...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/MenuComponent.py", "copies": "1", "size": "1841", "license": "mit", "hash": 8426564027891804000, "line_mean": 30.7413793103, "line_max": 86, "alpha_frac": 0.5524171646, "autogenerated": false, "ratio": 4.2321839...
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent from consts import * class BackgroundComponent(ControlSurfaceComponent): """ A nop component that we just clear everything. Set to a low-priority layer so that anything not mapped will get grabbed and cleared The buttons are not a...
{ "repo_name": "bvalosek/ableton-live-scripts", "path": "bvalosek_Midi_Fighter_Twister/BackgroundComponent.py", "copies": "1", "size": "1496", "license": "mit", "hash": 4910741847936508000, "line_mean": 30.1666666667, "line_max": 87, "alpha_frac": 0.5655080214, "autogenerated": false, "ratio": 4.0...
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent class M4LInterface(ControlSurfaceComponent): def __init__(self): ControlSurfaceComponent.__init__(self) self._name = 'OSD' self._update_listener = None self._updateML_listener = None self.mode = ' ' self.clear() def disconnect(self...
{ "repo_name": "jim-cooley/abletonremotescripts", "path": "remote-scripts/samples/Launchpad95/M4LInterface.py", "copies": "1", "size": "1286", "license": "apache-2.0", "hash": 2347664051915554000, "line_mean": 22.3818181818, "line_max": 70, "alpha_frac": 0.7130637636, "autogenerated": false, "rati...
from framework.convenience import ConvenienceFunctions from framework.deprecated.controllers import VideoScheduler, CheckpointDriving, MathScheduler, AudioRewardLogic, VisualSearchTask from framework.latentmodule import LatentModule from framework.ui_elements.ImagePresenter import ImagePresenter from framework.ui_eleme...
{ "repo_name": "villawang/SNAP", "path": "src/modules/DAS/DAS1b.py", "copies": "2", "size": "88486", "license": "bsd-3-clause", "hash": 7309144634149423000, "line_mean": 63.8724340176, "line_max": 481, "alpha_frac": 0.5350224894, "autogenerated": false, "ratio": 4.2682938594375575, "config_test"...
from framework.core.base import BasePage from framework.pages.mainPage import mainPage class loginPage (BasePage): url = "http://twiindan.pythonanywhere.com/admin" def __init__(self, driver): super().__init__(driver) self.driver = driver loginTextBox = None passwordTextBox = None ...
{ "repo_name": "twiindan/selenium_lessons", "path": "04_Selenium/framework/pages/loginPage.py", "copies": "1", "size": "1180", "license": "apache-2.0", "hash": 6016699044201735000, "line_mean": 27.8048780488, "line_max": 99, "alpha_frac": 0.6677966102, "autogenerated": false, "ratio": 3.7820512820...
from framework.core.base import BasePage class addQuestionPage (BasePage): questionTextBox = None showMore = None todayLink = None nowLink = None choiceText1 = None choiceText2 = None choiceText3 = None choiceVotes1 = None choiceVotes2 = None choiceVotes3 = None addChoice...
{ "repo_name": "twiindan/selenium_lessons", "path": "04_Selenium/framework/pages/addQuestionPage.py", "copies": "1", "size": "2375", "license": "apache-2.0", "hash": 2595344394806407700, "line_mean": 33.9264705882, "line_max": 92, "alpha_frac": 0.6825263158, "autogenerated": false, "ratio": 3.3928...
from framework.core.registry import plugin_registry from framework.core.util import extract_artifact_id, listify_duplicate_keys from framework.types import Artifact, Parameterized, Primitive from framework.types.parameterized import List, ChooseMany import framework.db as db import datetime class Executor(object): ...
{ "repo_name": "biocore/metoo", "path": "framework/core/executor.py", "copies": "1", "size": "2097", "license": "bsd-3-clause", "hash": -4344963456695372000, "line_mean": 40.1176470588, "line_max": 124, "alpha_frac": 0.6313781593, "autogenerated": false, "ratio": 4.160714285714286, "config_test"...
from framework.core.util import is_uri, get_feature_from_uri from framework.types import type_registry, Artifact from .method import Method class Plugin(object): def __init__(self, name, version, author, description): self.uri = "/system/plugins/%s" % name self.name = name self.version = ve...
{ "repo_name": "biocore/metoo", "path": "framework/core/plugin.py", "copies": "1", "size": "1692", "license": "bsd-3-clause", "hash": -7046662587699053000, "line_mean": 30.3333333333, "line_max": 69, "alpha_frac": 0.548463357, "autogenerated": false, "ratio": 4.167487684729064, "config_test": fa...
from framework.core.util import is_uri, get_feature_from_uri class _PluginRegistry(object): def __init__(self): self._plugins = {} def add(self, plugin): self._plugins[plugin.name] = plugin def get_plugin_uris(self): for plugin in self._plugins.values(): yield plugin.u...
{ "repo_name": "biocore/metoo", "path": "framework/core/registry.py", "copies": "1", "size": "1138", "license": "bsd-3-clause", "hash": 92924277164316770, "line_mean": 29.7567567568, "line_max": 71, "alpha_frac": 0.5764499121, "autogenerated": false, "ratio": 3.924137931034483, "config_test": fa...
from framework.db import models from framework.dependency_management.dependency_resolver import BaseComponent, ServiceLocator from framework.lib import exceptions def session_required(func): """ Inorder to use this decorator on a `method` there is one requirements + target_id must be a kwarg of the functi...
{ "repo_name": "DarKnight--/owtf", "path": "framework/db/session_manager.py", "copies": "2", "size": "5764", "license": "bsd-3-clause", "hash": -333923162487421760, "line_mean": 42.6666666667, "line_max": 112, "alpha_frac": 0.6455586398, "autogenerated": false, "ratio": 3.8426666666666667, "conf...
from framework.dependency_management.dependency_resolver import BaseComponent from framework.dependency_management.interfaces import DBConfigInterface from framework.lib.exceptions import InvalidConfigurationReference from framework.db import models from framework.lib.general import cprint import ConfigParser import lo...
{ "repo_name": "mikefitz888/owtf", "path": "framework/db/config_manager.py", "copies": "3", "size": "5451", "license": "bsd-3-clause", "hash": 6014835916611583000, "line_mean": 42.608, "line_max": 103, "alpha_frac": 0.6255732893, "autogenerated": false, "ratio": 4.132676269901441, "config_test":...
from framework.dependency_management.dependency_resolver import ServiceLocator from framework.http.wafbypasser import wafbypasser def format_args(args): formatted_args = { "target": None, "payloads": None, "headers": None, "methods": None, "data": None, "contains": ...
{ "repo_name": "DarKnight24/owtf", "path": "plugins/auxiliary/wafbypasser/WAF_Byppaser@OWTF-AWAF-001.py", "copies": "2", "size": "1839", "license": "bsd-3-clause", "hash": 3663709134520977400, "line_mean": 28.6612903226, "line_max": 103, "alpha_frac": 0.5502990756, "autogenerated": false, "ratio":...
from framework.dependency_management.dependency_resolver import ServiceLocator from framework.http.wafbypasser import wafbypasser def format_args(args): formatted_args = {"target": None, "payloads": None, "headers": None, "methods": None, ...
{ "repo_name": "DePierre/owtf", "path": "plugins/auxiliary/wafbypasser/WAF_Byppaser@OWTF-AWAF-001.py", "copies": "3", "size": "2904", "license": "bsd-3-clause", "hash": -8642651651912047000, "line_mean": 43.6769230769, "line_max": 78, "alpha_frac": 0.3581267218, "autogenerated": false, "ratio": 6....
from framework.dependency_management.dependency_resolver import ServiceLocator DESCRIPTION = "Denial of Service (DoS) Launcher -i.e. for IDS/DoS testing-" CATEGORIES = ['HTTP_WIN', 'HTTP', 'DHCP', 'NTFS', 'HP', 'MDNS', 'PPTP', 'SAMBA', 'SCADA', 'SMTP', 'SOLARIS', 'SSL', 'SYSLOG', 'TCP', 'WIFI', 'WIN_APPI...
{ "repo_name": "sharad1126/owtf", "path": "plugins/auxillary/dos/Direct_DoS_Launcher@OWTF-ADoS-001.py", "copies": "3", "size": "2290", "license": "bsd-3-clause", "hash": 5653375732610430000, "line_mean": 70.5625, "line_max": 124, "alpha_frac": 0.3689956332, "autogenerated": false, "ratio": 5.35046...
from framework.dependency_management.dependency_resolver import ServiceLocator DESCRIPTION = "Mounts and/or uploads/downloads files to an SMB share -i.e. for IDS testing-" def run(PluginInfo): # ServiceLocator.get_component("config").Show() Content = DESCRIPTION + " Results:<br />" Iteration = 1 # Itera...
{ "repo_name": "sharad1126/owtf", "path": "plugins/auxillary/smb/SMB_Handler@OWTF-SMB-001.py", "copies": "1", "size": "2712", "license": "bsd-3-clause", "hash": -8388434903757482000, "line_mean": 72.2972972973, "line_max": 121, "alpha_frac": 0.3359144543, "autogenerated": false, "ratio": 6.6146341...
from framework.dependency_management.dependency_resolver import ServiceLocator """ ACTIVE Plugin for Testing for HTTP Methods and XST (OWASP-CM-008) """ from framework.lib.general import get_random_str DESCRIPTION = "Active probing for HTTP methods" def run(PluginInfo): # Transaction = Core.Requester.TRACE(Co...
{ "repo_name": "sharad1126/owtf", "path": "plugins/web/active/HTTP_Methods_and_XST@OWTF-CM-008.py", "copies": "3", "size": "1161", "license": "bsd-3-clause", "hash": 8750866835066365000, "line_mean": 28.7692307692, "line_max": 78, "alpha_frac": 0.6503014643, "autogenerated": false, "ratio": 3.7572...
from framework.dependency_management.dependency_resolver import ServiceLocator DESCRIPTION = "Mounts and/or uploads/downloads files to an SMB share -i.e. for IDS testing-" def run(PluginInfo): Content = [] plugin_params = ServiceLocator.get_component("plugin_params") config = ServiceLocator.get_componen...
{ "repo_name": "DarKnight--/owtf", "path": "plugins/auxiliary/smb/SMB_Handler@OWTF-SMB-001.py", "copies": "2", "size": "1428", "license": "bsd-3-clause", "hash": 271691169827635200, "line_mean": 39.8, "line_max": 92, "alpha_frac": 0.6603641457, "autogenerated": false, "ratio": 3.8594594594594596, ...
from framework.dependency_management.dependency_resolver import ServiceLocator """ PASSIVE Plugin for Search engine discovery/reconnaissance (OWASP-IG-002) """ DESCRIPTION = "General Google Hacking/Email harvesting, etc" ATTR = { 'INTERNET_RESOURCES': True, } def run(PluginInfo): # ServiceLocator.get_compon...
{ "repo_name": "sharad1126/owtf", "path": "plugins/web/passive/Search_engine_discovery_reconnaissance@OWTF-IG-002.py", "copies": "3", "size": "1296", "license": "bsd-3-clause", "hash": 8045047380637889000, "line_mean": 50.84, "line_max": 117, "alpha_frac": 0.4490740741, "autogenerated": false, "ra...
from framework.dependency_management.dependency_resolver import ServiceLocator """ PASSIVE Plugin for Testing for Web Application Fingerprint (OWASP-IG-004) """ DESCRIPTION = "Third party resources and fingerprinting suggestions" def run(PluginInfo): # ServiceLocator.get_component("config").Show() #Vuln sea...
{ "repo_name": "DePierre/owtf", "path": "plugins/web/passive/Web_Application_Fingerprint@OWTF-IG-004.py", "copies": "3", "size": "1538", "license": "bsd-3-clause", "hash": 6542560337844838000, "line_mean": 60.52, "line_max": 142, "alpha_frac": 0.4746423927, "autogenerated": false, "ratio": 5.80377...
from framework.dependency_management.dependency_resolver import ServiceLocator """ SEMI-PASSIVE Plugin for Testing for Session Management Schema (OWASP-SM-001) https://www.owasp.org/index.php/Testing_for_Session_Management_Schema_%28OWASP-SM-001%29 """ import string, re import cgi, logging from framework.lib import g...
{ "repo_name": "mikefitz888/owtf", "path": "plugins/web/semi_passive/Session_Management_Schema@OWTF-SM-001.py", "copies": "3", "size": "1619", "license": "bsd-3-clause", "hash": -3455922087224502300, "line_mean": 43.9722222222, "line_max": 110, "alpha_frac": 0.7059913527, "autogenerated": false, "...
from framework.dependency_management.dependency_resolver import ServiceLocator """ PASSIVE Plugin for Testing for Application Discovery (OWASP-IG-005) """ DESCRIPTION = "Third party discovery resources" def run(PluginInfo): # ServiceLocator.get_component("config").Show() # Content = ServiceLocator.get...
{ "repo_name": "DePierre/owtf", "path": "plugins/web/passive/Application_Discovery@OWTF-IG-005.py", "copies": "3", "size": "1675", "license": "bsd-3-clause", "hash": -9131970348629850000, "line_mean": 78.7619047619, "line_max": 206, "alpha_frac": 0.5653731343, "autogenerated": false, "ratio": 5.56...