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
7720601585c87e81f391830224a24710fc679947
11,203
py
Python
utils.py
michaelpatrickpurcell/balanced-nontransitive-dice
d4d6e4cfc282d65edd10e9ff0219615c5ac2b77b
[ "MIT" ]
null
null
null
utils.py
michaelpatrickpurcell/balanced-nontransitive-dice
d4d6e4cfc282d65edd10e9ff0219615c5ac2b77b
[ "MIT" ]
null
null
null
utils.py
michaelpatrickpurcell/balanced-nontransitive-dice
d4d6e4cfc282d65edd10e9ff0219615c5ac2b77b
[ "MIT" ]
null
null
null
import numpy as np from scipy.special import factorial from itertools import permutations, product from pysat.solvers import Minisat22, Minicard from pysat.pb import PBEnc from clauses import build_clauses, build_max_min_clauses from clauses import build_permutation_clauses from clauses import build_cardinality_lits,...
29.954545
86
0.595376
0
0
0
0
0
0
0
0
924
0.082478
7722bc9189fc79c029275036a7e49a54482e4d8c
38
py
Python
pkg/agents/team4/trainingAgent/findBestConfigs.py
SOMAS2021/SOMAS2021
acaa13e3d663d3f59589f3b26860db643b3bf29e
[ "MIT" ]
13
2021-12-02T09:28:47.000Z
2022-01-14T18:39:51.000Z
pkg/agents/team4/trainingAgent/findBestConfigs.py
SOMAS2021/SOMAS2021
acaa13e3d663d3f59589f3b26860db643b3bf29e
[ "MIT" ]
190
2021-11-19T15:37:44.000Z
2022-01-17T00:23:13.000Z
pkg/agents/team4/trainingAgent/findBestConfigs.py
SOMAS2021/SOMAS2021
acaa13e3d663d3f59589f3b26860db643b3bf29e
[ "MIT" ]
4
2021-11-22T18:21:53.000Z
2021-12-22T13:55:42.000Z
# TODO: autmatate finding best agents
19
37
0.789474
0
0
0
0
0
0
0
0
37
0.973684
772382a62fd85bce40038234f29c973df9cee412
2,653
py
Python
tests/storage/psql_dos/migrations/django_branch/test_0043_default_link_label.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
153
2016-12-23T20:59:03.000Z
2019-07-02T06:47:52.000Z
tests/storage/psql_dos/migrations/django_branch/test_0043_default_link_label.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
2,466
2016-12-24T01:03:52.000Z
2019-07-04T13:41:08.000Z
tests/storage/psql_dos/migrations/django_branch/test_0043_default_link_label.py
mkrack/aiida-core
bab1ad6cfc8e4ff041bce268f9270c613663cb35
[ "MIT", "BSD-3-Clause" ]
88
2016-12-23T16:28:00.000Z
2019-07-01T15:55:20.000Z
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
35.373333
75
0.551074
0
0
0
0
0
0
0
0
965
0.363739
7729ca0d13aba7858c6f6bf672c7c5cb27ab55a0
7,901
py
Python
tests/src/SI/MAP/School_Map_regression_testing.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
tests/src/SI/MAP/School_Map_regression_testing.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
tests/src/SI/MAP/School_Map_regression_testing.py
JalajaTR/cQube
6bf58ab25f0c36709630987ab730bbd5d9192c03
[ "MIT" ]
null
null
null
import time import unittest from Data.parameters import Data from SI.MAP.check_infrascore_with_download_functionality import SchoolInfra_scores from SI.MAP.check_sc_map_clusterwise_records import test_school_map_schoollevel_records from SI.MAP.click_on_anydistrict_and_download_csv import download_icon from SI.MAP.clic...
38.541463
98
0.678142
6,925
0.876471
0
0
373
0.047209
0
0
1,532
0.1939
772a4eead684d14c1321c64fcce204b67581646f
4,217
py
Python
src/manual/melt_oxcgrt2.py
lshtm-gis/WHO_PHSM_Cleaning
5892673922fc555fb86d6e0be548b48c7dc66814
[ "MIT" ]
null
null
null
src/manual/melt_oxcgrt2.py
lshtm-gis/WHO_PHSM_Cleaning
5892673922fc555fb86d6e0be548b48c7dc66814
[ "MIT" ]
123
2020-10-12T11:06:27.000Z
2021-04-28T15:32:29.000Z
src/manual/melt_oxcgrt2.py
lshtm-gis/WHO_PHSM_Cleaning
5892673922fc555fb86d6e0be548b48c7dc66814
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Nov 3 15:24:46 2020 @author: hamishgibbs """ import pandas as pd import re import numpy as np #%% ox = pd.read_csv('https://raw.githubusercontent.com/OxCGRT/covid-policy-tracker/master/data/OxCGRT_latest_withnotes.csv') #%% ox = ox[0:100] #%% ox.fil...
27.562092
121
0.609912
0
0
0
0
0
0
0
0
1,438
0.341001
772a5de76c01fda9fdad90cbd5de3085dda181b3
2,082
py
Python
src/wildfires/cache/same_call.py
akuhnregnier/wildfires
4d31cbdd4a1303ecebc391a35c73b8f07d8fe400
[ "MIT" ]
1
2021-01-30T15:38:32.000Z
2021-01-30T15:38:32.000Z
src/wildfires/cache/same_call.py
akuhnregnier/wildfires
4d31cbdd4a1303ecebc391a35c73b8f07d8fe400
[ "MIT" ]
null
null
null
src/wildfires/cache/same_call.py
akuhnregnier/wildfires
4d31cbdd4a1303ecebc391a35c73b8f07d8fe400
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Decorator guaranteeing uniform function calls.""" from inspect import Parameter, signature def extract_uniform_args_kwargs(f, *args, ignore=None, **kwargs): """Extract uniform arguments given a function and the parameters it is called with. Args: f (callable): Function bein...
29.742857
87
0.64121
0
0
0
0
0
0
0
0
778
0.373679
772a5f878a0f88d452d599cf44b77a39b7955775
2,862
py
Python
models/mnist_model.py
dcurry09/Tensorflow-Project-OOP
7b142046cf6d736790029092dc83c0ce0009586b
[ "Apache-2.0" ]
null
null
null
models/mnist_model.py
dcurry09/Tensorflow-Project-OOP
7b142046cf6d736790029092dc83c0ce0009586b
[ "Apache-2.0" ]
null
null
null
models/mnist_model.py
dcurry09/Tensorflow-Project-OOP
7b142046cf6d736790029092dc83c0ce0009586b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Implements a TF Model class by inheriting the Model base class. @author: David Curry @version: 1.0 """ from base.base_model import BaseModel import tensorflow as tf class MnistModel(BaseModel): def __init__(self, config): """ Constructor to initialize the TF model clas...
33.27907
144
0.621593
2,665
0.931167
0
0
0
0
0
0
1,122
0.392034
772b333423680d442d0295b333722d5a3ecb17ce
2,388
py
Python
tilemap.py
AI0702/Among-Us-clone
e75a1410c8bc9e82b41f2ab51deec373c8486e29
[ "Unlicense" ]
null
null
null
tilemap.py
AI0702/Among-Us-clone
e75a1410c8bc9e82b41f2ab51deec373c8486e29
[ "Unlicense" ]
null
null
null
tilemap.py
AI0702/Among-Us-clone
e75a1410c8bc9e82b41f2ab51deec373c8486e29
[ "Unlicense" ]
null
null
null
import pygame as pg from settings import * import pytmx class Map: def __init__(self, filename): self.data = [] with open(filename, 'rt') as f: for line in f: self.data.append(line.strip()) self.tilewidth = len(self.data[0]) self.tileheight...
32.712329
74
0.562395
2,311
0.967755
0
0
0
0
0
0
347
0.14531
772bff3df8d91dc18f1f77932eab53991f3d258d
768
py
Python
exdir/utils/path.py
knc-neural-calculus/exdir
5448d41d60c0583892ab7bcf10342d8fb2f2a26b
[ "MIT" ]
67
2017-10-25T11:08:59.000Z
2022-02-25T18:04:36.000Z
exdir/utils/path.py
knc-neural-calculus/exdir
5448d41d60c0583892ab7bcf10342d8fb2f2a26b
[ "MIT" ]
107
2017-02-03T16:50:53.000Z
2022-03-18T04:18:14.000Z
exdir/utils/path.py
knc-neural-calculus/exdir
5448d41d60c0583892ab7bcf10342d8fb2f2a26b
[ "MIT" ]
11
2018-09-11T11:05:44.000Z
2022-02-13T10:37:09.000Z
try: import pathlib except ImportError as e: try: import pathlib2 as pathlib except ImportError: raise e def name_to_asserted_group_path(name): path = pathlib.PurePosixPath(name) if path.is_absolute(): raise NotImplementedError( "Absolute paths are currently not...
24.774194
88
0.628906
0
0
0
0
0
0
0
0
173
0.22526
772c7aa25a9dad643c71fd03ef2e8fca224182d9
15,292
py
Python
bids2nda/main.py
Shotgunosine/BIDS2NDA
11d6d39ec1aafbe1e24cf8c3840c71e90aa43ee2
[ "Apache-2.0" ]
null
null
null
bids2nda/main.py
Shotgunosine/BIDS2NDA
11d6d39ec1aafbe1e24cf8c3840c71e90aa43ee2
[ "Apache-2.0" ]
null
null
null
bids2nda/main.py
Shotgunosine/BIDS2NDA
11d6d39ec1aafbe1e24cf8c3840c71e90aa43ee2
[ "Apache-2.0" ]
1
2018-08-22T15:51:33.000Z
2018-08-22T15:51:33.000Z
#!/usr/bin/env python # # import modules used here -- sys is a very standard one from __future__ import print_function import argparse import csv import logging import zipfile from collections import OrderedDict from glob import glob import os import sys import nibabel as nb import json import pandas as pd import num...
44.069164
145
0.587889
182
0.011902
0
0
0
0
0
0
3,850
0.251766
772cd907b931f0cbf42463265dfc425aa87bcb15
226
py
Python
ds2/sorting/bubblesort.py
aslisabanci/datastructures
f7952801245bc8d386a03d92a38121f558bdacca
[ "MIT" ]
159
2017-10-02T22:03:14.000Z
2022-03-10T23:02:22.000Z
ds2/sorting/bubblesort.py
aslisabanci/datastructures
f7952801245bc8d386a03d92a38121f558bdacca
[ "MIT" ]
9
2019-02-04T14:55:09.000Z
2021-06-05T13:30:28.000Z
ds2/sorting/bubblesort.py
aslisabanci/datastructures
f7952801245bc8d386a03d92a38121f558bdacca
[ "MIT" ]
49
2017-09-29T17:51:16.000Z
2022-03-10T23:12:17.000Z
def bubblesort(L): keepgoing = True while keepgoing: keepgoing = False for i in range(len(L)-1): if L[i]>L[i+1]: L[i], L[i+1] = L[i+1], L[i] keepgoing = True
25.111111
43
0.446903
0
0
0
0
0
0
0
0
0
0
772d6d4f45275295dcb92a649c3abaa349cebcf6
431
py
Python
src/features/threshold.py
HninPwint/nba-career-prediction
ffce32507cad2c4dd020c62cee7f33cf97c886f7
[ "MIT" ]
1
2021-02-01T10:38:16.000Z
2021-02-01T10:38:16.000Z
src/features/threshold.py
HninPwint/nba-career-prediction
ffce32507cad2c4dd020c62cee7f33cf97c886f7
[ "MIT" ]
3
2021-02-02T11:06:16.000Z
2021-02-06T11:44:19.000Z
src/features/threshold.py
HninPwint/nba-career-prediction
ffce32507cad2c4dd020c62cee7f33cf97c886f7
[ "MIT" ]
4
2021-01-31T10:57:23.000Z
2021-02-02T06:16:35.000Z
class threshold: def threshold(num, threshold): if ( threshold < 0 ) || ( threshold >= 1 ) error('threshold input must be in the range [0,1]'); end fractional = num - floor( num ); idx1 = fractional > threshold; idx2 = fractional <= threshold; difference = 1 - frac...
26.9375
71
0.556845
421
0.976798
0
0
0
0
0
0
44
0.102088
7730282673237879a35fb5efc177b9a2f6881b87
514
py
Python
cheers/settings/prod.py
bahattincinic/cheers
4443b23ad752c233743d71d1e035b757583a05f3
[ "MIT" ]
3
2019-03-12T03:38:13.000Z
2021-03-15T16:48:49.000Z
cheers/settings/prod.py
bahattincinic/cheers
4443b23ad752c233743d71d1e035b757583a05f3
[ "MIT" ]
null
null
null
cheers/settings/prod.py
bahattincinic/cheers
4443b23ad752c233743d71d1e035b757583a05f3
[ "MIT" ]
2
2022-01-05T11:43:42.000Z
2022-03-16T00:05:19.000Z
from .base import * import os import dj_database_url ALLOWED_HOSTS = ['*'] DEBUG = False MIDDLEWARE += [ 'whitenoise.middleware.WhiteNoiseMiddleware' ] INSTALLED_APPS = [ 'whitenoise.runserver_nostatic', ] + INSTALLED_APPS DATABASES = { 'default': dj_database_url.config() } EMAIL_USE_TLS = True EM...
17.133333
59
0.743191
0
0
0
0
0
0
0
0
149
0.289883
77319ed1468248ddab354a491c37c6712455692a
1,175
py
Python
week2/problem1.py
jgathogo/python_level_1
129411fe42aa5ef0e32d9d3d9cf2ad90e182e455
[ "Apache-2.0" ]
1
2021-06-13T09:06:24.000Z
2021-06-13T09:06:24.000Z
week2/problem1.py
jgathogo/python_level_1
129411fe42aa5ef0e32d9d3d9cf2ad90e182e455
[ "Apache-2.0" ]
null
null
null
week2/problem1.py
jgathogo/python_level_1
129411fe42aa5ef0e32d9d3d9cf2ad90e182e455
[ "Apache-2.0" ]
null
null
null
import os import sys """ Notes: - It's great that you've used functions even though we haven't reached that part of the course. Also, the naming of the function is clear and a good variable name. - Typically, the docstring for the function starts immediately after the triple quote otherwise we introduce a newline (...
37.903226
131
0.72
0
0
0
0
0
0
0
0
970
0.825532
7731f6b63900ac030b3e3491a417310c77c7bf81
2,313
py
Python
Graphs/dijkstra_algorithm.py
hemraj4545/Data-Structures-and-Algorithms-in-Python
633062369ceb3c9c1627f7e826243be7a84d4a7e
[ "MIT" ]
3
2019-10-05T07:11:06.000Z
2021-08-04T12:15:39.000Z
Graphs/dijkstra_algorithm.py
Satyagovind/Data-Structures-and-Algorithms-in-Python
e13becf63097e86dc073bc2de3b8d5586623743d
[ "MIT" ]
5
2019-10-03T08:51:34.000Z
2020-11-19T11:49:13.000Z
Graphs/dijkstra_algorithm.py
Satyagovind/Data-Structures-and-Algorithms-in-Python
e13becf63097e86dc073bc2de3b8d5586623743d
[ "MIT" ]
6
2019-09-25T17:59:34.000Z
2021-07-17T05:58:14.000Z
""" >>> G = Graph(6) >>> G.insert(0, 1, 3) >>> G.insert(0, 2, 7) >>> G.insert(0, 4, 8) >>> G.insert(0, 5, 1) >>> G.insert(1, 2, 2) >>> G.insert(1, 4, 13) >>> G.insert(2, 3, 15) >>> G.insert(3, 5, 17) >>> G.insert(4, 5, 9) >>> G.dijkstra(0)[0] [0, 3, 5, 20, 8, 1] >>> G...
30.84
108
0.531345
1,585
0.685257
0
0
0
0
0
0
890
0.384782
7732a52cf70bb1c65299ac307a32800ed068e230
854
py
Python
src/7/accessing_variables_defined_inside_a_closure/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/7/accessing_variables_defined_inside_a_closure/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/7/accessing_variables_defined_inside_a_closure/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
# Example of faking classes with a closure import sys class ClosureInstance: def __init__(self, locals=None): if locals is None: locals = sys._getframe(1).f_locals # Update instance dictionary with callables self.__dict__.update((key,value) for key, value in locals.items() ...
20.829268
73
0.580796
406
0.47541
0
0
0
0
0
0
150
0.175644
7732d1b5ac77c6e2332d3fe38f546a806fa00262
434
py
Python
miniamf/adapters/_array.py
zackw/pyamf
59ca667e37a20d8464b098f4ebec89de6f319413
[ "MIT" ]
14
2017-05-04T17:22:30.000Z
2020-01-23T06:30:19.000Z
miniamf/adapters/_array.py
zackw/pyamf
59ca667e37a20d8464b098f4ebec89de6f319413
[ "MIT" ]
1
2020-05-16T06:28:02.000Z
2020-05-16T06:28:02.000Z
miniamf/adapters/_array.py
zackw/pyamf
59ca667e37a20d8464b098f4ebec89de6f319413
[ "MIT" ]
6
2017-09-13T19:30:35.000Z
2021-07-26T14:41:57.000Z
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ U{array<http://docs.python.org/library/array.html>} adapter module. Will convert all array.array instances to a python list before encoding. All type information is lost (but degrades nicely). @since: 0.5 """ from __future__ import absolute_impor...
21.7
76
0.774194
0
0
0
0
0
0
0
0
278
0.640553
77331bed5a7248d07a4fb3851abb1699ae7ce662
929
py
Python
KristaBackup/common/schemes/__init__.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
7
2020-07-28T06:53:02.000Z
2022-03-18T05:23:03.000Z
KristaBackup/common/schemes/__init__.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-11-25T16:13:26.000Z
2020-11-25T16:13:26.000Z
KristaBackup/common/schemes/__init__.py
javister/krista-backup
f8852c20afdf483e842ff22497bdd80eedc30c78
[ "Apache-2.0" ]
1
2020-07-28T13:47:09.000Z
2020-07-28T13:47:09.000Z
from .scheme_factory import SchemeFactory from .schemes import schemes _default_scheme_id = 'default' def get_scheme(scheme_id=None): """Возвращает схему по scheme_id. Args: scheme_id: Строка, уникальное имя схемы. Returns: Scheme или None, если схемы с scheme_id не существует. ""...
19.765957
62
0.70183
0
0
0
0
0
0
0
0
488
0.4548
77342baf47053521f8e1f5ab72083d2e5edeca75
4,425
py
Python
data/utils.py
dojoteef/synst
a1842682cf757e8a501cd9cee16f20e1a14158f1
[ "BSD-3-Clause" ]
81
2019-06-03T18:04:22.000Z
2022-02-04T14:20:49.000Z
data/utils.py
dojoteef/synst
a1842682cf757e8a501cd9cee16f20e1a14158f1
[ "BSD-3-Clause" ]
7
2019-08-02T06:41:20.000Z
2020-07-31T18:31:48.000Z
data/utils.py
dojoteef/synst
a1842682cf757e8a501cd9cee16f20e1a14158f1
[ "BSD-3-Clause" ]
5
2019-06-14T04:00:25.000Z
2020-09-14T02:50:09.000Z
''' Utilities useful for datasets ''' import os from functools import partial from urllib.request import urlretrieve import requests from tqdm import tqdm from torch.utils.data.dataloader import DataLoader from torch.utils.data.sampler import BatchSampler, RandomSampler, SequentialSampler from data.sampler import Se...
33.522727
99
0.661695
820
0.185311
0
0
0
0
0
0
1,194
0.269831
7734720921a60ab16b14a023eaab75451a582742
3,092
py
Python
check_changelog.py
pllim/action-check_astropy_changelog
915511a895712098ca250cb3416e2c08ffb1a0fa
[ "BSD-3-Clause" ]
null
null
null
check_changelog.py
pllim/action-check_astropy_changelog
915511a895712098ca250cb3416e2c08ffb1a0fa
[ "BSD-3-Clause" ]
null
null
null
check_changelog.py
pllim/action-check_astropy_changelog
915511a895712098ca250cb3416e2c08ffb1a0fa
[ "BSD-3-Clause" ]
null
null
null
import json import os import sys from astropy_changelog import loads from github import Github event_name = os.environ['GITHUB_EVENT_NAME'] if event_name not in ('pull_request_target', 'pull_request'): print(f'No-op for {event_name}') sys.exit(0) event_jsonfile = os.environ['GITHUB_EVENT_PATH'] with open(ev...
31.876289
79
0.654916
0
0
0
0
0
0
0
0
1,460
0.472186
7734b23f84997ddc3801f990923aea0601af3e94
4,037
py
Python
examples/python/example-05-async.py
lukasm91/serialbox2
3a8dba366ef160df684c957e59c0a5f6b1b17244
[ "BSD-2-Clause" ]
1
2020-09-04T00:43:52.000Z
2020-09-04T00:43:52.000Z
examples/python/example-05-async.py
mlange05/serialbox2
fa72d8a39f62c7c0b76536680f7a9953957f59f2
[ "BSD-2-Clause" ]
null
null
null
examples/python/example-05-async.py
mlange05/serialbox2
fa72d8a39f62c7c0b76536680f7a9953957f59f2
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- ##===-----------------------------------------------------------------------------*- Python -*-===## ## ## S E R I A L B O X ## ## This file is distributed under terms of BSD license. ## See LICENSE.txt for more information. ## ##===-...
36.7
102
0.626951
0
0
0
0
0
0
0
0
1,676
0.41516
7734ec4ada3d6545396115d166790d365032b3f9
6,793
py
Python
johnny_cache/cache.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
3
2019-07-23T02:33:04.000Z
2021-05-25T16:57:24.000Z
johnny_cache/cache.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
null
null
null
johnny_cache/cache.py
Sonictherocketman/cache-proxy
75650fb143b365e922c03f87e388c5710ad21799
[ "MIT" ]
null
null
null
from dataclasses import dataclass from datetime import datetime, timedelta import json import os.path from dateutil.parser import parse import pytz import redis from redis.lock import LockError import requests from . import settings from .logger import logger UNCACHED_HEADERS = ( 'Age', 'Cache-Control', ...
26.02682
83
0.568968
4,917
0.723833
0
0
2,848
0.419255
0
0
1,117
0.164434
77356d7dc5fcffe3a5f270ff80863770415d901d
25,609
py
Python
discretizer.py
WeiXuanChan/PIMRMeshfree
1011dc86e7363a53a13353db8e61dca31cc07350
[ "MIT" ]
null
null
null
discretizer.py
WeiXuanChan/PIMRMeshfree
1011dc86e7363a53a13353db8e61dca31cc07350
[ "MIT" ]
null
null
null
discretizer.py
WeiXuanChan/PIMRMeshfree
1011dc86e7363a53a13353db8e61dca31cc07350
[ "MIT" ]
1
2017-05-17T09:16:24.000Z
2017-05-17T09:16:24.000Z
''' File: discretizer.py Description: function definition History: Date Programmer SAR# - Description ---------- ---------- ---------------------------- Author: w. x. chan 29Apr2016 - Created ''' import numpy as np from . import pinm as pinm from stl import mesh from mpl_toolkits import mplot3d...
43.626917
189
0.619821
4,029
0.157328
0
0
0
0
0
0
1,045
0.040806
7735b7ce4419d727877113722c02541feac1a135
881
py
Python
app/utils/urls.py
withshubh/memegen
9667e0c6737334ca8ceb4347792e3df39ae52b3a
[ "MIT" ]
null
null
null
app/utils/urls.py
withshubh/memegen
9667e0c6737334ca8ceb4347792e3df39ae52b3a
[ "MIT" ]
1
2017-01-12T23:17:27.000Z
2017-01-12T23:17:27.000Z
app/utils/urls.py
withshubh/memegen
9667e0c6737334ca8ceb4347792e3df39ae52b3a
[ "MIT" ]
1
2016-10-31T23:19:15.000Z
2016-10-31T23:19:15.000Z
from urllib.parse import parse_qs, urlencode, urlparse from .. import settings def normalize(request, url: str) -> str: parts = urlparse(url) url = f"{settings.BASE_URL}{parts.path}" if "background" in parts.query: background = parse_qs(parts.query)["background"][0] else: background =...
23.810811
62
0.61975
0
0
0
0
0
0
0
0
100
0.113507
7736dad67e1bf0f9644b352cfa50dc3d03404717
211
py
Python
src/westpa/core/reweight/__init__.py
burntyellow/adelman_ci
cca251a51b34843faed0275cce01d7a307829993
[ "MIT" ]
140
2015-01-07T23:30:36.000Z
2022-03-28T17:15:30.000Z
lib/west_tools/westpa/reweight/__init__.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
157
2015-01-03T03:38:36.000Z
2022-03-31T14:12:16.000Z
lib/west_tools/westpa/reweight/__init__.py
burntyellow/westpa
9dc62478fcef0001b9c038cd56a40b6be1b9d64a
[ "MIT" ]
56
2015-01-02T21:21:40.000Z
2022-03-03T16:27:54.000Z
''' Function(s) for the postanalysis toolkit ''' import logging log = logging.getLogger(__name__) from . import _reweight from ._reweight import (stats_process, reweight_for_c) from .matrix import FluxMatrix
17.583333
54
0.781991
0
0
0
0
0
0
0
0
48
0.227488
7738b7fae9ef9456645f45d2e182dbc304825ba1
1,573
py
Python
src/hydro/conf/settings_base.py
aolarchive/Hydro
8580aebc30694156c436e5ba7470d3fcbb46896b
[ "MIT" ]
42
2015-03-04T09:05:00.000Z
2018-12-01T15:13:48.000Z
src/hydro/conf/settings_base.py
aolarchive/Hydro
8580aebc30694156c436e5ba7470d3fcbb46896b
[ "MIT" ]
5
2015-05-11T08:18:12.000Z
2016-03-22T19:11:01.000Z
src/hydro/conf/settings_base.py
Convertro/Hydro
8580aebc30694156c436e5ba7470d3fcbb46896b
[ "MIT" ]
4
2015-03-05T09:07:27.000Z
2018-12-01T15:13:49.000Z
# Hydro settings TIME_ZONE = 'UTC' LANGUAGE_CODE = 'en-us' APPLICATION_NAME = 'HYDRO' SECRET_KEY = '8lu*6g0lg)9w!ba+a$edk)xx)x%rxgb$i1&amp;022shmi1jcgihb*' # SESSION_TIMEOUT is used in validate_session_active decorator to see if the # session is active. SECOND = 1 MINUTE = SECOND * 60 SECONDS_IN_DAY = SECOND*86400 ...
26.661017
113
0.591863
0
0
0
0
0
0
0
0
856
0.544183
7738eed30266f468e9290a38da24497ebf1d541d
357
py
Python
project/Fast/django/decorators/auth.py
fael07/DRF-Project
f65b4177e56e7209d2369ba9d6d81bfe00321052
[ "MIT" ]
null
null
null
project/Fast/django/decorators/auth.py
fael07/DRF-Project
f65b4177e56e7209d2369ba9d6d81bfe00321052
[ "MIT" ]
null
null
null
project/Fast/django/decorators/auth.py
fael07/DRF-Project
f65b4177e56e7209d2369ba9d6d81bfe00321052
[ "MIT" ]
null
null
null
from ...forms.checks import check_is_logged from django.shortcuts import redirect def no_login_required(view_function): def exec_view_function(*args, **kwargs): request = args[0] if check_is_logged(request): return redirect('/') return view_function(*args, **kwargs) ...
23.8
47
0.661064
0
0
0
0
0
0
0
0
3
0.008403
773934d535052c5583666741f88c9dfe16421a75
12,000
py
Python
gp_models.py
deepmind/active_ops
5c7b24515adadbaf89feb84232190bad96221c04
[ "Apache-2.0" ]
13
2021-12-03T19:24:11.000Z
2022-03-17T11:14:11.000Z
gp_models.py
deepmind/active_ops
5c7b24515adadbaf89feb84232190bad96221c04
[ "Apache-2.0" ]
1
2022-01-19T06:48:02.000Z
2022-01-19T06:48:02.000Z
gp_models.py
deepmind/active_ops
5c7b24515adadbaf89feb84232190bad96221c04
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DeepMind Technologies Limited. # 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 t...
37.974684
80
0.66375
11,182
0.931833
0
0
1,680
0.14
0
0
4,553
0.379417
7739a64f5308987b56c062ce417f754ae7cdc0bb
13,476
py
Python
hpvm/projects/torch2hpvm/torch2hpvm/graph_builder.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
hpvm/projects/torch2hpvm/torch2hpvm/graph_builder.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
hpvm/projects/torch2hpvm/torch2hpvm/graph_builder.py
vzyrianov/hpvm-autograd
521cc3b684531548aea75f9fe3cc673aaa4a2e90
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict from pathlib import Path from typing import Dict, Iterable, List, Optional, Tuple, Union import networkx as nx import onnx from . import graph_ir as g from .onnx_attr import get_node_shape, node_attr_to_dict, node_to_shape PathLike = Union[str, Path] GraphT = onnx.GraphProto NodeT...
39.519062
96
0.632755
9,257
0.686925
0
0
5,139
0.381345
0
0
3,559
0.264099
773a004602d8821b5d2db1868127d6d37b7dd480
4,435
py
Python
analysis/plotting/multi_sites.py
jm9e/FL_Pipeline
d9a8c3d3511817418d908b7a94ccd049c60b7b5d
[ "Apache-2.0" ]
null
null
null
analysis/plotting/multi_sites.py
jm9e/FL_Pipeline
d9a8c3d3511817418d908b7a94ccd049c60b7b5d
[ "Apache-2.0" ]
null
null
null
analysis/plotting/multi_sites.py
jm9e/FL_Pipeline
d9a8c3d3511817418d908b7a94ccd049c60b7b5d
[ "Apache-2.0" ]
null
null
null
import csv import json import matplotlib.pyplot as plt import numpy as np if __name__ == '__main__': formats = ['png', 'pdf', 'svg', 'eps'] metrics = [ {'gmetric': 'groc', 'lmetric': 'lroc', 'metric': 'AUC'}, {'gmetric': 'gauc', 'lmetric': 'lauc', 'metric': 'PRAUC'}, ] datasets = [ ...
38.903509
118
0.521308
0
0
0
0
0
0
0
0
812
0.183089
773a2176b2ba4a1a9a4e1bd585d65e2d15549d01
226
py
Python
HackerRank/CtCI/array_left_rotation.py
mahasak/Practice
7ed125087b977b034161157830b8e415d52b6ed7
[ "Unlicense" ]
null
null
null
HackerRank/CtCI/array_left_rotation.py
mahasak/Practice
7ed125087b977b034161157830b8e415d52b6ed7
[ "Unlicense" ]
null
null
null
HackerRank/CtCI/array_left_rotation.py
mahasak/Practice
7ed125087b977b034161157830b8e415d52b6ed7
[ "Unlicense" ]
null
null
null
def array_left_rotation(a, n, k): return a[k:] + a[0:k] n, k = map(int, raw_input().strip().split(' ')) a = map(int, raw_input().strip().split(' ')) answer = array_left_rotation(a, n, k); print ' '.join(map(str,answer))
25.111111
47
0.610619
0
0
0
0
0
0
0
0
9
0.039823
773a351110e170920b1633be885fbe44c1c4b850
4,127
py
Python
examples/sudoku/sudoku_cores.py
SRI-CSL/yices2_python_bindings
ff48993b6f620605afce12741f9afede94238627
[ "MIT" ]
8
2018-09-19T00:42:45.000Z
2022-03-25T12:22:01.000Z
examples/sudoku/sudoku_cores.py
SRI-CSL/yices2_python_bindings
ff48993b6f620605afce12741f9afede94238627
[ "MIT" ]
4
2020-06-05T21:44:14.000Z
2021-12-06T17:24:31.000Z
examples/sudoku/sudoku_cores.py
SRI-CSL/yices2_python_bindings
ff48993b6f620605afce12741f9afede94238627
[ "MIT" ]
3
2020-07-10T18:15:01.000Z
2020-12-16T09:50:02.000Z
#!/usr/bin/env python """Using unsat cores to give hints.""" from SudokuLib import Puzzle from Solver import Solver from yices.Yices import Yices from yices.Census import Census puzzle_blank = [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 0, 0, 0], # [ 0, 0...
24.565476
119
0.414587
0
0
0
0
0
0
0
0
716
0.173492
773b69ca25c1ef12c8384954c0ed9f9b031bb82b
2,715
py
Python
www/python/src/app.py
Destokado/funpedia
d864ac15c5ed9983d9a1373fad364d2f0ffc66fc
[ "MIT" ]
null
null
null
www/python/src/app.py
Destokado/funpedia
d864ac15c5ed9983d9a1373fad364d2f0ffc66fc
[ "MIT" ]
null
null
null
www/python/src/app.py
Destokado/funpedia
d864ac15c5ed9983d9a1373fad364d2f0ffc66fc
[ "MIT" ]
null
null
null
import os import flask import mwoauth import yaml from flask import request, Response app = flask.Flask(__name__) # Load configuration from YAML file __dir__ = os.path.dirname(__file__) app.config.update( yaml.safe_load(open(os.path.join(__dir__, 'config.yaml')))) if __name__ == '__main__': app.run_server(...
27.989691
74
0.673665
0
0
0
0
2,150
0.791897
0
0
774
0.285083
773e5f3762c89c880f8d622fb33299a5f198d29d
130
bzl
Python
test/external_repo/repo.bzl
Vertexwahn/depend_on_what_you_use
480732677a74fb7033848004d4d5015af0ad36c5
[ "MIT" ]
null
null
null
test/external_repo/repo.bzl
Vertexwahn/depend_on_what_you_use
480732677a74fb7033848004d4d5015af0ad36c5
[ "MIT" ]
null
null
null
test/external_repo/repo.bzl
Vertexwahn/depend_on_what_you_use
480732677a74fb7033848004d4d5015af0ad36c5
[ "MIT" ]
null
null
null
def load_external_repo(): native.local_repository( name = "ext_repo", path = "test/external_repo/repo", )
21.666667
41
0.615385
0
0
0
0
0
0
0
0
35
0.269231
77401bdbe34d3710ff102d672087cc5c7146f27e
1,817
py
Python
filter_plugins/general.py
stackhpc/ansible-role-luks
8c4b5f472ab0aef3d2a776d4fcd37ca17c6eac05
[ "Apache-1.1" ]
3
2020-04-14T19:57:25.000Z
2021-01-11T09:09:16.000Z
filter_plugins/general.py
stackhpc/ansible-role-luks
8c4b5f472ab0aef3d2a776d4fcd37ca17c6eac05
[ "Apache-1.1" ]
4
2020-08-12T10:24:25.000Z
2022-01-17T17:48:28.000Z
filter_plugins/general.py
stackhpc/ansible-role-luks
8c4b5f472ab0aef3d2a776d4fcd37ca17c6eac05
[ "Apache-1.1" ]
2
2021-06-17T21:57:42.000Z
2022-02-20T08:02:43.000Z
# Copyright (c) 2020 StackHPC 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-2.0 # # Unless required by applicable law or agreed to in wr...
28.84127
79
0.690149
217
0.119428
0
0
538
0.296092
0
0
842
0.463401
77415032b1eca6d95f7e905db147fe61fa6860f9
3,864
py
Python
aws-dev/awsdev8/flaskstart.py
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
3f76e3d3df6797705b5b30ae574fe678250d5e92
[ "MIT" ]
13
2020-02-02T13:53:50.000Z
2022-03-20T19:50:02.000Z
aws-dev/awsdev8/flaskstart.py
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
3f76e3d3df6797705b5b30ae574fe678250d5e92
[ "MIT" ]
2
2020-03-29T19:08:04.000Z
2021-06-02T00:57:44.000Z
aws-dev/awsdev8/flaskstart.py
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
3f76e3d3df6797705b5b30ae574fe678250d5e92
[ "MIT" ]
10
2019-12-25T20:42:37.000Z
2021-11-17T15:19:00.000Z
#!/usr/bin/env python from flask import Flask, request,Response import logging import os import json import cognitoHelper as cog #logging config logging.basicConfig(format='%(asctime)s %(levelname)-8s %(message)s',level=logging.INFO,datefmt='%Y-%m-%d %H:%M:%S') logger = logging.getLogger(__name__) #globals MODULE = "...
32.2
116
0.607143
0
0
0
0
2,947
0.762681
0
0
980
0.253623
77438c9d6cdc3cb8fd8940ebf432371649706560
4,204
py
Python
hallo/function.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/function.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/function.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from abc import ABC, abstractmethod from typing import Set, Type, Optional from hallo.events import ( EventSecond, EventMinute, EventHour, EventDay, EventPing, EventMessage, EventJoin, EventLeave, EventQuit, EventNameChange, EventKick, EventInvite, EventNotice, E...
36.556522
119
0.670076
3,834
0.911989
0
0
637
0.151522
0
0
2,149
0.51118
774895ccb2d658440364d2b85b233c22dd7dda42
4,332
py
Python
mbl-core/tests/devices/open-ports-checker/mbl/open_ports_checker/open_ports_checker.py
edmund-troche/mbl-core
70fd55691301792169fb1feafc2a5e4ba107ee97
[ "Apache-2.0", "BSD-3-Clause" ]
5
2019-08-25T06:18:25.000Z
2020-03-20T14:40:18.000Z
mbl-core/tests/devices/open-ports-checker/mbl/open_ports_checker/open_ports_checker.py
edmund-troche/mbl-core
70fd55691301792169fb1feafc2a5e4ba107ee97
[ "Apache-2.0", "BSD-3-Clause" ]
39
2019-06-03T14:31:20.000Z
2020-01-13T09:00:04.000Z
mbl-core/tests/devices/open-ports-checker/mbl/open_ports_checker/open_ports_checker.py
edmund-troche/mbl-core
70fd55691301792169fb1feafc2a5e4ba107ee97
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-29T06:12:35.000Z
2020-06-17T13:56:39.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 Arm Limited and Contributors. All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause """This script checks for checker for unwanted TCP/UDP open ports.""" import os import json import logging from enum import Enum import mbl.open_ports_checker.connection as connect...
33.84375
78
0.629732
3,931
0.907433
0
0
0
0
0
0
1,729
0.399123
77499e42f9ca78c74d1e6fe87f05359b0f2d3da1
1,036
py
Python
eval_odom.py
nikola3794/kitti-odom-eval
c808874dc18db3b60b8c711e55546f09af553659
[ "MIT" ]
110
2019-10-21T02:41:57.000Z
2022-03-30T20:51:37.000Z
eval_odom.py
nikola3794/kitti-odom-eval
c808874dc18db3b60b8c711e55546f09af553659
[ "MIT" ]
10
2020-01-02T09:42:45.000Z
2021-11-19T11:53:05.000Z
eval_odom.py
nikola3794/kitti-odom-eval
c808874dc18db3b60b8c711e55546f09af553659
[ "MIT" ]
22
2019-11-18T07:40:18.000Z
2022-02-20T12:31:29.000Z
# Copyright (C) Huangying Zhan 2019. All rights reserved. import argparse from kitti_odometry import KittiEvalOdom parser = argparse.ArgumentParser(description='KITTI evaluation') parser.add_argument('--result', type=str, required=True, help="Result directory") parser.add_argument('--align', type...
29.6
72
0.59556
0
0
0
0
0
0
0
0
284
0.274131
7749a97981a9d33396783bf41834fff772524e60
9,115
py
Python
flappy_bird.py
wandreuscv/IA_learn_flappy_bird
46491f6336aba04af241b78edfd288f59d4b0aec
[ "MIT" ]
null
null
null
flappy_bird.py
wandreuscv/IA_learn_flappy_bird
46491f6336aba04af241b78edfd288f59d4b0aec
[ "MIT" ]
null
null
null
flappy_bird.py
wandreuscv/IA_learn_flappy_bird
46491f6336aba04af241b78edfd288f59d4b0aec
[ "MIT" ]
null
null
null
import pygame import random import os import time import neat import visualize import pickle import bcolors as b pygame.font.init() SCORE_MAX = [0, 0, 0] WIN_WIDTH = 600 WIN_HEIGHT = 800 FLOOR = 730 STAT_FONT = pygame.font.SysFont("comicsans", 50) END_FONT = pygame.font.SysFont("comicsans", 70) DRAW_LINES = False WI...
28.844937
207
0.576961
3,536
0.387762
0
0
0
0
0
0
311
0.034105
774a3cbe3570598a07718acd612708e7b85dbeed
34,273
py
Python
src/cd.py
laura-rieger/deep-explanation-penalization
ac82aa4717b24e0ccf48ecbbf4c05d7e77a6d88f
[ "MIT" ]
105
2019-10-01T19:00:35.000Z
2022-03-25T14:03:32.000Z
src/cd.py
laura-rieger/deep-explanation-penalization
ac82aa4717b24e0ccf48ecbbf4c05d7e77a6d88f
[ "MIT" ]
11
2020-01-13T15:49:13.000Z
2021-12-28T11:36:21.000Z
src/cd.py
laura-rieger/deep-explanation-penalization
ac82aa4717b24e0ccf48ecbbf4c05d7e77a6d88f
[ "MIT" ]
16
2019-12-22T20:53:33.000Z
2022-03-15T14:17:50.000Z
#original from https://github.com/csinva/hierarchical-dnn-interpretations/blob/master/acd/scores/cd.py import torch import torch.nn.functional as F from copy import deepcopy from torch import sigmoid from torch import tanh import numpy as np stabilizing_constant = 10e-20 def propagate_three(a, b, c, activation): ...
49.599132
190
0.664663
0
0
0
0
0
0
0
0
6,942
0.20255
774b06809a445d82f24ad6693ec8a85d76b2e232
2,554
py
Python
spacy/lang/pt/stop_words.py
cedar101/spaCy
66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95
[ "MIT" ]
12
2019-03-20T20:43:47.000Z
2020-04-13T11:10:52.000Z
spacy/lang/pt/stop_words.py
cedar101/spaCy
66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95
[ "MIT" ]
13
2018-06-05T11:54:40.000Z
2019-07-02T11:33:14.000Z
spacy/lang/pt/stop_words.py
cedar101/spaCy
66e22098a8bb77cbe527b1a4a3c69ec1cfb56f95
[ "MIT" ]
2
2020-02-15T18:33:35.000Z
2022-02-13T14:11:41.000Z
# coding: utf8 from __future__ import unicode_literals STOP_WORDS = set( """ à às área acerca ademais adeus agora ainda algo algumas alguns ali além ambas ambos antes ao aos apenas apoia apoio apontar após aquela aquelas aquele aqueles aqui aquilo as assim através atrás até aí baixo bastante bem boa bom breve c...
35.971831
89
0.817541
0
0
0
0
0
0
0
0
2,541
0.970959
774b9166abe0ad0a7b9b9dd1b88e0f21b94c408a
13,906
py
Python
miaschiev_ui.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
10
2015-06-13T17:27:18.000Z
2021-02-14T13:03:11.000Z
miaschiev_ui.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
2
2020-07-11T18:34:57.000Z
2021-03-07T02:27:46.000Z
miaschiev_ui.py
DarkStarSword/miasmata-fixes
d320f5e68cd5ebabd14efd7af021afa7e63d161e
[ "MIT" ]
1
2016-03-23T22:26:23.000Z
2016-03-23T22:26:23.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'miaschiev.ui' # # Created: Wed Aug 06 17:13:17 2014 # by: pyside-uic 0.2.15 running on PySide 1.2.1 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_Miaschiev(object): ...
64.082949
151
0.718898
13,615
0.979074
0
0
0
0
0
0
1,213
0.087229
774bad54e921796a93026ea0248ace9747a3f917
1,673
py
Python
layers/db/db/tests/test_db.py
NASA-IMPACT/hls-sentinel2-downloader-serverless
e3e4f542fc805c6259f20a6dd932c98cccd4144c
[ "Apache-2.0" ]
null
null
null
layers/db/db/tests/test_db.py
NASA-IMPACT/hls-sentinel2-downloader-serverless
e3e4f542fc805c6259f20a6dd932c98cccd4144c
[ "Apache-2.0" ]
2
2021-07-23T00:49:42.000Z
2021-07-23T00:51:25.000Z
layers/db/db/tests/test_db.py
NASA-IMPACT/hls-sentinel2-downloader-serverless
e3e4f542fc805c6259f20a6dd932c98cccd4144c
[ "Apache-2.0" ]
null
null
null
import os import pytest from assertpy import assert_that from ..models.granule import Granule from ..models.granule_count import GranuleCount from ..models.status import Status from ..session import _get_url, get_session, get_session_maker @pytest.mark.usefixtures("db_connection_secret") def test_that_db_correctly_...
35.595745
71
0.780036
0
0
0
0
1,419
0.848177
0
0
176
0.1052
774d4b0cb7fee10f0f0fa488de8d167fefa2fbd2
1,478
py
Python
dexp/processing/utils/_test/test_normalise.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
16
2021-04-21T14:09:19.000Z
2022-03-22T02:30:59.000Z
dexp/processing/utils/_test/test_normalise.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
28
2021-04-15T17:43:08.000Z
2022-03-29T16:08:35.000Z
dexp/processing/utils/_test/test_normalise.py
haesleinhuepf/dexp
2ea84f3db323724588fac565fae56f0d522bc5ca
[ "BSD-3-Clause" ]
3
2022-02-08T17:41:30.000Z
2022-03-18T15:32:27.000Z
import numpy as np import pytest from arbol import aprint from dexp.processing.utils.normalise import Normalise from dexp.utils.backends import Backend from dexp.utils.testing.testing import execute_both_backends @execute_both_backends @pytest.mark.parametrize( "dexp_nuclei_background_data", [dict(length_xy=...
34.372093
106
0.725981
0
0
0
0
1,261
0.85318
0
0
79
0.053451
774ee32b7bd61777145b97c33929e59c467687c5
64
py
Python
pyCameras/__init__.py
imr-luh/pyCameras
30fc220022b0562f5244d9fd5f436b8630abe4cd
[ "MIT" ]
2
2019-05-10T08:43:38.000Z
2019-05-17T16:00:13.000Z
pyCameras/__init__.py
imr-luh/pyCameras
30fc220022b0562f5244d9fd5f436b8630abe4cd
[ "MIT" ]
null
null
null
pyCameras/__init__.py
imr-luh/pyCameras
30fc220022b0562f5244d9fd5f436b8630abe4cd
[ "MIT" ]
2
2020-03-10T17:15:08.000Z
2020-04-24T09:02:21.000Z
__version__ = '0.0.1' from . import utils from .utils import *
12.8
21
0.6875
0
0
0
0
0
0
0
0
7
0.109375
774f04287f666d1e053a72b91ac8437dc815a95d
427
py
Python
sdfspu/sdf_net.py
soundmaking/sdfspu
164af2602d07b18c45a8182cd5e9638628c7e165
[ "MIT" ]
null
null
null
sdfspu/sdf_net.py
soundmaking/sdfspu
164af2602d07b18c45a8182cd5e9638628c7e165
[ "MIT" ]
null
null
null
sdfspu/sdf_net.py
soundmaking/sdfspu
164af2602d07b18c45a8182cd5e9638628c7e165
[ "MIT" ]
null
null
null
import socket def get_ip(): # https://stackoverflow.com/a/28950776/9471339 s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: # doesn't even have to be reachable s.connect(('10.255.255.255', 1)) IP = s.getsockname()[0] except Exception: IP = '127.0.0.1' final...
21.35
56
0.58548
0
0
0
0
0
0
0
0
138
0.323185
775087ff0c58dbd29b82c1af2c4f5dcf0ce17d5d
844
py
Python
pysparkling/sql/expressions/literals.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
260
2015-05-11T18:08:44.000Z
2022-01-15T13:19:43.000Z
pysparkling/sql/expressions/literals.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
79
2015-06-02T09:53:25.000Z
2021-09-26T11:18:18.000Z
pysparkling/sql/expressions/literals.py
ptallada/pysparkling
f0e8e8d039f3313c2693b7c7576cb1b7ba5a6d78
[ "Apache-2.0" ]
50
2015-06-06T17:00:58.000Z
2022-01-15T13:19:18.000Z
from ..utils import AnalysisException from .expressions import Expression class Literal(Expression): def __init__(self, value): super().__init__() self.value = value def eval(self, row, schema): return self.value def __str__(self): if self.value is True: retur...
25.575758
84
0.582938
743
0.880332
0
0
0
0
0
0
114
0.135071
7750af67ab2df68b6c19d4aa9f6c7f583c889749
3,812
py
Python
filter_ICA.py
MadsJensen/RP_scripts
b3f7afb27b6346ee209e4bfcd7d52049d69d2eaf
[ "BSD-3-Clause" ]
null
null
null
filter_ICA.py
MadsJensen/RP_scripts
b3f7afb27b6346ee209e4bfcd7d52049d69d2eaf
[ "BSD-3-Clause" ]
null
null
null
filter_ICA.py
MadsJensen/RP_scripts
b3f7afb27b6346ee209e4bfcd7d52049d69d2eaf
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Oct 8 14:45:02 2014. @author: mje """ import mne import sys from mne.io import Raw from mne.preprocessing import ICA, create_eog_epochs, create_ecg_epochs import matplotlib matplotlib.use('Agg') from my_settings import * subject = sys.argv[1] # SETTINGS n_jobs = 1 l_fr...
32.033613
79
0.594439
0
0
0
0
0
0
0
0
1,000
0.262329
77526fa74a8b3626dd46cca703ea3aecf100938a
428
py
Python
typish/_types.py
georgeharker/typish
1c043beb74d89e62b10339a2a964f60ec175adfa
[ "MIT" ]
16
2019-08-03T13:57:17.000Z
2021-11-08T11:51:52.000Z
typish/_types.py
georgeharker/typish
1c043beb74d89e62b10339a2a964f60ec175adfa
[ "MIT" ]
27
2019-09-11T13:24:38.000Z
2022-02-11T07:04:12.000Z
typish/_types.py
georgeharker/typish
1c043beb74d89e62b10339a2a964f60ec175adfa
[ "MIT" ]
7
2019-11-18T16:50:09.000Z
2021-11-01T14:34:39.000Z
""" PRIVATE MODULE: do not import (from) it directly. This module contains types that are not available by default. """ import typing from inspect import Parameter T = typing.TypeVar('T') KT = typing.TypeVar('KT') VT = typing.TypeVar('VT') Empty = Parameter.empty Unknown = type('Unknown', (Empty, ), {}) Module = typ...
22.526316
61
0.703271
0
0
0
0
0
0
0
0
167
0.390187
7752a70c09c370c66d0c734d9856294edf75f0f4
11,172
py
Python
avidaspatial/transform_data.py
emilydolson/avida-spatial-tools
7beb0166ccefad5fa722215b030ac2a53d62b59e
[ "MIT" ]
1
2018-06-12T18:31:40.000Z
2018-06-12T18:31:40.000Z
avidaspatial/transform_data.py
emilydolson/avida-spatial-tools
7beb0166ccefad5fa722215b030ac2a53d62b59e
[ "MIT" ]
1
2016-02-03T23:37:09.000Z
2016-02-03T23:37:09.000Z
avidaspatial/transform_data.py
emilydolson/avida-spatial-tools
7beb0166ccefad5fa722215b030ac2a53d62b59e
[ "MIT" ]
null
null
null
from .utils import * from scipy.spatial.distance import pdist import scipy.cluster.hierarchy as hierarchicalcluster def rank_environment_and_phenotypes(environment, phenotypes, k=15): """ Clusters sets of resources/tasks using a weighted hamming distance such that you can have few enough values to give ea...
36.993377
79
0.669083
0
0
0
0
0
0
0
0
5,989
0.536072
775334a35368377b6411b76e0cda684325c797b3
119
py
Python
Python/ComplexPaths02/src/main/MainModule01.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
22
2015-02-26T09:07:18.000Z
2020-05-10T16:22:05.000Z
Python/ComplexPaths02/src/main/MainModule01.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
123
2016-04-05T18:32:41.000Z
2022-03-13T21:09:21.000Z
Python/ComplexPaths02/src/main/MainModule01.py
tduoth/JsObjects
eb3e2a8b1f47d0da53c8b1a85a7949269711932f
[ "MIT" ]
56
2015-03-19T22:26:37.000Z
2021-12-06T02:52:02.000Z
''' Created on May 26, 2012 @author: Charlie ''' class MainModule01(object): def __init__(self): pass
13.222222
27
0.613445
69
0.579832
0
0
0
0
0
0
49
0.411765
7753e7fec1d5a58812ddcacb76ec8e3307a0b943
2,109
py
Python
examples/image_dataset_create.py
praekelt/feersum-nlu-api-wrappers
6580e2bab2c8a764fe868a505330b3fee6029074
[ "BSD-3-Clause" ]
9
2017-10-10T12:24:23.000Z
2021-08-18T14:07:51.000Z
examples/image_dataset_create.py
praekelt/feersum-nlu-api-wrappers
6580e2bab2c8a764fe868a505330b3fee6029074
[ "BSD-3-Clause" ]
1
2020-12-06T11:03:25.000Z
2021-04-14T05:21:23.000Z
examples/image_dataset_create.py
praekelt/feersum-nlu-api-wrappers
6580e2bab2c8a764fe868a505330b3fee6029074
[ "BSD-3-Clause" ]
2
2019-02-12T08:26:06.000Z
2022-02-01T09:39:47.000Z
""" Example: Shows how to create and use an image dataset. """ import urllib3 import feersum_nlu from feersum_nlu.rest import ApiException from examples import feersumnlu_host, feersum_nlu_auth_token # from feersum_nlu_util import image_utils # Configure API key authorization: APIKeyHeader configuration ...
35.745763
95
0.699384
0
0
0
0
0
0
0
0
963
0.456615
775402adbd62e329a7b317ab8391c40e03b9d6e5
2,536
py
Python
tests/test_resource_base.py
neteler/actinia_statistic_plugin
428d191830bb59a8927fde68fd1e4439331fef97
[ "MIT" ]
3
2018-10-16T14:32:07.000Z
2020-03-24T18:07:02.000Z
tests/test_resource_base.py
neteler/actinia_statistic_plugin
428d191830bb59a8927fde68fd1e4439331fef97
[ "MIT" ]
7
2019-10-01T07:46:52.000Z
2022-03-24T09:26:53.000Z
tests/test_resource_base.py
neteler/actinia_statistic_plugin
428d191830bb59a8927fde68fd1e4439331fef97
[ "MIT" ]
4
2018-10-26T11:52:09.000Z
2020-03-24T18:07:03.000Z
# -*- coding: utf-8 -*- import atexit import os import signal import time from flask_restful import Api from actinia_core.testsuite import ActiniaTestCaseBase, URL_PREFIX from actinia_core.core.common.config import global_config from actinia_core.core.common.app import flask_app, flask_api from actinia_statistic_plugin...
32.512821
79
0.742902
64
0.025207
0
0
0
0
0
0
884
0.348169
7755642e2df8bfea6999683ed9d91b14f6530187
5,560
py
Python
interpreter/code/tests/test_basic.py
yunkai123/my-500lines-notes
60fd3b18919b5bcb90ddece9e088c1c152438972
[ "MIT" ]
null
null
null
interpreter/code/tests/test_basic.py
yunkai123/my-500lines-notes
60fd3b18919b5bcb90ddece9e088c1c152438972
[ "MIT" ]
null
null
null
interpreter/code/tests/test_basic.py
yunkai123/my-500lines-notes
60fd3b18919b5bcb90ddece9e088c1c152438972
[ "MIT" ]
null
null
null
""" Byterund 的基本测试""" import vmtest class It(vmtest.VmTestCase): def test1(self): self.assert_ok("""\ class Thing(object): @staticmethod def smeth(x): print(x) @classmethod def cmeth(cls, x): ...
25.62212
55
0.380935
5,520
0.991023
0
0
0
0
0
0
3,991
0.716517
7756950ec6fb5c1205ec5e03552facad7a4cc3ac
387
py
Python
core/recc/compile/future.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/compile/future.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/compile/future.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from importlib import import_module def get_annotations_compiler_flag() -> int: future = import_module("__future__") assert future is not None annotations = getattr(future, "annotations") assert annotations is not None compiler_flag = getattr(annotations, "compiler_flag") ...
27.642857
57
0.731266
0
0
0
0
0
0
0
0
63
0.162791
77576a10d402216d2e59b9e687478fa26a161c83
10,503
py
Python
genesis/objects/integrate.py
leifdenby/uclales-extractor
6147533e25b3b417c744bd814d2407a6588cf995
[ "BSD-3-Clause" ]
null
null
null
genesis/objects/integrate.py
leifdenby/uclales-extractor
6147533e25b3b417c744bd814d2407a6588cf995
[ "BSD-3-Clause" ]
null
null
null
genesis/objects/integrate.py
leifdenby/uclales-extractor
6147533e25b3b417c744bd814d2407a6588cf995
[ "BSD-3-Clause" ]
null
null
null
import os import warnings import xarray as xr import numpy as np # forget about using dask for now, dask_ndmeasure takes a huge amount of memory # try: # # raise ImportError # # import dask_ndmeasure as ndimage # # register a progressbar so we can see progress of dask'ed operations with xarray # from dask.diagnostics...
32.719626
88
0.63677
0
0
0
0
0
0
0
0
3,727
0.354851
775775cc7a45c42108314eb9aa9a67d61fab3d99
181
py
Python
current_console.py
jonasitzmann/ann-numpy
bb6d22667158687ca2d3de92abbeee0e129fa18e
[ "MIT" ]
null
null
null
current_console.py
jonasitzmann/ann-numpy
bb6d22667158687ca2d3de92abbeee0e129fa18e
[ "MIT" ]
null
null
null
current_console.py
jonasitzmann/ann-numpy
bb6d22667158687ca2d3de92abbeee0e129fa18e
[ "MIT" ]
null
null
null
from ann import * x, y = utils.get_mnist_samples(100) m = Model(x[0].shape) m.add(Conv2D()) m.add(MaxPooling()) m.add(Flatten()) m.add(Dense(15)) m.add(Dense(10, a_func='sigmoid'))
20.111111
35
0.679558
0
0
0
0
0
0
0
0
9
0.049724
77579ad9466e36640c85ebfa6cdc492815ea188c
1,923
py
Python
scripts/addon/generate_all.py
mozilla-releng/staging-mozilla-vpn-client
f31d3762a607ccf2d7c6a016f7b800305fbf0113
[ "Apache-2.0" ]
null
null
null
scripts/addon/generate_all.py
mozilla-releng/staging-mozilla-vpn-client
f31d3762a607ccf2d7c6a016f7b800305fbf0113
[ "Apache-2.0" ]
null
null
null
scripts/addon/generate_all.py
mozilla-releng/staging-mozilla-vpn-client
f31d3762a607ccf2d7c6a016f7b800305fbf0113
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python3 # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import argparse import hashlib import json import os import subprocess import sys parser = argp...
30.046875
82
0.696828
0
0
0
0
0
0
0
0
510
0.265211
7758e5a6fe24718f7edc88625d84b3904624aa2d
8,310
py
Python
meson_test.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
meson_test.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
meson_test.py
tp-m/meson
2d1aa395e86848ca948d30d83cc5357777e5b490
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2013-2015 The Meson development team # 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...
36.28821
97
0.601685
250
0.030084
0
0
0
0
0
0
1,626
0.195668
77592dd99f28334c1a356341edde3b576368b416
1,085
py
Python
2020/d05_1.py
PaulWichser/adventofcode
628d962a65188310af136c8b88acbdbd5dc94352
[ "MIT" ]
null
null
null
2020/d05_1.py
PaulWichser/adventofcode
628d962a65188310af136c8b88acbdbd5dc94352
[ "MIT" ]
null
null
null
2020/d05_1.py
PaulWichser/adventofcode
628d962a65188310af136c8b88acbdbd5dc94352
[ "MIT" ]
null
null
null
import fileimp # divide rows 0-127 # F = lower half # B = upper half # divide columns 0-7 # R = upper half # L = lower half # seat ID = row * 8 + col # list of IDs # max list def idcalc(list): seats = [] for i in list: row = '' col = '' for j in i: if j == 'F': ...
22.604167
60
0.453456
0
0
0
0
0
0
0
0
321
0.295853
7759ab5bb6b2419c0cf09ba0f8c0454651c021e4
3,618
py
Python
src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforge/simulation/neuron/core/neuronsimulationenvironment.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
37.6875
75
0.725263
1,589
0.439193
0
0
311
0.085959
0
0
1,516
0.419016
775a75fe1fae66dbea733bd14ae845c43584999a
766
py
Python
news_topic_modeling_service/backfill.py
rishavgiri6/News4U
d426eba97039a3d1afd90ecd14c454856b91f9d8
[ "Unlicense" ]
2
2021-08-02T09:41:42.000Z
2021-08-10T05:26:52.000Z
news_topic_modeling_service/backfill.py
rishavgiri6/News4U
d426eba97039a3d1afd90ecd14c454856b91f9d8
[ "Unlicense" ]
null
null
null
news_topic_modeling_service/backfill.py
rishavgiri6/News4U
d426eba97039a3d1afd90ecd14c454856b91f9d8
[ "Unlicense" ]
null
null
null
import os import sys # import common package in parent directory sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common')) import mongodb_client import news_topic_modeling_service_client if __name__ == '__main__': db = mongodb_client.get_db() cursor = db['news'].find({}) count = 0 for ...
30.64
81
0.620104
0
0
0
0
0
0
0
0
150
0.195822
775cbe05f1e23d8b5ab980d33a068bbf4e214d9f
2,559
py
Python
server/imagemagick-server/server.py
brygga-dev/workdir2
0b6e8f54a3d44ef8dedefd1bdc95f193467d239e
[ "MIT" ]
null
null
null
server/imagemagick-server/server.py
brygga-dev/workdir2
0b6e8f54a3d44ef8dedefd1bdc95f193467d239e
[ "MIT" ]
null
null
null
server/imagemagick-server/server.py
brygga-dev/workdir2
0b6e8f54a3d44ef8dedefd1bdc95f193467d239e
[ "MIT" ]
null
null
null
from http.server import BaseHTTPRequestHandler,HTTPServer from socketserver import ThreadingMixIn import threading import subprocess import urllib.parse # todo: factor out common server stuff # todo: these should probably have limited # access to files, so something like only # uploads dir may be good. # then there i...
30.831325
66
0.5932
945
0.369285
0
0
0
0
0
0
800
0.312622
775d1ff6bf052dcb5d8a678cb806eb618f0ebf92
26,692
py
Python
pysnmp-with-texts/GENERIC-3COM-VLAN-MIB-1-0-7.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/GENERIC-3COM-VLAN-MIB-1-0-7.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/GENERIC-3COM-VLAN-MIB-1-0-7.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module GENERIC-3COM-VLAN-MIB-1-0-7 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GENERIC-3COM-VLAN-MIB-1-0-7 # Produced by pysmi-0.3.4 at Wed May 1 11:09:00 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python versio...
200.691729
1,838
0.790536
2,019
0.075641
0
0
0
0
0
0
15,453
0.578938
775ee35015e7fb1a1d56468e759eea466f2753f3
388
py
Python
uberlearner/main/api/authentication.py
Uberlearner/uberlearner
421391c3c838bf8f88eed47646226fe8dc22d061
[ "MIT" ]
1
2020-10-17T04:41:47.000Z
2020-10-17T04:41:47.000Z
uberlearner/main/api/authentication.py
Uberlearner/uberlearner
421391c3c838bf8f88eed47646226fe8dc22d061
[ "MIT" ]
null
null
null
uberlearner/main/api/authentication.py
Uberlearner/uberlearner
421391c3c838bf8f88eed47646226fe8dc22d061
[ "MIT" ]
null
null
null
from tastypie.authentication import SessionAuthentication class UberAuthentication(SessionAuthentication): """ Handles authentication for the course resources. """ def is_authenticated(self, request, **kwargs): if request.method == 'GET': return True else: return...
35.272727
86
0.693299
329
0.847938
0
0
0
0
0
0
69
0.177835
91f204cefc1e11f78d143865718a0720e6b49302
135
py
Python
libs/yowsup/yowsup/yowsup/layers/axolotl/__init__.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
22
2017-07-14T20:01:17.000Z
2022-03-08T14:22:39.000Z
libs/yowsup/yowsup/yowsup/layers/axolotl/__init__.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
6
2017-07-14T21:03:50.000Z
2021-06-10T19:08:32.000Z
libs/yowsup/yowsup/yowsup/layers/axolotl/__init__.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
13
2017-07-14T20:13:14.000Z
2020-11-12T08:06:05.000Z
from .layer_send import AxolotlSendLayer from .layer_control import AxolotlControlLayer from .layer_receive import AxolotlReceivelayer
33.75
46
0.888889
0
0
0
0
0
0
0
0
0
0
91f2badbe46ccc2afa070e8ea0d95aa258e9f159
3,199
py
Python
accounts/models.py
MrEscape54/CRM
36be1fcc74bbfddf343dc0b1b7f8af83be3fe8d3
[ "MIT" ]
null
null
null
accounts/models.py
MrEscape54/CRM
36be1fcc74bbfddf343dc0b1b7f8af83be3fe8d3
[ "MIT" ]
null
null
null
accounts/models.py
MrEscape54/CRM
36be1fcc74bbfddf343dc0b1b7f8af83be3fe8d3
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ from django.core.validators import RegexValidator from core import utils from core.models import User from contacts.models import Contact class Acti...
42.092105
140
0.736168
2,879
0.899969
0
0
0
0
0
0
494
0.154423
91f3e934e2bf21d69c8e84878b0f0bb1bc0e52af
104
py
Python
Courses/HSEPython/8 week/5.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
Courses/HSEPython/8 week/5.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
Courses/HSEPython/8 week/5.py
searayeah/sublime-snippets
deff53a06948691cd5e5d7dcfa85515ddd8fab0b
[ "MIT" ]
null
null
null
from functools import reduce print(reduce(lambda x, y: x * (y**5), list(map(int, input().split())), 1))
34.666667
74
0.653846
0
0
0
0
0
0
0
0
0
0
91f411263bdba1a973d2748f05c7f918cdbad645
1,176
py
Python
ros/src/twist_controller/twist_controller.py
SunshengGu/CarND-capstone-team-roboturtles
6ceb896f5af095223910a8366b0747a4c0bba910
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
SunshengGu/CarND-capstone-team-roboturtles
6ceb896f5af095223910a8366b0747a4c0bba910
[ "MIT" ]
null
null
null
ros/src/twist_controller/twist_controller.py
SunshengGu/CarND-capstone-team-roboturtles
6ceb896f5af095223910a8366b0747a4c0bba910
[ "MIT" ]
2
2019-02-05T02:55:57.000Z
2019-02-10T20:12:41.000Z
from yaw_controller import YawController from pid import PID GAS_DENSITY = 2.858 ONE_MPH = 0.44704 class Controller(object): def __init__(self, wheel_base, steer_ratio,max_lat_accel,max_steer_angle, accel_limit,decel_limit): self.yaw = YawController(wheel_base, steer_ratio, 0., max_lat_accel, m...
25.021277
104
0.681973
1,071
0.910714
0
0
0
0
0
0
25
0.021259
91f45538afa3b794621cc7c469da195bbca2956a
627
py
Python
samples/cordic/cordic_golden.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
236
2019-05-19T01:48:11.000Z
2022-03-31T09:03:54.000Z
samples/cordic/cordic_golden.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
248
2019-05-17T19:18:36.000Z
2022-03-30T21:25:47.000Z
samples/cordic/cordic_golden.py
hj424/heterocl
e51b8f7f65ae6ad55c0c2426ab7192c3d8f6702b
[ "Apache-2.0" ]
85
2019-05-17T20:09:27.000Z
2022-02-28T20:19:00.000Z
import numpy as np golden = np.array([ [100.0, 100.0], [206.226840616, 179.610387213], [1190.25124092, 1197.15702025], [1250.76639667, 1250.3933971], [1261.76760093, 1250.17718583], [1237.4846285, 1237.56490579], [1273.56730356, 1266.82141705], [1272.899992, 1259.92589118], [1.17000308922e-06, ...
31.35
41
0.700159
0
0
0
0
0
0
0
0
0
0
91f4996456aabf6bbe1ac697a26d604a9883879d
98
py
Python
src/game_client/conf.py
adapiekarska/network-pong
c6a88b66570f26aea9c9976eb16953c480b846ec
[ "MIT" ]
2
2018-11-14T17:25:24.000Z
2019-12-09T17:57:30.000Z
src/game_client/conf.py
adapiekarska/network-pong
c6a88b66570f26aea9c9976eb16953c480b846ec
[ "MIT" ]
null
null
null
src/game_client/conf.py
adapiekarska/network-pong
c6a88b66570f26aea9c9976eb16953c480b846ec
[ "MIT" ]
null
null
null
""" User configuration file for the client. """ SERVER_ADDRESS = "127.0.0.1" SERVER_PORT = 50000
14
39
0.704082
0
0
0
0
0
0
0
0
58
0.591837
91f534930f8a5265738ba0e1d6c22b1ba0b55ac6
3,479
py
Python
build/lib/Element/Element.py
sunnyyukaige/APP_automation_core
b53ad737025a1af44746ea5f1c9a4cbe65d7cfb4
[ "MIT" ]
null
null
null
build/lib/Element/Element.py
sunnyyukaige/APP_automation_core
b53ad737025a1af44746ea5f1c9a4cbe65d7cfb4
[ "MIT" ]
null
null
null
build/lib/Element/Element.py
sunnyyukaige/APP_automation_core
b53ad737025a1af44746ea5f1c9a4cbe65d7cfb4
[ "MIT" ]
null
null
null
from selenium.common.exceptions import WebDriverException, NoSuchElementException from Element.Waitor import Waitor from Element.Find import Find from Utilitys.WaitUtils import WaitUtils class Element(Find): def __init__(self, driver): Find.__init__(self) self.driver = driver self.interva...
32.514019
84
0.596148
3,289
0.945387
0
0
0
0
0
0
41
0.011785
91f55da34b50862c7008aa6fdd44283def33131b
2,047
py
Python
config/settings/prd.py
zhenghuihu/django-skeleton
548019b2f5826593f2f270c96f8b14ec19280c51
[ "MIT" ]
null
null
null
config/settings/prd.py
zhenghuihu/django-skeleton
548019b2f5826593f2f270c96f8b14ec19280c51
[ "MIT" ]
null
null
null
config/settings/prd.py
zhenghuihu/django-skeleton
548019b2f5826593f2f270c96f8b14ec19280c51
[ "MIT" ]
null
null
null
''' production setting ''' # include all base settings from .base import * # pylint: disable=W0401,W0614 # include credentials (not included in repo) from . import credentials as crd # pylint: disable=W0401,W0611 # disable debugging DEBUG = False # ======================== # SECRET_KEY # https://d...
25.911392
78
0.484123
0
0
0
0
0
0
0
0
1,296
0.633122
91f69a518f7a745cba0d44a46ab85227b8ebc8dd
636
py
Python
8. str_range/test_solution.py
dcragusa/WeeklyPythonExerciseB2
a7da3830e27891060dcfb0804c81f52b1f250ce8
[ "MIT" ]
null
null
null
8. str_range/test_solution.py
dcragusa/WeeklyPythonExerciseB2
a7da3830e27891060dcfb0804c81f52b1f250ce8
[ "MIT" ]
null
null
null
8. str_range/test_solution.py
dcragusa/WeeklyPythonExerciseB2
a7da3830e27891060dcfb0804c81f52b1f250ce8
[ "MIT" ]
null
null
null
from solution import str_range def test_same_start_end(): r = str_range('a', 'a') assert iter(r) == r assert ''.join(list(r)) == 'a' def test_simple(): r = str_range('a', 'c') assert ''.join(list(r)) == 'abc' def test_simple_with_step(): r = str_range('a', 'c', 2) assert ''.join(list(r...
18.171429
37
0.606918
0
0
0
0
0
0
0
0
68
0.105919
91f6f8ff0e9840449fba337706ce6b583a980630
8,227
py
Python
acs_test_suites/OTC/libs/pyunit/testlib/graphics/display_metrics_report_impl.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
8
2018-09-14T01:34:01.000Z
2021-07-01T02:00:23.000Z
acs_test_suites/OTC/libs/pyunit/testlib/graphics/display_metrics_report_impl.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
3
2019-09-10T11:39:50.000Z
2019-10-10T08:26:22.000Z
acs_test_suites/OTC/libs/pyunit/testlib/graphics/display_metrics_report_impl.py
wangji1/test-framework-and-suites-for-android
59564f826f205fe7fab64f45b88b1a6dde6900af
[ "Apache-2.0" ]
9
2018-10-11T15:14:03.000Z
2021-02-17T11:37:20.000Z
''' Copyright (C) 2018 Intel 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 to in writing, so...
41.550505
115
0.629999
7,437
0.903975
0
0
0
0
0
0
2,678
0.325514
91f92403a6d2b5956cbf468fe884187f6c555b2a
3,811
py
Python
Anchors/Find and Replace in Anchor Names.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Anchors/Find and Replace in Anchor Names.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
Anchors/Find and Replace in Anchor Names.py
juandelperal/Glyphs-Scripts
1f3cb71683ec044dff67a46cd895773e8271effa
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Find And Replace In Anchor Names # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals from builtins import str __doc__=""" Replaces strings in anchor names of all selected glyphs. """ import vanilla class SearchAndReplaceInAnchorNames( object ): def __init__( self ):...
37.732673
140
0.724482
3,432
0.900551
0
0
0
0
0
0
1,291
0.338756
91fa4adf813afeff4ee8cff082ebb2bd99d4723f
269
py
Python
Python3/Coursera/003_quadratic_roots/solution.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Coursera/003_quadratic_roots/solution.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Coursera/003_quadratic_roots/solution.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
import sys import math if __name__ == '__main__': a = int(sys.argv[1]) b = int(sys.argv[2]) c = int(sys.argv[3]) d = b * b - 4 * a * c x1 = (-b + math.sqrt(d)) / (2 * a) x2 = (-b - math.sqrt(d)) / (2 * a) print(int(x1)) print(int(x2))
19.214286
38
0.472119
0
0
0
0
0
0
0
0
10
0.037175
91fb5d86e0a2ace17209d7b5be31f349a8d3fe5f
2,258
py
Python
bigstream/features.py
wangyuhan01/bigstream
3cd2e4b217639d09b5e2dd0e169a7c210d9cacef
[ "MIT" ]
14
2021-03-10T12:52:02.000Z
2022-03-14T19:46:03.000Z
bigstream/features.py
wangyuhan01/bigstream
3cd2e4b217639d09b5e2dd0e169a7c210d9cacef
[ "MIT" ]
6
2021-02-24T18:15:34.000Z
2021-12-08T16:58:06.000Z
bigstream/features.py
wangyuhan01/bigstream
3cd2e4b217639d09b5e2dd0e169a7c210d9cacef
[ "MIT" ]
6
2021-01-20T03:57:14.000Z
2022-02-04T22:16:46.000Z
import numpy as np from fishspot.filter import white_tophat from fishspot.detect import detect_spots_log def blob_detection( image, min_blob_radius, max_blob_radius, **kwargs, ): """ """ wth = white_tophat(image, max_blob_radius) spots = detect_spots_log( wth, min_blob...
24.27957
62
0.59566
0
0
0
0
0
0
0
0
372
0.164748
91fc1d22637f7a669f85b81d4edd4e86d5957148
8,736
py
Python
.ycm_extra_conf.py
zaucy/bazel-compilation-database
aa58494efdf31c3e3525832b3d44d48bb3bc2b0b
[ "Apache-2.0" ]
1
2021-04-23T03:47:31.000Z
2021-04-23T03:47:31.000Z
.ycm_extra_conf.py
tsingakbar/bazel-compilation-database
a1d592dd8c3423c7fe94933ead4f098353ad4436
[ "Apache-2.0" ]
null
null
null
.ycm_extra_conf.py
tsingakbar/bazel-compilation-database
a1d592dd8c3423c7fe94933ead4f098353ad4436
[ "Apache-2.0" ]
1
2020-11-14T00:11:51.000Z
2020-11-14T00:11:51.000Z
#!/usr/bin/python # Copyright 2018 GRAIL, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
37.333333
104
0.694254
0
0
0
0
0
0
0
0
3,894
0.445742
91fc55bd294641a3405ae46e672d73216e1f79e0
450
py
Python
djasana/migrations/0007_alter_task_completed.py
dosoulwork/django-asana
05c63cc6a375783f84bb82821800ca419db9fa85
[ "MIT" ]
10
2017-04-25T20:20:14.000Z
2021-02-26T18:57:59.000Z
djasana/migrations/0007_alter_task_completed.py
dosoulwork/django-asana
05c63cc6a375783f84bb82821800ca419db9fa85
[ "MIT" ]
19
2018-08-09T20:45:51.000Z
2021-11-29T17:47:21.000Z
djasana/migrations/0007_alter_task_completed.py
dosoulwork/django-asana
05c63cc6a375783f84bb82821800ca419db9fa85
[ "MIT" ]
8
2018-06-28T02:54:06.000Z
2020-02-23T13:34:46.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-29 17:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('djasana', '0006_adds_defaults'), ] operations = [ migrations.AlterField( ...
21.428571
50
0.615556
292
0.648889
0
0
0
0
0
0
120
0.266667
91fc8f01eba61ef1ef5ef0f60b821056938bce1a
6,375
py
Python
src/StatifyStats.py
beng92/Statify
9b2ef7bd7b505615f3af9cadf7ab7531a6d00bb5
[ "MIT" ]
1
2016-06-22T07:44:38.000Z
2016-06-22T07:44:38.000Z
src/StatifyStats.py
beng92/Statify
9b2ef7bd7b505615f3af9cadf7ab7531a6d00bb5
[ "MIT" ]
null
null
null
src/StatifyStats.py
beng92/Statify
9b2ef7bd7b505615f3af9cadf7ab7531a6d00bb5
[ "MIT" ]
null
null
null
''' x Total plays x Total artists x Total unique songs Average song per artist x Favourite track Favourite artist (by plays or time) Favourite album (req. api) Average/total/unique plays per range Average/total/unique artists per range Average/total time listened per range Favourite genre (req. api) (by p...
35.814607
192
0.570824
5,287
0.829333
0
0
0
0
0
0
1,960
0.307451
91fd994bcee3cd09c51e7f88b4c8df6b65341586
861
py
Python
web/src/yasg.py
Mikhail-Gorelov/chat_microservice
af97a1b8bc1b8bb185b56c4a92b7b5f502ccec19
[ "MIT" ]
1
2022-03-26T20:01:55.000Z
2022-03-26T20:01:55.000Z
web/src/yasg.py
Mikhail-Gorelov/chat_microservice
af97a1b8bc1b8bb185b56c4a92b7b5f502ccec19
[ "MIT" ]
4
2022-01-23T09:22:53.000Z
2022-03-26T13:53:36.000Z
web/src/yasg.py
Mikhail-Gorelov/chat_microservice
af97a1b8bc1b8bb185b56c4a92b7b5f502ccec19
[ "MIT" ]
2
2022-03-17T19:12:41.000Z
2022-03-30T09:58:50.000Z
from django.conf import settings from django.contrib.auth.decorators import login_required from django.urls import path from drf_yasg import openapi from drf_yasg.views import get_schema_view from rest_framework import permissions from rest_framework.authentication import SessionAuthentication schema_view_param = { ...
28.7
109
0.738676
0
0
0
0
0
0
0
0
144
0.167247
91fe1b9a7b1cd81006952efe0654f1a6e2066aa1
1,889
py
Python
src/train.py
mohamedkeid/feed-forward-style-transfer
f7b058d392161018b2988a24dd2f05566da5ac78
[ "MIT" ]
92
2017-02-13T22:35:54.000Z
2021-04-28T09:56:02.000Z
src/train.py
mohamedkeid/feed-forward-style-transfer
f7b058d392161018b2988a24dd2f05566da5ac78
[ "MIT" ]
4
2017-03-05T02:05:05.000Z
2019-02-23T17:15:34.000Z
src/train.py
mohamedkeid/feed-forward-style-transfer
f7b058d392161018b2988a24dd2f05566da5ac78
[ "MIT" ]
36
2017-02-24T09:35:57.000Z
2021-05-21T17:42:03.000Z
#!/usr/bin/python """ Author: Mohamed K. Eid ([email protected]) Description: trains a generative model for stylizing an unseen image input with a particular style Args: train: path to image with style to learn """ import argparse import os import tensorflow as tf import generator import he...
28.621212
117
0.728428
0
0
0
0
0
0
0
0
710
0.37586
91ff58a8a89279f514514042538c466c72a92492
9,512
py
Python
xsnake/main.py
wcgbg/kids-keyboard
aaea8e7970407b02d46325654740859e1a7dbd83
[ "Apache-2.0" ]
null
null
null
xsnake/main.py
wcgbg/kids-keyboard
aaea8e7970407b02d46325654740859e1a7dbd83
[ "Apache-2.0" ]
null
null
null
xsnake/main.py
wcgbg/kids-keyboard
aaea8e7970407b02d46325654740859e1a7dbd83
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import glob import os import pygame import random import subprocess import time import maze_map MIN_MARGIN = 32 PROGRESS_BAR_HEIGHT = 8 SELF_DIR = os.path.dirname(os.path.realpath(__file__)) class Game: def __init__(self, map_size: int, maze: bool...
39.305785
80
0.527965
7,768
0.816653
0
0
0
0
0
0
264
0.027754
91ff5f7c6e601aeebe16cd2ed27293363ad42fda
5,342
py
Python
flaskmodel/flask_book_project.py
JennyHan2016/ProxyPool
2e65547e5d3811db32c5e79c4d70e108e0b1e934
[ "Apache-2.0" ]
null
null
null
flaskmodel/flask_book_project.py
JennyHan2016/ProxyPool
2e65547e5d3811db32c5e79c4d70e108e0b1e934
[ "Apache-2.0" ]
null
null
null
flaskmodel/flask_book_project.py
JennyHan2016/ProxyPool
2e65547e5d3811db32c5e79c4d70e108e0b1e934
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, flash,request,redirect,url_for from flask_sqlalchemy import SQLAlchemy from flaskmodel.config import * from flask_wtf import FlaskForm from wtforms import StringField,SubmitField from wtforms.validators import DataRequired app = Flask(__name__) # 创建数据库连接 db = SQLAlchemy(app) ...
29.513812
137
0.588731
859
0.132398
0
0
3,480
0.536375
0
0
2,911
0.448674
91ffc327acbe66a0dfdec62b3fb9d0478e21a89a
1,012
py
Python
examples/simple_rest_nt.py
rob-blackbourn/bareASGI-tutorial
736a0e5f6e73c158101be95d0b0f456065549725
[ "Apache-2.0" ]
1
2022-02-14T09:08:16.000Z
2022-02-14T09:08:16.000Z
examples/simple_rest_nt.py
rob-blackbourn/bareASGI-tutorial
736a0e5f6e73c158101be95d0b0f456065549725
[ "Apache-2.0" ]
5
2021-03-09T22:39:17.000Z
2022-02-26T19:52:36.000Z
examples/simple_rest_nt.py
rob-blackbourn/bareASGI-tutorial
736a0e5f6e73c158101be95d0b0f456065549725
[ "Apache-2.0" ]
null
null
null
import asyncio import json from hypercorn.asyncio import serve from hypercorn.config import Config from bareasgi import Application, text_reader, text_writer import bareutils.header as header async def get_info(scope, info, matches, content): accept = header.find(b'accept', scope['headers']) if accept != b'a...
27.351351
65
0.690711
0
0
0
0
0
0
583
0.576087
174
0.171937
620015da2fb2461bd1becafb3bfad88fa6ea66e6
567
py
Python
memory/build_memory.py
ngowilliam1/more-contrastive
50884c369145d19a39edabf56ecfdc02af1b42c4
[ "Apache-2.0" ]
70
2020-12-04T06:44:57.000Z
2022-03-30T03:38:55.000Z
memory/build_memory.py
ngowilliam1/more-contrastive
50884c369145d19a39edabf56ecfdc02af1b42c4
[ "Apache-2.0" ]
18
2020-12-31T03:57:35.000Z
2021-10-21T06:41:41.000Z
infomin/build_memory.py
frank-xwang/CLD
0852e5c3d0f0c28e85668b87b4fff20bd67e3efd
[ "MIT" ]
6
2021-04-13T18:09:14.000Z
2021-12-14T11:18:23.000Z
from .mem_bank import RGBMem, CMCMem from .mem_moco import RGBMoCo, CMCMoCo def build_mem(opt, n_data): if opt.mem == 'bank': mem_func = RGBMem if opt.modal == 'RGB' else CMCMem memory = mem_func(opt.feat_dim, n_data, opt.nce_k, opt.nce_t, opt.nce_m) elif opt.mem == '...
31.5
61
0.611993
0
0
0
0
0
0
0
0
44
0.077601
6200daab351d8a43f810d28196ac2f8c75e8b726
803
py
Python
Aves2/Aves2/celery.py
jd-aig/aves2
10aeb832feb94adf563f9795013c77bfd115b44e
[ "Apache-2.0" ]
3
2020-09-24T01:36:02.000Z
2022-03-28T11:53:54.000Z
Aves2/Aves2/celery.py
jd-aig/aves2
10aeb832feb94adf563f9795013c77bfd115b44e
[ "Apache-2.0" ]
null
null
null
Aves2/Aves2/celery.py
jd-aig/aves2
10aeb832feb94adf563f9795013c77bfd115b44e
[ "Apache-2.0" ]
1
2020-12-08T05:14:23.000Z
2020-12-08T05:14:23.000Z
# -*- coding:utf-8 -*- from __future__ import absolute_import, unicode_literals import os from celery import Celery from celery.schedules import crontab # from celery_once import QueueOnce # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Aves2.settin...
27.689655
66
0.775841
0
0
0
0
0
0
0
0
503
0.626401
62011193ee986970753cb1015967250f10e93794
14,374
py
Python
hwtHls/ssa/translation/fromAst/astToSsa.py
Nic30/hwtHls
1fac6ed128318e698d51e15e9871249ddf243e1c
[ "MIT" ]
8
2018-09-25T03:28:11.000Z
2021-12-15T07:44:38.000Z
hwtHls/ssa/translation/fromAst/astToSsa.py
Nic30/hwtHls
1fac6ed128318e698d51e15e9871249ddf243e1c
[ "MIT" ]
1
2020-12-21T10:56:44.000Z
2020-12-21T10:56:44.000Z
hwtHls/ssa/translation/fromAst/astToSsa.py
Nic30/hwtHls
1fac6ed128318e698d51e15e9871249ddf243e1c
[ "MIT" ]
2
2018-09-25T03:28:18.000Z
2021-12-15T10:28:35.000Z
from typing import Union, List, Optional, Tuple, Set from hwt.hdl.operator import Operator from hwt.hdl.operatorDefs import AllOps from hwt.hdl.portItem import HdlPortItem from hwt.hdl.statements.assignmentContainer import HdlAssignmentContainer from hwt.hdl.statements.codeBlockContainer import HdlStmCodeBlockContaine...
45.487342
136
0.64881
13,273
0.923211
0
0
347
0.024136
0
0
2,937
0.204285
6202a8816bac81aec1be652ea835f294593e8695
12,009
py
Python
pyvultr/v2/load_balance.py
luxiaba/pyvultr
29b45d036f728c15d91c4b590bd893b9c7f609ae
[ "MIT" ]
4
2021-12-01T18:06:18.000Z
2022-01-22T12:39:52.000Z
pyvultr/v2/load_balance.py
luxiaba/pyvultr
29b45d036f728c15d91c4b590bd893b9c7f609ae
[ "MIT" ]
1
2021-12-19T14:05:42.000Z
2021-12-19T14:05:42.000Z
pyvultr/v2/load_balance.py
luxiaba/pyvultr
29b45d036f728c15d91c4b590bd893b9c7f609ae
[ "MIT" ]
1
2021-12-20T04:54:08.000Z
2021-12-20T04:54:08.000Z
from dataclasses import dataclass from functools import partial from typing import Dict, List, Optional from urllib.parse import urljoin from pyvultr.utils import BaseDataclass, VultrPagination, get_only_value, merge_args from .base import BaseVultrV2, command from .enums import LoadBalanceAlgorithm, LoadBalanceProto...
39.117264
118
0.670081
11,612
0.966941
0
0
11,045
0.919727
0
0
7,046
0.586727
62034dcbe266726fc371d74a18776dc2103cd7d1
12,848
py
Python
hacking/HTB/Reddish/autopwn_reddish.py
Qazeer/code-snippets
6b15afb66312cbcf7c29f9ea32933ad0cbf65154
[ "Unlicense" ]
219
2017-12-12T20:05:37.000Z
2022-03-27T06:08:08.000Z
hacking/HTB/Reddish/autopwn_reddish.py
FDlucifer/code-snippets
2635cf04bc90f1cd0e6b850a9b70d689f1ab7aba
[ "Unlicense" ]
3
2018-11-10T13:33:42.000Z
2020-10-21T13:53:00.000Z
hacking/HTB/Reddish/autopwn_reddish.py
FDlucifer/code-snippets
2635cf04bc90f1cd0e6b850a9b70d689f1ab7aba
[ "Unlicense" ]
108
2017-12-17T18:17:14.000Z
2022-03-15T13:24:44.000Z
#!/usr/bin/env python2 # Author: Alamot import json import time import uuid import fcntl import base64 import urllib import random import requests from pwn import * def get_ip_address(ifname): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) return socket.inet_ntoa(fcntl.ioctl( s.fileno(), ...
53.090909
1,448
0.611768
0
0
0
0
0
0
0
0
7,403
0.576199
6204c146ab9d8f200d7b8f6e6bb1d0148b8857e7
1,735
py
Python
test/test_k_apaxiaaans.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
test/test_k_apaxiaaans.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
test/test_k_apaxiaaans.py
ivanlyon/exercises
0792976ae2acb85187b26a52812f9ebdd119b5e8
[ "MIT" ]
null
null
null
import io import unittest from unittest.mock import patch from kattis import k_apaxiaaans ############################################################################### class SampleInput(unittest.TestCase): '''Problem statement sample inputs and outputs''' def test_sample_input_1(self): '''Run and a...
36.145833
79
0.571182
1,433
0.825937
0
0
0
0
0
0
575
0.331412
6204c171addcdbab6da1839b62dea0022b3b30e5
829
py
Python
kata/Greeting My Friends [Arrays].py
DJO3/code_wars
8e9bc8cd903bfc61dafaf11cb9ff289f469e761f
[ "MIT" ]
null
null
null
kata/Greeting My Friends [Arrays].py
DJO3/code_wars
8e9bc8cd903bfc61dafaf11cb9ff289f469e761f
[ "MIT" ]
null
null
null
kata/Greeting My Friends [Arrays].py
DJO3/code_wars
8e9bc8cd903bfc61dafaf11cb9ff289f469e761f
[ "MIT" ]
null
null
null
""" We give you an Array of friend's list. Write a function called greeting_for_all_friends that takes one argument, friends. This method takes an array of friends name and return a greeting messages Array. Message sample: for the friend "Bilal" we get "Hello, Bilal!" Rules: If the argument is null, the method sho...
28.586207
108
0.738239
0
0
0
0
0
0
0
0
577
0.696019
6204f9cec65f309afe5538b66f4dfe8bac9af897
11,469
py
Python
tests/test_transforms.py
rushyaP/pytorchvideo
875b2df67312f5f4c7d581a332701cc7eca11c14
[ "Apache-2.0" ]
1
2021-05-20T21:25:14.000Z
2021-05-20T21:25:14.000Z
tests/test_transforms.py
rushyaP/pytorchvideo
875b2df67312f5f4c7d581a332701cc7eca11c14
[ "Apache-2.0" ]
null
null
null
tests/test_transforms.py
rushyaP/pytorchvideo
875b2df67312f5f4c7d581a332701cc7eca11c14
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import unittest from collections import Counter import numpy as np import torch from pytorchvideo.data.utils import thwc_to_cthw from pytorchvideo.transforms import ( ApplyTransformToKey, Normalize, OpSampler, RandomShortSideScale...
38.35786
88
0.624553
10,686
0.931729
0
0
0
0
0
0
746
0.065045
62053e8d0f3189aeee01ea44d5273ade06244a54
20,905
py
Python
udacity-program_self_driving_car_engineer_v1.0/project04-lane_detection_advanced/project/full_pipeline.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
udacity-program_self_driving_car_engineer_v1.0/project04-lane_detection_advanced/project/full_pipeline.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
udacity-program_self_driving_car_engineer_v1.0/project04-lane_detection_advanced/project/full_pipeline.py
linksdl/futuretec-project-self_driving_cars_projects
38e8f14543132ec86a8bada8d708eefaef23fee8
[ "MIT" ]
null
null
null
""" # !/usr/bin/env python # -*- coding: utf-8 -*- @Time : 2022/2/24 20:12 @Author : [email protected] @ProjectName : udacity-program_self_driving_car_engineer_v1.0_source.0 @File : full_pipeline.py """ import numpy as np import cv2 import os import matplotlib.image as mpimg import matplotli...
39.743346
118
0.670796
1,568
0.075006
0
0
0
0
0
0
6,688
0.319923
620552e0f37628fdaf507905b2e507f52f6149a8
158
py
Python
pyblaze/nn/data/__init__.py
Greenroom-Robotics/pyblaze
e45e27fbd400b6ae2365ad2347165c7b5154ac51
[ "MIT" ]
20
2020-03-29T08:43:15.000Z
2021-12-17T21:38:17.000Z
pyblaze/nn/data/__init__.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
4
2020-10-27T20:43:40.000Z
2021-04-29T12:19:39.000Z
pyblaze/nn/data/__init__.py
borchero/bxtorch
8d01568c8ee9fc05f5b3c84ca3ec68ea74eef9eb
[ "MIT" ]
2
2020-08-16T18:10:49.000Z
2021-03-31T23:17:28.000Z
import pyblaze.nn.data.extensions from .noise import NoiseDataset, LabeledNoiseDataset from .zip import ZipDataLoader from .transform import TransformDataset
31.6
52
0.860759
0
0
0
0
0
0
0
0
0
0
62068b662c2e57cf87551975ea7649e2326a5cd6
3,128
py
Python
main.py
MokkoFm/autoposting-comic-books
07021369e88370aeda33fe4b5d4bb3cd8bf01399
[ "MIT" ]
null
null
null
main.py
MokkoFm/autoposting-comic-books
07021369e88370aeda33fe4b5d4bb3cd8bf01399
[ "MIT" ]
null
null
null
main.py
MokkoFm/autoposting-comic-books
07021369e88370aeda33fe4b5d4bb3cd8bf01399
[ "MIT" ]
null
null
null
import requests import os import random from dotenv import load_dotenv import sys def get_response(url, payload): try: response = requests.get(url, params=payload) response.raise_for_status() except requests.HTTPError: sys.stderr.write("Error with URL\n") return response def get...
27.681416
79
0.636189
0
0
0
0
0
0
0
0
548
0.175192
620690da1f145b5b2420aa8da8460ba8aab12a29
9,636
py
Python
google-cloud-sdk/platform/gsutil/gslib/commands/notification.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/commands/notification.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/platform/gsutil/gslib/commands/notification.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # 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 require...
36.638783
113
0.732669
4,407
0.457347
0
0
0
0
0
0
5,326
0.552719
62082f1a3d2df0aa7c200e1ac37a24e5cc695f32
18,526
py
Python
src/mecanum_robot_gazebo/src/tool/pingpong_utils.py
diddytpq/Predict-Tennisball-LandingPoint
0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a
[ "MIT" ]
null
null
null
src/mecanum_robot_gazebo/src/tool/pingpong_utils.py
diddytpq/Predict-Tennisball-LandingPoint
0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a
[ "MIT" ]
null
null
null
src/mecanum_robot_gazebo/src/tool/pingpong_utils.py
diddytpq/Predict-Tennisball-LandingPoint
0ae4a9ff45fd4dd82b4b4e3cc2533e7fd5d1506a
[ "MIT" ]
null
null
null
import rospy import sys from gazebo_msgs.srv import * from geometry_msgs.msg import * import tf.transformations as tft import numpy as np import math import roslib from std_msgs.msg import Empty as EmptyMsg from std_msgs.msg import Float64 from nav_msgs.msg import Odometry import time from tool.mecanum_utils import * ...
35.558541
191
0.596837
14,592
0.78765
0
0
0
0
0
0
2,963
0.159937