text
stringlengths
0
1.05M
meta
dict
__author__ = 'rcj1492' __created__ = '2016.07' __license__ = 'MIT' # pip install pytz # pip install tzlocal import re from datetime import datetime from tzlocal import get_localzone from dateutil import parser as dTparser from dateutil import tz import pytz class labDT(datetime): ''' a class...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/records/time.py", "copies": "1", "size": "12657", "license": "mit", "hash": 1119370033950546800, "line_mean": 33.558988764, "line_max": 154, "alpha_frac": 0.5548708225, "autogenerated": false, "ratio": 4.045062320230105, "config_test": ...
__author__ = 'rcj1492' __created__ = '2016.07' __license__ = 'MIT' ''' PLEASE NOTE: cryptolab package requires both the cryptography and pycrypto modules. pycrypto requires a number of C libraries to install. (alpine) apk add gcc apk add g++ apk add ...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/encryption/cryptolab.py", "copies": "1", "size": "5035", "license": "mit", "hash": -4994986765984655000, "line_mean": 33.7092198582, "line_max": 88, "alpha_frac": 0.6313803376, "autogenerated": false, "ratio": 4.063761097659403, "config...
__author__ = 'rcj1492' __created__ = '2016.09' __license__ = 'MIT' class _method_constructor(object): ''' a class constructor for sub-method attributes ''' def __init__(self, method_dict): for k, v in method_dict.items(): setattr(self, k, v) class _walk_constructor(object): ...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/compilers/objects.py", "copies": "1", "size": "3388", "license": "mit", "hash": -700859651469758200, "line_mean": 32.9278350515, "line_max": 89, "alpha_frac": 0.5767414404, "autogenerated": false, "ratio": 4.172413793103448, "config_tes...
__author__ = 'rcj1492' __created__ = '2016.09' __license__ = 'MIT' from labpack.messaging.telegram import telegramBotClient class testTelegramBotClient(telegramBotClient): def __init__(self, bot_settings, telegram_credentials): telegramBotClient.__init__(self, bot_settings, telegram_credentials)...
{ "repo_name": "collectiveacuity/labPack", "path": "tests/test_messaging_telegram.py", "copies": "1", "size": "1664", "license": "mit", "hash": -3384810081526511000, "line_mean": 38.6341463415, "line_max": 98, "alpha_frac": 0.5949519231, "autogenerated": false, "ratio": 3.5329087048832273, "conf...
__author__ = 'rcj1492' __created__ = '2016.09' __license__ = 'MIT' import os import sys import pickle def store_values(file_path, data): pickle_barrel = open(file_path, 'wb') pickle.dump(data, pickle_barrel) pickle_barrel.close() def retrieve_values(file_path): if os.path.exists(file_pa...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/storage/barrel.py", "copies": "1", "size": "1024", "license": "mit", "hash": -5176786812717230000, "line_mean": 24.3076923077, "line_max": 59, "alpha_frac": 0.568359375, "autogenerated": false, "ratio": 3.4019933554817277, "config_test"...
__author__ = 'rcj1492' __created__ = '2016.09' __license__ = 'MIT' ''' python module for bot api https://github.com/luckydonald/pytgbot python wrapper for telegram cli https://github.com/luckydonald/pytg telegram cli https://github.com/vysheng/tg telegram with OAUTH ht...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/messaging/telegram.py", "copies": "1", "size": "35927", "license": "mit", "hash": -2669421214739810000, "line_mean": 36.7144396552, "line_max": 163, "alpha_frac": 0.4569822139, "autogenerated": false, "ratio": 4.535092148447362, "config...
__author__ = 'rcj1492' __created__ = '2016.10' __license__ = 'MIT' def load_settings(file_path, module_name='', secret_key=''): ''' a method to load data from json valid files :param file_path: string with path to settings file :param module_name: [optional] string with name of module containing...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/records/settings.py", "copies": "1", "size": "13927", "license": "mit", "hash": 727361140420046300, "line_mean": 34.2682291667, "line_max": 113, "alpha_frac": 0.5729877217, "autogenerated": false, "ratio": 4.133867616503413, "config_tes...
__author__ = 'rcj1492' __created__ = '2016.10' __license__ = 'MIT' # from pocketlab.init import logging circular dependency from jsonmodel.validators import jsonModel def inject_defaults(command_schema, default_schema): default_model = jsonModel(default_schema) for key, value in default_model.schem...
{ "repo_name": "collectiveacuity/pocketLab", "path": "pocketlab/utils.py", "copies": "1", "size": "14031", "license": "mit", "hash": -2254761431187227600, "line_mean": 36.652892562, "line_max": 108, "alpha_frac": 0.5264770865, "autogenerated": false, "ratio": 4.52321083172147, "config_test": fal...
__author__ = 'rcj1492' __created__ = '2016.10' __license__ = 'MIT' # TODO: incorporate rate limiting logic class movesHandler(object): ''' handles responses from moves api and usage data ''' _class_fields = { 'schema': { 'rate_limits': [ {'requests': 60, 'perio...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/activity/moves.py", "copies": "1", "size": "16732", "license": "mit", "hash": -5076562691584644000, "line_mean": 35.2650334076, "line_max": 125, "alpha_frac": 0.5603633756, "autogenerated": false, "ratio": 4.42294475284166, "config_test...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' class twilioClient(object): def __init__(self, account_sid, auth_token, twilio_phone): self.account_sid = account_sid self.auth_token = auth_token self.twilio_phone = twilio_phone from sys import path ...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/messaging/twilio.py", "copies": "1", "size": "2612", "license": "mit", "hash": 1464592585101979100, "line_mean": 34.8169014085, "line_max": 91, "alpha_frac": 0.5712098009, "autogenerated": false, "ratio": 4.012288786482335, "config_test...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' def handle_requests(request_object, uptime_url='www.google.com'): import requests # construct request details request_details = { 'method': request_object.method, 'headers': request_object.headers, 'url': r...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/handlers/requests.py", "copies": "1", "size": "10793", "license": "mit", "hash": 2622913702271171600, "line_mean": 33.6204620462, "line_max": 124, "alpha_frac": 0.5371073844, "autogenerated": false, "ratio": 4.899228325011348, "config_t...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' from labpack.compilers.objects import _method_constructor, _walk_constructor, retrieve_function if __name__ == '__main__': method_name = 'ext' sub_methods = { 'foo': 'bar' } class _file_types(object): def __init__(self, m...
{ "repo_name": "collectiveacuity/labPack", "path": "tests/test_compilers_objects.py", "copies": "1", "size": "1090", "license": "mit", "hash": 966958412332583400, "line_mean": 38.4444444444, "line_max": 95, "alpha_frac": 0.5990825688, "autogenerated": false, "ratio": 3.3333333333333335, "config_...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' from labpack.parsing.magic import labMagic if __name__ == '__main__': from labpack.platforms.localhost import localhostClient localhost_client = localhostClient() file_path = '../data/test_photo.diy' file_url = 'https://pbs.t...
{ "repo_name": "collectiveacuity/labPack", "path": "tests/test_parsing_magic.py", "copies": "1", "size": "1042", "license": "mit", "hash": 990901878058716800, "line_mean": 39.76, "line_max": 93, "alpha_frac": 0.6429942418, "autogenerated": false, "ratio": 3.176829268292683, "config_test": false,...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' from labpack.platforms.apscheduler import apschedulerClient if __name__ == '__main__': from labpack.records.settings import load_settings system_config = load_settings('../../cred/system.yaml') scheduler_url = 'http://%s:%s' % (sy...
{ "repo_name": "collectiveacuity/labPack", "path": "tests/test_platforms_apscheduler.py", "copies": "1", "size": "3215", "license": "mit", "hash": 7867750372941032000, "line_mean": 37.2317073171, "line_max": 157, "alpha_frac": 0.5415241058, "autogenerated": false, "ratio": 3.4275053304904053, "c...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' from labpack.records.settings import * if __name__ == '__main__': # define arguments import os os.environ['LABPACK_RECORDS_SETTINGS'] = '2' model_path = 'test-model.json' file_path = 'test-settings.yaml' # test ...
{ "repo_name": "collectiveacuity/labPack", "path": "tests/test_records_settings.py", "copies": "1", "size": "1623", "license": "mit", "hash": 5215625742240782000, "line_mean": 36.6904761905, "line_max": 86, "alpha_frac": 0.6697473814, "autogenerated": false, "ratio": 3.8920863309352516, "config_...
__author__ = 'rcj1492' __created__ = '2016.11' __license__ = 'MIT' ''' PLEASE NOTE: magic package requires the python-magic module. python-magic requires a number of C libraries to install. (alpine): apk add gcc apk add g++ apk add libmagic ...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/parsing/magic.py", "copies": "1", "size": "8917", "license": "mit", "hash": 7258093081189346000, "line_mean": 38.1666666667, "line_max": 196, "alpha_frac": 0.5597173937, "autogenerated": false, "ratio": 4.029371893357434, "config_test":...
__author__ = 'rcj1492' __created__ = '2016.12' __license__ = 'MIT' ''' PLEASE NOTE: cassandra package requires cassandra-driver module (install) pip install cassandra-driver ''' try: from sys import path as sys_path sys_path.append(sys_path.pop(0)) from cassandra.cluster import Clus...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/databases/cassandra.py", "copies": "1", "size": "6996", "license": "mit", "hash": 7509192277006637000, "line_mean": 30.3888888889, "line_max": 111, "alpha_frac": 0.5427387078, "autogenerated": false, "ratio": 4.084063047285464, "config_...
__author__ = 'rcj1492' __created__ = '2016.12' __license__ = 'MIT' ''' PLEASE NOTE: dropbox package requires the dropbox module. (all platforms) pip3 install dropbox ''' try: from sys import path as sys_path sys_path.append(sys_path.pop(0)) from dropbox import Dropbox sys_path.insert...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/storage/dropbox.py", "copies": "1", "size": "27888", "license": "mit", "hash": 3338717289143301600, "line_mean": 34.7457180501, "line_max": 134, "alpha_frac": 0.5347102697, "autogenerated": false, "ratio": 4.558352402745996, "config_tes...
__author__ = 'rcj1492' __created__ = '2017.03' __license__ = 'MIT' ''' PLEASE NOTE: mailgun requires domain verification to send messages api uses postmaster@sub.domain.com as sender address make sure to add mx record under the mailgun subdomain SETUP: https://doc...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/email/mailgun.py", "copies": "1", "size": "11328", "license": "mit", "hash": 2994595710301148700, "line_mean": 33.0588235294, "line_max": 185, "alpha_frac": 0.5636700812, "autogenerated": false, "ratio": 4.2380239520958085, "config_test...
__author__ = 'rcj1492' __created__ = '2017.04' __license__ = 'MIT' ''' PLEASE NOTE: watson package requires watson-developer-cloud, moviepy and ffmpy module along with ffmpeg C dependency (install) pip install watson-developer-cloud pip install moviepy ...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/speech/watson.py", "copies": "1", "size": "26570", "license": "mit", "hash": 3746019186391095000, "line_mean": 35.9571428571, "line_max": 161, "alpha_frac": 0.5284907791, "autogenerated": false, "ratio": 4.461047683008731, "config_test"...
__author__ = 'rcj1492' __created__ = '2017.05' __license__ = 'MIT' from pocketlab.utils import inject_defaults, compile_model, compile_commands, compile_arguments if __name__ == '__main__': from pocketlab import __module__, __order__ from pocketlab.commands.home import _home_schema as home_schema ...
{ "repo_name": "collectiveacuity/pocketLab", "path": "tests/test_utils.py", "copies": "1", "size": "1147", "license": "mit", "hash": -3966582092722474500, "line_mean": 39.0357142857, "line_max": 95, "alpha_frac": 0.6669572799, "autogenerated": false, "ratio": 3.676282051282051, "config_test": fa...
__author__ = 'rcj1492' __created__ = '2017.05' __license__ = 'MIT' ''' list services list instances (ec2, heroku) TODO: list images TODO: list containers TODO: list instances on other platforms (gcp, azure, bluemix, rackspace) ''' _list_details = { 'title': 'List', 'description': 'Generates a li...
{ "repo_name": "collectiveacuity/pocketLab", "path": "pocketlab/commands/list.py", "copies": "1", "size": "6910", "license": "mit", "hash": -1024467642274497800, "line_mean": 35.3513513514, "line_max": 187, "alpha_frac": 0.5607814761, "autogenerated": false, "ratio": 4.236664622930717, "config_t...
__author__ = 'rcj1492' __created__ = '2017.05' __license__ = 'MIT' ''' remove services ''' _remove_details = { 'title': 'Remove', 'description': 'Removes clutter from your records.', 'help': 'removes a service from the registry', 'benefit': 'Removes a service listing from the lab registry....
{ "repo_name": "collectiveacuity/pocketLab", "path": "pocketlab/commands/remove.py", "copies": "1", "size": "1490", "license": "mit", "hash": 7021259149804849000, "line_mean": 29.0416666667, "line_max": 90, "alpha_frac": 0.6268456376, "autogenerated": false, "ratio": 3.7064676616915424, "config_...
__author__ = 'rcj1492' __created__ = '2017.05' __license__ = 'MIT' ''' remove services with non-existent roots from registry remove broken/previous docker images from docker remove exited status 1 containers from docker ''' _clean_details = { 'title': 'clean', 'description': 'Removes broken resour...
{ "repo_name": "collectiveacuity/pocketLab", "path": "pocketlab/commands/clean.py", "copies": "1", "size": "4566", "license": "mit", "hash": 2848378130924214300, "line_mean": 38.0526315789, "line_max": 123, "alpha_frac": 0.567674113, "autogenerated": false, "ratio": 4.507403751233959, "config_te...
__author__ = 'rcj1492' __created__ = '2017.05' __license__ = 'MIT' ''' update the .ignore file update the docker-compose.yaml file update the setup.py file TODO: check dependencies and alert new versions ''' _update_details = { 'title': 'Update', 'description': 'Updates the configuration files fo...
{ "repo_name": "collectiveacuity/pocketLab", "path": "pocketlab/commands/update.py", "copies": "1", "size": "21065", "license": "mit", "hash": 4003732481046132700, "line_mean": 44.1951754386, "line_max": 325, "alpha_frac": 0.507334441, "autogenerated": false, "ratio": 4.88180764774044, "config_t...
__author__ = 'rcj1492' __created__ = '2017.06' __license__ = 'MIT' from labpack.handlers.requests import requestsHandler class herokuClient(requestsHandler): _class_fields = { 'schema': { 'account_email': 'noreply@collectiveacuity.com', 'account_password': 'abcDEF12...
{ "repo_name": "collectiveacuity/labPack", "path": "labpack/platforms/heroku.py", "copies": "1", "size": "18466", "license": "mit", "hash": 5908408724735964000, "line_mean": 38.3231441048, "line_max": 150, "alpha_frac": 0.5546409618, "autogenerated": false, "ratio": 4.156200765248705, "config_te...
__author__ = 'rcj1492' __created__ = '2017.06' __license__ = 'MIT' ''' deploy to heroku deploy to EC2 TODO: deploy to other platforms (azure, gcp, bluemix, rackspace, openshift) ''' _deploy_details = { 'title': 'Deploy', 'description': 'Deploys a service to a remote platform. Deploy is currently...
{ "repo_name": "collectiveacuity/pocketLab", "path": "pocketlab/commands/deploy.py", "copies": "1", "size": "32208", "license": "mit", "hash": 6493033301984663000, "line_mean": 44.0801144492, "line_max": 613, "alpha_frac": 0.5128849975, "autogenerated": false, "ratio": 4.788581623550401, "config...
__author__ = 'rc' import argparse import os import subprocess parser = argparse.ArgumentParser() parser.add_argument("-d", "--directory", help="Path of new playbook", default="./") parser.add_argument("-n", "--name", help="Playbook name") args = parser.parse_args() if not args.name: print parser.print_help() ...
{ "repo_name": "rowancarr/ansible-playbook-init", "path": "playbook_init/__main__.py", "copies": "1", "size": "2207", "license": "apache-2.0", "hash": -4789462260454644000, "line_mean": 25.2857142857, "line_max": 88, "alpha_frac": 0.5854100589, "autogenerated": false, "ratio": 3.318796992481203, ...
__author__ = 'rdfm' import argparse import sys import os import httplib2 from apiclient import discovery, errors from oauth2client import client from oauth2client.file import Storage from oauth2client.tools import run from googleapiclient.http import MediaFileUpload import MySQLdb as mdb import magic class RedmineP...
{ "repo_name": "rockdreamer/redmine-docs-to-drive", "path": "sync.py", "copies": "1", "size": "33899", "license": "mit", "hash": -7722518627660361000, "line_mean": 40.1395631068, "line_max": 147, "alpha_frac": 0.533998053, "autogenerated": false, "ratio": 3.9022677564176353, "config_test": false...
__author__ = 'rd' from django.http import HttpResponse from django.utils import simplejson def json_response(view): def wrap(request, *args, **kwargs): res = view(request, *args, **kwargs) if res is None: res = {'error': 'no data'} if isinstance(res, (dict, list)): ...
{ "repo_name": "rodgar-nvkz/RBE", "path": "RBE/main/decorators.py", "copies": "1", "size": "1122", "license": "unlicense", "hash": 1714982077706994700, "line_mean": 33.0303030303, "line_max": 108, "alpha_frac": 0.5561497326, "autogenerated": false, "ratio": 4.0359712230215825, "config_test": fal...
__author__ = 'rd' # The function localize takes the following arguments: # # colors: a 2D list, each entry either 'R' (for a red cell) or 'G' (for a green cell) # # measurements: a list of measurements taken by the robot, each entry either 'R' or 'G' # # motions: a list of actions taken by the robot, each e...
{ "repo_name": "minhtriet/hacker_rank", "path": "cs373/localization.py", "copies": "1", "size": "3770", "license": "apache-2.0", "hash": 4283426147097353700, "line_mean": 40.4395604396, "line_max": 104, "alpha_frac": 0.5732095491, "autogenerated": false, "ratio": 3.0501618122977345, "config_test...
__author__ = 'rdy' # -*- coding: utf-8 -*- import datetime import time from apscheduler.events import EVENT_JOB_EXECUTED, EVENT_JOB_ERROR from pytz import utc from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore from apscheduler.executors.poo...
{ "repo_name": "cherrishes/weilai", "path": "weilai/apscheduler/run.py", "copies": "1", "size": "1428", "license": "apache-2.0", "hash": 5852371314751276000, "line_mean": 22.1206896552, "line_max": 114, "alpha_frac": 0.7134328358, "autogenerated": false, "ratio": 3.094688221709007, "config_test"...
__author__ = 'rdy' from bson import ObjectId from util.mongodbutil import get_db class Handle: def get_total_dev(self, user_id): """ 获取统计数量 :return: """ db = get_db() try: normal = 0 error = 0 devices = db.ebc_user_device.find({'...
{ "repo_name": "cherrishes/weilai", "path": "xingxing/app/freezer/api/room_dev_list/room_list/handler.py", "copies": "2", "size": "9011", "license": "apache-2.0", "hash": 7792727131523870000, "line_mean": 39.2300469484, "line_max": 117, "alpha_frac": 0.5018088458, "autogenerated": false, "ratio": ...
__author__ = 'rdy' from util.mongodbutil import get_db from datetime import date import datetime from bson import ObjectId class Handle: def get_temperature_gui(self): db = get_db() """ #当前数据库 柜温,湿度,环温各插入楼5条模拟数据 db.ebc_status.save({'type':3,'device_id':'1','value':33,'content':'当前...
{ "repo_name": "cherrishes/weilai", "path": "xingxing/app/freezer/api/room_dev_list/dev_list/handler.py", "copies": "2", "size": "5763", "license": "apache-2.0", "hash": -4954048668336490000, "line_mean": 34.2721518987, "line_max": 114, "alpha_frac": 0.4649201507, "autogenerated": false, "ratio": ...
__author__ = 'rebecca' import pandas import numpy as np def sma(prices, n_periods): """ Returns the rolling mean of a given list of stock prices "prices" over a period of time "n_periods". Interfaces with Pandas, so the details are sort of unknown to me. n_periods, for a typical SMA, is equivale...
{ "repo_name": "rpazyaquian/PyTA", "path": "pyta.py", "copies": "1", "size": "4730", "license": "mit", "hash": 5812092119223339000, "line_mean": 26.5058139535, "line_max": 90, "alpha_frac": 0.6357293869, "autogenerated": false, "ratio": 3.3979885057471266, "config_test": false, "has_no_keyword...
__author__ = 'redwards' import os def neighborsof(i,j, scorematrix): neighbors = [] if i - 1 >= 0 and j - 1 >= 0: neighbors.append(scorematrix[i-1][j-1]) neighbors.append(scorematrix[i-1][j]) neighbors.append(scorematrix[i][j-1]) elif i - 1 >= 0: neighbors.append(scoremat...
{ "repo_name": "linsalrob/EdwardsLab", "path": "perl/alignment/edit_distance.py", "copies": "2", "size": "1215", "license": "mit", "hash": 6966981859579398000, "line_mean": 24.8723404255, "line_max": 97, "alpha_frac": 0.5382716049, "autogenerated": false, "ratio": 3, "config_test": false, "has...
__author__ = 'redwards' import os from array import array from matrices import blosum62 def score(a, b): blosum = blosum62() if a in blosum and b in blosum[a]: return blosum[a][b] elif b in blosum and a in blosum[b]: return blosum[b][a] else: sys.stderr.write("Can not score am...
{ "repo_name": "linsalrob/EdwardsLab", "path": "perl/alignment/local_alignment.py", "copies": "2", "size": "2920", "license": "mit", "hash": 5718574486898304000, "line_mean": 31.0879120879, "line_max": 104, "alpha_frac": 0.5071917808, "autogenerated": false, "ratio": 3.0259067357512954, "config_...
__author__ = 'redwards' import os import sys from array import array from matrices import blosum62 def score(a, b): blosum = blosum62() if a in blosum and b in blosum[a]: return blosum[a][b] elif b in blosum and a in blosum[b]: return blosum[b][a] else: sys.stderr.write("Can n...
{ "repo_name": "linsalrob/bioinformatics", "path": "Modules/alignment/gapped_alignment.py", "copies": "2", "size": "3856", "license": "mit", "hash": 4385012404036280300, "line_mean": 32.8245614035, "line_max": 105, "alpha_frac": 0.5355290456, "autogenerated": false, "ratio": 2.7661406025824964, ...
__author__ = 'Reem' import numpy as np import random # creates an array with random float values within a range with size def random_floats_array(low, high, size): return [random.uniform(low, high) for _ in xrange(size)] # creates an array with random int values within a range with size def random_int_array(low...
{ "repo_name": "Reemh/taco_server", "path": "src/generator.py", "copies": "1", "size": "1744", "license": "bsd-3-clause", "hash": -3705818174644520400, "line_mean": 30.7272727273, "line_max": 90, "alpha_frac": 0.630733945, "autogenerated": false, "ratio": 3.1882998171846437, "config_test": false...
__author__ = 'Reem' import numpy as np import random def add_row(my_array, index, new_row): # no out of range index # the size of the new row should match the existing rows # unless it's an empty array anyway if index <= len(my_array) and (len(my_array) == 0 or len(new_row) == len(my_array[0])): ...
{ "repo_name": "Reemh/taco_server", "path": "src/test1.py", "copies": "1", "size": "5648", "license": "bsd-3-clause", "hash": -1726210211172203500, "line_mean": 32.2294117647, "line_max": 108, "alpha_frac": 0.6005665722, "autogenerated": false, "ratio": 3.0812875068194217, "config_test": false, ...
__author__ = 'Reem' import diff_cache import json import os import numpy as np from sklearn import manifold data_directory = 'plugins/taco_server/MDS_data/' # this cache should cache the result with positions from MDS # todo either use the following functions or delete them def get_mds_cache(name): file_name = d...
{ "repo_name": "Reemh/taco_server", "path": "src/graph.py", "copies": "1", "size": "3232", "license": "bsd-3-clause", "hash": -6690916298882284000, "line_mean": 33.0210526316, "line_max": 119, "alpha_frac": 0.5792079208, "autogenerated": false, "ratio": 3.4056902002107483, "config_test": false, ...
__author__ = 'Reem' import flask import timeit from src import diff_cache, graph, diff_finder import ujson #create an Flask app for hosting my namespace app = flask.Flask(__name__) #request my configuration #import caleydo_server.config #config = caleydo_server.config.view('taco_server') @app.route('/hello/<whom>') ...
{ "repo_name": "Reemh/taco_server", "path": "api.py", "copies": "1", "size": "2047", "license": "bsd-3-clause", "hash": -9149994229870705000, "line_mean": 28.6666666667, "line_max": 89, "alpha_frac": 0.6526624328, "autogenerated": false, "ratio": 3.0781954887218044, "config_test": false, "has_...
__author__ = 'Reem' import logging # the logging def init_log(log_file): # logging.basicConfig(level=logging.INFO, # #format='%(message)s', # format='%(asctime)s\t%(message)s', # datefmt='%d-%m-%Y %H:%M:%S', # filenam...
{ "repo_name": "Reemh/taco_server", "path": "src/logger.py", "copies": "1", "size": "1223", "license": "bsd-3-clause", "hash": 4304010592379522600, "line_mean": 31.2105263158, "line_max": 79, "alpha_frac": 0.5290269828, "autogenerated": false, "ratio": 3.5865102639296187, "config_test": false, ...
__author__ = 'Reem' # This file contains the main functions that deal with caching the diff # at different levels of details # detail (as detail), middle (as count), overview (as ratios) from diff_finder import Table, DiffFinder, Diff, Levels, Ratios import caleydo_server.dataset as dataset import timeit import json ...
{ "repo_name": "Reemh/taco_server", "path": "src/diff_cache.py", "copies": "1", "size": "4912", "license": "bsd-3-clause", "hash": 5724021894262234000, "line_mean": 35.9323308271, "line_max": 116, "alpha_frac": 0.6215390879, "autogenerated": false, "ratio": 3.3574846206425155, "config_test": fal...
__author__ = 'reggie' __author__ = 'reggie' ###START-CONF ##{ ##"object_name": "tweetreinject", ##"object_poi": "qpwo-2345", ##"parameters": [ ## ## ], ##"return": [ ## { ## "name": "tweet", ## "description": "raw tweet", ## "requ...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/reinjector/tweetreinject.py", "copies": "1", "size": "4842", "license": "mit", "hash": -8552122267542316000, "line_mean": 28.5243902439, "line_max": 100, "alpha_frac": 0.4229657166, "autogenerated": false, "ratio": 3.3931324456902594, "co...
__author__ = 'reggie' #commit 123 import sys import argparse import logging from pumpkin import * main() # #log = logging.getLogger("root") #log.setLevel(logging.DEBUG) ##log.setLevel(logging.INFO) # # #parser = argparse.ArgumentParser(description='Harness for Datafluo jobs') #parser.add_argument('--noplugins',act...
{ "repo_name": "recap/pumpkin", "path": "DRHarness.py", "copies": "1", "size": "10047", "license": "mit", "hash": 8899454854882652000, "line_mean": 25.0961038961, "line_max": 444, "alpha_frac": 0.6025679307, "autogenerated": false, "ratio": 2.998209489704566, "config_test": false, "has_no_keyw...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkPeers.py", "copies": "1", "size": "4812", "license": "mit", "hash": -3471850091719191000, "line_mean": 30.0451612903, "line_max": 131, "alpha_frac": 0.4530340815, "autogenerated": false, "ratio": 3.0207156308851224, "config_test": false, "has...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkPackets.py", "copies": "1", "size": "3239", "license": "mit", "hash": 3265325694002081300, "line_mean": 25.3333333333, "line_max": 90, "alpha_frac": 0.513430071, "autogenerated": false, "ratio": 3.2983706720977595, "config_test": false, "has_...
__author__ = 'reggie' import inspect import uuid import copy import tarfile import shutil import tftpy import time import thread import collections import networkx as nx import ujson as json import json as sjson import logging import inspect import zmq from numpy import arange,array,ones,linalg import PmkShared from...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkSeed.py", "copies": "1", "size": "38213", "license": "mit", "hash": 2820813250091321300, "line_mean": 29.1134751773, "line_max": 262, "alpha_frac": 0.4784235731, "autogenerated": false, "ratio": 3.6060205718599603, "config_test": false, "has_...
__author__ = 'reggie' import logging import threading import os import socket import subprocess as sp import time from socket import * from threading import * try: import psutil CPU = True except ImportError: CPU = False pass LOG_LEVEL = logging.NOTSET UDP_BROADCAST_PORT = 7700 TFTP_FILE_SERVER_POR...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkShared.py", "copies": "1", "size": "3811", "license": "mit", "hash": 7227701088053891000, "line_mean": 23.4294871795, "line_max": 151, "alpha_frac": 0.5843610601, "autogenerated": false, "ratio": 3.4057193923145666, "config_test": false, "has...
__author__ = 'reggie' import pika import time import ujson as json from Queue import * from PmkShared import * class mx(Queue): def __init__(self, maxsize=0): Queue.__init__(self, maxsize) pass class lx(Queue): def __init__(self, maxsize=0): Queue.__init__(self, maxsize) pass...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkMonitor.py", "copies": "1", "size": "2704", "license": "mit", "hash": -753632247053487400, "line_mean": 28.0860215054, "line_max": 127, "alpha_frac": 0.5806213018, "autogenerated": false, "ratio": 4.103186646433991, "config_test": false, "has...
__author__ = 'reggie' import sys import shelve import os import shutil import imp import PmkSeed import re import logging import json import PmkShared from PmkExternalDispatch import * from PmkInternalDispatch import * from PmkMonitor import * from PmkBroadcast import * from PmkProcessGraph import * class MainCon...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkContexts.py", "copies": "1", "size": "20017", "license": "mit", "hash": -7971568765363557000, "line_mean": 29.7480798771, "line_max": 143, "alpha_frac": 0.4540640456, "autogenerated": false, "ratio": 3.9411301437290804, "config_test": false, ...
__author__ = 'reggie' import tftpy import PmkSeed import PmkShared from PmkShared import * try: from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers import FTPServer except ImportError: from pyftpdlib.contrib.authorizers import DummyAuthor...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkFtpServer.py", "copies": "1", "size": "1782", "license": "mit", "hash": 2150115796679510300, "line_mean": 27.7419354839, "line_max": 78, "alpha_frac": 0.6593714927, "autogenerated": false, "ratio": 3.832258064516129, "config_test": false, "ha...
__author__ = 'reggie' import ujson as json import pyinotify, os import PmkShared import PmkSeed import time from pyinotify import WatchManager, Notifier, ThreadedNotifier, EventsCodes, ProcessEvent from PmkShared import * class PacketFileMonitor(SThread): def __init__(self, context, dir, ext="pkt"): ST...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkDataCatch.py", "copies": "1", "size": "5212", "license": "mit", "hash": -6846203841879132000, "line_mean": 33.5165562914, "line_max": 96, "alpha_frac": 0.4886799693, "autogenerated": false, "ratio": 4.04031007751938, "config_test": false, "ha...
__author__ = 'reggie' import ujson as json import Queue import zmq import time import pika import zlib import base64 import PmkSeed import PmkBroadcast import PmkShared from PmkShared import * from Queue import * class rx(Queue): def __init__(self, maxsize=0): Queue.__init__(self, maxsize) pass ...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkInternalDispatch.py", "copies": "1", "size": "15836", "license": "mit", "hash": 4014527955154924000, "line_mean": 32.8376068376, "line_max": 141, "alpha_frac": 0.4530815863, "autogenerated": false, "ratio": 3.887088856161021, "config_test": fal...
__author__ = 'reggie' import uuid import re import imp import signal import sys import argparse import logging import shutil import errno import ConfigParser import cProfile, pstats import pika import multiprocessing import shelve, os, fcntl, new import __builtin__ from fcntl import LOCK_SH, LOCK_EX, LOCK_UN, LOCK...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/Pumpkin.py", "copies": "1", "size": "21746", "license": "mit", "hash": 2706268431064952300, "line_mean": 34.8253706755, "line_max": 132, "alpha_frac": 0.5696219994, "autogenerated": false, "ratio": 4.014399113900683, "config_test": true, "has_no...
__author__ = 'reggie' import re import json from numpy import arange,array,ones,linalg #from pylab import plot,show, savefig from socket import * import PmkSeed import PmkContexts import time import datetime import base64 from PmkShared import * import BaseHTTPServer CONTEXT = None class Head(object): d...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkHTTPServer.py", "copies": "1", "size": "26355", "license": "mit", "hash": -6670138732841369000, "line_mean": 31.86159601, "line_max": 196, "alpha_frac": 0.4379055208, "autogenerated": false, "ratio": 3.8041281755196303, "config_test": false, ...
__author__ = 'reggie' import ujson as json import time import Queue import zmq import copy import re import socket import networkx as nx import pika import zlib from networkx.readwrite import json_graph from Queue import * from PmkShared import * class tx(Queue): def __init__(self, maxsize=0): Que...
{ "repo_name": "recap/pumpkin", "path": "pumpkin/PmkExternalDispatch.py", "copies": "1", "size": "20243", "license": "mit", "hash": -4220403565214236700, "line_mean": 31.8087520259, "line_max": 137, "alpha_frac": 0.4766091982, "autogenerated": false, "ratio": 4.193702092396934, "config_test": fa...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "bedpostX", ##"object_poi": "bedpostX-0001", ##"auto-load": true, ##"parameters": [ ## { ## "name": "bedpostx_input", ## "type": "Composite", ## "state" : "DTI_PREPROC2" ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/tracula/bedpostX.py", "copies": "1", "size": "2748", "license": "mit", "hash": 3589757007949470700, "line_mean": 25.1714285714, "line_max": 82, "alpha_frac": 0.4967248908, "autogenerated": false, "ratio": 3.087640449438202, "config_test": false, ...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "collectorhaiku", ##"object_poi": "qpwo-2345", ##"parameters": [ ## { ## "name": "tweet", ## "description": "english haiku tweets", ## "required": true, ## "type...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/collectors/collectorhaiku.py", "copies": "1", "size": "1214", "license": "mit", "hash": -2847191671524398600, "line_mean": 18.9180327869, "line_max": 62, "alpha_frac": 0.4530477759, "autogenerated": false, "ratio": 3.3910614525139664, "co...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "collectorhasa", ##"object_poi": "qpwo-2345", ##"parameters": [ ## { ## "name": "tweet", ## "description": "english haiku tweets", ## "required": true, ## "type"...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/collectors/collectorhasa.py", "copies": "1", "size": "1161", "license": "mit", "hash": -8713920827480059000, "line_mean": 19.3684210526, "line_max": 62, "alpha_frac": 0.4711455642, "autogenerated": false, "ratio": 3.4451038575667656, "con...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "collectorisa", ##"object_poi": "qpwo-2345", ##"parameters": [ ## { ## "name": "tweet", ## "description": "english haiku tweets", ## "required": true, ## "type":...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/collectors/collectorisa.py", "copies": "1", "size": "1176", "license": "mit", "hash": 8525014311000314000, "line_mean": 19.6315789474, "line_max": 62, "alpha_frac": 0.4676870748, "autogenerated": false, "ratio": 3.4486803519061584, "confi...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "dti_prep", ##"object_poi": "dti_prep-0001", ##"auto-load": true, ##"parameters": [ ## { ## "name": "dti_input", ## "type": "Composite", ## "state" : "DTI_RAW" ## } ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/tracula/dti_prep.py", "copies": "1", "size": "2000", "license": "mit", "hash": 5192074308374352000, "line_mean": 23.0963855422, "line_max": 106, "alpha_frac": 0.5255, "autogenerated": false, "ratio": 2.9895366218236172, "config_test": false, "h...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "filterenglish", ##"object_poi": "qpwo-2345", ##"parameters": [ ## { ## "name": "tweet", ## "description": "raw numbers", ## "required": true, ## "type": "TweetS...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/filters-cat1/filterenglish.py", "copies": "1", "size": "2727", "license": "mit", "hash": 8097579843896340000, "line_mean": 27.1134020619, "line_max": 164, "alpha_frac": 0.4422442244, "autogenerated": false, "ratio": 3.588157894736842, "co...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "filterhaikus", ##"object_poi": "qpwo-2345", ##"parameters": [ ## { ## "name": "tweet", ## "description": "english tweets", ## "required": true, ## "type": "Twee...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/filters-cat2/filterhaikus.py", "copies": "1", "size": "3418", "license": "mit", "hash": 3389837827390922000, "line_mean": 26.126984127, "line_max": 80, "alpha_frac": 0.4049151551, "autogenerated": false, "ratio": 3.8973774230330673, "conf...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "filterisa", ##"object_poi": "qpwo-2345", ##"parameters": [ ## { ## "name": "tweet", ## "description": "english tweets", ## "required": true, ## "type": "TweetSt...
{ "repo_name": "recap/pumpkin", "path": "examples/tweeter/filters-cat4/filterisa.py", "copies": "1", "size": "1633", "license": "mit", "hash": -5134550462578192000, "line_mean": 23.3880597015, "line_max": 114, "alpha_frac": 0.3796693203, "autogenerated": false, "ratio": 3.3670103092783505, "conf...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "freesurfer", ##"object_poi": "freesurfer-0001", ##"auto-load": true, ##"parameters": [ ## { ## "name": "mri_input", ## "type": "Composite", ## "state" : "MRI_RAW" ## } #...
{ "repo_name": "recap/pumpkin", "path": "examples/tracula/freesurfer.py", "copies": "1", "size": "2205", "license": "mit", "hash": -7667325425569837000, "line_mean": 25.8902439024, "line_max": 115, "alpha_frac": 0.5346938776, "autogenerated": false, "ratio": 3.0040871934604905, "config_test": fa...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "injector", ##"object_poi": "injector-9192", ##"auto-load": true, ##"remoting" : true, ##"parameters": [ ## { ## "name": "inject", ## "type": "Composite", ## "state" : "ALL_RAW", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/tracula/injector.py", "copies": "1", "size": "2720", "license": "mit", "hash": -4738586047916117000, "line_mean": 26.2, "line_max": 97, "alpha_frac": 0.4783088235, "autogenerated": false, "ratio": 3.4213836477987423, "config_test": false, "has_...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "processor", ##"object_poi": "my-processor-1234", ##"auto-load": true, ##"remoting" : true, ##"parameters": [ ## { ## "name": "data", ## "description": "file data", ## "required": t...
{ "repo_name": "recap/pumpkin", "path": "examples/echo/processor.py", "copies": "1", "size": "4617", "license": "mit", "hash": 2846365202142503400, "line_mean": 35.3543307087, "line_max": 144, "alpha_frac": 0.5735325969, "autogenerated": false, "ratio": 4.1482479784366575, "config_test": false, ...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "producer", ##"object_poi": "my-producer-1234", ##"auto-load": true, ##"parameters": [ ], ##"return": [ ## { ## "name": "data", ## "description": "file data", ## "required": true, ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/filemessage/producer.py", "copies": "1", "size": "1807", "license": "mit", "hash": 6275210993643606000, "line_mean": 20.011627907, "line_max": 59, "alpha_frac": 0.4482567792, "autogenerated": false, "ratio": 3.25, "config_test": false, "has_no_...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "receiver", ##"object_poi": "my-receiver-1234", ##"auto-load": true, ##"parameters": [ ## { ## "name": "data", ## "description": "file data", ## "required": true, ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/filemessage/receiver.py", "copies": "1", "size": "2142", "license": "mit", "hash": 9019350301204045000, "line_mean": 22.5384615385, "line_max": 91, "alpha_frac": 0.4411764706, "autogenerated": false, "ratio": 3.642857142857143, "config_test": fal...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "tracer_collector", ##"object_poi": "tracer_collector-0001", ##"auto-load": true, ##"parameters": [ ## { ## "name": "", ## "type": "Internal", ## "state" : "TRACE_OUT" ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/system/tracer_collector.py", "copies": "1", "size": "2755", "license": "mit", "hash": 5891777784982602000, "line_mean": 25.7475728155, "line_max": 133, "alpha_frac": 0.5509981851, "autogenerated": false, "ratio": 3.5872395833333335, "config_test"...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "tracula", ##"object_poi": "tracula-1234", ##"auto-load": true, ##"parameters": [ ## { ## "name": "tracula_input", ## "type": "Composite", ## "state" : "MRI_BRAINSEGMENT&DTI_PREPROC...
{ "repo_name": "recap/pumpkin", "path": "examples/tracula/tracula.py", "copies": "1", "size": "5271", "license": "mit", "hash": 3008846841936296400, "line_mean": 26.5968586387, "line_max": 87, "alpha_frac": 0.5025611838, "autogenerated": false, "ratio": 3.35092180546726, "config_test": false, ...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "ampl", ##"object_poi": "my-ampl-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "", ## "required": true, ## "type": "String", ## "state" :...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/ampl.py", "copies": "1", "size": "1355", "license": "mit", "hash": 4808425843263641000, "line_mean": 21.9661016949, "line_max": 64, "alpha_frac": 0.4774907749, "autogenerated": false, "ratio": 3.2888349514563107, "config_test": fa...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "calibcalc", ##"object_poi": "my-calibcalc-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "skymodel", ## "description": "", ## "required": true, ## "type": "String", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/calibcalc.py", "copies": "1", "size": "1395", "license": "mit", "hash": 4136251798795798500, "line_mean": 23.9107142857, "line_max": 89, "alpha_frac": 0.4996415771, "autogenerated": false, "ratio": 3.184931506849315, "config_test"...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "fitclock", ##"object_poi": "my-fitclock-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "", ## "required": true, ## "type": "String", ## "...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/fitclock.py", "copies": "1", "size": "1408", "license": "mit", "hash": 5110144629946646000, "line_mean": 22.8644067797, "line_max": 77, "alpha_frac": 0.4964488636, "autogenerated": false, "ratio": 3.3364928909952605, "config_test"...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "GenInput", ##"object_poi": "vph-101", ##"group" : "public", ##"remoting" : "False", ##"parameters": [ ## { ## "name": "GenInputParam", ## "description": "parameters file", ## "requir...
{ "repo_name": "recap/pumpkin", "path": "examples/sa/GenInput/GenInput.py", "copies": "1", "size": "3352", "license": "mit", "hash": -6724348909588332000, "line_mean": 32.8585858586, "line_max": 137, "alpha_frac": 0.5271479714, "autogenerated": false, "ratio": 3.263875365141188, "config_test": f...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "h5impcalc", ##"object_poi": "my-h5impcalc-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "", ## "required": true, ## "type": "String", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/h5impcalc.py", "copies": "1", "size": "1761", "license": "mit", "hash": -5245955039165986000, "line_mean": 22.48, "line_max": 86, "alpha_frac": 0.5195911414, "autogenerated": false, "ratio": 2.9898132427843804, "config_test": fals...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "ndppp", ##"object_poi": "my-ndppp-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "name to greet", ## "required": true, ## "type": "String", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/ndppp.py", "copies": "1", "size": "1640", "license": "mit", "hash": -6710301374586075000, "line_mean": 23.1176470588, "line_max": 56, "alpha_frac": 0.4987804878, "autogenerated": false, "ratio": 2.954954954954955, "config_test": f...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "output", ##"object_poi": "my-output-1234", ##"parameters": [ { ## "name": "output", ## "description": "a output", ## "required": true, ## "type": "String", ## "state" : "PLOT&P...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/output.py", "copies": "1", "size": "1364", "license": "mit", "hash": 7059384227531901000, "line_mean": 24.7358490566, "line_max": 99, "alpha_frac": 0.5351906158, "autogenerated": false, "ratio": 3.3679012345679014, "config_test": ...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "phase", ##"object_poi": "my-phase-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "", ## "required": true, ## "type": "String", ## "state"...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/phase.py", "copies": "1", "size": "1321", "license": "mit", "hash": 2085347808495966200, "line_mean": 22.5892857143, "line_max": 74, "alpha_frac": 0.5079485238, "autogenerated": false, "ratio": 3.2141119221411194, "config_test": f...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "plotcalphases", ##"object_poi": "my-plotcalphases-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "", ## "required": true, ## "type": "String", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/plotcalphases.py", "copies": "1", "size": "2143", "license": "mit", "hash": 7036025126390774000, "line_mean": 26.1265822785, "line_max": 62, "alpha_frac": 0.5319645357, "autogenerated": false, "ratio": 2.9930167597765363, "config_...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "plot", ##"object_poi": "my-plot-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "name", ## "description": "", ## "required": true, ## "type": "String", ## "state" :...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/plot.py", "copies": "1", "size": "2873", "license": "mit", "hash": 2288700670251755500, "line_mean": 26.8932038835, "line_max": 102, "alpha_frac": 0.4879916464, "autogenerated": false, "ratio": 3.4993909866017052, "config_test": f...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "skycal", ##"object_poi": "my-skycal-1234", ##"auto-load" : true, ##"parameters": [ { ## "name": "calibrated", ## "description": "", ## "required": true, ## "type": "String", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/prefactor/tasks/skycal.py", "copies": "1", "size": "1457", "license": "mit", "hash": 3225557367103671000, "line_mean": 25.9814814815, "line_max": 120, "alpha_frac": 0.5415236788, "autogenerated": false, "ratio": 3.2163355408388523, "config_test":...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "Sobol", ##"object_poi": "vph-101", ##"group" : "public", ##"remoting" : "False", ##"parameters": [ ## { ## "name": "Sobol", ## "description": "data directory tarred", ## "required": ...
{ "repo_name": "recap/pumpkin", "path": "examples/sa/Sobol/Sobol.py", "copies": "1", "size": "2598", "license": "mit", "hash": -1502548878639677700, "line_mean": 27.8666666667, "line_max": 122, "alpha_frac": 0.4838337182, "autogenerated": false, "ratio": 3.365284974093264, "config_test": false, ...
__author__ = 'reggie' ###START-CONF ##{ ##"object_name": "StubModel", ##"object_poi": "vph-101", ##"group" : "public", ##"remoting" : "False", ##"parameters": [ ## { ## "name": "StubModelParam", ## "description": "data directory tarred", ## ...
{ "repo_name": "recap/pumpkin", "path": "examples/sa/Models/StubModel.py", "copies": "1", "size": "3864", "license": "mit", "hash": -3344909304955190300, "line_mean": 29.6746031746, "line_max": 106, "alpha_frac": 0.5163043478, "autogenerated": false, "ratio": 3.7551020408163267, "config_test": f...
__author__ = 'reimu' import math import pygame from gameobjects.vector2 import Vector2 SCR_SIZE = (480, 800) # 屏幕大小 # class bullet class Bullet: def __init__(self, surface, parent, direction=(0, 1), speed=4, radius=2, target=None): self.__surface = surface # 自身图像 self.__xPos = parent.get_pos(...
{ "repo_name": "Yuvv/LearnTestDemoTempMini", "path": "py-py/learn_unit_test/bullet.py", "copies": "1", "size": "2139", "license": "mit", "hash": -8165989849246033000, "line_mean": 26.3913043478, "line_max": 87, "alpha_frac": 0.6039856924, "autogenerated": false, "ratio": 2.324228028503563, "conf...
__author__ = 'reisuke' from flask import Flask from flask_restful import Resource, Api, reqparse import base64 import numpy as np import cv2 from sys import argv app = Flask(__name__) api = Api(app) class ImageConvert(Resource): def __init__(self): self.parser = reqparse.RequestParser() self.par...
{ "repo_name": "Raizan/FlaskGrayscaleWebservice", "path": "app.py", "copies": "1", "size": "1921", "license": "mit", "hash": -388336160163156600, "line_mean": 31.0333333333, "line_max": 88, "alpha_frac": 0.6434148881, "autogenerated": false, "ratio": 3.6382575757575757, "config_test": false, "...
__author__ = "rekenerd" import endpoints from protorpc import message_types from protorpc import messages from protorpc import remote from helper.settings import anno_js_client_id from model.anno import Anno from model.userannostate import UserAnnoState @endpoints.api(name="userannostate", version="1.0", description...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/api/userannostate_api.py", "copies": "1", "size": "1172", "license": "mpl-2.0", "hash": 8380226615846148000, "line_mean": 34.5151515152, "line_max": 103, "alpha_frac": 0.7013651877, "autogenerated": false, "ratio": 3.732484076433121, "co...
__author__ = "rekenerd" import logging from model.userannostate import UserAnnoState from model.userrole import UserRole from tasks.push_notifications_task import PushTaskQueue from helper.utils_enum import AnnoActionType from helper.utils_enum import PlatformType from helper.utils_enum import AnnoPushNotificationMes...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/helper/activity_push_notifications.py", "copies": "1", "size": "7224", "license": "mpl-2.0", "hash": -9110468318635497000, "line_mean": 42.5180722892, "line_max": 127, "alpha_frac": 0.646179402, "autogenerated": false, "ratio": 3.844598190...
__author__ = "rekenerd" ''' AppInfo API implemented using Google Cloud Endpoints. ''' import logging import endpoints from protorpc import message_types from protorpc import messages from protorpc import remote from helper.settings import anno_js_client_id from helper.utils import getAppInfo from message.appinfo_me...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/api/appinfo_api.py", "copies": "1", "size": "2067", "license": "mpl-2.0", "hash": 3823170292098955300, "line_mean": 37.2777777778, "line_max": 88, "alpha_frac": 0.7121432027, "autogenerated": false, "ratio": 3.7650273224043715, "config_t...
__author__ = "rekenerd" """ Invite data store model definition. """ import uuid from google.appengine.ext import ndb from model.base_model import BaseModel from model.community import Community from model.user import User from model.userrole import UserRole from helper.utils_enum import UserRoleType class Invite(B...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/model/invite.py", "copies": "1", "size": "3501", "license": "mpl-2.0", "hash": -6363959305945510000, "line_mean": 32.0283018868, "line_max": 91, "alpha_frac": 0.5829762925, "autogenerated": false, "ratio": 4.218072289156627, "config_test...
__author__ = "Remigius Kalimba" """Add a timer so it does this automatically everyday at a set time""" import pickle import crontab as CronTab import json import os import sys from subprocess import call import getpass pwd = os.path.dirname(os.path.abspath(__file__)) def schedule_start(folders): """Starts a ...
{ "repo_name": "blavejr/OrganiseDesktop", "path": "organise_desktop/cronController.py", "copies": "1", "size": "1499", "license": "mit", "hash": -2906812272534630000, "line_mean": 26.7592592593, "line_max": 97, "alpha_frac": 0.5903935957, "autogenerated": false, "ratio": 3.594724220623501, "conf...
__author__ = 'Remy Mourard' class DeeHeap: """ constructeur - le tas est indexé à partir de zéro contrairement au tas binaire indexé à partir de 1 a = tableau a convertir en tas d = nombre d'enfants max par noeud """ def __init__(self, a, d): self.heap = ...
{ "repo_name": "jee4404/jeeHeap", "path": "deeHeap.py", "copies": "1", "size": "5151", "license": "unlicense", "hash": 8642418322492039000, "line_mean": 29.5740740741, "line_max": 130, "alpha_frac": 0.5489927635, "autogenerated": false, "ratio": 3.1896444167186524, "config_test": false, "has_n...
__author__ = 'renanalencar' from django import forms from .models import SignUp class ContactForm(forms.Form): full_name = forms.CharField(required=False) email = forms.EmailField() message = forms.CharField() def clean_email(self): email = self.cleaned_data.get('email') email_base, ...
{ "repo_name": "renanalencar/hermes", "path": "newsletter/forms.py", "copies": "1", "size": "1331", "license": "mit", "hash": 8436512540864261000, "line_mean": 32.275, "line_max": 84, "alpha_frac": 0.6153268219, "autogenerated": false, "ratio": 4.1080246913580245, "config_test": false, "has_no...
__author__ = 'renanalencar' """ Django settings for hermes project. Generated by 'django-admin startproject' using Django 1.8.3. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref...
{ "repo_name": "renanalencar/hermes", "path": "hermes/settings/base.py", "copies": "1", "size": "4899", "license": "mit", "hash": 3606233467272551000, "line_mean": 24.9206349206, "line_max": 87, "alpha_frac": 0.6774852011, "autogenerated": false, "ratio": 3.2551495016611294, "config_test": false...
__author__ = 'Renato' from collections import namedtuple from pyctionary import translate KeyboardEvent = namedtuple('KeyboardEvent', ['event_type', 'key_code', 'scan_code', 'alt_pressed', 'time']) # Blocking method. You must ...
{ "repo_name": "pastahito/PyStrokes", "path": "pkghito/Hook3v2.py", "copies": "1", "size": "2555", "license": "mit", "hash": -8199466391720028000, "line_mean": 35.5, "line_max": 114, "alpha_frac": 0.6, "autogenerated": false, "ratio": 3.7136627906976742, "config_test": false, "has_no_keywords"...
__author__ = 'Renato' from collections import namedtuple KeyboardEvent = namedtuple('KeyboardEvent', ['event_type', 'key_code', 'scan_code', 'alt_pressed', 'time']) handlers = [] def listen(): """ Calls `handlers` for ...
{ "repo_name": "pastahito/PyStrokes", "path": "pkghito/Hook3.py", "copies": "1", "size": "2190", "license": "mit", "hash": -7315551400782335000, "line_mean": 35.5, "line_max": 87, "alpha_frac": 0.596347032, "autogenerated": false, "ratio": 3.7244897959183674, "config_test": false, "has_no_keyw...
__author__ = 'Renato' from ctypes import * user32 = windll.user32 # START SENDINPUT TYPE DECLARATIONS PUL = POINTER(c_ulong) # class KeyBdInput(Structure): _fields_ = [("wVk", c_ushort), ("wScan", c_ushort), ("dwFlags", c_ulong), ("time", c_ulong), ...
{ "repo_name": "pastahito/PyStrokes", "path": "pkghito/const/input_structures.py", "copies": "1", "size": "1132", "license": "mit", "hash": -6159404588711725000, "line_mean": 19.9814814815, "line_max": 39, "alpha_frac": 0.480565371, "autogenerated": false, "ratio": 3.369047619047619, "config_tes...
__author__ = 'Renato' from hardware_scan_code import * from virtual_key_code import * from itertools import chain arrows = {'left': [37, 0xCB], 'down': [40, 208], 'right': [39, 205], 'up': [38, 200]} # key:[VKC,HSC] # number_generator = {x%10: [0x30+x, x+1] for x in range(0,10)} # HSC for 0 key must be 11 numbers ...
{ "repo_name": "pastahito/PyStrokes", "path": "pkghito/const/pyctionary.py", "copies": "1", "size": "2478", "license": "mit", "hash": 1830819545930170600, "line_mean": 62.4871794872, "line_max": 119, "alpha_frac": 0.4333602585, "autogenerated": false, "ratio": 2.273645546372819, "config_test": f...