blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9528815931cd48d687323138b85eab5bbf1e62c0 | 53690e2bc3245516cad611a3e7c09f39cc40ef81 | /ry_booking/ry_config.py | f49a612c37161ab9230d7d6390bb8ac359c45408 | [] | no_license | ashokdhudla/openerp | 109d3eefbea2c8dcbe79cdb4041977655ce9f7c7 | dc84b57a02d519b23354c16d437ed3bfb8e417aa | refs/heads/master | 2021-01-01T18:55:50.943047 | 2015-02-06T10:54:48 | 2015-02-06T10:54:48 | 28,812,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,097 | py | from openerp.osv import fields, osv
from openerp.tools.translate import _
import datetime
from openerp import tools
import time
from datetime import date, timedelta
class yacht_config(osv.osv):
def _show_bookings(self, cr, uid, ids, name, args, context=None):
res = {}
c_ids = self.pool.get('booking.yachts').sear... | [
"techanipr@techanipr.(none)"
] | techanipr@techanipr.(none) |
7c0f5c4952dfdf5372682e284f19b270209d51a5 | 76e7cf74e14c12f5d5ca6c14ae97073dd1e92e64 | /analyze_weber_study.py | 5fe7d938d3e5da27a5db7a01a06aa4f008fd873f | [
"MIT"
] | permissive | musslick/DARTS-Cognitive-Modeling | bac38faa837e7d41598a6c0a98244e32627b26d3 | f38e7e34f6f20c1626458de62503e8670e06be7c | refs/heads/main | 2023-04-13T22:15:53.044314 | 2021-04-23T12:18:01 | 2021-04-23T12:18:01 | 360,868,887 | 0 | 0 | null | 2021-04-23T12:02:05 | 2021-04-23T11:59:09 | null | UTF-8 | Python | false | false | 6,139 | py | from AER_theorist.darts.plot_utils import generate_darts_summary_figures, plot_model_graph, load_model
from AER_experimentalist.experiment_environment.participant_weber import Participant_Weber
from AER_experimentalist.experimentalist_popper import Experimentalist_Popper
from AER_experimentalist.experiment_environment.... | [
"sebastian@musslick.de"
] | sebastian@musslick.de |
2afec0880233957053d99cc89542fbbcff82e3ec | e870032a1a2ef79765e1c5d420478c15c6162dae | /translation.py | abe7eb061cfd102510ad625eb66f3c4f5c5a9348 | [] | no_license | TianTianForever/python_test | b8050e80f4754bd90661a88c4d235a261c6aa88a | da779ff314c361fc49c08df9b7fc2a36a9e44030 | refs/heads/master | 2020-05-21T20:51:37.856849 | 2017-03-10T13:31:00 | 2017-03-10T13:31:00 | 64,821,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | #_*_coding:utf-8_*_
#author:tiantian
import requests
class youdao_date():
def __init__(self,parm):
self.form_data = {}
self.form_data['type'] = 'AUTO'
self.form_data['i'] = parm
self.form_data['doctype'] = 'json'
self.form_data['keyfrom'] = 'fanyi.web'
self.form_data[... | [
"2890339972@qq.com"
] | 2890339972@qq.com |
db45c78033020a746d2e7734111dba877b1ecbdb | f5dd289bb6b333a7df9edfa105f19486a93f5be4 | /460/LFU.py | 1ec3918ad0088f02546f99230cd6fa26fc1009c2 | [
"Apache-2.0"
] | permissive | cccccccccccccc/Myleetcode | 0ab50ba5303ed08fac8402c87efedebc6bf67c16 | fb3fa6df7c77feb2d252feea7f3507569e057c70 | refs/heads/master | 2023-07-03T21:11:54.050252 | 2021-08-11T08:26:01 | 2021-08-11T08:26:01 | 115,370,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from collections import defaultdict
class LFUNode:
def __init__(self,key,value):
self.key = key
self.value = value
self.frequency = 0
class LFUCache:
def __init__(self, capacity: int):
self.capacity = capacity
self. minfrequency = 0
self.keynodedict = defaultdic... | [
"chenzhang.1987@gmail.com"
] | chenzhang.1987@gmail.com |
3e7b548f6b5cdbd48c47d9c85724e93cbb569120 | 2b25aae9266437b657e748f3d6fea4db9e9d7f15 | /graphics/line/4/richard-zhan/main.py | 543aa01f31e1d50c82c08b4e4ca0d48c0b406554 | [] | no_license | Zilby/Stuy-Stuff | b1c3bc23abf40092a8a7a80e406e7c412bd22ae0 | 5c5e375304952f62667d3b34b36f0056c1a8e753 | refs/heads/master | 2020-05-18T03:03:48.210196 | 2018-11-15T04:50:03 | 2018-11-15T04:50:03 | 24,191,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from display import *
from draw import *
screen = new_screen()
color = [ 0, 255, 0 ]
matrix = []
#octant I
# add_edge(matrix, 0, 0, 0, XRES - 1, YRES - 75, 0 )
# add_edge(matrix, 0, 0, 0, XRES - 75, YRES - 1, 0 )
# add_edge(matrix, 0, YRES - 1, 0, XRES - 1, 75, 0 )
# add_edge(matrix, 0, YRES - 1, 0, XRES - 75, 0, 0 ... | [
"azilby@gmail.com"
] | azilby@gmail.com |
1b3c6d0ec8e357e208aa8edce82ca2abb2d6f309 | f5007de9aa601d2507d60acad21890e929847c06 | /traffic_light_classification/tl_classification.py | 9ef0bc392d3af71e6dee1870efc4a6dd2af34f23 | [] | no_license | sundar3112/Traffic-Light-Classification-using-Neural-Networks | a47e9f763210ce6011686551a07bfcebcce6868c | 957f938264fa23292ff77f61d865738e64047ed9 | refs/heads/master | 2022-11-12T18:46:42.517905 | 2020-07-02T10:24:31 | 2020-07-02T10:24:31 | 276,615,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,144 | py | import numpy as np
import matplotlib.pyplot as plt
import os, time
import random
import glob
import cv2
from sklearn.preprocessing import LabelBinarizer
from sklearn.cross_validation import train_test_split
import keras
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from ... | [
"sundar.kannan76@gmail.com"
] | sundar.kannan76@gmail.com |
e843c39e8e4989e30428e9ca261411b48af05bc5 | c0450361aa707635f5bf70eff21c1235d7e60cfa | /Lessons by HoudyHo/lesson (32).py | c992dd1dcb5591096afb4678ee5bf2a1ecc56285 | [] | no_license | zarkaltair/Learn-python | f48810b86e9832f4c364c345d1fa8624f9ced683 | dd6114b5bd6cc30eff328002521041dd2be2c3c5 | refs/heads/master | 2020-04-10T05:48:51.052751 | 2019-01-23T18:48:34 | 2019-01-23T18:48:34 | 160,837,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Class
class Cat:
def __init__(self, color, legs):
self.color = color
self.legs = legs
felix = Cat('ginger', 4)
print(felix.color)
rover = Cat('dog-colored', 4)
stumpy = Cat('brown', 3)
class Student:
def __init__(self, name):
self.name = name
test = Student('Bob')
print(test.name)
class Dog:
def __init__(s... | [
"zarkaltair@gmail.com"
] | zarkaltair@gmail.com |
8a739db5df617751d89ed141e261859d6d87bd86 | 74156fe6808e7fc15ec7b049a4efd60b4aba5017 | /module2-oop-code-style-and-reviews/class/fauna.py | dafffe093dce8ec8b20c2556f10c47b2fc8ce515 | [
"MIT"
] | permissive | llpk79/DS-Unit-3-Sprint-1-Software-Engineering | 4ab6a1526568070f837b2ee566e2bbb45f381817 | b5401ae6018ad098435ea61d95173eb87bb74b9b | refs/heads/master | 2020-06-17T10:07:07.846384 | 2019-07-16T00:39:08 | 2019-07-16T00:39:08 | 195,891,721 | 1 | 0 | MIT | 2019-07-08T22:00:35 | 2019-07-08T22:00:35 | null | UTF-8 | Python | false | false | 1,020 | py | class Animal:
"""Base class for Animals.
Instance variables:
- name: str
- age: int
- position: 0
"""
hair = None
scales = None
def __init__(self, name, age):
self.name = name
self.age = age
self.position = 0
def move_up(self):
self.position +... | [
"pkutrich@gmail.com"
] | pkutrich@gmail.com |
6a46f8cc6eb16b2ec4bf357f10a6e5aa28cace39 | 9d9e8226a5b040d94abdfc47c12040defd6776d7 | /p6.py | 5d1fe307a478b12eff666a1a460d80282511ef51 | [] | no_license | Maelstroms/euler | 2903e1d2bbf39933e92d36475c2d2df0e24f10a7 | 4bb626853a5a5d349e801900a5054904c2f7eee3 | refs/heads/master | 2021-01-23T01:18:36.714339 | 2017-07-03T19:35:59 | 2017-07-03T19:35:59 | 92,866,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | """
Problem 6 of project Euler
"""
def diference_squares(num):
ra = range(num + 1)
sum_squares = 0
sum_squared = 0
for i in ra:
sum_squared += i
sum_squares += (i **2)
sum_squared **= 2
dif = sum_squared - sum_squares
return dif
print diference_squares(100) | [
"workpartystudy@yahoo.com"
] | workpartystudy@yahoo.com |
9bba621654288cc6ef834d5c323dd0e209e686f2 | 93866977712e467df6722a8208cc6241b6f3a6a6 | /mongodb/mongo.py | bafe079d16ec28576330a858b6847a6b6f40aec1 | [] | no_license | rayomeara/data-centric-development | 9c2d843610aba076682f90c04fc5a454afaae4c5 | 3b1b27f053587c761681f51aaceda805a5ef1e91 | refs/heads/master | 2020-08-30T07:37:06.182367 | 2019-11-01T13:17:38 | 2019-11-01T13:17:38 | 218,307,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | import pymongo
MONGODB_URI = "mongodb+srv://root:pass@myfirstcluster-2scdt.mongodb.net/myTestDB?retryWrites=true&w=majority"
DBS_NAME = "myTestDB"
COLLECTION_NAME = "myFirstMDB"
def mongo_connect(url):
try:
conn = pymongo.MongoClient(url)
print("Mongo is connected!")
return conn
excep... | [
"rayomeara@gmail.com"
] | rayomeara@gmail.com |
aa001063e9f7479fa662b2f1d3e134a8ae1b8598 | 2c885ae1e82a41366d8834bbf4cd977b3d244116 | /utility.py | eab587e98345bc8fbc97663210217cd9d7660c24 | [] | no_license | njhofmann/RangeParts | eefa45cd922b3447461978abd6cb51628593c9f4 | 33b1625520e297a47f0a84575cbcc0fca6626682 | refs/heads/master | 2021-07-16T18:32:16.723335 | 2020-03-09T04:04:26 | 2020-03-09T04:04:26 | 245,940,599 | 0 | 0 | null | 2021-04-20T19:30:43 | 2020-03-09T04:03:08 | Python | UTF-8 | Python | false | false | 1,414 | py | from src.range_part import RangePart
import sys
import random as r
MIN_RANGE_PART_SPACING = 10
def get_rand_int_below_exclusive(x):
"""
Returns a int in the range of [-sys.maxsize, x - 1]
:param x: upper bound (exclusive) of range from which random int is drawn from
:return: random int in ... | [
"inatejh@gmail.com"
] | inatejh@gmail.com |
dea83239281efd33ed2eb6660826802aba65bef8 | 7f8e784ccdbc3930c77ebb7db6677a9e34524581 | /gym_billiard/__init__.py | d96482b45897c2140842908051aa4cb432fe3c07 | [
"MIT"
] | permissive | fanbbbb/Billiard | bb185df42cb041078563fb7ca7b2a48490156e29 | b9b0bb08e5621adf1fe1c0e940e5f2d328126982 | refs/heads/master | 2020-09-25T20:01:23.700554 | 2019-10-02T13:47:33 | 2019-10-02T13:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from gym.envs.registration import register
register(
id='Billiard-v0',
entry_point='gym_billiard.envs:BilliardEnv',
timestep_limit=1000,
)
register(
id='BilliardHard-v0',
entry_point='gym_billiard.envs:BilliardHardEnv',
timestep_limit=1000,
) | [
"giuseppe.paolo93@gmail.com"
] | giuseppe.paolo93@gmail.com |
a1b038b6202da2cbd4ecfdbbb67db940c2e070d0 | 338b6e0ab02d7d15c433d5c024b9de8ee2ba90f4 | /docs/table/order2.py | a5b05060ce49077bbdfbade4831c3051c0632abf | [
"MIT"
] | permissive | keaising/dejavu | 4daa08dbcfbbc2d6263f8b03f2e76a2ef40bfc76 | 999fdbf5ff4da0d171700acb43e7a0c2f7082398 | refs/heads/master | 2022-12-16T20:08:11.119091 | 2019-10-08T07:38:19 | 2019-10-08T07:38:19 | 208,834,583 | 3 | 0 | MIT | 2022-12-08T14:21:40 | 2019-09-16T15:30:16 | Python | UTF-8 | Python | false | false | 355 | py | import pytablewriter
writer = pytablewriter.RstGridTableWriter()
# writer.table_name = "params list"
writer.headers = ["name", "type", "e.g.", "is_necessary"]
writer.value_matrix = [
["order_id", "string", "beb5cd6e-aba4-4e78-8a3e-13c40d3ba438", True]
]
with open("./docs/table/order2.rst", "w") as f:
writer.s... | [
"keaising@gmail.com"
] | keaising@gmail.com |
9928c4cc6efb6b7274a6aa1b238922962ddeedbf | 787db937312b0127988c2f78870827d727201cfc | /linkedlist.py | 8d6343512ee64a6a17a2beb2422d10173e300bd8 | [] | no_license | laurenpritchett/cs-data-struct-1 | a5b8ba8e0ba821fa40ca37274d6b78bb208e38fe | 9acae69b2d481e03b2336f0e37200617f2206e4f | refs/heads/master | 2021-01-21T06:38:15.487331 | 2017-02-27T02:27:07 | 2017-02-27T02:27:07 | 83,259,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | # Linked list with Node/LinkedList classes
class Node(object):
"""Node in a linked list."""
def __init__(self, data):
self.data = data
self.next = None
def __repr__(self):
return "<Node %s>" % self.data
class LinkedList(object):
"""Linked List using head and tail."""
d... | [
"laurenpritchett2@gmail.com"
] | laurenpritchett2@gmail.com |
9b69debbf6cbb7ffc8391e4fc0e4810ea5195973 | 2bed8fbcc428a0cde880e38d13503a77a455f36c | /game.py | bd8bdf3eb713e43da0dbe703662bf06d1890793f | [
"MIT"
] | permissive | thilohuellmann/python-hangman | ecfce22a490235241b46aea23b0525df2f631e1e | 8d16e55b7e4372f7ce9169e61b21128687137516 | refs/heads/master | 2021-05-05T13:46:57.577772 | 2018-01-21T21:44:14 | 2018-01-21T21:44:14 | 118,373,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,968 | py | import random
def hangman(stage):
if stage == 0:
print(" _________ ")
print("| | ")
print("| ")
print("| ")
print("| ")
print("| ")
elif stage == 1:
print(" _________ ")
print("| ... | [
"noreply@github.com"
] | noreply@github.com |
c89d9dd63e8ad40bf9c8ad88e5d1b06d1531375b | 67baab02cfda6c54a287d63d0874824cf15f3ba6 | /leetcode/146.LRU-Cache.py | 77ebbe8a5d8e8feca6017bda675a732c73ad9728 | [
"MIT"
] | permissive | sogapalag/problems | a14eedd8cfcdb52661479c8c90e08737aaeeb32b | 0ea7d65448e1177f8b3f81124a82d187980d659c | refs/heads/master | 2021-01-12T17:49:52.007234 | 2020-08-18T14:51:40 | 2020-08-18T14:51:40 | 71,629,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | class LRUCache(object):
def __init__(self, capacity):
"""
:type capacity: int
"""
self.c = capacity
self.cache = []
self.d = {}
def get(self, key):
"""
:rtype: int
"""
if key not in self.cache:
return -1... | [
"yan-zp@foxmail.com"
] | yan-zp@foxmail.com |
031f00f8e9ddf3d9db4d026ec919ba040d16c16b | e42dd7fe942e84599f44c9f60acf99cc0bfbdece | /setup.py | 36e0cefce92501e2703eda48cdbefc7d34179124 | [] | no_license | catketchup/newlens | 7563592f7eec37551d200a5b36cc8232a0bbfa64 | 3f4cd866ad348967fd66942ae1ee9d91af86b6fb | refs/heads/master | 2020-06-04T08:41:49.748853 | 2019-12-06T21:55:06 | 2019-12-06T21:55:06 | 191,948,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from setuptools import setup
setup(
name='newlens',
packages=['newlens'],
)
| [
"hoc34@pitt.edu"
] | hoc34@pitt.edu |
f59403ff751d921e4459a8430a09f49ae9dffbf1 | b2f059e18c4037db89ec4b4aea52bec7a90acd8a | /岭回归/redige.py | 57a98d5891d18cf423913dcbdc5d9f835b572ec3 | [] | no_license | 1415140539/Machine-Learning | 910469a5147ba6052046533cbfd9f47fffedd8a2 | b1a3e0eddeafc0a0ed09bf64f2ec4f290b17b2c2 | refs/heads/master | 2020-05-07T05:50:26.474560 | 2019-04-14T12:57:30 | 2019-04-14T12:57:30 | 180,288,898 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,276 | py | import os
import sys
import numpy as np
import sklearn.linear_model as sl
import sklearn.metrics as sm
import matplotlib.pyplot as mp
import matplotlib.patches as mc
def read_data(filename):
x, y = [],[]
with open(filename, "r") as f:
for line in f.readlines():
data = [float(substr) for substr in lin... | [
"noreply@github.com"
] | noreply@github.com |
c3ef4ba2e239f46ed154d87880ddfa20c3817bf5 | b743532f897c9aebe99be3bdd210707229782f95 | /stats/box_muller.py | 7f7d8d8806a0db1581e406f910040968ecdb336e | [] | no_license | koichiHik/prob_robotics | 9e72e0508e747c6f78eb71b4ad0d25dca193136a | c100115e8cf29c822c0ee62c1e314d7a85c5742c | refs/heads/master | 2020-04-14T21:31:36.588577 | 2019-01-21T13:29:14 | 2019-01-21T13:29:14 | 164,131,568 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,132 | py |
import matplotlib.pyplot as plt
import numpy as np
import random
import math
class BoxMuller():
@staticmethod
def sample_norm_dist(avg=0.0, sigma=1.0):
x1 = random.random()
x2 = random.random()
y1 = math.sqrt(-2*math.log(x1)) * math.cos(2 * math.pi * x2)
y2 = math.sqrt(-2*math.log(x1)) * math.sin... | [
"rkoichi2001@gmail.com"
] | rkoichi2001@gmail.com |
5949569198170da10d527c6b7fb581b0101e701b | 443ef092fd2870cca9d87211e53419418be70857 | /tor_async_couchdb/async_model_actions.py | 9c773536348ec152601e8ff42a6f9c963c180331 | [
"MIT"
] | permissive | djoume/tor-async-couchdb | b0479c404a785a1831bf7d02efe3328c132c7beb | 2c9483b20477c592b94e264a81f2f291eaf60c45 | refs/heads/master | 2021-01-21T23:23:22.892658 | 2015-05-04T12:07:27 | 2015-05-04T12:07:27 | 35,057,252 | 0 | 0 | null | 2015-05-04T20:19:46 | 2015-05-04T20:19:46 | null | UTF-8 | Python | false | false | 14,434 | py | """This module contains a collection of classes that implement
Tornado async actions against CouchDB.
"""
import httplib
import json
import logging
import urllib
import tornado.httputil
import tornado.httpclient
import tamper
_logger = logging.getLogger("async_actions.%s" % __name__)
"""```database``` points to a ... | [
"simonsdave@gmail.com"
] | simonsdave@gmail.com |
f199844d7cc3107bc0fd2744be8200abdcdecb19 | 583c9e181f78ce10900d6b33b7396504404319d0 | /todos/views.py | 5115b8e8539e6269e7ca14f7064cf9d263c59798 | [] | no_license | personalcomputer/sql_api_framework_poc | 28befa67ff241f019cb3cce45cf5e54876ae6e27 | d2e65a67cbb9fd54715ced0d69c4e28fca8ddbed | refs/heads/master | 2021-07-11T19:08:55.449192 | 2021-07-08T22:37:13 | 2021-07-08T22:37:13 | 170,656,258 | 0 | 0 | null | 2021-07-08T22:37:35 | 2019-02-14T08:35:04 | Python | UTF-8 | Python | false | false | 1,866 | py | from sql_api_framework.exceptions import ValidationError
from sql_api_framework.serializers import Field, PointField, Serializer, StrField
from sql_api_framework.views import ViewSet
from todos.models import Location, TodoItem
class LocationSerializer(Serializer):
fields_spec = [
StrField('id'),
F... | [
"personalcomputer@users.noreply.github.com"
] | personalcomputer@users.noreply.github.com |
44ab4f6367ddb06bddd4576c24cc0684c5ba3447 | 5719b38ca26780dcd7c68d77673bfa915e761d1d | /site_scrapers/scraperlib/manager.py | 26257dbcf93d9a086773aa2f07004b4cdd9b0df8 | [] | no_license | jwin4740/evantome | c6a012fcd831fd9b087e913bd6ae2f0180a0a64d | 1197ee949d66651d1d843e5df67a5d8d7527b154 | refs/heads/master | 2021-08-30T08:50:40.859499 | 2017-12-17T03:37:10 | 2017-12-17T03:37:10 | 114,503,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | from scraperlib import scraperutils
from scraperlib import config
import os
class ScraperManger:
def __init__(self):
self.SITE_NAME = os.path.split(os.getcwd())[1]
cm = config.ConfigManager()
self.db = cm.get_mongo()
self.categories = self.db[self.SITE_NAME + '_categories']
... | [
"jwinham4740@gmail.com"
] | jwinham4740@gmail.com |
14c415ad35bf45d2f01ec1f376d6a03482a79aa0 | 0af42f9c60ea5bf0b331bde39c9692c1f7020b52 | /trunk/main.py | 0bec779d4d940959e1fefb051d2c012202c53a3c | [] | no_license | zackhaikal/VISUINO | 70cf10d4781e997d57dbda9e897391df1b041dc8 | 49cd6b48bba9037b73ec16950c7dfdad93725627 | refs/heads/master | 2020-06-16T23:22:11.075968 | 2013-07-17T20:24:07 | 2013-07-17T20:24:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Purpose: Simply calls the VISUINO application. Also makes available the
# execute() function, from which you can simply do:
# >>> import visuino
# ... | [
"nelsojost@gmail.com"
] | nelsojost@gmail.com |
7a2f1e3df73c9296c47b7b67ad98c52ac5498c49 | de7ae339530ea1fdc56880bf58dbb0f185810c30 | /Currency.py | 280f82e7d82482cc50a3e8523a973267382d98f5 | [] | no_license | Vishwash18/vkgithub | 66cacd11b040fbb7046a5865d4edd47e6c37c4da | ee77a65c8ad5ba5740e370be3a763d5f7c08aad3 | refs/heads/master | 2022-12-02T23:00:45.386407 | 2020-08-05T03:30:00 | 2020-08-05T03:30:00 | 275,517,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #To find minimum number of currency to buy a product at a range of 5000
a=int(input("Enter no of Test Cases"))
def findMin(V):
#Indian Currency
Currency= [1, 2, 5, 10, 20, 50,
100, 500, 2000]
n = len(Currency)
ans = []
i = n - 1
while (i >= 0):
while (V >= C... | [
"noreply@github.com"
] | noreply@github.com |
dfe88bbaab9a448bfdfe73fb54e8df35b2577b16 | e1c7508e7db5e192c12b857f66722bdba0996447 | /PELEGRI_CONVEXHULL/exhaustive.py | c31da30bffbfa5ca2f4d7a364038e0a704765bf6 | [] | no_license | glaiveVII/Convex-Hull | d4eed5f61d8e2384c32d6a293af2dcaba445ed3a | b2269e714d3e4b69dbcde40989ed70c0248dcd6b | refs/heads/master | 2020-05-18T11:42:38.422714 | 2019-09-12T07:00:22 | 2019-09-12T07:00:22 | 184,386,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from itertools import permutations
from utils import is_convex, scatter_plot, point_in_polygon
# O(n^3)
def exhaustive(points, show=True, save=False, detailed=False):
"""
Returns the vertices comprising the boundaries of convex hull containing all points in the input set.
The input 'points' is a list of [... | [
"noreply@github.com"
] | noreply@github.com |
beb5886b6bb03f8e0149d52f247c773ab8efa39e | 0789766b3f242835f3c4e03e573f4d2fa3ebbc5a | /my_nas/dataset/imagenet_downsample.py | c2d73f91310cc798966575e69aef00dd70867fed | [] | no_license | Anonymous-1112/anonymous | 05900a2a5feba3a48ad76847a22a8c3a3f35b2e1 | d86ec6b35b681c9220150c68bb5eb10af26f5629 | refs/heads/master | 2023-07-01T19:49:57.400134 | 2021-08-08T15:29:12 | 2021-08-08T15:36:56 | 393,964,141 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,872 | py | # -*- coding: utf-8 -*-
import os
import pickle
from PIL import Image
import numpy as np
from torchvision import transforms
from torchvision.datasets import vision
from my_nas.utils.torch_utils import Cutout
from my_nas.dataset.base import BaseDataset
class ImageNetDownsampleDataset(vision.VisionDataset):
train_... | [
"anonymous-email@anony.com"
] | anonymous-email@anony.com |
fc2f37d98cee3d15b61881d708ca537804025901 | 3db67bcb0b1ec133938124afe37fa4e4b11f5955 | /erp-classifier/erp classifier/notepads/q_tools.py | 0fcbda84c3bf3618ecf498c4353cc2c839dd994a | [] | no_license | agustinignaciovazquez/ErrP-Gaming-Agent-Final-Thesis- | 30cce8055d30bd621676c0caf05f9386ca59a7b5 | 84618b8725dc9769c82ed0113aaca39d5bc19c4d | refs/heads/master | 2023-01-10T22:03:48.825067 | 2020-11-09T22:50:16 | 2020-11-09T22:50:16 | 293,665,714 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,453 | py | import random
import math
import numpy as np
def write_q_table_file(q_table, q_file="Q_Table.txt"):
"""
Write the q table in a file that will be used to play game
:param q_table: Q table to be written in file, has to be a matrix
:param q_file: File name to write in
"""
file = open(q_file, "w+"... | [
"agvazquez@itba.edu.ar"
] | agvazquez@itba.edu.ar |
bf6f219b69f2e6d6e24d476efa5c021d9bc1d92f | 7ee943cb36255907ec4e4dfadfee34b8f485473e | /main.py | 92bf6d92b8e9b94210e17a806760547fbfb36b16 | [] | no_license | fatmaerciyas/game-without-interface | 90678a31c0c71592eeda5911bee597d8e76faf7d | 301c4fdd7bd9562b9ef6376a45489bebf1bd1d6a | refs/heads/master | 2022-11-03T12:10:13.025610 | 2020-06-13T17:23:10 | 2020-06-13T17:23:10 | 272,053,781 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,663 | py |
import tkinter as tk
from tkinter import *
import random
# Not: matris yamuk gibi gözükebilir gemileri str tanımladığım için öyle gözüküyor indisleri sayarsanız yamuk değil
oyun = 1
while (oyun == 1):
print("Amiral battı oyununa hoşgeldiniz :)")
secim = int(input("\nGizli modda oyun oynamak için 1'... | [
"noreply@github.com"
] | noreply@github.com |
feda66fc146af78407172506a125300af20c439c | ef0bca6be87d9d128b917cf04b3276c6cfbc92d4 | /file_conversion/unlinked_snps_to_genepop.py | 0d7c71a17da30bd3f82159307c30d8b9d637f83d | [] | no_license | brunoasm/rad_palm_weevil | 723e8d077705d6cbe05c98d3c53ee3d4672f573d | d991703c73e4c3d121667116278690478d9a0a3d | refs/heads/master | 2023-01-31T20:02:02.324713 | 2020-12-15T07:21:24 | 2020-12-15T07:21:24 | 267,647,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,422 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
This script produces a genpop file from a phylip file in which columns are unlinked snps
If desired, a file with population assignments can be provided (following the same format as ipyrad's population assignment file)
written by B. de Medeiros, starting in 2015
parts... | [
"souzademedeiros@fas.harvard.edu"
] | souzademedeiros@fas.harvard.edu |
222718a959e5bd245577f86359c4d1d915c8e4de | 4d159501df67958bfd036890e598ca183eec04d3 | /2019-03/03-22/1987.py | f4cd0b55695d24126c08955b50b98b326c782924 | [] | no_license | nonameP765/back-joon | 96a413bff4e7d5b3716135981936d76880b871c9 | 4fceaa6d8dbbb65615b39c643dd809ad96104369 | refs/heads/master | 2020-04-21T08:01:20.666912 | 2019-03-22T04:59:18 | 2019-03-22T04:59:18 | 169,407,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | R, C = map(int, input().split(' '))
ma = list()
for _ in range(R):
ma.append(list(input()))
visited = dict()
# for i in ma:
# for j in i:
# visited[j] = False
stack = list()
stack.append(((0, 0), {ma[0][0]}, 1))
result = 0
while stack:
(i, j), his, w = stack.pop()
result = max(result, w)
... | [
"nonamep765@gmail.com"
] | nonamep765@gmail.com |
48a228cc6a7f9225c0f945efa997e472c91eaf3d | 7ca6516deac222fc11179aeb4454c5dbfaf2c87a | /scf_python_package_download/index.py | b18c211378bed874451a5e760e1d54668b2a0c14 | [] | no_license | anycodes/ServerlessPractice | 10fb5f84c39c93aaf7ea6df15342a962d3b645a7 | d2e23b5a8ff58db3ab826c7df723d6d18a444698 | refs/heads/master | 2020-12-03T23:13:02.062927 | 2020-03-02T10:31:17 | 2020-03-02T10:31:17 | 231,517,955 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,327 | py | # -*- coding: utf8 -*-
import json
import shutil
import zipfile
import os
import sys
import subprocess
from qcloud_cos import CosConfig
from qcloud_cos import CosS3Client
secret_id = '' # 替换为用户的 secretId
secret_key = '' # 替换为用户的 secretKey
region = 'ap-shanghai' # 替换为用户的 Region
token = None # 使用临时密钥需要传入 Token,默认为空... | [
"dfounderliu@tencent.com"
] | dfounderliu@tencent.com |
54cdd7f5ce0fc2040583d0605b91c1bddb75daee | 68e0a967f52fd86e82f80dc4fd9198449f8f1030 | /doc/.src/book/scripts.py | 09eacba33e843d93599017499cf00bfdf3b8d05a | [] | no_license | htphuc/fdm-book | 4ac32a30506a83fd1ae35c2fe1934d194ea11686 | 07b15f987374b3e91d21ab14c06cfc0a79634936 | refs/heads/master | 2021-01-17T20:59:48.188917 | 2016-04-25T21:06:12 | 2016-04-25T21:06:12 | 57,400,233 | 1 | 0 | null | 2016-04-29T17:01:53 | 2016-04-29T17:01:52 | null | UTF-8 | Python | false | false | 5,340 | py | import sys, re, os, shutil, glob
chapters = "vib wave diffu trunc staggered softeng2 formulas advec".split()
chaptersdir = 'chapters'
ignored_files = '*.o *.so *.a *.pyc *.bak *.swp *~ .*~ *.old tmp* temp* .#* \\#* *.log *.dvi *.aux *.blg *.idx *.nav *.out *.toc *.snm *.vrb *.cproject *.project .DS_Store Trash'.split... | [
"hpl@simula.no"
] | hpl@simula.no |
647085f178375f17f91fc842669bccebdbc5eee4 | c5dc7fcecfcca12a491ac300509e9594703e01d6 | /tests/test_hipchat.py | 5f396ab586a5bc564fea2bfe214abe20bac11ef1 | [] | no_license | gitter-badger/sarah | 9007de890fe6d8cc03603fe79cb8e50b68105153 | d2bde97c1fc0a52f341e51878ed84baa3784db76 | refs/heads/master | 2021-01-18T07:42:37.735200 | 2015-09-12T13:55:01 | 2015-09-12T13:55:01 | 42,396,728 | 0 | 0 | null | 2015-09-13T13:26:18 | 2015-09-13T13:26:17 | null | UTF-8 | Python | false | false | 16,927 | py | # -*- coding: utf-8 -*-
import concurrent
from concurrent.futures import ALL_COMPLETED
from time import sleep
import logging
import types
import pytest
from sleekxmpp import ClientXMPP
from sleekxmpp.test import TestSocket
from sleekxmpp.stanza import Message
from sleekxmpp.exceptions import IqTimeout, IqError
from sl... | [
"hagiwara.go@gmail.com"
] | hagiwara.go@gmail.com |
08388f40f96262e48a825ed8578c70f7e147a701 | 66fe4dbcb81ceb688fa557c9a05a92779bd4e263 | /config/config.py | 97c447221012cfb133c0e71153480f5577f69a13 | [] | no_license | AdamEECS/sc | 5d3e98d697dd891dfdbae910d0167a0ce1082f19 | 387930acb7af4c04b39415e923639cad458fda09 | refs/heads/master | 2021-01-01T06:28:18.465633 | 2018-08-16T07:56:35 | 2018-08-16T07:56:35 | 97,430,842 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | from pymongo import *
import os
config_dict = dict(
USER_AVATAR_DIR='static/user_avatar/',
PRODUCT_PIC_DIR='static/product_pic/',
UPLOAD_FILE_DIR='static/files/',
PRODUCT_PIC_EXT='png',
CDN_URL='http://opguqe876.bkt.clouddn.com/',
CDN_USER_AVATAR_DIR='/user_avatar/',
CDN_PRODUCT_PIC_DIR='/p... | [
"jrgwyz@163.com"
] | jrgwyz@163.com |
7c15bbbe621e0478c4b046f2d33f6dd8574221e0 | 2e9fff3c63d4ec1f06ae0eaa8866632d16c0da9a | /comboloader/utils/__init__.py | d6eb296808e31b4011e33c41d477ef01edaad80e | [
"MIT"
] | permissive | chrisgeo/comboloader | 94d9c11e8dfc5cfca6072c77097f2193a4c68704 | 5e41030e4ee1d2c361ffccf9b8d740e0c6cc5942 | refs/heads/master | 2020-05-17T23:59:32.683451 | 2011-03-19T03:54:48 | 2011-03-19T03:54:48 | 703,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from comboloader.utils.request import HttpRequest
from comboloader.utils.request import FileRequest
__all__ = ['HttpRequest', 'FileRequest'] | [
"chrisageorge@gmail.com"
] | chrisageorge@gmail.com |
8a25522473a43e8baf06083a54452cfeba9a122a | e50c2c36395a54314b81a6d49426bb1f0db63454 | /0x0A-python-inheritance/2-is_same_class.py | e6f1931bad18bba614461651e0f174cfaba0876e | [] | no_license | mfcrespo/holbertonschool-higher_level_programming | 7d68a5f5341199f7d8c89f97bb8ae53539200b32 | 0cc42c79f9e111e83ab6a4a922f734e479d45d6f | refs/heads/master | 2022-12-16T03:16:50.558519 | 2020-09-22T03:51:36 | 2020-09-22T03:51:36 | 259,427,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!/usr/bin/python3
""" My Module one testing objects
"""
def is_same_class(obj, a_class):
""" Function that tests whether an object is part of a class
Args:
obj (object): the object to test whether it is part of a class
a_class (class): tests if obj is part of it
"""
if type(obj) == a_... | [
"mafe_crespo@hotmail.com"
] | mafe_crespo@hotmail.com |
2a6a7ae4ad2f46d245751da8d1ef7209bb121e48 | 1c1a8194cabbaf4a1a217bb5b6f46976faaee857 | /SARSA-3.py | 8857e7f5294f58fe43c31817cd006130f0fd28e9 | [] | no_license | rabieifk/multi-step-Q-learning-and-SARSA | 7b10b91eb5508b3ff98ae6fc2b28efad26c82afd | dc2cc8fce4fe3e188d596aa20d6adf11283836ae | refs/heads/master | 2021-06-25T03:47:50.439431 | 2021-01-10T06:20:12 | 2021-01-10T06:20:12 | 190,971,726 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,428 | py | import networkx as nx
import numpy as np
import pandas as pd
import random
from array import *
class MapBuilder:
def __init__(self):
self.data_df = pd.read_csv('data.csv')
number_of_edges = len(self.data_df)
self.G = nx.DiGraph()
for i in range(0, number_of_edges):
st... | [
"noreply@github.com"
] | noreply@github.com |
05e30d153853d6385d245fca6c9009a2a9f99ad0 | dbe5f1910740790424ee4b2ed532f6b1fd9c43ca | /Ch03/trees.py | 748bdf0d232c9e22ff60306d26e65c91f7ba4906 | [] | no_license | LilyEvansHogwarts/Machine-Learning-in-Action | fb9a6fb6e2e0ad74bd030423c91b25245671cfe1 | a4b0fca65c9386691a0eafd928909b76ec199a04 | refs/heads/master | 2020-03-19T20:02:35.347487 | 2018-08-11T14:49:02 | 2018-08-11T14:49:02 | 136,885,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,855 | py | from math import log
import operator
import cPickle as pickle
import matplotlib.pyplot as plt
def createDataSet():
dataSet = [[1, 1, 'yes'], [1, 1, 'yes'], [1, 0, 'no'], [0, 1, 'no'], [0, 1, 'no']]
labels = ['no surfacing','flippers']
return dataSet, labels
def calcShannonEnt(dataSet):
numEntries = l... | [
"825196119@qq.com"
] | 825196119@qq.com |
d89f8d14b5c6239228b5ddd4ab94d560a840e0f5 | 21aa0d0ad6a1dbedaf25039c58b5b6b00acddf2f | /pppoe_clients/create_data_for_cont.py | db640105f0ae23cadf53aac79a32e61613aeaa39 | [] | no_license | Mr-Method/radius_cluster | 447866e1201cc3ffe8a48d6adf788d170b0dcc7d | 68d9f24e30d9bd2e2e17db291f9f9ddd8245748e | refs/heads/master | 2022-01-05T17:51:05.126657 | 2019-07-17T13:30:14 | 2019-07-17T13:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | #!/usr/bin/python3
import mysql.connector
import sys
import os
docker_compose_config = open("/usr/local/docker/pppoe_clients/docker-compose-all.yaml", "w")
docker_compose_config.write("version: \"3\"\nservices:\n")
print("Start script")
cnx = mysql.connector.connect(user="abills", database="abills", password="abi... | [
"devyaterikovrg@gmail.com"
] | devyaterikovrg@gmail.com |
b1ce1d444d255954376ea5a95935dd7ed85b3984 | 6ed4e7982ab439ec328dc350c032e462032a1f52 | /ecommerce/urls.py | c78cb2bf1d1bcb3c81d6b2f4f2615641d4c71884 | [] | no_license | CarloAndrePonceMiranda/ecommerce-python-django- | 160724845e9cc77ba984499a93b7f5a3dbe48c6a | 7ff746a87cbe64264134409e7e226202eb3f657d | refs/heads/master | 2020-03-17T08:46:28.032107 | 2018-05-28T03:27:50 | 2018-05-28T03:27:50 | 133,449,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"chinacles.p@gmail.com"
] | chinacles.p@gmail.com |
9569e88a4594523c588bf67478cf3e69e5fa07d3 | eae3d77ac72c168cee7701462f1fc45d7d4dcd91 | /Tree/5176_이진탐색.py | 1d5de72b6fe0d9ddc3f43d237019f001829c7471 | [] | no_license | ByeongjunCho/Algorithm-TIL | ed2f018d50bd2483bd1175ff9bf7e91913c14766 | ad79125a1498915fe97c1d57ee6860b06c410958 | refs/heads/master | 2022-07-19T15:12:23.689319 | 2020-05-18T08:37:09 | 2020-05-18T08:37:09 | 256,399,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | T = int(input())
for tc in range(1, T+1):
N = int(input())
V = [0] * (N+1)
L = [0] * (N+1)
R = [0] * (N+1)
# 이진트리 구현
i = 1
while (i << 1) < N+1:
L[i] = i << 1
if (i << 1) + 1 < N+1:
R[i] = (i << 1) + 1
i += 1
| [
"jjgk91@naver.com"
] | jjgk91@naver.com |
268d1107553e0d64655c555214adb75eadca9ab8 | 2c21254a661be85ed9c32a52eef59145fbff47f6 | /vla_heracles/akl_21cm_basicplots.py | c14c912b2a56c5c21ca0a4df74f86cde58f6d126 | [] | no_license | e-koch/hi_reduction_scripts | 3c53f975c91fbc4165fb3161baf6cabedd388ebc | 7bfa47e1ae9b7afaa5d2eb42fe59e06b5f0c108b | refs/heads/master | 2020-05-30T15:08:34.796321 | 2015-02-09T17:39:49 | 2015-02-09T17:39:49 | 24,244,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | """
NAME
akl_21cm_basicplots
DESCRIPTION
Routines to make basic plots for archival VLA 21cm data sets in CASA.
"""
######################
### Python Imports ###
######################
# python stuff
import os
import string
# casa stuff
from tasks import *
from taskinit import *
import casac
# my casa routines
i... | [
"adam.leroy@gmail.com"
] | adam.leroy@gmail.com |
62e00397bdca170e760161a284a8c644777dd7ed | 912de9589ffe83dd24d93519640676fcb4697758 | /app.py | 7eda825ccff5d567990b4d37079d0afcb8eaed94 | [] | no_license | GabsGear/python-chatbot | 8c3d39a704d50ebc18e2b772ff007bd3b82de922 | 7d34a836dff83c1a079fe314e9454f0fec082ed3 | refs/heads/master | 2020-03-28T12:00:35.033836 | 2018-09-19T22:34:52 | 2018-09-19T22:34:52 | 148,263,661 | 2 | 1 | null | 2018-09-19T00:52:01 | 2018-09-11T05:11:41 | Python | UTF-8 | Python | false | false | 2,494 | py | # -*- coding: utf-8 -*-
"""
Aplicação flask para integração com javascript do chatbot.
-Função:
Esse módulo processa o as requisições ajax e cria as rotas para a comunicação do backend
(python) com o frontend (javasript).
São criadas duas rotas, a default do index e a roda /... | [
"gabriel_ghellere@hotmail.com"
] | gabriel_ghellere@hotmail.com |
a5a7c1d9ef537a9a0aa51093cae9292d3fa855e5 | 0a470223cbd3913ebcb2884a378701281fd7e190 | /Python/payPal.py | af33196b61338bfeed1a6f0c63fb7334703f2072 | [
"MIT"
] | permissive | rgomeztinoco/poo_uber | e0148f5891ece4c7351029483acfffe161129476 | c705268820408dc5ee60a8a23e2cd05967642988 | refs/heads/main | 2023-08-11T11:43:55.578502 | 2021-09-28T23:53:11 | 2021-09-28T23:53:11 | 410,744,951 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from payment import Payment
class PayPal(Payment):
email = str
def __init__(self, id, email):
super().__init__(id)
self.email = email | [
"gricardo2213@gmail.com"
] | gricardo2213@gmail.com |
9417a2d81014f8d9d45e035d274bdd828ab730f5 | ea6b1d189cf8790c63f20d44280b32dcb1241c53 | /models.py | fd9f6cf9539b2466ea7abc5be76350bdf133ee51 | [
"MIT"
] | permissive | shawnlwh/Intelicopter | 4f6ed94e4f3bb649c7aef3c4b301c69fc8625c8d | 63be713947e00190ffa26ff376903c8f766ccf20 | refs/heads/master | 2021-01-01T15:21:31.675132 | 2017-07-01T04:34:24 | 2017-07-01T04:34:24 | 97,601,199 | 0 | 0 | null | 2017-07-18T13:25:24 | 2017-07-18T13:25:24 | null | UTF-8 | Python | false | false | 937 | py | from django.db import models
class Question(models.Model):
id = models.IntegerField(primary_key=True)
text = models.CharField(max_length=500)
question_type = models.IntegerField() # 1 radio, 2 checkbox, 3 textbox, 4 number
class Meta:
app_label = 'intelicopter'
class Option(models.Model):
... | [
"intelicopter@gmail.com"
] | intelicopter@gmail.com |
b0b3c05453401ebbb64dba16ac466064debbfaa2 | 5b4d346111b48354761e54b414a18ca2a3525bd7 | /run.py | 2212ab6adaac961c8347ad6c9f16e0695f9bf8d2 | [
"MIT"
] | permissive | adampetrie/lint-review | 10dc85c7e88bb3ea8c9faf6a7f544a07553ad17f | cfa0b4fcc30bd5f86f977e95d93ab22dc8201592 | refs/heads/master | 2021-01-18T11:53:41.980426 | 2016-03-30T16:05:36 | 2016-03-30T16:05:36 | 53,705,602 | 0 | 0 | null | 2016-03-12T00:42:34 | 2016-03-12T00:42:34 | null | UTF-8 | Python | false | false | 1,938 | py | import argparse
import lintreview
import lintreview.github as github
import lintreview.tasks as tasks
import logging
import pkg_resources
import sys
from flask import url_for
from lintreview.web import app
from lintreview.github import get_repository
from lintreview.github import get_lintrc
from flask import Flask, re... | [
"matt.mohan@wishabi.com"
] | matt.mohan@wishabi.com |
ae9e18092442c065bd24d39c8fe03fea3f1d54c3 | 903b0632fcd4947c2b0d8b5ebfa321f5ffdc6e75 | /dialogs/XBRL/fAddTaxonomy_data.py | 74b63da6fd356892cf76b01f58ac23fd5af4ecdb | [] | no_license | mech4/xReport | b08587b6e9f6e22342bb604464c93f1b86d7ba18 | 8800011120ba6688f1c156ace0d82cc39e66f22b | refs/heads/master | 2021-01-01T15:55:20.266700 | 2014-03-14T04:02:00 | 2014-03-14T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,155 | py | import sys, os, shutil
import zipfile
import com.ihsan.util.xmlio as xutil
import com.ihsan.foundation.pobjecthelper as phelper
import pyFlexcel
def FormOnSetDataEx(uideflist, params):
#rf = xutil.XMLFolder('Test')
#raise Exception, rf.folderName
pass
def ProsesDTS(config, params, returns):
... | [
"client@ihsansolusi.com"
] | client@ihsansolusi.com |
78165711f9f54a6d337940ec1f5da4a9f0fdc181 | 15288dfd27c7d078220c4657c25f2d724a7814f9 | /Hough/FindLinesWithConvolution_lineaFija_conLib.py | 7d48a013b36097f34808c8de7b68694b3b3ade8e | [] | no_license | ulisesbussi/agriculturaUNQ | 842b046e9b0736b096adfc1f140b155598393e6d | 681d2b8951412fe316333cb36fc7b37ea793eb39 | refs/heads/master | 2022-09-08T21:36:57.051342 | 2020-06-06T00:08:54 | 2020-06-06T00:08:54 | 269,812,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,047 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 17 16:30:00 2019
@author: nicolascuedo
"""
import cv2
import numpy as np
import matplotlib.pyplot as plt
import imutils
import sys
sys.path.append('/home/braso/Agricultura_UNQ/')
import imgTools
path=""
baseDir = '/home/braso/Agricultura_UNQ/gps... | [
"ulisesbussi@gmail.com"
] | ulisesbussi@gmail.com |
5348ca8caa5c82aced3d9f1de1cbe0371a60cdd7 | f9a9cf28697864ddd22e5bef0c53876f990b84d1 | /TaskB_evaluation/task4_subtaskB_evaluation.py | 85b84b113660fa2622c891779141a025f734ec79 | [
"Apache-2.0"
] | permissive | StevenLOL/Task-4-Large-scale-weakly-supervised-sound-event-detection-for-smart-cars | 7c0daf1decc9b42ead877317a84b53bcfe8c9e2d | fb6ccfb2c701644f5730d067648d0763b297369c | refs/heads/master | 2021-01-19T06:15:42.901344 | 2017-08-17T00:35:51 | 2017-08-17T00:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | import os
import sys
import sed_eval
import numpy
def test_dcase_style2(argument1,argument2):
reference = os.path.join('data', 'sound_event', argument1)
estimated = os.path.join('data', 'sound_event', argument2)
print reference
print estimated
reference_event_list = sed_eval.io.load_eve... | [
"ankit.tronix@gmail.com"
] | ankit.tronix@gmail.com |
9338a95c41cae7202c0e88725f49aa7c6e13ab84 | f0accea25f6e4aba841b3f95738dcd1f435bb60d | /start.py | 85bf6503e1b482d54d5909b1bb5711175073d947 | [] | no_license | Marcel-B/python_and_c | e50f7d0e878fc5a9bb84602fc6abf6cddb48849c | 760a28a46329dcf160e73dd9369ab000ec42e4c4 | refs/heads/master | 2021-01-20T06:04:47.774960 | 2017-08-29T21:00:47 | 2017-08-29T21:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | import sum
print(sum.test_function([1,2,-3,4,-5,6])) | [
"git@b-velop.com"
] | git@b-velop.com |
0390cf14a44d57b25e8b3c0ebc2916b8fc6d3a9e | 0290ab831c3f8cfa15b96a10d365522186a1989b | /Chapter8.py | 2bf2f871849612aa8757fab9432ab01597e7849d | [] | no_license | YaraShqairat/Data-Analytics | df32d3846cbebf2321dacbec4e8f8fc30ad1af0f | a6e76a2e12943b79fc42f339706894719f1891ad | refs/heads/master | 2020-06-17T02:30:06.583004 | 2016-12-04T12:43:05 | 2016-12-04T12:43:05 | 75,048,240 | 0 | 0 | null | 2016-11-29T10:35:40 | 2016-11-29T05:53:17 | null | UTF-8 | Python | false | false | 10,340 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 02 19:35:30 2016
@author: Yara
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import pandas.tools.rplot as rplot
from math import sqrt
from scipy.stats.stats import pearsonr
movie_user_preferences={'Jill': {'Avenger: Age of Ul... | [
"noreply@github.com"
] | noreply@github.com |
8d8925efde16c4003a98fd70ac774e62a2624dca | 330fc58b4e6c13191e7b33018ce08992b1e7e558 | /webcrawler.py | f491a61889176274ea8a129e0702286b1811e3ce | [] | no_license | geekchick/webcrawler | 95c8da0e89c3ee79b8bfda1c1b1814f4e6e28c93 | 64cede7cc3ed45594719de28252414745297623f | refs/heads/master | 2020-06-19T08:35:05.155670 | 2019-07-12T20:45:33 | 2019-07-12T20:45:33 | 196,642,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py |
import time
import re
import requests
def get_page(url):
try:
html = requests.get(url).text
# REGEX that removes HTML tags from content
html_result = re.sub(r'^<\w+>+|<\D.*>+', '', html)
return html_result
except:
return ""
def lookup(index,keyword):
if keyword in index:
return ... | [
"tsims25@gmail"
] | tsims25@gmail |
5e727bcc433916148a8ee29a86d9215992dd31cb | b74d972dcfd49d1dc883ce05b6d986b7d7302b78 | /PythonForDB/pyMongoDB/aggregate.py | 36fa42ecd4b9f96727b7b9826ebd12375c9cf15c | [] | no_license | chibinjiang/PythonProgramming | 89fd7e261e4240ab12a550b23100358684bd85be | 1326f04ac9c60f8f08590e3de28c2da417fc7e85 | refs/heads/master | 2021-06-01T13:23:43.768372 | 2016-08-13T14:48:16 | 2016-08-13T14:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from pymongo import MongoClient
from datetime import datetime
def Main():
client = MongoClient()
db = client['test']
coll = db['restaurants']
cursor = db.restaurants.aggregate([
{"$group": {"_id": "$borough", "count": {"$sum": 1}}}
])
for document in cursor:
... | [
"jiangzhibin2014.xujie@gmail.com"
] | jiangzhibin2014.xujie@gmail.com |
b92ace36f8eaa5fa5bd1a781ed1656742c2db3c5 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1111/17140.py | 524cee2fdd156023f681b4bf34cde15944c9a1c3 | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,924 | py | from collections import deque
from heapq import heappop, heappush
def rcal():
global y
ls = []
mx = 0
for i in range(x):
su = len(bd[i])
cnt = 0
for j in range(1,101):
if bd[i].count(j):
heappush(ls,[bd[i].count(j),j])
cnt += bd[i].c... | [
"nan308@naver.com"
] | nan308@naver.com |
e26590a60fff52527c78ee44f867845070c480c9 | 6bba9d31ace7942e55563aa407a0782ca1b77423 | /model_time.py | 2e15cd06e62300f287a1d27d8596a7d1094cafa3 | [] | no_license | jodyphelan/minION | 220fe05126437d997229b804e71e66b63a93134e | 1453683cd9361ae3ff844111f393aab9e4aeff2f | refs/heads/master | 2021-09-16T10:49:16.833455 | 2018-06-20T02:23:23 | 2018-06-20T02:23:23 | 113,188,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | from __future__ import division
import sys
import gzip
import datetime
import re
if len(sys.argv)!=2:
print "python model_time.py <fastq>"
quit()
fastq = sys.argv[1]
prefix = fastq.split("/")[-1].split(".fastq")[0]
IN = gzip.open(fastq)
times = []
i=0
while True:
name = IN.readline()
if name=="": break
seq = IN.... | [
"jody.phelan@lshtm.ac.uk"
] | jody.phelan@lshtm.ac.uk |
ffb8258cf1a80a62d1d90935856093f0714380cc | e6f396eb1c6d5eb0f01a40e8e5f74f5fd6376864 | /metadata-ingestion/tests/integration/mongodb/setup/generate_large_collection.py | 8c7ef0a0af5031e8b5ebd734c59d479ca7bcf1ce | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | Echelon77/datahub | b612363efb1f63cd759be1bfcc0ff973a169d9da | 5cc923a56894a72871d706de75f6b5e6ae93687d | refs/heads/master | 2023-08-25T02:29:58.627864 | 2021-10-13T07:02:51 | 2021-10-13T07:02:51 | 404,210,407 | 1 | 0 | Apache-2.0 | 2021-09-08T04:37:41 | 2021-09-08T04:27:29 | null | UTF-8 | Python | false | false | 766 | py | import random
import string
"""
Generates a large "random" collection of fields to populate mongo init script
Run it with `python generate_large_collection.py >> mongo_init.js` to add it to the init script
"""
num_fields = 500
# first 200 fields have low probability
fields = [(f"field_{i}", (10 if i < 200 else 99)) f... | [
"noreply@github.com"
] | noreply@github.com |
8c07092c0bcae4a40186249a8274441335e9611c | f6ff6d0543cf71fa7fb098398d4df0bfedb7796d | /scrapy/static/cvedetails_all/cvedetails/sqlitepiplines/pipelines.py | 2a900b63f755838098a348d97251df05aaa31fec | [] | no_license | luweiwei1111/spider | f9b66bf70c2e0a062a77ee329f8463d3c4311eff | 413e249ba7c01c9fb6f95014285ad7b18ab4f934 | refs/heads/master | 2020-04-13T04:52:20.407361 | 2019-01-14T11:37:04 | 2019-01-14T11:37:04 | 162,973,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from .sql import Sql
from twisted.internet.threads import deferToThread
from cvedetails.items import CvedetailsItem
class CvedetailsPipeline(object):
def process_item(self, item, spider):
Sql.ctl_tb_cve_details()
if isinstance(item, CvedetailsItem):
product_id = item['product_id']
... | [
"499327236@qq.com"
] | 499327236@qq.com |
f54c397fddb8caace6c6c6214ff9823b3b661f1d | 0dd45f7e1902203d444aea57eff0abcdeafdcac6 | /mysite/polls/admin.py | d5771f19b6a322503e743eab6d1c694c2ad44e5d | [] | no_license | edgarapaza/django_test | db59b4f7eed3a7be0acfd19ccb669ed1fd89c0d8 | 102a4daf9b0262d6cd64c5d87fd656f387ab16f0 | refs/heads/master | 2021-01-02T08:19:25.545419 | 2015-03-17T16:17:42 | 2015-03-17T16:17:42 | 32,404,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.contrib import admin
from polls.models import Choice, Question, Alumno
class ChoiceInline(admin.StackedInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': [... | [
"edgarapazac@gmail.com"
] | edgarapazac@gmail.com |
86f3d3b6748e13a36db86d14877ef490983cf5f6 | f9b4dfeac9d46e092a03eec66e40dc733dfaa43b | /Data_Structures/Linked list.py | c22aa8ef473f498f569e2fdc483a6501efb32b97 | [] | no_license | Pavan-GL/Data-Structures-Using-Python | 7a19f1055a9f04cb8b03f645ac6a69d4ff590da5 | b221d74e157046ab19456ba13bc9ba559a90fa00 | refs/heads/main | 2023-08-14T16:33:30.257927 | 2021-09-21T12:24:37 | 2021-09-21T12:24:37 | 408,666,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | # insert, delete at begin O(1)
# end O(n)
class Node:
def __init__(self, data=None, next=None):
self.data = data
self.next = next
class LinkedList:
def __init__(self):
self.head = None
def print(self):
if self.head is None:
print("Linked list is empty")
... | [
"pavanglsmg@gmail.com"
] | pavanglsmg@gmail.com |
efa5c09e00baf175a267323493146e4a079511df | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/sctjas002/question4.py | e4b18527ed1d0802f17d9b728e65f1ab2eec2bbd | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import math
(fx)=input('Enter a function f(x):\n')
for y in range (10,-11,-1):
for x in range (-10,11):
if y==round((eval((fx)))):
print('o',end='')
elif y==0 and x==0:
print('+',end='')
elif y==0:
print('-',end='')
elif x==0:
print... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
eaa8c8e1adaeb2d380883ba7d6df82a6f5a7a9ec | 0e1bcbc109e028849b3767c71a4fed4508488c33 | /youtube/migrations/0032_delete_user.py | c54f32ce1477954ca20fb289fd9d1b13351f8966 | [] | no_license | seunghyun1003/youtube | 7dbc631d14556c15a767429caac45f7fc706c44c | 59b88325693682a56f633bb68d7b4a78aaea0921 | refs/heads/main | 2023-03-24T03:39:04.300111 | 2021-03-24T06:48:32 | 2021-03-24T06:48:32 | 328,170,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # Generated by Django 3.1.5 on 2021-01-26 11:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('youtube', '0031_user_email'),
]
operations = [
migrations.DeleteModel(
name='User',
),
]
| [
"s961003-@naver.com"
] | s961003-@naver.com |
007d27bff9bd5c24e936f616d5b2368292ab0cf1 | 512d49dd411a04c339bf99961cc8aa99c4533d5e | /W4/PCA_DowJones.py | 075ca6a0cc3a085202f2c9f8a2305f4846793586 | [] | no_license | ConsVin/DataAnalysis | dcea72d5065a05d28ad621e31515cd25ed53d104 | d97f95aa59aaef98840b206f6ca11e65fe1bd63b | refs/heads/master | 2021-01-12T01:19:30.742005 | 2017-03-12T17:54:09 | 2017-03-12T17:54:09 | 78,371,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 12 09:09:07 2017
@author: Const
"""
#%% Load data
import pandas as pd
data_train = pd.read_csv('close_prices.csv',parse_dates = True,index_col = 'date' );
#%% Run PCA and get minumum number of components to achive threshold Variace
from sklearn.decomposition import PCA
... | [
"bwmuscat@gmail.com"
] | bwmuscat@gmail.com |
5cdf85ba465ab7aaaa182ded86ebf52307f484ae | 15543f551edb912d18a482679f79add8737334b5 | /fuzzers/060-iologic_modes/fuzzer.py | f1908e6c5085c4d6065bad75fa43b065e5c51e46 | [
"ISC",
"LicenseRef-scancode-dco-1.1"
] | permissive | ironsteel/prjtrellis | 833dbee437456ff48156d309b6f301573f218da1 | ed7f48f0b02eb656e63c62f9519e5249aa58e4c5 | refs/heads/master | 2020-04-02T03:47:01.270620 | 2018-10-17T11:00:21 | 2018-10-17T11:00:21 | 153,983,943 | 0 | 0 | ISC | 2018-10-21T07:31:38 | 2018-10-21T07:31:38 | null | UTF-8 | Python | false | false | 1,469 | py | from fuzzconfig import FuzzConfig
import nonrouting
import pytrellis
import fuzzloops
jobs = [
{
"cfg": FuzzConfig(job="IOLOGICL", family="ECP5", device="LFE5U-25F", ncl="empty.ncl",
tiles=["MIB_R14C0:PICL0", "MIB_R15C0:PICL1", "MIB_R16C0:PICL2"]),
"side": "L",
"si... | [
"davey1576@gmail.com"
] | davey1576@gmail.com |
d05003a259c2b5693b88338c908b7f7ec5e82c33 | c9491e79819feb5bf1c40185b5b327a1c67e3ee3 | /coursera-nanjing-20190303-ex9.py | 36a220167e70a330d6612d746f24aa22a7f68549 | [] | no_license | volactina/Python-learn | b6d53042203dd8041eaa84b1a15bb2baae16afaf | 95c8bf3f4665817ac6abdcfa05b35d5681eec3f5 | refs/heads/master | 2020-04-26T02:39:47.308352 | 2019-03-04T06:24:14 | 2019-03-04T06:24:14 | 173,241,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | '''
用字典创建一个平台的用户信息(包含用户名和密码)管理系统,
新用户可以用与现有系统帐号不冲突的用户名创建帐号,
已存在的老用户则可以用用户名和密码登陆重返系统。
建议基本框架为:
'''
userinfo={}
def newusers():
username=input('create your user name:')
if username in userinfo:
print('name has been used, try another!')
else:
password=input('type your password... | [
"noreply@github.com"
] | noreply@github.com |
db99a7fae497a54bcf8582832888bcb9835fca74 | 30d1902232eb9ddb84fdf5404a3a1dfd6232406a | /wxpython/test/sxn.spec | 9fb6f075ebf9e03cbe029bbde4b5335d0aaab5e1 | [] | no_license | sxnys/mypython | c3a768b054077ed97ff1e2fac31cb93f0765deb3 | de48cd883ad2de3320cb0c6b46b451ebb2311ac7 | refs/heads/master | 2022-11-07T15:11:48.936412 | 2019-04-14T12:04:30 | 2019-04-14T12:04:30 | 119,686,106 | 0 | 1 | null | 2022-10-31T05:13:00 | 2018-01-31T12:46:06 | Python | UTF-8 | Python | false | false | 835 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['sxn.py'],
pathex=['F:\\Python\\wxpython\\test'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redire... | [
"1119112647@qq.com"
] | 1119112647@qq.com |
b0ce6c8f156438d3d2a678eea60dbc1f52fe5884 | cde8a7a3d8fd3b5b948d1fd2c5e1eb5d00ea75f7 | /Ground_Speed_Upload/Distinguish_Aircraft_3.py | 50bf471bcf39673b9486fef93c868d1f2c92e0ce | [] | no_license | yingying1968/Ground_Operation | cc56431f4fda20f65d5be20d29c5dc47f451d5bf | cc22a68ed178fd9bc2270b51f654a0f3952bd4fe | refs/heads/master | 2023-05-08T13:14:07.567987 | 2021-05-28T03:57:43 | 2021-05-28T03:57:43 | 371,572,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | import pandas as pd
import numpy as np
import time as tm
import csv
import shutil
import os
import re
def createFolder(directory):
try:
if not os.path.exists(directory):
os.makedirs(directory)
except OSError:
print ('Error: Creating directory. ' + directory)
Distinguished_All_Move... | [
"45858012+yingying1968@users.noreply.github.com"
] | 45858012+yingying1968@users.noreply.github.com |
947f2b5bf16862360348bec1cc27affc927bdb01 | 2f0465288c026a19262c5d24bb0c7c9d7a71bca5 | /test/test_api.py | bc7b0a2083bec6ae87f1e7ab4374ace1daa44772 | [
"MIT"
] | permissive | yeezon/yhsd-api-python | 6f5b82d6613a3a3ee5620aa28eb0d8d7c8b99fbd | b693cfd90a256f45c8c8cc2c45a72cded59fff32 | refs/heads/master | 2021-01-10T01:14:53.536792 | 2016-01-26T07:35:55 | 2016-01-26T07:35:55 | 50,411,939 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # coding: utf-8
'''
API单元测试类
'''
import sys
import unittest
sys.path.append('..')
from yhsd_sdk import api, utils
import appconfig
class TestPrivateApp(unittest.TestCase):
def setUp(self):
utils.disable_urllib3_warning()
self._app = api.Api (appconfig.AppToken)
def test_get(self):
... | [
"wangzilong@yeezon.com"
] | wangzilong@yeezon.com |
1e7c360ffc0f652d2c9965628fe6ad50c8384024 | 0772dc49c3f45fa5219a3396c678ecb9b06be5d0 | /blog/migrations/0001_initial.py | b06887c15884edd71bd32226e829a5876aeb68bd | [] | no_license | theenvisionersnepal/theenvisionersnepal | de6a7fb85bf962623d39a8a601188e933721e006 | 3dae34bba74561f31584cc98f1904d0039a8768f | refs/heads/main | 2023-03-17T13:25:46.275968 | 2021-03-13T06:49:09 | 2021-03-13T06:49:09 | 341,404,966 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 3.1.6 on 2021-02-19 02:42
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField... | [
"49269819+sNishant011@users.noreply.github.com"
] | 49269819+sNishant011@users.noreply.github.com |
39cf81d58260db13f7473d19227fae4bc09d4527 | 8c8600f4d4d775091da08c523b436a6fe3d2fde5 | /amzmri/services/asin_summary_service.py | 8a6141a980fdcda7f034c1f370561b8a55053686 | [] | no_license | skucher/Baziiq-competitor-analisys | e07fb0d8e97b2aa042a1817d75ab396200aea546 | 1e7c3bad5139483f3a65c1af3a26bc41656974c8 | refs/heads/master | 2021-01-20T08:53:12.593776 | 2017-07-19T16:01:41 | 2017-07-19T16:01:41 | 90,190,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,499 | py | '''
Created on 24 Aug 2016
@author: sergeykucher
'''
class AsinSummaryService(object):
'''
classdocs
'''
def __init__(self, xcell_data_access_layer):
self._xcell_data_access_layer = xcell_data_access_layer
def _fillBsrChange(self, list_bsr_ranks, dict_asin_to_report):
... | [
"sergeyku4er@gmail.com"
] | sergeyku4er@gmail.com |
80d512046627f21ec6e5b8db3615ee5f70869009 | f3d40fcd992b38132ff9634d2b76988a99cefb3b | /pycoinnet/util/BlockChainStore.py | 86653b8c71a73bfe27c1a3f2bfbd1b35acc4ec52 | [
"MIT"
] | permissive | richardkiss/pycoinnet | b9b999dbf0401722e4550c5926197881e5b13102 | 57a7f439f0b4c9102cd25f95c0b7e4db00fe2f5b | refs/heads/master | 2022-04-27T19:15:39.098602 | 2021-12-25T23:26:24 | 2021-12-25T23:26:24 | 16,194,216 | 117 | 56 | MIT | 2021-12-25T23:26:24 | 2014-01-24T03:43:42 | Python | UTF-8 | Python | false | false | 2,040 | py | import logging
import os
class FakeHeader:
def __init__(self, h, previous_block_hash):
self.h = h
self.previous_block_hash = previous_block_hash
self.difficulty = 1
def hash(self):
return self.h
def __repr__(self):
return "%s (parent %s)" % (self.h, self.previous_... | [
"him@richardkiss.com"
] | him@richardkiss.com |
8e1d2e59dc58a0bb2ba1e55f74ca0834e44ba5ef | e10217d377826fbfd59f2a6be524b8e7165a1168 | /DetectPeople.py | 243f3fcda33ce3eb09d1c8df412409f7ff359093 | [
"MIT"
] | permissive | BeMg/AutoTrackCam | 762453971aaee71eda79256846bbb380e5487a5c | 5208bb849a8883a3d62f7837d4955591fd012127 | refs/heads/master | 2021-01-01T17:26:40.457269 | 2017-11-22T14:05:27 | 2017-11-22T14:05:27 | 98,075,464 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | from utils import DetectFace
def DetectPeople(frame):
rects = DetectFace(frame)
if len(rects) > 0:
return rects
else:
return [] | [
"gccbg04538@gmail.com"
] | gccbg04538@gmail.com |
9d57626e8e4d0e3cc151388e18d5aa6f5596b400 | 72f752bc3fe1d9a911fec5a0f20e0f4b7916c43b | /pipelines.py | 8fb7d9688d11eab2c0adefa6d702f8825df925f6 | [] | no_license | gdd173/scrapy-elasticsearch | 55cac988badbeb0cacee0ce5a2ecacc25643584c | 7aeca677f6378e52dd3775d7d5e8ce953cab2d58 | refs/heads/master | 2020-05-03T02:18:29.625167 | 2019-03-29T08:44:20 | 2019-03-29T08:44:20 | 178,365,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from zhihuuser.models.es_type import ArticleType
class ZhihuuserPipeline(object):
def process_item(self, item, spider):
... | [
"noreply@github.com"
] | noreply@github.com |
4e0aaa23a082ebbd762ca335ffba5c31b5dcd333 | 51e5d2205b98db0bcbd63ce5e37e316740d5cdb1 | /AntonioVersion/Lutein_Experiment/import_test2.py | cf787a85120b8d85c30a950e8ad9fca1708edc87 | [] | no_license | fFiorelli/Lutein-Remote | 50a515f0d9404e626f424c56187974d64152f23a | c7210c924b250965defec5d3aa3b715dbb2cd734 | refs/heads/master | 2021-01-11T07:24:39.515311 | 2016-11-03T16:41:16 | 2016-11-03T16:41:16 | 72,452,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,391 | py | import numpy as np
import pandas as pd
from pybrain.datasets import SupervisedDataSet
from itertools import product
import math
from pybrain.structure import SigmoidLayer, LinearLayer
from pybrain.tools.shortcuts import buildNetwork
from pybrain.supervised.trainers import BackpropTrainer
import pylab
from utilities imp... | [
"ff278@cam.ac.uk"
] | ff278@cam.ac.uk |
f7ba3967932bddaa21409467165b583a0778590a | 1eef594b1b829d008cee9dddbdb2f39b0f6c6485 | /annotation/write_csv.py | 003940d5d86786d611b678b5f054a4bb4a763692 | [] | no_license | PSIG-EHESS/valleesAlpines | ac35a9314db9b8a21ed53759286a2ab9ac8400b1 | f9bb34645028da7d178f743064d4faaa5433959b | refs/heads/master | 2021-03-27T11:14:33.465658 | 2018-02-17T18:07:06 | 2018-02-17T18:07:06 | 118,781,526 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 10 11:00:33 2018
@author: Pierre
"""
#création du csv
def createCSV():
'''
fonction createCSV:
utilité: fonction qui renvoie un csv appelé rendu.csv
return: rendu.csv; fichier csv de la forme ['ImageName','Date','MaskName','ImageCutN... | [
"carmen.brando@gmail.com"
] | carmen.brando@gmail.com |
d9f702fdfe98cd1a53fa3b8a951531a21492f339 | d4748eba0dd6939cc8deb4e19d33e55ea618ddc6 | /Rx/Synchronizer.py | e0307aa4778585067f20fc41baaccae561b36a40 | [] | no_license | Freesail/thz_torch | 83e4c7f6a631c5d6158f39dbe4a4a6d15c935832 | 1834e86e33a06867326d00e5808dcb474147bdcd | refs/heads/master | 2022-12-05T23:27:41.617252 | 2020-08-23T10:22:33 | 2020-08-23T10:22:33 | 224,428,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,459 | py | import numpy as np
import queue
import threading
from collections import deque
import matplotlib.pyplot as plt
from scipy.stats import linregress
import ruptures as rpt
DEBUG = False
class Synchronizer:
def __init__(self, sample_freq=1e3, mode='data',
cal_syn_t=5e-3, cal_frame_t=5e-1, cal_reset_... | [
"imperialfreesail@gmail.com"
] | imperialfreesail@gmail.com |
6b4be6ecc9101d935111c0ed37e634b79186215c | 335c1b0c61c657aaf99b7f619b6cd5afe713c2e9 | /twilio/rest/ip_messaging/v1/service/__init__.py | 3d0b8c883d40cc86b658fcefb75125dce27d5c1c | [
"MIT"
] | permissive | quippp/twilio-python-old | 4be71100e401f64dcac1c67c8862b6aef56b3690 | 72f60dbadd10b592e2df1e09ae615ea450eee1d9 | refs/heads/master | 2020-12-31T01:22:56.054868 | 2016-03-30T20:00:10 | 2016-03-30T20:00:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,566 | py | # coding=utf-8
"""
This code was generated by
\ / _ _ _| _ _
| (_)\/(_)(_|\/| |(/_ v1.0.0
/ /
"""
from twilio import deserialize
from twilio import values
from twilio.instance_context import InstanceContext
from twilio.instance_resource import InstanceResource
from twilio.list_resource impo... | [
"cdpadron@twilio.com"
] | cdpadron@twilio.com |
4b05388caf49263247f5a9216da4d2033fdccc11 | c7f353cc14439fc47d351bd29258c9453cf16f32 | /h2o-py/tests/testdir_munging/pyunit_ischaracter_isnumeric.py | aa42b41611f89e9681ba6234c5bba7e04441ba66 | [
"Apache-2.0"
] | permissive | tamseo/h2o-3 | a131f40a0cd7f0c52d359b06b300f87d627cfd83 | cc59fa0d97325796c5a57085661cea7b34fa81e9 | refs/heads/master | 2020-12-11T09:27:54.589687 | 2015-10-19T21:56:12 | 2015-10-19T21:56:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | import sys
sys.path.insert(1, "../../")
import h2o, tests
import random
def pyunit_ischaracter_isnumeric():
iris = h2o.import_file(tests.locate("smalldata/iris/iris.csv"))
assert iris[0].isnumeric(), "Expected the first column of iris to be numeric"
assert not iris[0].ischaracter(), "Expected the first co... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
61e8010c00831ccbf46b71cd0f205103f1003359 | d126513701440ba261b4f38f187613707bad2f1a | /rooms/menu_room.py | 047ec21bd276f60dcdcc7cee2e01bceedb97739c | [] | no_license | JM-Miller/Python-Game | f570146327696b52638c4d4083d719de97017c8f | aecf709342c6728368aa2cd00518456eb506c8a3 | refs/heads/master | 2020-04-23T12:36:06.692826 | 2019-02-19T15:40:46 | 2019-02-19T15:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | from objects.tilemap.tilemap import TileMap
from objects.player import Player
from rooms.room import Room
class MenuRoom(Room):
screenWidth = 320
screenHeight = 320
menuFontSize = 24
menuFontColor = "white"
def Render(self, canvas):
menuItemText = " You won! \nOr alternatively,\... | [
"network@jonathan-m-miller.solutions"
] | network@jonathan-m-miller.solutions |
8dfe9a9df3bccbd5d817c8705b15fc06fd4569ce | ae06af824e864fab8d33f695ddb612e7867ab92f | /dashboard/dashboard/pinpoint/models/quest/read_value.py | be0fda52522ba5143cfe3a50720310b2db79bc77 | [
"BSD-3-Clause"
] | permissive | takingmynetback/catapult | 49402759c34dd07e424b47f4c9ec824dd1744526 | f718fb12b8cfd16b07509674747abf56cf330ac8 | refs/heads/master | 2020-03-10T18:46:57.367789 | 2018-04-13T14:20:21 | 2018-04-13T15:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,183 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
from dashboard.common import histogram_helpers
from dashboard.pinpoint.models.quest import execution
from dashboard.pinpoint.models.quest import... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
308b6b16a55851f143ffb7afe1ce0b0fa3f85bf3 | e254c72d3fd11306c8625c5d8ad8ac394eabc6c6 | /06.scrapy/AppleDailySearchMongo/AppleDailySearch/settings.py | 68673e439c56176af474067092b73ea14f949c88 | [] | no_license | Edward83528/crawlerToMachinLearningAndBot | 87c7ea92779b949ad5015612a4e70275becab480 | 82818137b517f4c5a856535f83a8cb8b211da8aa | refs/heads/master | 2022-11-06T19:41:20.473933 | 2020-07-04T14:01:07 | 2020-07-04T14:01:07 | 268,072,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | # -*- coding: utf-8 -*-
# Scrapy settings for AppleDailySearch project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/... | [
"u0151051@gmail.com"
] | u0151051@gmail.com |
85648b612a8c417cf89769a4ed38cc4b6c9e7523 | e0608b2daf486aec2190e6324451622c5f250510 | /test/core/update_genome_test.py | e8d4a56a7410c2042e08adcf85eeb492430609a8 | [
"MIT"
] | permissive | kellyhuang21/GenomeFileUtil | 480e61ed1665c5a06fe1ee4489375e43bc82d083 | b27cb746da542334d2758f6851f5f88b4d4991ec | refs/heads/master | 2020-06-08T02:22:01.199417 | 2019-05-30T02:18:07 | 2019-05-30T02:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,607 | py | import json
import os
import shutil
import time
import unittest
from configparser import ConfigParser
from os import environ
from installed_clients.AssemblyUtilClient import AssemblyUtil
from GenomeFileUtil.GenomeFileUtilImpl import GenomeFileUtil
from GenomeFileUtil.GenomeFileUtilImpl import SDKConfig
from GenomeFile... | [
"jamesgjeffryes@gmail.com"
] | jamesgjeffryes@gmail.com |
d71a496646b13ee2d91ccdf1da616cceb0cd16ab | 75fcf5b23c9e586ee011c5d6cb05451961e023fe | /ekf_localization/ros/src/ekf_localization_ros/test_map_service.py | ce73ca2cf033f1cc2b1f8aa563b58266b1639831 | [] | no_license | danieta/autonomous_systems | 855f4ecaf76f38d6807858cca7a37eb298a0718c | e2b1a762645c9beab98f871e33d0e3572e0be090 | refs/heads/master | 2020-04-01T14:16:38.846728 | 2018-12-15T09:41:38 | 2018-12-15T09:41:38 | 153,287,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/env python
import rospy
from nav_msgs.srv import GetMap
if __name__ == '__main__':
rospy.init_node('test_map')
rospy.wait_for_service('static_map')
try:
getMap = rospy.ServiceProxy('static_map', GetMap)
occMap = getMap()
print(occMap)
except rospy.ServiceException, e:
print "Service call fail... | [
"fichtner.lukas@gmx.de"
] | fichtner.lukas@gmx.de |
5091cb5707db9a1a41d3e9b1f476e5f8e6b7ebf7 | 9bf51c5d6a3666448ddfd4bf2f0b3301afaa4463 | /app/commands/cmd_start/match.py | 55077194c92d5cc3eae0e22e8ae24f702d77fc58 | [] | no_license | Madscientiste/OpenClassrooms_P4 | f997a9585fae8b62785832857ab22f80b8001c0d | 18a6dfc63a2a6b709391d9e0a0265dc46da71c8b | refs/heads/main | 2023-05-05T15:25:28.318984 | 2021-05-28T10:09:07 | 2021-05-28T10:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | from app.commands.base import BaseCommand
from app.utilities import typings, errors
from app.models import other, database
class Command(BaseCommand):
name = "match"
usage = "match <match_id>"
description = "Select a match to update the score"
def run(self, context: typings.Context, tournament: datab... | [
"s.shaade77@gmail.com"
] | s.shaade77@gmail.com |
be4eaa71677d177ad1947d4675db4a9e200b9dc2 | a593ba64bbb3556c450b9f4acd2b379910d6e38e | /hero.py | b524d04743d11ce3a4ea6b274b144e4486403dcb | [] | no_license | halldorel/Kvislgeir | 98445ea4b52e0a36f3968dd667e6bbc9c745289b | e82997e8d9101d162822b7ca0d4d188a384b087a | refs/heads/master | 2016-09-05T12:13:16.848811 | 2013-07-23T22:26:22 | 2013-07-23T22:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | import pygame, sys, os
from pygame.locals import *
import math
class Hero:
"""Hero"""
# Constants
MAX_SPEED = 0.1
ACCEL = 0.3
TURN_SPEED = 8
def __init__(self, window_size):
self.pos = [x/2-38 for x in window_size]
self.render_pos = self.pos
self.dir = 90
self.vel = (0,0)
self.surf = pygame.image.... | [
"halldor@admittor.com"
] | halldor@admittor.com |
178f8a42d2b574aa9b9f6f890d89a30942159045 | 18d9f67d3ec79166d51672b442c34184197d95a0 | /env/lib/python3.7/re.py | 3742a4721fd8623d3ee91807aa6332bfa9149398 | [] | no_license | devo2ps/blog_example | 5f792913c72c8f057490642221f65124f0f2c864 | 3bde4bc1239348a1daa85ade1884e5917b7a0a48 | refs/heads/master | 2022-02-21T16:31:29.336901 | 2019-10-25T06:29:36 | 2019-10-25T06:29:36 | 216,963,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /home/jawnothyn/anaconda3/lib/python3.7/re.py | [
"jjbrandenbur@wisc.edu"
] | jjbrandenbur@wisc.edu |
811b051ba9d08863f57f51ad70f9f32a115eb4e4 | 3804c1341d39c61d84c1b3a9b3ed38cce607ecaf | /src/item.py | cf49b6f45975fac9dc655a247d860f512bfbaf37 | [] | no_license | alesslongaretti/Intro-Python-II | 17ac5a407c4f320ae26e0871f04f53e870e550be | 0d8577e66eeb882886f54e8632f92cf2cae076af | refs/heads/master | 2022-12-09T00:19:25.598923 | 2020-09-16T03:36:45 | 2020-09-16T03:36:45 | 293,984,629 | 0 | 0 | null | 2020-09-16T03:36:46 | 2020-09-09T02:46:12 | null | UTF-8 | Python | false | false | 272 | py | class Item:
def __init__(self,name,description):
self.name = name
self.description = description
def on_take(self):
print(f"\nYou have picked up *{self.name}*\n")
def on_drop(self):
print(f"\nYou have dropped *{self.name}*\n") | [
"alesslongaretti@gmail.com"
] | alesslongaretti@gmail.com |
3ad03dbd44ae80f8df7d819c4b5ef0db0f6c6744 | f60946792b7009c0b5dfcadca81a2b20da8f23c0 | /doit.py | 2ce4ae5b6eefefde8f42d61dd459d41150dcf621 | [] | no_license | batteryshark/ghostdmp | a626e96c51bafe23a2a025b995cc31bdff333712 | 955a03ac8f5fe5e1ab9a5fbc4724d405f4b1cd79 | refs/heads/main | 2021-12-02T06:17:04.899618 | 2021-07-09T19:46:54 | 2021-07-09T19:46:54 | 186,669,562 | 17 | 6 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # Quick Binding against Memory Dumper
from ctypes import *
TARGET_PID = 768
dump_dll = cdll.LoadLibrary("libghostdmp.dll")
dump_dll.dump_process_memory.argtypes = [c_uint32,POINTER(POINTER(c_ubyte)),POINTER(c_uint64)]
def dump_process(pid):
data_ptr = POINTER(c_ubyte)()
data_len = c_uint64(0)
if(not dump_dll.du... | [
"batteryshark@users.noreply.github.com"
] | batteryshark@users.noreply.github.com |
00ee6e8b2941d6e3cd3d1713cf36490b5754624e | 28cab1ef484a5796fc9b0897043e918f9a28e650 | /account/urls/user.py | caca4ac46ecc06a22eb78a92276ad522c397c750 | [] | no_license | bxxfighting/dalangshen | 12cb58d2078804327dbf7a01be0fc2a0d27f4495 | e174147b8778c188941d5fd0f5e33de65afc8b00 | refs/heads/main | 2023-01-15T08:07:57.429342 | 2020-11-16T03:49:34 | 2020-11-16T03:49:34 | 313,184,879 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from django.urls import path
from account.apis import user as user_api
urlpatterns = [
path('user/login/', user_api.LoginApi.as_view()),
path('user/logout/', user_api.LogoutApi.as_view()),
path('user/', user_api.UserApi.as_view()),
path('user/current/', user_api.CurrentUserApi.as_view()),
path('u... | [
"boxingxing@limikeji.com"
] | boxingxing@limikeji.com |
f55eb77ce1c99b69e14e78ea2c057cb04d9f0428 | 75c334a13c49df53c4462fe15367d7e87cd97f78 | /utils/financial.py | 4a74789e2918bf8c0a22c6ae294dd37f05e9e98c | [] | no_license | MarcoBuratti/FinTechAPI | 5da09a3c5d8225302e9ad6aba3c383bf7a86762c | f128efd1b16143bce56f4bac6c92ab0c4c8b9dd4 | refs/heads/main | 2023-04-04T05:17:15.479523 | 2021-04-22T08:26:17 | 2021-04-22T08:26:17 | 351,091,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,128 | py | import pandas as pd #(version 1.0.0)
import plotly #(version 4.5.0)
import plotly.express as px
import plotly.graph_objects as go
from requests import get
from pandas import DataFrame
import json
def get_data(ticker):
ratios = get('https://financialmodelingprep.com/api/v3/ratios/' + ticker +... | [
"ocr@Marcos-MacBook-Pro.local"
] | ocr@Marcos-MacBook-Pro.local |
751ad809171e672612f3e55816391624e6b4cd05 | 92ad7a0d1adb91390044b62190cbdc7d0de93a55 | /CenterImagesWithImageDataGenerator.py | d07e9b427b0abd9e8aa0e2d8fb78a0802e3479a2 | [] | no_license | MachinistNick/Computer_Vision | 168f77da8fd6105d7a76e852f8e5e72e5f343d4a | bdeab01cad310eb4aaf16cbef840b43f425661cd | refs/heads/master | 2023-03-05T13:48:26.950813 | 2021-02-15T13:01:23 | 2021-02-15T13:01:23 | 328,373,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | # example of using ImageDataGenerator to center images
from keras.datasets import mnist
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Dense
from keras.layers import Flatten
from keras.preprocessin... | [
"“machinistnarendra@gmail.com”"
] | “machinistnarendra@gmail.com” |
3634df65b7d345d0f78bec8a07e38e8a1f817aff | 14c60b971adb7fb7f6499208e372f6e2291b883e | /task_4.py | 6a256d3f3fbf942104f9f4f254cf608bdb1d041d | [] | no_license | Jasvinder99/Task_Solutions | 227250858ba839f3d4f2c3db57f51f769f5c4758 | 3d8c0491ad653d09fe161b61394f3026cf36a7c1 | refs/heads/main | 2023-07-15T09:28:11.910542 | 2021-08-26T10:06:00 | 2021-08-26T10:06:00 | 398,372,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | # Task 4
# Rock Paper Scissors
# Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays (using input),
# compare them, print out a message of congratulations to the winner, and ask if the players want to start a new game.
# Remember the rules:
#
# - Rock beats scissors
# - Scissors beats p... | [
"noreply@github.com"
] | noreply@github.com |
803ab942bd6166a7b946f05475bd180151f1aee0 | 833038cc78bed5c59fbbf0bed424e33c4dc554d9 | /Research/SweepAnalyzer/SweepAnalyzer.py | 0249b1ebb685a3f8b2da870a64f0010587ff34e9 | [] | no_license | Urmish/GPUProgramming | a0332f16ad12534f3abd299f632728aa6fc5e3ab | 720e5de7e59c317c9ff7fc2c0d4e9ae8f4b64232 | refs/heads/master | 2021-01-20T09:30:13.171398 | 2015-11-04T21:30:49 | 2015-11-04T21:30:49 | 41,921,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,778 | py | #!/usr/bin/python
import sys
import re
import argparse
import os
import itertools
import collections
from subprocess import call
import itertools
def drange(start, stop, step):
while start <= stop:
yield start
start += step
totalTests = dict([('Test12.txt',1),
('Test13.txt',1),
(... | [
"uthakker@sally.cs.wisc.edu"
] | uthakker@sally.cs.wisc.edu |
ede81b56f27166e220e9c0cd9e2a70b57b1232ab | 3b7cf22c169cb3df6226214f65c3643ceb9f03a0 | /readBDT.py | 656ffddd7e40d0fed86778c6bd8b4e0afe2be45b | [] | no_license | vincecr0ft/classificationworkflows | ebcf0f2b31921455e85d8a0f9ff36168592394b8 | c1100f20ae5082e40e00d918b5d2b72dc3f5326f | refs/heads/master | 2021-07-17T20:59:01.951940 | 2017-10-24T13:26:07 | 2017-10-24T13:26:07 | 107,462,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | import ROOT
import array
import argparse
parser = argparse.ArgumentParser(description='Read a BDT trained using TMVA')
parser.add_argument("infile")
parser.add_argument("datasetname")
parser.add_argument("xmlpath")
parser.add_argument("outfile")
args = parser.parse_args()
infile = args.infile
datasetname = args.datas... | [
"vincent.croft@cern.ch"
] | vincent.croft@cern.ch |
4d7eb47db1db14cd8f6b3f7c468d2b142d9dfc8c | 16946f13aa1e000a8f9b9245b59f5423d0c78a5c | /build/comp313p/comp313p_reactive_planner_controller/cmake/comp313p_reactive_planner_controller-genmsg-context.py | 80c056f51bf2f124b9449c6a360fb6867d226cb6 | [] | no_license | tahlia5119/cw2_ws_fin | d0eb27d0d0650fa9b7f15df5ab061d929624154d | 3d38549a316dabe1d07c598e1840e14fb579f6f0 | refs/heads/master | 2020-03-12T18:25:43.927382 | 2018-04-23T21:36:43 | 2018-04-23T21:36:43 | 130,759,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = ""
services_str = "/home/tahlia/cw2_redo/src/comp313p/comp313p_reactive_planner_controller/srv/Goal.srv"
pkg_name = "comp313p_reactive_planner_controller"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_s... | [
"tahlia.cutifani@gmail.com"
] | tahlia.cutifani@gmail.com |
a3727b8cfe56efbacbcacd86e87f8942894d446c | bbe308dd62bbbbaa9f9d2bb38dd8e342f9245237 | /tests/ptf-tests/sai-tests/switch_qos.py | 5871a347c46435dfc809c951f2da205d099d2614 | [] | no_license | krambn/switch | 282b8285391ee600dc502f61341dc0869867b679 | e934752f356d3ad48cbec99067f47c83795ddcec | refs/heads/master | 2021-01-18T15:02:12.546250 | 2017-03-26T18:05:38 | 2017-03-26T18:05:38 | 58,582,407 | 1 | 2 | null | 2016-12-25T20:46:15 | 2016-05-11T21:18:45 | C | UTF-8 | Python | false | false | 5,785 | py | # Copyright 2013-present Barefoot Networks, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"krishna@barefootnetworks.com"
] | krishna@barefootnetworks.com |
1702b3f2b9cfc60fe67356368758cace5842cc8d | 663187055740d7f807f286709d8fc1d378f6ae3a | /RAM_blocks/blocks-extras/tests/extensions/test_predict.py | 4ea0d8f9475359dfbd8b5bda08a776a13951daee | [
"MIT"
] | permissive | malcolmregan/CNN3D | 03ce271893d598a47cfbdf4db5a2123cd64a6a3f | 681424fdc8f6fe73b4cb8ea45ca2cc9aa37d8930 | refs/heads/master | 2021-01-17T11:10:24.506348 | 2017-03-06T03:30:31 | 2017-03-06T03:30:31 | 84,017,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import os
from collections import OrderedDict
from tempfile import gettempdir
import numpy
from theano import tensor
from fuel.schemes import SequentialScheme
from fuel.datasets import IndexableDataset
from fuel.streams import DataStream
from blocks.utils.testing import MockMainLoop
from blocks.extensions import Fin... | [
"mjregan1@asu.edu"
] | mjregan1@asu.edu |
1642b18b8de554877545fecdb3e9e5754258f518 | 163e0b62b11c051e400631376b11a6a4d4b3baac | /server/api/serializers.py | 3fc2a43abd4c55f7287bf706621235324cad1e36 | [] | no_license | Pesqa/Pesqa-take-2 | 0a746c9260008177e65415830d441bdd835a23f1 | 9eabd7ea870f8e6cd822a7e0796b7972edae40bf | refs/heads/master | 2021-01-10T18:38:43.802859 | 2014-11-24T08:51:53 | 2014-11-24T08:51:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
User = get_user_model()
class UserSerializer(serializers.ModelSerializer):
full_name = serializers.CharField(source='get_full_name', read_only=True)
class Meta:
model = User
fields = ('id', User.US... | [
"developer@warplydesigned.com"
] | developer@warplydesigned.com |
207c6a2e4e7c097edd2dff1233f584c4fe6a7920 | 21baf25c9ac7d1ddf242d286c012e39e903c1823 | /main.py | 387f79de9d7203870e22c73bb095b821ac16d8a6 | [] | no_license | lattai/schedify | 5f24479597f7dec0a3928fb69be2431e7e6deb74 | 44ff0dde1040351659c41e1080271d4697d2a47f | refs/heads/master | 2020-06-24T20:48:21.326254 | 2019-08-02T21:17:49 | 2019-08-02T21:17:49 | 199,084,414 | 2 | 0 | null | 2019-07-30T14:06:42 | 2019-07-26T21:55:04 | HTML | UTF-8 | Python | false | false | 21,924 | py | import webapp2
import os
import jinja2
import logging
from google.appengine.ext import ndb
from google.appengine.api import users
from models import SchedifyUser, Connect, Event, Attendance
the_jinja_env = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.a... | [
"cssi@cssis-MacBook-Pro.local"
] | cssi@cssis-MacBook-Pro.local |
48a608c4fbaacbfeb2ab3442ffcab9da022b1ba2 | e818d2eecdfcec3ea864eac6a73d8de040fd0c37 | /lyric_engine/tests/test_kget.py | 63670165bf19b0616a31a7318f6e718d7de30d9f | [
"MIT"
] | permissive | franklai/lyric-get | d72415a43157158e3b89232c7b96de9a9214b7cc | b28aa26b882ae8741d20d39f7e7282717541c9b7 | refs/heads/master | 2020-05-21T15:08:34.069075 | 2018-05-01T13:03:03 | 2018-05-01T13:03:03 | 16,251,315 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | import unittest
from lyric_engine.modules.kget import KGet as Lyric
class KGetTest(unittest.TestCase):
def test_url_zutto(self):
url = 'http://www.kget.jp/lyric/188989/'
obj = Lyric(url)
obj.parse()
self.assertEqual(obj.title, 'ずっと feat.HAN-KUN & TEE')
self.assertEqual(obj.... | [
"franklai@cmlab.csie.ntu.edu.tw"
] | franklai@cmlab.csie.ntu.edu.tw |
fd09b8c571cce21e46569630c1ee6c84d7420e24 | 12e85e99304426bebbc6250603d9f8f0b1d8923d | /blog/management/commands/addtobase.py | 487cdc2962b985df2d59cc2da3add3c9cb207d0f | [] | no_license | a7emenov/technoWebsite | a5f6e605def755428cfe0a056631fb5ec5136661 | 39179cb98e238150e3f6cef42d40cab31da9f2aa | refs/heads/master | 2021-06-10T09:19:53.646926 | 2017-02-13T21:52:46 | 2017-02-13T21:52:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,575 | py | import random
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from blog.models import Tag, Question, Answer, Profile, Vote
class Command( BaseCommand ):
help = 'Adds test data to base'
def add_arguments( self, parser ):
parser.add_argument(
'-q'... | [
"tochka313@gmail.com"
] | tochka313@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.