text
stringlengths
0
1.05M
meta
dict
__author__ = 'topcircler' """ Anno API implemented using Google Cloud Endpoints. """ import endpoints from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError from protorpc import message_types from protorpc import messages from protorpc import remote from messa...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/plugins/io.usersource.anno/anno_gec_server/api/anno_api.py", "copies": "1", "size": "7068", "license": "mpl-2.0", "hash": -5731702048454660000, "line_mean": 38.9378531073, "line_max": 127, "alpha_frac": 0.6509620826, "autogenerated": f...
__author__ = 'topcircler' """ Anno API implemented using Google Cloud Endpoints. """ import endpoints import logging from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError from protorpc import message_types from protorpc import messages from protorpc import re...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/plugins/io.usersource.anno/anno_gec_server/anno_api.py", "copies": "2", "size": "5412", "license": "mpl-2.0", "hash": -3723823714328167000, "line_mean": 37.1197183099, "line_max": 120, "alpha_frac": 0.6509608278, "autogenerated": false...
__author__ = 'topcircler' """ Anno data store model definition. """ from google.appengine.ext import ndb import datetime from message.anno_api_messages import AnnoResponseMessage from message.anno_api_messages import AnnoListMessage import logging from model.base_model import BaseModel from api.utils import get_coun...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/plugins/io.usersource.anno/anno_gec_server/model/anno.py", "copies": "1", "size": "13445", "license": "mpl-2.0", "hash": -3160418864077994000, "line_mean": 45.5259515571, "line_max": 116, "alpha_frac": 0.6080327259, "autogenerated": fa...
__author__ = 'topcircler' """ ProtoRPC message class definitions for Anno API. """ from protorpc import messages from protorpc import message_types from message.user_message import UserMessage from message.followup_message import FollowupMessage class AnnoMessage(messages.Message): """ ProtoRPC message def...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/message/anno_api_messages.py", "copies": "2", "size": "4249", "license": "mpl-2.0", "hash": 5551143911051946000, "line_mean": 38.3518518519, "line_max": 105, "alpha_frac": 0.7277006354, ...
__author__ = 'topcircler' """ ProtoRPC message class definitions for Anno API. """ from protorpc import messages from protorpc import message_types class AnnoMessage(messages.Message): """ ProtoRPC message definition to represent an insert/update request annotation and response annotation. This is used ...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/anno_api_messages.py", "copies": "2", "size": "2808", "license": "mpl-2.0", "hash": 2354642194516013600, "line_mean": 34.1125, "line_max": 105, "alpha_frac": 0.7133190883, "autogenerat...
__author__ = 'topcircler' from google.appengine.ext import ndb from message.user_message import UserMessage class User(ndb.Model): """ Represents user entity. """ user_email = ndb.StringProperty() # this field should be unique. display_name = ndb.StringProperty() # this field shoul...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/model/user.py", "copies": "2", "size": "1735", "license": "mpl-2.0", "hash": -1288641026612343300, "line_mean": 32.7, "line_max": 104, "alpha_frac": 0.6328530259, "autogenerated": fals...
__author__ = 'topcircler' from protorpc import messages class UserMessage(messages.Message): id = messages.IntegerField(1) user_email = messages.StringField(2) display_name = messages.StringField(3) password = messages.StringField(4) auth_source = messages.StringField(5) device_id = ...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/message/user_message.py", "copies": "1", "size": "2116", "license": "mpl-2.0", "hash": -1393851891686253000, "line_mean": 37.1851851852, "line_max": 82, "alpha_frac": 0.741020794, "autogenerated": false, "ratio": 4.084942084942085, "conf...
__author__ = 'topcircler' import datetime import endpoints from protorpc import message_types from protorpc import messages from protorpc import remote from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError from message.vote_message import VoteMessa...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/api/vote_api.py", "copies": "1", "size": "5495", "license": "mpl-2.0", "hash": -1803722394378721300, "line_mean": 36.9716312057, "line_max": 118, "alpha_frac": 0.6191082803, "autogenerated": false, "ratio": 3.9818840579710146, "config_te...
__author__ = 'topcircler' import datetime import endpoints from protorpc import remote from protorpc import messages from protorpc import message_types from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError from helper.settings import anno_js_client...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/api/followup_api.py", "copies": "1", "size": "6399", "license": "mpl-2.0", "hash": -8902098779385680000, "line_mean": 39.0192307692, "line_max": 122, "alpha_frac": 0.6447882482, "autogenerated": false, "ratio": 4.133720930232558, "config...
__author__ = 'topcircler' import datetime import endpoints from protorpc import remote from protorpc import message_types from protorpc import messages from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError from message.flag_message import FlagMessa...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/api/flag_api.py", "copies": "1", "size": "5484", "license": "mpl-2.0", "hash": -4845572496329539000, "line_mean": 36.6197183099, "line_max": 118, "alpha_frac": 0.6187089716, "autogenerated": false, "ratio": 4.059215396002961, "config_tes...
__author__ = 'topcircler' import endpoints from protorpc import message_types from protorpc import messages from protorpc import remote from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError import datetime from message.vote_message import VoteMessage...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/api/vote_api.py", "copies": "2", "size": "4987", "license": "mpl-2.0", "hash": -9052290702971184000, "line_mean": 36.6589147287, "line_max": 118, "alpha_frac": 0.6091838781, "autogener...
__author__ = 'topcircler' import endpoints from protorpc import message_types from protorpc import remote from protorpc import messages from api.utils import anno_js_client_id from api.utils import md5 from api.utils import get_endpoints_current_user from api.utils import auth_user from api.utils import ge...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/plugins/io.usersource.anno/anno_gec_server/api/user_api.py", "copies": "2", "size": "2691", "license": "mpl-2.0", "hash": 5794278034165154000, "line_mean": 40.046875, "line_max": 110, "alpha_frac": 0.6480862133, "autogenerated": false,...
__author__ = 'topcircler' import endpoints from protorpc import message_types from protorpc import remote from api.utils import anno_js_client_id from api.utils import validate_email from api.utils import validate_password from api.utils import md5 from api.utils import get_endpoints_current_user from mode...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/api/account_api.py", "copies": "2", "size": "3666", "license": "mpl-2.0", "hash": 5843595185942837000, "line_mean": 44.4303797468, "line_max": 142, "alpha_frac": 0.6568466994, "autogen...
__author__ = 'topcircler' import endpoints from protorpc import remote from protorpc import messages from protorpc import message_types from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError import datetime from api.utils import get_endpoints_current_...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/api/followup_api.py", "copies": "2", "size": "4931", "license": "mpl-2.0", "hash": 7017936436805469000, "line_mean": 37.448, "line_max": 116, "alpha_frac": 0.6353680795, "autogenerated...
__author__ = 'topcircler' import endpoints from protorpc import remote from protorpc import message_types from protorpc import messages from google.appengine.datastore.datastore_query import Cursor from google.appengine.ext.db import BadValueError import datetime from message.flag_message import FlagMessage...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/plugins/io.usersource.anno/anno_gec_server/api/flag_api.py", "copies": "2", "size": "4974", "license": "mpl-2.0", "hash": -7092573769702961000, "line_mean": 36.2615384615, "line_max": 118, "alpha_frac": 0.6089666265, "autogenerated": f...
__author__ = 'topcircler' import logging import endpoints from protorpc import remote from protorpc import message_types from helper.utils import put_search_document from model.anno import Anno from model.appinfo import AppInfo from helper.settings import anno_js_client_id from helper.utils import is_emp...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/api/util_api.py", "copies": "1", "size": "2189", "license": "mpl-2.0", "hash": 4687979379596333000, "line_mean": 37.8, "line_max": 131, "alpha_frac": 0.6678848789, "autogenerated": false, "ratio": 4.001828153564899, "config_test": false,...
__author__ = 'topcircler' import webapp2 from model.anno import Anno class ImageHandler(webapp2.RequestHandler): def get(self): """ handle request for screenshot. sample: https://usersource-anno.appspot.com/screenshot?anno_id=5644572721938432 """ anno_id = se...
{ "repo_name": "usersource/tasks", "path": "tasks_phonegap/Tasks/cordova/plugins/io.usersource.anno/anno_gec_server/image_handler.py", "copies": "2", "size": "1051", "license": "mpl-2.0", "hash": 7531814444764953000, "line_mean": 35.5357142857, "line_max": 92, "alpha_frac": 0.5661274976, "autogenera...
__author__ = 'topcircler' import webapp2 from model.anno import Anno class ImageHandler(webapp2.RequestHandler): HEADER_PNG = [chr(0x89), chr(0x50), chr(0x4E), chr(0x47)] HEADER_JPG = [chr(0xFF), chr(0xD8)] MAX_AGE = 30*24*60*60 def get(self): """ handle request for sc...
{ "repo_name": "usersource/anno", "path": "anno_gec_server/handler/image_handler.py", "copies": "1", "size": "2776", "license": "mpl-2.0", "hash": -3323917256757445600, "line_mean": 39.4328358209, "line_max": 103, "alpha_frac": 0.5450288184, "autogenerated": false, "ratio": 4.0466472303206995, "...
__author__ = "Toure Dunnon" __license__ = "Apache License 2.0" __version__ = "0.1" __email__ = "toure@redhat.com" __status__ = "Alpha" import argparse import os import yaml import sys current_dir = os.path.dirname(__file__) CONF = os.path.join(current_dir, "./iridium.yaml") class Cli(object): @staticmethod ...
{ "repo_name": "Toure/Iridium", "path": "iridium/config/configmanager.py", "copies": "1", "size": "5483", "license": "apache-2.0", "hash": 6809745998857529000, "line_mean": 34.3741935484, "line_max": 121, "alpha_frac": 0.5518876527, "autogenerated": false, "ratio": 4.4182111200644645, "config_te...
__author__ = "Toure Dunnon" __license__ = "Apache License 2.0" __version__ = "0.1" __email__ = "toure@redhat.com" __status__ = "Alpha" from cinderclient import client from iridium.libs.openstack import keystone from iridium.plugins.inspector import Plugin class CinderBase(object): """ CinderBase class is use...
{ "repo_name": "Toure/Iridium", "path": "iridium/libs/openstack/cinder.py", "copies": "1", "size": "1264", "license": "apache-2.0", "hash": 6403205563042987000, "line_mean": 34.1111111111, "line_max": 101, "alpha_frac": 0.6329113924, "autogenerated": false, "ratio": 3.95, "config_test": false, ...
__author__ = "Toure Dunnon" __license__ = "Apache License 2.0" __version__ = "0.1" __email__ = "toure@redhat.com" __status__ = "Alpha" from setuptools import setup import os def read(fname): """ Read function is used to provide a simple way to inject a more lengthy description without cluttering the setu...
{ "repo_name": "Toure/Iridium", "path": "setup.py", "copies": "1", "size": "1419", "license": "apache-2.0", "hash": 8140183557026686000, "line_mean": 32.7857142857, "line_max": 94, "alpha_frac": 0.6300211416, "autogenerated": false, "ratio": 3.753968253968254, "config_test": false, "has_no_key...
__author__ = "Toure Dunnon" __license__ = "Apache License 2.0" __version__ = "0.1" __email__ = "toure@redhat.com" __status__ = "Alpha" import pytest from iridium.libs.openstack import nova from iridium.core.logger import glob_logger @pytest.fixture def nova_auth(): nova_cl = nova.NovaBase('2') return nova_cl...
{ "repo_name": "Toure/Iridium", "path": "iridium/test/nova_tests/nova_test.py", "copies": "1", "size": "1477", "license": "apache-2.0", "hash": 960368078386380500, "line_mean": 24.9122807018, "line_max": 102, "alpha_frac": 0.7061611374, "autogenerated": false, "ratio": 3.0516528925619837, "confi...
__author__ = "Toure Dunnon" __license__ = "Apache License 2.0" __version__ = "0.1" __email__ = "toure@redhat.com" __status__ = "Alpha" """ Keystone module which will be responsible for authentication and base keystone commands. """ import os from keystoneclient.v2_0 import client from config.configmanager import CON...
{ "repo_name": "Toure/Iridium", "path": "iridium/libs/openstack/keystone.py", "copies": "1", "size": "3619", "license": "apache-2.0", "hash": -1767356140381193700, "line_mean": 33.4666666667, "line_max": 93, "alpha_frac": 0.6703509257, "autogenerated": false, "ratio": 4.021111111111111, "config_...
__author__ = "Toure Dunnon, Sean Toner" __license__ = "Apache License 2.0" __version__ = "0.1" __email__ = "toure@redhat.com, stoner@redhat.com" __status__ = "Alpha" import logging import time import os from iridium.config.configmanager import ConfigManager cm = ConfigManager() def make_timestamp(): """ Re...
{ "repo_name": "Toure/Iridium", "path": "iridium/core/logger.py", "copies": "1", "size": "2957", "license": "apache-2.0", "hash": -84373149209395470, "line_mean": 21.7461538462, "line_max": 104, "alpha_frac": 0.6438958404, "autogenerated": false, "ratio": 3.4994082840236684, "config_test": false...
__author__ = 'toure' import abc from .tracker import Tracker from bugzilla import Bugzilla class Bugz(Tracker): def __init__(self): # TODO auth logic here pass def create_case(self, **kwargs): """ Create initial bug. :param kwargs: product (str), ...
{ "repo_name": "Toure/Iridium", "path": "iridium/libs/trackers/bugz.py", "copies": "1", "size": "1640", "license": "apache-2.0", "hash": 2633286896811523600, "line_mean": 26.3333333333, "line_max": 93, "alpha_frac": 0.5554878049, "autogenerated": false, "ratio": 4.408602150537634, "config_test":...
__author__ = 'toure' import jenkins def connect(url: str, username: str, password: str, timeout: int=None) -> object: """ Jenkins Connect will attach to the specified server and return a session object. :param url: server ip or hostname with specified port. ei. localhost:8080, str :param username...
{ "repo_name": "Toure/Iridium", "path": "iridium/libs/infrastructure/ci_interface.py", "copies": "1", "size": "2187", "license": "apache-2.0", "hash": -8800549626906102000, "line_mean": 20.0288461538, "line_max": 108, "alpha_frac": 0.6204846822, "autogenerated": false, "ratio": 3.783737024221453, ...
__author__ = 'Toyz' from handlers.cfl.CFLOpener import CFLOpener from handlers.tools.singleton import singleton import tempfile import os @singleton class TempLoad: def __init__(self, cfl, default="interface"): if self.__doesexist(cfl): self.__loaded = CFLOpener(cfl) self.__tempFiles ...
{ "repo_name": "Toyz/IMVU-CFL-Reader", "path": "handlers/tools/temploader.py", "copies": "1", "size": "1062", "license": "mit", "hash": -8096094122621709000, "line_mean": 26.2307692308, "line_max": 69, "alpha_frac": 0.6082862524, "autogenerated": false, "ratio": 3.528239202657807, "config_test":...
__author__ = 'Toyz' from PyQt4 import QtCore from handlers.cfl.CFLMaker import CFLMaker import os class CreateCFLThread(QtCore.QThread): def __init__(self, parent, cflfile, folder): QtCore.QThread.__init__(self, parent) self.cflfile = cflfile self.file = folder def run(self): ...
{ "repo_name": "Toyz/IMVU-CFL-Reader", "path": "handlers/threads/CreateCFLThread.py", "copies": "1", "size": "1292", "license": "mit", "hash": -7261844337774228000, "line_mean": 38.1515151515, "line_max": 110, "alpha_frac": 0.5959752322, "autogenerated": false, "ratio": 3.5397260273972604, "conf...
__author__ = 'Toyz' import struct import contextlib import handlers.cfl from handlers.tools.Utils import InvalidCFLError from handlers.tools import Utils def loadResource(f): compressedSize = Utils.Utils.readInt(f) return f.read(compressedSize) class CFLOpener(object): def __init__(self, path): ...
{ "repo_name": "Toyz/IMVU-CFL-Reader", "path": "handlers/cfl/CFLOpener.py", "copies": "1", "size": "2400", "license": "mit", "hash": -3919140420279629300, "line_mean": 33.2857142857, "line_max": 96, "alpha_frac": 0.58375, "autogenerated": false, "ratio": 4.21792618629174, "config_test": false, ...
__author__ = 'Toyz' import struct import pylzma class InvalidCFLError(Exception): pass CFLCOMPRESS_NONE = 0 CFLCOMPRESS_LZMA = 4 class Utils: def __init__(self): pass @staticmethod def readInt(f): try: return struct.unpack('<I', f.read(4))[0] except struct.err...
{ "repo_name": "Toyz/IMVU-CFL-Reader", "path": "handlers/tools/Utils.py", "copies": "1", "size": "2656", "license": "mit", "hash": -6752403280331107000, "line_mean": 29.5287356322, "line_max": 79, "alpha_frac": 0.5534638554, "autogenerated": false, "ratio": 4.042617960426179, "config_test": fals...
__author__ = 'TPei' from plotting.plotly.graph_objs import * from data.DataHandler import get_all_the_data """ Working with the plotly api to create more interactive diagrams """ def sleep(): data = get_all_the_data() traces = [] categories = ['bed', 'sleep', 'sound', 'light', 'awake', 'averages'] ...
{ "repo_name": "TPei/jawbone_visualizer", "path": "plotting/plotly.py", "copies": "1", "size": "2565", "license": "mit", "hash": 4957401623344144000, "line_mean": 23.2075471698, "line_max": 72, "alpha_frac": 0.5150097466, "autogenerated": false, "ratio": 3.2758620689655173, "config_test": false,...
__author__ = 'TPei' from tkinter import * from data.manager import * from data.DataHandler import DataHandler class App: def __init__(self, master): master.wm_title("Jawbone Visualizer") self.button_width = 25 self.description = Label(master, text="Please choose a visualization mode:") ...
{ "repo_name": "TPei/jawbone_visualizer", "path": "main_gui.py", "copies": "1", "size": "3797", "license": "mit", "hash": -1075847318375999900, "line_mean": 31.186440678, "line_max": 89, "alpha_frac": 0.5359494338, "autogenerated": false, "ratio": 4.056623931623932, "config_test": false, "has_...
__author__ = 'TPei' import csv from helper.date_parser import * def parse_csv(): """ parse data in csv file :return: list with parsed data """ column_names = ['start_date', 'end_date', 'total_sleep_time', 'total_sleep_val', 'light_sleep_time', 'light_sleep_val', 'light_sleep_p...
{ "repo_name": "TPei/jawbone_visualizer", "path": "helper/csv_parser.py", "copies": "1", "size": "1067", "license": "mit", "hash": 2479530665049188400, "line_mean": 34.6, "line_max": 104, "alpha_frac": 0.5529522024, "autogenerated": false, "ratio": 3.3873015873015873, "config_test": false, "ha...
__author__ = 'TPei' import datetime def parse_date(date): """ parse date string looking like this December 6, 2014 at 5:17pm :param date: :return: datetime.datetime """ # used to get month no # '' at beginning of list so that month count starts at 1 months = ['', 'January', 'Februa...
{ "repo_name": "TPei/jawbone_visualizer", "path": "helper/date_parser.py", "copies": "1", "size": "1613", "license": "mit", "hash": -6789415054016477000, "line_mean": 27.8214285714, "line_max": 139, "alpha_frac": 0.5976441414, "autogenerated": false, "ratio": 3.113899613899614, "config_test": fa...
__author__ = 'TPei' import json import requests from handle_credentials import api_key def pprint(json_data): print(json.dumps(json_data, sort_keys=True, indent=4, separators=(',', ': '))) if __name__ == '__main__': base_url = 'http://ws.audioscrobbler.com/2.0/' #method = 'user.gettoptracks' method =...
{ "repo_name": "TPei/LastFM_Visualizer", "path": "main.py", "copies": "1", "size": "1069", "license": "mit", "hash": -2968767836178065400, "line_mean": 21.7446808511, "line_max": 82, "alpha_frac": 0.5809167446, "autogenerated": false, "ratio": 3.437299035369775, "config_test": false, "has_no_k...
__author__ = 'TPei' import json from helper.csv_parser import * from plotting.plotter import * from data.DataHandler import get_all_the_data from helper.helper import * def plot_sleep_from_csv(): sleep_data = parse_csv() total_times = [] deep_times = [] light_times = [] awake_times = [] label...
{ "repo_name": "TPei/jawbone_visualizer", "path": "data/manager.py", "copies": "1", "size": "5902", "license": "mit", "hash": 4771352905004311000, "line_mean": 27.1047619048, "line_max": 114, "alpha_frac": 0.5898000678, "autogenerated": false, "ratio": 3.1954520844612886, "config_test": false, ...
__author__ = 'TPei' import json from helper.helper import * class DataHandler: def __init__(self, time_type="asleep_time"): """ parse json files (meals, sleep, moves) and put all data into an embedded dict :param time_type: :return: """ self.d = {} ...
{ "repo_name": "TPei/jawbone_visualizer", "path": "data/DataHandler.py", "copies": "1", "size": "5722", "license": "mit", "hash": 4136201345699263000, "line_mean": 28.5, "line_max": 89, "alpha_frac": 0.4881160433, "autogenerated": false, "ratio": 3.7868960953011253, "config_test": false, "has_...
__author__ = 'TPei' import matplotlib.pyplot as plt from plotting.Plot import Plot class LineGraph(Plot): """ representing a line graph """ def __init__(self, data=None): """ :param data: data dict {'xdata': [...], 'ydata': [...]} sets ydata and xdata :return: ...
{ "repo_name": "TPei/jawbone_visualizer", "path": "plotting/LineGraph.py", "copies": "1", "size": "1470", "license": "mit", "hash": -2253173562415469800, "line_mean": 24.8070175439, "line_max": 76, "alpha_frac": 0.4823129252, "autogenerated": false, "ratio": 3.665835411471322, "config_test": fal...
__author__ = 'TPei' import matplotlib.pyplot as plt import numpy as np def plot_bar_chart(title, ylabel, keys, values): """ creates a bar chart for the given data :param title: title to display :param ylabel: ylabel text :param keys: names for the bars :param values: values to create bars for ...
{ "repo_name": "TPei/jawbone_visualizer", "path": "plotting/plotter.py", "copies": "1", "size": "25467", "license": "mit", "hash": -8916217484589846000, "line_mean": 32.7324503311, "line_max": 146, "alpha_frac": 0.5564848628, "autogenerated": false, "ratio": 3.2570661209873384, "config_test": fa...
__author__ = 'traff' import os import sys import tempfile import threading from _prof_imports import pkgutil, Stats, FuncStat, Function try: execfile=execfile #Not in Py3k except NameError: #We must redefine it in Py3k if it's not already there def execfile(file, glob=None, loc=None): if glob is ...
{ "repo_name": "allotria/intellij-community", "path": "python/helpers/profiler/prof_util.py", "copies": "22", "size": "3567", "license": "apache-2.0", "hash": 4410724025994211000, "line_mean": 26.2290076336, "line_max": 115, "alpha_frac": 0.585085506, "autogenerated": false, "ratio": 3.75473684210...
__author__ = 'traff' import threading import os import sys import tempfile from _prof_imports import Stats, FuncStat, Function try: execfile=execfile #Not in Py3k except NameError: #We must redefine it in Py3k if it's not already there def execfile(file, glob=None, loc=None): if glob is None: ...
{ "repo_name": "vvv1559/intellij-community", "path": "python/helpers/profiler/prof_util.py", "copies": "14", "size": "3225", "license": "apache-2.0", "hash": -3838303629626971600, "line_mean": 26.3305084746, "line_max": 115, "alpha_frac": 0.5879069767, "autogenerated": false, "ratio": 3.7326388888...
__author__ = 'traff' import threading import os import tempfile from _prof_imports import Stats, FuncStat, Function class ProfDaemonThread(threading.Thread): def __init__(self): super(ProfDaemonThread, self).__init__() self.setDaemon(True) self.killReceived = False def run(self): ...
{ "repo_name": "lucafavatella/intellij-community", "path": "python/helpers/profiler/prof_util.py", "copies": "45", "size": "1803", "license": "apache-2.0", "hash": -3603986794119167500, "line_mean": 25.1304347826, "line_max": 101, "alpha_frac": 0.5696062119, "autogenerated": false, "ratio": 3.606,...
__author__ = 'Tran Huu Cuong' #import pymongo import csv from app import app, db from app.models import term from flask import abort, jsonify, request import datetime import json import titlecase #from pymongo import MongoClient #client = MongoClient('mongodb://localhost:27017/') #db = client.dict_financial path...
{ "repo_name": "tranhuucuong91/glossary", "path": "import_data/import_data.py", "copies": "1", "size": "1575", "license": "apache-2.0", "hash": 979945646363285100, "line_mean": 25.6949152542, "line_max": 103, "alpha_frac": 0.5625396825, "autogenerated": false, "ratio": 3.492239467849224, "config...
__author__ = 'Traphix' import struct # Format C Type Python type Standard size # x pad byte no value # c char bytes of length 1 1 # b signed char integer 1 # B unsigned char integer ...
{ "repo_name": "halexan/Headquarters", "path": "test/lc_client/msg_proto.py", "copies": "1", "size": "2656", "license": "mit", "hash": 1667572458838635800, "line_mean": 41.1587301587, "line_max": 104, "alpha_frac": 0.4977409639, "autogenerated": false, "ratio": 3.3158551810237205, "config_test":...
__author__ = 'Traphix' import struct import cfg import msg_proto # from cfg import LOG # downlink message base class class MsgDownBase(object): def __init__(self, local_ctrl): super(MsgDownBase, self).__init__() self.local_ctrl = local_ctrl self.msg_type = None self.msg_len = None ...
{ "repo_name": "halexan/Headquarters", "path": "test/lc_client/msg_proto_parser.py", "copies": "1", "size": "3990", "license": "mit", "hash": 1813489596678772500, "line_mean": 30.6666666667, "line_max": 96, "alpha_frac": 0.5533834586, "autogenerated": false, "ratio": 3.3870967741935485, "config_...
__author__ = 'Traphix' from cfg import LOG # basic event, other events are derived from this class class EventTFLCPMsgBase(object): def __init__(self, msg=None): super(EventTFLCPMsgBase, self).__init__() self.msg = msg # Message Event Definition # only uplink message generate Events c...
{ "repo_name": "halexan/Headquarters", "path": "src/headquarters/tflc_event.py", "copies": "1", "size": "2624", "license": "mit", "hash": 2674470083707670500, "line_mean": 30.8, "line_max": 122, "alpha_frac": 0.5769817073, "autogenerated": false, "ratio": 4.036923076923077, "config_test": false,...
__author__ = 'Traphix' import struct import cfg import msg_proto from cfg import LOG # downlink message base class class MsgDownBase(object): def __init__(self, local_ctrl): super(MsgDownBase, self).__init__() self.local_ctrl = local_ctrl self.msg_type = None self.msg_...
{ "repo_name": "halexan/Headquarters", "path": "src/headquarters/msg_proto_parser.py", "copies": "1", "size": "5960", "license": "mit", "hash": 1682627931948763000, "line_mean": 32.8538011696, "line_max": 120, "alpha_frac": 0.5427852349, "autogenerated": false, "ratio": 3.348314606741573, "confi...
__author__ = 'Traphix' import tflc_event import msg_proto import msg_proto_parser import struct from cfg import LOG # Global Event Dispatcher EVENT_DISPATCHER = tflc_event.EventDispatcher() # uplink message handling def hello_up_handler(local_ctrl, msg_type, msg_len, data): msg = msg_proto_parser....
{ "repo_name": "halexan/Headquarters", "path": "src/headquarters/msg_handler.py", "copies": "1", "size": "3520", "license": "mit", "hash": 2056474774362530000, "line_mean": 43.7402597403, "line_max": 101, "alpha_frac": 0.5522727273, "autogenerated": false, "ratio": 3.4108527131782944, "config_te...
__author__ = 'Travis Moy' import math import random import AStar # ExampleMap holds both a map (a 2-D array of True/False values indicating passability) and the four functions noted # in AStar. class ExampleMap(object): PROB_OBSTRUCTED = .25 MAP_SIZE = 20 def __init__(self): self.map = [[(lambda:...
{ "repo_name": "MoyTW/AStar", "path": "example.py", "copies": "1", "size": "4547", "license": "mit", "hash": 2367588231401604000, "line_mean": 37.8717948718, "line_max": 116, "alpha_frac": 0.5852210249, "autogenerated": false, "ratio": 3.736236647493837, "config_test": false, "has_no_keywords"...
__author__ = 'Travis Moy' import math # Holds the three angles for each cell. Near is closest to the horizontal/vertical line, and far is furthest. # # Also used for obstructions; for the purposes of obstructions, the center variable is ignored. class CellAngles(object): def __init__(self, near, center, far): ...
{ "repo_name": "MoyTW/roguebasin_rpas", "path": "rpas.py", "copies": "1", "size": "8471", "license": "mit", "hash": 4878514197272051000, "line_mean": 45.2950819672, "line_max": 119, "alpha_frac": 0.609019006, "autogenerated": false, "ratio": 3.8174853537629563, "config_test": false, "has_no_ke...
__author__ = 'Travis Moy' import random import rpas # Map generation parameters prob_is_obstructed = .1 map_size = 20 # False values are obstructed; True are unobstructed. map = [[(lambda: prob_is_obstructed < random.uniform(0.0, 1.0))() for _ in range(map_size)] for _ in range(map_size)] # Normally this would be...
{ "repo_name": "MoyTW/roguebasin_rpas", "path": "example.py", "copies": "1", "size": "1585", "license": "mit", "hash": 4811450502660926000, "line_mean": 23.78125, "line_max": 117, "alpha_frac": 0.6498422713, "autogenerated": false, "ratio": 3.1139489194499017, "config_test": false, "has_no_key...
__author__ = 'Travis Moy' # This is an implementation of the A* pathfinding algorithm. # # It is designed to be usable in as many different situations as possible, with as many different types of nodes as # possible. Therefore, it does not directly manipulate any of the data, and may be used with any data format the u...
{ "repo_name": "MoyTW/AStar", "path": "AStar.py", "copies": "1", "size": "6397", "license": "mit", "hash": -3870866340722978300, "line_mean": 41.9395973154, "line_max": 120, "alpha_frac": 0.6431139597, "autogenerated": false, "ratio": 4.18651832460733, "config_test": false, "has_no_keywords": ...
__author__ = 'Travis' # API ID = this is being kept in a separate file for security reasons # correct_url = 'http://api.openweathermap.org/data/2.5/weather?q=Austin,tx&APPID= import requests import json from datetime import date, datetime city = raw_input("Get forecast for which city/state? Use the format: City,st. >...
{ "repo_name": "tjc0090/weather_forecast", "path": "weatherAPI.py", "copies": "1", "size": "4369", "license": "mit", "hash": -7816850753943848000, "line_mean": 33.4094488189, "line_max": 121, "alpha_frac": 0.6282902266, "autogenerated": false, "ratio": 3.563621533442088, "config_test": false, ...
from __future__ import division, print_function, absolute_import from functools import partial from . import _quadpack import sys import numpy from numpy import Inf __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain'] error = _quadpack.error def quad_explain(output=sys.stdout): """ Print ext...
{ "repo_name": "juliantaylor/scipy", "path": "scipy/integrate/quadpack.py", "copies": "1", "size": "28020", "license": "bsd-3-clause", "hash": -2738788785271650300, "line_mean": 40.5111111111, "line_max": 468, "alpha_frac": 0.6151320485, "autogenerated": false, "ratio": 3.69608231104076, "config...
from __future__ import division, print_function, absolute_import from functools import partial from . import _quadpack import sys import numpy from numpy import Inf from scipy.lib.six import callable __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain'] error = _quadpack.error def quad_explain(outpu...
{ "repo_name": "kmspriyatham/symath", "path": "scipy/scipy/integrate/quadpack.py", "copies": "2", "size": "28056", "license": "apache-2.0", "hash": -2656767464608632300, "line_mean": 40.4416543575, "line_max": 468, "alpha_frac": 0.6153763901, "autogenerated": false, "ratio": 3.6959557370570413, ...
from __future__ import division, print_function, absolute_import import sys import warnings from functools import partial from . import _quadpack import numpy from numpy import Inf __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain', 'IntegrationWarning'] error = _quadpack.error class Inte...
{ "repo_name": "argriffing/scipy", "path": "scipy/integrate/quadpack.py", "copies": "8", "size": "31950", "license": "bsd-3-clause", "hash": 8339422567630786000, "line_mean": 40.0668380463, "line_max": 468, "alpha_frac": 0.5976525822, "autogenerated": false, "ratio": 3.805383515959981, "config_t...
from __future__ import division, print_function, absolute_import import sys import warnings from functools import partial import numpy from numpy import Inf from . import _quadpack __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain', 'IntegrationWarning'] error = _quadpack.error class Int...
{ "repo_name": "DailyActie/Surrogate-Model", "path": "01-codes/scipy-master/scipy/integrate/quadpack.py", "copies": "1", "size": "32100", "license": "mit", "hash": -7820675159324976000, "line_mean": 39.8396946565, "line_max": 467, "alpha_frac": 0.596105919, "autogenerated": false, "ratio": 3.80376...
import sys import warnings from functools import partial from . import _quadpack import numpy from numpy import Inf __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain', 'IntegrationWarning'] error = _quadpack.error class IntegrationWarning(UserWarning): """ Warning on issues during ...
{ "repo_name": "pizzathief/scipy", "path": "scipy/integrate/quadpack.py", "copies": "2", "size": "37361", "license": "bsd-3-clause", "hash": -5075002082565106000, "line_mean": 40.6046770601, "line_max": 468, "alpha_frac": 0.5929445143, "autogenerated": false, "ratio": 3.7980075226186845, "config...
from __future__ import division, print_function, absolute_import from . import _quadpack import sys import numpy from numpy import inf, Inf __all__ = ['quad', 'dblquad', 'tplquad', 'quad_explain'] error = _quadpack.error def quad_explain(output=sys.stdout): """ Print extra information about integrate.quad(...
{ "repo_name": "Universal-Model-Converter/UMC3.0a", "path": "data/Python/x86/Lib/site-packages/scipy/integrate/quadpack.py", "copies": "3", "size": "21061", "license": "mit", "hash": -4602289911849658400, "line_mean": 42.1577868852, "line_max": 468, "alpha_frac": 0.6339205166, "autogenerated": false...
from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (assert_array_equal, assert_almost_equal, assert_array_less, assert_array_almost_equal, assert_, assert_allclose, assert_equal, assert_warns, suppr...
{ "repo_name": "arokem/scipy", "path": "scipy/stats/tests/test_morestats.py", "copies": "1", "size": "76762", "license": "bsd-3-clause", "hash": 430921813454607360, "line_mean": 39.8961108151, "line_max": 92, "alpha_frac": 0.5601078659, "autogenerated": false, "ratio": 2.902374470659407, "config...
from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (TestCase, run_module_suite, assert_array_equal, assert_almost_equal, assert_array_less, assert_array_almost_equal, assert_raises, assert_, assert_...
{ "repo_name": "marcsans/cnn-physics-perception", "path": "phy/lib/python2.7/site-packages/scipy/stats/tests/test_morestats.py", "copies": "7", "size": "51601", "license": "mit", "hash": 4381120917401242600, "line_mean": 37.7977443609, "line_max": 86, "alpha_frac": 0.5702021279, "autogenerated": fal...
import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (assert_array_equal, assert_almost_equal, assert_array_less, assert_array_almost_equal, assert_, assert_allclose, assert_equal, suppress_warnings) import pytest from pytest import raises as assert_raises from sci...
{ "repo_name": "person142/scipy", "path": "scipy/stats/tests/test_morestats.py", "copies": "2", "size": "76344", "license": "bsd-3-clause", "hash": 7168011914055329000, "line_mean": 39.869379015, "line_max": 92, "alpha_frac": 0.5597034476, "autogenerated": false, "ratio": 2.8982954329752095, "co...
from __future__ import division, print_function, absolute_import import math import warnings from collections import namedtuple import numpy as np from numpy import (isscalar, r_, log, around, unique, asarray, zeros, arange, sort, amin, amax, any, atleast_1d, sqrt, ceil, floor, a...
{ "repo_name": "mgaitan/scipy", "path": "scipy/stats/morestats.py", "copies": "2", "size": "91460", "license": "bsd-3-clause", "hash": 1200228768328960500, "line_mean": 32.761535622, "line_max": 103, "alpha_frac": 0.5952766237, "autogenerated": false, "ratio": 3.441839461107139, "config_test": t...
from __future__ import division, print_function, absolute_import import math import warnings import numpy as np from numpy import (isscalar, r_, log, sum, around, unique, asarray, zeros, arange, sort, amin, amax, any, atleast_1d, sqrt, ceil, floor, array, poly1d, compress, ...
{ "repo_name": "jsilter/scipy", "path": "scipy/stats/morestats.py", "copies": "2", "size": "78560", "license": "bsd-3-clause", "hash": -8829402445241241000, "line_mean": 32.0222782682, "line_max": 83, "alpha_frac": 0.5909495927, "autogenerated": false, "ratio": 3.4410862899693386, "config_test":...
from __future__ import division, print_function, absolute_import import math import warnings import numpy as np from numpy import (isscalar, r_, log, sum, around, unique, asarray, zeros, arange, sort, amin, amax, any, atleast_1d, sqrt, ceil, floor, array, poly1d, compress, not_equal, pi, exp, ravel, angle) ...
{ "repo_name": "chaluemwut/fbserver", "path": "venv/lib/python2.7/site-packages/scipy/stats/morestats.py", "copies": "7", "size": "78330", "license": "apache-2.0", "hash": 8807157582983980000, "line_mean": 31.9533024821, "line_max": 86, "alpha_frac": 0.5935912166, "autogenerated": false, "ratio": ...
from __future__ import division, print_function, absolute_import import math import sys import threading import timeit import warnings import numpy as np from numpy import (allclose, angle, arange, argsort, array, asarray, atleast_1d, atleast_2d, cast, dot, exp, expand_dims, isc...
{ "repo_name": "DailyActie/Surrogate-Model", "path": "01-codes/scipy-master/scipy/signal/signaltools.py", "copies": "1", "size": "115980", "license": "mit", "hash": -4995553217006694000, "line_mean": 33.0416788964, "line_max": 86, "alpha_frac": 0.576418348, "autogenerated": false, "ratio": 3.55265...
from __future__ import division, print_function, absolute_import import operator import math import sys import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd...
{ "repo_name": "arokem/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "145702", "license": "bsd-3-clause", "hash": 4234060982992902000, "line_mean": 33.1062734082, "line_max": 86, "alpha_frac": 0.5829432678, "autogenerated": false, "ratio": 3.523031167637885, "config_test"...
from __future__ import division, print_function, absolute_import import operator import sys import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy._lib.six import callable from scipy import linalg, fft as sp_fft from scipy.fft...
{ "repo_name": "jamestwebber/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "144783", "license": "bsd-3-clause", "hash": 4566499108139554000, "line_mean": 33.1067137809, "line_max": 86, "alpha_frac": 0.582782509, "autogenerated": false, "ratio": 3.520730491452472, "config_...
from __future__ import division, print_function, absolute_import import operator import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len from scipy._lib.six import callable from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd_shape_and_axes from nump...
{ "repo_name": "jor-/scipy", "path": "scipy/signal/signaltools.py", "copies": "2", "size": "123981", "license": "bsd-3-clause", "hash": 4508281323455783400, "line_mean": 33.1545454545, "line_max": 85, "alpha_frac": 0.5745315815, "autogenerated": false, "ratio": 3.5338330863071485, "config_test":...
from __future__ import division, print_function, absolute_import import operator import threading import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, linalg from nu...
{ "repo_name": "mbayon/TFG-MachineLearning", "path": "venv/lib/python3.6/site-packages/scipy/signal/signaltools.py", "copies": "4", "size": "117066", "license": "mit", "hash": -5949162739787510000, "line_mean": 32.9814223512, "line_max": 107, "alpha_frac": 0.5756923445, "autogenerated": false, "ra...
from __future__ import division, print_function, absolute_import import warnings import threading import sys if sys.version_info.major >= 3 and sys.version_info.minor >= 5: from math import gcd else: from fractions import gcd from . import sigtools from ._upfirdn import _UpFIRDn, _output_len from scipy._lib....
{ "repo_name": "chatcannon/scipy", "path": "scipy/signal/signaltools.py", "copies": "3", "size": "94290", "license": "bsd-3-clause", "hash": 8696619812110829000, "line_mean": 31.8880362749, "line_max": 92, "alpha_frac": 0.5615441722, "autogenerated": false, "ratio": 3.459294860035954, "config_te...
from __future__ import division, print_function, absolute_import import warnings import threading import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, linalg from nu...
{ "repo_name": "HesselTjeerdsma/Cyber-Physical-Pacman-Game", "path": "Algor/flask/lib/python2.7/site-packages/scipy/signal/signaltools.py", "copies": "1", "size": "116436", "license": "apache-2.0", "hash": -6342050037518855000, "line_mean": 33.0058411215, "line_max": 86, "alpha_frac": 0.5761791886, ...
from __future__ import division, print_function, absolute_import import warnings import threading import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _UpFIRDn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, lina...
{ "repo_name": "woodscn/scipy", "path": "scipy/signal/signaltools.py", "copies": "2", "size": "115985", "license": "bsd-3-clause", "hash": -5917829602496272000, "line_mean": 33.0131964809, "line_max": 86, "alpha_frac": 0.5767901022, "autogenerated": false, "ratio": 3.5511772450323016, "config_te...
from __future__ import division, print_function, absolute_import import warnings import threading import sys from . import sigtools, dlti from ._upfirdn import upfirdn, _UpFIRDn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, linalg from numpy ...
{ "repo_name": "argriffing/scipy", "path": "scipy/signal/signaltools.py", "copies": "10", "size": "104451", "license": "bsd-3-clause", "hash": -599298908113863800, "line_mean": 32.7483037157, "line_max": 92, "alpha_frac": 0.5705737619, "autogenerated": false, "ratio": 3.5002513320599173, "config...
from __future__ import division, print_function, absolute_import import warnings import threading import sys from . import sigtools, lti from ._upfirdn import _UpFIRDn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, linalg from numpy import (al...
{ "repo_name": "niknow/scipy", "path": "scipy/signal/signaltools.py", "copies": "2", "size": "98092", "license": "bsd-3-clause", "hash": 3214122276242956300, "line_mean": 32.2064996615, "line_max": 92, "alpha_frac": 0.5648167027, "autogenerated": false, "ratio": 3.482391366089179, "config_test":...
from __future__ import division, print_function, absolute_import import warnings import threading import sys from . import sigtools from ._upfirdn import _UpFIRDn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, linalg from numpy import (allclos...
{ "repo_name": "Gillu13/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "96375", "license": "bsd-3-clause", "hash": 3904192034282814000, "line_mean": 32.0390812479, "line_max": 92, "alpha_frac": 0.5638391699, "autogenerated": false, "ratio": 3.471221725976084, "config_test"...
from __future__ import division, print_function, absolute_import import warnings import threading from . import sigtools from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import fftpack, linalg from numpy import (allclose, angle, arange, argsort, array, asarray, ...
{ "repo_name": "poojavade/Genomics_Docker", "path": "Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/signal/signaltools.py", "copies": "2", "size": "89744", "license": "apache-2.0", "hash": -9122598729511614000, "line_mean": 31.7891852393, "line_max": 92, "alpha_frac": 0.559...
from __future__ import division, print_function, absolute_import import warnings import threading from . import sigtools from scipy.lib.six import callable from scipy.lib._version import NumpyVersion from scipy import linalg from scipy.fftpack import (fft, ifft, ifftshift, fft2, ifft2, fftn, ...
{ "repo_name": "jshiv/turntable", "path": "test/lib/python2.7/site-packages/scipy/signal/signaltools.py", "copies": "7", "size": "66141", "license": "mit", "hash": 8011334348588984000, "line_mean": 30.7832772705, "line_max": 79, "alpha_frac": 0.5529096929, "autogenerated": false, "ratio": 3.482754...
from __future__ import division, print_function, absolute_import import warnings import threading from . import sigtools from scipy._lib.six import callable from scipy._lib._version import NumpyVersion from scipy import linalg from scipy.fftpack import (fft, ifft, ifftshift, fft2, ifft2, fftn, ...
{ "repo_name": "dch312/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "81613", "license": "bsd-3-clause", "hash": 6317625455202025000, "line_mean": 31.3347860539, "line_max": 79, "alpha_frac": 0.5596289807, "autogenerated": false, "ratio": 3.460377358490566, "config_test":...
from __future__ import division, print_function, absolute_import import warnings from . import sigtools from scipy.lib.six import callable from scipy import linalg from scipy.fftpack import (fft, ifft, ifftshift, fft2, ifft2, fftn, ifftn, fftfreq) from numpy.fft import rfftn, irfftn from n...
{ "repo_name": "ogrisel/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "59278", "license": "bsd-3-clause", "hash": -463106053733766340, "line_mean": 30.2482867686, "line_max": 79, "alpha_frac": 0.546577145, "autogenerated": false, "ratio": 3.484686379401564, "config_test":...
import operator import math import sys import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd_shape_and_axes import numpy as np from scipy.special import lambe...
{ "repo_name": "aeklant/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "145636", "license": "bsd-3-clause", "hash": 1465799459307200800, "line_mean": 33.1067915691, "line_max": 86, "alpha_frac": 0.5828572606, "autogenerated": false, "ratio": 3.5227981906581842, "config_tes...
import operator import math import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd_shape_and_axes from scipy._lib._util import prod as _prod import numpy as np...
{ "repo_name": "pizzathief/scipy", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "146890", "license": "bsd-3-clause", "hash": -1338943969581878500, "line_mean": 33.1525226691, "line_max": 85, "alpha_frac": 0.5826877255, "autogenerated": false, "ratio": 3.522879892555641, "config_...
import types import sigtools from scipy import special, linalg from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, ifftn from numpy import polyadd, polymul, polydiv, polysub, \ roots, poly, polyval, polyder, cast, asarray, isscalar, atleast_1d, \ ones, sin, linspace, real, extract, real_if_clo...
{ "repo_name": "huard/scipy-work", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "48348", "license": "bsd-3-clause", "hash": 2015885511581352000, "line_mean": 28.8444444444, "line_max": 81, "alpha_frac": 0.5321833375, "autogenerated": false, "ratio": 3.268523526230395, "config_te...
import types import warnings import sigtools from scipy import special, linalg from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, \ ifftn, fftfreq from numpy import polyadd, polymul, polydiv, polysub, \ roots, poly, polyval, polyder, cast, asarray, isscalar, atleast_1d, \ ones, sin, lin...
{ "repo_name": "stefanv/scipy3", "path": "scipy/signal/signaltools.py", "copies": "1", "size": "53313", "license": "bsd-3-clause", "hash": -556038568353377700, "line_mean": 29.4819897084, "line_max": 104, "alpha_frac": 0.5336784649, "autogenerated": false, "ratio": 3.2996843473417097, "config_te...
import sigtools from scipy import linalg from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, \ ifftn, fftfreq from numpy import polyadd, polymul, polydiv, polysub, roots, \ poly, polyval, polyder, cast, asarray, isscalar, atleast_1d, \ ones, real_if_close, zeros, array, arange, ...
{ "repo_name": "teoliphant/scipy", "path": "scipy/signal/signaltools.py", "copies": "2", "size": "50403", "license": "bsd-3-clause", "hash": -2356528776158830600, "line_mean": 30.112962963, "line_max": 80, "alpha_frac": 0.5381822511, "autogenerated": false, "ratio": 3.398718813216453, "config_te...
from __future__ import division, print_function, absolute_import import numpy as np from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, polyint __all__ = ['sawtooth', 'square', 'gausspulse', 'chirp', 'sweep_poly'] def sawtooth(t, width=1): """ Return a pe...
{ "repo_name": "mhogg/scipy", "path": "scipy/signal/waveforms.py", "copies": "64", "size": "14818", "license": "bsd-3-clause", "hash": -384487971739471940, "line_mean": 29.8066528067, "line_max": 79, "alpha_frac": 0.5660682953, "autogenerated": false, "ratio": 3.303901895206243, "config_test": f...
from __future__ import division, print_function, absolute_import import numpy as np from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, polyint from scipy._lib.six import string_types __all__ = ['sawtooth', 'square', 'gausspulse', 'chirp', 'sweep_poly', ...
{ "repo_name": "ammarkhann/FinalSeniorCode", "path": "lib/python2.7/site-packages/scipy/signal/waveforms.py", "copies": "9", "size": "17461", "license": "mit", "hash": 9108637258512393000, "line_mean": 29.3142361111, "line_max": 82, "alpha_frac": 0.5596472138, "autogenerated": false, "ratio": 3.31...
from __future__ import division, print_function, absolute_import import numpy as np from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, polyint __all__ = ['sawtooth', 'square', 'gausspulse', 'chirp', 'sweep_poly', 'unit_impulse'] def sawtooth(t, width...
{ "repo_name": "arokem/scipy", "path": "scipy/signal/waveforms.py", "copies": "1", "size": "21015", "license": "bsd-3-clause", "hash": -8192093778394416000, "line_mean": 29.9499263623, "line_max": 79, "alpha_frac": 0.554318344, "autogenerated": false, "ratio": 3.2480680061823803, "config_test": ...
from __future__ import division, print_function, absolute_import from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, polyint __all__ = ['sawtooth', 'square', 'gausspulse', 'chirp', 'sweep_poly'] def sawtooth(t, width=1): """ Return a periodic sawtooth o...
{ "repo_name": "sargas/scipy", "path": "scipy/signal/waveforms.py", "copies": "1", "size": "14473", "license": "bsd-3-clause", "hash": 2429711040720116700, "line_mean": 29.6631355932, "line_max": 79, "alpha_frac": 0.5696814759, "autogenerated": false, "ratio": 3.2781426953567383, "config_test": ...
import numpy as np from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, polyint __all__ = ['sawtooth', 'square', 'gausspulse', 'chirp', 'sweep_poly', 'unit_impulse'] def sawtooth(t, width=1): """ Return a periodic sawtooth or triangle waveform. ...
{ "repo_name": "scipy/scipy", "path": "scipy/signal/waveforms.py", "copies": "18", "size": "20287", "license": "bsd-3-clause", "hash": -5855938484022707000, "line_mean": 29.5527108434, "line_max": 85, "alpha_frac": 0.5561196826, "autogenerated": false, "ratio": 3.2448816378758796, "config_test":...
from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, polyint __all__ = ['sawtooth', 'square', 'gausspulse', 'chirp', 'sweep_poly'] def sawtooth(t, width=1): """ Return a periodic sawtooth or triangle waveform. The sawtooth waveform has a period ``2*p...
{ "repo_name": "teoliphant/scipy", "path": "scipy/signal/waveforms.py", "copies": "2", "size": "13200", "license": "bsd-3-clause", "hash": -2356933853927805400, "line_mean": 29.2752293578, "line_max": 79, "alpha_frac": 0.5668181818, "autogenerated": false, "ratio": 3.268135677147809, "config_tes...
from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, size, polyval, polyint, log10 def sawtooth(t,width=1): """Returns a periodic sawtooth waveform with period 2*pi which rises from -1 to 1 on the interval 0 to width*2*pi and drops from 1 to -1 on the interval w...
{ "repo_name": "huard/scipy-work", "path": "scipy/signal/waveforms.py", "copies": "2", "size": "6637", "license": "bsd-3-clause", "hash": -5665856460590320000, "line_mean": 32.0199004975, "line_max": 90, "alpha_frac": 0.5651649842, "autogenerated": false, "ratio": 2.9603033006244424, "config_tes...
from __future__ import division, print_function, absolute_import __all__ = ['odeint'] from . import _odepack from copy import copy import warnings class ODEintWarning(Warning): pass _msgs = {2: "Integration successful.", 1: "Nothing was done; the integration time was 0.", -1: "Excess work done...
{ "repo_name": "mtrbean/scipy", "path": "scipy/integrate/odepack.py", "copies": "47", "size": "7285", "license": "bsd-3-clause", "hash": 4308123277447846400, "line_mean": 42.3630952381, "line_max": 102, "alpha_frac": 0.6093342485, "autogenerated": false, "ratio": 4.090398652442448, "config_test"...
from __future__ import division, print_function, absolute_import __all__ = ['odeint'] from . import _odepack from copy import copy import warnings class ODEintWarning(Warning): pass _msgs = {2: "Integration successful.", 1: "Nothing was done; the integration time was 0.", -1: "Excess work do...
{ "repo_name": "DailyActie/Surrogate-Model", "path": "01-codes/scipy-master/scipy/integrate/odepack.py", "copies": "1", "size": "9422", "license": "mit", "hash": 9216492323145736000, "line_mean": 39.6120689655, "line_max": 102, "alpha_frac": 0.6043302908, "autogenerated": false, "ratio": 3.8933884...
from __future__ import division, print_function, absolute_import __all__ = ['odeint'] from . import _odepack from copy import copy _msgs = {2: "Integration successful.", -1: "Excess work done on this call (perhaps wrong Dfun type).", -2: "Excess accuracy requested (tolerances too small).", ...
{ "repo_name": "juliantaylor/scipy", "path": "scipy/integrate/odepack.py", "copies": "4", "size": "6827", "license": "bsd-3-clause", "hash": -1341814061519913200, "line_mean": 41.9371069182, "line_max": 83, "alpha_frac": 0.6048044529, "autogenerated": false, "ratio": 4.130066545674532, "config_t...
from __future__ import division, print_function, absolute_import __all__ = ['odeint'] from . import _odepack from copy import copy _msgs = {2: "Integration successful.", 1: "Nothing was done; the integration time was 0.", -1: "Excess work done on this call (perhaps wrong Dfun type).", -2: ...
{ "repo_name": "efiring/scipy", "path": "scipy/integrate/odepack.py", "copies": "10", "size": "7143", "license": "bsd-3-clause", "hash": 2806328094947497500, "line_mean": 42.5548780488, "line_max": 83, "alpha_frac": 0.6052078958, "autogenerated": false, "ratio": 4.11463133640553, "config_test": ...
from __future__ import division, print_function, absolute_import __all__ = ['odeint'] import numpy as np from . import _odepack from copy import copy import warnings class ODEintWarning(Warning): pass _msgs = {2: "Integration successful.", 1: "Nothing was done; the integration time was 0.", ...
{ "repo_name": "lhilt/scipy", "path": "scipy/integrate/odepack.py", "copies": "4", "size": "10832", "license": "bsd-3-clause", "hash": 5682357787741071000, "line_mean": 40.6615384615, "line_max": 102, "alpha_frac": 0.5989660266, "autogenerated": false, "ratio": 3.92463768115942, "config_test": f...
__all__ = ['odeint'] import numpy as np from . import _odepack from copy import copy import warnings class ODEintWarning(Warning): pass _msgs = {2: "Integration successful.", 1: "Nothing was done; the integration time was 0.", -1: "Excess work done on this call (perhaps wrong Dfun type).", ...
{ "repo_name": "aeklant/scipy", "path": "scipy/integrate/odepack.py", "copies": "21", "size": "10740", "license": "bsd-3-clause", "hash": -7822048530874692000, "line_mean": 40.4671814672, "line_max": 102, "alpha_frac": 0.5993482309, "autogenerated": false, "ratio": 3.9412844036697248, "config_te...
__all__ = ['odeint'] import _odepack from copy import copy _msgs = {2: "Integration successful.", -1: "Excess work done on this call (perhaps wrong Dfun type).", -2: "Excess accuracy requested (tolerances too small).", -3: "Illegal input detected (internal error).", -4: "Repeated ...
{ "repo_name": "teoliphant/scipy", "path": "scipy/integrate/odepack.py", "copies": "2", "size": "6598", "license": "bsd-3-clause", "hash": -8992353261197607000, "line_mean": 40.4968553459, "line_max": 83, "alpha_frac": 0.6006365565, "autogenerated": false, "ratio": 4.12375, "config_test": false,...
__author__ = 'traviswarren' from django.test import TestCase from django.core.urlresolvers import reverse from django.contrib.auth.models import User from teamtemp.responses.models import TeamTemperature, make_uuid from teamtemp.tests.factories import TeamTemperatureFactory class AdminViewTestCases(TestCase): ...
{ "repo_name": "teamtemp/teamtemp", "path": "teamtemp/tests/views/test_admin_views.py", "copies": "1", "size": "3448", "license": "mit", "hash": 4053665893410030600, "line_mean": 35.2947368421, "line_max": 106, "alpha_frac": 0.6806844548, "autogenerated": false, "ratio": 4.085308056872038, "conf...