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
1ddeb4640afb7464adb779919965594b59498d6c
4,342
py
Python
openmv_cam/sensors.py
Adridri24/Robocup
aa403f73cdc5f7cdf9e3bb8afd997c2b0fa081d3
[ "MIT" ]
1
2021-07-27T21:47:06.000Z
2021-07-27T21:47:06.000Z
openmv_cam/sensors.py
ajayat/robocup
aa403f73cdc5f7cdf9e3bb8afd997c2b0fa081d3
[ "MIT" ]
null
null
null
openmv_cam/sensors.py
ajayat/robocup
aa403f73cdc5f7cdf9e3bb8afd997c2b0fa081d3
[ "MIT" ]
null
null
null
import ustruct as struct import sensor import pyb import ulogging as logging logger = logging.Logger(__name__) class Sensor: """A class that represent the Arduino-controlled sensors Offers an interface for ultrasonics sensors and line sensors (IR). """ PIN = 2 SLAVE_ADDRESS = 0x10 def __i...
32.893939
85
0.620451
4,223
0.972593
0
0
1,735
0.399585
0
0
2,147
0.494473
1ddf116bdca6613e7a3cef9650883687a600fa9d
179
py
Python
dmutils/__init__.py
robot2051/dto-digitalmarketplace-utils
e581be6396c12473697398b0ec9d253c564a324b
[ "MIT" ]
null
null
null
dmutils/__init__.py
robot2051/dto-digitalmarketplace-utils
e581be6396c12473697398b0ec9d253c564a324b
[ "MIT" ]
null
null
null
dmutils/__init__.py
robot2051/dto-digitalmarketplace-utils
e581be6396c12473697398b0ec9d253c564a324b
[ "MIT" ]
null
null
null
from . import logging, config, proxy_fix, formats, request_id from .flask_init import init_app, init_frontend_app, init_manager import flask_featureflags __version__ = '24.4.1'
25.571429
65
0.810056
0
0
0
0
0
0
0
0
8
0.044693
1de0594f63b502fd9fe8aa8efd742514e03f84cb
1,453
py
Python
withings_data/views.py
MPikDev/withings_weight_display
8d0a91c949cc9c2f1323db9986f68330cf21e4bf
[ "MIT" ]
null
null
null
withings_data/views.py
MPikDev/withings_weight_display
8d0a91c949cc9c2f1323db9986f68330cf21e4bf
[ "MIT" ]
null
null
null
withings_data/views.py
MPikDev/withings_weight_display
8d0a91c949cc9c2f1323db9986f68330cf21e4bf
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render, redirect from models import User from django.contrib.auth import authenticate, login from django.conf import settings from django.contrib.auth.decorators import login_required def login(request): username = request.POST['username'] password =...
28.490196
99
0.748107
0
0
0
0
538
0.370268
0
0
334
0.229869
1de174b38b26130877be87229aea9bb86c21ce03
52
py
Python
backend/models/__init__.py
hajajmaor/e_commerce_website
c3cb4b7acb4447231358ee153128dab1ef7096f5
[ "MIT" ]
null
null
null
backend/models/__init__.py
hajajmaor/e_commerce_website
c3cb4b7acb4447231358ee153128dab1ef7096f5
[ "MIT" ]
7
2021-04-06T16:01:12.000Z
2021-04-29T07:11:40.000Z
backend/models/__init__.py
hajajmaor/e_commerce_website
c3cb4b7acb4447231358ee153128dab1ef7096f5
[ "MIT" ]
null
null
null
from .cart import receipt_col as receipt_collection
26
51
0.865385
0
0
0
0
0
0
0
0
0
0
1de1dc48d04018d54f9948a56fb3009257d670db
14,662
py
Python
wwzplotter.py
skiehl/wwz
e48a85d415bc2e3c4308a17ae511534372d52cba
[ "BSD-3-Clause" ]
null
null
null
wwzplotter.py
skiehl/wwz
e48a85d415bc2e3c4308a17ae511534372d52cba
[ "BSD-3-Clause" ]
null
null
null
wwzplotter.py
skiehl/wwz
e48a85d415bc2e3c4308a17ae511534372d52cba
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- #!/usr/bin/env python """A class for plotting results of the weighted wavelet z-transform analysis. """ import matplotlib.gridspec as gs import matplotlib.pyplot as plt from matplotlib.ticker import LogLocator import numpy as np import os import sys __author__ = "Sebastian Kiehlmann" __credits...
33.398633
79
0.524349
13,921
0.949461
0
0
0
0
0
0
7,958
0.542764
1de5367a1f3c604d3f330ae4e673bd72ff6587fa
7,651
py
Python
preprocessing/emotic/load_data_from_numpy.py
GKalliatakis/DisplaceNet
439bcd5ed4133b040baa107c215170eb963aa343
[ "MIT" ]
7
2019-05-13T01:49:43.000Z
2020-02-19T04:16:35.000Z
preprocessing/emotic/load_data_from_numpy.py
GKalliatakis/DisplaceNet
439bcd5ed4133b040baa107c215170eb963aa343
[ "MIT" ]
null
null
null
preprocessing/emotic/load_data_from_numpy.py
GKalliatakis/DisplaceNet
439bcd5ed4133b040baa107c215170eb963aa343
[ "MIT" ]
4
2019-05-28T16:06:31.000Z
2020-02-27T09:29:16.000Z
"""Python utilities required to load data (image & their annotations) stored in numpy arrays. Functions `load_numpy_arrays_single_output` & `load_numpy_arrays_emotions_age_only` are deprecated. Use either the main function `load_data_from_numpy` to load all the applicable arrays or the supporting `load_anno...
46.369697
180
0.656385
0
0
0
0
0
0
0
0
3,159
0.412887
1de617306ea8b95ead3e14011fe6581a03bd62b9
15,575
py
Python
services/core/Ambient/ambient/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
406
2015-01-20T03:08:53.000Z
2022-03-31T20:59:07.000Z
services/core/Ambient/ambient/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
2,031
2015-01-05T21:35:45.000Z
2022-03-29T21:44:36.000Z
services/core/Ambient/ambient/agent.py
gnmerritt/volttron
ebfbf62bab77d46fd3e8d6aaca1fc4f33932ccf3
[ "Apache-2.0" ]
219
2015-01-20T14:53:57.000Z
2022-03-06T00:37:41.000Z
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright (c) 2017, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistrib...
44.121813
120
0.642953
11,015
0.707223
0
0
198
0.012713
0
0
9,757
0.626453
1de63b87d5455ccb25aeab1b6a213dfe5402bcb9
7,601
py
Python
process.py
imdeepmind/AmazonReview-LanguageGenerationDataset
64856e5c0fb0718203585c217bb5443344ef177d
[ "MIT" ]
3
2019-08-29T17:38:11.000Z
2021-01-08T13:07:35.000Z
process.py
imdeepmind/AmazonReview-LanguageGenerationDataset
64856e5c0fb0718203585c217bb5443344ef177d
[ "MIT" ]
null
null
null
process.py
imdeepmind/AmazonReview-LanguageGenerationDataset
64856e5c0fb0718203585c217bb5443344ef177d
[ "MIT" ]
1
2019-08-26T11:09:59.000Z
2019-08-26T11:09:59.000Z
import sqlite3 import pandas as pd import re import random from bs4 import BeautifulSoup class Process: SEQ_LENGTH = 40 sql_transaction = [] dataset = [] cursor_train = None cursor_validation = None cursor_test = None # I know in advance that there are 199819620 rows NUM_ROWS = 19...
39.180412
245
0.52822
7,397
0.971883
0
0
0
0
0
0
1,852
0.243332
1de641bdba821c7515279839b852f0ac77f42640
55
py
Python
src/torchphysics/utils/data/__init__.py
uwe-iben/torchphysics
f0a56539cff331d49caaa90bc2fdd0d238b298f8
[ "Apache-2.0" ]
203
2021-11-10T10:33:29.000Z
2022-03-26T09:05:12.000Z
src/torchphysics/utils/data/__init__.py
DKreuter/torchphysics
775d9aca71752a568f1fca972c958b99107f3b7c
[ "Apache-2.0" ]
3
2022-01-07T19:57:00.000Z
2022-03-10T08:04:49.000Z
src/torchphysics/utils/data/__init__.py
DKreuter/torchphysics
775d9aca71752a568f1fca972c958b99107f3b7c
[ "Apache-2.0" ]
16
2021-09-30T08:35:37.000Z
2022-03-16T13:12:22.000Z
from .dataloader import PointsDataset, PointsDataLoader
55
55
0.890909
0
0
0
0
0
0
0
0
0
0
1de7a0dc0cdbaa0b1dee69836abf352a586d2b83
445
py
Python
src/panel/urls.py
cybekRT/DJPajton2
e461070269a5b39bac6c8df1eb739ea79c7099b5
[ "MIT" ]
null
null
null
src/panel/urls.py
cybekRT/DJPajton2
e461070269a5b39bac6c8df1eb739ea79c7099b5
[ "MIT" ]
null
null
null
src/panel/urls.py
cybekRT/DJPajton2
e461070269a5b39bac6c8df1eb739ea79c7099b5
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views urlpatterns = [ #url(r'^view/(?P<pk>[0-9]+)', views.ArticleDetailView.as_view(), name = "detail"), #url(r'', views.ArticleIndexView.as_view(), name = "index"), url(r'login', views.Login.as_view()), url(r'logout', views.Logout.as_view()), ...
34.230769
87
0.611236
0
0
0
0
0
0
0
0
188
0.422472
1de7f7ec7324ad33e6191ad8327f06347d390541
3,035
py
Python
Gems/WhiteBox/Editor/Scripts/WhiteBox.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-09-13T00:01:12.000Z
2021-09-13T00:01:12.000Z
Gems/WhiteBox/Editor/Scripts/WhiteBox.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
null
null
null
Gems/WhiteBox/Editor/Scripts/WhiteBox.py
aaarsene/o3de
37e3b0226958974defd14dd6d808e8557dcd7345
[ "Apache-2.0", "MIT" ]
1
2021-07-20T11:07:25.000Z
2021-07-20T11:07:25.000Z
""" Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution. SPDX-License-Identifier: Apache-2.0 OR MIT """ # setup path import azlmbr.legacy.general as general import azlmbr.bus as bus import azlmbr.editor as editor im...
48.174603
155
0.801647
0
0
0
0
0
0
0
0
1,046
0.344646
1de934d7356d8cdb5f92362c3fbc904ed493a5b2
7,800
py
Python
src/analysis/analysis.py
rcgonzalez9061/m2v-adversarial-hindoird
513ede9875330ea44de65f7f6b0f76e98c9c81da
[ "MIT" ]
null
null
null
src/analysis/analysis.py
rcgonzalez9061/m2v-adversarial-hindoird
513ede9875330ea44de65f7f6b0f76e98c9c81da
[ "MIT" ]
null
null
null
src/analysis/analysis.py
rcgonzalez9061/m2v-adversarial-hindoird
513ede9875330ea44de65f7f6b0f76e98c9c81da
[ "MIT" ]
3
2021-03-08T08:01:24.000Z
2022-02-23T01:12:26.000Z
from dask.distributed import Client import dask.dataframe as dd import pandas as pd import numpy as np import os import matplotlib.pyplot as plt import matplotlib.cm as cm from sklearn.manifold import TSNE from sklearn.decomposition import PCA from IPython.display import display, HTML from sklearn.cluster import KMeans...
35.294118
124
0.591667
0
0
0
0
0
0
0
0
2,060
0.264103
1de9e88ceb68a4275423c2572fd161fe8abe5541
1,756
py
Python
common/sqlmanager.py
ntcat/tilde
6bbe7f56483e3a64103c3d3e7a39681a2c2690be
[ "MIT" ]
1
2018-05-21T04:41:00.000Z
2018-05-21T04:41:00.000Z
common/sqlmanager.py
ntcat/tilde
6bbe7f56483e3a64103c3d3e7a39681a2c2690be
[ "MIT" ]
null
null
null
common/sqlmanager.py
ntcat/tilde
6bbe7f56483e3a64103c3d3e7a39681a2c2690be
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = '' __author__ = 'shen.bas' __time__ = '2018-01-26' """ import pymysql class SQLManager: def __init__(self, dbCnfig): self.DB_CONFIG = dbCnfig self.conn = None self.cursor = None self.msg = '' self.affect_rows = 0 if not self.connect(): exit(...
22.227848
69
0.664009
1,774
0.929769
0
0
0
0
0
0
456
0.238994
1dea6f53071178d05a953eb23c32d6609a27d012
1,786
py
Python
rls/algorithms/single/ddqn.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/algorithms/single/ddqn.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/algorithms/single/ddqn.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 import torch.nn.functional as F from rls.algorithms.single.dqn import DQN from rls.common.decorator import iton from rls.utils.torch_utils import n_step_return class DDQN(DQN): """ Double DQN, https://arxiv.org/abs/1509.06461 Double DQN + LSTM, https...
39.688889
105
0.558231
1,569
0.878499
0
0
1,315
0.736282
0
0
370
0.207167
1deabd234d3d7ab0242074f8b32e1bcacc5fabc3
1,394
py
Python
blockChain/modularDivision.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
10
2020-10-09T11:05:18.000Z
2022-02-13T03:22:10.000Z
blockChain/modularDivision.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
null
null
null
blockChain/modularDivision.py
slowy07/pythonApps
22f9766291dbccd8185035745950c5ee4ebd6a3e
[ "MIT" ]
6
2020-11-26T12:49:43.000Z
2022-03-06T06:46:43.000Z
from typing import Tuple def modular_division(a: int, b: int, n: int) -> int: assert n > 1 and a > 0 and greatest_common_divisor(a, n) == 1 (d, t, s) = extend_gcd(n, a) return x def invert_modulo(a: int, n: int) -> int: (b, x) = extend_euclid(a ,n) if b < 0: b = (b % n + n) % n retur...
24.45614
65
0.552367
0
0
0
0
0
0
0
0
118
0.084648
1dead52e33a4564094a52bf02b01c565cce3acb2
5,373
py
Python
arekit/contrib/networks/context/architectures/cnn.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
18
2019-12-14T18:43:11.000Z
2022-03-21T05:55:36.000Z
arekit/contrib/networks/context/architectures/cnn.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
284
2020-08-08T20:52:44.000Z
2022-03-31T05:26:20.000Z
arekit/contrib/networks/context/architectures/cnn.py
nicolay-r/AREk
19c39ec0dc9a17464cade03b9c4da0c6d1d21191
[ "MIT" ]
1
2021-08-07T13:17:43.000Z
2021-08-07T13:17:43.000Z
import tensorflow as tf from collections import OrderedDict from arekit.contrib.networks.context.architectures.base.base import SingleInstanceNeuralNetwork from arekit.contrib.networks.context.configurations.cnn import CNNConfig from arekit.contrib.networks.tf_helpers import layers class VanillaCNN(SingleInstanceNeur...
39.507353
117
0.589615
5,087
0.946771
111
0.020659
538
0.10013
0
0
427
0.079471
1deb8efbdd96d38511ba7695b577776dc1d7e9c2
149
py
Python
data/hospital_level/raw/hifld_hospital/download.py
csinva/covid-19-analysis
e7b1e82cb6b25d62a868ff61025d88e17452de28
[ "MIT" ]
2
2020-03-24T16:50:02.000Z
2020-03-24T17:00:50.000Z
data_new/hospital_level/raw/hifld_hospital/download.py
rahul263-stack/covid19-severity-prediction
f581adb2fccb12d5ab3f3c59ee120f484703edf5
[ "MIT" ]
1
2020-03-28T15:34:28.000Z
2020-03-28T19:22:27.000Z
data/hospital_level/raw/hifld_hospital/download.py
Yu-Group/covid-19-ventilator-demand-prediction
e7b1e82cb6b25d62a868ff61025d88e17452de28
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os os.system('wget \ https://opendata.arcgis.com/datasets/6ac5e325468c4cb9b905f1728d6fbf0f_0.csv \ -O hifld_hospital.csv')
24.833333
77
0.791946
0
0
0
0
0
0
0
0
126
0.845638
1def47cb7540794f0847dc42e0919f49e98df7e1
458
py
Python
src/helper.py
yiuc/azure-aud
695341178c1396980a75fd2ab88550ca7930c70e
[ "Apache-2.0" ]
2
2019-01-24T12:23:28.000Z
2021-01-19T15:04:35.000Z
src/helper.py
yiuc/azure-aud
695341178c1396980a75fd2ab88550ca7930c70e
[ "Apache-2.0" ]
null
null
null
src/helper.py
yiuc/azure-aud
695341178c1396980a75fd2ab88550ca7930c70e
[ "Apache-2.0" ]
1
2021-05-26T17:34:51.000Z
2021-05-26T17:34:51.000Z
import argparse import subprocess import sys import logging logger = logging.getLogger("helper") def azcli(command): process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out,err = process.communicate() logger.debug(str(out,"utf-8")) exit_code = process.returncode if ...
26.941176
87
0.687773
0
0
0
0
0
0
0
0
26
0.056769
1def7d7b2c472095eabd58e752a36f75a3a587c3
1,622
py
Python
044_wildcat_matching.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
044_wildcat_matching.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
044_wildcat_matching.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 44. Wildcard Matching # # Implement wildcard pattern matching with support for '?' and '*'. # # '?' Matches any single character. # '*' Matches any sequence of characters (including the empty sequence). # # The matching should cover the entire input string (not partial). # # The function prototype should be: # bool i...
27.033333
73
0.479655
998
0.610024
0
0
0
0
0
0
869
0.531174
1df20dac7a824f73870c3a8bb0561dbeba1a3f8c
1,013
py
Python
einsteinsolid.py
SNOlson/MyCodes
7d2942d961b638bc34e8d7aea86bfbcaa0326a8d
[ "Apache-2.0" ]
null
null
null
einsteinsolid.py
SNOlson/MyCodes
7d2942d961b638bc34e8d7aea86bfbcaa0326a8d
[ "Apache-2.0" ]
null
null
null
einsteinsolid.py
SNOlson/MyCodes
7d2942d961b638bc34e8d7aea86bfbcaa0326a8d
[ "Apache-2.0" ]
null
null
null
"""Table for 200 and 100 oscillators with 100 units of energy""" import math import matplotlib.pyplot as plt import numpy as np import pandas as pd def mult(n, r): return math.factorial(n) / (math.factorial(r) * math.factorial(n-r)) nA = 200 nB = 100 qA = np.arange(0,101,1) qB = np.arange(101, 0, -1) ...
23.55814
73
0.617966
0
0
0
0
0
0
0
0
429
0.423495
1df2a0598e91ae4e8513a3d7be0aab30ae5f3267
1,184
py
Python
Grid.py
KeilonRobertson/Pathfinding-Visualizer
71637fbadfd4f4dc04ba82d0d7429738f27a4a74
[ "MIT" ]
5
2020-10-02T03:03:49.000Z
2020-10-08T16:45:24.000Z
Grid.py
KeilonRobertson/Pathfinding-Visualizer
71637fbadfd4f4dc04ba82d0d7429738f27a4a74
[ "MIT" ]
null
null
null
Grid.py
KeilonRobertson/Pathfinding-Visualizer
71637fbadfd4f4dc04ba82d0d7429738f27a4a74
[ "MIT" ]
null
null
null
from Vertex import Vertex import pygame from Colours import Colours class Grid: def createGrid(self, rows, width): grid = [] space = width // rows for x in range(rows): grid.append([]) for i in range(rows): vertex = Vertex(space, rows, x, i...
29.6
92
0.529561
1,109
0.936655
0
0
0
0
0
0
0
0
1df2a9b981356894b69c9da96fea58cbc93cb744
10,811
py
Python
improver_tests/precipitation_type/shower_condition_probability/test_ShowerConditionProbability.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver_tests/precipitation_type/shower_condition_probability/test_ShowerConditionProbability.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
improver_tests/precipitation_type/shower_condition_probability/test_ShowerConditionProbability.py
thbom001/improver
6f6e334a1e8e44a151125cf123ecdda2c56dbec4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown copyright. The Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
39.456204
86
0.565998
0
0
0
0
7,018
0.649154
0
0
4,810
0.444917
1df3ba41e191af85d9097217c0ce64ae0929f14a
4,774
py
Python
controllers/vessel/file/upload.py
gbf-labs/rh-api
317a812164ad8943ab638c06f61723cb928bfd12
[ "Apache-2.0" ]
null
null
null
controllers/vessel/file/upload.py
gbf-labs/rh-api
317a812164ad8943ab638c06f61723cb928bfd12
[ "Apache-2.0" ]
6
2020-03-30T23:11:27.000Z
2022-03-12T00:21:45.000Z
controllers/vessel/file/upload.py
gbf-labs/rh-api
317a812164ad8943ab638c06f61723cb928bfd12
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-member, too-many-locals, no-self-use """Vessels File Upload """ import time from flask import request # from library.couch_database import CouchDatabase from library.postgresql_queries import PostgreSQL from library.couch_queries import Queries from library.common import Common from library...
29.652174
92
0.526812
4,428
0.927524
0
0
0
0
0
0
1,919
0.401969
1df4682ad4e85d7a5440a5f0af1ac4170aeb6c7a
389
py
Python
graphgallery/gallery/gallery_model/pytorch/__init__.py
Aria461863631/GraphGallery
7b62f80ab36b29013bea2538a6581fc696a80201
[ "MIT" ]
null
null
null
graphgallery/gallery/gallery_model/pytorch/__init__.py
Aria461863631/GraphGallery
7b62f80ab36b29013bea2538a6581fc696a80201
[ "MIT" ]
null
null
null
graphgallery/gallery/gallery_model/pytorch/__init__.py
Aria461863631/GraphGallery
7b62f80ab36b29013bea2538a6581fc696a80201
[ "MIT" ]
null
null
null
from .gcn import GCN, DenseGCN from .gat import GAT from .clustergcn import ClusterGCN from .fastgcn import FastGCN from .dagnn import DAGNN from .pairnorm import * from .simpgcn import SimPGCN from .mlp import MLP from .tagcn import TAGCN from .appnp import APPNP, PPNP # experimantal model from .experimental.median_g...
25.933333
48
0.81491
0
0
0
0
0
0
0
0
20
0.051414
1df523cdc41ccb402483976f0573983b6122d8e9
4,412
py
Python
tests/test_vims_pixel.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
4
2019-09-16T15:50:22.000Z
2021-04-08T15:32:48.000Z
tests/test_vims_pixel.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
3
2018-05-04T09:28:24.000Z
2018-12-03T09:00:31.000Z
tests/test_vims_pixel.py
seignovert/pyvims
a70b5b9b8bc5c37fa43b7db4d15407f312a31849
[ "BSD-3-Clause" ]
1
2020-10-12T15:14:17.000Z
2020-10-12T15:14:17.000Z
"""Test VIMS image module.""" from numpy.testing import assert_array_almost_equal as assert_array from pytest import approx, fixture, raises from pyvims import VIMS from pyvims.errors import VIMSError @fixture def img_id(): """Testing image ID.""" return '1731456416_1' @fixture def cube(img_id): """T...
26.739394
75
0.635086
0
0
0
0
327
0.074049
0
0
608
0.137681
1df7cf4379736e54e6847b970614eade9f08fa85
4,239
py
Python
Project2/system.py
KristianWold/FYS4410
25f23109468ed72b69a6e9af72957500d76f0e79
[ "MIT" ]
1
2020-04-30T18:39:43.000Z
2020-04-30T18:39:43.000Z
Project2/system.py
KristianWold/FYS4411
25f23109468ed72b69a6e9af72957500d76f0e79
[ "MIT" ]
null
null
null
Project2/system.py
KristianWold/FYS4411
25f23109468ed72b69a6e9af72957500d76f0e79
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tqdm.notebook import tqdm class System(): def __init__(self, num_part, dim, Ansatz=None, External=None, Internal=None, Sampler=None ): self...
27.348387
78
0.482425
2,414
0.569474
0
0
0
0
0
0
144
0.03397
1df80634b7ac4a729c96447edb28b15b92dc8f16
8,819
py
Python
contrib/heat_docker/heat_docker/tests/test_docker_container.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
contrib/heat_docker/heat_docker/tests/test_docker_container.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
contrib/heat_docker/heat_docker/tests/test_docker_container.py
redhat-openstack/heat
6b9be0a868b857e942c1cc90594d0f3a0d0725d0
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2013 Docker, 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 requir...
40.269406
79
0.652342
7,301
0.827872
0
0
1,671
0.189477
0
0
1,879
0.213063
1df8beec4fea3bcefebf61482d69a744dbb216ea
302
py
Python
apistar/exceptions.py
sylwekb/apistar
890006884dbb9644824511e0275fa00515204c5b
[ "BSD-3-Clause" ]
null
null
null
apistar/exceptions.py
sylwekb/apistar
890006884dbb9644824511e0275fa00515204c5b
[ "BSD-3-Clause" ]
null
null
null
apistar/exceptions.py
sylwekb/apistar
890006884dbb9644824511e0275fa00515204c5b
[ "BSD-3-Clause" ]
null
null
null
class SchemaError(Exception): def __init__(self, schema, code): self.schema = schema self.code = code msg = schema.errors[code].format(**schema.__dict__) super().__init__(msg) class NoCurrentApp(Exception): pass class ConfigurationError(Exception): pass
20.133333
59
0.65894
295
0.976821
0
0
0
0
0
0
0
0
1dfaf8dad72aefecc4b8134cc8efce48a3d16816
288
py
Python
pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py
dysdsyd/VO_benchmark
a7602edab934419c1ec73618ee655e18026f834f
[ "Apache-2.0" ]
2
2021-09-11T09:13:31.000Z
2021-11-03T01:39:56.000Z
pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py
dysdsyd/VO_benchmark
a7602edab934419c1ec73618ee655e18026f834f
[ "Apache-2.0" ]
null
null
null
pyslam/thirdparty/disk/submodules/torch-dimcheck/setup.py
dysdsyd/VO_benchmark
a7602edab934419c1ec73618ee655e18026f834f
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name='torch-dimcheck', version='0.0.1', description='Dimensionality annotations for tensor parameters and return values', packages=['torch_dimcheck'], author='Michał Tyszkiewicz', author_email='michal.tyszkiewicz@gmail.com', )
26.181818
85
0.725694
0
0
0
0
0
0
0
0
158
0.546713
1dfc968b657f73ab414bcfadc856995832d9a8ce
5,050
py
Python
retropath2_wrapper/__main__.py
brsynth/RetroPath2-wrapper
545f40ad0df7049332012ee5184138c6c14a9f35
[ "MIT" ]
4
2021-10-13T22:12:16.000Z
2021-12-25T13:00:53.000Z
retropath2_wrapper/__main__.py
brsynth/RetroPath2-wrapper
545f40ad0df7049332012ee5184138c6c14a9f35
[ "MIT" ]
6
2020-08-14T15:02:35.000Z
2022-03-04T13:05:21.000Z
retropath2_wrapper/__main__.py
brsynth/RetroPath2-wrapper
545f40ad0df7049332012ee5184138c6c14a9f35
[ "MIT" ]
null
null
null
#!/usr/bin/env python from os import ( path as os_path, mkdir as os_mkdir, getcwd ) from argparse import ArgumentParser from logging import ( Logger, getLogger ) from glob import glob from typing import ( Dict, ) from colored import fg, bg, attr from brs_utils import ( create_logger ) from...
24.876847
139
0.6
0
0
0
0
0
0
0
0
1,555
0.307921
1dfcb4d77e3deb4901ba246b595206ea283bb0d6
136,009
py
Python
src_data/community_health_metrics.py
marcmiquel/WDO
7d8d8e912f8dbacb2cdc0f6fd5c26370b8310cbb
[ "MIT" ]
3
2020-12-21T06:06:16.000Z
2021-08-28T12:52:07.000Z
src_data/community_health_metrics.py
marcmiquel/WDO
7d8d8e912f8dbacb2cdc0f6fd5c26370b8310cbb
[ "MIT" ]
1
2021-01-27T19:33:20.000Z
2021-01-27T19:33:20.000Z
src_data/community_health_metrics.py
marcmiquel/WDO
7d8d8e912f8dbacb2cdc0f6fd5c26370b8310cbb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # script import wikilanguages_utils from wikilanguages_utils import * # time import time import datetime from dateutil import relativedelta import calendar # system import os import sys import shutil import re import random import operator # databases import MySQLdb as mdb, MySQLdb.cursors as m...
48.436254
1,569
0.642068
693
0.005094
0
0
0
0
0
0
52,294
0.384388
1dfd5d2386c40b6bce3490e841b7ecb270155298
1,051
py
Python
tests/api/length_dist_api_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
4
2020-01-14T01:01:36.000Z
2022-03-21T16:30:24.000Z
tests/api/length_dist_api_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
9
2019-12-17T20:45:08.000Z
2021-12-15T22:34:06.000Z
tests/api/length_dist_api_test.py
himanshur-dev/ribopy
78846e4140a7aa7b4dc995f39606577efaaf0831
[ "MIT" ]
3
2019-12-14T17:51:53.000Z
2022-01-12T16:09:45.000Z
# -*- coding: utf-8 -*- import unittest import os from io import StringIO, BytesIO import h5py from ribopy import Ribo from ribopy import create from ribopy.merge import merge_ribos from ribopy.settings import * from ribopy.core.exceptions import * import sys test_dir_1 = os.path.dirname(os.path.realpath(__file__)) ...
28.405405
73
0.639391
404
0.384396
0
0
0
0
0
0
142
0.135109
1dfd962e97e4b42a0882e32bbba5a65998278c73
263
py
Python
task_management/urls.py
AbdelrahmanRabiee/ayenapp
43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25
[ "MIT" ]
null
null
null
task_management/urls.py
AbdelrahmanRabiee/ayenapp
43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25
[ "MIT" ]
5
2020-06-06T01:47:05.000Z
2022-02-10T14:05:22.000Z
task_management/urls.py
AbdelrahmanRabiee/ayenapp
43fc4f2b5f53ca308cf60c9f1d74cb2e3f4f4b25
[ "MIT" ]
null
null
null
from django.urls import path from rest_framework import routers from task_management import viewsets app_name = "task_management" urlpatterns = [ ] task_router = routers.SimpleRouter() task_router.register(r'tasks', viewsets.TasksViewSet, base_name='tasks')
18.785714
72
0.802281
0
0
0
0
0
0
0
0
32
0.121673
1dfdf1dc9d560dd375ad6fcdf3b6923ca0b72a86
36
py
Python
core/parsers/__init__.py
andrewisakov/taximaster
b92f06894bbc3414086ec77f1c918a3c0f085241
[ "MIT" ]
null
null
null
core/parsers/__init__.py
andrewisakov/taximaster
b92f06894bbc3414086ec77f1c918a3c0f085241
[ "MIT" ]
null
null
null
core/parsers/__init__.py
andrewisakov/taximaster
b92f06894bbc3414086ec77f1c918a3c0f085241
[ "MIT" ]
null
null
null
from .parsers import request_parser
18
35
0.861111
0
0
0
0
0
0
0
0
0
0
1dff8f34b88c1028d015cee284c4c5733bdd6297
4,698
py
Python
pytils/clock.py
d33jiang/pytils
6e44a05480abec6297b77730676bcb5fd5088f6f
[ "MIT" ]
null
null
null
pytils/clock.py
d33jiang/pytils
6e44a05480abec6297b77730676bcb5fd5088f6f
[ "MIT" ]
null
null
null
pytils/clock.py
d33jiang/pytils
6e44a05480abec6297b77730676bcb5fd5088f6f
[ "MIT" ]
null
null
null
import functools import heapq import logging from collections import deque from threading import Condition, RLock from typing import Any, Callable, List, NamedTuple, Optional from pytils.mixins import DaemonHandler from ._config.time import DEFAULT_TIME_SUPPLIER, TimeSupplier, TimeType, ZERO_DURATION __all__ = [ ...
25.813187
107
0.645807
3,967
0.844402
0
0
143
0.030438
0
0
332
0.070668
38005601c897e3e947cdabb62140e650a9ec4e7f
1,473
py
Python
audtool/__init__.py
Guaxinim5573/audacious-player
7bcd2afdd91bb18a41fb70500aaf76eaa17da837
[ "MIT" ]
null
null
null
audtool/__init__.py
Guaxinim5573/audacious-player
7bcd2afdd91bb18a41fb70500aaf76eaa17da837
[ "MIT" ]
1
2021-11-29T16:25:22.000Z
2021-11-29T16:25:22.000Z
audtool/__init__.py
Guaxinim5573/audacious-player
7bcd2afdd91bb18a41fb70500aaf76eaa17da837
[ "MIT" ]
null
null
null
import subprocess import logging logger = logging.getLogger(__name__) # Run a command line command and returns stdout def _run(command): result = subprocess.run(command, check=True, stdout=subprocess.PIPE, text=True) result.stdout = result.stdout[:-1] return result.stdout def is_playing(): result = subprocess.ru...
26.781818
91
0.697895
0
0
0
0
0
0
0
0
509
0.345553
3800e9b86f70276c90dfe1568a7d1e6b8f6d4743
5,157
py
Python
hyperglass/execution/drivers/agent.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
298
2019-06-17T13:51:46.000Z
2021-06-23T18:09:51.000Z
hyperglass/execution/drivers/agent.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
137
2019-06-18T12:59:37.000Z
2021-06-19T05:50:58.000Z
hyperglass/execution/drivers/agent.py
blkmajik/hyperglass
c52a6f609843177671d38bcad59b8bd658f46b64
[ "BSD-3-Clause-Clear" ]
42
2019-06-18T07:25:23.000Z
2021-06-18T17:40:20.000Z
"""Execute validated & constructed query on device. Accepts input from front end application, validates the input and returns errors if input is invalid. Passes validated parameters to construct.py, which is used to build & run the Netmiko connections or hyperglass-frr API calls, returns the output back to the front e...
36.835714
86
0.54683
4,434
0.859802
0
0
0
0
4,337
0.840993
1,015
0.19682
3800ef2480e2344c284a3ea135e2ec8a35e84cfa
3,377
py
Python
GiftUi.py
DrPleaseRespect/GiftBox
d39b3b644aa579297315ee3b3cb38c79556682f9
[ "MIT" ]
null
null
null
GiftUi.py
DrPleaseRespect/GiftBox
d39b3b644aa579297315ee3b3cb38c79556682f9
[ "MIT" ]
null
null
null
GiftUi.py
DrPleaseRespect/GiftBox
d39b3b644aa579297315ee3b3cb38c79556682f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'GiftUi.ui' ## ## Created by: Qt User Interface Compiler version 5.15.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ###################...
37.522222
95
0.665976
2,881
0.853124
0
0
0
0
0
0
571
0.169085
3801139345c9a4ae91e8d3ae8ff7f84beeaa380a
251
py
Python
telegram_coin_bot/__init__.py
sigmaister/telegram-coin-bot
b14329de8fc86cb135f05d7207f64a00f349cabf
[ "MIT" ]
17
2020-07-17T18:55:27.000Z
2021-11-20T03:54:01.000Z
telegram_coin_bot/__init__.py
sigmaister/telegram-coin-bot
b14329de8fc86cb135f05d7207f64a00f349cabf
[ "MIT" ]
5
2020-07-17T19:23:06.000Z
2020-08-11T12:45:14.000Z
telegram_coin_bot/__init__.py
sigmaister/telegram-coin-bot
b14329de8fc86cb135f05d7207f64a00f349cabf
[ "MIT" ]
10
2020-07-17T19:01:40.000Z
2021-12-18T13:21:55.000Z
__author__ = "Wild Print" __maintainer__ = __author__ __email__ = "telegram_coin_bot@rambler.ru" __license__ = "MIT" __version__ = "0.0.1" __all__ = ( "__author__", "__email__", "__license__", "__maintainer__", "__version__", )
15.6875
42
0.669323
0
0
0
0
0
0
0
0
119
0.474104
38028042957e1e98ecf41fea1079a9cdbc4aaca9
3,200
py
Python
tests/backend/message.py
IronMeerkat/genesis
4a053ae4639a12295be9951905ca69383c1da860
[ "MIT" ]
null
null
null
tests/backend/message.py
IronMeerkat/genesis
4a053ae4639a12295be9951905ca69383c1da860
[ "MIT" ]
null
null
null
tests/backend/message.py
IronMeerkat/genesis
4a053ae4639a12295be9951905ca69383c1da860
[ "MIT" ]
null
null
null
import test_agent print('Logging in') Meerkat = test_agent.TestAgent(username='meerkat', password='12345678', endpoint='/messages/') Pangolin = test_agent.TestAgent(username='pangolin', password='12345678', endpoint='/messages/') Badger = test_agent.TestAgent(username='badger', password='12345678', endpoint='/messages...
50
115
0.763438
0
0
0
0
0
0
0
0
1,456
0.455
380600494572f949b77592c439a21526f70f73b6
123
py
Python
contact/urls.py
BobsProgrammingAcademy/Portfolio-Website-Deployment
e3122f6fa0376f64b1580e03b8cb43da6dc85a1a
[ "MIT" ]
null
null
null
contact/urls.py
BobsProgrammingAcademy/Portfolio-Website-Deployment
e3122f6fa0376f64b1580e03b8cb43da6dc85a1a
[ "MIT" ]
null
null
null
contact/urls.py
BobsProgrammingAcademy/Portfolio-Website-Deployment
e3122f6fa0376f64b1580e03b8cb43da6dc85a1a
[ "MIT" ]
null
null
null
from django.urls import path from .views import ContactListView urlpatterns = [ path('', ContactListView.as_view()), ]
20.5
40
0.739837
0
0
0
0
0
0
0
0
2
0.01626
38070ca03e30ff02df559993d8efdc9637c42c89
4,610
py
Python
src/sentry/integrations/github/client.py
detouched/sentry
1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd
[ "BSD-3-Clause" ]
1
2018-12-04T12:57:00.000Z
2018-12-04T12:57:00.000Z
src/sentry/integrations/github/client.py
detouched/sentry
1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd
[ "BSD-3-Clause" ]
1
2021-05-09T11:43:43.000Z
2021-05-09T11:43:43.000Z
src/sentry/integrations/github/client.py
detouched/sentry
1d3cc332c9ee1c2cf5ddaf1e850e14386c3684dd
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from datetime import datetime from sentry.integrations.github.utils import get_jwt from sentry.integrations.client import ApiClient class GitHubClientMixin(ApiClient): allow_redirects = True base_url = 'https://api.github.com' def get_jwt(self): return ge...
32.237762
89
0.58872
4,431
0.961171
0
0
0
0
0
0
1,291
0.280043
38075a559a8aab3be200b9d2861d53ab27a363b2
1,504
py
Python
data/tokens.py
account77/mendax_py
2fa6fdf0ebb835a269665a3b64adf43b8a6e4e20
[ "MIT" ]
1
2022-02-08T06:50:33.000Z
2022-02-08T06:50:33.000Z
data/tokens.py
account77/mendax_py
2fa6fdf0ebb835a269665a3b64adf43b8a6e4e20
[ "MIT" ]
null
null
null
data/tokens.py
account77/mendax_py
2fa6fdf0ebb835a269665a3b64adf43b8a6e4e20
[ "MIT" ]
null
null
null
TT_INT = 'INT' # int TT_FLOAT = 'FLOAT' # float TT_STRING = 'STRING' # string TT_IDENTIFIER = 'IDENTIFIER' # 变量 TT_KEYWORD = 'KEYWORD' # 关键字 TT_PLUS = 'PLUS' # + TT_MINUS = 'MINUS' # - TT_MUL = 'MUL' # * TT_DIV = 'DIV' # / TT_POW = 'POW' # ^ TT_EQ = 'EQ' # = TT_LPAREN = 'LPAREN' # ( TT_RPAREN = 'RPAREN' # ...
21.183099
72
0.535904
764
0.482323
0
0
0
0
0
0
583
0.368056
3808406b3ee798849fbc2399203409d6b196a582
1,503
py
Python
server/tree_gen/tree_gen.py
patrickferner/Lo-Finity
406531106277c2ad3422518e8beb39b1c3fa53f3
[ "MIT" ]
1
2021-06-14T14:41:36.000Z
2021-06-14T14:41:36.000Z
server/tree_gen/tree_gen.py
Jorbeatz/Lo-Finity
406531106277c2ad3422518e8beb39b1c3fa53f3
[ "MIT" ]
null
null
null
server/tree_gen/tree_gen.py
Jorbeatz/Lo-Finity
406531106277c2ad3422518e8beb39b1c3fa53f3
[ "MIT" ]
1
2019-07-22T21:45:10.000Z
2019-07-22T21:45:10.000Z
import requests import json import pdb import time #url_string = "https://api.hooktheory.com/v1/trends/nodes?cp=1" response = requests.get("https://api.hooktheory.com/v1/trends/nodes?cp=1", headers={'Authorization': "Bearer 0449bff346d2609ac119bfb7d290e9bb"}) hook_result = json.loads(response.text) json_result = {} ch...
28.903846
144
0.667332
0
0
0
0
0
0
0
0
434
0.288756
3809288c999b3cc7a796e932763fb145aa047d6c
24,456
py
Python
rapt/GuidingCenter.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
1
2021-04-12T09:44:56.000Z
2021-04-12T09:44:56.000Z
rapt/GuidingCenter.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
rapt/GuidingCenter.py
mkozturk/rapt
cb293ac98d2d7707baf822b4e0efe18b2355f35c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ GuidingCenter class definition AUTHOR: Kaan Ozturk <mkozturk@yahoo.com> 2016, Rice University """ import numpy as np from scipy.integrate import ode import pickle import rapt.utils as ru import rapt.flutils as rfu from rapt import c, params, NonAdiabatic class GuidingCenter: ...
39.1296
124
0.550785
24,156
0.987733
0
0
0
0
0
0
11,667
0.477061
3809e399ed92b8e34acaef2788a9f1182ad1acca
5,835
py
Python
tests/hospital_resident/test_solver.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
tests/hospital_resident/test_solver.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
tests/hospital_resident/test_solver.py
drvinceknight/matching
da18fc12c880a1292a04d06824b5c17e68349e83
[ "MIT" ]
null
null
null
""" Unit tests for the HR solver. """ import pytest from matching import Matching from matching import Player as Resident from matching.games import HospitalResident from matching.players import Hospital from .params import HOSPITAL_RESIDENT, make_game, make_prefs @HOSPITAL_RESIDENT def test_init(resident_names, h...
30.07732
82
0.709169
0
0
0
0
4,931
0.845073
0
0
1,237
0.211997
380b492138a5616a5c2ec4ac40188efd1c8a200c
1,863
py
Python
build/lib/rqalpha/data/dtsk_python_interface/utility/tdtsk.py
kinglogxzl/rqalpha
6203803e0fb130fbb5a280ee8e1b902a8c0fd731
[ "Apache-2.0" ]
null
null
null
build/lib/rqalpha/data/dtsk_python_interface/utility/tdtsk.py
kinglogxzl/rqalpha
6203803e0fb130fbb5a280ee8e1b902a8c0fd731
[ "Apache-2.0" ]
null
null
null
build/lib/rqalpha/data/dtsk_python_interface/utility/tdtsk.py
kinglogxzl/rqalpha
6203803e0fb130fbb5a280ee8e1b902a8c0fd731
[ "Apache-2.0" ]
null
null
null
import date import os def get_time_delta(kline_type = '1_day'): if kline_type.lower() == '1_day'.lower(): return 0 kline_array = kline_type.split("_") if len(kline_array) != 2: raise ValueError('KLine_type {0} not supported'.format(kline_type)) if kline_array[1].lower() == 'min'.lower()...
34.5
97
0.674181
0
0
0
0
0
0
0
0
342
0.183575
380b9beb509374b7ce063345397afc45a8540e75
1,255
py
Python
2021/4/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2021/4/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2021/4/solution1.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from collections import defaultdict def check_winner(cards): for card_index, card in cards.items(): for index in range(5): complete_line = all([x[1] for x in card[index]]) complete_column = all([card[x][index][1] for x in range(5)]) if complete_line or complete_column: ...
22.818182
72
0.573705
0
0
0
0
0
0
0
0
79
0.062948
380c11403c1a76b0d531997f5e39af651f1a3bb9
31
py
Python
djshed/__init__.py
carthage-college/django-djshed
122dc2f9dd582fd943915b6268d4e90dc84993ca
[ "BSD-3-Clause" ]
null
null
null
djshed/__init__.py
carthage-college/django-djshed
122dc2f9dd582fd943915b6268d4e90dc84993ca
[ "BSD-3-Clause" ]
9
2020-03-04T16:04:21.000Z
2022-02-14T17:34:07.000Z
djshed/__init__.py
carthage-college/django-djshed
122dc2f9dd582fd943915b6268d4e90dc84993ca
[ "BSD-3-Clause" ]
null
null
null
from djshed.constants import *
15.5
30
0.806452
0
0
0
0
0
0
0
0
0
0
380d0996fe02d82d90603eefc1f9b3eea03168d3
666
py
Python
examples/hover_example.py
kail85/mpldatacursor
2df44a3912c2684b2d66fadc7cacbb9f60a15186
[ "MIT" ]
165
2015-01-09T03:48:50.000Z
2022-03-16T03:25:23.000Z
examples/hover_example.py
kail85/mpldatacursor
2df44a3912c2684b2d66fadc7cacbb9f60a15186
[ "MIT" ]
87
2015-02-09T11:17:49.000Z
2022-01-04T02:48:00.000Z
examples/hover_example.py
kail85/mpldatacursor
2df44a3912c2684b2d66fadc7cacbb9f60a15186
[ "MIT" ]
46
2015-01-13T00:59:18.000Z
2022-03-03T12:46:40.000Z
""" Demonstrates the hover functionality of mpldatacursor as well as point labels and a custom formatting function. Notice that overlapping points have both labels displayed. """ import string import matplotlib.pyplot as plt import numpy as np from mpldatacursor import datacursor np.random.seed(1977) x, y = np.random....
27.75
77
0.771772
0
0
0
0
0
0
0
0
287
0.430931
380dcb21be4aef252c42a69358eeac5c771319a7
1,236
py
Python
FilterResponseNorm.py
PanTongLin/Filter_Response_Norm
b87b82e0dd89c65fc9c6ed4b1154955afe2ad4da
[ "MIT" ]
1
2019-12-03T12:44:10.000Z
2019-12-03T12:44:10.000Z
FilterResponseNorm.py
PanTongLin/Filter_Response_Norm
b87b82e0dd89c65fc9c6ed4b1154955afe2ad4da
[ "MIT" ]
null
null
null
FilterResponseNorm.py
PanTongLin/Filter_Response_Norm
b87b82e0dd89c65fc9c6ed4b1154955afe2ad4da
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class FilterResponseNorm(nn.Module): def __init__(self, num_features, eps=1e-6, use_TLU=True): super(FilterResponseNorm, self).__init__() self.num_features = num_features self.eps = eps self.use_TLU = use_TLU self.weight = nn.Parameter(t...
30.146341
63
0.602751
1,198
0.969256
0
0
0
0
0
0
58
0.046926
38102a20a35e7ad75c7282cba75b15f3f03e641a
13,062
py
Python
tapas/utils/attention_utils_test.py
apurvak/tapas
7884280be78d2f58ad9c125504d710ef89f49f9a
[ "Apache-2.0" ]
816
2020-03-31T15:15:56.000Z
2022-03-31T19:28:02.000Z
tapas/utils/attention_utils_test.py
apurvak/tapas
7884280be78d2f58ad9c125504d710ef89f49f9a
[ "Apache-2.0" ]
155
2020-05-02T15:45:42.000Z
2022-03-31T08:35:23.000Z
tapas/utils/attention_utils_test.py
apurvak/tapas
7884280be78d2f58ad9c125504d710ef89f49f9a
[ "Apache-2.0" ]
173
2020-05-01T02:39:38.000Z
2022-03-30T06:43:29.000Z
# coding=utf-8 # Copyright 2019 The Google AI Language Team 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 ...
40.81875
80
0.535982
12,239
0.936993
0
0
0
0
0
0
1,771
0.135584
3811d802f57bc19ae72289d16c14c14349ea0f99
1,018
py
Python
backend/src/application.py
rpenna/post-scheduler
775a145eab6064ecfe2028064ab85834a7a1c412
[ "MIT" ]
null
null
null
backend/src/application.py
rpenna/post-scheduler
775a145eab6064ecfe2028064ab85834a7a1c412
[ "MIT" ]
8
2020-10-10T02:02:56.000Z
2020-11-08T21:04:17.000Z
backend/src/application.py
rpenna/post-scheduler
775a145eab6064ecfe2028064ab85834a7a1c412
[ "MIT" ]
null
null
null
from flask import Flask from flask_mongoengine import MongoEngine from src.controllers.user_controller import UserController db_host = { 'production': 'mongodb://localhost/posts', 'test': 'mongomock://localhost/posts' } def create_app(db_host_type: str = 'production') -> Flask: """Creates Flask app A...
29.085714
90
0.6778
0
0
0
0
0
0
0
0
361
0.354617
3812fff3955607f6a3a8b89e70ea9dfc7716d228
584
py
Python
Curso-em-video-Python3-mundo2/ex058.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo2/ex058.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
Curso-em-video-Python3-mundo2/ex058.py
bernardombraga/Solucoes-exercicios-cursos-gratuitos
0347a8325443fce84e0a753c96f523a22858537b
[ "MIT" ]
null
null
null
import random pc = random.randint(0, 10) print('''Sou seu computador... Acabei de pensar em um número entre 0 e 10. Será que você consegue adivinhar qual foi?''') player = int(input('Qual é seu palpite? ')) # print(pc, player) tentativas = 1 while pc != player: if pc > player: print('Mais... Tente mais uma ...
32.444444
64
0.640411
0
0
0
0
0
0
0
0
303
0.51269
381586539d665f7a1421b0fdd67949cba8d6ee1c
985
py
Python
mumblr/templatetags/mumblr_tags.py
hmarr/django-mumblr
36f6e4b0d5d5f999591987b24765915edce92400
[ "MIT" ]
35
2015-02-10T12:44:33.000Z
2020-12-27T19:47:33.000Z
mumblr/templatetags/mumblr_tags.py
hmarr/django-mumblr
36f6e4b0d5d5f999591987b24765915edce92400
[ "MIT" ]
null
null
null
mumblr/templatetags/mumblr_tags.py
hmarr/django-mumblr
36f6e4b0d5d5f999591987b24765915edce92400
[ "MIT" ]
16
2015-02-20T19:13:43.000Z
2022-02-16T04:38:12.000Z
from django.template import Library, Node, TemplateSyntaxError import re from mumblr.entrytypes import EntryType register = Library() class LatestEntriesNode(Node): def __init__(self, num, var_name): self.num = int(num or 10) self.var_name = var_name def render(self, context): con...
27.361111
74
0.643655
262
0.26599
0
0
580
0.588832
0
0
266
0.270051
3817b5265bdca590b8a4c43a50fd915e4ad3d51f
448
py
Python
funcional.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
null
null
null
funcional.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
null
null
null
funcional.py
renzon/novatec
9b6511217c4972bf8584dea8bca1460d4bcb9d87
[ "MIT" ]
2
2016-05-21T12:28:13.000Z
2020-09-06T21:58:36.000Z
from time import time def profile(funcao): def funcao_wrapper(*args, **kwargs): inicio = time() resultado = funcao(*args, **kwargs) fim = time() print(fim - inicio) return resultado return funcao_wrapper @profile def f(n): return 'Executei f {}'.format(n) print(f...
12.444444
43
0.566964
0
0
0
0
55
0.122768
0
0
29
0.064732
38188123fc74067b2382c0edf77f410238662bfd
1,040
py
Python
bf_smb_tmux.py
BadNameException/SambaBF
7421ac1d821807ffc565b7b5b466c85084343fb9
[ "MIT" ]
null
null
null
bf_smb_tmux.py
BadNameException/SambaBF
7421ac1d821807ffc565b7b5b466c85084343fb9
[ "MIT" ]
null
null
null
bf_smb_tmux.py
BadNameException/SambaBF
7421ac1d821807ffc565b7b5b466c85084343fb9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 from subprocess import Popen, PIPE, check_output p = 1 USERNAME = "sigurdkb" IP = "172.16.0.30" PORT = "445" new_results = [] correct_pw = "" cracked = bool(False) counter = 0 guess_result = ((),) pw = '' def connect_smb(): global correct_pw global cracked global guess_result...
17.931034
54
0.626923
0
0
0
0
0
0
0
0
219
0.210577
381a3c1f8fbb03e20ac9c74bfde3196e650b1d31
2,819
py
Python
VA/main/utils/cluster.py
YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation
23b9191f150d0edb981cf22a47a618feb55578b9
[ "MIT" ]
343
2018-07-18T10:39:30.000Z
2022-03-30T02:32:06.000Z
VA/main/utils/cluster.py
YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation
23b9191f150d0edb981cf22a47a618feb55578b9
[ "MIT" ]
47
2018-09-03T03:35:13.000Z
2021-11-15T02:09:15.000Z
VA/main/utils/cluster.py
YuJaceKim/Activity-Recognition-with-Combination-of-Deeply-Learned-Visual-Attention-and-Pose-Estimation
23b9191f150d0edb981cf22a47a618feb55578b9
[ "MIT" ]
83
2018-10-15T08:36:12.000Z
2022-03-05T05:51:16.000Z
import numpy as np # import matplotlib.pyplot as plt from scipy.cluster.vq import kmeans # def plothist(x): # vmin = x.min()-1 # vmax = x.max()+1 # bins = np.arange(vmin, vmax, (vmax - vmin)/50) # plt.hist(x, bins=bins) # plt.show() # def scatterpred(pred): # plt.scatter(pred[:,0], pred[:,1]) ...
29.673684
76
0.506208
0
0
0
0
0
0
0
0
603
0.213906
381c5c0ab457121c1be3d4dc192a40949d85e8c1
1,378
py
Python
isdbeads/__init__.py
michaelhabeck/bayesian-random-tomography
9429a3688df368f0fe8fd7beaa8202386951164a
[ "MIT" ]
2
2021-04-17T14:05:05.000Z
2022-02-24T16:03:29.000Z
isdbeads/__init__.py
michaelhabeck/bayesian-random-tomography
9429a3688df368f0fe8fd7beaa8202386951164a
[ "MIT" ]
null
null
null
isdbeads/__init__.py
michaelhabeck/bayesian-random-tomography
9429a3688df368f0fe8fd7beaa8202386951164a
[ "MIT" ]
null
null
null
from .universe import ( Universe, Particle ) from .probability import ( Probability ) from .likelihood import ( Likelihood, Normal, Exponential, LowerUpper, Logistic, GaussianMixture, Relu ) from .model import ( ModelDistances, ModelImage, ModelVolume, Radius...
12.759259
26
0.656749
0
0
0
0
0
0
0
0
0
0
381e48031db6b3bb9ab5198242c5568c48b161ff
2,668
py
Python
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
null
null
null
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
null
null
null
ag-res.py
Murilodsv/py-jules
601ca9e6fbad7fe82404f5296babb04583ddda95
[ "MIT" ]
1
2020-04-13T17:23:54.000Z
2020-04-13T17:23:54.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 20 13:32:20 2021 #--- ag csv results to single file based on dashboard_dbs #--- Murilo Vianna (murilodsv@gmail.com) #--- Jul, 2021. #--- Dev-log in: https://github.com/Murilodsv/py-jules @author: muril """ # DEBUG import os; os.chdir('C:/Murilo/py-jules'...
24.477064
97
0.508996
0
0
0
0
0
0
0
0
1,182
0.443028
3820fe50d4dce95d717e614296b340c0f9ebd66c
1,294
py
Python
gui/Color.py
brianjimenez/emol
b789b85b40a99247f008fb7cafa0d019d142cd3c
[ "MIT" ]
null
null
null
gui/Color.py
brianjimenez/emol
b789b85b40a99247f008fb7cafa0d019d142cd3c
[ "MIT" ]
null
null
null
gui/Color.py
brianjimenez/emol
b789b85b40a99247f008fb7cafa0d019d142cd3c
[ "MIT" ]
null
null
null
''' Created on Oct 10, 2012 @author: Brian Jimenez-Garcia @contact: brian.jimenez@bsc.es ''' class Color: def __init__(self, red=0., green=0., blue=0., alpha=1.0): self.__red = red self.__green = green self.__blue = blue self.__alpha = alpha def get_rgba(self): ...
26.408163
66
0.578053
515
0.397991
0
0
0
0
0
0
119
0.091963
38225c73c048ecdb417dfedadbfbcef4ca7108c0
917
py
Python
pnc_cli/pnc_help_formatter.py
vibe13/pnc-cli
9020462cac5254bdd40cc7d8fa239433242cce45
[ "Apache-2.0" ]
2
2016-05-18T15:01:34.000Z
2016-08-11T14:04:17.000Z
pnc_cli/pnc_help_formatter.py
vibe13/pnc-cli
9020462cac5254bdd40cc7d8fa239433242cce45
[ "Apache-2.0" ]
47
2016-06-23T19:58:40.000Z
2020-03-10T17:58:11.000Z
pnc_cli/pnc_help_formatter.py
vibe13/pnc-cli
9020462cac5254bdd40cc7d8fa239433242cce45
[ "Apache-2.0" ]
21
2016-05-30T20:34:17.000Z
2021-09-07T13:22:20.000Z
import argparse __author__ = 'aabulawi' class PNCFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter): def _expand_help(self, action): params = dict(vars(action), prog=self._prog) for name in list(params): if params[name] is argpar...
33.962963
72
0.579062
873
0.952017
0
0
0
0
0
0
102
0.111232
382269a9358bb58a18f501c0bd286c171e8ac7d7
775
py
Python
Spell Compendium/scr/Spell1148 - Nimbus of Light.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-04-26T08:03:56.000Z
2021-04-26T08:03:56.000Z
Spell Compendium/scr/Spell1148 - Nimbus of Light.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
2
2021-06-11T05:55:01.000Z
2021-08-03T23:41:02.000Z
Spell Compendium/scr/Spell1148 - Nimbus of Light.py
Sagenlicht/ToEE_Mods
a4b07f300df6067f834e09fcbc4c788f1f4e417b
[ "MIT" ]
1
2021-05-17T15:37:58.000Z
2021-05-17T15:37:58.000Z
from toee import * def OnBeginSpellCast(spell): print "Nimbus of Light OnBeginSpellCast" print "spell.target_list=", spell.target_list print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level def OnSpellEffect(spell): print "Nimbus of Light OnSpellEffect" spell.duration = 10 * s...
31
151
0.740645
0
0
0
0
0
0
0
0
264
0.340645
38229cdc49513c553f97ed67ce3eaa6b0ba92dcb
17,258
py
Python
pyBAScloudAPI/examples/main.py
bascloud/BASCloudAPI
6a06d430720e99204f84f5362b4f22d7d4a72b76
[ "MIT" ]
3
2021-04-30T07:44:11.000Z
2021-05-03T06:35:01.000Z
pyBAScloudAPI/examples/main.py
bascloud/BASCloudAPI
6a06d430720e99204f84f5362b4f22d7d4a72b76
[ "MIT" ]
9
2021-06-23T04:21:51.000Z
2022-01-17T04:15:06.000Z
pyBAScloudAPI/examples/main.py
bascloud/BAScloudAPI
6a06d430720e99204f84f5362b4f22d7d4a72b76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import pyBAScloudAPI as api def printErrorHandler(exception, json): print("\t\tException occured in request: ", exception, json) print("Testing util functions.") print("\t2021-04-26T10:56:58.000Z = ", api.Util.parseDateTimeString(dateTime="2021-04-26T10:56:58.000Z")) ...
30.224168
178
0.735195
0
0
0
0
0
0
0
0
7,510
0.435161
3824d6d18fbcaf0b52fe4f9be5410406a8d51803
1,498
py
Python
zeus/util/tests/output.py
ZachAnders/OPLabs
085030e60c23292c7860817233373ab6e1b19165
[ "BSD-2-Clause" ]
1
2018-02-06T17:43:51.000Z
2018-02-06T17:43:51.000Z
zeus/util/tests/output.py
ZachAnders/OPLabs
085030e60c23292c7860817233373ab6e1b19165
[ "BSD-2-Clause" ]
null
null
null
zeus/util/tests/output.py
ZachAnders/OPLabs
085030e60c23292c7860817233373ab6e1b19165
[ "BSD-2-Clause" ]
null
null
null
__COL_GOOD = '\033[32m' __COL_FAIL = '\033[31m' __COL_INFO = '\033[34m' __COL_BOLD = '\033[1m' __COL_ULIN = '\033[4m' __COL_ENDC = '\033[0m' def __TEST__(status, msg, color, args): args = ", ".join([str(key)+'='+str(args[key]) for key in args.keys()]) if args: args = "(" + args + ")" return "[{colo...
27.236364
74
0.586115
0
0
0
0
0
0
0
0
190
0.126836
3825d70d19be743114f68382ae76784d0aa81fda
604
py
Python
Chapter02/05_embossing_advance.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
Chapter02/05_embossing_advance.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
Chapter02/05_embossing_advance.py
yanboyang713/OpenCV-3-x-with-Python-By-Example
7393745014e0108985b860cb9b45c1c72dc0180d
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('./images/geometrics_input.png', cv2.IMREAD_GRAYSCALE) rows, cols = img.shape # It is used depth of cv2.CV_64F. sobel_horizontal = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=5) # Kernel size can be: 1,3,5 or 7. sobel_vertical = cv2.Sobel(img, cv2.CV_64F, 0, 1, ksize=5)...
25.166667
71
0.718543
0
0
0
0
0
0
0
0
159
0.263245
382763467eeacdcf8102a2eb884ff148f1377e58
269
py
Python
dataladmetadatamodel/text.py
yarikoptic/metadata-model
fac75a12f1c1ceaf111372dc1d22c8f39ce1481d
[ "MIT" ]
null
null
null
dataladmetadatamodel/text.py
yarikoptic/metadata-model
fac75a12f1c1ceaf111372dc1d22c8f39ce1481d
[ "MIT" ]
null
null
null
dataladmetadatamodel/text.py
yarikoptic/metadata-model
fac75a12f1c1ceaf111372dc1d22c8f39ce1481d
[ "MIT" ]
null
null
null
""" Instances of the Text class just contain text. Their main use is as dummy-element during model development. """ from dataclasses import dataclass from dataladmetadatamodel.connector import ConnectedObject @dataclass class Text(ConnectedObject): content: str
19.214286
58
0.799257
45
0.167286
0
0
56
0.208178
0
0
115
0.427509
382924f8e44ff0070db746377fb391d4fbcf5d44
790
py
Python
server/apps/bot/views.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
server/apps/bot/views.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
server/apps/bot/views.py
LowerDeez/movies_finder
3763bfe4c0d1cfe36e081c45a9cc9cdaa85e0ee4
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from .registry import registry from .services.webhook import process_webhook_event __all__ = ( 'WebhookView', ) class WebhookView(APIView): permission_classes = (AllowAny,) ...
27.241379
51
0.674684
535
0.677215
0
0
0
0
0
0
59
0.074684
3829f67a2282de2962daadc9c35410add7d48c53
161,798
py
Python
subject/tests/functional/v2/test_images.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
subject/tests/functional/v2/test_images.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
subject/tests/functional/v2/test_images.py
laoyigrace/subject
e6ed989fdc250917a19788112b22322b73b3550f
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
44.683237
82
0.596688
160,703
0.993232
2,294
0.014178
0
0
0
0
48,474
0.299596
382cc8f8f5ea8df980757417230fc969f24fd71f
110
py
Python
pyfantasy/__init__.py
markwhat1/pyfantasy
318a7afc97c7bf6ba978ff8bb8c4c58f8ea0d420
[ "MIT" ]
null
null
null
pyfantasy/__init__.py
markwhat1/pyfantasy
318a7afc97c7bf6ba978ff8bb8c4c58f8ea0d420
[ "MIT" ]
null
null
null
pyfantasy/__init__.py
markwhat1/pyfantasy
318a7afc97c7bf6ba978ff8bb8c4c58f8ea0d420
[ "MIT" ]
null
null
null
from .pyfantasy import Connection from .pyfantasy import League, Team, Player from .yahoo_oauth import OAuth2
27.5
43
0.827273
0
0
0
0
0
0
0
0
0
0
382d4e4871a9e9b0d2ed09ed6ba02c12a0996aad
898
py
Python
examples/hello_world/python/django_amf_example/urls.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
4
2015-12-12T04:34:34.000Z
2021-07-30T22:11:26.000Z
examples/hello_world/python/django_amf_example/urls.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
3
2015-03-23T23:45:30.000Z
2016-08-17T01:32:51.000Z
examples/hello_world/python/django_amf_example/urls.py
limscoder/amfast
e77162615090b6a1ad03565afcc4bec4b46f6a11
[ "MIT" ]
8
2015-03-23T23:45:34.000Z
2018-01-25T16:16:43.000Z
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^django_amf_example/', include('django_amf_example.foo.urls')), # Uncomment the admin/doc line below ...
35.92
92
0.675947
0
0
0
0
0
0
0
0
695
0.773942
382e05c1aec0a1e0fafc3e75a778a936b61e0df4
51,977
py
Python
mm_power_sdk_python/models/private_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
mm_power_sdk_python/models/private_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
mm_power_sdk_python/models/private_trial.py
MolecularMatch/mm-power-sdk-python
1fcbcc25c47d7b435e03929cb185eb7f10fb415d
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ MolecularMatch MMPower MMPower API # noqa: E501 OpenAPI spec version: 1.0.0 Contact: support@molecularmatch.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class PrivateTrial(object): """NOTE: T...
35.920525
993
0.649595
51,702
0.994633
0
0
38,903
0.748408
0
0
31,444
0.604913
382e7f7f1ccdfe04486fb53156b6e7f57b31f553
1,174
py
Python
play_heuristic_agent.py
Jueun-Park/gym-module-select
e7b3065b2203218dbe15bfaefecc81074ac6bc76
[ "MIT" ]
null
null
null
play_heuristic_agent.py
Jueun-Park/gym-module-select
e7b3065b2203218dbe15bfaefecc81074ac6bc76
[ "MIT" ]
null
null
null
play_heuristic_agent.py
Jueun-Park/gym-module-select
e7b3065b2203218dbe15bfaefecc81074ac6bc76
[ "MIT" ]
null
null
null
import argparse import gym import gym_module_select from stable_baselines.common.vec_env import DummyVecEnv def init_parse_argument(): parser = argparse.ArgumentParser() parser.add_argument('-e', '--num-exp', help='num experiment episode', type=int, default=10) args = parser.parse_args() return args ...
24.458333
95
0.556218
0
0
0
0
0
0
0
0
70
0.059625
382e952e0abc26313f1d85400cc6243d40c68ce8
238
py
Python
01_Python_Basico_Intermediario/Aula030/aula30.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
1
2021-07-19T12:31:49.000Z
2021-07-19T12:31:49.000Z
01_Python_Basico_Intermediario/Aula030/aula30.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
null
null
null
01_Python_Basico_Intermediario/Aula030/aula30.py
Joao-Inacio/Curso-de-Python3
179d85f43f77dced640ffb143a87214538254cf3
[ "MIT" ]
null
null
null
""" Funções (def) - *args **kwargs """ # def func(a1, a2, a3, a4, a5, nome=None, a6=None): # print(a1, a2, a3, a4, a5, nome, a6) def func(*args, **kwargs): print(args, kwargs) lista = [1, 2, 3, 4, 5] func(*lista, nome='João')
17
51
0.55042
0
0
0
0
0
0
0
0
139
0.576763
382f2f78668adbeb3d9c2f747861ad2dbe227500
78,600
py
Python
lib/rucio/daemons/conveyor/utils.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/conveyor/utils.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/conveyor/utils.py
brianv0/rucio
127a36fd53e5b4d9eb14ab02fe6c36443d78bfd0
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Vincent Garonne, <vin...
54.926625
223
0.537494
0
0
0
0
28,227
0.359122
0
0
16,959
0.215763
3830df09c72d6bc67a2ca0f6763f909dda7df0af
574
py
Python
list_images.py
mrowacz/digital_api_scripts
bc8758862a6fccc982c9e5ae05e6590e88dc9059
[ "MIT" ]
null
null
null
list_images.py
mrowacz/digital_api_scripts
bc8758862a6fccc982c9e5ae05e6590e88dc9059
[ "MIT" ]
null
null
null
list_images.py
mrowacz/digital_api_scripts
bc8758862a6fccc982c9e5ae05e6590e88dc9059
[ "MIT" ]
null
null
null
import os import json import requests url = "https://api.digitalocean.com/v2/images?per_page=999" headers = {"Authorization" : "Bearer " + os.environ['DIGITALOCEAN_ACCESS_TOKEN']} r = requests.get(url, headers=headers) distros = {} for entry in r.json()["images"]: s = "(" + str(entry["id"]) + ") " + entry["name"...
26.090909
81
0.634146
0
0
0
0
0
0
0
0
178
0.310105
3833598a358309dbc5740aefcbd3d175d6018996
8,457
py
Python
custom_components/journey/__init__.py
intrinseca/journey-custom-component
e29723418c9c6f50ee7c72b0e0e4488e1872a2a2
[ "MIT" ]
null
null
null
custom_components/journey/__init__.py
intrinseca/journey-custom-component
e29723418c9c6f50ee7c72b0e0e4488e1872a2a2
[ "MIT" ]
8
2021-12-21T22:11:10.000Z
2022-02-08T07:46:38.000Z
custom_components/journey/__init__.py
intrinseca/journey-custom-component
e29723418c9c6f50ee7c72b0e0e4488e1872a2a2
[ "MIT" ]
null
null
null
""" Custom integration to integrate Journey with Home Assistant. For more details about this integration, please refer to https://github.com/intrinseca/journey """ import asyncio from dataclasses import dataclass from datetime import timedelta import logging import math from OSMPythonTools.nominatim import NominatimR...
32.526923
94
0.65366
5,586
0.660518
0
0
2,460
0.290883
3,902
0.461393
1,447
0.171101
3834a1c892c6add4c60a560b94fbde6a1d618040
251
py
Python
acpki/models/Contract.py
sigurd120/acpki
5994fe50f97adaddece4f961fe4e888dd7d014f4
[ "BSD-Source-Code" ]
null
null
null
acpki/models/Contract.py
sigurd120/acpki
5994fe50f97adaddece4f961fe4e888dd7d014f4
[ "BSD-Source-Code" ]
null
null
null
acpki/models/Contract.py
sigurd120/acpki
5994fe50f97adaddece4f961fe4e888dd7d014f4
[ "BSD-Source-Code" ]
null
null
null
class Contract: """ Model class representing a Cisco ACI Contract """ def __init__(self, uid, name, dn): self.uid = uid self.name = name self.dn = dn def equals(self, con): return self.dn == con.dn
20.916667
49
0.553785
250
0.996016
0
0
0
0
0
0
61
0.243028
3834fa4b5731010d90ed1b11936d38cd049a51f6
1,015
py
Python
setup.py
debugtalk/hdiff
6e5c67bf020316d52962f48a6ae81cfb5d0ce8c0
[ "MIT" ]
1
2017-07-06T07:32:48.000Z
2017-07-06T07:32:48.000Z
setup.py
debugtalk/hdiff
6e5c67bf020316d52962f48a6ae81cfb5d0ce8c0
[ "MIT" ]
null
null
null
setup.py
debugtalk/hdiff
6e5c67bf020316d52962f48a6ae81cfb5d0ce8c0
[ "MIT" ]
1
2019-12-10T05:20:09.000Z
2019-12-10T05:20:09.000Z
#encoding: utf-8 import os import re from setuptools import setup, find_packages # parse version from xdiff/__init__.py with open(os.path.join(os.path.dirname(__file__), 'xdiff', '__init__.py')) as f: version = re.compile(r"__version__\s+=\s+'(.*)'", re.I).match(f.read()).group(1) with open('README.md') as f: ...
26.710526
94
0.625616
0
0
0
0
0
0
0
0
419
0.412808
3836b50753707e664310c41fdfbe621c72c591ad
86
py
Python
recommendations/kujikatsu/249/c.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
recommendations/kujikatsu/249/c.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
1
2021-01-02T06:36:51.000Z
2021-01-02T06:36:51.000Z
recommendations/kujikatsu/249/c.py
takelifetime/competitive-programming
e7cf8ef923ccefad39a1727ca94c610d650fcb76
[ "BSD-2-Clause" ]
null
null
null
a, b, n = map(int, input().split()) x = min(b - 1, n) print(a * x // b - a * (x // b))
28.666667
35
0.430233
0
0
0
0
0
0
0
0
0
0
3837ed605953a3a84f61221e934440108abfdf2f
2,790
py
Python
docs/source/conf.py
ducouloa/ml4ir
75aeecaff11682a7bd71c5521e59c449c43c3f9f
[ "Apache-2.0" ]
70
2020-02-05T00:42:29.000Z
2022-03-07T09:33:01.000Z
docs/source/conf.py
ducouloa/ml4ir
75aeecaff11682a7bd71c5521e59c449c43c3f9f
[ "Apache-2.0" ]
102
2020-01-31T21:12:55.000Z
2022-03-28T17:04:43.000Z
docs/source/conf.py
ducouloa/ml4ir
75aeecaff11682a7bd71c5521e59c449c43c3f9f
[ "Apache-2.0" ]
23
2020-02-05T00:43:07.000Z
2022-02-13T13:33:51.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.44186
79
0.684946
0
0
0
0
0
0
0
0
2,190
0.784946
383841710ce3e85bb05270e42f4b8e80b35e6697
1,193
py
Python
manage.py
ishiland/ArcGIS-License-Tracker
b998bbf9229434f0101f0e211638f0a815c89b73
[ "MIT" ]
3
2021-01-30T07:08:58.000Z
2022-01-31T13:36:19.000Z
manage.py
ishiland/flexlm-flask
b998bbf9229434f0101f0e211638f0a815c89b73
[ "MIT" ]
2
2020-03-16T18:39:41.000Z
2021-06-24T13:01:55.000Z
manage.py
ishiland/flexlm-flask
b998bbf9229434f0101f0e211638f0a815c89b73
[ "MIT" ]
2
2018-06-11T20:13:52.000Z
2019-12-11T21:11:45.000Z
import unittest from flask_script import Manager, Shell, Server from app import app, db from app.fake_populate import populate manager = Manager(app) def make_shell_context(): return dict(app=app) @manager.command def recreate_db(): """ Create the SQL database. """ db.drop_all() db.create_all...
20.929825
71
0.673931
0
0
0
0
809
0.678122
0
0
326
0.273261
3839d2bcd20e33a947c357a2d7aab8f090791caf
454
py
Python
learning_journal/routes.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
learning_journal/routes.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
3
2019-12-26T16:39:40.000Z
2021-06-01T21:57:09.000Z
learning_journal/routes.py
hcodydibble/pyramid-learning-journal
eb7a59526885a420b6818fcb888497c21674cf76
[ "MIT" ]
null
null
null
"""Routes and URIs.""" def includeme(config): """Add routes and their URIs.""" config.add_static_view('static', 'static', cache_max_age=3600) config.add_route('home', '/') config.add_route('about', '/about') config.add_route('details', '/journal/{id:\d+}') config.add_route('create', '/journal/...
34.923077
66
0.640969
0
0
0
0
0
0
0
0
222
0.488987
383a7046c35dad93a416c03cbb5e74d2633b5cd2
2,231
py
Python
moto/logs/metric_filters.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
5,460
2015-01-01T01:11:17.000Z
2022-03-31T23:45:38.000Z
moto/logs/metric_filters.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
4,475
2015-01-05T19:37:30.000Z
2022-03-31T13:55:12.000Z
moto/logs/metric_filters.py
gtourkas/moto
307104417b579d23d02f670ff55217a2d4a16bee
[ "Apache-2.0" ]
1,831
2015-01-14T00:00:44.000Z
2022-03-31T20:30:04.000Z
def find_metric_transformation_by_name(metric_transformations, metric_name): for metric in metric_transformations: if metric["metricName"] == metric_name: return metric def find_metric_transformation_by_namespace(metric_transformations, metric_namespace): for metric in metric_transformatio...
33.80303
87
0.593904
1,820
0.815778
0
0
0
0
0
0
191
0.085612
383b08a07ce0a7e72dd5bd0304a317d08bcb959e
1,840
py
Python
bin/helper/evaluation_config_mixin.py
rubienr/dirindex
ced18a6ed9e42cab2dc870b61ddfa3ac8a6ceacb
[ "Apache-2.0" ]
1
2020-05-15T17:50:45.000Z
2020-05-15T17:50:45.000Z
bin/helper/evaluation_config_mixin.py
rubienr/dirindex
ced18a6ed9e42cab2dc870b61ddfa3ac8a6ceacb
[ "Apache-2.0" ]
null
null
null
bin/helper/evaluation_config_mixin.py
rubienr/dirindex
ced18a6ed9e42cab2dc870b61ddfa3ac8a6ceacb
[ "Apache-2.0" ]
null
null
null
from configparser import ConfigParser from .databases_config_mixin import get_configured_db_file_path ################################################################################################## class EvaluationConfigMixin(object): ###########################################################################...
44.878049
102
0.492391
1,635
0.888587
0
0
0
0
0
0
711
0.386413
383c4dbc8788963ff0f2227ca34717a2ddb9d2f7
334
py
Python
backend/api/room/urls.py
jeraldlyh/HoloRPG
e835eb1f7a6b18c87007ecf8168d959b4e176a23
[ "MIT" ]
null
null
null
backend/api/room/urls.py
jeraldlyh/HoloRPG
e835eb1f7a6b18c87007ecf8168d959b4e176a23
[ "MIT" ]
null
null
null
backend/api/room/urls.py
jeraldlyh/HoloRPG
e835eb1f7a6b18c87007ecf8168d959b4e176a23
[ "MIT" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from .views import DungeonViewSet, RoomViewSet router = DefaultRouter() router.register(r"dungeon", DungeonViewSet, basename="dungeon") router.register(r"room", RoomViewSet, basename="room") urlpatterns = [ path("", include(ro...
27.833333
63
0.775449
0
0
0
0
0
0
0
0
34
0.101796
383cd794bb8386729f21cbb926a0d719527719f4
1,761
py
Python
makememe/generator/prompts/types/waiting.py
joshbickett/makememe_ai
7f66d31564515ea9b4490838d4e33d85ba0a260a
[ "MIT" ]
37
2021-12-25T19:55:37.000Z
2022-03-23T08:28:49.000Z
makememe/generator/prompts/types/waiting.py
joshbickett/makememe_ai
7f66d31564515ea9b4490838d4e33d85ba0a260a
[ "MIT" ]
null
null
null
makememe/generator/prompts/types/waiting.py
joshbickett/makememe_ai
7f66d31564515ea9b4490838d4e33d85ba0a260a
[ "MIT" ]
5
2021-12-29T11:42:28.000Z
2022-03-08T20:49:49.000Z
from makememe.generator.prompts.prompt import Prompt import datetime from PIL import Image from makememe.generator.design.image_manager import Image_Manager class Waiting(Prompt): name = "Waiting" description = "waiting" def __init__(self): self.instruction = """ ### Message:I've been waiting for...
32.611111
86
0.599091
1,601
0.909143
0
0
0
0
0
0
645
0.366269
383e3af7fe9618bbfe62c21b134b2caa1c790a2d
167
py
Python
.kodi/addons/plugin.audio.radioreference/__init__.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.audio.radioreference/__init__.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/plugin.audio.radioreference/__init__.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
# -*- coding: utf-8 -*- #------------------------------------------------------------ # broadcastify #------------------------------------------------------------
33.4
62
0.131737
0
0
0
0
0
0
0
0
163
0.976048
383febaf1ca2d83f51aaa28742d1adb8350698d6
1,212
py
Python
ubermag/tests/test_basic_logging.py
ubermag/ubermag
7e53f62ae643842cd117f9031ab54380b8c00cb0
[ "BSD-3-Clause" ]
20
2019-06-14T07:09:44.000Z
2022-03-02T17:37:29.000Z
ubermag/tests/test_basic_logging.py
ubermag/ubermag
7e53f62ae643842cd117f9031ab54380b8c00cb0
[ "BSD-3-Clause" ]
42
2019-06-13T11:51:40.000Z
2022-03-16T14:47:19.000Z
ubermag/tests/test_basic_logging.py
ubermag/ubermag
7e53f62ae643842cd117f9031ab54380b8c00cb0
[ "BSD-3-Clause" ]
5
2019-06-20T08:18:30.000Z
2021-08-10T10:55:09.000Z
import ubermag import logging def check_levels(level=logging.WARNING, per_package=None): packages = [ 'discretisedfield', 'mag2exp', 'micromagneticdata', 'micromagneticmodel', 'micromagnetictests', 'oommfc', 'ubermagtable', 'ubermagutil', ] ...
24.734694
76
0.637789
0
0
0
0
0
0
0
0
262
0.216172
384039dd253dbb45af5fe08ff152328cbf2dabfd
8,076
py
Python
python_framework/api/test/api/src/annotation/GlobalExceptionAnnotationTest.py
SamuelJansen/python_framework
a3e57def47c13edd67319f9bbca32be2bbb00f43
[ "MIT" ]
5
2020-09-02T20:05:44.000Z
2022-03-04T21:02:13.000Z
python_framework/api/test/api/src/annotation/GlobalExceptionAnnotationTest.py
SamuelJansen/python_framework
a3e57def47c13edd67319f9bbca32be2bbb00f43
[ "MIT" ]
1
2021-05-23T22:55:58.000Z
2021-05-24T15:33:50.000Z
python_framework/api/test/api/src/annotation/GlobalExceptionAnnotationTest.py
SamuelJansen/python_framework
a3e57def47c13edd67319f9bbca32be2bbb00f43
[ "MIT" ]
3
2020-11-01T01:13:09.000Z
2022-02-22T15:01:19.000Z
from python_helper import log, Test, SettingHelper, RandomHelper, ObjectHelper, TestHelper, ReflectionHelper, Constant from python_framework import EncapsulateItWithGlobalException, GlobalException, ExceptionHandler, HttpStatus LOG_HELPER_SETTINGS = { log.LOG : False, log.INFO : True, log.SUCCESS : True, ...
48.071429
255
0.773279
116
0.014364
0
0
7,236
0.895988
0
0
2,321
0.287395
38410ea065efac093f59cf59aebf388e93e666a8
4,007
py
Python
src/Pybind11Wraps/Neighbor/TreeNeighbor.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
1
2020-10-21T01:56:55.000Z
2020-10-21T01:56:55.000Z
src/Pybind11Wraps/Neighbor/TreeNeighbor.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
src/Pybind11Wraps/Neighbor/TreeNeighbor.py
markguozhiming/spheral
bbb982102e61edb8a1d00cf780bfa571835e1b61
[ "BSD-Source-Code", "BSD-3-Clause-LBNL", "FSFAP" ]
null
null
null
#------------------------------------------------------------------------------- # TreeNeighbor #------------------------------------------------------------------------------- from PYB11Generator import * from Neighbor import * from NeighborAbstractMethods import * @PYB11template("Dimension") class TreeNeighbor(Neigh...
42.62766
164
0.550786
3,454
0.861992
0
0
3,482
0.868979
0
0
2,503
0.624657
384212c693fe183ca43529aa8c41250ed2908324
656
py
Python
hardhat/recipes/tkdiff.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/tkdiff.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/tkdiff.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from .base import GnuRecipe class TkDiffRecipe(GnuRecipe): def __init__(self, *args, **kwargs): super(TkDiffRecipe, self).__init__(*args, **kwargs) self.sha256 = '734bb417184c10072eb64e8d27424533' \ '8e41b7fdeff661b5ef30e89f3e3aa357' self.name = 'tkdiff' self....
29.818182
79
0.592988
625
0.952744
0
0
0
0
0
0
201
0.306402
38442d4e520a2a7cf2672966f74e1bda1da32461
199
py
Python
profiles_app/serializers.py
foropolo/task
bf44361537f97db4bd8efe189b16958b6c8f8491
[ "MIT" ]
null
null
null
profiles_app/serializers.py
foropolo/task
bf44361537f97db4bd8efe189b16958b6c8f8491
[ "MIT" ]
7
2020-06-06T00:01:49.000Z
2022-02-10T11:31:54.000Z
profiles_app/serializers.py
foropolo/task
bf44361537f97db4bd8efe189b16958b6c8f8491
[ "MIT" ]
null
null
null
from rest_framework import serializers class HelloSerializer(serializers.Serializer): """Serializes a name field for testing out APIView""" city_name = serializers.CharField(max_length=30)
28.428571
57
0.788945
157
0.788945
0
0
0
0
0
0
53
0.266332
384588ab19b7b9445eb8d0e620a6a304d88dad1c
62
py
Python
tests/__init__.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
tests/__init__.py
johnsca/charm-helpers
e1157a1edb7ef2cc478af176086998d68de0b193
[ "Apache-2.0" ]
null
null
null
import sys import mock sys.modules['yum'] = mock.MagicMock()
12.4
37
0.725806
0
0
0
0
0
0
0
0
5
0.080645
3847bfe54774d87addfadb9073d4d4d898715bfd
1,552
py
Python
steps/app/migrations/0006_auto_20180330_1816.py
VishalCR7/steps
521e9317b0973795e9f2b98df9d41908ae95e042
[ "Apache-2.0" ]
null
null
null
steps/app/migrations/0006_auto_20180330_1816.py
VishalCR7/steps
521e9317b0973795e9f2b98df9d41908ae95e042
[ "Apache-2.0" ]
null
null
null
steps/app/migrations/0006_auto_20180330_1816.py
VishalCR7/steps
521e9317b0973795e9f2b98df9d41908ae95e042
[ "Apache-2.0" ]
3
2018-10-06T11:40:53.000Z
2018-10-07T18:49:06.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-30 12:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0005_auto_20180330_1813'), ] operations = [ ...
36.952381
147
0.646907
1,363
0.878222
0
0
0
0
0
0
390
0.251289
697365290d19012dbb2289c34b92ed5cceafd229
2,854
py
Python
users.py
mavi0/onos-reroute-api
e3a155ce860a944563297c076e6ef4d8ac5a563e
[ "MIT" ]
null
null
null
users.py
mavi0/onos-reroute-api
e3a155ce860a944563297c076e6ef4d8ac5a563e
[ "MIT" ]
null
null
null
users.py
mavi0/onos-reroute-api
e3a155ce860a944563297c076e6ef4d8ac5a563e
[ "MIT" ]
null
null
null
import json, base64 import logging, coloredlogs import hashlib, copy from flask_table import Table, Col logger = logging.getLogger(__name__) coloredlogs.install(level='INFO') class Users: def __init__(self): self.__users = self.__load_users("json/users.json") self.__generate_hash_keys() de...
29.122449
99
0.575333
2,627
0.920463
0
0
0
0
0
0
578
0.202523
6974fd265bd84e76fffa8f0a1c0eaed99e207bb7
841
py
Python
tests/test_win_app.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
6,140
2018-01-24T03:27:48.000Z
2022-03-31T14:37:54.000Z
tests/test_win_app.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
993
2018-02-02T11:21:40.000Z
2022-03-31T20:41:41.000Z
tests/test_win_app.py
koyoki/Airtest
ea8391bd4819d9231e7b35f18c14662e6109fad0
[ "Apache-2.0" ]
1,022
2018-03-05T07:45:22.000Z
2022-03-31T04:29:57.000Z
# encoding=utf-8 from airtest.core.win import Windows import unittest import numpy import time from testconf import try_remove SNAPSHOT = "win_snapshot.png" class TestWin(unittest.TestCase): @classmethod def setUpClass(cls): w = Windows() w.start_app("calc") time.sleep(1) cl...
21.025
65
0.649227
636
0.750885
0
0
252
0.297521
0
0
72
0.085006
6975386566f8d048910ebad189266d0d942c5edc
2,382
py
Python
testing_app.py
michal090497/python-fruits-recognition
f9dc8f4d5e682bd68e7df8079c2648dc462f1cad
[ "MIT" ]
1
2022-02-21T18:45:03.000Z
2022-02-21T18:45:03.000Z
testing_app.py
tomasz-jankowski/python-fruits-recognition
2ca96e412dee4a586eb8ba5c6b33d0169e5e9231
[ "MIT" ]
null
null
null
testing_app.py
tomasz-jankowski/python-fruits-recognition
2ca96e412dee4a586eb8ba5c6b33d0169e5e9231
[ "MIT" ]
null
null
null
# Import required libraries import cv2 from os.path import os, dirname import tensorflow as tf import numpy as np from tqdm import tqdm import random # List of categories (directories names) CATEGORIES = ["bad_apple", "bad_grape", "bad_pear", "cherry", "good_apple", "good_avocado", "good_grape", "good_pear", "ripe_avo...
27.697674
134
0.70445
0
0
0
0
0
0
0
0
978
0.410579
6975897181723160fe0f7a9044875607ac1022c2
23,657
py
Python
scylla/datadog_checks/scylla/metrics.py
tzach/integrations-core
ac9daf60630bea4739947fe1d8df72c20bfcbc22
[ "BSD-3-Clause" ]
null
null
null
scylla/datadog_checks/scylla/metrics.py
tzach/integrations-core
ac9daf60630bea4739947fe1d8df72c20bfcbc22
[ "BSD-3-Clause" ]
null
null
null
scylla/datadog_checks/scylla/metrics.py
tzach/integrations-core
ac9daf60630bea4739947fe1d8df72c20bfcbc22
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) # metrics namespaced under 'scylla' SCYLLA_ALIEN = { 'scylla_alien_receive_batch_queue_length': 'alien.receive_batch_queue_length', 'scylla_alien_total_received_messages': 'alien.total_received_me...
59.739899
169
0.820518
0
0
0
0
0
0
0
0
20,250
0.855983
69773b443e3d861e0a9c9951bc4171e69df9c2e7
4,820
py
Python
simple_rest_client/resource.py
Manre/python-simple-rest-client
d8f0a6fa8ea27fcbe17d38059345649c0eabff3b
[ "MIT" ]
1
2021-08-19T00:35:28.000Z
2021-08-19T00:35:28.000Z
simple_rest_client/resource.py
Manre/python-simple-rest-client
d8f0a6fa8ea27fcbe17d38059345649c0eabff3b
[ "MIT" ]
null
null
null
simple_rest_client/resource.py
Manre/python-simple-rest-client
d8f0a6fa8ea27fcbe17d38059345649c0eabff3b
[ "MIT" ]
null
null
null
import logging from types import MethodType from urllib.parse import urljoin import aiohttp import requests from json_encoder import json from .exceptions import ActionNotFound, ActionURLMatchError from .models import Request from .request import make_request, make_async_request logger = logging.getLogger(__name__) ...
33.706294
82
0.556017
4,491
0.931743
0
0
802
0.16639
874
0.181328
262
0.054357