hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a06e6e1a73c3036047979830e8ab7be408183aa
13,453
py
Python
implementation 20 x 15.py
dhavaldarbar/SIT723_ProjectA-
52a0494fc41774020ae8e1a9ab69496478ae4242
[ "0BSD" ]
null
null
null
implementation 20 x 15.py
dhavaldarbar/SIT723_ProjectA-
52a0494fc41774020ae8e1a9ab69496478ae4242
[ "0BSD" ]
null
null
null
implementation 20 x 15.py
dhavaldarbar/SIT723_ProjectA-
52a0494fc41774020ae8e1a9ab69496478ae4242
[ "0BSD" ]
null
null
null
import numpy as np import random import sys import time # Fisher and Thompson 20x5 instance, alternate name (mt20) # 20 5 # 0 29 1 9 2 49 3 62 4 44 # 0 43 1 75 3 69 2 46 4 72 # 1 91 0 39 2 90 4 12 3 45 # 1 81 0 71 4 9 2 85 3 22 # 2 14 1 22 0 26 3 21 4 72 # 2 84 1 52 4 48 0 47 3 6 # 1 46 0 61 2 32...
41.779503
123
0.499145
4a06e997a7c2b97ac26e09bfcfa020bd92baeab4
44
py
Python
social_app_django_multitenant/tests/__init__.py
CitooZz/Social-App-Django-Multitenant
df2b163263cf73bf5e85bbe97a4a98d173cc775c
[ "MIT" ]
null
null
null
social_app_django_multitenant/tests/__init__.py
CitooZz/Social-App-Django-Multitenant
df2b163263cf73bf5e85bbe97a4a98d173cc775c
[ "MIT" ]
1
2018-01-09T12:00:41.000Z
2018-01-09T12:00:41.000Z
social_app_django_multitenant/tests/__init__.py
AgilisHQ/social-app-django-multitenant
2081884ecc09c8026d1e15e123e8c68a2595f73b
[ "MIT" ]
null
null
null
from .test_multitenant_social_auth import *
22
43
0.863636
4a06ea0e9a21764295f806e8a97e0a5852ba8dc1
3,455
py
Python
purity_fb/purity_fb_1dot6/models/bucket_post.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
5
2017-09-08T20:47:22.000Z
2021-06-29T02:11:05.000Z
purity_fb/purity_fb_1dot6/models/bucket_post.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
16
2017-11-27T20:57:48.000Z
2021-11-23T18:46:43.000Z
purity_fb/purity_fb_1dot6/models/bucket_post.py
tlewis-ps/purity_fb_python_client
652835cbd485c95a86da27f8b661679727ec6ea0
[ "Apache-2.0" ]
22
2017-10-13T15:33:05.000Z
2021-11-08T19:56:21.000Z
# coding: utf-8 """ Pure Storage FlashBlade REST 1.6 Python SDK Pure Storage FlashBlade REST 1.6 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.6 Contact: i...
28.089431
204
0.571925
4a06ea9500770987fb29dd1e4154cd2680ee95e5
9,366
py
Python
pandas/core/dtypes/base.py
henighan/pandas
45d8d77f27cf0dbc8cefe932f8fb64f6982b9527
[ "BSD-3-Clause" ]
1
2020-11-11T05:28:41.000Z
2020-11-11T05:28:41.000Z
pandas/core/dtypes/base.py
ivan-vasilev/pandas
4071dde86e33434e1bee8304fa62074949f813cc
[ "BSD-3-Clause" ]
null
null
null
pandas/core/dtypes/base.py
ivan-vasilev/pandas
4071dde86e33434e1bee8304fa62074949f813cc
[ "BSD-3-Clause" ]
null
null
null
"""Extend pandas with custom array types""" from typing import Any, List, Optional, Tuple, Type import numpy as np from pandas.errors import AbstractMethodError from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries class ExtensionDtype: """ A custom data type, to be paired with an E...
29.828025
86
0.595772
4a06eac655fb4463472edfa7578203ddda643b43
446
py
Python
pandas/read_custom_data_format_4.py
tisnik/poc-schema-checks
80499bd3a1de0b949e85e5f0fea9f945cafd012e
[ "Apache-2.0" ]
null
null
null
pandas/read_custom_data_format_4.py
tisnik/poc-schema-checks
80499bd3a1de0b949e85e5f0fea9f945cafd012e
[ "Apache-2.0" ]
null
null
null
pandas/read_custom_data_format_4.py
tisnik/poc-schema-checks
80499bd3a1de0b949e85e5f0fea9f945cafd012e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # vim: set fileencoding=utf-8 """Reading data file with custom format. separator + skip rows specification.""" import pandas df = pandas.read_csv("denni_kurz.txt", sep="|", skiprows=1) df["kurz"] = pandas.to_numeric(df["kurz"].str.replace(',','.'), errors='coerce') print("Data frame") print(...
22.3
80
0.598655
4a06eb1c09c8346cb90cba58ffd4aa8584c54dde
1,726
py
Python
conu/fixtures/__init__.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
95
2018-05-19T14:35:08.000Z
2022-01-08T23:31:40.000Z
conu/fixtures/__init__.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
179
2017-09-12T11:14:30.000Z
2018-04-26T05:36:13.000Z
conu/fixtures/__init__.py
lslebodn/conu
dee6fd958471f77d1c0511b031ea136dfaf8a77a
[ "MIT" ]
16
2018-05-09T14:15:32.000Z
2021-08-02T21:11:33.000Z
# -*- coding: utf-8 -*- # # Copyright Contributors to the Conu project. # SPDX-License-Identifier: MIT # """ This submodule contains `pytest <https://docs.pytest.org/en/latest/>`_ fixtures which can be utilized when writing tests for your containers while using conu and pytest. """ import logging from conu import Doc...
27.396825
99
0.705678
4a06eb1d74c532878be72406f68886e0cbcd79af
2,187
py
Python
tutorials/filter_edges.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tutorials/filter_edges.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tutorials/filter_edges.py
ChristophReich1996/kornia
35f955b46e8015da1cb9faa28c6943ec2b09cc2a
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Compute filter edges ==================== In this tutorial we are going to learn how to compute the first order and second order derivatives of an image using `kornia.filters`. """ import cv2 import numpy as np import torch import torchvision from matplotlib import pyplot as plt import kornia ##################...
27
80
0.606767
4a06ebba588f0911fd38861a9a4519f417d71f96
2,391
py
Python
data/water/CMEMS_ocean_pH/viz/generate.py
ilopezgp/human_impacts
b2758245edac0946080a647f1dbfd1098c0f0b27
[ "MIT" ]
4
2020-08-25T00:52:01.000Z
2020-11-16T16:57:46.000Z
data/water/CMEMS_ocean_pH/viz/generate.py
ilopezgp/human_impacts
b2758245edac0946080a647f1dbfd1098c0f0b27
[ "MIT" ]
5
2020-10-30T21:22:55.000Z
2021-12-30T02:07:02.000Z
data/water/CMEMS_ocean_pH/viz/generate.py
ilopezgp/human_impacts
b2758245edac0946080a647f1dbfd1098c0f0b27
[ "MIT" ]
2
2020-08-28T10:11:28.000Z
2020-11-11T07:58:46.000Z
#%% import numpy as np import pandas as pd import altair as alt import anthro.io # Load the production data. data = pd.read_csv('../processed/CMEMS_average_ocean_pH.csv') data['year'] = pd.to_datetime(data['year'], format='%Y') data['pH'] = round(data['pH'], 3) #%% # Generate a plot for global average surface pH ...
41.224138
109
0.648683
4a06ec29e854c19bb204261b3bf0453fdf347009
2,748
py
Python
nonlinear/nonlinear.py
xi2pi/cardioLPN
34759fea55f73312ccb8fb645ce2d04a0e2dddea
[ "MIT" ]
null
null
null
nonlinear/nonlinear.py
xi2pi/cardioLPN
34759fea55f73312ccb8fb645ce2d04a0e2dddea
[ "MIT" ]
null
null
null
nonlinear/nonlinear.py
xi2pi/cardioLPN
34759fea55f73312ccb8fb645ce2d04a0e2dddea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Mar 13 10:43:24 2019 @author: CatOnTour """ from sympy import * from cardioLPN import * from scipy import signal import matplotlib.pyplot as plt import numpy as np def sympy_to_num_den(xpr, s=Symbol('s')): num, den = simplify(xpr).as_numer_denom() # expressions p_n...
21.984
96
0.672489
4a06eca3e2640378ad00296de84e7f92b46b7da1
3,427
py
Python
taxamatcher/_tm_main.py
mmtechslv/taxamatcher
6a98def85723588a4517a9493db0a3c0fafac0db
[ "Apache-2.0" ]
1
2019-03-11T20:14:59.000Z
2019-03-11T20:14:59.000Z
taxamatcher/_tm_main.py
mmtechslv/taxamatcher
6a98def85723588a4517a9493db0a3c0fafac0db
[ "Apache-2.0" ]
null
null
null
taxamatcher/_tm_main.py
mmtechslv/taxamatcher
6a98def85723588a4517a9493db0a3c0fafac0db
[ "Apache-2.0" ]
1
2019-03-11T20:17:22.000Z
2019-03-11T20:17:22.000Z
from . import _jadval as jadval from . import _tm_constants as TMC import csv import os def error_pass(code): if type(code)==str: if code not in TMC.ERROR_CODES.keys(): return True else: return False elif type(code)==type: if issubclass(code,BaseException): ...
32.638095
144
0.662095
4a06ed9850c00a48b0321e595d279c60885c5b2f
22,074
py
Python
aosm2m/client/onem2m/http/OneM2MRequest.py
droberts-aetheros/sdk-python
bf582174419eb01da7f9cf73092cf977f4a4d2bc
[ "MIT" ]
null
null
null
aosm2m/client/onem2m/http/OneM2MRequest.py
droberts-aetheros/sdk-python
bf582174419eb01da7f9cf73092cf977f4a4d2bc
[ "MIT" ]
null
null
null
aosm2m/client/onem2m/http/OneM2MRequest.py
droberts-aetheros/sdk-python
bf582174419eb01da7f9cf73092cf977f4a4d2bc
[ "MIT" ]
null
null
null
# Copyright (c) Aetheros, Inc. See COPYRIGHT #!/usr/bin/env python import requests, aiohttp, json, random, urllib from ..OneM2MPrimitive import OneM2MPrimitive from ..OneM2MOperation import OneM2MOperation from ..http.OneM2MResponse import OneM2MResponse from ..OneM2MResource import OneM2MResource, OneM2MResourceCo...
39.27758
134
0.642657
4a06ed9b7f59f11b068e84e50fa5d8ba263ccd1c
19,270
py
Python
mindspore/ops/operations/comm_ops.py
dongkcs/mindspore
cd7df6dbf463ff3128e9181e9d0c779cecb81320
[ "Apache-2.0" ]
2
2020-11-23T13:46:37.000Z
2020-12-20T02:02:38.000Z
mindspore/ops/operations/comm_ops.py
dongkcs/mindspore
cd7df6dbf463ff3128e9181e9d0c779cecb81320
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/comm_ops.py
dongkcs/mindspore
cd7df6dbf463ff3128e9181e9d0c779cecb81320
[ "Apache-2.0" ]
1
2021-01-01T08:35:01.000Z
2021-01-01T08:35:01.000Z
# Copyright 2020 Huawei Technologies Co., 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...
36.153846
118
0.637364
4a06eda94cb7431545e8eecfe4f34d5183e3a6bb
4,795
py
Python
train.py
Daeil-Jung/Fundus_Process
db7585244036275405425c55771341ccfed22ddc
[ "MIT" ]
null
null
null
train.py
Daeil-Jung/Fundus_Process
db7585244036275405425c55771341ccfed22ddc
[ "MIT" ]
3
2021-06-08T21:57:31.000Z
2022-03-12T00:39:31.000Z
train.py
Daeil-Jung/Fundus_Process
db7585244036275405425c55771341ccfed22ddc
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Conv2D, Flatten, Dropout, MaxPooling2D from tensorflow.keras.preprocessing.image import ImageDataGenerator import os, datetime import pandas as pd tf.config.set_visible_devices([], 'GPU') tf.random.set_s...
35.783582
190
0.625026
4a06eed8ea7c4f2eb813da4fa2e8ce97036ee63a
801
py
Python
yc242/1015-1.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc242/1015-1.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
yc242/1015-1.py
c-yan/yukicoder
cdbbd65402177225dd989df7fe01f67908484a69
[ "MIT" ]
null
null
null
N, X, Y, Z = map(int, input().split()) A = list(map(int, input().split())) A = [a + 1 for a in A] A.sort(reverse=True) for i in range(len(A)): if Z == 0: break if A[i] >= 10000: t = A[i] // 10000 t = min(t, Z) Z -= t A[i] -= t * 10000 else: break A = [a for ...
17.413043
38
0.423221
4a06ef7f72d63d9ee990f2af7f67f5d90e2cec63
173
py
Python
supervised_learning/generalized_linear_model/LinearRegression.py
LauZyHou/sklearn-STS
8dd90a8fcf37094ea03f06fa10ce74dcf2d57dd3
[ "MIT" ]
null
null
null
supervised_learning/generalized_linear_model/LinearRegression.py
LauZyHou/sklearn-STS
8dd90a8fcf37094ea03f06fa10ce74dcf2d57dd3
[ "MIT" ]
null
null
null
supervised_learning/generalized_linear_model/LinearRegression.py
LauZyHou/sklearn-STS
8dd90a8fcf37094ea03f06fa10ce74dcf2d57dd3
[ "MIT" ]
null
null
null
from sklearn import linear_model if __name__ == '__main__': reg = linear_model.LinearRegression() reg.fit([[0, 0], [1, 1], [2, 2]], [0, 1, 2]) print(reg.coef_)
24.714286
48
0.612717
4a06efa65d5a87830863f07332d02877e3784f27
2,762
py
Python
docs/conf.py
scaleapi/nucleus-python-client
8293cd5e7b368faf12bc2952defef36f712a7ba2
[ "MIT" ]
13
2020-12-02T01:07:12.000Z
2022-03-15T17:28:37.000Z
docs/conf.py
scaleapi/nucleus-python-client
8293cd5e7b368faf12bc2952defef36f712a7ba2
[ "MIT" ]
78
2020-10-29T09:33:04.000Z
2022-03-28T20:35:45.000Z
docs/conf.py
scaleapi/nucleus-python-client
8293cd5e7b368faf12bc2952defef36f712a7ba2
[ "MIT" ]
8
2020-11-13T06:23:38.000Z
2022-03-03T20:48:06.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...
29.698925
79
0.664736
4a06efc167720466718bb314ea6e4f051d38098e
2,941
py
Python
tests/links_tests/test_empirical_normalization.py
yuishihara/chainerrl
74901712a8ed8207b9d526d3f45b04bf22996b8d
[ "MIT" ]
923
2017-06-01T08:27:42.000Z
2022-03-24T02:17:04.000Z
tests/links_tests/test_empirical_normalization.py
yuishihara/chainerrl
74901712a8ed8207b9d526d3f45b04bf22996b8d
[ "MIT" ]
374
2017-06-02T02:07:50.000Z
2021-06-29T22:05:38.000Z
tests/links_tests/test_empirical_normalization.py
yuishihara/chainerrl
74901712a8ed8207b9d526d3f45b04bf22996b8d
[ "MIT" ]
253
2017-06-04T10:31:50.000Z
2022-03-19T15:20:51.000Z
import unittest import chainer from chainer import testing import numpy as np from chainerrl.links import empirical_normalization class TestEmpiricalNormalization(unittest.TestCase): def test_small_cpu(self): self._test_small(gpu=-1) @testing.attr.gpu def test_small_gpu(self): self._tes...
32.677778
76
0.582115
4a06f0cc98b9d053f4f8cff95bc5d00ab98c2e38
6,714
py
Python
96-well-plate-randomiser.py
olipayne/96-Well-Plate-Randomiser
8265ebf9962bb338744cd43be989dc18f0727273
[ "MIT" ]
3
2022-01-28T08:05:35.000Z
2022-02-04T11:19:39.000Z
96-well-plate-randomiser.py
olipayne/96-Well-Plate-Randomiser
8265ebf9962bb338744cd43be989dc18f0727273
[ "MIT" ]
1
2022-01-14T15:47:20.000Z
2022-01-27T21:40:30.000Z
96-well-plate-randomiser.py
olipayne/96-Well-Plate-Randomiser
8265ebf9962bb338744cd43be989dc18f0727273
[ "MIT" ]
null
null
null
# Please read the README.md file for more information. ################################################################################ # Filename to load the 96 well plate data from *THIS WILL NOT BE MODIFIED* csv_input = "input.csv" # Filename to save the data from input.csv with the additional column of randomised...
34.96875
126
0.618707
4a06f1a226163cce4bdb71aadfb37f35842ea4d2
8,513
py
Python
mango/tokenaccount.py
bednie/mango-explorer
4575395488e97a1f8cb52cc567e3307f11a28932
[ "MIT" ]
null
null
null
mango/tokenaccount.py
bednie/mango-explorer
4575395488e97a1f8cb52cc567e3307f11a28932
[ "MIT" ]
null
null
null
mango/tokenaccount.py
bednie/mango-explorer
4575395488e97a1f8cb52cc567e3307f11a28932
[ "MIT" ]
null
null
null
# # ⚠ Warning # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT # LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN # NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA...
37.337719
108
0.672853
4a06f1b076401f68d81cb784bb3483fac0e0f1e1
624
py
Python
scratch_ml/demo/autoencoder.py
siAyush/scratch_ml
b147515d9dda7d31567ad148528dc6f313cd739f
[ "MIT" ]
23
2021-01-24T16:42:12.000Z
2022-03-24T01:19:44.000Z
scratch_ml/demo/autoencoder.py
siAyush/scratch_ml
b147515d9dda7d31567ad148528dc6f313cd739f
[ "MIT" ]
null
null
null
scratch_ml/demo/autoencoder.py
siAyush/scratch_ml
b147515d9dda7d31567ad148528dc6f313cd739f
[ "MIT" ]
2
2020-12-23T11:11:19.000Z
2020-12-23T11:11:34.000Z
import math import numpy as np from sklearn import datasets import matplotlib.pyplot as plt from scratch_ml.deep_learning.optimizers import Adam from scratch_ml.deep_learning import NeuralNetwork from scratch_ml.deep_learning.layers import Dense, Dropout, Conv2D, Flatten, Activation, BatchNormalization from scratch_ml....
24
107
0.753205
4a06f298fe8a4c5241af584131f36efa9bbfc8e9
1,144
py
Python
setup.py
khalilouardini/simpletransformers
6e6efa382875beed5a2db4e61d832591a1916e13
[ "Apache-2.0" ]
2
2021-03-13T19:05:46.000Z
2021-11-07T20:03:36.000Z
setup.py
khalilouardini/simpletransformers
6e6efa382875beed5a2db4e61d832591a1916e13
[ "Apache-2.0" ]
null
null
null
setup.py
khalilouardini/simpletransformers
6e6efa382875beed5a2db4e61d832591a1916e13
[ "Apache-2.0" ]
3
2021-11-07T19:55:46.000Z
2022-01-24T15:25:33.000Z
from setuptools import find_packages, setup with open("README.md", "r") as fh: long_description = fh.read() setup( name="simpletransformers", version="0.47.4", author="Thilina Rajapakse", author_email="chaturangarajapakshe@gmail.com", description="An easy-to-use wrapper library for the Transfo...
28.6
79
0.61451
4a06f2a82419567d4b89d7c57d788d82d41b342f
2,443
py
Python
colin-api/colin_api/resources/__init__.py
rstens/lear
321a8de44c5369cae6db4c377f6f121d19ac52e0
[ "Apache-2.0" ]
1
2019-09-05T03:38:00.000Z
2019-09-05T03:38:00.000Z
colin-api/colin_api/resources/__init__.py
rstens/lear
321a8de44c5369cae6db4c377f6f121d19ac52e0
[ "Apache-2.0" ]
206
2019-08-09T18:30:53.000Z
2022-02-27T21:28:50.000Z
colin-api/colin_api/resources/__init__.py
rstens/lear
321a8de44c5369cae6db4c377f6f121d19ac52e0
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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...
33.930556
95
0.7237
4a06f306d8913c6e9b449a09452f1cc23966c5d8
2,501
py
Python
flexmeasures/data/schemas/sensors.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
flexmeasures/data/schemas/sensors.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
flexmeasures/data/schemas/sensors.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
from marshmallow import Schema, fields, validates, ValidationError from flexmeasures.data import ma from flexmeasures.data.models.generic_assets import GenericAsset from flexmeasures.data.models.time_series import Sensor from flexmeasures.data.schemas.utils import ( FMValidationError, MarshmallowClickMixin, ...
33.346667
101
0.697721
4a06f3a1dd40063040d9a378fe704fef54b03a90
916
py
Python
models.py
pierrekarpov/RestfulDataScience
2bef9517a28d0e920b000766fc316ecb86f57d7a
[ "MIT" ]
null
null
null
models.py
pierrekarpov/RestfulDataScience
2bef9517a28d0e920b000766fc316ecb86f57d7a
[ "MIT" ]
null
null
null
models.py
pierrekarpov/RestfulDataScience
2bef9517a28d0e920b000766fc316ecb86f57d7a
[ "MIT" ]
null
null
null
import sqlite3 as sql db_name = "restful_data_science.db" # TODO: need to check if no record with that filename exist def insertModel(classifier_type, feature_count, file_name): con = sql.connect(db_name) cur = con.cursor() cur.execute("INSERT INTO models (classifier_type, feature_count, file_name) VALUES...
29.548387
143
0.69214
4a06f51b9c3ec6372742163ea763231187d993d1
3,497
py
Python
Fingerprint/LinearPaths.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
Fingerprint/LinearPaths.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
Fingerprint/LinearPaths.py
UnixJunkie/frowns
427e4c11a8a4dbe865828d18221899478497795e
[ "BSD-3-Clause" ]
null
null
null
"""Linear Paths Generate linear paths for a molecule. For example, generate all linear paths up to depth 5 paths = generatePaths(molecule, maxdepth=5) These paths can be used for a variety of cases, but we are using them for the purposes of fingerprinting molecules. See Fingerprint.py """ from Fingerprint import * ...
30.946903
79
0.633114
4a06f59bcb32af08c92959ac0a85dd687b55bd30
15,020
py
Python
Lib/lib-old/ni.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
5
2022-03-26T21:53:36.000Z
2022-03-30T21:47:20.000Z
Lib/lib-old/ni.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
6
2020-11-18T15:48:14.000Z
2021-05-03T21:20:50.000Z
Lib/lib-old/ni.py
marcosptf/cpython-2.0.1
73c739a764e8b1dc84640e73b880bc66e1916bca
[ "PSF-2.0" ]
2
2015-07-16T08:14:13.000Z
2022-03-27T01:55:17.000Z
"""New import scheme with package support. Quick Reference --------------- - To enable package support, execute "import ni" before importing any packages. Importing this module automatically installs the relevant import hooks. - To create a package named spam containing sub-modules ham, bacon and eggs, create...
34.528736
74
0.637683
4a06f5c1b63ca26d51cf29533b6e1daeeadb4472
2,531
py
Python
beaconrunner/graphing.py
SHSR2001/beaconrunner
d4d8db1159ad049eab3feb243f2c672f8c7bf180
[ "MIT" ]
null
null
null
beaconrunner/graphing.py
SHSR2001/beaconrunner
d4d8db1159ad049eab3feb243f2c672f8c7bf180
[ "MIT" ]
null
null
null
beaconrunner/graphing.py
SHSR2001/beaconrunner
d4d8db1159ad049eab3feb243f2c672f8c7bf180
[ "MIT" ]
1
2022-02-14T11:15:17.000Z
2022-02-14T11:15:17.000Z
from .specs import ( SLOTS_PER_EPOCH, MAX_VALIDATORS_PER_COMMITTEE, SECONDS_PER_SLOT, MIN_GENESIS_TIME, GENESIS_DELAY, Checkpoint, AttestationData, Attestation, BeaconBlock, BeaconBlockBody, SignedBeaconBlock, get_block_root_at_slot, compute_start_slot_at_epoch, process_slots, get_current_epoch,...
37.220588
114
0.663769
4a06f748d850fa5105e0900cfb79f30e14cdaae2
1,893
py
Python
netdev/vendors/fujitsu/fujitsu_switch.py
maliciousgroup/netdev
e2585ac24891cba172fc2056e9868e1d7c41ddc2
[ "Apache-2.0" ]
199
2016-06-24T14:00:33.000Z
2022-02-14T07:48:44.000Z
netdev/vendors/fujitsu/fujitsu_switch.py
maliciousgroup/netdev
e2585ac24891cba172fc2056e9868e1d7c41ddc2
[ "Apache-2.0" ]
55
2017-05-08T10:01:26.000Z
2021-07-02T00:54:33.000Z
netdev/vendors/fujitsu/fujitsu_switch.py
maliciousgroup/netdev
e2585ac24891cba172fc2056e9868e1d7c41ddc2
[ "Apache-2.0" ]
54
2016-12-29T13:28:00.000Z
2022-03-01T04:58:19.000Z
"""Subclass specific to Fujitsu Blade Switch""" import re from netdev.logger import logger from netdev.vendors.ios_like import IOSLikeDevice class FujitsuSwitch(IOSLikeDevice): """Class for working with Fujitsu Blade switch""" _pattern = r"\({prompt}.*?\) (\(.*?\))?[{delimiters}]" """Patter...
38.632653
99
0.620708
4a06f7a91672e4986ca54aa61c48fd69ff107243
22,512
py
Python
detectron/roi_data/rpn.py
fyangneil/DSFPN
95ba534d451598db7af05b009aec9b40ac675182
[ "Apache-2.0" ]
null
null
null
detectron/roi_data/rpn.py
fyangneil/DSFPN
95ba534d451598db7af05b009aec9b40ac675182
[ "Apache-2.0" ]
null
null
null
detectron/roi_data/rpn.py
fyangneil/DSFPN
95ba534d451598db7af05b009aec9b40ac675182
[ "Apache-2.0" ]
1
2020-12-09T08:32:37.000Z
2020-12-09T08:32:37.000Z
# Copyright (c) 2017-present, Facebook, 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 agreed...
42.636364
80
0.634684
4a06f8230d553ec860607bc2e46c010a31b57713
1,148
py
Python
main.py
julien-klaus/karel_the_robot
a9faa528330152e0a7862e9f2b6727abfb6d3c31
[ "MIT" ]
null
null
null
main.py
julien-klaus/karel_the_robot
a9faa528330152e0a7862e9f2b6727abfb6d3c31
[ "MIT" ]
null
null
null
main.py
julien-klaus/karel_the_robot
a9faa528330152e0a7862e9f2b6727abfb6d3c31
[ "MIT" ]
null
null
null
# author: Julien Klaus import os from time import time from compiler.interpreter import Interpreter if __name__ == "__main__": path = "test" test_cases = 0 correct = 0 print("Start checking test cases ...") start = time() for file in os.listdir(path): if file.endswith("in"): ...
33.764706
112
0.528746
4a06f888848300de5678036974a8b4a2e85d4304
1,163
py
Python
utils/distributions.py
petersvenningsson/FAR
f5b994339c0d55e56b003ace9a9f72e384ede91d
[ "Apache-2.0" ]
1
2022-02-01T20:42:28.000Z
2022-02-01T20:42:28.000Z
utils/distributions.py
petersvenningsson/FAR
f5b994339c0d55e56b003ace9a9f72e384ede91d
[ "Apache-2.0" ]
null
null
null
utils/distributions.py
petersvenningsson/FAR
f5b994339c0d55e56b003ace9a9f72e384ede91d
[ "Apache-2.0" ]
1
2022-02-01T20:42:36.000Z
2022-02-01T20:42:36.000Z
########### # IMPORTS # ########### # 3rd-party import numpy as np from scipy import stats ########### # CLASSES # ########### class Distribution: def __init__(self, obj, **kwargs): self.distribution_object = obj(**kwargs) self.params = kwargs self.dimensionality = len(self.draw()) d...
22.365385
83
0.572657
4a06f88c9ddeaa3912905baff5a302eac980b938
4,977
py
Python
iimmpact/__init__.py
iimmpact/iimmpact_python_api
d1de12df3eb984ebc7f6adef800d7cb0265e173e
[ "MIT" ]
null
null
null
iimmpact/__init__.py
iimmpact/iimmpact_python_api
d1de12df3eb984ebc7f6adef800d7cb0265e173e
[ "MIT" ]
null
null
null
iimmpact/__init__.py
iimmpact/iimmpact_python_api
d1de12df3eb984ebc7f6adef800d7cb0265e173e
[ "MIT" ]
null
null
null
# coding: utf-8 # flake8: noqa """ IIMMPACT API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2020-09-14T13:01:14Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ i...
58.552941
119
0.900743
4a06fa7f0108ca38c031b212249cdf6d3ccdb4fc
41,961
py
Python
guided_diffusion/gaussian_diffusion.py
JacobBunker/guided-diffusion
b7b10c7b5224b09d75664d20ef23daee0cc93737
[ "MIT" ]
89
2021-08-02T19:22:09.000Z
2022-03-31T14:48:37.000Z
guided_diffusion/gaussian_diffusion.py
JacobBunker/guided-diffusion
b7b10c7b5224b09d75664d20ef23daee0cc93737
[ "MIT" ]
null
null
null
guided_diffusion/gaussian_diffusion.py
JacobBunker/guided-diffusion
b7b10c7b5224b09d75664d20ef23daee0cc93737
[ "MIT" ]
26
2021-08-09T16:03:18.000Z
2022-03-30T23:03:09.000Z
""" This code started out as a PyTorch port of Ho et al's diffusion models: https://github.com/hojonathanho/diffusion/blob/1e0dceb3b3495bbe19116a5e1b3596cd0706c543/diffusion_tf/diffusion_utils_2.py Docstrings have been added, as well as DDIM sampling and a new collection of beta schedules. """ import enum import math...
37.973756
129
0.580777
4a06fb412470b498a967a1f5135e2df34c66fa13
9,582
py
Python
common/xrd-ui-tests-python/tests/xroad_ss_import_certificate_from_token/XroadImportCertFromTokenSigning.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
3
2018-03-15T14:22:50.000Z
2021-11-08T10:30:35.000Z
common/xrd-ui-tests-python/tests/xroad_ss_import_certificate_from_token/XroadImportCertFromTokenSigning.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
11
2017-04-06T09:25:41.000Z
2018-06-04T09:08:48.000Z
common/xrd-ui-tests-python/tests/xroad_ss_import_certificate_from_token/XroadImportCertFromTokenSigning.py
ria-ee/XTM
6103f3f5bbba387b8b59b050c0c4f1fb2180fc37
[ "MIT" ]
20
2017-03-14T07:21:58.000Z
2019-05-21T09:26:30.000Z
import time import unittest from selenium.webdriver.common.by import By from helpers import ssh_client from main.maincontroller import MainController from tests.xroad_cs_ca import ca_management from tests.xroad_cs_ca.ca_management import test_add_ca from tests.xroad_cs_ocsp_responder import ocsp_responder from tests....
49.138462
132
0.648299
4a06fb75841229e87760991c725d4c099eaf0e7d
1,278
py
Python
test/python/smiles.py
timvdm/Helium
79db85da43f20606710263f800deac52534d437e
[ "BSD-3-Clause" ]
13
2015-02-04T17:02:25.000Z
2018-04-25T22:48:52.000Z
test/python/smiles.py
timvdm/Helium
79db85da43f20606710263f800deac52534d437e
[ "BSD-3-Clause" ]
null
null
null
test/python/smiles.py
timvdm/Helium
79db85da43f20606710263f800deac52534d437e
[ "BSD-3-Clause" ]
4
2015-11-27T06:19:40.000Z
2021-04-20T17:35:41.000Z
import helium import unittest SMILES = helium.Smiles() class TestSmiles(unittest.TestCase): def test_read_valid(self): mol = helium.Molecule() self.assertTrue(SMILES.read('CCC', mol)) self.assertFalse(SMILES.error()) def test_read_invalid(self): mol = helium.Molecule() ...
32.769231
84
0.640845
4a06fd62ded1020bd7b7709129e49c023014756a
2,382
py
Python
mars/tests/conftest.py
trotsky1997/mars
315b94ade1489d4fdfd351f17263fbc1d4c47008
[ "Apache-2.0" ]
null
null
null
mars/tests/conftest.py
trotsky1997/mars
315b94ade1489d4fdfd351f17263fbc1d4c47008
[ "Apache-2.0" ]
null
null
null
mars/tests/conftest.py
trotsky1997/mars
315b94ade1489d4fdfd351f17263fbc1d4c47008
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
31.76
92
0.68094
4a06fd6dfe8e8267b3ad96b730e8379a234d58a1
4,242
py
Python
alibabacloud/utils/client_supports.py
wallisyan/alibabacloud-python-sdk-v2
6e024c97cded2403025a7dd8fea8261e41872156
[ "Apache-2.0" ]
null
null
null
alibabacloud/utils/client_supports.py
wallisyan/alibabacloud-python-sdk-v2
6e024c97cded2403025a7dd8fea8261e41872156
[ "Apache-2.0" ]
null
null
null
alibabacloud/utils/client_supports.py
wallisyan/alibabacloud-python-sdk-v2
6e024c97cded2403025a7dd8fea8261e41872156
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Alibaba Cloud 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 required by applicable la...
39.277778
96
0.640736
4a06fd7f51f7f9d23f6f06a2e39b094b8c91a500
1,738
py
Python
aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DeleteScalingRuleRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2019-12-23T12:36:43.000Z
2019-12-23T12:36:43.000Z
aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DeleteScalingRuleRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-ess/aliyunsdkess/request/v20140828/DeleteScalingRuleRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2021-02-23T11:27:54.000Z
2021-02-23T11:27:54.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
36.208333
76
0.774453
4a06fe062632ebb5d7abaefbcc688cb92f7374f3
945
py
Python
setup.py
garne041/chem_calc
cad35c9444874b62ea85c36a7fa011a59274c095
[ "MIT" ]
1
2020-09-25T01:32:20.000Z
2020-09-25T01:32:20.000Z
setup.py
garne041/chem_calc
cad35c9444874b62ea85c36a7fa011a59274c095
[ "MIT" ]
null
null
null
setup.py
garne041/chem_calc
cad35c9444874b62ea85c36a7fa011a59274c095
[ "MIT" ]
null
null
null
import setuptools from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, "README.md"), encoding = 'utf-8') as fh: long_description = fh.read() setuptools.setup( name="chem_calc", # Replace with your own username version="0.0.3", author="Joy Garnett...
35
86
0.691005
4a06fe727a9cf6651ffa17cf0dd558bae879c6ce
5,027
py
Python
orchestra/contrib/settings/parser.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
68
2015-02-09T10:28:44.000Z
2022-03-12T11:08:36.000Z
orchestra/contrib/settings/parser.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
17
2015-05-01T18:10:03.000Z
2021-03-19T21:52:55.000Z
orchestra/contrib/settings/parser.py
RubenPX/django-orchestra
5ab4779e1ae12ec99569d682601b7810587ed381
[ "Unlicense" ]
29
2015-03-31T04:51:03.000Z
2022-02-17T02:58:50.000Z
import ast import copy import json import os import re from django.utils.translation import ugettext_lazy as _ from django.utils.functional import Promise from orchestra.utils.paths import get_project_dir from . import Setting class Remove(object): """ used to signal a setting remove """ pass def get_set...
29.397661
81
0.580465
4a06ff9c6ed0e4079aee3b95764cd12a9ee07c9b
1,778
py
Python
home/migrations/0016_auto_20210624_1618.py
bart-merix/iogt
04270c27456aadeb0874eae0859733d19e56f005
[ "BSD-2-Clause" ]
null
null
null
home/migrations/0016_auto_20210624_1618.py
bart-merix/iogt
04270c27456aadeb0874eae0859733d19e56f005
[ "BSD-2-Clause" ]
null
null
null
home/migrations/0016_auto_20210624_1618.py
bart-merix/iogt
04270c27456aadeb0874eae0859733d19e56f005
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.12 on 2021-06-24 16:18 from django.db import migrations, models import django.db.models.deletion import modelcluster.contrib.taggit import modelcluster.fields class Migration(migrations.Migration): dependencies = [ ('taggit', '0003_taggeditem_add_unique_index'), ('wagta...
39.511111
191
0.629921
4a07004d8b4e897c165bfc46e6f8edd266cb7cdf
3,374
py
Python
cairis/controllers/DimensionController.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/controllers/DimensionController.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/controllers/DimensionController.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
import httplib from flask import request, session, make_response from flask.ext.restful import Resource from flask_restful_swagger import swagger from cairis.core.ARM import DatabaseProxyException from cairis.daemon.CairisHTTPError import ARMHTTPError from cairis.tools.JsonConverter import json_serialize from cairis.to...
33.405941
96
0.57291
4a070138d9c2e79112fd4bed8e3eab931f56a4e5
707
py
Python
setup.py
ipsod/python_filehelpers
aca859f4246d33c45704f9aeafe2d7ba8c426292
[ "MIT" ]
null
null
null
setup.py
ipsod/python_filehelpers
aca859f4246d33c45704f9aeafe2d7ba8c426292
[ "MIT" ]
null
null
null
setup.py
ipsod/python_filehelpers
aca859f4246d33c45704f9aeafe2d7ba8c426292
[ "MIT" ]
null
null
null
from setuptools import setup VERSION = __import__("filehelpers").__version__ setup( name='python_filehelpers', description='A set of various file helpers.', version=VERSION, license='MIT', author='Dusty Gamble', author_email='dusty.gamble@gmail.com', url='https://github.com/ipsod/python_fi...
28.28
54
0.633663
4a0701bba81d9b0da4611cc9ee8f20a864fe40fd
3,619
py
Python
sdks/python/apache_beam/__init__.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
2
2020-06-25T00:47:43.000Z
2020-08-24T14:25:13.000Z
sdks/python/apache_beam/__init__.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
10
2017-07-20T13:38:13.000Z
2017-08-03T15:49:24.000Z
sdks/python/apache_beam/__init__.py
charithe/beam
f085cb500730cf0c67c467ac55f92b3c59f52b39
[ "Apache-2.0" ]
1
2019-06-05T09:50:10.000Z
2019-06-05T09:50:10.000Z
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
34.141509
80
0.761813
4a0702dfdc530127f392e87aa955525cc235221d
3,217
py
Python
test/drivers/second_quantization/pyscfd/test_driver_pyscf.py
mtreinish/qiskit-nature
bf124c4628a7c1b25b45722d2299b9489e15ac17
[ "Apache-2.0" ]
null
null
null
test/drivers/second_quantization/pyscfd/test_driver_pyscf.py
mtreinish/qiskit-nature
bf124c4628a7c1b25b45722d2299b9489e15ac17
[ "Apache-2.0" ]
1
2021-08-25T13:31:41.000Z
2021-08-25T13:31:41.000Z
test/drivers/second_quantization/pyscfd/test_driver_pyscf.py
LaurinFischer/qiskit-nature
7baf7c7f8c3d18e082e90bc1e593c47aa2f698ca
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
35.744444
97
0.669257
4a0702edaa37302ab4bdea587ec00d36f67c1e66
105
py
Python
pnpm/compat.py
gfunkmonk/django-pnpm
cbde236f26e1039f0b880dd7f97d3c256dd12f3b
[ "MIT" ]
1
2019-10-17T15:13:13.000Z
2019-10-17T15:13:13.000Z
pnpm/compat.py
gfunkmonk/django-npm
cbde236f26e1039f0b880dd7f97d3c256dd12f3b
[ "MIT" ]
null
null
null
pnpm/compat.py
gfunkmonk/django-npm
cbde236f26e1039f0b880dd7f97d3c256dd12f3b
[ "MIT" ]
1
2019-10-17T15:13:13.000Z
2019-10-17T15:13:13.000Z
try: from collections import OrderedDict except ImportError: from ordereddict import OrderedDict
21
39
0.8
4a070314e91835ccd443bfce418bdf6f29d629c9
1,963
py
Python
facebook_business/adobjects/videocopyrightsegment.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
576
2018-05-01T19:09:32.000Z
2022-03-31T11:45:11.000Z
facebook_business/adobjects/videocopyrightsegment.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
217
2018-05-03T07:31:59.000Z
2022-03-29T14:19:52.000Z
facebook_business/adobjects/videocopyrightsegment.py
MyrikLD/facebook-python-business-sdk
a53c8ba0e8f7d0b41b385c60089f6ba00fa5c814
[ "CNRI-Python" ]
323
2018-05-01T20:32:26.000Z
2022-03-29T07:05:12.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
35.053571
79
0.738156
4a0703557eaa7f1aeb7619c4fccfd3f03abecdc8
717
py
Python
boj/stack/boj_1935.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
boj/stack/boj_1935.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
boj/stack/boj_1935.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
import sys N = int(sys.stdin.readline().strip()) expression = sys.stdin.readline().strip() nums = dict() for expr in expression: if expr not in '*+-/' and expr not in nums: nums[expr] = int(sys.stdin.readline().strip()) stack = list() for expr in expression: if expr not in '*+-/': stack.app...
21.727273
54
0.51046
4a07038c737a566e6636554a0ed09a6c5dd9b3d5
507
py
Python
src/sensors/gas.py
haze-sama/Green-Monitoring.github.io
3d6b605c96a4acdffabd6aeeb2cb985f368e8a7a
[ "MIT" ]
null
null
null
src/sensors/gas.py
haze-sama/Green-Monitoring.github.io
3d6b605c96a4acdffabd6aeeb2cb985f368e8a7a
[ "MIT" ]
null
null
null
src/sensors/gas.py
haze-sama/Green-Monitoring.github.io
3d6b605c96a4acdffabd6aeeb2cb985f368e8a7a
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO, time class Gas(object): def __init__(self, channel): print('Gas initialization.') self.channel = channel GPIO.setmode(GPIO.BOARD) GPIO.setup(self.channel, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) def start(self): print('Start gas detection.') ...
29.823529
69
0.662722
4a070429fde0b500a5cc7ad34edf2f058725a042
2,822
py
Python
modules/dense_correspondence_manipulation/scripts/convert_ply_to_vtp.py
masato-ka/pytorch-dense-correspondence
89a5f87fd773b210e93ebcfeb945c95e7417d0e9
[ "BSD-3-Clause" ]
null
null
null
modules/dense_correspondence_manipulation/scripts/convert_ply_to_vtp.py
masato-ka/pytorch-dense-correspondence
89a5f87fd773b210e93ebcfeb945c95e7417d0e9
[ "BSD-3-Clause" ]
null
null
null
modules/dense_correspondence_manipulation/scripts/convert_ply_to_vtp.py
masato-ka/pytorch-dense-correspondence
89a5f87fd773b210e93ebcfeb945c95e7417d0e9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import os import dense_correspondence_manipulation.utils.utils as utils def run(data_folder, ply_binary_filename='images.ply'): # install ply if do not already have it os.chdir(data_folder) vtp_filename = os.path.join(data_folder, 'images.vtp') dc_source_dir = utils.getDenseCorrespo...
37.131579
118
0.651665
4a070489e4fcf3087b745ef32e4808f765f82681
11,208
py
Python
fltk/util/base_config.py
nata1y/fltk-testbed-group-3
e23b59fa2a5e638d3804a39fe5012983e2988ca6
[ "BSD-2-Clause" ]
null
null
null
fltk/util/base_config.py
nata1y/fltk-testbed-group-3
e23b59fa2a5e638d3804a39fe5012983e2988ca6
[ "BSD-2-Clause" ]
null
null
null
fltk/util/base_config.py
nata1y/fltk-testbed-group-3
e23b59fa2a5e638d3804a39fe5012983e2988ca6
[ "BSD-2-Clause" ]
2
2021-05-03T17:40:18.000Z
2021-05-11T09:34:30.000Z
import torch import json from fltk.datasets.distributed import DistCIFAR10Dataset, DistCIFAR100Dataset, DistFashionMNISTDataset from fltk.nets import Cifar10CNN, FashionMNISTCNN, Cifar100ResNet, FashionMNISTResNet, Cifar10ResNet, Cifar100VGG SEED = 1 torch.manual_seed(SEED) class BareConfig: def __init__(self)...
34.275229
113
0.629907
4a0704fb296cd2480dae89b5b7b50ef5613fe20d
1,336
py
Python
particles.py
Unbewohnte/Healthless
745d3217777bbf54cdab09511bddff5d4e117b37
[ "MIT" ]
null
null
null
particles.py
Unbewohnte/Healthless
745d3217777bbf54cdab09511bddff5d4e117b37
[ "MIT" ]
null
null
null
particles.py
Unbewohnte/Healthless
745d3217777bbf54cdab09511bddff5d4e117b37
[ "MIT" ]
null
null
null
import pygame from random import randint,randrange particles_on_screen_e = [] particles_on_screen_p = [] class Particle: def __init__(self,x,y): self.x = x self.y = y self.width = 4 self.height = self.width self.vel = int(randint(0,3)/5) self.rect = pygame.Rect(self....
40.484848
167
0.556138
4a0706660e08591cd9b87a962f65f82ca281639d
849
py
Python
shoottikala/models/day.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
null
null
null
shoottikala/models/day.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
9
2017-02-15T20:36:49.000Z
2017-05-26T12:10:43.000Z
shoottikala/models/day.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
null
null
null
import logging from django.db import models from ..utils import log_get_or_create logger = logging.getLogger(__name__) class Day(models.Model): name = models.CharField(max_length=31) abbreviation = models.CharField(max_length=3) class Meta: ordering = ('id',) verbose_name = 'Päivä' ...
24.257143
78
0.595995
4a070763b80b6878f798db83a381bcf0699f77e4
6,485
py
Python
docs/conf.py
alexdlaird/hookie
6a5228e7893845fd0a7afc983c6e1852d8f21589
[ "MIT" ]
3
2020-08-06T02:15:04.000Z
2021-09-21T18:51:46.000Z
docs/conf.py
alexdlaird/hookie
6a5228e7893845fd0a7afc983c6e1852d8f21589
[ "MIT" ]
4
2020-10-12T13:08:55.000Z
2021-03-02T20:04:00.000Z
docs/conf.py
alexdlaird/hookie
6a5228e7893845fd0a7afc983c6e1852d8f21589
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------------------------------------------------------...
29.747706
79
0.643948
4a07079a40678e82901e028e9201ea57822f7b76
2,431
py
Python
data/p4VQE/R1/benchmark/startQiskit_Class164.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_Class164.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_Class164.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.314607
118
0.633896
4a07083a206ac794228576cd268bf64122b5cb53
5,371
py
Python
rainman2/lib/interface.py
att-innovate/rainman2
edd07c03a9d33a2e44b3a333fc28dc73c8cbe56e
[ "MIT" ]
2
2018-06-19T16:52:25.000Z
2018-06-25T22:05:38.000Z
rainman2/lib/interface.py
att-innovate/rainman2
edd07c03a9d33a2e44b3a333fc28dc73c8cbe56e
[ "MIT" ]
null
null
null
rainman2/lib/interface.py
att-innovate/rainman2
edd07c03a9d33a2e44b3a333fc28dc73c8cbe56e
[ "MIT" ]
1
2020-09-15T03:06:08.000Z
2020-09-15T03:06:08.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Defines internal interface for rainman2 """ import logging from rainman2.utils import exceptions from rainman2.utils import common_utils from rainman2.lib.algorithm.Qlearning import controller from rainman2.lib.environment.cellular import base as cellular_base __a...
30.691429
77
0.630423
4a070916dbbae38cb26121cf28a542c5004b610e
1,910
py
Python
scripts/data/preprocess_sent_class.py
lynli/fairseq
70b02caf633ef9041b033941bd90306c36cdc5b7
[ "BSD-3-Clause" ]
null
null
null
scripts/data/preprocess_sent_class.py
lynli/fairseq
70b02caf633ef9041b033941bd90306c36cdc5b7
[ "BSD-3-Clause" ]
null
null
null
scripts/data/preprocess_sent_class.py
lynli/fairseq
70b02caf633ef9041b033941bd90306c36cdc5b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import os def main(): parser = argparse.ArgumentParser() parser.add_argument( '--inputs', required=True, nargs='+', help='files to process.', ) parser.add_argument( '--output', required=True, metavar='DIR'...
24.805195
107
0.53822
4a07091b59b0f38230c0fe135cf6b9ae86b77b8f
938
py
Python
randomfun.py
angelruvalcaba/learning_python
5998dfd8a38e63793e45962ccc69c19ae63d5e67
[ "MIT" ]
null
null
null
randomfun.py
angelruvalcaba/learning_python
5998dfd8a38e63793e45962ccc69c19ae63d5e67
[ "MIT" ]
null
null
null
randomfun.py
angelruvalcaba/learning_python
5998dfd8a38e63793e45962ccc69c19ae63d5e67
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Write a program that does the following # 1. generates N random sequences # 2. each sequence has GC composition S and length L # 3. calculate GC in a sliding window of size W # 4. calculate entropy in a sliding window of size W # # Parameters N, S, L, and W are command line parameters # Hint: ...
14.888889
55
0.657783
4a07097064b06dca21ae7658fa3f59d58d99efeb
528
py
Python
greendns/handler_base.py
yishaibeeri/greendns
a098f2d768fe88fca37bbc94dcbf3199f58a5473
[ "MIT" ]
212
2018-12-06T07:40:38.000Z
2021-11-16T11:30:42.000Z
greendns/handler_base.py
faicker/pychinadns
00d5d08d1ef950ee0faa49434c54e1699d2ee442
[ "MIT" ]
5
2019-03-29T06:05:08.000Z
2020-04-12T10:50:06.000Z
greendns/handler_base.py
faicker/pychinadns
00d5d08d1ef950ee0faa49434c54e1699d2ee442
[ "MIT" ]
16
2019-01-24T01:17:47.000Z
2021-08-04T08:22:20.000Z
# -*- coding: utf-8 -*- from greendns import session class HandlerBase(object): def __init__(self): pass def add_arg(self, parser): pass def parse_arg(self, parser, remaining_argv): pass def init(self, io_engine): return [] def new_session(self): return ...
18.206897
48
0.609848
4a0709a8a4ce8360e5b0c5ca5795a8aeae7ef1ae
1,044
py
Python
sdk/python/pulumi_azure_nextgen/media/v20200201preview/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/media/v20200201preview/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/media/v20200201preview/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .get_media_graph import * from .media_graph import * from ._inputs import * from...
30.705882
104
0.68295
4a070a3c2d965ca625e54117fa8fe0d222783b11
2,892
py
Python
hms_reddit/main.py
haum/reddithaum
986733b7155ebee3bcea5f235132b8d2db83bf1f
[ "MIT" ]
1
2019-07-16T18:21:04.000Z
2019-07-16T18:21:04.000Z
hms_reddit/main.py
haum/hms_reddit
986733b7155ebee3bcea5f235132b8d2db83bf1f
[ "MIT" ]
2
2015-12-28T10:29:49.000Z
2016-01-20T09:52:49.000Z
hms_reddit/main.py
haum/reddithaum
986733b7155ebee3bcea5f235132b8d2db83bf1f
[ "MIT" ]
null
null
null
# Copyright (c) 2015 Romain Porte (MicroJoe) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
32.133333
79
0.691217
4a070a4e2e89b0d9ed4272566c8c66b60811be37
1,612
py
Python
02_fractals/volumeaxis.py
Tjorriemorrie/trading
aafa15a6c564bfa86948ab30e33d554172b38a3e
[ "MIT" ]
2
2017-07-02T09:06:28.000Z
2020-09-11T04:23:14.000Z
02_fractals/volumeaxis.py
Tjorriemorrie/trading
aafa15a6c564bfa86948ab30e33d554172b38a3e
[ "MIT" ]
2
2021-03-31T19:14:07.000Z
2021-06-01T23:34:32.000Z
02_fractals/volumeaxis.py
Tjorriemorrie/trading
aafa15a6c564bfa86948ab30e33d554172b38a3e
[ "MIT" ]
2
2016-03-29T07:51:16.000Z
2016-10-30T04:53:58.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt currencies = [ 'AUDUSD', 'EURGBP', 'EURJPY', 'EURUSD', 'GBPJPY', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY', ] for currency in currencies: print '\n' + currency print 'loading daily...' d...
20.935065
73
0.511166
4a070ad6dd420714c49f7b4a8b7f99beeda9df30
3,208
py
Python
src/handlers/ksp.py
siebert/KSP
fc5e874ba4f2c1b5d0b8c6034c129416ff65ea33
[ "BSD-2-Clause-FreeBSD" ]
23
2015-03-07T03:01:04.000Z
2022-01-31T01:26:30.000Z
src/handlers/ksp.py
siebert/KSP
fc5e874ba4f2c1b5d0b8c6034c129416ff65ea33
[ "BSD-2-Clause-FreeBSD" ]
1
2021-01-21T21:11:14.000Z
2021-01-21T21:11:14.000Z
src/handlers/ksp.py
pwr/KSP
fc5e874ba4f2c1b5d0b8c6034c129416ff65ea33
[ "BSD-2-Clause-FreeBSD" ]
6
2015-01-25T00:40:18.000Z
2021-01-13T16:29:06.000Z
import logging from handlers import TODO_PATH, CDE_PATH, FIRS_PATH from handlers.dummy import Dummy, DummyResponse import devices import config, features _FIRST_CONTACT = ''' <?xml version="1.0" encoding="UTF-8"?> <response> <total_count>0</total_count> <next_pull_time/> <items> <item action="UPLOAD" type...
34.494624
139
0.700125
4a070b6c90a19e5160f9fb6e8d323ade18938395
502
py
Python
raindrop/wsgi.py
Ronyonka/rain-drop
ad9ba2bd70cd587e5ab5f45f317c4054c5960bbd
[ "Unlicense" ]
null
null
null
raindrop/wsgi.py
Ronyonka/rain-drop
ad9ba2bd70cd587e5ab5f45f317c4054c5960bbd
[ "Unlicense" ]
4
2019-12-04T23:38:38.000Z
2022-02-10T07:55:43.000Z
raindrop/wsgi.py
Ronyonka/rain-drop
ad9ba2bd70cd587e5ab5f45f317c4054c5960bbd
[ "Unlicense" ]
null
null
null
""" WSGI config for raindrop project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application from whitenoise.django ...
26.421053
79
0.7749
4a070b789ddc4f835182dd7e7fe4ee151b898410
569
py
Python
backend/main/migrations/0001_initial.py
Djooonni/dilci_back
704114d526af863b0089670fa229a725b87f2d6c
[ "Apache-2.0" ]
null
null
null
backend/main/migrations/0001_initial.py
Djooonni/dilci_back
704114d526af863b0089670fa229a725b87f2d6c
[ "Apache-2.0" ]
null
null
null
backend/main/migrations/0001_initial.py
Djooonni/dilci_back
704114d526af863b0089670fa229a725b87f2d6c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1 on 2020-08-26 06:07 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='gps_data', fields=[ ('id', models.AutoField(a...
24.73913
114
0.58348
4a070c6dcab27b3773343d4f88738f61019b9c50
29,979
py
Python
pysmashgg/filters.py
JeremySkalla/pysmashgg
7176d553b59bbab33c2095ed34d0259432896bc2
[ "MIT" ]
10
2021-01-14T17:59:13.000Z
2022-03-01T18:20:12.000Z
pysmashgg/filters.py
JeremySkalla/pysmashgg
7176d553b59bbab33c2095ed34d0259432896bc2
[ "MIT" ]
2
2022-03-01T12:44:00.000Z
2022-03-16T15:02:16.000Z
pysmashgg/filters.py
JeremySkalla/pysmashgg
7176d553b59bbab33c2095ed34d0259432896bc2
[ "MIT" ]
4
2021-09-26T19:25:50.000Z
2022-03-16T11:43:47.000Z
# TOURNAMENTS.PY AND EVENTS.PY # Filtering for the player_id function def player_id_filter(response, player_name): if response['data']['event']['entrants']['nodes'] is None: return for node in response['data']['event']['entrants']['nodes'][0]['participants']: if node['gamerTag'].lower() == pl...
37.948101
103
0.576103
4a070c81498515be6adb46921fe7f7221193ead9
10,601
py
Python
lib-python/3/ctypes/test/test_callbacks.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
null
null
null
lib-python/3/ctypes/test/test_callbacks.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-02-22T00:59:49.000Z
2022-02-22T00:59:49.000Z
lib-python/3/ctypes/test/test_callbacks.py
olliemath/pypy
8b873bd0b8bf76075aba3d915c260789f26f5788
[ "Apache-2.0", "OpenSSL" ]
1
2022-03-30T11:42:37.000Z
2022-03-30T11:42:37.000Z
import functools import unittest from test import support from ctypes import * from ctypes.test import need_symbol import _ctypes_test class Callbacks(unittest.TestCase): functype = CFUNCTYPE ## def tearDown(self): ## import gc ## gc.collect() def callback(self, *args): self.got_arg...
32.518405
79
0.597208
4a070cb1044671f38afdc8e4d81fe33f99e90bae
31,851
py
Python
archive/decoders/decoder_unroll_iw.py
kevinbdsouza/VaeLM
31e2d6abc0f49f2ca72d3f22ff17484859fc3601
[ "MIT" ]
null
null
null
archive/decoders/decoder_unroll_iw.py
kevinbdsouza/VaeLM
31e2d6abc0f49f2ca72d3f22ff17484859fc3601
[ "MIT" ]
null
null
null
archive/decoders/decoder_unroll_iw.py
kevinbdsouza/VaeLM
31e2d6abc0f49f2ca72d3f22ff17484859fc3601
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from tensorflow.python.ops.rnn import _transpose_batch_time class Decoder: def __init__(self, **kwargs): self.encodings = None self.num_sentence_characters = kwargs['num_sentence_characters'] self.dict_length = kwargs['dict_length'] self.m...
64.345455
343
0.620232
4a070db23f3985ea7eeef5fdd19170e4991969a4
422
py
Python
easy_blog_django/posts/migrations/0007_post_slug.py
giantryansaul/easy_blog_django
9f06cc9de8ab0593865568c3fec1aa33e4b05fb6
[ "BSD-3-Clause" ]
null
null
null
easy_blog_django/posts/migrations/0007_post_slug.py
giantryansaul/easy_blog_django
9f06cc9de8ab0593865568c3fec1aa33e4b05fb6
[ "BSD-3-Clause" ]
null
null
null
easy_blog_django/posts/migrations/0007_post_slug.py
giantryansaul/easy_blog_django
9f06cc9de8ab0593865568c3fec1aa33e4b05fb6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0006_post_tags'), ] operations = [ migrations.AddField( model_name='post', name='slug', ...
20.095238
51
0.582938
4a070e2f74b7a331397c4267fee57cfaa35ebc2b
8,186
py
Python
MVP_Tao/train.py
MedicML/MedicML
c81d807ba84b48efce366db76e0e246523acda2a
[ "BSD-2-Clause" ]
128
2017-11-10T14:24:49.000Z
2022-03-21T14:36:46.000Z
MVP_Tao/train.py
MedicML/MedicML
c81d807ba84b48efce366db76e0e246523acda2a
[ "BSD-2-Clause" ]
12
2017-11-20T17:17:48.000Z
2019-06-20T10:37:56.000Z
MVP_Tao/train.py
MedicML/MedicML
c81d807ba84b48efce366db76e0e246523acda2a
[ "BSD-2-Clause" ]
32
2017-11-13T11:05:24.000Z
2021-04-12T13:52:09.000Z
# -*- coding: utf-8 -*- from __future__ import division from __future__ import print_function import argparse import os import numpy as np import pandas as pd import tensorflow as tf from dltk.core.metrics import dice from dltk.core.activations import leaky_relu from dltk.io.abstract_reader import Reader from neuro...
35.903509
116
0.618495
4a070ecdd1045ac24bfc57e3aa6a218d7a14eaf4
1,048
py
Python
xlsxwriter/test/comparison/test_simple09.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_simple09.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
xlsxwriter/test/comparison/test_simple09.py
hugovk/XlsxWriter
e97cc66637d9895480ee32cfb5e561d652d3787b
[ "BSD-2-Clause" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompar...
25.560976
79
0.597328
4a070ed99b96b252c5154834a3bf65a27d1d3055
5,708
py
Python
UWMadCrawler/UWMadCrawler/spiders/UWMadSpider.py
badgerherald/Course-Guide-Crawler
c04455bac26358788b125ee2f8f0d1ee8c9c23d0
[ "MIT" ]
1
2016-11-21T20:18:25.000Z
2016-11-21T20:18:25.000Z
UWMadCrawler/UWMadCrawler/spiders/UWMadSpider.py
badgerherald/Course-Guide-Crawler
c04455bac26358788b125ee2f8f0d1ee8c9c23d0
[ "MIT" ]
null
null
null
UWMadCrawler/UWMadCrawler/spiders/UWMadSpider.py
badgerherald/Course-Guide-Crawler
c04455bac26358788b125ee2f8f0d1ee8c9c23d0
[ "MIT" ]
null
null
null
# !/usr/bin/env python # Program: UW-Madison Course Crawler # __author__ = "Joseph Kelley" # __copyright__ = "Copyright 2014" # __license__ = "MIT" # __version__ = "0.7" # __maintainer__ = "Joseph Kelley" # __email__ = "jckelley2@wisc.edu" # __status__ = "Beta" # This program will crawl the UW-Madison ...
42.597015
128
0.601962
4a070fbe44ce8af2408082d607933544971a0e31
2,225
py
Python
Python/available-captures-for-rook.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2022-01-30T06:55:28.000Z
2022-01-30T06:55:28.000Z
Python/available-captures-for-rook.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
null
null
null
Python/available-captures-for-rook.py
RideGreg/LeetCode
b70818b1e6947bf29519a24f78816e022ebab59e
[ "MIT" ]
1
2021-12-31T03:56:39.000Z
2021-12-31T03:56:39.000Z
# Time: O(1) # Space: O(1) # 999 # On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, # and black pawns. These are given as characters 'R', '.', 'B', and 'p' respectively. # Uppercase characters represent white pieces, and lowercase characters represent black pieces. # ...
34.230769
105
0.404045
4a071196f6af65017b9fb100c72cf42da9373a57
11,894
py
Python
python/oneflow/test/tensor/test_tensor_indexing.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
1
2022-01-19T07:50:28.000Z
2022-01-19T07:50:28.000Z
python/oneflow/test/tensor/test_tensor_indexing.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/tensor/test_tensor_indexing.py
mosout/oneflow
afbb221d900f1a340568ae2462b2022f8fcc4b3d
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. 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 required by applicable law or agr...
38.367742
88
0.606777
4a0713070dab2ed31dfbdcf4a78ab1d38e2e9b8c
21,100
py
Python
wsme/tests/test_types.py
kaptnemo/wsme
3de88929df41b18d56e423b861e19c5176502384
[ "MIT" ]
2
2020-11-05T06:09:20.000Z
2021-01-03T07:22:18.000Z
venv/Lib/site-packages/wsme/tests/test_types.py
sunausti/mywebdemo
884bcf3b68e0063dcb08c602f0dc784753ec8a87
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/wsme/tests/test_types.py
sunausti/mywebdemo
884bcf3b68e0063dcb08c602f0dc784753ec8a87
[ "Apache-2.0" ]
null
null
null
import re try: import unittest2 as unittest except ImportError: import unittest import six from wsme import exc from wsme import types def gen_class(): d = {} exec('''class tmp(object): pass''', d) return d['tmp'] class TestTypes(unittest.TestCase): def setUp(self): types.registry =...
31.586826
79
0.595403
4a07144655885c41f30164cc4ad69928e34f2fc5
10,014
py
Python
codereview/library.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
583
2015-03-28T23:49:34.000Z
2022-03-25T10:58:07.000Z
codereview/library.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
61
2015-04-02T01:08:34.000Z
2021-05-27T16:19:35.000Z
codereview/library.py
draem0507/rietveld
70bda77edf3a642ef51ecc2d73c165345af5fdee
[ "Apache-2.0" ]
175
2015-03-29T13:06:36.000Z
2022-03-31T07:02:20.000Z
# Copyright 2008 Google 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 agreed to in writing, ...
29.982036
79
0.707509
4a071532a6373b7ad2e1d682cba4de8434257672
8,655
py
Python
airflow/gcp/operators/datastore.py
AntonVolDev/airflow
b297b59593f6da6610a65cc0fabcafa5ea5992a7
[ "Apache-2.0" ]
1
2019-09-06T09:55:18.000Z
2019-09-06T09:55:18.000Z
airflow/gcp/operators/datastore.py
AntonVolDev/airflow
b297b59593f6da6610a65cc0fabcafa5ea5992a7
[ "Apache-2.0" ]
null
null
null
airflow/gcp/operators/datastore.py
AntonVolDev/airflow
b297b59593f6da6610a65cc0fabcafa5ea5992a7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
44.613402
105
0.64067
4a0715804f88ea83e9b9702e740d712cac990b63
950
py
Python
test_schedule.py
leonardozcm/ASFM-Net-Review
2584d2d098c760e559d3f632b72b9ad9881c59d5
[ "MIT" ]
1
2022-02-21T11:40:34.000Z
2022-02-21T11:40:34.000Z
test_schedule.py
leonardozcm/ASFM-Net-Pytorch
2584d2d098c760e559d3f632b72b9ad9881c59d5
[ "MIT" ]
2
2021-12-30T17:01:19.000Z
2022-01-01T08:35:49.000Z
test_schedule.py
leonardozcm/ASFM-Net-Review
2584d2d098c760e559d3f632b72b9ad9881c59d5
[ "MIT" ]
null
null
null
def getalpha(schedule, step): alpha = 0.0 for (point, alpha_) in schedule: if step >= point: alpha = alpha_ else: break return alpha step_stage_0 = 0 step_stage_1 = 5e4 step_stage_2 = 7e4 step_stage_3 = 1e5 step_stage_4 = 2.5e5 step_stages = [step_stage_0, step_sta...
21.111111
56
0.578947
4a0715a377fe4815b555f9e7e19c294fb90d7371
86
py
Python
lmctl/config/exceptions.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
3
2021-07-19T09:46:01.000Z
2022-03-07T13:51:25.000Z
lmctl/config/exceptions.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
43
2019-08-27T12:36:29.000Z
2020-08-27T14:50:40.000Z
lmctl/config/exceptions.py
manojn97/lmctl
844925cb414722351efac90cb97f10c1185eef7a
[ "Apache-2.0" ]
7
2020-09-22T20:32:17.000Z
2022-03-29T12:25:51.000Z
class ConfigError(Exception): pass class ConfigParserError(ConfigError): pass
17.2
37
0.767442
4a0715f441b9ba1d582090ed7424f2ab9771707c
512
py
Python
alipay/aop/api/response/KoubeiMarketingCampaignItemMerchantactivityModifyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/KoubeiMarketingCampaignItemMerchantactivityModifyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/KoubeiMarketingCampaignItemMerchantactivityModifyResponse.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class KoubeiMarketingCampaignItemMerchantactivityModifyResponse(AlipayResponse): def __init__(self): super(KoubeiMarketingCampaignItemMerchantactivityModifyResponse, self).__init__...
32
130
0.810547
4a07163506fcd21ee0f141e4098158388ca3c1d7
306
py
Python
util.py
Oyekunle-Mark/roaming-serpent
c9433234d42e4fc7ab2a36e6186a962e201ce1c1
[ "MIT" ]
1
2020-06-04T08:13:47.000Z
2020-06-04T08:13:47.000Z
util.py
Oyekunle-Mark/roaming-serpent
c9433234d42e4fc7ab2a36e6186a962e201ce1c1
[ "MIT" ]
null
null
null
util.py
Oyekunle-Mark/roaming-serpent
c9433234d42e4fc7ab2a36e6186a962e201ce1c1
[ "MIT" ]
1
2019-11-25T22:38:58.000Z
2019-11-25T22:38:58.000Z
class Queue(): def __init__(self): self.queue = [] def enqueue(self, value): self.queue.append(value) def dequeue(self): if self.size() > 0: return self.queue.pop(0) else: return None def size(self): return len(self.queue)
19.125
36
0.522876
4a07165c05f58647f0cdd062b29386bb73e9cc45
10,717
py
Python
apps/projects/migrations/0011_auto__add_field_project_allow_participation__add_field_project_allow_s.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2015-04-06T15:20:29.000Z
2016-12-30T12:25:11.000Z
apps/projects/migrations/0011_auto__add_field_project_allow_participation__add_field_project_allow_s.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
2
2019-02-17T17:38:02.000Z
2019-03-28T03:49:16.000Z
apps/projects/migrations/0011_auto__add_field_project_allow_participation__add_field_project_allow_s.py
Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803
4e374b4d52dfb9039ebe543e7f27682189022307
[ "BSD-3-Clause" ]
1
2019-03-28T03:49:18.000Z
2019-03-28T03:49:18.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Project.allow_participation' db.add_column('projects_project', 'allow_participation', self...
71.446667
182
0.579453
4a0716c7e5a1249fa4d12f1c2fd322823644a410
6,951
py
Python
safety_gym/test/test_bench.py
zhangdongkun98/safety-gym
21c91a9d0e7460b3b37ba6bb3e082b680d98f333
[ "MIT" ]
327
2019-11-21T16:50:41.000Z
2022-03-31T16:23:38.000Z
safety_gym/test/test_bench.py
zhangdongkun98/safety-gym
21c91a9d0e7460b3b37ba6bb3e082b680d98f333
[ "MIT" ]
13
2019-11-26T19:40:26.000Z
2022-03-30T07:17:13.000Z
safety_gym/test/test_bench.py
zhangdongkun98/safety-gym
21c91a9d0e7460b3b37ba6bb3e082b680d98f333
[ "MIT" ]
81
2019-11-22T01:16:36.000Z
2022-03-14T10:34:21.000Z
#!/usr/bin/env python import re import unittest import numpy as np import gym import gym.spaces from safety_gym.envs.engine import Engine class TestBench(unittest.TestCase): def test_goal(self): ''' Point should run into and get a goal ''' config = { 'robot_base': 'xmls/point.xml', ...
38.616667
93
0.546972
4a071775d6e2cf956930f6b56360d6f915bf6932
193
py
Python
src/playground/count.py
meclav/whistle
b228cea165a12a5d0a4c0046c4d26440e4e733d8
[ "MIT" ]
null
null
null
src/playground/count.py
meclav/whistle
b228cea165a12a5d0a4c0046c4d26440e4e733d8
[ "MIT" ]
null
null
null
src/playground/count.py
meclav/whistle
b228cea165a12a5d0a4c0046c4d26440e4e733d8
[ "MIT" ]
null
null
null
class Box: def __init__(self, x): self.value = x def countWithBox(): box = 0 def count(): nonlocal box box+=1 return box return count c = countWithBox() print(c()) print(c())
10.157895
23
0.626943
4a0717f90400c682e6c352f46e2e6c299915aa20
2,951
py
Python
src/app/controllers/auth.py
leeuw12/Comment-Cloud
bcdf4d9258e0d097736e23892833fa84c4e2bf68
[ "MIT" ]
null
null
null
src/app/controllers/auth.py
leeuw12/Comment-Cloud
bcdf4d9258e0d097736e23892833fa84c4e2bf68
[ "MIT" ]
1
2020-04-19T23:59:17.000Z
2020-04-19T23:59:17.000Z
src/app/controllers/auth.py
leeuw12/Comment-Cloud
bcdf4d9258e0d097736e23892833fa84c4e2bf68
[ "MIT" ]
null
null
null
import datetime import logging from functools import wraps import jwt from flask import make_response from flask import request, url_for, redirect, jsonify, Blueprint, render_template from flask_login import current_user, login_required from flask_login import login_user, logout_user from werkzeug.security import chec...
29.51
99
0.678753
4a0718c5495d489ec69fdfbe880de9a1ebf2dab9
1,021
py
Python
auth.py
ellygaytor/trasheddit
b8008f098a234125d4fb19c671ea3243d25c44a5
[ "MIT" ]
3
2021-10-15T16:52:43.000Z
2022-01-05T00:33:01.000Z
auth.py
ellygaytor/trasheddit
b8008f098a234125d4fb19c671ea3243d25c44a5
[ "MIT" ]
2
2022-01-15T21:25:48.000Z
2022-02-16T16:22:00.000Z
auth.py
ellygaytor/trasheddit
b8008f098a234125d4fb19c671ea3243d25c44a5
[ "MIT" ]
1
2022-01-15T18:40:28.000Z
2022-01-15T18:40:28.000Z
import praw import keyring import json def auth(username): account = keyring.get_password("trasheddit", username) if account is None: print( "No configuration found for '{}'. Please enter the PRAW configuration details now:".format( username ) ) ...
27.594595
103
0.593536
4a0718d5f54dd1772f6c808f8943eb0f5cfbf649
4,623
py
Python
sktime/transformations/panel/dictionary_based/_paa.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
5,349
2019-03-21T14:56:50.000Z
2022-03-31T11:25:30.000Z
sktime/transformations/panel/dictionary_based/_paa.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
1,803
2019-03-26T13:33:53.000Z
2022-03-31T23:58:10.000Z
sktime/transformations/panel/dictionary_based/_paa.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
911
2019-03-25T01:21:30.000Z
2022-03-31T04:45:51.000Z
# -*- coding: utf-8 -*- import pandas as pd from sktime.transformations.base import _PanelToPanelTransformer from sktime.datatypes._panel._convert import from_nested_to_2d_array from sktime.utils.validation.panel import check_X __author__ = "Matthew Middlehurst" class PAA(_PanelToPanelTransformer): """ (PAA)...
32.104167
78
0.58209
4a071966998cc02da81c9fe12c651b84e3551c9b
2,613
py
Python
tortoise/tests/test__models__.py
trilleplay/tortoise-orm
456e6893f202e8225bf4087072f58843f67dc65c
[ "Apache-2.0" ]
null
null
null
tortoise/tests/test__models__.py
trilleplay/tortoise-orm
456e6893f202e8225bf4087072f58843f67dc65c
[ "Apache-2.0" ]
5
2020-03-24T17:23:14.000Z
2021-12-13T20:12:49.000Z
tortoise/tests/test__models__.py
lth1994/123
378c336c22a460849f8730ca2ec064307b0f2e41
[ "Apache-2.0" ]
null
null
null
""" Tests for __models__ """ import re from asynctest.mock import CoroutineMock, patch from tortoise import Tortoise from tortoise.contrib import test from tortoise.exceptions import ConfigurationError from tortoise.utils import generate_post_table_sql, get_schema_sql class TestGenerateSchema(test.SimpleTestCase):...
36.291667
99
0.578263
4a0719bb2ea2907585b32082a989be0909a2353d
19,825
py
Python
ml2p/core.py
prodigyfinance/ml2p
a6df55e9ce81e68619fd2f2891981a39a9186651
[ "0BSD" ]
3
2021-10-11T05:35:45.000Z
2022-02-21T09:54:16.000Z
ml2p/core.py
hodgestar/ml2p
3f82e7fbf79345cead67ee18de88589a1ae82b97
[ "0BSD" ]
7
2020-09-16T13:55:16.000Z
2021-06-11T08:38:03.000Z
ml2p/core.py
hodgestar/ml2p
3f82e7fbf79345cead67ee18de88589a1ae82b97
[ "0BSD" ]
3
2020-09-15T14:38:25.000Z
2020-09-17T20:35:35.000Z
# -*- coding: utf-8 -*- """ ML2P core utilities. """ import datetime import enum import importlib import json import os import pathlib import shutil import tarfile import urllib.parse import uuid import warnings import boto3 import yaml from . import __version__ as ml2p_version from . import hyperparameters from .e...
34.299308
94
0.602522
4a071a43ee82452c9afe884d55d9250d466d7373
729
py
Python
var/spack/repos/builtin/packages/libxkbfile/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/libxkbfile/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/libxkbfile/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libxkbfile(AutotoolsPackage): """XKB file handling routines.""" homepage = "https://c...
30.375
95
0.721536
4a071a8dd5b2267af07957fcfabbfeba31502d88
695
py
Python
testsuite/cases/pgmagick_load.py
jcupitt/pillow-perf
dc71bf8597f73ced42724a2203867ba4000e0640
[ "MIT" ]
null
null
null
testsuite/cases/pgmagick_load.py
jcupitt/pillow-perf
dc71bf8597f73ced42724a2203867ba4000e0640
[ "MIT" ]
null
null
null
testsuite/cases/pgmagick_load.py
jcupitt/pillow-perf
dc71bf8597f73ced42724a2203867ba4000e0640
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import print_function, unicode_literals, absolute_import from .base import rpartial, root, BaseLoadCase, BaseSaveCase from .pgmagick import Image, Blob class LoadCase(BaseLoadCase): def runner(self): Image(root('resources', self.filename).encode('utf-8')) class SaveCase...
23.965517
72
0.670504
4a071b5a152dc601ae13919b8084bed30100e3f3
715
py
Python
zerver/management/commands/purge_queue.py
enterstudio/zulip
f6f8f1fe36ac7d82bc0a5effc00a47e460f0b325
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/purge_queue.py
enterstudio/zulip
f6f8f1fe36ac7d82bc0a5effc00a47e460f0b325
[ "Apache-2.0" ]
null
null
null
zerver/management/commands/purge_queue.py
enterstudio/zulip
f6f8f1fe36ac7d82bc0a5effc00a47e460f0b325
[ "Apache-2.0" ]
1
2017-03-19T14:40:16.000Z
2017-03-19T14:40:16.000Z
from __future__ import absolute_import from __future__ import print_function from django.core.management.base import BaseCommand from django.core.management import CommandError from zerver.lib.queue import SimpleQueueClient class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('...
35.75
75
0.706294
4a071c2fe74f193abdb69912bb72d0bbe11352b2
49,995
py
Python
python/paddle/nn/functional/activation.py
HydrogenSulfate/Paddle
42cfd15e672e1ed7ad0242c1ae9e492f197599d6
[ "Apache-2.0" ]
2
2019-05-16T03:09:06.000Z
2022-01-14T07:06:37.000Z
python/paddle/nn/functional/activation.py
HydrogenSulfate/Paddle
42cfd15e672e1ed7ad0242c1ae9e492f197599d6
[ "Apache-2.0" ]
1
2020-09-08T01:45:28.000Z
2020-09-08T01:45:28.000Z
python/paddle/nn/functional/activation.py
HydrogenSulfate/Paddle
42cfd15e672e1ed7ad0242c1ae9e492f197599d6
[ "Apache-2.0" ]
5
2021-12-10T11:20:06.000Z
2022-02-18T05:18:12.000Z
# Copyright (c) 2020 PaddlePaddle Authors. 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 required by app...
33.871951
133
0.556436
4a071ca58a5288faa549b1cd4a60401921acf219
9,516
py
Python
ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
hortonworks/ambari-perf
71305effa9ac00e2e9adb36e6a66a13c9105a811
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
hortonworks/ambari-perf
71305effa9ac00e2e9adb36e6a66a13c9105a811
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-common/src/main/python/resource_management/libraries/functions/setup_ranger_plugin_xml.py
hortonworks/ambari-perf
71305effa9ac00e2e9adb36e6a66a13c9105a811
[ "Apache-2.0", "MIT" ]
3
2017-10-31T11:42:31.000Z
2021-04-26T07:17:53.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
48.304569
168
0.710593
4a071d0a6cc3379f80ebd30742210808e46d146a
5,718
py
Python
jiant/utils/tokenizers.py
cjlovering/jiant
0120aeb86e8c1f5ffbf1b7d7549bce187dbb9b78
[ "MIT" ]
null
null
null
jiant/utils/tokenizers.py
cjlovering/jiant
0120aeb86e8c1f5ffbf1b7d7549bce187dbb9b78
[ "MIT" ]
null
null
null
jiant/utils/tokenizers.py
cjlovering/jiant
0120aeb86e8c1f5ffbf1b7d7549bce187dbb9b78
[ "MIT" ]
1
2020-05-15T08:32:32.000Z
2020-05-15T08:32:32.000Z
""" Tokenizer class To add a tokenizer, add to the below inherting from main Tokenizer class. """ import functools import logging as log import os from sacremoses import MosesDetokenizer from sacremoses import MosesTokenizer as SacreMosesTokenizer from nltk.tokenize.simple import SpaceTokenizer from jiant.huggingface_...
31.766667
95
0.649703
4a071d267abf81d97860464749812b943b20b756
4,592
py
Python
GetStarted/08_masking.py
c11/earthengine-py-notebooks
144b57e4d952da095ba73c3cc8ce2f36291162ff
[ "MIT" ]
1
2020-05-31T14:19:59.000Z
2020-05-31T14:19:59.000Z
GetStarted/08_masking.py
c11/earthengine-py-notebooks
144b57e4d952da095ba73c3cc8ce2f36291162ff
[ "MIT" ]
null
null
null
GetStarted/08_masking.py
c11/earthengine-py-notebooks
144b57e4d952da095ba73c3cc8ce2f36291162ff
[ "MIT" ]
null
null
null
# %% """ <table class="ee-notebook-buttons" align="left"> <td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/GetStarted/08_masking.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td> <td><a target="_blank...
45.92
1,021
0.744991
4a071dab27fe475b1d2776dd5dc09fe2ce76797a
6,326
py
Python
machin/utils/save_env.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
machin/utils/save_env.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
machin/utils/save_env.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from datetime import datetime, timedelta from typing import Union, Iterable from os.path import join import os import shutil from machin.utils.logging import default_logger from machin.utils.prepare import prep_clear_dirs, prep_create_dirs class SaveEnv: def __init__( self, env_root: str, ...
30.12381
87
0.541574
4a071dc9fc3353dd0a7f496bc768fcc19484c137
1,825
py
Python
tests/test_integration.py
mcfarljm/structural-imbalance
a41490bd5e9101cf826e4b76b0eb12a46cc0fb52
[ "Apache-2.0" ]
14
2019-12-04T18:30:34.000Z
2022-01-29T07:05:11.000Z
tests/test_integration.py
mcfarljm/structural-imbalance
a41490bd5e9101cf826e4b76b0eb12a46cc0fb52
[ "Apache-2.0" ]
13
2019-12-13T19:35:50.000Z
2021-07-21T17:00:26.000Z
tests/test_integration.py
mcfarljm/structural-imbalance
a41490bd5e9101cf826e4b76b0eb12a46cc0fb52
[ "Apache-2.0" ]
14
2019-12-13T19:21:50.000Z
2021-07-12T03:09:16.000Z
# Copyright 2020 D-Wave Systems 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 agreed to in w...
33.181818
94
0.70137
4a071f07c1e8c72a1ff76bfebbc732c86fba8d8e
28,209
py
Python
rlkit/launchers/launcher_util.py
JieRen98/rlkit-pmoe
5ef4e056764d2c4a8d6e4c6da89295304b1fec3f
[ "MIT" ]
3
2021-06-15T03:03:52.000Z
2021-12-20T03:08:03.000Z
rlkit/launchers/launcher_util.py
JieRen98/rlkit-pmoe
5ef4e056764d2c4a8d6e4c6da89295304b1fec3f
[ "MIT" ]
null
null
null
rlkit/launchers/launcher_util.py
JieRen98/rlkit-pmoe
5ef4e056764d2c4a8d6e4c6da89295304b1fec3f
[ "MIT" ]
null
null
null
import datetime import json import os import os.path as osp import pickle import random import sys import time from collections import namedtuple import __main__ as main import dateutil.tz import numpy as np import rlkit.pythonplusplus as ppp from rlkit.core import logger from rlkit.launchers import conf from rlkit.t...
31.624439
96
0.604984
4a071fcc57e31f877c0840bcf4240e1864ced76b
5,678
py
Python
tests/backends/test_sprints.py
limejump/agile-insights
2e4f454f83ad7d3d6e071c3dbc297946f46a671c
[ "MIT" ]
null
null
null
tests/backends/test_sprints.py
limejump/agile-insights
2e4f454f83ad7d3d6e071c3dbc297946f46a671c
[ "MIT" ]
3
2021-02-24T15:01:03.000Z
2021-04-07T17:28:37.000Z
tests/backends/test_sprints.py
limejump/agile-insights
2e4f454f83ad7d3d6e071c3dbc297946f46a671c
[ "MIT" ]
null
null
null
import pytest from datetime import datetime, timedelta, timezone from lenses import lens from backends.jira.parse import IssueTypes, JiraIssue, Sprint, SprintMetrics, StatusMetrics, StatusTypes @pytest.fixture def basic_scenario(): return ( { "id": 1, "goal": "Achieve Something",...
32.632184
104
0.613244