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
78fc7bd4cfef4c55a9ccedee325481258419cb94
11,929
py
Python
ee/clickhouse/sql/person.py
wanderlog/posthog
a88b81d44ab31d262be07e84a85d045c4e28f2a3
[ "MIT" ]
null
null
null
ee/clickhouse/sql/person.py
wanderlog/posthog
a88b81d44ab31d262be07e84a85d045c4e28f2a3
[ "MIT" ]
null
null
null
ee/clickhouse/sql/person.py
wanderlog/posthog
a88b81d44ab31d262be07e84a85d045c4e28f2a3
[ "MIT" ]
null
null
null
from ee.clickhouse.sql.clickhouse import KAFKA_COLUMNS, STORAGE_POLICY, kafka_engine from ee.clickhouse.sql.table_engines import CollapsingMergeTree, ReplacingMergeTree from ee.kafka_client.topics import KAFKA_PERSON, KAFKA_PERSON_DISTINCT_ID, KAFKA_PERSON_UNIQUE_ID from posthog.settings import CLICKHOUSE_CLUSTER, CLIC...
28.200946
206
0.748093
0
0
0
0
0
0
0
0
7,864
0.659234
78fcfe3906cb71dfe94a77355e4db2bd1f039142
335
py
Python
scripts/dump_training_data.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
scripts/dump_training_data.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
scripts/dump_training_data.py
davmre/sigvisa
91a1f163b8f3a258dfb78d88a07f2a11da41bd04
[ "BSD-3-Clause" ]
null
null
null
from sigvisa.learn.train_coda_models import get_shape_training_data import numpy as np X, y, evids = get_shape_training_data(runid=4, site="AS12", chan="SHZ", band="freq_2.0_3.0", phases=["P",], target="amp_transfer", max_acost=np.float("inf"), min_amp=-2) np.savetxt("X.txt", X) np.savetxt("y.txt", y) np.savetxt("evid...
41.875
169
0.728358
0
0
0
0
0
0
0
0
72
0.214925
78fe8574d8b2d8646e13f689bf2f902a5d2ca204
2,637
py
Python
shdw/tools/welford.py
wbrandenburger/ShadowDetection
2a58df93e32e8baf99806555655a7daf7e68735a
[ "MIT" ]
2
2020-09-06T16:45:37.000Z
2021-04-25T15:16:20.000Z
dl_multi/utils/welford.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
null
null
null
dl_multi/utils/welford.py
wbrandenburger/MTPIA
02c773ce60b7efd5b15f270f047a6da5a8f00b7e
[ "MIT" ]
1
2020-04-30T03:08:56.000Z
2020-04-30T03:08:56.000Z
import math import numpy as np # plt.style.use('seaborn') # plt.rcParams['figure.figsize'] = (12, 8) def welford(x_array): k = 0 M = 0 S = 0 for x in x_array: k += 1 Mnext = M + (x - M) / k S = S + (x - M)*(x - Mnext) M = Mnext return (M, S/(k-1)) class Welford(...
23.972727
67
0.525597
2,328
0.882821
0
0
389
0.147516
0
0
842
0.319302
78feca6a377149a92c2667955b4f314e64f31df6
819
py
Python
day3/functions.py
lilbond/bitis
58e5eeebade6cea99fbf86fdf285721fb602e4ef
[ "MIT" ]
null
null
null
day3/functions.py
lilbond/bitis
58e5eeebade6cea99fbf86fdf285721fb602e4ef
[ "MIT" ]
null
null
null
day3/functions.py
lilbond/bitis
58e5eeebade6cea99fbf86fdf285721fb602e4ef
[ "MIT" ]
null
null
null
def greet(): print("Hi") def greet_again(message): print(message) def greet_again_with_type(message): print(type(message)) print(message) greet() greet_again("Hello Again") greet_again_with_type("One Last Time") greet_again_with_type(1234) # multiple types def multiple_types(x): if x < 0: ...
14.625
73
0.664225
0
0
0
0
0
0
0
0
180
0.21978
78ff50d0ef3b81ac606726766e87dc4af67964c3
480
py
Python
test.py
KipCrossing/Micropython-AD9833
c684f5a9543bc5b67dcbf357c50f4d8f4057b2bf
[ "MIT" ]
11
2018-12-13T23:39:18.000Z
2022-02-24T11:59:36.000Z
test.py
KipCrossing/Micropython-AD9833
c684f5a9543bc5b67dcbf357c50f4d8f4057b2bf
[ "MIT" ]
1
2019-12-02T20:54:05.000Z
2019-12-04T00:34:25.000Z
test.py
KipCrossing/Micropython-AD9833
c684f5a9543bc5b67dcbf357c50f4d8f4057b2bf
[ "MIT" ]
2
2019-05-03T10:58:36.000Z
2020-02-20T10:21:43.000Z
from ad9833 import AD9833 # DUMMY classes for testing without board class SBI(object): def __init__(self): pass def send(self, data): print(data) class Pin(object): def __init__(self): pass def low(self): print(" 0") def high(self): prin...
13.333333
41
0.566667
268
0.558333
0
0
0
0
0
0
85
0.177083
600132a2e2c79c041002d7861851e7ef109318b7
14,276
py
Python
tests/test_api_network.py
devicehive/devicehive-plugin-python-template
ad532a57ebf9ae52f12afc98eeb867380707d47d
[ "Apache-2.0" ]
null
null
null
tests/test_api_network.py
devicehive/devicehive-plugin-python-template
ad532a57ebf9ae52f12afc98eeb867380707d47d
[ "Apache-2.0" ]
1
2018-03-07T07:36:44.000Z
2018-03-07T07:36:44.000Z
tests/test_api_network.py
devicehive/devicehive-plugin-python-template
ad532a57ebf9ae52f12afc98eeb867380707d47d
[ "Apache-2.0" ]
4
2018-03-10T20:59:37.000Z
2021-10-18T23:25:30.000Z
# Copyright (C) 2018 DataArt # # 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 agreed to in writing, ...
44.061728
79
0.591202
0
0
0
0
0
0
0
0
2,747
0.192421
6001e3cd1b64684fad98768a1d1677fc7dbf592e
1,043
py
Python
filehandler.py
miciux/telegram-bot-admin
feb267ba6ce715b734b1a5911487c1080410a4a9
[ "MIT" ]
1
2017-04-30T13:12:32.000Z
2017-04-30T13:12:32.000Z
filehandler.py
miciux/telegram-bot-admin
feb267ba6ce715b734b1a5911487c1080410a4a9
[ "MIT" ]
null
null
null
filehandler.py
miciux/telegram-bot-admin
feb267ba6ce715b734b1a5911487c1080410a4a9
[ "MIT" ]
null
null
null
import logging import abstracthandler import os class FileHandler(abstracthandler.AbstractHandler): def __init__(self, conf, bot): abstracthandler.AbstractHandler.__init__(self, 'file', conf, bot) self.log = logging.getLogger(__name__) self.commands={} self.commands['list'] = self....
32.59375
92
0.637584
992
0.951103
0
0
0
0
0
0
95
0.091083
6001f3dc9b3e815ad90ab2f8d8d4027fbf828f6c
6,276
py
Python
tensorflow_federated/python/learning/federated_evaluation.py
Tensorflow-Devs/federated
5df96d42d72fa43a050df6465271a38175a5fd7a
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/federated_evaluation.py
Tensorflow-Devs/federated
5df96d42d72fa43a050df6465271a38175a5fd7a
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/learning/federated_evaluation.py
Tensorflow-Devs/federated
5df96d42d72fa43a050df6465271a38175a5fd7a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019, The TensorFlow Federated Authors. # # 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 o...
47.18797
80
0.755736
0
0
0
0
2,463
0.392447
0
0
2,607
0.415392
6002ace185388c888ba705ff8de6efa12833e498
5,226
py
Python
pylibcontainer/image.py
joaompinto/pylibcontainer
794f12e7511dc2452521bad040a7873eff40f50b
[ "Apache-2.0" ]
7
2018-05-14T14:35:29.000Z
2020-12-04T11:26:19.000Z
pylibcontainer/image.py
joaompinto/pylibcontainer
794f12e7511dc2452521bad040a7873eff40f50b
[ "Apache-2.0" ]
8
2018-05-16T17:52:09.000Z
2019-05-26T15:54:45.000Z
pylibcontainer/image.py
joaompinto/pylibcontainer
794f12e7511dc2452521bad040a7873eff40f50b
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import shutil import hashlib import requests import click from tempfile import NamedTemporaryFile from hashlib import sha256 from os.path import expanduser, join, exists, basename from .utils import HumanSize from .tar import extract_layer from . import trust from . impor...
36.291667
88
0.670876
960
0.183697
0
0
1,110
0.2124
0
0
954
0.182549
600499594e77d8bfa05380ea38ed8a59d559483e
987
py
Python
utest/test_compareimage.py
michel117/robotframework-doctestlibrary
305b220b73846bd389c47d74c2e0431c7bfaff94
[ "Apache-2.0" ]
1
2021-07-03T08:04:44.000Z
2021-07-03T08:04:44.000Z
utest/test_compareimage.py
michel117/robotframework-doctestlibrary
305b220b73846bd389c47d74c2e0431c7bfaff94
[ "Apache-2.0" ]
null
null
null
utest/test_compareimage.py
michel117/robotframework-doctestlibrary
305b220b73846bd389c47d74c2e0431c7bfaff94
[ "Apache-2.0" ]
null
null
null
from DocTest.CompareImage import CompareImage import pytest from pathlib import Path import numpy def test_single_png(testdata_dir): img = CompareImage(testdata_dir / 'text_big.png') assert len(img.opencv_images)==1 assert type(img.opencv_images)==list type(img.opencv_images[0])==numpy.ndarray def tes...
25.973684
63
0.755826
0
0
0
0
0
0
0
0
70
0.070922
60050fc2440b99d0cc01c8e1d51ae9219c2ec9ce
46
py
Python
cvstudio/view/widgets/labels_tableview/__init__.py
haruiz/PytorchCvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
32
2019-10-31T03:10:52.000Z
2020-12-23T11:50:53.000Z
cvstudio/view/widgets/labels_tableview/__init__.py
haruiz/CvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
19
2019-10-31T15:06:05.000Z
2020-06-15T02:21:55.000Z
cvstudio/view/widgets/labels_tableview/__init__.py
haruiz/PytorchCvStudio
ccf79dd0cc0d61f3fd01b1b5d96f7cda7b681eef
[ "MIT" ]
8
2019-10-31T03:32:50.000Z
2020-07-17T20:47:37.000Z
from .labels_tableview import LabelsTableView
23
45
0.891304
0
0
0
0
0
0
0
0
0
0
600533785dbd02d51d6674d42a21d63ffcb7660b
16,243
py
Python
experiments/solve_different_methods.py
vishalbelsare/ags_nlp_solver
3558e8aae5507285d0c5e74f163c01d09a9cb805
[ "MIT" ]
8
2018-10-23T11:19:26.000Z
2022-01-10T19:18:45.000Z
experiments/solve_different_methods.py
sovrasov/Algorithm-of-Global-Search
3558e8aae5507285d0c5e74f163c01d09a9cb805
[ "MIT" ]
null
null
null
experiments/solve_different_methods.py
sovrasov/Algorithm-of-Global-Search
3558e8aae5507285d0c5e74f163c01d09a9cb805
[ "MIT" ]
2
2018-10-07T20:02:40.000Z
2018-10-23T11:19:29.000Z
import functools import numpy as np import math import argparse import ags_solver import go_problems import nlopt import sys from Simple import SimpleTuner import itertools from scipy.spatial import Delaunay from scipy.optimize import differential_evolution from scipy.optimize import basinhopping from sdaopt import sda...
38.490521
134
0.623284
12,401
0.763467
0
0
0
0
0
0
1,780
0.109586
6006beb0722b92f412b4c3f2503f64cd54b33641
8,288
py
Python
src/py/fc.py
mattyschell/geodatabase-toiler
c8231999c3156bf41f9b80f151085afa97ba8586
[ "CC0-1.0" ]
null
null
null
src/py/fc.py
mattyschell/geodatabase-toiler
c8231999c3156bf41f9b80f151085afa97ba8586
[ "CC0-1.0" ]
4
2021-04-05T16:03:30.000Z
2022-03-02T21:28:06.000Z
src/py/fc.py
mattyschell/geodatabase-toiler
c8231999c3156bf41f9b80f151085afa97ba8586
[ "CC0-1.0" ]
null
null
null
import arcpy import logging import pathlib import subprocess import gdb import cx_sde class Fc(object): def __init__(self ,gdb ,name): # gdb object self.gdb = gdb # ex BUILDING self.name = name.upper() # esri tools usually expect this C:/s...
39.279621
132
0.532939
8,196
0.9889
0
0
0
0
0
0
3,289
0.396839
60072c1b66f06352dd6eb1cdc5675eed8c8c537e
602
py
Python
desafiosCursoEmVideo/ex004.py
gomesGabriel/Pythonicos
b491cefbb0479dd83fee267304d0fa30b99786a5
[ "MIT" ]
1
2019-09-02T12:14:58.000Z
2019-09-02T12:14:58.000Z
desafiosCursoEmVideo/ex004.py
gomesGabriel/Pythonicos
b491cefbb0479dd83fee267304d0fa30b99786a5
[ "MIT" ]
null
null
null
desafiosCursoEmVideo/ex004.py
gomesGabriel/Pythonicos
b491cefbb0479dd83fee267304d0fa30b99786a5
[ "MIT" ]
null
null
null
n = input('Digite algo: ') print('O tipo primitivo da variável é: ', type(n)) print('O que foi digitado é alfa numérico? ', n.isalnum()) print('O que foi digitado é alfabético? ', n.isalpha()) print('O que foi digitado é um decimal? ', n.isdecimal()) print('O que foi digitado é minúsculo? ', n.islower()) print('O que f...
50.166667
64
0.694352
0
0
0
0
0
0
0
0
392
0.634304
60072f56e1c7453c15f0f4342de268f2dd1b42f7
640
py
Python
Machine learning book/3 - MultiLayer Perceptron/test_regression.py
dalmia/Lisa-Lab-Tutorials
ee1b0b4fcb82914085420bb289ebda09f248c8d1
[ "MIT" ]
25
2017-01-14T08:17:23.000Z
2022-02-26T13:53:17.000Z
Machine learning book/3 - MultiLayer Perceptron/test_regression.py
dalmia/Lisa-Lab-Tutorials
ee1b0b4fcb82914085420bb289ebda09f248c8d1
[ "MIT" ]
1
2020-06-20T02:49:16.000Z
2020-06-20T02:49:16.000Z
Machine learning book/3 - MultiLayer Perceptron/test_regression.py
dalmia/Lisa-Lab-Tutorials
ee1b0b4fcb82914085420bb289ebda09f248c8d1
[ "MIT" ]
6
2017-08-24T08:40:41.000Z
2020-03-17T00:01:56.000Z
from numpy import * import numpy as np import matplotlib.pyplot as plt from mlp import mlp x = ones((1, 40)) * linspace(0, 1, 40) t = sin(2 * pi * x) + cos(2 * pi * x) + np.random.randn(40) * 0.2 x = transpose(x) t = transpose(t) n_hidden = 3 eta = 0.25 n_iterations = 101 plt.plot(x, t, '.') plt.show() train = x[0:...
21.333333
77
0.65
0
0
0
0
0
0
0
0
11
0.017188
6007f9657a1d3a19cb045cca61bc7716d4f2e22f
144
py
Python
gomoku/networks/__init__.py
IllIIIllll/reinforcement-learning-omok
1c76ba76c203a3b7c99095fde0626aff45b1b94b
[ "Apache-2.0" ]
1
2020-07-07T14:41:35.000Z
2020-07-07T14:41:35.000Z
gomoku/networks/__init__.py
IllIIIllll/reinforcement-learning-omok
1c76ba76c203a3b7c99095fde0626aff45b1b94b
[ "Apache-2.0" ]
1
2020-08-27T08:22:03.000Z
2020-08-27T08:22:03.000Z
gomoku/networks/__init__.py
IllIIIllll/gomoku
1c76ba76c203a3b7c99095fde0626aff45b1b94b
[ "Apache-2.0" ]
null
null
null
# © 2020 지성. all rights reserved. # <llllllllll@kakao.com> # Apache License 2.0 from .small import * from .medium import * from .large import *
20.571429
33
0.708333
0
0
0
0
0
0
0
0
82
0.550336
60099617ee434da572759077c7ea7be632ca1953
2,020
py
Python
alipay/aop/api/domain/AlipayEbppInvoiceAuthSignModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2022-03-07T06:11:10.000Z
2022-03-07T06:11:10.000Z
alipay/aop/api/domain/AlipayEbppInvoiceAuthSignModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayEbppInvoiceAuthSignModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
1
2021-10-05T03:01:09.000Z
2021-10-05T03:01:09.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEbppInvoiceAuthSignModel(object): def __init__(self): self._authorization_type = None self._m_short_name = None self._user_id = None @property def authoriza...
28.450704
87
0.614851
1,903
0.942079
0
0
874
0.432673
0
0
264
0.130693
6009cc193c9712b5bd11ff6e9909ef949c64bd53
12,219
py
Python
sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py
jmcshane/experimental
3c47c7e87bcdadc6172941169f3f24fc3f159ae0
[ "Apache-2.0" ]
null
null
null
sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py
jmcshane/experimental
3c47c7e87bcdadc6172941169f3f24fc3f159ae0
[ "Apache-2.0" ]
null
null
null
sdk/python/tekton_pipeline/models/v1beta1_embedded_task.py
jmcshane/experimental
3c47c7e87bcdadc6172941169f3f24fc3f159ae0
[ "Apache-2.0" ]
1
2020-07-30T15:55:45.000Z
2020-07-30T15:55:45.000Z
# Copyright 2020 The Tekton Authors # # 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 agreed to in wr...
31.903394
222
0.628857
11,354
0.929209
0
0
6,968
0.570259
0
0
7,281
0.595875
6009fd2ff57dced5db01fbc3398709e54f5b6bf1
3,122
py
Python
tzp.py
gmlunesa/zhat
3bf62625d102bd40274fcd39c91f21c169e334a8
[ "MIT" ]
1
2018-06-14T04:00:43.000Z
2018-06-14T04:00:43.000Z
tzp.py
gmlunesa/zhat
3bf62625d102bd40274fcd39c91f21c169e334a8
[ "MIT" ]
null
null
null
tzp.py
gmlunesa/zhat
3bf62625d102bd40274fcd39c91f21c169e334a8
[ "MIT" ]
1
2020-11-01T13:06:56.000Z
2020-11-01T13:06:56.000Z
import zmq import curses import argparse import configparser import threading import time from curses import wrapper from client import Client from ui import UI def parse_args(): parser = argparse.ArgumentParser(description='Client for teezeepee') # Please specify your username parser.add_argument('use...
26.235294
99
0.65663
0
0
0
0
0
0
0
0
326
0.10442
600a51b33a2bb56f14ea62360d44dde1324b6215
1,968
py
Python
anonlink-entity-service/backend/entityservice/tasks/solver.py
Sam-Gresh/linkage-agent-tools
f405c7efe3fa82d99bc047f130c0fac6f3f5bf82
[ "Apache-2.0" ]
1
2020-05-19T07:29:31.000Z
2020-05-19T07:29:31.000Z
backend/entityservice/tasks/solver.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
backend/entityservice/tasks/solver.py
hardbyte/anonlink-entity-service
3c1815473bc8169ca571532c18e0913a45c704de
[ "Apache-2.0" ]
null
null
null
import anonlink from anonlink.candidate_generation import _merge_similarities from entityservice.object_store import connect_to_object_store from entityservice.async_worker import celery, logger from entityservice.settings import Config as config from entityservice.tasks.base_task import TracedTask from entityservice....
48
117
0.760163
0
0
0
0
1,603
0.814533
0
0
459
0.233232
600ca7297733fdb91cfe20784d6ed193a6eb6593
3,239
py
Python
portal/migrations/0007_auto_20170824_1341.py
nickmvincent/ugc-val-est
b5cceda14ef5830f1befaddfccfd90a694c9677a
[ "MIT" ]
2
2019-11-13T19:56:05.000Z
2020-09-05T03:21:14.000Z
portal/migrations/0007_auto_20170824_1341.py
nickmvincent/ugc-val-est
b5cceda14ef5830f1befaddfccfd90a694c9677a
[ "MIT" ]
6
2018-03-02T16:49:20.000Z
2021-06-10T18:55:02.000Z
portal/migrations/0007_auto_20170824_1341.py
nickmvincent/ugc-val-est
b5cceda14ef5830f1befaddfccfd90a694c9677a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-24 13:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('portal', '0006_auto_20170824_0950'), ] operations = [ migrations.AddField( ...
33.739583
76
0.592467
3,081
0.95122
0
0
0
0
0
0
800
0.24699
600de579e9f074f3a42976d366b7423013a654a6
5,270
py
Python
exercise-09/programming_assignment/hopfield.py
AleRiccardi/technical-neural-network-course
bfcca623a9dc3f7f4c20e1efe39abe986cd8869e
[ "Apache-2.0" ]
null
null
null
exercise-09/programming_assignment/hopfield.py
AleRiccardi/technical-neural-network-course
bfcca623a9dc3f7f4c20e1efe39abe986cd8869e
[ "Apache-2.0" ]
null
null
null
exercise-09/programming_assignment/hopfield.py
AleRiccardi/technical-neural-network-course
bfcca623a9dc3f7f4c20e1efe39abe986cd8869e
[ "Apache-2.0" ]
null
null
null
import numpy as np import random letter_C = np.array([ [1, 1, 1, 1, 1], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 1, 1, 1, 1], ]) noisy_C = np.array([ [1, 1, 1, 1, 1], [0, 1, 0, 0, 1], [1, 0, 0, 0, 0], [1, 0, 0, 1, 0], [1, 0, 1, 1, 1], ]) letter_I = np.array([ ...
27.164948
99
0.493548
2,929
0.555787
0
0
0
0
0
0
442
0.083871
600fae89534379bad1faa45aa725f0ecd7646d79
142
py
Python
util/infoclient/test_infoclient.py
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
7
2015-02-10T17:00:49.000Z
2021-07-27T22:09:43.000Z
util/infoclient/test_infoclient.py
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
11
2015-02-22T19:15:53.000Z
2021-08-04T17:26:18.000Z
util/infoclient/test_infoclient.py
cdla/murfi2
45dba5eb90e7f573f01706a50e584265f0f8ffa7
[ "Apache-2.0" ]
8
2015-07-06T22:31:51.000Z
2019-04-22T21:22:07.000Z
from infoclientLib import InfoClient ic = InfoClient('localhost', 15002, 'localhost', 15003) ic.add('roi-weightedave', 'active') ic.start()
20.285714
55
0.739437
0
0
0
0
0
0
0
0
47
0.330986
60108a3d3357ef01dab42a6e413205a5ad651ed5
13,095
py
Python
lrtc_lib/experiment_runners/experiment_runner.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
57
2020-11-18T15:13:06.000Z
2022-03-28T22:33:26.000Z
lrtc_lib/experiment_runners/experiment_runner.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
5
2021-02-23T22:11:07.000Z
2021-12-13T00:13:48.000Z
lrtc_lib/experiment_runners/experiment_runner.py
MovestaDev/low-resource-text-classification-framework
4380755a65b35265e84ecbf4b87e872d79e8f079
[ "Apache-2.0" ]
14
2021-02-10T08:55:27.000Z
2022-02-23T22:37:54.000Z
# (c) Copyright IBM Corporation 2020. # LICENSE: Apache License 2.0 (Apache-2.0) # http://www.apache.org/licenses/LICENSE-2.0 import abc import logging import time from collections import defaultdict from typing import List import numpy as np from dataclasses import dataclass logging.basicConfig(level=logging.INFO,...
52.590361
136
0.72333
10,860
0.829324
0
0
2,048
0.156396
0
0
3,040
0.23215
6011674256a1e396b16faca45277694f253b2c3f
909
py
Python
contrast/environment/data.py
alexbjorling/acquisition-framework
4090381344aabca05155612845ba4e4a47455dc3
[ "MIT" ]
null
null
null
contrast/environment/data.py
alexbjorling/acquisition-framework
4090381344aabca05155612845ba4e4a47455dc3
[ "MIT" ]
2
2018-09-19T06:49:03.000Z
2019-06-28T10:47:37.000Z
contrast/environment/data.py
alexbjorling/acquisition-framework
4090381344aabca05155612845ba4e4a47455dc3
[ "MIT" ]
null
null
null
try: from tango import DeviceProxy, DevError except ModuleNotFoundError: pass class PathFixer(object): """ Basic pathfixer which takes a path manually. """ def __init__(self): self.directory = None class SdmPathFixer(object): """ MAX IV pathfixer which takes a path from a Tan...
25.25
79
0.581958
817
0.89879
0
0
431
0.474147
0
0
229
0.251925
60121c6217810f4a6299e69b2f99282f9e977749
1,504
py
Python
game_2048/views.py
fung04/csrw_game
9673fdd311583057d5bf756dec7b99959d961d0c
[ "MIT" ]
null
null
null
game_2048/views.py
fung04/csrw_game
9673fdd311583057d5bf756dec7b99959d961d0c
[ "MIT" ]
null
null
null
game_2048/views.py
fung04/csrw_game
9673fdd311583057d5bf756dec7b99959d961d0c
[ "MIT" ]
null
null
null
import json from django.contrib.auth.models import User from django.http import JsonResponse from django.shortcuts import redirect, render from .models import Game2048 # Create your views here. # test_user # 8!S#5RP!WVMACg def game(request): return render(request, 'game_2048/index.html') def set_result(req...
27.851852
84
0.672207
0
0
0
0
0
0
0
0
419
0.27859
60125a0886f4a69344f97e125b44faf6103792e1
319
py
Python
distdeepq/__init__.py
Silvicek/distributional-dqn
41a9095393dd25b7375119b4af7d2c35ee3ec6cc
[ "MIT" ]
131
2017-09-16T02:06:44.000Z
2022-03-23T08:09:56.000Z
distdeepq/__init__.py
Silvicek/distributional-dqn
41a9095393dd25b7375119b4af7d2c35ee3ec6cc
[ "MIT" ]
6
2017-10-26T09:36:00.000Z
2019-03-15T06:23:17.000Z
distdeepq/__init__.py
Silvicek/distributional-dqn
41a9095393dd25b7375119b4af7d2c35ee3ec6cc
[ "MIT" ]
29
2017-09-16T02:30:27.000Z
2020-04-12T03:12:39.000Z
from distdeepq import models # noqa from distdeepq.build_graph import build_act, build_train # noqa from distdeepq.simple import learn, load, make_session # noqa from distdeepq.replay_buffer import ReplayBuffer, PrioritizedReplayBuffer # noqa from distdeepq.static import * from distdeepq.plots import PlotMachine
39.875
81
0.827586
0
0
0
0
0
0
0
0
24
0.075235
6012d662e5b654522d75f6dba733bb788998a6c0
812
py
Python
python/10.Authentication-&-API-Keys.py
17nikhil/codecademy
58fbd652691c9df8139544965ebb0e9748142538
[ "Apache-2.0" ]
null
null
null
python/10.Authentication-&-API-Keys.py
17nikhil/codecademy
58fbd652691c9df8139544965ebb0e9748142538
[ "Apache-2.0" ]
null
null
null
python/10.Authentication-&-API-Keys.py
17nikhil/codecademy
58fbd652691c9df8139544965ebb0e9748142538
[ "Apache-2.0" ]
1
2018-10-03T14:36:31.000Z
2018-10-03T14:36:31.000Z
# Authentication & API Keys # Many APIs require an API key. Just as a real-world key allows you to access something, an API key grants you access to a particular API. Moreover, an API key identifies you to the API, which helps the API provider keep track of how their service is used and prevent unauthorized or maliciou...
81.2
303
0.777094
0
0
0
0
0
0
0
0
793
0.976601
601367658aacd910181efee0a2e8d64036a1544b
111
py
Python
plucker/__init__.py
takkaria/json-plucker
6407dcc9a21d99d8f138128e9ee80c901a08c2e1
[ "MIT" ]
null
null
null
plucker/__init__.py
takkaria/json-plucker
6407dcc9a21d99d8f138128e9ee80c901a08c2e1
[ "MIT" ]
1
2021-03-09T20:57:15.000Z
2021-03-09T20:57:15.000Z
plucker/__init__.py
takkaria/plucker-python
6407dcc9a21d99d8f138128e9ee80c901a08c2e1
[ "MIT" ]
null
null
null
from .plucker import pluck, Path from .exceptions import PluckError __all__ = ["pluck", "Path", "PluckError"]
22.2
41
0.738739
0
0
0
0
0
0
0
0
25
0.225225
6013883d7068c2a00e5b4b40942f112984e3413c
7,417
py
Python
arviz/plots/pairplot.py
gimbo/arviz
c1df1847aa5170ad2810ae3d705d576d2643e3ec
[ "Apache-2.0" ]
null
null
null
arviz/plots/pairplot.py
gimbo/arviz
c1df1847aa5170ad2810ae3d705d576d2643e3ec
[ "Apache-2.0" ]
null
null
null
arviz/plots/pairplot.py
gimbo/arviz
c1df1847aa5170ad2810ae3d705d576d2643e3ec
[ "Apache-2.0" ]
null
null
null
"""Plot a scatter or hexbin of sampled parameters.""" import warnings import numpy as np from ..data import convert_to_dataset, convert_to_inference_data from .plot_utils import xarray_to_ndarray, get_coords, get_plotting_function from ..utils import _var_names def plot_pair( data, group="posterior", var...
33.40991
99
0.62559
0
0
0
0
0
0
0
0
4,305
0.580423
60140da7c5e11ee07c450ac06ede300441a124ba
542
py
Python
cuestionario/formularios.py
LisandroCanteros/Grupo2_COM06_Info2021
86ad9e08db4e8935bf397b6e4db0b3d9d72cb320
[ "MIT" ]
null
null
null
cuestionario/formularios.py
LisandroCanteros/Grupo2_COM06_Info2021
86ad9e08db4e8935bf397b6e4db0b3d9d72cb320
[ "MIT" ]
null
null
null
cuestionario/formularios.py
LisandroCanteros/Grupo2_COM06_Info2021
86ad9e08db4e8935bf397b6e4db0b3d9d72cb320
[ "MIT" ]
1
2021-09-05T23:29:56.000Z
2021-09-05T23:29:56.000Z
from django.forms import ModelForm from .models import Cuestionario, Categoria from preguntas.models import Pregunta, Respuesta class CuestionarioForm(ModelForm): class Meta: model = Cuestionario fields = '__all__' class PreguntaForm(ModelForm): class Meta: model = Pregunta fi...
20.846154
48
0.673432
404
0.745387
0
0
0
0
0
0
36
0.066421
6015330e90658ef9cb434f3116ddc5c99e3f87e7
6,403
py
Python
vitcloud/views.py
biocross/VITCloud
9656bd489c6d05717bf529d0661e07da0cd2551a
[ "MIT" ]
2
2016-10-09T09:16:39.000Z
2017-12-30T10:04:24.000Z
vitcloud/views.py
biocross/VITCloud
9656bd489c6d05717bf529d0661e07da0cd2551a
[ "MIT" ]
1
2015-03-28T12:10:24.000Z
2015-03-28T19:19:00.000Z
vitcloud/views.py
biocross/VITCloud
9656bd489c6d05717bf529d0661e07da0cd2551a
[ "MIT" ]
null
null
null
from django.views.generic import View from django.http import HttpResponse import os, json, datetime from django.shortcuts import redirect from django.shortcuts import render_to_response from vitcloud.models import File from django.views.decorators.csrf import csrf_exempt from listingapikeys import findResult import sy...
37.444444
215
0.629705
41
0.006403
0
0
1,126
0.175855
0
0
1,028
0.16055
6015c9596e351a0acc5020ff9d107cce20445519
406
py
Python
blurple/ui/base.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
4
2021-06-30T19:58:59.000Z
2021-07-27T13:43:49.000Z
blurple/ui/base.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
2
2021-07-10T16:08:25.000Z
2021-07-12T02:15:40.000Z
blurple/ui/base.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
3
2021-07-08T03:00:40.000Z
2021-09-08T19:57:50.000Z
from abc import ABC import discord class Base(discord.Embed, ABC): async def send(self, client: discord.abc.Messageable): """ Send the component as a message in discord. :param client: The client used, usually a :class:`discord.abc.Messageable`. Must have implemented :func:`.send` :retur...
29
119
0.669951
368
0.906404
0
0
0
0
331
0.815271
223
0.549261
601651a2b4d6d062db448e75989e40e985eb13df
1,661
py
Python
migrations/versions/e86dd3bc539c_change_admin_to_boolean.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
migrations/versions/e86dd3bc539c_change_admin_to_boolean.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
null
null
null
migrations/versions/e86dd3bc539c_change_admin_to_boolean.py
jonzxz/project-piscator
588c8b1ac9355f9a82ac449fdbeaa1ef7eb441ef
[ "MIT" ]
1
2021-02-18T03:08:21.000Z
2021-02-18T03:08:21.000Z
"""change admin to boolean Revision ID: e86dd3bc539c Revises: 6f63ef516cdc Create Date: 2020-11-11 22:32:00.707936 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'e86dd3bc539c' down_revision = '6f63ef516cdc' branch_labels = None depends_on = None def upgrade...
38.627907
102
0.712222
0
0
0
0
0
0
0
0
792
0.476821
601677ed1a2084da8bff806075ddd7b027330006
388
py
Python
school/migrations/0010_alter_sala_unique_together.py
adrianomqsmts/django-escola
a69541bceb3f30bdd2e9f0f41aa9c2da6081a1d1
[ "MIT" ]
null
null
null
school/migrations/0010_alter_sala_unique_together.py
adrianomqsmts/django-escola
a69541bceb3f30bdd2e9f0f41aa9c2da6081a1d1
[ "MIT" ]
null
null
null
school/migrations/0010_alter_sala_unique_together.py
adrianomqsmts/django-escola
a69541bceb3f30bdd2e9f0f41aa9c2da6081a1d1
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-16 03:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('school', '0009_rename_periodo_semestre_alter_semestre_options_and_more'), ] operations = [ migrations.AlterUniqueTogether( name='sala', ...
21.555556
83
0.634021
303
0.780928
0
0
0
0
0
0
138
0.35567
6017b0c984f5c9581d7b67c9fd000d7881af64dd
637
py
Python
code_trunk/trainer/abc.py
chris4540/DD2430-ds-proj
b876efabe949392b27a7ebd4afb2be623174e287
[ "MIT" ]
null
null
null
code_trunk/trainer/abc.py
chris4540/DD2430-ds-proj
b876efabe949392b27a7ebd4afb2be623174e287
[ "MIT" ]
null
null
null
code_trunk/trainer/abc.py
chris4540/DD2430-ds-proj
b876efabe949392b27a7ebd4afb2be623174e287
[ "MIT" ]
null
null
null
""" Abstract training class """ from abc import ABC as AbstractBaseClass from abc import abstractmethod class AdstractTrainer(AbstractBaseClass): @abstractmethod def run(self): pass @abstractmethod def prepare_data_loaders(self): """ For preparing data loaders and save them a...
19.30303
71
0.616954
530
0.832025
0
0
465
0.729984
0
0
244
0.383046
601874835949dbb0ebb74e3019f720313e38011d
2,763
py
Python
quadpy/triangle/cools_haegemans.py
melvyniandrag/quadpy
ae28fc17351be8e76909033f03d71776c7ef8280
[ "MIT" ]
1
2019-01-02T19:04:42.000Z
2019-01-02T19:04:42.000Z
quadpy/triangle/cools_haegemans.py
melvyniandrag/quadpy
ae28fc17351be8e76909033f03d71776c7ef8280
[ "MIT" ]
null
null
null
quadpy/triangle/cools_haegemans.py
melvyniandrag/quadpy
ae28fc17351be8e76909033f03d71776c7ef8280
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # from mpmath import mp from .helpers import untangle2 class CoolsHaegemans(object): """ R. Cools, A. Haegemans, Construction of minimal cubature formulae for the square and the triangle using invariant theory, Department of Computer Science, K.U.Leuven, TW Reports vol...
38.375
108
0.534202
2,680
0.96996
0
0
0
0
0
0
1,589
0.5751
601c017654bfba5b4012ac4932fefa02ad294c7b
912
py
Python
account/admin.py
RichardLeeH/invoce_sys
42a6f5750f45b25e0d7282114ccb7f9f72ee1761
[ "Apache-2.0" ]
null
null
null
account/admin.py
RichardLeeH/invoce_sys
42a6f5750f45b25e0d7282114ccb7f9f72ee1761
[ "Apache-2.0" ]
null
null
null
account/admin.py
RichardLeeH/invoce_sys
42a6f5750f45b25e0d7282114ccb7f9f72ee1761
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from account.models import Profile admin.site.site_header = 'invoce' class T...
24
71
0.718202
455
0.496725
0
0
0
0
0
0
130
0.141921
601c3263a4fb21497920c0fe4c9459fa3c4066b9
844
py
Python
oops/#016exceptions.py
krishankansal/PythonPrograms
6d4d989068195b8c8dd9d71cf4f920fef1177cf2
[ "MIT" ]
null
null
null
oops/#016exceptions.py
krishankansal/PythonPrograms
6d4d989068195b8c8dd9d71cf4f920fef1177cf2
[ "MIT" ]
null
null
null
oops/#016exceptions.py
krishankansal/PythonPrograms
6d4d989068195b8c8dd9d71cf4f920fef1177cf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 18 08:40:11 2020 @author: krishan """ def funny_division2(anumber): try: if anumber == 13: raise ValueError("13 is an unlucky number") return 100 / anumber except (ZeroDivisionError, TypeError): return "E...
24.823529
55
0.609005
0
0
0
0
0
0
0
0
305
0.361374
601c880be1287d7f4ecd5a8ee1ee870db121bb75
4,129
py
Python
config/simclr_config.py
denn-s/SimCLR
e2239ac52464b1271c3b8ad1ec4eb26f3b73c7d4
[ "MIT" ]
5
2020-08-24T17:57:51.000Z
2021-06-06T18:18:19.000Z
config/simclr_config.py
denn-s/SimCLR
e2239ac52464b1271c3b8ad1ec4eb26f3b73c7d4
[ "MIT" ]
null
null
null
config/simclr_config.py
denn-s/SimCLR
e2239ac52464b1271c3b8ad1ec4eb26f3b73c7d4
[ "MIT" ]
1
2020-08-29T00:35:36.000Z
2020-08-29T00:35:36.000Z
import os from datetime import datetime import torch from dataclasses import dataclass class SimCLRConfig: @dataclass() class Base: output_dir_path: str log_dir_path: str log_file_path: str device: object num_gpu: int logger_name: str @dataclass() clas...
28.475862
113
0.601356
4,038
0.977961
0
0
2,227
0.539356
0
0
894
0.216517
601cd7cd07ee2ea23d637edb23a7aada960db1af
47,259
py
Python
test/unit/common/middleware/s3api/test_obj.py
Priyanka-Askani/swift
1ab691f63778008015b34ce004992844acee9968
[ "Apache-2.0" ]
1
2019-05-25T10:55:58.000Z
2019-05-25T10:55:58.000Z
test/unit/common/middleware/s3api/test_obj.py
Priyanka-Askani/swift
1ab691f63778008015b34ce004992844acee9968
[ "Apache-2.0" ]
12
2015-06-23T23:20:17.000Z
2016-01-27T00:37:12.000Z
test/unit/common/middleware/s3api/test_obj.py
Priyanka-Askani/swift
1ab691f63778008015b34ce004992844acee9968
[ "Apache-2.0" ]
5
2015-06-04T19:00:11.000Z
2015-12-16T21:04:33.000Z
# Copyright (c) 2014 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 or agreed to ...
46.744807
79
0.578874
45,468
0.962102
0
0
33,916
0.717662
0
0
11,558
0.244567
601e1228f0fc5110925548eceed16ee0fac450d1
3,654
py
Python
pynyzo/pynyzo/keyutil.py
EggPool/pynyzo
7f3b86f15caa51a975e6a428f4dff578a1f24bcb
[ "MIT" ]
6
2019-02-09T02:46:18.000Z
2021-03-29T04:15:15.000Z
pynyzo/pynyzo/keyutil.py
EggPool/pynyzo
7f3b86f15caa51a975e6a428f4dff578a1f24bcb
[ "MIT" ]
1
2020-05-17T18:29:20.000Z
2020-05-18T08:31:33.000Z
pynyzo/pynyzo/keyutil.py
EggPool/pynyzo
7f3b86f15caa51a975e6a428f4dff578a1f24bcb
[ "MIT" ]
5
2019-02-09T02:46:19.000Z
2021-01-08T06:49:50.000Z
""" Eddsa Ed25519 key handling From https://github.com/n-y-z-o/nyzoVerifier/blob/b73bc25ba3094abe3470ec070ce306885ad9a18f/src/main/java/co/nyzo/verifier/KeyUtil.java plus https://github.com/n-y-z-o/nyzoVerifier/blob/17509f03a7f530c0431ce85377db9b35688c078e/src/main/java/co/nyzo/verifier/util/SignatureUtil.java """ # ...
38.463158
179
0.678982
3,069
0.839901
0
0
3,006
0.82266
0
0
1,217
0.33306
601e563b0639154915d91614f293088729954120
6,729
py
Python
mldftdat/scripts/train_gp.py
mir-group/CiderPress
bf2b3536e6bd7432645c18dce5a745d63bc9df59
[ "MIT" ]
10
2021-09-09T06:51:57.000Z
2021-12-17T09:48:41.000Z
mldftdat/scripts/train_gp.py
mir-group/CiderPress
bf2b3536e6bd7432645c18dce5a745d63bc9df59
[ "MIT" ]
null
null
null
mldftdat/scripts/train_gp.py
mir-group/CiderPress
bf2b3536e6bd7432645c18dce5a745d63bc9df59
[ "MIT" ]
null
null
null
from argparse import ArgumentParser import os import numpy as np from joblib import dump from mldftdat.workflow_utils import SAVE_ROOT from mldftdat.models.gp import * from mldftdat.data import load_descriptors, filter_descriptors import yaml def parse_settings(args): fname = args.datasets_list[0] if args.suff...
43.412903
141
0.622975
0
0
0
0
0
0
0
0
1,725
0.256353
601f1b72f2f10dacace33b87801d53b05bfc4ed8
5,684
py
Python
picoCTF-web/api/routes/admin.py
zaratec/picoCTF
b0a63f03625bb4657a8116f43bea26346ca6f010
[ "MIT" ]
null
null
null
picoCTF-web/api/routes/admin.py
zaratec/picoCTF
b0a63f03625bb4657a8116f43bea26346ca6f010
[ "MIT" ]
null
null
null
picoCTF-web/api/routes/admin.py
zaratec/picoCTF
b0a63f03625bb4657a8116f43bea26346ca6f010
[ "MIT" ]
null
null
null
import api import bson from api.annotations import ( api_wrapper, log_action, require_admin, require_login, require_teacher ) from api.common import WebError, WebSuccess from flask import ( Blueprint, Flask, render_template, request, send_from_directory, session ) blueprint ...
29.450777
106
0.714814
0
0
0
0
5,298
0.93209
0
0
1,201
0.211295
601f307a31ada0a1b790c747cfc5310721f08839
724
py
Python
python code/influxdb_worker.py
thongnbui/MIDS_251_project
8eee0f4569268e11c2d1d356024dbdc10f180b10
[ "Apache-2.0" ]
null
null
null
python code/influxdb_worker.py
thongnbui/MIDS_251_project
8eee0f4569268e11c2d1d356024dbdc10f180b10
[ "Apache-2.0" ]
null
null
null
python code/influxdb_worker.py
thongnbui/MIDS_251_project
8eee0f4569268e11c2d1d356024dbdc10f180b10
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import json import argparse from influxdb import InfluxDBClient parser = argparse.ArgumentParser(description = 'pull data for softlayer queue' ) parser.add_argument( 'measurement' , help = 'measurement001' ) args = parser.parse_args() client_influxdb = InfluxDBClient('50.23.117.76', '8086', 'crick...
34.47619
149
0.705801
0
0
0
0
0
0
0
0
268
0.370166
6021d213fcca1b9fd94f8cf2d534f74eefae66dc
3,522
py
Python
src/python/pants/backend/docker/lint/hadolint/subsystem.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/docker/lint/hadolint/subsystem.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
28
2021-12-27T15:53:46.000Z
2022-03-23T11:01:42.000Z
src/python/pants/backend/docker/lint/hadolint/subsystem.py
riisi/pants
b33327389fab67c47b919710ea32f20ca284b1a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from typing import cast from pants.core.util_rules.config_files import ConfigFilesRequest from pants.core.util_rules.external_tool import TemplatedExte...
35.938776
122
0.615559
3,129
0.888416
0
0
1,714
0.486655
0
0
1,576
0.447473
60226c7d97ac7aadd65011be5f070784ee3088d9
8,504
py
Python
venv/lib/python3.9/site-packages/biorun/fetch.py
LucaCilibrasi/docker_viruclust
88149c17fd4b94a54397d0cb4a9daece00122c49
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/biorun/fetch.py
LucaCilibrasi/docker_viruclust
88149c17fd4b94a54397d0cb4a9daece00122c49
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.9/site-packages/biorun/fetch.py
LucaCilibrasi/docker_viruclust
88149c17fd4b94a54397d0cb4a9daece00122c49
[ "Apache-2.0" ]
null
null
null
""" Handles functionality related to data storege. """ import sys, os, glob, re, gzip, json from biorun import const, utils, objects, ncbi from biorun.models import jsonrec import biorun.libs.placlib as plac # Module level logger. logger = utils.logger # A nicer error message on incorrect installation. try: from ...
28.441472
94
0.61477
0
0
0
0
1,666
0.195908
0
0
2,824
0.332079
6022c4c8c548f73dbd95a825913c8b4639f2e4dc
1,049
py
Python
game/items/game_item.py
LaverdeS/Genetic_Algorithm_EGame
89ff8c7870fa90768f4616cab6803227c8613396
[ "MIT" ]
2
2019-07-02T15:20:46.000Z
2020-03-04T13:31:12.000Z
game/items/game_item.py
shivaa511/EGame
6db10cb5cf7431093d2ab09a9e4049d6633fe792
[ "MIT" ]
2
2019-07-16T16:50:19.000Z
2020-03-04T12:52:45.000Z
game/items/game_item.py
shivaa511/EGame
6db10cb5cf7431093d2ab09a9e4049d6633fe792
[ "MIT" ]
8
2018-06-06T15:14:48.000Z
2018-07-08T11:46:10.000Z
import numpy as np from random import randint from PyQt5.QtGui import QImage from PyQt5.QtCore import QPointF class GameItem(): def __init__(self, parent, boundary, position=None): self.parent = parent self.config = parent.config self.items_config = self.config.items if position i...
37.464286
77
0.611058
936
0.892278
0
0
0
0
0
0
0
0
6022d662d09b473f63deec188827d3c36ba79479
6,750
py
Python
source/deepsecurity/models/application_type_rights.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:09.000Z
2021-10-30T16:40:09.000Z
source/deepsecurity/models/application_type_rights.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-07-28T20:19:03.000Z
2021-07-28T20:19:03.000Z
source/deepsecurity/models/application_type_rights.py
felipecosta09/cloudone-workload-controltower-lifecycle
7927c84d164058b034fc872701b5ee117641f4d1
[ "Apache-2.0" ]
1
2021-10-30T16:40:02.000Z
2021-10-30T16:40:02.000Z
# coding: utf-8 """ Trend Micro Deep Security API Copyright 2018 - 2020 Trend Micro Incorporated.<br/>Get protected, stay secured, and keep informed with Trend Micro Deep Security's new RESTful API. Access system data and manage security configurations to automate your security workflows and integrate De...
38.571429
311
0.663556
6,192
0.917333
0
0
2,814
0.416889
0
0
3,326
0.492741
60254d5cf06d095bd8f90781b32cfb0d4a95c6e4
3,900
py
Python
code-samples/aws_neptune.py
hardikvasa/database-journal
7932b5a7fe909f8adb3a909183532b43d450da7b
[ "MIT" ]
45
2019-06-07T07:12:09.000Z
2022-03-20T19:58:53.000Z
code-samples/aws_neptune.py
hardikvasa/database-journal
7932b5a7fe909f8adb3a909183532b43d450da7b
[ "MIT" ]
1
2019-06-09T17:23:05.000Z
2019-06-10T18:36:20.000Z
code-samples/aws_neptune.py
hardikvasa/database-journal
7932b5a7fe909f8adb3a909183532b43d450da7b
[ "MIT" ]
15
2019-06-07T07:12:12.000Z
2022-01-02T01:09:53.000Z
from __future__ import print_function # Python 2/3 compatibility from gremlin_python import statics from gremlin_python.structure.graph import Graph from gremlin_python.process.graph_traversal import __ from gremlin_python.process.strategies import * from gremlin_python.driver.driver_remote_connection import DriverR...
57.352941
136
0.704615
0
0
0
0
0
0
0
0
2,024
0.518974
6025b1cfb25bd8e7710a10ffd3f52c87c8e4a3b7
15,045
py
Python
kits19cnn/io/preprocess_train.py
Ramsha04/kits19-2d-reproduce
66678f1eda3688d6dc64389e9a80ae0b754a3052
[ "Apache-2.0" ]
null
null
null
kits19cnn/io/preprocess_train.py
Ramsha04/kits19-2d-reproduce
66678f1eda3688d6dc64389e9a80ae0b754a3052
[ "Apache-2.0" ]
null
null
null
kits19cnn/io/preprocess_train.py
Ramsha04/kits19-2d-reproduce
66678f1eda3688d6dc64389e9a80ae0b754a3052
[ "Apache-2.0" ]
null
null
null
import os from os.path import join, isdir from pathlib import Path from collections import defaultdict from tqdm import tqdm import nibabel as nib import numpy as np import json from .resample import resample_patient from .custom_augmentations import resize_data_and_seg, crop_to_bbox class Preprocessor(object): "...
43.482659
97
0.571685
14,197
0.943636
0
0
0
0
0
0
7,092
0.471386
6026a153525e13fa3c171bca805b17cf817349e3
1,558
py
Python
setup.py
opywan/calm-dsl
1d89436d039a39265a0ae806022be5b52e757ac0
[ "Apache-2.0" ]
null
null
null
setup.py
opywan/calm-dsl
1d89436d039a39265a0ae806022be5b52e757ac0
[ "Apache-2.0" ]
null
null
null
setup.py
opywan/calm-dsl
1d89436d039a39265a0ae806022be5b52e757ac0
[ "Apache-2.0" ]
null
null
null
import sys import setuptools from setuptools.command.test import test as TestCommand def read_file(filename): with open(filename, "r", encoding='utf8') as f: return f.read() class PyTest(TestCommand): """PyTest""" def finalize_options(self): """finalize_options""" TestCommand.fi...
28.327273
68
0.649551
354
0.227214
0
0
0
0
0
0
545
0.349807
6026e4bb115c40518d8be86f2973d4fb63be08f1
2,019
py
Python
hanlp/pretrained/tok.py
chen88358323/HanLP
ee9066c3b7aad405dfe0ccffb7f66c59017169ae
[ "Apache-2.0" ]
2
2022-03-23T08:50:39.000Z
2022-03-23T08:50:48.000Z
hanlp/pretrained/tok.py
kingfan1998/HanLP
ee9066c3b7aad405dfe0ccffb7f66c59017169ae
[ "Apache-2.0" ]
null
null
null
hanlp/pretrained/tok.py
kingfan1998/HanLP
ee9066c3b7aad405dfe0ccffb7f66c59017169ae
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2019-12-28 21:12 from hanlp_common.constant import HANLP_URL SIGHAN2005_PKU_CONVSEG = HANLP_URL + 'tok/sighan2005-pku-convseg_20200110_153722.zip' 'Conv model (:cite:`wang-xu-2017-convolutional`) trained on sighan2005 pku dataset.' SIGHAN2005_MSR_CONVSEG = HANLP_URL + 't...
67.3
146
0.788014
0
0
0
0
0
0
0
0
1,598
0.791481
60285f227b486baa95c5fb739b65a5f1c6ce6e02
3,364
py
Python
third_party/webrtc/src/chromium/src/tools/swarming_client/tests/logging_utils_test.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
8
2016-02-08T11:59:31.000Z
2020-05-31T15:19:54.000Z
third_party/webrtc/src/chromium/src/tools/swarming_client/tests/logging_utils_test.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
1
2021-05-05T11:11:31.000Z
2021-05-05T11:11:31.000Z
third_party/webrtc/src/chromium/src/tools/swarming_client/tests/logging_utils_test.py
bopopescu/webrtc-streaming-node
727a441204344ff596401b0253caac372b714d91
[ "MIT" ]
7
2016-02-09T09:28:14.000Z
2020-07-25T19:03:36.000Z
#!/usr/bin/env python # Copyright 2015 The Swarming Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 that # can be found in the LICENSE file. import logging import os import subprocess import sys import tempfile import shutil import unittest import re THIS_FILE...
28.508475
80
0.67063
1,851
0.550238
0
0
0
0
0
0
1,013
0.30113
6029de67c839bfcae337c354721a055f1b81107e
2,452
py
Python
model_selection.py
HrishikV/ineuron_inceome_prediction_internship
4a97a7f29d80198f394fcfd880cc5250fe2a0d1e
[ "MIT" ]
null
null
null
model_selection.py
HrishikV/ineuron_inceome_prediction_internship
4a97a7f29d80198f394fcfd880cc5250fe2a0d1e
[ "MIT" ]
null
null
null
model_selection.py
HrishikV/ineuron_inceome_prediction_internship
4a97a7f29d80198f394fcfd880cc5250fe2a0d1e
[ "MIT" ]
null
null
null
from featur_selection import df,race,occupation,workclass,country import pandas as pd from sklearn.preprocessing import StandardScaler from sklearn.model_selection import cross_val_score,KFold from sklearn.linear_model import LogisticRegression from imblearn.pipeline import Pipeline from sklearn.compose import ColumnT...
45.407407
240
0.722675
0
0
0
0
0
0
0
0
214
0.087276
602aa7539d103136a63769ed24a86373824abc5f
76
py
Python
tests/apps/newlayout/tasks/init_data.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
tests/apps/newlayout/tasks/init_data.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
tests/apps/newlayout/tasks/init_data.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
from __future__ import print_function def action_010(): print('doit')
12.666667
37
0.736842
0
0
0
0
0
0
0
0
6
0.078947
602b781497fe10bfa361f38ffbff943242a02399
3,392
py
Python
2021/d8b_bits.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
4
2018-12-04T23:33:46.000Z
2021-12-07T17:33:27.000Z
2021/d8b_bits.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
17
2018-12-12T23:32:09.000Z
2020-01-04T15:50:31.000Z
2021/d8b_bits.py
apie/advent-of-code
c49abec01b044166a688ade40ebb1e642f0e5ce0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import fileinput from os.path import splitext, abspath F_NAME = 'd8' #implement day8 using bits def find_ones(d): '''count number of ones in binary number''' ones = 0 while d > 0: ones += d & 1 d >>= 1 return ones # Assign each segment a 'wire'. lut...
26.294574
122
0.571934
0
0
0
0
166
0.048939
0
0
826
0.243514
602c28a9205e1c1670c905a216255ec8e326af0a
8,931
py
Python
frame_dataloader/spatial_dataloader.py
rizkiailham/two-stream-action-recognition-1
01221f668e62eb26e3593f4ecd3f257b6b6979ab
[ "Apache-2.0" ]
67
2019-01-02T11:42:44.000Z
2022-03-24T02:46:39.000Z
frame_dataloader/spatial_dataloader.py
rizkiailham/two-stream-action-recognition-1
01221f668e62eb26e3593f4ecd3f257b6b6979ab
[ "Apache-2.0" ]
10
2019-02-06T17:12:23.000Z
2021-11-10T08:05:27.000Z
frame_dataloader/spatial_dataloader.py
rizkiailham/two-stream-action-recognition-1
01221f668e62eb26e3593f4ecd3f257b6b6979ab
[ "Apache-2.0" ]
25
2019-04-03T19:25:41.000Z
2021-11-22T16:34:15.000Z
""" ******************************** * Created by mohammed-alaa * ******************************** Spatial Dataloader implementing sequence api from keras (defines how to load a single item) this loads batches of images for each iteration it returns [batch_size, height, width ,3] ndarrays """ import copy import ran...
42.127358
211
0.647744
6,697
0.74986
0
0
0
0
0
0
2,213
0.247789
602c64e6002e7e17025a13776dc2c4562e176aca
1,593
py
Python
dianhua/worker/crawler/china_mobile/hunan/base_request_param.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
6
2015-07-09T08:47:08.000Z
2020-05-16T10:47:31.000Z
dianhua/worker/crawler/china_mobile/hunan/base_request_param.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
7
2019-03-27T04:13:12.000Z
2022-03-02T14:54:56.000Z
dianhua/worker/crawler/china_mobile/hunan/base_request_param.py
Svolcano/python_exercise
a50e05891cc7f1fbb40ebcae324b09b6a14473d2
[ "MIT" ]
2
2019-06-21T06:46:28.000Z
2019-12-23T09:31:09.000Z
# -*- coding:utf-8 -*- """ @version: v1.0 @author: xuelong.liu @license: Apache Licence @contact: xuelong.liu@yulore.com @software: PyCharm @file: base_request_param.py @time: 12/21/16 6:48 PM """ class RequestParam(object): """ 请求相关 """ # URL START_URL = "https://www.hn.10086.cn/service/static...
49.78125
183
0.756434
1,399
0.873829
0
0
0
0
0
0
1,381
0.862586
602c73ce30543054207480d8bbb3a3dcd0069abc
2,762
py
Python
day02/puzzle2.py
jack-beach/AdventOfCode2019
a8ac53eaf03cd7595deb2a9aa798a2d17c21c513
[ "MIT" ]
null
null
null
day02/puzzle2.py
jack-beach/AdventOfCode2019
a8ac53eaf03cd7595deb2a9aa798a2d17c21c513
[ "MIT" ]
1
2019-12-05T19:21:46.000Z
2019-12-05T19:21:46.000Z
day02/puzzle2.py
jack-beach/AdventOfCode2019
a8ac53eaf03cd7595deb2a9aa798a2d17c21c513
[ "MIT" ]
1
2019-12-05T18:05:54.000Z
2019-12-05T18:05:54.000Z
# stdlib imports import copy # vendor imports import click @click.command() @click.argument("input_file", type=click.File("r")) def main(input_file): """Put your puzzle execution code here""" # Convert the comma-delimited string of numbers into a list of ints masterRegister = list( map(lambda op:...
29.073684
77
0.542723
0
0
0
0
2,628
0.951484
0
0
887
0.321144
602ca05ca5bb93779dbfa2cc096246fe750c69b6
823
py
Python
ionosenterprise/items/backupunit.py
ionos-cloud/ionos-enterprise-sdk-python
6b601990098ab36289a251406fb093489b647f1d
[ "Apache-2.0" ]
6
2015-04-16T11:43:27.000Z
2019-04-10T10:47:57.000Z
ionosenterprise/items/backupunit.py
ionos-cloud/ionos-enterprise-sdk-python
6b601990098ab36289a251406fb093489b647f1d
[ "Apache-2.0" ]
40
2015-05-26T15:24:14.000Z
2018-12-05T20:17:28.000Z
ionosenterprise/items/backupunit.py
ionos-cloud/ionos-enterprise-sdk-python
6b601990098ab36289a251406fb093489b647f1d
[ "Apache-2.0" ]
11
2015-04-27T16:40:36.000Z
2018-12-21T09:35:32.000Z
class BackupUnit(object): def __init__(self, name, password=None, email=None): """ BackupUnit class initializer. :param name: A name of that resource (only alphanumeric characters are acceptable)" :type name: ``str`` :param password: The password associated ...
34.291667
96
0.569866
822
0.998785
0
0
0
0
0
0
541
0.657351
602d85326ffa11df7e1d924f6cb4bf41ac71b284
984
py
Python
install.py
X-lab-3D/PANDORA
02912a03022e814ff8e0ae8ec52f5075f0e2e381
[ "Apache-2.0" ]
null
null
null
install.py
X-lab-3D/PANDORA
02912a03022e814ff8e0ae8ec52f5075f0e2e381
[ "Apache-2.0" ]
1
2022-03-14T19:51:26.000Z
2022-03-14T19:51:26.000Z
install.py
X-lab-3D/PANDORA
02912a03022e814ff8e0ae8ec52f5075f0e2e381
[ "Apache-2.0" ]
null
null
null
import os dirs = [ './PANDORA_files', './PANDORA_files/data', './PANDORA_files/data/csv_pkl_files', './PANDORA_files/data/csv_pkl_files/mhcseqs', './PANDORA_files/data/PDBs', './PANDORA_files/data/PDBs/pMHCI', './PANDORA_files/data/PDBs/pMHCII', './PANDORA_files/data/PDBs/Bad', './PANDO...
35.142857
91
0.646341
0
0
0
0
0
0
0
0
765
0.777439
602de82ea89f13dcd9f29b60fb46750634f30aed
7,711
py
Python
app/auth/views.py
MainaKamau92/apexselftaught
9f9a3bd1ba23e57a12e173730917fb9bb7003707
[ "MIT" ]
4
2019-01-02T19:52:00.000Z
2022-02-21T11:07:34.000Z
app/auth/views.py
MainaKamau92/apexselftaught
9f9a3bd1ba23e57a12e173730917fb9bb7003707
[ "MIT" ]
2
2019-12-04T13:36:54.000Z
2019-12-04T13:49:21.000Z
app/auth/views.py
MainaKamau92/apexselftaught
9f9a3bd1ba23e57a12e173730917fb9bb7003707
[ "MIT" ]
1
2021-11-28T13:23:14.000Z
2021-11-28T13:23:14.000Z
# app/auth/views.py import os from flask import flash, redirect, render_template, url_for, request from flask_login import login_required, login_user, logout_user, current_user from . import auth from .forms import (LoginForm, RegistrationForm, RequestResetForm, ResetPasswordForm) from .. import db,...
43.8125
99
0.664765
0
0
0
0
6,738
0.873817
0
0
2,632
0.341331
602e5a99d805700346d56a51e68cf804e5858e7b
6,174
py
Python
oslo_messaging/_drivers/zmq_driver/client/publishers/zmq_dealer_publisher.py
devendermishrajio/oslo.messaging
9e5fb5697d3f7259f01e3416af0582090d20859a
[ "Apache-1.1" ]
1
2021-02-17T15:30:45.000Z
2021-02-17T15:30:45.000Z
oslo_messaging/_drivers/zmq_driver/client/publishers/zmq_dealer_publisher.py
devendermishrajio/oslo.messaging
9e5fb5697d3f7259f01e3416af0582090d20859a
[ "Apache-1.1" ]
null
null
null
oslo_messaging/_drivers/zmq_driver/client/publishers/zmq_dealer_publisher.py
devendermishrajio/oslo.messaging
9e5fb5697d3f7259f01e3416af0582090d20859a
[ "Apache-1.1" ]
2
2015-11-03T03:21:55.000Z
2015-12-01T08:56:14.000Z
# Copyright 2015 Mirantis, 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 ...
34.49162
78
0.679462
5,223
0.845967
0
0
0
0
0
0
1,320
0.2138
602e5ff210d9605bb2e8229e3fbf0370c704bfb0
25,175
py
Python
coba/environments/filters.py
mrucker/banditbenchmark
0365291b3a0cf1d862d294e0386d0ccad3f360f1
[ "BSD-3-Clause" ]
null
null
null
coba/environments/filters.py
mrucker/banditbenchmark
0365291b3a0cf1d862d294e0386d0ccad3f360f1
[ "BSD-3-Clause" ]
null
null
null
coba/environments/filters.py
mrucker/banditbenchmark
0365291b3a0cf1d862d294e0386d0ccad3f360f1
[ "BSD-3-Clause" ]
null
null
null
import pickle import warnings import collections.abc from math import isnan from statistics import mean, median, stdev, mode from abc import abstractmethod, ABC from numbers import Number from collections import defaultdict from itertools import islice, chain from typing import Hashable, Optional, Sequence, Union, Ite...
38.259878
130
0.623952
24,365
0.967825
11,212
0.445362
1,726
0.06856
0
0
4,655
0.184906
602f71483df50285674a0fe43ba737fee526a84e
6,553
py
Python
python/cuml/preprocessing/LabelEncoder.py
egoolish/cuml
5320eff78890b3e9129e04e13437496c0424820d
[ "Apache-2.0" ]
7
2019-02-26T10:41:09.000Z
2020-06-17T06:08:57.000Z
python/cuml/preprocessing/LabelEncoder.py
danielhanchen/cuml
fab74ca94fdbc5b49281660ce32a48cfd3d66f46
[ "Apache-2.0" ]
null
null
null
python/cuml/preprocessing/LabelEncoder.py
danielhanchen/cuml
fab74ca94fdbc5b49281660ce32a48cfd3d66f46
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2019, NVIDIA CORPORATION. # # 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 agreed ...
27.649789
78
0.574546
5,562
0.848772
0
0
0
0
0
0
4,270
0.65161
602fc03ac149fa50fb90ef1d0ffd3dc3832e7d14
5,054
py
Python
cleaning.py
jhamrick/cogsci-proceedings-analysis
c3c8b0abd8b9ce639f6de0aea52aec46c2c8abca
[ "MIT" ]
null
null
null
cleaning.py
jhamrick/cogsci-proceedings-analysis
c3c8b0abd8b9ce639f6de0aea52aec46c2c8abca
[ "MIT" ]
null
null
null
cleaning.py
jhamrick/cogsci-proceedings-analysis
c3c8b0abd8b9ce639f6de0aea52aec46c2c8abca
[ "MIT" ]
1
2020-05-11T10:38:38.000Z
2020-05-11T10:38:38.000Z
import re import difflib import pandas as pd import numpy as np from nameparser import HumanName from nameparser.config import CONSTANTS CONSTANTS.titles.remove("gen") CONSTANTS.titles.remove("prin") def parse_paper_type(section_name): section_name = section_name.strip().lower() if section_name == '': ...
34.616438
79
0.551049
0
0
0
0
0
0
0
0
714
0.141274
602fe47995203be2cbe5445ca36c210c61dfb7a1
384
py
Python
quem_foi_para_mar_core/migrations/0004_auto_20200811_1945.py
CamilaBodack/template-projeto-selecao
b0a0cf6070bf8abab626a17af5c315c82368b010
[ "MIT" ]
1
2020-09-01T23:04:07.000Z
2020-09-01T23:04:07.000Z
quem_foi_para_mar_core/migrations/0004_auto_20200811_1945.py
CamilaBodack/template-projeto-selecao
b0a0cf6070bf8abab626a17af5c315c82368b010
[ "MIT" ]
4
2020-10-07T18:04:41.000Z
2020-10-07T18:07:58.000Z
quem_foi_para_mar_core/migrations/0004_auto_20200811_1945.py
CamilaBodack/template-projeto-selecao
b0a0cf6070bf8abab626a17af5c315c82368b010
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-11 19:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('quem_foi_para_mar_core', '0003_auto_20200811_1944'), ] operations = [ migrations.RenameField( model_name='contato', old_name='...
20.210526
62
0.609375
301
0.783854
0
0
0
0
0
0
126
0.328125
6030d536392f2700f6b4fca762988c6115c81681
268
py
Python
examples/tinytag/fuzz.py
MJ-SEO/py_fuzz
789fbfea21bf644ba4d00554fe4141694b0a190a
[ "Apache-2.0" ]
null
null
null
examples/tinytag/fuzz.py
MJ-SEO/py_fuzz
789fbfea21bf644ba4d00554fe4141694b0a190a
[ "Apache-2.0" ]
null
null
null
examples/tinytag/fuzz.py
MJ-SEO/py_fuzz
789fbfea21bf644ba4d00554fe4141694b0a190a
[ "Apache-2.0" ]
null
null
null
from pythonfuzz.main import PythonFuzz from tinytag import TinyTag import io @PythonFuzz def fuzz(buf): try: f = open('temp.mp4', "wb") f.write(buf) f.seek(0) tag = TinyTag.get(f.name) except UnicodeDecodeError: pass if __name__ == '__main__': fuzz()
14.105263
38
0.69403
0
0
0
0
151
0.563433
0
0
24
0.089552
6031aa22f48d39d2c1b21d711d722627277b7cfb
96
py
Python
venv/lib/python3.8/site-packages/requests/compat.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
1
2022-02-22T04:49:18.000Z
2022-02-22T04:49:18.000Z
venv/lib/python3.8/site-packages/requests/compat.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/requests/compat.py
GiulianaPola/select_repeats
17a0d053d4f874e42cf654dd142168c2ec8fbd11
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/d1/fc/c7/6cbbdf9c58b6591d28ed792bbd7944946d3f56042698e822a2869787f6
96
96
0.895833
0
0
0
0
0
0
0
0
0
0
6031df65367df99733ce016cb9fcdddefa51c5dc
3,951
py
Python
examples/python-guide/cross_validation_example.py
StatMixedML/GPBoost
786d8be61c5c28da0690e167af636a6d777bf9e1
[ "Apache-2.0" ]
2
2020-04-12T06:12:17.000Z
2020-04-12T15:34:01.000Z
examples/python-guide/cross_validation_example.py
StatMixedML/GPBoost
786d8be61c5c28da0690e167af636a6d777bf9e1
[ "Apache-2.0" ]
null
null
null
examples/python-guide/cross_validation_example.py
StatMixedML/GPBoost
786d8be61c5c28da0690e167af636a6d777bf9e1
[ "Apache-2.0" ]
1
2020-04-12T15:34:12.000Z
2020-04-12T15:34:12.000Z
# coding: utf-8 # pylint: disable = invalid-name, C0111 import gpboost as gpb import numpy as np from sklearn.metrics import mean_squared_error import matplotlib.pyplot as plt plt.style.use('ggplot') #--------------------Cross validation for tree-boosting without GP or random effects---------------- print('Simulating ...
35.276786
100
0.665148
0
0
0
0
0
0
0
0
1,622
0.410529
60321018f94dd63905027338dadab96fc7adf06f
2,230
py
Python
synapse/rest/synapse/client/unsubscribe.py
Florian-Sabonchi/synapse
c95b04bb0e719d3f5de1714b442f95a39c6e3634
[ "Apache-2.0" ]
null
null
null
synapse/rest/synapse/client/unsubscribe.py
Florian-Sabonchi/synapse
c95b04bb0e719d3f5de1714b442f95a39c6e3634
[ "Apache-2.0" ]
null
null
null
synapse/rest/synapse/client/unsubscribe.py
Florian-Sabonchi/synapse
c95b04bb0e719d3f5de1714b442f95a39c6e3634
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Matrix.org Foundation C.I.C. # # 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 a...
34.307692
80
0.689686
1,321
0.592377
0
0
0
0
848
0.380269
805
0.360987
603213c5e7e394368a3f594930adb85245cbf3c3
4,859
py
Python
pyhanabi/act_group.py
ravihammond/hanabi-convention-adaptation
5dafa91742de8e8d5810e8213e0e2771818b2f54
[ "MIT" ]
1
2022-03-24T19:41:22.000Z
2022-03-24T19:41:22.000Z
pyhanabi/act_group.py
ravihammond/hanabi-convention-adaptation
5dafa91742de8e8d5810e8213e0e2771818b2f54
[ "MIT" ]
null
null
null
pyhanabi/act_group.py
ravihammond/hanabi-convention-adaptation
5dafa91742de8e8d5810e8213e0e2771818b2f54
[ "MIT" ]
null
null
null
import set_path import sys import torch set_path.append_sys_path() import rela import hanalearn import utils assert rela.__file__.endswith(".so") assert hanalearn.__file__.endswith(".so") class ActGroup: def __init__( self, devices, agent, partner_weight, seed, n...
31.967105
83
0.537148
4,665
0.960074
0
0
0
0
0
0
421
0.086643
603237057511914da74cfc53cec432cce1013ccc
1,128
py
Python
A_source_code/carbon/code/make_mask.py
vanHoek-dgnm/CARBON-DISC
3ecd5f4efba5e032d43679ee977064d6b25154a9
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
A_source_code/carbon/code/make_mask.py
vanHoek-dgnm/CARBON-DISC
3ecd5f4efba5e032d43679ee977064d6b25154a9
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
A_source_code/carbon/code/make_mask.py
vanHoek-dgnm/CARBON-DISC
3ecd5f4efba5e032d43679ee977064d6b25154a9
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ****************************************************** ## Copyright 2019, PBL Netherlands Environmental Assessment Agency and Utrecht University. ## Reuse permitted under Gnu Public License, GPL v3. # ****************************************************** from netCDF4 import Dataset import numpy as np import genera...
31.333333
90
0.62766
0
0
0
0
0
0
0
0
299
0.265071
6032a6052ffc5ac0129ff8a333fbe0b572cb530c
7,309
py
Python
Code/Dataset.py
gitFloyd/AAI-Project-2
c6bb4d389248c3385e58a0c399343322a6dd887f
[ "MIT" ]
null
null
null
Code/Dataset.py
gitFloyd/AAI-Project-2
c6bb4d389248c3385e58a0c399343322a6dd887f
[ "MIT" ]
null
null
null
Code/Dataset.py
gitFloyd/AAI-Project-2
c6bb4d389248c3385e58a0c399343322a6dd887f
[ "MIT" ]
null
null
null
from io import TextIOWrapper import math from typing import TypeVar import random import os from Settings import Settings class Dataset: DataT = TypeVar('DataT') WIN_NL = "\r\n" LINUX_NL = "\n" def __init__(self, path:str, filename:str, newline:str = WIN_NL) -> None: self.path_ = path self.f...
24.363333
96
0.629498
7,063
0.966343
0
0
140
0.019154
0
0
919
0.125735
60338466dc34f8421b1477264c6d62ca84ee2404
36,939
py
Python
payments/models.py
wahuneke/django-stripe-payments
5d4b26b025fc3fa75d3a0aeaafd67fb825325c94
[ "BSD-3-Clause" ]
null
null
null
payments/models.py
wahuneke/django-stripe-payments
5d4b26b025fc3fa75d3a0aeaafd67fb825325c94
[ "BSD-3-Clause" ]
null
null
null
payments/models.py
wahuneke/django-stripe-payments
5d4b26b025fc3fa75d3a0aeaafd67fb825325c94
[ "BSD-3-Clause" ]
null
null
null
import datetime import decimal import json import traceback from django.conf import settings from django.core.mail import EmailMessage from django.db import models from django.utils import timezone from django.template.loader import render_to_string from django.contrib.sites.models import Site import stripe from js...
37.654434
137
0.609491
35,995
0.974444
0
0
11,487
0.310972
0
0
5,381
0.145673
6037477e26e980cdc81f047c4b3c12fc1cbcec38
2,321
py
Python
mars/tensor/base/flip.py
tomzhang/mars-1
6f1d85e37eb1b383251314cb0ba13e06288af03d
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/base/flip.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/tensor/base/flip.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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-...
25.228261
81
0.561827
0
0
0
0
0
0
0
0
2,014
0.867729
6037a51c2f59285acb270192ab5e41f437b7c589
1,876
py
Python
tests/test_ops/test_upfirdn2d.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
tests/test_ops/test_upfirdn2d.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
tests/test_ops/test_upfirdn2d.py
imabackstabber/mmcv
b272c09b463f00fd7fdd455f7bd4a055f9995521
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch _USING_PARROTS = True try: from parrots.autograd import gradcheck except ImportError: from torch.autograd import gradcheck, gradgradcheck _USING_PARROTS = False class TestUpFirDn2d: """Unit test for UpFirDn2d. Here, we ju...
31.79661
78
0.55597
1,624
0.865672
0
0
1,378
0.734542
0
0
271
0.144456
6038e029f5aa9016bb06dc0180b3e06aac57209e
852
py
Python
dataset_creation/description_task2.py
rmorain/kirby
ef115dbaed4acd1b23c3e10ca3b496f05b9a2382
[ "Apache-2.0" ]
1
2021-08-30T11:46:20.000Z
2021-08-30T11:46:20.000Z
dataset_creation/description_task2.py
rmorain/kirby
ef115dbaed4acd1b23c3e10ca3b496f05b9a2382
[ "Apache-2.0" ]
36
2020-11-18T20:19:33.000Z
2021-08-03T23:31:12.000Z
dataset_creation/description_task2.py
rmorain/kirby
ef115dbaed4acd1b23c3e10ca3b496f05b9a2382
[ "Apache-2.0" ]
null
null
null
import pandas as pd from tqdm import tqdm data_list = [] def get_questions(row): global data_list random_samples = df.sample(n=num_choices - 1) distractors = random_samples["description"].tolist() data = { "question": "What is " + row["label"] + "?", "correct": row["description"], ...
24.342857
83
0.664319
0
0
0
0
0
0
0
0
251
0.294601
603b2fa764ceaa795942b2f9977849ffd27b7101
2,776
py
Python
scarab/commands/attach.py
gonzoua/scarab
b86474527b7b2ec30710ae79ea3f1cf5b7a93005
[ "BSD-2-Clause" ]
5
2018-09-01T01:42:43.000Z
2019-01-04T21:32:55.000Z
scarab/commands/attach.py
gonzoua/scarab
b86474527b7b2ec30710ae79ea3f1cf5b7a93005
[ "BSD-2-Clause" ]
1
2019-09-18T17:06:11.000Z
2019-11-29T18:35:08.000Z
scarab/commands/attach.py
gonzoua/scarab
b86474527b7b2ec30710ae79ea3f1cf5b7a93005
[ "BSD-2-Clause" ]
null
null
null
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """ 'attach' command implementation''' """ from base64 import b64encode import argparse import magic from ..bugzilla import BugzillaError from ..context import bugzilla_instance from .. import ui from .base import Base class Command(Base): """Attach file to...
39.098592
98
0.617075
2,497
0.899496
0
0
0
0
0
0
729
0.262608
603b5710a40e621c6b937d72101edf1cadc2be7f
5,089
py
Python
test/test_airfoil.py
chabotsi/pygmsh
f2c26d9193c63efd9fa7676ea0860a18de7e8b52
[ "MIT" ]
null
null
null
test/test_airfoil.py
chabotsi/pygmsh
f2c26d9193c63efd9fa7676ea0860a18de7e8b52
[ "MIT" ]
null
null
null
test/test_airfoil.py
chabotsi/pygmsh
f2c26d9193c63efd9fa7676ea0860a18de7e8b52
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import numpy import pygmsh from helpers import compute_volume def test(): # Airfoil coordinates airfoil_coordinates = numpy.array([ [1.000000, 0.000000, 0.0], [0.999023, 0.000209, 0.0], [0.996095, 0.000832, 0.0], [0.991228, 0.001...
31.608696
69
0.503046
0
0
0
0
0
0
0
0
266
0.05227
603b6cd04fd9a00dac3c017eb36ba4659fec0677
330
py
Python
LeetCode/python3/287.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
279
2019-02-19T16:00:32.000Z
2022-03-23T12:16:30.000Z
LeetCode/python3/287.py
ZintrulCre/LeetCode_Archiver
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
2
2019-03-31T08:03:06.000Z
2021-03-07T04:54:32.000Z
LeetCode/python3/287.py
ZintrulCre/LeetCode_Crawler
de23e16ead29336b5ee7aa1898a392a5d6463d27
[ "MIT" ]
12
2019-01-29T11:45:32.000Z
2019-02-04T16:31:46.000Z
class Solution: def findDuplicate(self, nums: List[int]) -> int: p1, p2 = nums[0], nums[nums[0]] while nums[p1] != nums[p2]: p1 = nums[p1] p2 = nums[nums[p2]] p2 = 0 while nums[p1] != nums[p2]: p1 = nums[p1] p2 = nums[p2] return...
27.5
52
0.454545
329
0.99697
0
0
0
0
0
0
0
0
603bd55f49512b27d3c43490151152f53b9f9255
158
py
Python
src/twisted/test/myrebuilder1.py
mathieui/twisted
35546d2b50742a32edba54719ce3e752dc50dd2a
[ "MIT", "Unlicense" ]
9,953
2019-04-03T23:41:04.000Z
2022-03-31T11:54:44.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/myrebuilder1.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
44
2019-05-27T10:59:29.000Z
2022-03-31T14:14:29.000Z
stackoverflow/venv/lib/python3.6/site-packages/twisted/test/myrebuilder1.py
W4LKURE/learn_python3_spider
98dd354a41598b31302641f9a0ea49d1ecfa0fb1
[ "MIT" ]
2,803
2019-04-06T13:15:33.000Z
2022-03-31T07:42:01.000Z
class A: def a(self): return 'a' class B(A, object): def b(self): return 'b' class Inherit(A): def a(self): return 'c'
12.153846
19
0.487342
152
0.962025
0
0
0
0
0
0
9
0.056962
603be24384736b5da4440432a56324e5b621091a
260
py
Python
examples/test_yield_8.py
MateuszG/django_auth
4cda699c1b6516ffaa26329f545a674a7c849a16
[ "MIT" ]
2
2015-01-12T09:43:59.000Z
2015-01-12T10:39:31.000Z
examples/test_yield_8.py
MateuszG/django_auth
4cda699c1b6516ffaa26329f545a674a7c849a16
[ "MIT" ]
null
null
null
examples/test_yield_8.py
MateuszG/django_auth
4cda699c1b6516ffaa26329f545a674a7c849a16
[ "MIT" ]
null
null
null
import pytest @pytest.yield_fixture def passwd(): print ("\nsetup before yield") f = open("/etc/passwd") yield f.readlines() print ("teardown after yield") f.close() def test_has_lines(passwd): print ("test called") assert passwd
18.571429
34
0.653846
0
0
149
0.573077
171
0.657692
0
0
70
0.269231
603c4a28289b42faa48ea562130b7e8125179bd8
2,327
py
Python
modules/google-earth-engine/docker/src/sepalinternal/gee.py
BuddyVolly/sepal
6a2356a88940a36568b1d83ba3aeaae4283d5445
[ "MIT" ]
153
2015-10-23T09:00:08.000Z
2022-03-19T03:24:04.000Z
modules/google-earth-engine/docker/src/sepalinternal/gee.py
BuddyVolly/sepal
6a2356a88940a36568b1d83ba3aeaae4283d5445
[ "MIT" ]
165
2015-09-24T09:53:06.000Z
2022-03-31T09:55:06.000Z
modules/google-earth-engine/docker/src/sepalinternal/gee.py
BuddyVolly/sepal
6a2356a88940a36568b1d83ba3aeaae4283d5445
[ "MIT" ]
46
2016-07-10T10:40:09.000Z
2021-11-14T01:07:33.000Z
import json from threading import Semaphore import ee from flask import request from google.auth import crypt from google.oauth2 import service_account from google.oauth2.credentials import Credentials service_account_credentials = None import logging export_semaphore = Semaphore(5) get_info_semaphore = Semaphore(2)...
27.376471
74
0.685862
0
0
0
0
0
0
0
0
221
0.094972
603d09d31004383c874fb82ce95f78dc229bb3dd
481
py
Python
micropython/007_boat_sink.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
2
2021-06-29T17:18:09.000Z
2022-01-25T08:29:59.000Z
micropython/007_boat_sink.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
micropython/007_boat_sink.py
mirontoli/tolle-rasp
020638e86c167aedd7b556d8515a3adef70724af
[ "MIT" ]
null
null
null
#https://microbit-micropython.readthedocs.io/en/latest/tutorials/images.html#animation from microbit import * boat1 = Image("05050:05050:05050:99999:09990") boat2 = Image("00000:05050:05050:05050:99999") boat3 = Image("00000:00000:05050:05050:05050") boat4 = Image("00000:00000:00000:05050:05050") boat5 = Image("00000:0...
48.1
86
0.765073
0
0
0
0
0
0
0
0
272
0.565489
603d47f5b923ece6ffdc97d38998dad6e0f866c8
2,022
py
Python
examples/api-samples/inc_samples/convert_callback.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/convert_callback.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
examples/api-samples/inc_samples/convert_callback.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
import os import json import shutil import time from pyramid.renderers import render_to_response from pyramid.response import Response from groupdocs.ApiClient import ApiClient from groupdocs.AsyncApi import AsyncApi from groupdocs.StorageApi import StorageApi from groupdocs.GroupDocsRequestSigner import GroupDocsReq...
34.271186
68
0.62908
0
0
0
0
0
0
0
0
288
0.142433
603e1db8585ef18d062d93564593d2084f744fc9
14,585
py
Python
PyIK/src/litearm.py
AliShug/EvoArm
a5dea204914ee1e25867e4412e88d245329316f2
[ "CC-BY-3.0" ]
110
2017-01-13T17:19:18.000Z
2022-02-20T06:50:03.000Z
PyIK/src/litearm.py
igcxl/EvoArm
a5dea204914ee1e25867e4412e88d245329316f2
[ "CC-BY-3.0" ]
1
2018-08-30T07:27:56.000Z
2018-08-30T07:27:56.000Z
PyIK/src/litearm.py
igcxl/EvoArm
a5dea204914ee1e25867e4412e88d245329316f2
[ "CC-BY-3.0" ]
47
2017-03-10T20:34:01.000Z
2021-11-18T03:44:06.000Z
from __future__ import print_function import numpy as np import struct import solvers import pid from util import * MOTORSPEED = 0.9 MOTORMARGIN = 1 MOTORSLOPE = 30 ERRORLIM = 5.0 class ArmConfig: """Holds an arm's proportions, limits and other configuration data""" def __init__(self, main...
37.397436
98
0.58471
14,394
0.986904
0
0
470
0.032225
0
0
2,276
0.156051
60416481c613049aa881c1d91f118e1ecab9fdbf
1,194
py
Python
create_augmented_versions.py
jakobabesser/piano_aug
37f78c77465749c80d7aa91d9e804b89024eb278
[ "MIT" ]
null
null
null
create_augmented_versions.py
jakobabesser/piano_aug
37f78c77465749c80d7aa91d9e804b89024eb278
[ "MIT" ]
null
null
null
create_augmented_versions.py
jakobabesser/piano_aug
37f78c77465749c80d7aa91d9e804b89024eb278
[ "MIT" ]
null
null
null
from pedalboard import Reverb, Compressor, Gain, LowpassFilter, Pedalboard import soundfile as sf if __name__ == '__main__': # replace by path of unprocessed piano file if necessar fn_wav_source = 'live_grand_piano.wav' # augmentation settings using Pedalboard library settings = {'rev-': [Reverb(roo...
34.114286
74
0.61139
0
0
0
0
0
0
0
0
334
0.279732
60422bea81360e85bf0b5cf68c083ffc23ea9d15
2,867
py
Python
flux/migrations/versions/9ba67b798fa_add_request_system.py
siq/flux
ca7563deb9ebef14840bbf0cb7bab4d9478b2470
[ "Linux-OpenIB" ]
null
null
null
flux/migrations/versions/9ba67b798fa_add_request_system.py
siq/flux
ca7563deb9ebef14840bbf0cb7bab4d9478b2470
[ "Linux-OpenIB" ]
null
null
null
flux/migrations/versions/9ba67b798fa_add_request_system.py
siq/flux
ca7563deb9ebef14840bbf0cb7bab4d9478b2470
[ "Linux-OpenIB" ]
null
null
null
"""add_request_system Revision: 9ba67b798fa Revises: 31b92bf6506d Created: 2013-07-23 02:49:09.342814 """ revision = '9ba67b798fa' down_revision = '31b92bf6506d' from alembic import op from spire.schema.fields import * from spire.mesh import SurrogateType from sqlalchemy import (Column, ForeignKey, ForeignKeyConstra...
39.273973
87
0.659226
0
0
0
0
0
0
0
0
669
0.233345
6043f0f0c5013421d3026505d50e50aa5fb67097
9,333
py
Python
src/python/Vector2_TEST.py
clalancette/ign-math
84eb1bfe470d00d335c048f102b56c49a15b56be
[ "ECL-2.0", "Apache-2.0" ]
43
2019-08-21T20:50:05.000Z
2022-03-27T11:48:25.000Z
src/python/Vector2_TEST.py
clalancette/ign-math
84eb1bfe470d00d335c048f102b56c49a15b56be
[ "ECL-2.0", "Apache-2.0" ]
277
2020-04-16T23:38:50.000Z
2022-03-31T11:11:58.000Z
src/python/Vector2_TEST.py
clalancette/ign-math
84eb1bfe470d00d335c048f102b56c49a15b56be
[ "ECL-2.0", "Apache-2.0" ]
48
2020-04-15T21:15:43.000Z
2022-03-14T19:29:04.000Z
# Copyright (C) 2021 Open Source Robotics 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...
29.165625
74
0.585985
8,582
0.919533
0
0
0
0
0
0
1,302
0.139505
604745505e3f84cc6af47e088784a1a28b715d2a
1,418
py
Python
fsspec/tests/test_mapping.py
sodre/filesystem_spec
5fe51c5e85366b57a11ed66637a940970372ea4b
[ "BSD-3-Clause" ]
null
null
null
fsspec/tests/test_mapping.py
sodre/filesystem_spec
5fe51c5e85366b57a11ed66637a940970372ea4b
[ "BSD-3-Clause" ]
null
null
null
fsspec/tests/test_mapping.py
sodre/filesystem_spec
5fe51c5e85366b57a11ed66637a940970372ea4b
[ "BSD-3-Clause" ]
null
null
null
import os import fsspec from fsspec.implementations.memory import MemoryFileSystem import pickle import pytest def test_mapping_prefix(tmpdir): tmpdir = str(tmpdir) os.makedirs(os.path.join(tmpdir, "afolder")) open(os.path.join(tmpdir, "afile"), "w").write("test") open(os.path.join(tmpdir, "afolder", ...
22.870968
76
0.612835
0
0
0
0
0
0
0
0
307
0.216502
6047d157ca53f47cf0fb3523f60398cfb109d425
990
py
Python
testedome/questions/quest_5.py
EderReisS/pythonChallenges
a880358c2cb4de0863f4b4cada36b3d439a8a018
[ "MIT" ]
null
null
null
testedome/questions/quest_5.py
EderReisS/pythonChallenges
a880358c2cb4de0863f4b4cada36b3d439a8a018
[ "MIT" ]
null
null
null
testedome/questions/quest_5.py
EderReisS/pythonChallenges
a880358c2cb4de0863f4b4cada36b3d439a8a018
[ "MIT" ]
1
2021-07-29T23:20:17.000Z
2021-07-29T23:20:17.000Z
""" A / | B C 'B, C' """ class CategoryTree: def __init__(self): self.root = {} self.all_categories = [] def add_category(self, category, parent): if category in self.all_categories: raise KeyError(f"{category} exists") if parent is None: self.r...
22
51
0.559596
722
0.729293
0
0
0
0
0
0
125
0.126263
60484feb7046b3c272c1b83d25957af04879dd6e
4,681
py
Python
sppas/sppas/src/anndata/aio/__init__.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/anndata/aio/__init__.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/anndata/aio/__init__.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ .. --------------------------------------------------------------------- ___ __ __ __ ___ / | \ | \ | \ / the automatic \__ |__/ |__/ |___| \__ annotation and \ | | | | \ ...
36.858268
216
0.554582
0
0
0
0
0
0
0
0
3,076
0.657125
6049a1eccd8b14db6687d766205e1b913a98cd6d
226
py
Python
models/__init__.py
dapengchen123/hfsoftmax
467bd90814abdf3e5ad8384e6e05749172b68ae6
[ "MIT" ]
1
2018-10-11T09:27:53.000Z
2018-10-11T09:27:53.000Z
models/__init__.py
dapengchen123/hfsoftmax
467bd90814abdf3e5ad8384e6e05749172b68ae6
[ "MIT" ]
null
null
null
models/__init__.py
dapengchen123/hfsoftmax
467bd90814abdf3e5ad8384e6e05749172b68ae6
[ "MIT" ]
null
null
null
from .resnet import * from .hynet import * from .classifier import Classifier, HFClassifier, HNSWClassifier from .ext_layers import ParameterClient samplerClassifier = { 'hf': HFClassifier, 'hnsw': HNSWClassifier, }
20.545455
64
0.756637
0
0
0
0
0
0
0
0
10
0.044248
604a3acc24feaf58c41a047512c8f6cf4cc0bdd1
1,397
py
Python
scripts/multiplayer/server.py
AgnirudraSil/tetris
2a4f4c26190fc8b669f98c116af343f7f1ac51bf
[ "MIT" ]
3
2022-01-11T06:11:08.000Z
2022-03-10T09:34:42.000Z
scripts/multiplayer/server.py
agnirudrasil/tetris
2a4f4c26190fc8b669f98c116af343f7f1ac51bf
[ "MIT" ]
null
null
null
scripts/multiplayer/server.py
agnirudrasil/tetris
2a4f4c26190fc8b669f98c116af343f7f1ac51bf
[ "MIT" ]
null
null
null
import pickle import socket import _thread from scripts.multiplayer import game, board, tetriminos server = "192.168.29.144" port = 5555 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) try: s.bind((server, port)) except socket.error as e: print(e) s.listen() print("Waiting for connection") connected ...
18.878378
65
0.536149
0
0
0
0
0
0
0
0
90
0.064424
604a7281197333545b6dfe0f58e24a3b3cd75540
134
py
Python
solutions/6-sum-suqare-difference.py
smaranjitghose/PyProjectEuler
d1303d18a0d90acf885ab5ac54b3ea91d99e83db
[ "MIT" ]
1
2020-03-15T02:51:19.000Z
2020-03-15T02:51:19.000Z
solutions/6-sum-suqare-difference.py
smaranjitghose/PyProjectEuler
d1303d18a0d90acf885ab5ac54b3ea91d99e83db
[ "MIT" ]
null
null
null
solutions/6-sum-suqare-difference.py
smaranjitghose/PyProjectEuler
d1303d18a0d90acf885ab5ac54b3ea91d99e83db
[ "MIT" ]
null
null
null
def sum_of_squares(n): return sum(i ** 2 for i in range(1, n+1)) def square_of_sum(n): return sum(range(1, n+1)) ** 2
19.142857
46
0.58209
0
0
0
0
0
0
0
0
0
0
604b01d7a386918b107512b8c4b02b4727b0197f
2,311
py
Python
AdventOfCode/2018/src/day-03/app.py
AustinTSchaffer/DailyProgrammer
b16d9babb298ac5e879c514f9c4646b99c6860a8
[ "MIT" ]
1
2020-07-28T17:07:35.000Z
2020-07-28T17:07:35.000Z
AdventOfCode/2018/src/day-03/app.py
AustinTSchaffer/DailyProgrammer
b16d9babb298ac5e879c514f9c4646b99c6860a8
[ "MIT" ]
5
2021-04-06T18:25:29.000Z
2021-04-10T15:13:28.000Z
AdventOfCode/2018/src/day-03/app.py
AustinTSchaffer/DailyProgrammer
b16d9babb298ac5e879c514f9c4646b99c6860a8
[ "MIT" ]
null
null
null
import os import re from collections import defaultdict class Claim(object): def __init__(self, data_row): match = re.match(r'#(\d+) @ (\d+),(\d+): (\d+)x(\d+)', data_row) self.id = int(match[1]) self.x = int(match[2]) self.y = int(match[3]) self.width = int(match[4]) ...
32.097222
73
0.638685
446
0.19299
346
0.149719
0
0
0
0
672
0.290783
604b36210d2f64d1a79dd2e280534e5bf39ec7cb
4,737
py
Python
facerec-master/py/facerec/distance.py
ArianeFire/HaniCam
8a940486a613d680a0b556209a596cdf3eb71f53
[ "MIT" ]
776
2015-01-01T11:34:42.000Z
2022-02-26T10:25:51.000Z
facerec-master/py/facerec/distance.py
ArianeFire/HaniCam
8a940486a613d680a0b556209a596cdf3eb71f53
[ "MIT" ]
43
2015-03-17T07:48:38.000Z
2019-08-21T05:16:36.000Z
facerec-master/py/facerec/distance.py
ArianeFire/HaniCam
8a940486a613d680a0b556209a596cdf3eb71f53
[ "MIT" ]
479
2015-01-01T12:34:38.000Z
2022-02-28T23:57:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) Philipp Wagner. All rights reserved. # Licensed under the BSD license. See LICENSE file in the project root for full license information. import numpy as np class AbstractDistance(object): def __init__(self, name): self._name = name ...
33.595745
125
0.617479
4,482
0.946168
0
0
55
0.011611
0
0
1,768
0.373232
604b9cab87abdc5ce52f2c470f0e9885781ed2dd
7,162
py
Python
pgyer_uploader.py
elina8013/android_demo
d8cef19d06a4f21f7cf2c277bbabba8cf10a8608
[ "Apache-2.0" ]
666
2015-03-18T02:09:34.000Z
2021-08-25T06:24:27.000Z
pgyer_uploader.py
shanjiaxiang/android_demo
d1afa66c30ae5b3c09a39f4c36c61640615177bb
[ "Apache-2.0" ]
7
2017-04-26T07:06:49.000Z
2019-07-08T08:05:13.000Z
pgyer_uploader.py
shanjiaxiang/android_demo
d1afa66c30ae5b3c09a39f4c36c61640615177bb
[ "Apache-2.0" ]
371
2015-03-18T02:09:33.000Z
2021-09-10T02:41:05.000Z
#!/usr/bin/python #coding=utf-8 import os import requests import time import re from datetime import datetime import urllib2 import json import mimetypes import smtplib from email.MIMEText import MIMEText from email.MIMEMultipart import MIMEMultipart # configuration for pgyer USER_KEY = "f605b7c782669...
34.76699
154
0.604021
0
0
0
0
0
0
0
0
2,624
0.349401