hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
61ad32cce254b0d3a56fc49d9b2af632962590d1
1,692
py
Python
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
gtkeyaws.py
aissa-laribi/gtkeyaws
f40704db1dd99ce7db28b2e25c09c60bb23689f2
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys import time browser = webdriver.Firefox(executable_path="./drivers/geckodriver") browser.get('https://ACCOUNTNUMBER.signin.aws.amazon.com/console?region=us-east-1') browser.find_element_by_xpath('//*[@id="username"]').send_keys('USERNAME')...
52.875
273
0.757092
0
0
0
0
0
0
0
0
1,334
0.788416
61aea3b9d53c7af9cfa86fadc4caee11c448c970
4,307
py
Python
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
vgg16_convadd.py
kkkumar2/Vegetable-recognition-with-VGG-16-19-SCRATCH
a1f16bcca0608ae87cbf9b0973ac16d9d2274ae3
[ "Apache-2.0" ]
null
null
null
from tensorflow.keras.layers import Input, Lambda, Dense, Flatten from tensorflow.keras.models import Model from tensorflow.keras.applications.vgg16 import VGG16 from tensorflow.keras.applications.vgg16 import preprocess_input from tensorflow.keras.preprocessing import image from tensorflow.keras.preprocessing.ima...
36.193277
137
0.639424
0
0
0
0
0
0
0
0
715
0.166009
61af0d4043273f66c7507d94d876e3a5dbecbd8a
4,888
py
Python
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
null
null
null
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
null
null
null
scripts/make_phenicx_anechoic_index.py
magdalenafuentes/soundata
4d2dde8e9ef61483bc202bf94d6a0ccc1601c52b
[ "BSD-3-Clause" ]
1
2021-05-03T19:34:46.000Z
2021-05-03T19:34:46.000Z
import argparse import glob import hashlib import json import os import string DATASET_INDEX_PATH = '../mirdata/datasets/indexes/phenicx_anechoic_index.json' def md5(file_path): """Get md5 hash of a file. Parameters ---------- file_path: str File path. Returns ------- md5_hash: ...
31.133758
88
0.528232
0
0
0
0
0
0
0
0
1,226
0.250818
61af771f46003607f0d27ebb336cdcdad337f2c1
4,341
py
Python
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/animal-forest-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
5
2020-05-28T06:29:33.000Z
2020-09-30T12:14:46.000Z
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
Pzzzzz/plugins/code_runner.py
Pzzzzz5142/xjbx-QQ-group-bot
a9141a212a7746ac95d28459ec9cec5b6c188b35
[ "MIT" ]
null
null
null
from nonebot import on_command, CommandSession, get_bot from nonebot.command import call_command from nonebot.message import escape as message_escape import aiohttp from nonebot.argparse import ArgumentParser __plugin_name__ = "运行代码" RUN_API_URL_FORMAT = "https://glot.io/run/{}?version=latest" SUPPORTED_LANGUAGES = {...
30.356643
80
0.539968
0
0
0
0
3,463
0.740749
3,336
0.713583
1,387
0.296684
61b14520dd49127de7f32813b04d71f1ebbf9aa7
2,905
py
Python
jobs.py
gomes-lab/HCLMP
6770579404f6fa76948f688ae3c626ad621284ec
[ "MIT" ]
4
2021-06-04T12:34:19.000Z
2022-01-08T07:12:41.000Z
jobs.py
sk2299/HCLMP
d8b3e4dbf39af8d324c4f57e5d56f5846f2b136e
[ "CC-BY-4.0", "MIT" ]
1
2022-01-07T05:16:26.000Z
2022-01-07T05:55:17.000Z
jobs.py
sk2299/HCLMP
d8b3e4dbf39af8d324c4f57e5d56f5846f2b136e
[ "CC-BY-4.0", "MIT" ]
1
2022-02-21T19:12:14.000Z
2022-02-21T19:12:14.000Z
import os from os import listdir from os.path import isfile, join ''' Author: Shufeng KONG, Cornell University, USA Contact: sk2299@cornell.edu This is an example script to run jobs. Set single_job to be True if you only have one setting or dataset to run. In our experiments, we have 69 systems to run, so we set sing...
39.256757
141
0.679862
0
0
0
0
0
0
0
0
1,735
0.597246
61b34cc74049ca79c83591c3b423846191259210
3,460
py
Python
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
tests/test_readout.py
msohaibalam/forest-benchmarking
40f5fd5235803204b34fa8ba1ced4ef2e0f3098d
[ "Apache-2.0" ]
null
null
null
import re import numpy as np from pyquil import Program from pyquil.device import gates_in_isa from pyquil.gates import I, RX, CNOT, MEASURE from pyquil.noise import decoherence_noise_with_asymmetric_ro from forest_benchmarking.readout import get_flipped_program, estimate_confusion_matrix, \ estimate_joint_confus...
39.318182
97
0.650867
0
0
0
0
0
0
0
0
160
0.046243
61b36588f184550168da888b49440a8f3261fd00
768
py
Python
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
lib/ohdevtools/default_platform.py
LukiLeu/loadify
740532324e7f94c7ad1f94f78bdce9bc2575811a
[ "MIT" ]
null
null
null
import platform def default_platform(): if platform.system() == 'Windows': return 'Windows-x86' if platform.system() == 'Linux' and platform.architecture()[0] == '32bit' and platform.machine()[0:3] == 'ppc': return 'Linux-ppc32' if platform.system() == 'Linux' and platform.architecture()[0]...
42.666667
115
0.632813
0
0
0
0
0
0
0
0
317
0.41276
61b4b08078de62e176f62f45f211959e7d5273f3
853
py
Python
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
null
null
null
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
null
null
null
solutions/numbers/calculator.py
TheAtomicGoose/karan
60222165ad46fe1afc08e631c3171f63ef52b79d
[ "MIT" ]
1
2018-03-25T05:57:57.000Z
2018-03-25T05:57:57.000Z
""" Written by Jesse Evers A basic calculator. """ # Adds x and y def add(x, y): return x + y # Subtracts y from x def subtract(x, y): return x - y # Multiplies x by y def multiply(x, y): return x * y # Divides x by y def divide(x, y): return x / y # Raises x to the y def exponent(x, y): r...
17.770833
56
0.531067
0
0
0
0
0
0
0
0
266
0.311841
61b4d450e641be9b9611606821aba4d81cf19843
20,328
py
Python
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
26
2018-11-09T08:48:13.000Z
2021-12-01T07:48:16.000Z
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
null
null
null
minesweeper_tools/WebMinerAnalyzer.py
stg-tud/minesweeper
86c55c4f391a00b3f846ba552bb82c5b497c580a
[ "Apache-2.0" ]
13
2018-11-12T12:50:07.000Z
2022-03-22T15:04:27.000Z
#!/usr/bin/env python # python WebMinerAnalyzer.py www.mejortorrent.org ./data 10 import requests import json import sys import os import subprocess import time import json import re import time as t import shutil import datetime import magic import run_web import util import pdb fil = ['chatbro','tidio.co', 'getcou...
38.427221
2,817
0.614719
0
0
0
0
0
0
0
0
11,369
0.559278
61b783bd1f645561d692a376da45e46d014ca747
5,367
py
Python
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
flyingpigeon/processes/wps_pointinspection.py
tlvu/flyingpigeon
2fb3eb4f32c3d2c18ec266834d113dc710e24ffc
[ "Apache-2.0" ]
null
null
null
import logging from os.path import join from numpy import savetxt, column_stack from pywps import ComplexInput, ComplexOutput from pywps import Format from pywps import LiteralInput from pywps import Process from pywps.app.Common import Metadata from shapely.geometry import Point from eggshell.nc.ocg_utils import cal...
40.353383
116
0.524688
4,829
0.899758
0
0
0
0
0
0
1,508
0.280976
61b823d8585b20f092c787b7b2c50b78ac5048c4
1,166
py
Python
freshmaker/parsers/errata/signing_change.py
hluk/freshmaker
224875b104b5be9fa6688af31363a387eeb1b05f
[ "MIT" ]
5
2020-06-17T11:29:16.000Z
2022-03-24T07:20:16.000Z
freshmaker/parsers/errata/signing_change.py
ronnyhlim/freshmaker
b7635dcfe631759e917c85e6ef6654024a3fb91c
[ "MIT" ]
96
2020-06-29T15:01:23.000Z
2022-03-30T08:07:06.000Z
freshmaker/parsers/errata/signing_change.py
ronnyhlim/freshmaker
b7635dcfe631759e917c85e6ef6654024a3fb91c
[ "MIT" ]
20
2020-06-16T01:30:08.000Z
2022-02-19T15:34:55.000Z
# SPDX-License-Identifier: MIT from freshmaker.parsers import BaseParser from freshmaker.events import FlatpakModuleAdvisoryReadyEvent from freshmaker.errata import Errata, ErrataAdvisory class ErrataAdvisorySigningChangedParser(BaseParser): """ Parses errata.activity.signing messages (a build attached to ad...
32.388889
92
0.715266
974
0.835334
0
0
0
0
0
0
378
0.324185
61b8dfc3b67dbc326456271271e5948b8211186a
1,940
py
Python
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
3
2019-07-01T14:20:26.000Z
2019-12-16T01:50:23.000Z
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
null
null
null
music163/api_test.py
WMLHUST/scrapy_wangyiyun_music
bd6b76d852dc6ead7f88a14843886c233c5a52c7
[ "Apache-2.0" ]
5
2018-10-15T12:47:55.000Z
2019-09-13T13:33:53.000Z
# coding: utf-8 import requests def get_song_comments(music_id, offset=0, total='false', limit=100): action = 'http://music.163.com/api/v1/resource/comments/R_SO_4_{}/?rid=R_SO_4_{}&\ offset={}&total={}&limit={}'.format(music_id, music_id, offset, total, limit) # proxy = {"http": "http://dev-prox...
38.039216
146
0.610309
0
0
0
0
0
0
0
0
1,076
0.554639
61b9588fe2949fa1516521e6875b226d81b8b6f7
2,356
py
Python
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
4
2020-09-17T22:16:48.000Z
2022-02-21T19:07:48.000Z
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
null
null
null
src/data_modules/image_dataset_data_module.py
gmum/lcw-generator
fde1128505194bd04f04bbddcbe7fcec453b0052
[ "MIT" ]
null
null
null
from typing import Union from torch.utils.data.dataset import Dataset from data_modules.dataset_factory import DatasetFactory from torch.utils.data import DataLoader import pytorch_lightning as pl class ImageDatasetDataModule(pl.LightningDataModule): def __init__(self, dataset_factory: Union[DatasetFa...
43.62963
129
0.702886
2,146
0.910866
0
0
0
0
0
0
173
0.07343
61b978854383493ee32031f63ea4d378d345d545
3,429
py
Python
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
19
2019-03-31T09:06:49.000Z
2022-03-29T12:25:29.000Z
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
null
null
null
src/methods/model_investigate.py
clownjiahui/kdd2018_air_pollution_prediction
c76c3ee87132a923cf499d9be17d49b2c9b6eac1
[ "MIT" ]
11
2019-04-02T07:59:45.000Z
2022-03-18T08:32:28.000Z
import settings import const import pandas as pd import numpy as np import matplotlib from matplotlib import rcParams rcParams.update({'figure.autolayout': True}) # to prevent labels going out of plot! matplotlib.use('TkAgg') import seaborn as sns import matplotlib.pyplot as plt from src.preprocess import reform from ...
45.72
117
0.633712
0
0
0
0
0
0
0
0
654
0.190726
61b9871edd93122c9a1e0cadd169ef1f8e7cc7a9
6,002
py
Python
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
src/obj.py
LemnX4/PointDipole
79223498f6adce9d4f33939bd0173e9f7cd9132a
[ "MIT" ]
null
null
null
# vim: set et sw=4 ts=4 nu fdm=indent: # coding: utf8 import numpy as np import random from demag import demagnetization from llg import Bth class Object: def __init__(self, position, magnetization, a=1.0, b=1.0, h=1.0, angle=0, M0=1720e3): if len(magnetization) == 2 and len(position) == 2: ...
26.794643
90
0.488004
5,842
0.97237
0
0
1,561
0.25982
0
0
1,024
0.170439
61ba96c4c02b0b326e2005e4e9d043a4842e135b
828
py
Python
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
rubbish.bin/legacy/examples/normal_textures.py
Jack12xl/taichi_three
4785aeefd9e0bccd33cc9b564046dc566b03c714
[ "MIT" ]
null
null
null
import taichi as ti import taichi_three as t3 import numpy as np ti.init(ti.cpu) scene = t3.Scene() obj = t3.readobj('assets/cube.obj', scale=0.6) model = t3.Model(t3.Mesh.from_obj(obj)) model.material = t3.Material(t3.CookTorrance( color=t3.Texture(ti.imread('assets/cloth.jpg')), normal=t3.NormalMap(texture=...
27.6
76
0.693237
0
0
0
0
0
0
0
0
124
0.149758
61bca4eaa32bb1d8f9fcdd23e9b7147440128669
108
py
Python
tests/test_artificial_objects_2d.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
2
2020-07-01T06:20:44.000Z
2020-07-01T09:36:48.000Z
tests/test_artificial_objects_2d.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
null
null
null
tests/test_artificial_objects_2d.py
elsandal/pyclesperanto_prototype
7bda828813b86b44b63d73d5e8f466d9769cded1
[ "BSD-3-Clause" ]
1
2020-06-29T18:40:54.000Z
2020-06-29T18:40:54.000Z
def test_artificial_objects_2d(): import pyclesperanto_prototype as cle cle.artificial_objects_2d()
27
41
0.805556
0
0
0
0
0
0
0
0
0
0
61bce430d360996e97a91a55ee3188cadb7521ab
132,733
py
Python
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
polls/esp_xlsx.py
raqsilva/VCFDataExporter
b5eaabd82ade95a837fd98dff5e1600046eeb029
[ "Apache-2.0" ]
null
null
null
import vcf from django.http import HttpResponse from django.core.files import File import xlsxwriter import os from .vcf_functions import getBasePath, save_binary, getFilePath, parse_fasta, getEspPath import subprocess import collections from .dictionaries import esp_col_dic from pytera.settings import BASE_DIR # PYTE...
51.407049
120
0.317638
0
0
0
0
0
0
0
0
10,335
0.077863
61bfbfcc852afff791e40fe0d4e3cbc4a671f54b
13,003
py
Python
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
record.py
mahongquan/ipy_rtf
1ac68bd531e1d0f3f12b15a2b10991eb21db0305
[ "Zlib" ]
null
null
null
# -*- coding: utf-8 -*- import clr import sys import math import getmethod import genRtf clr.AddReferenceByPartialName("IronPython") #initpath=r"d:\Program Files\NCS\CS3000" #initpath=r"C:\Program Files (x86)\NCS\ONH3000" # initpath=r"C:\CS3000备份\CS3000_1.7.0" initpath=r"C:\Program Files (x86)\NCS\CS3000" # initpath=r...
32.588972
115
0.484196
0
0
0
0
0
0
0
0
3,433
0.258334
61c0a34abeefd2557216aff867ba7f8de9c65cae
799
py
Python
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
null
null
null
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
11
2021-06-02T04:42:50.000Z
2022-02-14T07:24:15.000Z
forms-flow-api/src/api/utils/util.py
McCoySmith/forms-flow-ai
5555c1b2a9a5496f1ab98e5339d66537e25974c2
[ "Apache-2.0" ]
null
null
null
"""Common utils. * CORS pre-flight decorator. A simple decorator to add the options method to a Request Class. """ from .constants import ALLOW_ALL_ORIGINS def cors_preflight(methods: str = "GET"): """Render an option method on the class.""" def wrapper(f): # pylint: disable=invalid-name def option...
29.592593
93
0.560701
0
0
0
0
0
0
0
0
365
0.456821
61c1095b36ced7182f84ce6fb98c5966048a181c
89
py
Python
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
1
2017-03-16T00:59:01.000Z
2017-03-16T00:59:01.000Z
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
null
null
null
FoodScan/ShopSync/Shops/__init__.py
danielBreitlauch/FoodScan
cf84209c4da84a8cb56deccdbde9c305eee1b8c3
[ "MIT" ]
null
null
null
from .shop import Shop from .allyouneed import AllYouNeed from .kaufland import Kaufland
22.25
34
0.831461
0
0
0
0
0
0
0
0
0
0
61c6722666daed5da1e5465a987ae0f5c8c2f1c8
11,323
py
Python
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
wk3_time_space_est.py
pc0179/RomeTaxiData
dff19a538482810e1b84486cdc4299fb820f5051
[ "MIT" ]
null
null
null
""" # week3 madness... # filter, process (map-match) and output data to new postgres database # aim by thurs, to be able to answer question, where are (best-guess/estimate) all the taxis at time T. # then, work out, how far each one is from one another, likely a) search with in BBox, then b) do some fast osrm routing (...
35.495298
244
0.689658
0
0
0
0
0
0
0
0
8,659
0.764727
61c7129583ba4b43eb7ad3e93b2aa91fac2d4fa7
372
py
Python
djangae/contrib/locking/kinds.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
467
2015-01-02T22:35:37.000Z
2022-02-22T23:13:36.000Z
djangae/contrib/locking/kinds.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
743
2015-01-02T15:55:34.000Z
2021-01-29T09:43:19.000Z
djangae/contrib/locking/kinds.py
bocribbz/djangae
8a118d755cd707e6a452593050c25d790edde944
[ "BSD-3-Clause" ]
154
2015-01-01T17:05:59.000Z
2021-12-09T06:40:07.000Z
class LOCK_KINDS(object): """ The different kinds of lock which you can use. WEAK is not guaranteed to be robust, but can be used for situations where avoiding simultaneous code execution is preferable but not critical. STRONG is for where preventing simultaneous code execution is *require...
33.818182
90
0.69086
369
0.991935
0
0
0
0
0
0
313
0.841398
61c780171c158e14c78061e8324344923f5412cc
668
py
Python
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
2
2019-06-25T14:18:34.000Z
2019-11-21T01:19:35.000Z
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
null
null
null
lgy/algorithm/9251 LCS.py
Einere/boostcamp_study
63a52253c0ee01354a81dcac6349cc84d738b9ca
[ "MIT" ]
1
2019-06-26T05:09:39.000Z
2019-06-26T05:09:39.000Z
import sys sys.path.append('.') from lgy.algorithm.StdIOTestContainer import StdIOTestContainer as T def main(): v1 = input() v2 = input() length = max(len(v1), len(v2)) dp = [[0 for i in range(len(v2) + 1)] for j in range(len(v1) + 1)] ans = 0 for i in range(1, len(v1) + 1): for j i...
19.085714
70
0.516467
0
0
0
0
0
0
0
0
37
0.055389
61c7a9a87067cdc2425518e9bb3374a220504301
5,164
py
Python
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
gstat/tests/gstat_test.py
nixon/gstat
cf3fdc8b232de380ced2519ae853b46997787eeb
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python import os import socket import unittest from ..gstat import gstat, gstats, gstat_event, gstat_elapsed class MockSocket(object): def __init__(self, *args, **kwargs): self._sendto_msg = [] self._closed = False def sendto(self, msg, hostport): sent = {'msg': msg} ...
31.29697
72
0.625097
5,027
0.97347
0
0
136
0.026336
0
0
1,062
0.205655
61c7c024df7aed8146ffceb3d91a5193f97dce1d
1,721
py
Python
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
null
null
null
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
null
null
null
app.py
rebeccabilbro/inquire
ff47ff46add727a10f14d801ea924d4b0ece6805
[ "MIT" ]
1
2019-05-06T13:38:56.000Z
2019-05-06T13:38:56.000Z
from flask import Flask, render_template, request from flask_bootstrap import Bootstrap # from flask_appconfig import AppConfig from flask_wtf import Form, RecaptchaField from wtforms import TextField, HiddenField, ValidationError, RadioField, BooleanField, SubmitField from wtforms.validators import Required import ge...
31.290909
98
0.678094
140
0.081348
0
0
376
0.218478
0
0
554
0.321906
61c87be5497f3881250ad3985df824448fa55d00
427
py
Python
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
1
2018-08-03T01:25:38.000Z
2018-08-03T01:25:38.000Z
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
null
null
null
md2html/weixin/pre_processor.py
g0man/md2html
c7f021298556e60984497464c1f523ac2443e868
[ "MIT" ]
null
null
null
from markdown.preprocessors import Preprocessor class CalcReadingTimePreprocessor(Preprocessor): def __init__(self, cfg, *args, **kwargs): self.cfg = cfg super(CalcReadingTimePreprocessor, self).__init__(*args, **kwargs) def run(self, root): word_count = len(root) print("...
30.5
74
0.662763
377
0.882904
0
0
0
0
0
0
33
0.077283
61c9624c9f9d3fcfa45f472861b7d2d95733b378
19,842
py
Python
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
3
2020-05-23T03:22:08.000Z
2020-05-23T03:22:16.000Z
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
null
null
null
data/scripts/model.py
Honorates/covid19_scenarios
c0d6d1a34d3650e9812744932b9b661ddac57643
[ "MIT" ]
1
2020-05-25T13:50:23.000Z
2020-05-25T13:50:23.000Z
import csv import importlib import sys sys.path.append('..') import os import json import argparse import copy from enum import IntEnum from datetime import datetime import numpy as np import scipy.integrate as solve import scipy.optimize as opt import matplotlib.pylab as plt from scripts.tsv import parse as parse_ts...
35.945652
136
0.590969
1,602
0.080738
0
0
0
0
0
0
4,741
0.238938
61c99cc2811581dd1cdf3ced3f55a324a3a575c9
3,396
py
Python
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
46
2020-09-17T04:50:22.000Z
2022-03-22T08:14:15.000Z
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
7
2021-02-09T10:09:03.000Z
2022-01-14T21:19:02.000Z
mxfold2/fold/fold.py
n-mikamo/mxfold2
8c195c77f824bdd5899d3d01d6a096de95cd0e9b
[ "MIT" ]
20
2020-10-15T09:03:59.000Z
2022-03-09T07:16:20.000Z
import torch import torch.nn as nn import torch.nn.functional as F class AbstractFold(nn.Module): def __init__(self, predict, partfunc): super(AbstractFold, self).__init__() self.predict = predict self.partfunc = partfunc def clear_count(self, param): param_count = {} ...
46.520548
124
0.575677
3,328
0.979976
0
0
0
0
0
0
57
0.016784
61ca7a2cc6d6893b83bcf58c4d2095aac6d4e176
998
py
Python
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
python/optparse/fib.py
xiaogy0318/coding-exercises
320205f8a14d16faa8a600439ee02c6e380449c8
[ "Unlicense" ]
null
null
null
import optparse def fib(n, prin): a, b = 0, 1 for i in range(n): a, b = b, a + b if prin: print a return a def Main(): parser = optparse.OptionParser('usage %prog ' + \ '-n <fib number> -o <output file> -a <print all>', version = '%prog 1.0') parser.add_option('-n', dest = 'num', type = 'int', \ help...
24.95
75
0.608216
0
0
0
0
0
0
0
0
320
0.320641
4edee1ef5f03774068d2d400a1fd45f888b489f3
3,651
py
Python
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/tests/google/ble/api/GattApiTest.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
1
2018-02-24T19:13:01.000Z
2018-02-24T19:13:01.000Z
#/usr/bin/env python3.4 # # Copyright (C) 2016 The Android Open Source Project # # 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 requir...
30.173554
79
0.67461
2,725
0.746371
0
0
2,124
0.581758
0
0
1,894
0.518762
4edf4e5da1cf00b7d7db246168a8366bec39843f
3,568
py
Python
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2021-02-27T18:01:44.000Z
2021-02-27T18:01:44.000Z
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2020-03-18T15:55:50.000Z
2020-03-18T15:55:50.000Z
python/modeltools/imagetools/test_result.py
GT-AcerZhang/PaddleSelfTools
ad7e45ddc3166f6834e8798011a33488a9f7f70e
[ "Apache-2.0" ]
1
2021-03-05T10:23:37.000Z
2021-03-05T10:23:37.000Z
# coding=utf-8 import numpy as np # fromfile = np.fromfile('/Users/xiebaiyuan/PaddleProject/paddle-mobile/tools/python/imagetools/datas/jpgs/0000_0.9834-148196_82452-0ad4b83ec6bc0f9c5f28101539267054.jpg_p0_0.126571263346.jpg.npfile', 'f') # fromfile = np.fromfile('/Users/xiebaiyuan/PaddleProject/paddle-mobile/tools/py...
29.00813
204
0.69815
0
0
0
0
0
0
0
0
1,916
0.528115
4ee166755be43836f7c47c4a1c08fb0f9fe27932
663
py
Python
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
url/forms.py
mad-skull/URL-Shortener
09fdf179a2ae0f0f5bc9309e53c0aebf352a9b02
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm # , RecaptchaField from wtforms import validators, StringField from wtforms.validators import Length # from wtforms.fields.html5 import URLField class UrlForm(FlaskForm): old = StringField('Title', [ validators.InputRequired(), validators.Length( min=4,...
30.136364
90
0.624434
482
0.726998
0
0
0
0
0
0
176
0.26546
4ee1ab036fce9ec6e8e4a17a9395246651c2444f
645
py
Python
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
null
null
null
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
null
null
null
Leetcode/0051-0100/0053-maximum-subarray.py
harshbhandari7/Data-Structures-and-Algorithms
0ce0a5bc64d112ff38ae0de51d19ce3751b70eca
[ "MIT" ]
1
2019-10-06T15:46:14.000Z
2019-10-06T15:46:14.000Z
''' Author : MiKueen Level : Easy Problem Statement : Maximum Subarray Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Input: [-2,1,-3,4,-1,2,1,-5,4], Output: 6 Explanation: [4,-1,2,1] has the largest sum = 6. ''' class...
25.8
136
0.575194
312
0.483721
0
0
0
0
0
0
378
0.586047
4ee29462d01045c39bdef7c5f4256af4c465f988
655
py
Python
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
setup.py
mit-athena/python-moira
d765eaa608ff1b12423d65c447a27d65eec38988
[ "MIT" ]
null
null
null
#!/usr/bin/python from setuptools import setup from distutils.extension import Extension from Pyrex.Distutils import build_ext setup( name="PyMoira", version="4.3.2", description="PyMoira - Python bindings for the Athena Moira library", author="Evan Broder", author_email="broder@mit.edu", lice...
26.2
73
0.584733
0
0
0
0
0
0
0
0
215
0.328244
4ee46086988cfd5d4d1141a8637a06a6d2c42445
7,818
py
Python
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-02-10T05:50:19.000Z
2022-02-10T05:50:19.000Z
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
43
2022-02-08T00:59:49.000Z
2022-03-14T00:10:01.000Z
distributed_social_network/api/models.py
CMPUT404F21-TEAM-PROJECT/cmput404-group-project
5fc929f6bd22d41dc73734d34b1563bcfdc87f27
[ "Apache-2.0" ]
1
2022-03-17T22:11:38.000Z
2022-03-17T22:11:38.000Z
import uuid from django.db import models from django.contrib.auth.models import AbstractUser import django.utils.timezone import environ, requests env = environ.Env() environ.Env.read_env() class AuthorManager(models.Manager): def get_queryset(self): queryset = super().get_queryset() # # TODO: Ite...
47.96319
140
0.640061
7,600
0.972116
0
0
0
0
0
0
1,795
0.229598
4ee4c9bda6034b23325fab78be4485408477098a
1,727
py
Python
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
null
null
null
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
null
null
null
faker_extras/biology.py
nyimbi/faker_extras
37967d9101af217f7671fc2ad071b49258711c29
[ "MIT" ]
1
2019-05-23T16:02:45.000Z
2019-05-23T16:02:45.000Z
"""Faker data providers for biological data.""" from random import choice from faker.providers import BaseProvider from . import utils class GeneticProvider(BaseProvider): """Genomic data provider. Acid data source: http://www.cryst.bbk.ac.uk/education/AminoAcid/the_twenty.html """ acids = { ...
23.337838
66
0.491025
1,586
0.918356
0
0
0
0
0
0
826
0.478286
4ee7880d0727b54a66e34d3af262fe8722c42af8
640
py
Python
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
src/sibyl/transformations/text/data/phrases.py
UCLA-SEAL/Sibyl
06e9d38ef551284ab48f507dc40d14fde3562fb6
[ "BSD-3-Clause" ]
null
null
null
POSITIVE_PHRASES = [ "That said, I liked it.", "That said, I loved it.", "That said, I couldn't be happier.", "That said, I'm pleased.", "That being said, I liked it.", "That being said, I loved it.", "That being said, I couldn't be happier.", "That being said, I'm pleased." ] NEGATIVE_...
30.47619
49
0.596875
0
0
0
0
0
0
0
0
500
0.78125
4ee83a8fb82e867ec3132c21b79dd40933bc94ec
2,708
py
Python
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
null
null
null
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
null
null
null
tests/conftest.py
TheCuVe/order-service
b23aaa9774bd3430b463ef872babb0e4459518da
[ "MIT" ]
2
2018-02-15T11:40:25.000Z
2018-02-15T11:49:25.000Z
import pytest import factory import asyncio from cuve.order_service.db import transaction, tables from cuve.order_service.db.helpers import async_create_database from cuve.order_service.app import application_factory from cuve.order_service.config import load_config, ConfigSchema def pytest_addoption(parser): pa...
27.632653
76
0.695347
159
0.058715
0
0
1,797
0.663589
522
0.192762
638
0.235598
4eea6491efcd84bda94636814b33bd0e8caf7e12
351
py
Python
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
1
2021-08-14T13:42:15.000Z
2021-08-14T13:42:15.000Z
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
null
null
null
check_file.py
aideyisu/english_study
87f188655f9858dff32ea3f0dc5e86bc79c267ad
[ "MIT" ]
null
null
null
''' 检查系统内文件是否完备 ''' from pathlib import Path import os basepath = os.path.dirname(__file__) # 当前文件所在路径 file_list = [] for file in file_list: my_file = Path(f'{basepath}/analysis_result/asd') if not my_file.exists(): # 检测是否存在id路径不存在 os.makedirs(my_file) # 只能创建单级目录 =.=对这个用法表示怀疑 ...
18.473684
53
0.652422
0
0
0
0
0
0
0
0
241
0.520518
4eeb090fcce31a4d12b4e9146d28f91e0bc82c1a
7,983
py
Python
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/plugins/wrs/test_extension_host.py
ericho/stx-neutron
d4a8ad548c4afed73269575c48526a704dd09a9c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Copyright 2013 OpenStack Foundation # # 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 ...
38.014286
78
0.621571
6,724
0.84229
216
0.027057
247
0.030941
0
0
1,399
0.175247
4eeb19e644b70e38ac9382dd07fad932a634f7b9
1,792
py
Python
project4/task1_ground_truth.py
yushanweng/github_projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
null
null
null
project4/task1_ground_truth.py
yushanweng/github_projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
6
2020-05-18T05:02:09.000Z
2022-02-27T05:41:49.000Z
project4/task1_ground_truth.py
yushanweng/projects
e2263a04a37291b767014239c2c23fa25a0811bd
[ "MIT" ]
null
null
null
from pyspark import SparkContext import os import re import json import sys import time import logging import collections from itertools import combinations from itertools import product s_logger = logging.getLogger('py4j.java_gateway') s_logger.setLevel(logging.ERROR) sc = SparkContext('local[*]', 'task1') sc.setLogL...
28.444444
122
0.707589
0
0
0
0
0
0
0
0
313
0.174665
4eec905aa21dad34da72aba28caa72b9f1341da1
3,917
py
Python
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
null
null
null
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
null
null
null
preprocess_kb.py
ruinunca/NeuralDialog-ZSDG
c20359541036ea876a126d1c7c172b820476dcb2
[ "Apache-2.0" ]
1
2020-09-24T15:09:34.000Z
2020-09-24T15:09:34.000Z
import os from argparse import ArgumentParser import json import copy import shutil def process_kb(in_kb): all_values = set({}) items = in_kb.get('items', {}) if items is None: items = {} for item in items: for key, value in item.items(): all_values.add(value) return so...
34.359649
87
0.658667
0
0
0
0
0
0
0
0
298
0.076079
4eee06b3e3623184a4edfd4ef7d48d4395142249
164
py
Python
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
runner.py
xoiss/mk60
1e1be5527a7c6a6f95dfede9e5452faa90f7d456
[ "CC0-1.0" ]
null
null
null
if __name__ == '__main__': from sys import exit from mk60.app import main exit(main()) else: raise RuntimeError("runner must be run, not imported")
23.428571
58
0.676829
0
0
0
0
0
0
0
0
44
0.268293
4eeebae26c14fcd330b4a36375b13a6878c29835
1,038
py
Python
Prettified Stopwatch.py
adrian88szymanski/Automate_the_Boring_Stuff_with_Python_by_Sweigart
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
1
2020-08-15T11:36:24.000Z
2020-08-15T11:36:24.000Z
Prettified Stopwatch.py
adrian88szymanski/Automate_the_Boring_Stuff_with_Python_by_Sweigart
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
2
2022-01-13T03:18:08.000Z
2022-03-12T00:48:23.000Z
Prettified Stopwatch.py
adrian88szymanski/Sweigart_tasks
a5fa40a3e27c4f0c79d6406926456c3d1a54c0c1
[ "MIT" ]
null
null
null
#! python3 """A stopwatch program with a prettier output and pyperclip functionality.""" import time import pyperclip # Display the programs instructions. print('Press ENTER to begin. Afterwards, press ENTER to "click" the stopwatch.' 'Press Ctrl-c to quit.') input() print('Started.') start_time = time.time()...
28.833333
79
0.595376
0
0
0
0
0
0
0
0
421
0.405588
4eefc422a0f1ecd6f321d7742b73d4e9a3dbaace
2,768
py
Python
src/tspf/main.py
Javernaver/ProyectoTitulo
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
2
2022-01-28T02:15:55.000Z
2022-01-28T02:16:00.000Z
src/tspf/main.py
Javernaver/TSP-Framework
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
null
null
null
src/tspf/main.py
Javernaver/TSP-Framework
de8406b13bf62c3f96409ce95675c95a9e00c7f1
[ "Apache-2.0" ]
null
null
null
"""Modulo principal que utiliza todas las demas clases para ejecutar el framework""" from .Algorithms import GeneticAlgorithm, SimulatedAnnealing, LocalSearch, IteratedLocalSearch, timer from . import sys, os, AlgorithmsOptions, MHType, Tsp, Tour, bcolors def main(argv=sys.argv) -> None: """ Funcion principal...
38.444444
128
0.700506
0
0
0
0
0
0
0
0
1,049
0.378974
4ef1b6b34b3007f16abb86fd81810b5f9c743ad4
5,879
py
Python
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
3
2018-07-02T03:50:23.000Z
2019-05-16T03:23:55.000Z
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
1
2021-01-07T01:33:06.000Z
2021-01-07T01:33:06.000Z
online/train/hmm_online_anomaly_detection.py
birlrobotics/bnpy
8f297d8f3e4a56088d7755134c329f63a550be9e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python def warn(*args, **kwargs): pass import warnings warnings.warn = warn import os import threading from sklearn.externals import joblib import bnpy import rospy import copy from std_msgs.msg import ( Header ) from birl_sim_examples.msg import ( Tag_MultiModal, Hmm_Log ) data_arr = ...
32.843575
124
0.621534
5,121
0.871067
0
0
0
0
0
0
606
0.103079
4ef1fb454c62d9675e2048e32596b30d112e5f10
4,838
py
Python
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
python_tools/test/test_memory_engine.py
ultimatezen/felix
5a7ad298ca4dcd5f1def05c60ae3c84519ec54c4
[ "MIT" ]
null
null
null
""" Tests for MemoryEngine::RemoteMemory """ import unittest import cPickle from cStringIO import StringIO import mock from FelixMemoryServes import MemoryEngine class WebMocker(unittest.TestCase): def set_request_val(self, val): self.req_val = cPickle.dumps(val) def get_request(s...
31.620915
60
0.596114
4,628
0.956594
0
0
0
0
0
0
506
0.104589
4ef25d0f65d81e8e0d5a9796fa97079edac4afe1
6,033
py
Python
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
1
2018-05-23T03:34:05.000Z
2018-05-23T03:34:05.000Z
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
null
null
null
commands/print9.py
egigoka/commands
3431ccdb9b9e8b13957b6cfc10feb51c46188b48
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- from typing import Union """Internal module with functions for print to console. """ __version__ = "0.13.0" class __Print: """Class with functions for print to console. """ def __init__(self, *args, **kwargs): from threading import Lock self.s_print_loc...
39.690789
114
0.593403
5,935
0.972632
0
0
239
0.039167
0
0
2,082
0.3412
4ef3dc5e360dade818b286abce16461dc436ebac
3,514
py
Python
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
1
2021-09-06T20:57:27.000Z
2021-09-06T20:57:27.000Z
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
8
2021-09-06T12:16:39.000Z
2022-02-16T11:48:54.000Z
src/function_file.py
cognitedata/function-action-oidc
6ba70da59aa1e94fff003def1082f48fc55bd6a2
[ "Apache-2.0" ]
null
null
null
import io import logging import os from pathlib import Path from zipfile import ZipFile from cognite.client.data_classes import DataSet, FileMetadata from cognite.client.exceptions import CogniteAPIError from cognite.experimental import CogniteClient from retry import retry # type: ignore from configs import Functio...
37.382979
105
0.684121
0
0
0
0
314
0.089357
0
0
906
0.257826
4ef491194dad1406c21f05ef14e5bf3fd5cd294c
474
py
Python
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
learning_python/2.built-in_data_types/1.built-in_data_types.py
thekilian/Python-pratica
875661addd5b8eb4364bc638832c7ab55dcefce4
[ "MIT" ]
null
null
null
''' BUILT-IN DATA TYPES Mutable - the value can change Immutable - the value cannot change ''' # Immutable object age = 99 id(age) age = 100 id(age) ''' We didn't change 99 to 100. We actually just pointed age to a different location: the new int object whose value is 100. We print the IDs by calling the built-in ...
14.8125
120
0.694093
0
0
0
0
0
0
0
0
429
0.905063
4ef5599e07f8786bc1af735d52d729d2cbe1c992
3,147
py
Python
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
deep_dream.py
ewalldo/Deep-Dream---Keras
bd4b116c547b008a38cb9e15d7845b1d4f1d120b
[ "MIT" ]
null
null
null
from keras.applications import inception_v3 from keras import backend as K import scipy import imageio from keras.preprocessing import image import numpy as np K.set_learning_phase(0) model = inception_v3.InceptionV3(weights='imagenet', include_top=False) layer_contributions = {'mixed2': 0.2, 'mixed3': 3., 'mixed4':...
28.351351
81
0.733079
0
0
0
0
0
0
0
0
228
0.07245
4ef59607a8d06514cadf280683c16c602c23e215
978
py
Python
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
game.py
greymistcube/racing_game_ai
7e5e6ec781eb3c98729d370cbcc0ab6ed053962f
[ "MIT" ]
null
null
null
import pygame import argparser import lib import ai.neatinterface.neatcore pygame.init() if __name__ == "__main__": args = argparser.get_args() # pygame initialization pygame.init() # initialize properly and make links make them as common resources # for other modules # I admit this looks ...
22.744186
70
0.639059
0
0
0
0
0
0
0
0
240
0.245399
4ef5d87643a24ee31f5dfe4a4c41d372dcfe5746
495
py
Python
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
66
2020-03-31T14:33:20.000Z
2022-03-25T15:48:06.000Z
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
6
2020-04-05T18:20:10.000Z
2021-12-17T19:54:54.000Z
tests/test_lines.py
nazcaspider/simple-3dviz
3c40007259a1f754311623f74d24b06f7b98be14
[ "MIT" ]
9
2020-04-03T14:31:28.000Z
2022-03-15T19:16:41.000Z
import unittest from cv2 import imwrite import numpy as np from simple_3dviz import Scene, Lines, Spherecloud from simple_3dviz.window import show class TestLines(unittest.TestCase): def test_line(self): points = np.array([[-0.5, 0.5, -0.5], [ 0.5, 0.5, 0.5]]) color...
21.521739
50
0.553535
293
0.591919
0
0
0
0
0
0
10
0.020202
4ef6267fcd36a4e2159433da6c76f793b111f5da
39,946
py
Python
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
1
2021-12-30T14:25:39.000Z
2021-12-30T14:25:39.000Z
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
17
2020-11-27T18:05:45.000Z
2022-01-27T02:46:46.000Z
build/lib/biotas/radio_project.py
knebiolo/biotas
2ea06297fc2851bc54ce89f20f8f7aaa98dd8fc1
[ "MIT" ]
1
2020-11-17T21:07:38.000Z
2020-11-17T21:07:38.000Z
# -*- coding: utf-8 -*- ''' Module contains all of the functions to create a radio telemetry project.''' # import modules required for function dependencies import numpy as np import pandas as pd import os import sqlite3 import datetime import matplotlib.pyplot as plt import matplotlib import matplotlib.dates as mdat...
69.957968
498
0.575953
0
0
0
0
0
0
0
0
16,755
0.419441
4ef82bde3ffe5853de425426103656891207a980
250
py
Python
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
5
2019-02-22T14:10:08.000Z
2022-03-13T01:03:49.000Z
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
17
2021-04-10T13:47:17.000Z
2021-05-17T21:25:30.000Z
tests/test_graphical_units/test_mobjects.py
osuzdalev/manim-1
adab2430645637a5e7e73832d3a6ff9e7d390159
[ "MIT" ]
1
2021-03-31T20:46:51.000Z
2021-03-31T20:46:51.000Z
from manim import * from tests.test_graphical_units.testing.frames_comparison import frames_comparison __module_test__ = "mobjects" @frames_comparison(base_scene=ThreeDScene) def test_PointCloudDot(scene): p = PointCloudDot() scene.add(p)
22.727273
82
0.804
0
0
0
0
114
0.456
0
0
10
0.04
4ef9b9608e8bbaa101ff10ed781037b8288c8ad9
3,284
py
Python
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
1
2021-02-23T21:19:08.000Z
2021-02-23T21:19:08.000Z
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
null
null
null
cpp/python/libgdf_cffi/tests/test_prefixsum.py
tgravescs/cudf
b8e72d713c801afd6b7d3f4b11711ef90b9f1f51
[ "Apache-2.0" ]
null
null
null
from __future__ import division, print_function import pytest from itertools import product import numpy as np from libgdf_cffi import ffi, libgdf from librmm_cffi import librmm as rmm from libgdf_cffi.tests.utils import (new_column, unwrap_devary, get_dtype, gen_rand, buffer_as_bits, count_nulls) params_...
29.061947
77
0.640682
0
0
196
0.059683
2,613
0.795676
0
0
95
0.028928
4efabc6bb17436720e7713819341d82858e58c26
1,889
py
Python
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
1
2021-04-28T21:35:01.000Z
2021-04-28T21:35:01.000Z
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
null
null
null
tests/contrib_django/test_types.py
jhgg/graphene
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
[ "MIT" ]
null
null
null
from py.test import raises from collections import namedtuple from pytest import raises from graphene.core.fields import ( Field, StringField, ) from graphql.core.type import ( GraphQLObjectType, GraphQLInterfaceType ) from graphene import Schema from graphene.contrib.django.types import ( DjangoNo...
24.855263
77
0.71784
243
0.128639
0
0
0
0
0
0
165
0.087348
4efb4b2a7ac038314937ca7c665e30ce81a582c4
357
py
Python
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
4
2021-06-30T18:00:36.000Z
2022-01-25T21:03:34.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
14
2021-04-26T09:48:37.000Z
2022-03-31T06:10:10.000Z
script_runner/main.py
lab-grid/script-runner
69bf681e9af3fb9300ee1b77290ffd06a09a1a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Sets up a flask-restx server for running the swabseq analysis R-script.""" from script_runner.server import app, api from script_runner.api.script import api as script from script_runner.api.health import api as server_health api.add_namespace(script) api.add_namespace(server_health) if _...
22.3125
77
0.773109
0
0
0
0
0
0
0
0
108
0.302521
4efd455047eddeff32bc2a390297c2913a743fde
51
py
Python
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
259
2020-03-25T15:49:02.000Z
2022-03-21T03:39:23.000Z
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
226
2020-04-13T19:35:06.000Z
2022-03-06T00:21:54.000Z
lib/m3u8/iso8601/__init__.py
arantius/tvheadend-locast
c34d76e663373693994be0b38ded22e51ea2a683
[ "MIT" ]
71
2020-03-25T15:49:06.000Z
2021-09-02T22:57:41.000Z
# pylama:ignore=W0401,W0611 from .iso8601 import *
17
27
0.764706
0
0
0
0
0
0
0
0
27
0.529412
4efd82d7035e7bb99b1ee82af5fcb6a562111dd9
10,225
py
Python
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
4
2021-08-19T21:41:34.000Z
2022-02-03T00:44:43.000Z
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
landia/runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
import argparse import json import logging import threading from pyinstrument import Profiler from landia.client import GameClient from landia.config import GameDef, PlayerDefinition, ServerConfig from landia.content import Content from landia.common import StateDecoder, StateEncoder from landia.registry import lo...
36.3879
203
0.696235
0
0
0
0
0
0
0
0
1,911
0.186895
4eff13c2701b38fb56a685cebe6a17525d5923cc
3,734
py
Python
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
null
null
null
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
10
2021-07-13T03:39:52.000Z
2021-07-14T05:47:20.000Z
ships.py
prime-ffxiv/primebot
7f30815d06f69bc0f61aeff6dd3a0a19f4002657
[ "MIT" ]
1
2021-07-13T03:24:15.000Z
2021-07-13T03:24:15.000Z
import io import datetime class Vehicle: def __init__(self, name, rank, max_rank=50): self.name = name self.rank = rank self.max_rank = max_rank self.voyage = None def add_voyage(self, voyage): self.voyage = voyage def delete_voyage(self): self.voyage = None ...
39.723404
103
0.594537
3,703
0.991698
0
0
0
0
0
0
466
0.124799
4eff140b6ab6cbf7d2f94869396489708d4d2a0a
10,735
py
Python
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
preql/core/pql_types.py
otherJL0/Preql
958a8dfd3a040f9c40fa394a8bfc3295f32a3019
[ "MIT" ]
null
null
null
from collections import defaultdict, deque from contextlib import suppress from dataclasses import field from datetime import datetime from decimal import Decimal from typing import Union import arrow import runtype from runtype.typesystem import TypeSystem from preql.utils import dataclass from .base import Object ...
24.453303
98
0.604844
6,223
0.579693
0
0
3,895
0.362832
0
0
1,185
0.110387
4eff47851c2ce7c0c90b9adfdf5d2fd11cd451cc
947
py
Python
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
setup.py
MichaelPHartmann/iexfinance-py
9d91002a45747a78d47d3ff364d9ebf0f11a6fba
[ "Apache-2.0" ]
null
null
null
""" Version naming has been simplified in 2.0 going forward. Production releases will be MAJOR.MINOR format. Increments to major are reserved for significant updates. Increments to minor are available for all new versions Test releases are MAJOR.MINOR.PATCH format. """ import setuptools with open("README.md", "r") as...
31.566667
79
0.706441
0
0
0
0
0
0
0
0
557
0.588173
4effb7076f666229edebecf4f4a1d44bb431565e
2,966
py
Python
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
3
2018-02-12T02:48:12.000Z
2018-08-01T10:17:09.000Z
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
null
null
null
pipeline/playground/kafkaStreamToSpark.py
shawntsai/insight-project
67b7ad25c51b0065f958ee499653c91213263cfc
[ "MIT" ]
1
2018-04-07T06:34:53.000Z
2018-04-07T06:34:53.000Z
from pyspark import SparkConf, SparkContext from pyspark.sql import Row from pyspark.sql import SparkSession from pyspark.streaming import StreamingContext from pyspark.streaming.kafka import KafkaUtils import json import sys import rethinkdb as r from generate_simulate_data import get_attributes_summary from generat...
30.265306
114
0.68004
0
0
0
0
0
0
0
0
723
0.243763
f600cdcf17d55dccc4d9b7062301ef2ddc2aa1fc
1,464
py
Python
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
null
null
null
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
7
2018-02-03T15:37:23.000Z
2018-02-05T23:47:17.000Z
julius/voice/say.py
jane-olszewska/julius
94ac7d099042c8f7dec001fe0a3b384d0c7b7710
[ "MIT" ]
null
null
null
import subprocess import itertools def dictate(parts): """Converts `parts` to valid input for mac os 'say' util.""" # todo: could feed it phrases one by one, to allow the user to pause input_string = " ".join(parts) subprocess.run(['say', '-v', 'Daniel'], stdout=subprocess.PIPE, ...
30.5
79
0.57582
0
0
0
0
0
0
0
0
919
0.627732
f60131cef6ab000250afbde867534f21183ca0ab
1,964
py
Python
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
147
2019-12-23T02:52:04.000Z
2022-03-06T16:30:43.000Z
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
4
2020-12-18T12:47:21.000Z
2021-05-21T02:18:01.000Z
pymic/util/preprocess.py
HiLab-git/PyMIC
abf5c43de43668b85f4c049c95a8f1b7cf1d9f16
[ "Apache-2.0" ]
32
2020-01-08T13:48:50.000Z
2022-03-12T06:31:13.000Z
import os import numpy as np import SimpleITK as sitk from pymic.io.image_read_write import load_image_as_nd_array from pymic.transform.trans_dict import TransformDict from pymic.util.parse_config import parse_config def get_transform_list(trans_config_file): config = parse_config(trans_config_file) transf...
37.056604
74
0.708248
0
0
0
0
0
0
0
0
366
0.186354
f601696eb01af41cfb6bfff7cab1149a7ddd141f
1,433
py
Python
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
21
2019-01-07T03:59:54.000Z
2021-12-13T10:51:54.000Z
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
407
2019-01-29T11:50:29.000Z
2022-03-24T15:09:20.000Z
universum/analyzers/pylint.py
o-andrieiev/Universum
71c9494f59dbac58a378d29eb31f8724964c8067
[ "BSD-2-Clause" ]
14
2019-01-08T07:37:13.000Z
2022-02-03T17:00:19.000Z
import argparse import json from typing import List from . import utils def pylint_argument_parser() -> argparse.ArgumentParser: parser = argparse.ArgumentParser(description="Pylint analyzer") parser.add_argument("--rcfile", dest="rcfile", type=str, help="Specify a configuration file.") utils.add_python...
33.325581
102
0.667132
0
0
0
0
384
0.267969
0
0
419
0.292394
f60211b49b4a0be6744888f8409578cc9d61668a
5,485
py
Python
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2020-08-25T03:43:07.000Z
2020-08-25T03:43:07.000Z
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
1
2019-07-08T16:57:48.000Z
2019-07-08T16:57:48.000Z
fn_jira/fn_jira/components/jira_common.py
rudimeyer/resilient-community-apps
7a46841ba41fa7a1c421d4b392b0a3ca9e36bd00
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pragma pylint: disable=unused-argument, no-self-use # (c) Copyright IBM Corp. 2010, 2019. All Rights Reserved. """ These are methods for accessing Jira. The Jira REST API is used for general access. Requirements: JIRA URL and basic authentication user/password """ import json import fn_jira....
30.642458
122
0.561531
4,796
0.874385
0
0
0
0
0
0
2,155
0.39289
f6022a0f42919a97b2c08beb7389dd3673ae9256
224
py
Python
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
null
null
null
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
null
null
null
CSCI-104/homework-resources/hw1-test/q6_input/generate_input.py
liyang990803/CSCI-103
6f84fbc242be90f7a9c3a58bdcc6f54352e4ae5a
[ "MIT" ]
1
2018-03-23T04:19:24.000Z
2018-03-23T04:19:24.000Z
import random print 10000 random.seed(a=None) for i in xrange(0,10000): length = random.randint(5,20) string = "" for j in xrange(0, length): x = random.randint(ord('a'), ord('z')) string += chr(x) print string
16
40
0.647321
0
0
0
0
0
0
0
0
8
0.035714
f6036eaf498e2f4f6785b62692e626d23ee553a9
1,075
py
Python
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
null
null
null
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
1
2019-02-07T18:11:15.000Z
2019-02-07T18:14:06.000Z
indy_common/test/auth/multi_sig/test_auth_multi_sig_for_1_owner.py
NeolithEra/indy-node
c1f5ee8643a19d84b06cbb16347df845fa60bdb0
[ "Apache-2.0" ]
null
null
null
import pytest from indy_common.authorize.auth_constraints import AuthConstraint, IDENTITY_OWNER @pytest.fixture(scope='module') def write_auth_req_validator(write_auth_req_validator, key): write_auth_req_validator.auth_cons_strategy.get_auth_constraint = lambda a: AuthConstraint(IDENTITY_OWNER, 1) return wri...
38.392857
113
0.713488
0
0
0
0
242
0.225116
0
0
41
0.03814
f6038da625ddb01ad152e78f66d06a5031c2352f
660
py
Python
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
core/management/commands/wait_for_db.py
mrdvince/dgenie
0a901409a9c547d27212e330ad4fce31dc24de83
[ "Apache-2.0" ]
null
null
null
import time from typing import Any from django.core.management import BaseCommand from django.db import connections from django.db.utils import OperationalError class Command(BaseCommand): def handle(self, *args: Any, **options: Any) -> None: self.stdout.write("Waiting for database to be ready...") ...
28.695652
83
0.648485
495
0.75
0
0
0
0
0
0
130
0.19697
f603fa533fa7372d6f36ecb1fb1141ca4cbdca2b
53
py
Python
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
1
2022-03-29T13:50:12.000Z
2022-03-29T13:50:12.000Z
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
code/answer_4-2-5.py
KoyanagiHitoshi/AtCoder-Python-Introduction
6d014e333a873f545b4d32d438e57cf428b10b96
[ "MIT" ]
null
null
null
S = input() print(S+"s" if S[-1] != "s" else S+"es")
17.666667
40
0.471698
0
0
0
0
0
0
0
0
10
0.188679
f6041d5b00d1215a7acd7846896aee7bd7b4137c
8,905
py
Python
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
1
2021-09-30T07:09:12.000Z
2021-09-30T07:09:12.000Z
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
null
null
null
park/param.py
emperorlu/park
ccbb09dca65cdc6ad7c4dd124520c97e78b411ed
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description='parameters') # -- Basic -- parser.add_argument('--seed', type=int, default=42, help='random seed (default: 42)') parser.add_argument('--eps', type=float, default=1e-6, help='epsilon (default: 1e-6)') parser.add_argum...
55.310559
104
0.640427
0
0
0
0
0
0
0
0
4,172
0.468501
f6044ea76ca13f4f72c527f9840f77894b5d9897
693
py
Python
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
computer-truevalue.py
yjnanan/Model_Free_Prediction
135762a330ce6879973f005f370c886e53491922
[ "Apache-2.0" ]
null
null
null
import numpy as np def state_value_function(p,r,v): gamma=0.9 while True: value=r.T+gamma*p*v if(value==v).all(): break v=value return v if __name__ =='__main__': #c1 c2 c3 pass pub fb sleep #probability matrix P_matrix=np.mat([[0,0,0,0,0,0,0], ...
28.875
61
0.464646
0
0
0
0
0
0
0
0
56
0.080808
f60485e76e2fa9c06d5985218438d81b933efc5e
1,372
py
Python
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
day01.py
gugeniubi/pythonjoker
1256e03d85706040480f8e14d0fd1b82067db689
[ "Apache-2.0" ]
null
null
null
#1.温度转换 # C = float (input('请输入摄氏温度:')) # F = (9 /5) * C + 32 # print('%.2f 华氏度' %F) #2.计算圆柱体的体积 #area:面积 radius:半径 volume:体积 length:高 π=3.14 #radius=float(input('请您输入圆柱体的半径:')) #length=float(input('请您输入圆柱体的高:')) #area= radius * length * 3.14 #print('圆柱体的面积为: %0.4f' %area) #volume= area * length #pri...
21.4375
56
0.567784
0
0
0
0
0
0
0
0
1,765
0.959761
f6073840233bba54bc871867d9a6348f670aaee9
22,428
py
Python
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
null
null
null
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
14
2015-12-20T16:10:44.000Z
2016-03-08T18:21:10.000Z
staticwebsync/__init__.py
staticwebsync/staticwebsync
84c5f39cdd82192e3ed24541f9208be915ffc6df
[ "MIT" ]
1
2017-02-19T01:05:40.000Z
2017-02-19T01:05:40.000Z
__all__ = ('log', 'progress_callback_factory', 'progress_callback_divisions', 'BadUserError', 'setup') import binascii import hashlib import mimetypes import mmap import os import posixpath import re import time import boto3 import botocore import termcolor log = lambda msg: None progress_callback_factory = lambda: ...
40.852459
307
0.581951
591
0.026351
0
0
0
0
0
0
5,555
0.247681
f607b3974a5c6166e58b2e10c377a1e3e486d89a
363
py
Python
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
users/models.py
AhteshamSid/Blog-Post-Django
12cfe49f9909b3f35decda396626bcd010fabc74
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from PIL import Image # Create your models here. class Profile(models.Model): user = models.OneToOneField(User,on_delete=models.CASCADE) image = models.ImageField(default='default.jpg', upload_to='profile_pics') def __str__(se...
30.25
79
0.732782
233
0.641873
0
0
0
0
0
0
54
0.14876
f6083403b4085610d0da9b036de730d7e444c995
136
py
Python
examples/hello/input_format_validators/validate.py
Tyilo/problemtools
307bcbf2c90e75db6513ee6e4daa41590d988906
[ "MIT" ]
3
2019-10-22T17:31:19.000Z
2020-07-14T17:33:58.000Z
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
null
null
null
examples/hello/input_format_validators/validate.py
godmar/problemtools
4e2b2d7797d8f15e5536a9d2b35d251476bef79c
[ "MIT" ]
3
2019-10-22T17:32:01.000Z
2020-02-26T03:43:45.000Z
#!/usr/bin/env python2 from sys import stdin import sys # There shouldn't be any input assert len(stdin.readline()) == 0 sys.exit(42)
15.111111
33
0.720588
0
0
0
0
0
0
0
0
52
0.382353
f608cd237ad400b7d70ddc6b3272e50852e00f2c
14,393
py
Python
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
src/dsa/chapter4_exercises.py
AlexMGitHub/DS-A_Python
a4770c95ef2f76917fb1d8bc8c11433828a735a3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Solutions to chapter 4 exercises. ############################################################################### # chapter4_exercises.py # # Revision: 1.00 # Date: 6/27/2021 # Author: Alex # # Purpose: Solutions to chapter 4 exercises from "Data...
33.472093
79
0.595359
0
0
0
0
0
0
0
0
8,856
0.615214
f60bbe8d92cacc0baec1190db4c4305ce847b01a
4,220
py
Python
spanish_inflections.py
mathigatti/spanish_inflections
bb5d9677edec8862aaaf4a4f7c6ad5bc4c151c50
[ "MIT" ]
null
null
null
spanish_inflections.py
mathigatti/spanish_inflections
bb5d9677edec8862aaaf4a4f7c6ad5bc4c151c50
[ "MIT" ]
null
null
null
spanish_inflections.py
mathigatti/spanish_inflections
bb5d9677edec8862aaaf4a4f7c6ad5bc4c151c50
[ "MIT" ]
null
null
null
rules_adjetive = [] with open("MM.adj.txt",'r') as f: for line in f.readlines(): rule = line.split() rules_adjetive.append({"word":rule[0], "lemma":rule[1], "code":rule[2]}) rules_noun = [] with open("MM.nom.txt",'r') as f: for line in f.readlines(): rule = line.split() rules_n...
29.929078
90
0.529384
0
0
0
0
0
0
0
0
533
0.126303
f60d57417f085366ece3370fedcd7871a28b809a
1,746
py
Python
setup.py
T-FitAndFat/toucan-connectors
7d03454e4d06f5cb2e9c2c778d99dd655efd14a7
[ "BSD-3-Clause" ]
null
null
null
setup.py
T-FitAndFat/toucan-connectors
7d03454e4d06f5cb2e9c2c778d99dd655efd14a7
[ "BSD-3-Clause" ]
null
null
null
setup.py
T-FitAndFat/toucan-connectors
7d03454e4d06f5cb2e9c2c778d99dd655efd14a7
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages auth_deps = ['oauthlib', 'requests_oauthlib'] extras_require = { 'adobe': ['adobe_analytics'], 'azure_mssql': ['pyodbc'], 'dataiku': ['dataiku-api-client'], 'elasticsearch': ['elasticsearch'], 'facebook': ['facebook-sdk'], 'google_analytics': ['google...
30.631579
69
0.627148
0
0
0
0
0
0
0
0
977
0.559565
f60db341e11a4c5477f8eb6e8054ce41e06f72fe
367
py
Python
create_tables.py
tomhyhan/final
4d01fed5d738ff435ffa6f28b2943cb365939a2f
[ "MIT" ]
null
null
null
create_tables.py
tomhyhan/final
4d01fed5d738ff435ffa6f28b2943cb365939a2f
[ "MIT" ]
null
null
null
create_tables.py
tomhyhan/final
4d01fed5d738ff435ffa6f28b2943cb365939a2f
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('bookstore.sqlite') c = conn.cursor() c.execute(''' CREATE TABLE books (id INTEGER PRIMARY KEY ASC, timestamp DATETIME NOT NULL, title VARCHAR(250), author VARCHAR(250), rating INTEGER, price REAL ...
19.315789
42
0.542234
0
0
0
0
0
0
0
0
267
0.72752
f60dc5242dc79fcf961a2da0cfd7f24d3f799fd1
1,125
py
Python
pytest_unittest_filter.py
un-def/pytest-unittest-filter
7919aff50c6b86c60d2c808c18f5e973db33f338
[ "MIT" ]
4
2018-10-26T13:17:05.000Z
2019-03-22T06:51:50.000Z
pytest_unittest_filter.py
un-def/pytest-unittest-filter
7919aff50c6b86c60d2c808c18f5e973db33f338
[ "MIT" ]
null
null
null
pytest_unittest_filter.py
un-def/pytest-unittest-filter
7919aff50c6b86c60d2c808c18f5e973db33f338
[ "MIT" ]
null
null
null
import pytest from _pytest.unittest import UnitTestCase __version__ = '0.2.1' INI_OPTION_CLASSES = 'python_unittest_classes' INI_OPTION_UNDERSCORE = 'python_unittest_exclude_underscore' def pytest_addoption(parser): parser.addini( INI_OPTION_CLASSES, type='args', default=None, ...
28.125
79
0.714667
0
0
494
0.439111
544
0.483556
0
0
213
0.189333
f60f25b9edeba5d195f1ac85237d350e8bef0818
210
py
Python
ABC/ABC134/abc134_b.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC134/abc134_b.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
ABC/ABC134/abc134_b.py
yatabis/AtCoder-in-Python3
cc2948853b549a6b8f39df5685c9e84cda81499d
[ "MIT" ]
null
null
null
# 問題URL: https://atcoder.jp/contests/abc134/tasks/abc134_b # 解答URL: https://atcoder.jp/contests/abc134/submissions/24157832 from math import ceil n, d = map(int, input().split()) print(ceil(n / (2 * d + 1)))
26.25
64
0.7
0
0
0
0
0
0
0
0
130
0.59633
f60f64227a4b588c259406487b84cb9a51b06bfb
5,058
py
Python
tests/unit/schema/wrappers/test_field.py
nsky80/gapic-generator-python
6dd7498438e87329c69a27ac57bb1693b02471d3
[ "Apache-2.0" ]
1
2019-08-15T05:41:02.000Z
2019-08-15T05:41:02.000Z
tests/unit/schema/wrappers/test_field.py
nsky80/gapic-generator-python
6dd7498438e87329c69a27ac57bb1693b02471d3
[ "Apache-2.0" ]
null
null
null
tests/unit/schema/wrappers/test_field.py
nsky80/gapic-generator-python
6dd7498438e87329c69a27ac57bb1693b02471d3
[ "Apache-2.0" ]
1
2022-01-23T12:29:11.000Z
2022-01-23T12:29:11.000Z
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.030675
79
0.720245
0
0
0
0
0
0
0
0
986
0.194939
f60fa01fcca07216f2bcd4f1876c31853730ce6d
1,151
py
Python
visual_mpc/envs/offline_env.py
Asap7772/visual_foresight
13c631dc76ca1b61d7159473b3f2207ce2a3da04
[ "MIT" ]
null
null
null
visual_mpc/envs/offline_env.py
Asap7772/visual_foresight
13c631dc76ca1b61d7159473b3f2207ce2a3da04
[ "MIT" ]
null
null
null
visual_mpc/envs/offline_env.py
Asap7772/visual_foresight
13c631dc76ca1b61d7159473b3f2207ce2a3da04
[ "MIT" ]
null
null
null
from visual_mpc.envs.base_env import BaseEnv class OfflineSawyerEnv(BaseEnv): """ Emulates a real-image Sawyer Env without access to robot, only works together with the Offline Agent! """ def __init__(self, env_params_dict, reset_state=None): self._hp = self._default_hparams() ...
23.489796
106
0.588184
1,097
0.953084
0
0
217
0.188532
0
0
249
0.216334
f60fc9552996ef7df081aa8b9626dbf47805b27b
258
py
Python
modules/test.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
null
null
null
modules/test.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
7
2019-05-09T04:17:51.000Z
2019-05-16T00:38:55.000Z
modules/test.py
Blackfoot50115/Password_Generator
2e99708fae5a3cc91702b68497e4520a558481b3
[ "MIT" ]
1
2019-05-07T12:15:55.000Z
2019-05-07T12:15:55.000Z
import unittest import Export_To_File import gen_rand_password class ExportToFileTestCase(unittest.TestCase): def test_append_file(self): pass def test_gen_rand_password(self): pass if __name__ == '__main__': unittest.main()
16.125
46
0.728682
144
0.55814
0
0
0
0
0
0
10
0.03876
f610dbac8de212129b7046e3cdbabe6471f84f1c
26
py
Python
tests/__init__.py
web2py/rocket3
ba941c3a1d5e4c8b16a22c9c5e3dd5442c1b7624
[ "BSD-3-Clause" ]
1
2021-02-11T03:48:41.000Z
2021-02-11T03:48:41.000Z
tests/__init__.py
web2py/rocket3
ba941c3a1d5e4c8b16a22c9c5e3dd5442c1b7624
[ "BSD-3-Clause" ]
1
2021-02-13T08:48:52.000Z
2021-02-13T20:00:42.000Z
tests/__init__.py
web2py/rocket3
ba941c3a1d5e4c8b16a22c9c5e3dd5442c1b7624
[ "BSD-3-Clause" ]
1
2021-02-08T20:07:48.000Z
2021-02-08T20:07:48.000Z
from . import test_rocket
13
25
0.807692
0
0
0
0
0
0
0
0
0
0
f612776e5655cc35f2ff3a2714bb44593975be1d
4,241
py
Python
src/expressivity.py
elijahc/vae
5cd80518f876d4ca9e97de2ece7c266e3df09cb7
[ "MIT" ]
null
null
null
src/expressivity.py
elijahc/vae
5cd80518f876d4ca9e97de2ece7c266e3df09cb7
[ "MIT" ]
null
null
null
src/expressivity.py
elijahc/vae
5cd80518f876d4ca9e97de2ece7c266e3df09cb7
[ "MIT" ]
null
null
null
import numpy as np # from ray.dataframe import pd # def pairwise_correlations( g_t) def euclidean_metric( g_t,delta): n_d = g_t.shape[0] v = np.gradient( g_t, delta, axis=0 ) vv = np.empty( n_d, dtype=np.float32 ) for t in np.arange( n_d ): vv[t] = np.dot( v[t], v[t].T ) return vv de...
30.510791
91
0.569441
1,332
0.314077
0
0
0
0
0
0
269
0.063428
f61497e18155583cc5132e7e990b1097f82cff06
130
py
Python
katas/kyu_7/genetic_algorithm_series_2_mutation.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/genetic_algorithm_series_2_mutation.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/genetic_algorithm_series_2_mutation.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
from random import random def mutate(chromosome, p): return ''.join((a, '01'[a == '0'])[random() <= p] for a in chromosome)
21.666667
74
0.615385
0
0
0
0
0
0
0
0
9
0.069231
f61517f627009ff7f376b1194a4e917a81ddfd11
5,243
py
Python
userbot/modules/misc.py
FS-Project/FeRuBoT
54cc12243ccbeb289ed37d691698fbd42fd8f740
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2021-01-24T20:35:11.000Z
2021-03-10T18:16:26.000Z
userbot/modules/misc.py
FS-Project/FeRuBoT
54cc12243ccbeb289ed37d691698fbd42fd8f740
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/misc.py
FS-Project/FeRuBoT
54cc12243ccbeb289ed37d691698fbd42fd8f740
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2021-03-10T18:16:25.000Z
2021-03-10T18:16:25.000Z
# INFO : ini merupakan copy source code dari repo one4ubot, dan sudah mendapatkan izin dari pemilik. # INFO : This is a copy of the source code from the One4ubot repo, and has the permission of the owner. # Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.d ...
29.789773
107
0.662026
0
0
0
0
3,248
0.618431
2,917
0.555407
2,417
0.460206
f61545386a7fef2d4116c979aa993983f37d1e73
1,291
py
Python
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
stubs/micropython-v1_13-95-pyboard/uasyncio/core.py
mattytrentini/micropython-stubs
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
[ "MIT" ]
null
null
null
""" Module: 'uasyncio.core' on pyboard 1.13.0-95 """ # MCU: (sysname='pyboard', nodename='pyboard', release='1.13.0', version='v1.13-95-g0fff2e03f on 2020-10-03', machine='PYBv1.1 with STM32F405RG') # Stubber: 1.3.4 - updated from typing import Any class CancelledError(Exception): """""" class IOQueue: """"...
17.445946
145
0.568552
1,027
0.795507
0
0
0
0
0
0
253
0.195972
f617abbd37a250768e243f67f08bb7f3f81db933
1,675
py
Python
util_scripts/test_zoom.py
ShuaiW/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
182
2016-03-15T01:51:29.000Z
2021-04-21T09:49:05.000Z
util_scripts/test_zoom.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
1
2018-06-22T16:46:12.000Z
2018-06-22T21:08:09.000Z
util_scripts/test_zoom.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
61
2016-03-15T00:58:28.000Z
2020-03-06T22:00:41.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib import animation from scipy.special import erf, erfinv import cPickle as pickle import glob import os import scipy import scipy.ndimage.interpolation #print glob.glob(os.path.expanduser("~/storage/metadata/kaggle-heart/predictions/j7_jeroen_ch.pkl")) #...
32.211538
145
0.640597
0
0
0
0
0
0
0
0
464
0.277015
f618d376cd5f990c13a8674db30dbeb3c323537c
437
py
Python
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
config/api_router.py
anhlt59/django_celery
4e3825752191067c71b25b1f932279961a6dde2a
[ "MIT" ]
null
null
null
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from django.urls import include, path from django_celery.api.users.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) app_name...
23
74
0.76659
0
0
0
0
0
0
0
0
64
0.146453
f618e484b7df2635b2d21ffd1f4a23e06f18555a
3,366
py
Python
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
src/praw_stream.py
jacobmas/docker-twitter-streamer
e24dd0ba500caae174609efbb8f2a63c6e69c511
[ "MIT" ]
null
null
null
# stdlib import os import sys import logging import json from json import JSONEncoder import praw from kinesis_producer import StdoutProducer from twitter_query_parser import TwitterSeachQuery log = logging.getLogger(__name__) class RedditException(Exception): """Invalid SubRedditException.""" ...
35.808511
154
0.639929
3,101
0.921272
0
0
0
0
0
0
711
0.21123
f618ea5cffb6353292606a5b9b153b42064483ff
3,523
py
Python
train_liner.py
ALEXKIRNAS/Toxic-Comment-Classification-Challenge
1f86d113f38c6c9eaca03ec33c6467709bf2d652
[ "MIT" ]
2
2018-04-07T19:52:09.000Z
2018-04-24T11:37:58.000Z
train_liner.py
ALEXKIRNAS/Toxic-Comment-Classification-Challenge
1f86d113f38c6c9eaca03ec33c6467709bf2d652
[ "MIT" ]
null
null
null
train_liner.py
ALEXKIRNAS/Toxic-Comment-Classification-Challenge
1f86d113f38c6c9eaca03ec33c6467709bf2d652
[ "MIT" ]
null
null
null
import concurrent.futures import click import numpy as np import pandas as pd from sklearn.metrics import roc_auc_score from sklearn.model_selection import KFold from models import NbSvmClassifier from utils.constants import RANDOM_SEED, CLASS_NAMES from utils.data_loader import tf_idf_vectors cv_params = [ ...
33.552381
91
0.640931
0
0
0
0
2,246
0.637525
0
0
258
0.073233
f61a4fbc74f3de9d25b2fc9402a7de9aab4a6bbd
15,217
py
Python
bigfish/stack/tests/test_filter.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
17
2020-03-04T10:46:37.000Z
2022-03-10T13:15:16.000Z
bigfish/stack/tests/test_filter.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
48
2020-03-16T13:39:44.000Z
2022-03-31T17:26:50.000Z
bigfish/stack/tests/test_filter.py
4DNucleome/big-fish
5512b6e3274872793ef4365a6dc423c72add91f9
[ "BSD-3-Clause" ]
15
2020-03-04T16:02:31.000Z
2022-02-17T14:11:15.000Z
# -*- coding: utf-8 -*- # Author: Arthur Imbert <arthur.imbert.pro@gmail.com> # License: BSD 3 clause """ Unitary tests for bigfish.stack.filter module. """ import pytest import numpy as np import bigfish.stack as stack from bigfish.stack.filter import _define_kernel from numpy.testing import assert_array_equal fr...
34.82151
71
0.556483
0
0
0
0
1,774
0.11658
0
0
822
0.054019
f61b4c3a467a7b980a56213bb7bb31c68ded2089
9,071
py
Python
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
Python/qos_manager.py
Deyuan/qmsim
8a34bc19c0bf614c9362e44b7170dbb3d54a9010
[ "Apache-2.0" ]
null
null
null
# QoS Manager # Managing all requests related to QoS # Author: Deyuan Guo, Chunkun Bo # Date: Dec 10, 2015 import sys import os import socket import errno import monitor_container import qos_scheduler import itf_spec import itf_database QOS_SERVER_ADDR = ('localhost', 20000) # Define a class for QoS requests class Q...
35.712598
90
0.556719
143
0.015765
0
0
0
0
0
0
2,817
0.31055
f61be4718911e196ba9094bf4af6f045bc2cf0e9
4,527
py
Python
tools/python/bluebottle_flow_reader.py
GediZhou/bluebottle-3.0
645e6cbe257ad4f65456652a50d49e5f3059564f
[ "Apache-2.0" ]
11
2018-02-20T15:58:07.000Z
2021-12-27T09:02:30.000Z
tools/python/bluebottle_flow_reader.py
groundcherry/bluebottle-2.0
7adc8782ad269f06ab0edb0111500907757bea50
[ "Apache-2.0" ]
3
2018-12-11T13:44:45.000Z
2021-03-10T15:13:38.000Z
tools/python/bluebottle_flow_reader.py
groundcherry/bluebottle-2.0
7adc8782ad269f06ab0edb0111500907757bea50
[ "Apache-2.0" ]
6
2018-09-21T11:36:22.000Z
2021-03-13T09:15:35.000Z
################################################################################ ################################## BLUEBOTTLE ################################## ################################################################################ # # Copyright 2012 - 2018 Adam Sierakowski and Daniel Willen, # ...
28.118012
80
0.608571
0
0
0
0
0
0
0
0
2,493
0.550696