hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
9302e34d091f8136931a6716c739e24d827bcd3f
804
py
Python
saf/ffm/linear/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/linear/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/ffm/linear/__init__.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
""" Linearized problem based on the Fickett's model. Fickett's model is a detonation-analogue model based on the one-dimensional reactive Burgers' equation with one-step chemistry. Fickett's model is described in [1]_. References ---------- .. [1] Fickett W. Detonation in Miniature. American Journal of Physi...
26.8
76
0.757463
9302f00308fd13525ea59831370995de6db4cf09
9,649
py
Python
statsmodels/regression/tests/test_lme.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/regression/tests/test_lme.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/regression/tests/test_lme.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd from statsmodels.regression.lme import MixedLM from numpy.testing import assert_almost_equal from . import lme_r_results from scipy.misc import derivative from statsmodels.base import _penalties as penalties import os import csv class R_Results(object): """ A class for h...
34.216312
72
0.534149
9302f373578a7bde7221ae233048f9df56ae1f8d
12,915
py
Python
rbac/transaction_creation/task_transaction_creation.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/transaction_creation/task_transaction_creation.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
null
null
null
rbac/transaction_creation/task_transaction_creation.py
knagware9/sawtooth-next-directory
be80852e08d2b27e105d964c727509f2a974002d
[ "Apache-2.0" ]
1
2018-12-07T10:55:08.000Z
2018-12-07T10:55:08.000Z
# Copyright 2018 Contributors to Hyperledger Sawtooth # # 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 ...
33.286082
87
0.712815
9302f78628d4741c019c540eb4032fb3dd5e29cf
21,746
py
Python
pyredner/render_pytorch.py
swordigo1995/redner
195696deb4269447b7e4648d6285ab34da2ed24f
[ "MIT" ]
null
null
null
pyredner/render_pytorch.py
swordigo1995/redner
195696deb4269447b7e4648d6285ab34da2ed24f
[ "MIT" ]
null
null
null
pyredner/render_pytorch.py
swordigo1995/redner
195696deb4269447b7e4648d6285ab34da2ed24f
[ "MIT" ]
null
null
null
import torch from torch.autograd import Variable import numpy as np import redner import pyredner import time # There is a bias-variance trade off in the backward pass. # If the forward pass and the backward pass are correlated # the gradients are biased for L2 loss. # (E[d/dx(f(x) - y)^2] = E[(f(x) - y) d/dx f(x)]) #...
41.185606
88
0.551136
93033928d299e52a632e34667feeab106dc24bca
933
py
Python
LC/270.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
2
2018-02-24T17:20:02.000Z
2018-02-24T17:25:43.000Z
LC/270.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
LC/270.py
szhu3210/LeetCode_Solutions
64747eb172c2ecb3c889830246f3282669516e10
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def closestValue(self, root, target): """ :type root: TreeNode :type target: float :rtype...
25.916667
65
0.493033
9303465948168603a747acc85aa438a7a03a0078
1,377
py
Python
sktime/transformers/series_as_features/summarize/tests/test_PlateauFinder.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/transformers/series_as_features/summarize/tests/test_PlateauFinder.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/transformers/series_as_features/summarize/tests/test_PlateauFinder.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
import numpy as np import pandas as pd import pytest from sktime.transformers.series_as_features.summarize import PlateauFinder @pytest.mark.parametrize("value", [np.nan, -10, 10, -0.5, 0.5]) def test_PlateauFinder(value): # generate test data value = np.nan X = pd.DataFrame(pd.Series([ pd.Series...
36.236842
77
0.592593
93035d887c11c41bf817e5bb400528470e8b15f3
236
py
Python
ex33.py
cutin4427/lpthw
815932530a38c0d3b45a29356b5d8abe9baacc34
[ "FSFAP" ]
1
2019-03-26T03:50:50.000Z
2019-03-26T03:50:50.000Z
ex33.py
cutin4427/lpthw
815932530a38c0d3b45a29356b5d8abe9baacc34
[ "FSFAP" ]
null
null
null
ex33.py
cutin4427/lpthw
815932530a38c0d3b45a29356b5d8abe9baacc34
[ "FSFAP" ]
null
null
null
i = 0 numbers = [] while i < 6: print(f"At the top i is {i}") numbers.append(i) i += 1 print("Numbers now: ", numbers) print(f"At the bottom i is {i}") print("The numbers: ") for num in numbers: print(num)
13.882353
36
0.555085
93036d9a21dec8560346fb2a9669d732076dcae4
4,807
py
Python
alipay/aop/api/response/AlipayOpenAppServiceViewcallbackQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayOpenAppServiceViewcallbackQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayOpenAppServiceViewcallbackQueryResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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 AlipayOpenAppServiceViewcallbackQueryResponse(AlipayResponse): def __init__(self): super(AlipayOpenAppServiceViewcallbackQueryResponse, self).__init__() self._catalog...
32.924658
118
0.690451
93036e49197aeea46218df5456f06a31a6f586ea
11,805
py
Python
improver_tests/nowcasting/forecasting/test_CreateExtrapolationForecast.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
77
2017-04-26T07:47:40.000Z
2022-03-31T09:40:49.000Z
improver_tests/nowcasting/forecasting/test_CreateExtrapolationForecast.py
owena11/improver
ff658db31364c0bdf3af3940736c260e10544705
[ "BSD-3-Clause" ]
1,440
2017-03-29T10:04:15.000Z
2022-03-28T10:11:29.000Z
improver_tests/nowcasting/forecasting/test_CreateExtrapolationForecast.py
MoseleyS/improver
ca028e3a1c842e3ff00b188c8ea6eaedd0a07149
[ "BSD-3-Clause" ]
72
2017-03-17T16:53:45.000Z
2022-02-16T09:41:37.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2021 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
43.560886
87
0.664803
93037942b192ebf4bcf425eb15e2abeba5a34d60
3,623
py
Python
setup.py
chdemko/pandoc-codeblock-include
f66c917e5e28470607087f0563fd9ed5accf47da
[ "BSD-3-Clause" ]
7
2018-03-30T03:02:34.000Z
2021-12-05T13:54:27.000Z
setup.py
chdemko/pandoc-codeblock-include
f66c917e5e28470607087f0563fd9ed5accf47da
[ "BSD-3-Clause" ]
7
2018-10-07T04:46:03.000Z
2021-02-22T20:37:15.000Z
setup.py
chdemko/pandoc-codeblock-include
f66c917e5e28470607087f0563fd9ed5accf47da
[ "BSD-3-Clause" ]
3
2018-11-24T20:38:53.000Z
2020-11-23T08:30:23.000Z
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/chdemko/pandoc-codeblock-include """ # To use a consistent encoding # Always prefer setuptools over distutils from setuptools import setup # Get the long description from the README file with open("R...
38.542553
91
0.664091
93037bf66e73476dd7a811df4c17d2e006323048
2,842
py
Python
test/test_jitutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_jitutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
test/test_jitutils.py
hlatkydavid/vnmrjpy
48707a1000dc87e646e37c8bd686e695bd31a61e
[ "MIT" ]
null
null
null
import unittest import numpy as np import vnmrjpy as vj import time import matplotlib.pyplot as plt import copy # check execution time TEST_PERFORMANCE=True ITER=100 def plot_test(lst): n = len(lst) for num, item in enumerate(lst): plt.subplot(1,n,num+1) plt.imshow(np.absolute(item)) ...
32.295455
81
0.580577
93038753ce79c6082c24f1ac5ae42d351fd838c9
6,228
py
Python
sasmodels/models/fcc_paracrystal.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/fcc_paracrystal.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
sasmodels/models/fcc_paracrystal.py
zattala/sasmodels
a547aa73d43145b3bd34770b0ea27ba8882170a3
[ "BSD-3-Clause" ]
null
null
null
#fcc paracrystal model #note model title and parameter table are automatically inserted #note - calculation requires double precision r""" .. warning:: This model and this model description are under review following concerns raised by SasView users. If you need to use this model, please email...
38.68323
120
0.675016
9303aeec9d3a5594a744090b7fc58d246ce38bf9
688
py
Python
tests/test_string_sets.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
tests/test_string_sets.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
20
2019-07-15T21:49:29.000Z
2020-01-09T14:35:03.000Z
tests/test_string_sets.py
olavosamp/semiauto-video-annotation
b1a46f9c0ad3bdcedab76b4cd730747ee2afd2fd
[ "MIT" ]
null
null
null
from libs.utils import string_list_complement class Test_string_list_complement(): def setup_string_list_complement(self): self.list1 = [ "banana", "dog", "person", "bonoro", "lula" ] self.list2 = [ "banana", ...
24.571429
69
0.553779
9303de73c4f41a617e2194ea51dd1ebf1023be7a
8,649
py
Python
example/test_full/tests/test06_m2mback.py
olivierdalang/django-computedfields
13a5c107904e7596eeafe948ffc66c9702d95589
[ "MIT" ]
null
null
null
example/test_full/tests/test06_m2mback.py
olivierdalang/django-computedfields
13a5c107904e7596eeafe948ffc66c9702d95589
[ "MIT" ]
null
null
null
example/test_full/tests/test06_m2mback.py
olivierdalang/django-computedfields
13a5c107904e7596eeafe948ffc66c9702d95589
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .base import GenericModelTestBase def h(f): def wrap(self): if not self.pk: return '' return f(self) return wrap def A_comp(self): if not self.pk: return '' s = self.name if self.ab_m.first()...
33.785156
68
0.587698
9303f0d8388a63eea865cc58de6bee0b78d56ba2
903
py
Python
examples/one/ephys/raw_data_download.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
38
2018-08-07T21:55:29.000Z
2022-03-21T14:49:03.000Z
examples/one/ephys/raw_data_download.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
207
2018-07-25T15:10:48.000Z
2022-03-08T13:23:08.000Z
examples/one/ephys/raw_data_download.py
int-brain-lab/ibllib
93be6b98848758e05cdc9398caaf19e6a68f7386
[ "MIT" ]
35
2018-09-04T14:49:56.000Z
2022-01-06T21:17:51.000Z
""" Download raw ephys datasets for all probes in a single session via ONE. (example written for the LFP, but the download can be done for AP files similarly by replacing 'lf' with 'ap') """ # Author: Olivier, Gaelle from ibllib.io import spikeglx from one.api import ONE # === Option 1 === Download a dataset of inter...
32.25
83
0.715393
9303f9121127148e10d9bbda7777719dc392f000
509
py
Python
AlgoTalks/Linear DS/maximum_xor_secondary.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
AlgoTalks/Linear DS/maximum_xor_secondary.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
AlgoTalks/Linear DS/maximum_xor_secondary.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" Problem link: https://codeforces.com/problemset/problem/281/D Solution By Keshav Mishra """ from sys import stdin,stdout def input(): return stdin.readline().strip() # def print(s): stdout.write(str(s)+'\n') from collections import Counter # Constants YES = 'YES' NO = 'NO' yes = 'yes' no = 'no' true = 'true' fa...
15.424242
61
0.599214
93041353b17570ee4f2de687b3e22ee2fec6f587
21,286
py
Python
pygld/lib/thermal_resistances.py
cgq-qgc/pygld
f5cef90a6b9a4d60b5beca2428a9432fdb3c95d8
[ "MIT" ]
4
2018-04-05T18:03:07.000Z
2021-11-05T18:55:46.000Z
pygld/lib/thermal_resistances.py
cgq-qgc/pygld
f5cef90a6b9a4d60b5beca2428a9432fdb3c95d8
[ "MIT" ]
8
2017-12-16T00:38:29.000Z
2018-07-15T04:53:35.000Z
pygld/lib/thermal_resistances.py
jnsebgosselin/pygld
f5cef90a6b9a4d60b5beca2428a9432fdb3c95d8
[ "MIT" ]
1
2020-10-08T14:44:26.000Z
2020-10-08T14:44:26.000Z
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright (c) PyGLD Project Contributors # https://github.com/cgq-qgc/pygld # # This is part of PyGLD (Python Ground-Loop Designer). # Licensed under the terms of the MIT License. # --------------------------------...
29.563889
79
0.548389
93041f00bb6e1e946e6611c2c1c8f35dd99fd6a0
3,913
py
Python
combat-turtles/combat-turtles-master/ai/mirror.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
combat-turtles/combat-turtles-master/ai/mirror.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
combat-turtles/combat-turtles-master/ai/mirror.py
TommyXiee/testing
2d281fea77c6e4408dc6cea6ecc53729dedc45fb
[ "MIT" ]
null
null
null
# Built-In Example AI # Title: MirrorTurtle # Author: Adam Rumpf # Version: 1.0.1 # Date: 11/13/2020 import game.tcturtle class CombatTurtle(game.tcturtle.TurtleParent): """Mirror combat turtle. Attempts to mirror the location of the opponent turtle (rotated around the center of the arena), turning to s...
32.338843
78
0.534884
93042592776af275989388be6ad944bc3d72b155
2,472
py
Python
tests/mgmt/test_mgmt_img.py
LeBlue/pymcumgr
f81fe6597f203b03487429658e5931dc399c3788
[ "MIT" ]
null
null
null
tests/mgmt/test_mgmt_img.py
LeBlue/pymcumgr
f81fe6597f203b03487429658e5931dc399c3788
[ "MIT" ]
null
null
null
tests/mgmt/test_mgmt_img.py
LeBlue/pymcumgr
f81fe6597f203b03487429658e5931dc399c3788
[ "MIT" ]
null
null
null
import pytest from pymcumgr.mgmt.img_cmd import CmdImg, ImageList, ImageTest, ImageConfirm _img_hash_array_1 = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x...
28.413793
118
0.645227
930433601daf9aa988f4bad0e03778760ba336f2
338
py
Python
styler_rest_framework/pubsub/publishers/messages/save_data_message.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
3
2020-08-31T06:29:15.000Z
2021-09-08T09:24:52.000Z
styler_rest_framework/pubsub/publishers/messages/save_data_message.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
31
2020-08-20T01:27:05.000Z
2022-02-10T07:17:21.000Z
styler_rest_framework/pubsub/publishers/messages/save_data_message.py
STYLER-Inc/styler-rest-framework
edd2b6ab5f2989f8e0d688756e9e3839c652dd62
[ "MIT" ]
null
null
null
""" SaveData message """ from styler_rest_framework.pubsub.publishers.messages import Message class SaveDataMessage(Message): """Generate SaveData message body""" def __init__(self, table, obj_type, key, data): self.name = "SaveData" self.arg = {"table": table, "obj_type": obj_type, "key": k...
26
83
0.677515
93043d16ec65daf2a09d55759e1a6503628b0b0b
2,828
py
Python
floodsystem/geo.py
TK594/IA-flood-risk-project
17902a255d1e76b4085760d5ab655aa5dce762dc
[ "MIT" ]
null
null
null
floodsystem/geo.py
TK594/IA-flood-risk-project
17902a255d1e76b4085760d5ab655aa5dce762dc
[ "MIT" ]
null
null
null
floodsystem/geo.py
TK594/IA-flood-risk-project
17902a255d1e76b4085760d5ab655aa5dce762dc
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garth N. Wells # # SPDX-License-Identifier: MIT """This module contains a collection of functions related to geographical data. """ from haversine import haversine from .utils import sorted_by_key # noqa #1B def stations_by_distance(stations, p): """For a list of MonitoringStation objects, a...
25.25
105
0.680693
930445b1395a692d440f4c5a317c01bca9604dad
3,567
py
Python
augly/tests/audio_tests/base_unit_test.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/tests/audio_tests/base_unit_test.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/tests/audio_tests/base_unit_test.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. import os import tempfile import unittest from typing import Callable import numpy as np from augly.tests import AudioAugConfig from augly.utils import TEST_URI, pathmgr from augly.utils.libsndfile import install_libsndfile install_libsndfile...
33.650943
87
0.641435
9304463b6fd825f6d416abff35b014e65aa64c12
16,724
py
Python
tests/components/test_pilight.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
tests/components/test_pilight.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
tests/components/test_pilight.py
Natrinicle/home-assistant
7bb53449428b0787cca1d0c986c93a458401e6fb
[ "Apache-2.0" ]
null
null
null
"""The tests for the pilight component.""" import logging import unittest from unittest.mock import patch import socket from datetime import timedelta import pytest from homeassistant import core as ha from homeassistant.setup import setup_component from homeassistant.components import pilight from homeassistant.util...
42.339241
79
0.598302
9304675d43c77c37448289da35bc295e810028a2
12,921
py
Python
src/SALib/util/problem.py
QianWanghhu/SALib
95a3371e503f9253cb917b8f0101c0202b969c2b
[ "MIT" ]
1
2019-12-20T00:32:45.000Z
2019-12-20T00:32:45.000Z
src/SALib/util/problem.py
QianWanghhu/SALib
95a3371e503f9253cb917b8f0101c0202b969c2b
[ "MIT" ]
null
null
null
src/SALib/util/problem.py
QianWanghhu/SALib
95a3371e503f9253cb917b8f0101c0202b969c2b
[ "MIT" ]
null
null
null
import warnings import importlib from types import MethodType from multiprocess import Pool, cpu_count from pathos.pp import ParallelPythonPool as pp_Pool from functools import partial, wraps import numpy as np import SALib.sample as samplers import SALib.analyze as analyzers from SALib.util import avail_approaches...
30.837709
99
0.559012
9304681c7720e5aebdbb9e63bf99d7b047aee33b
4,783
py
Python
part1/test_a1p1.py
Aashay7/Search_Problems
f8d7ce5cde2b00948e10f45395a64fdca3e77050
[ "Apache-2.0" ]
null
null
null
part1/test_a1p1.py
Aashay7/Search_Problems
f8d7ce5cde2b00948e10f45395a64fdca3e77050
[ "Apache-2.0" ]
null
null
null
part1/test_a1p1.py
Aashay7/Search_Problems
f8d7ce5cde2b00948e10f45395a64fdca3e77050
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python3 # YOU SHOULD NOT MODIFY THIS FILE # # test_a1p1.py version 2021.09.19 # #Stephen Karukas, Zoher Kachwala, Vibhas Vats #importing student's scripts import solver2021 from collections import defaultdict import pytest import copy import pdb import numpy as np from pprint import pprint ###########...
33.683099
143
0.660882
9304861c31e91f902b6f121f6ca51fab98031cbe
3,305
py
Python
src/mod_stats_by_aircraft/background_jobs/background_job.py
FGlazov/IL2Stats_ByAircraftMod
acf66eb3f31a7e789d61a5c60d32fd30dbcedf4b
[ "MIT" ]
null
null
null
src/mod_stats_by_aircraft/background_jobs/background_job.py
FGlazov/IL2Stats_ByAircraftMod
acf66eb3f31a7e789d61a5c60d32fd30dbcedf4b
[ "MIT" ]
null
null
null
src/mod_stats_by_aircraft/background_jobs/background_job.py
FGlazov/IL2Stats_ByAircraftMod
acf66eb3f31a7e789d61a5c60d32fd30dbcedf4b
[ "MIT" ]
null
null
null
from django.core.exceptions import FieldError from django.db import ProgrammingError from stats.models import Tour, Sortie from django.db.models import Max import config RETRO_COMPUTE_FOR_LAST_TOURS = config.get_conf()['stats'].getint('retro_compute_for_last_tours') if RETRO_COMPUTE_FOR_LAST_TOURS is None: RETRO_C...
39.819277
120
0.69289
9304a0fa7569d3d695216c3ddc3442ff5c8161df
23,868
py
Python
tensorflow_probability/python/mcmc/diagnostic_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/diagnostic_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/mcmc/diagnostic_test.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.945946
102
0.693858
9304b43b7508cdc9ad9c74d6b9b41a85b5342490
2,501
py
Python
salt/runners/cache.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/runners/cache.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/runners/cache.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Return cached data from minions ''' # Import python libs import logging # Import salt libs import salt.log import salt.utils.master import salt.output import salt.payload from salt._compat import string_types log = logging.getLogger(__name__) deprecation_warning = ("The 'minion' arg will be removed from " ...
39.698413
72
0.609756
930516ec1362fdeef82552b6b95a22626c9b6c60
221
py
Python
UkDatabaseAPI/setup.py
kplachkov/UkDatabase
51db3183a86d3b07e0f97cc685f6f47ad4a8fc2e
[ "Apache-2.0" ]
null
null
null
UkDatabaseAPI/setup.py
kplachkov/UkDatabase
51db3183a86d3b07e0f97cc685f6f47ad4a8fc2e
[ "Apache-2.0" ]
3
2018-04-02T20:32:51.000Z
2019-02-09T16:19:39.000Z
UkDatabaseAPI/setup.py
kplachkov/UkDatabase
51db3183a86d3b07e0f97cc685f6f47ad4a8fc2e
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup(name='UkDatabaseAPI', version='0.0.1', description='Find information about people.', author='KP', author_email='', install_requires=['flask==1.0'] )
22.1
51
0.61991
93052f92ec3a7415fc1ee987c226003d420e8ca6
16,031
py
Python
nashvegas/management/commands/upgradedb.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
2
2015-09-24T19:50:55.000Z
2015-11-06T10:45:08.000Z
nashvegas/management/commands/upgradedb.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
nashvegas/management/commands/upgradedb.py
dcramer/nashvegas
e073e2449700d30940991fd0f5a79d26c76b54d7
[ "MIT" ]
null
null
null
import os import re import sys import traceback from optparse import make_option from subprocess import Popen, PIPE from django.db import connections, transaction, DEFAULT_DB_ALIAS from django.db.models import get_model from django.conf import settings from django.core.management import call_command from django.core....
37.455607
84
0.519369
93053a578e0201ef1f80e912daac3c2e79328819
1,151
py
Python
mpinterfaces/tests/main_recipes/test_calibrate_main.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
56
2015-06-23T03:03:18.000Z
2022-02-06T16:41:34.000Z
mpinterfaces/tests/main_recipes/test_calibrate_main.py
yw-fang/MPInterfaces
ca2e43b590fdfbcf87a116c5c758e54cb7cb2d2e
[ "MIT" ]
21
2015-09-03T17:50:18.000Z
2022-03-01T02:26:34.000Z
mpinterfaces/tests/main_recipes/test_calibrate_main.py
joshgabriel/MPInterfaces
2799ae161fa94c78842092fb24ef468607afa465
[ "MIT" ]
50
2015-09-17T19:09:36.000Z
2021-11-15T19:13:20.000Z
""" test for calibrate.py main_recipe runs main_recipe of calibrate and compares the calibrate.json with the test output json file similar to test on interface """ from subprocess import call import unittest import json __author__ = "Joshua J. Gabriel" __copyright__ = "Copyright 2017, Henniggroup" __version__ = "1...
28.073171
80
0.730669
93054f0713792bc2156bfd67cb9679b537b302f1
2,468
py
Python
tools/mat2esriascii.py
gregtucker/pymarshmorpho2d
848d2eeb8496fe781d5a1495206995ff6b67b96e
[ "MIT" ]
null
null
null
tools/mat2esriascii.py
gregtucker/pymarshmorpho2d
848d2eeb8496fe781d5a1495206995ff6b67b96e
[ "MIT" ]
null
null
null
tools/mat2esriascii.py
gregtucker/pymarshmorpho2d
848d2eeb8496fe781d5a1495206995ff6b67b96e
[ "MIT" ]
null
null
null
#!/bin/python """mat2esriascii.py: read data from a matlab .mat file, write any 2D arrays to an esri ascii format file. Examples -------- >>> from scipy.io import savemat >>> import numpy as np >>> a = np.array([[1, 2, 3], [4, 5, 6]]) >>> mdict = {'__version__': 1.0, '__globals__':[], 'mydata':a} >>> savemat('test.mat...
29.380952
92
0.615073
93054fc86d7de805ece7d3194f7c51fc9c36402e
587
py
Python
src/pyExperimentalDesign/response.py
AlexanderSouthan/pyExperimentalDesign
d54ba275302be4f5a45a64e4e5a23858c34a1d0e
[ "MIT" ]
null
null
null
src/pyExperimentalDesign/response.py
AlexanderSouthan/pyExperimentalDesign
d54ba275302be4f5a45a64e4e5a23858c34a1d0e
[ "MIT" ]
null
null
null
src/pyExperimentalDesign/response.py
AlexanderSouthan/pyExperimentalDesign
d54ba275302be4f5a45a64e4e5a23858c34a1d0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Nov 8 21:21:05 2021 @author: Alexander Southan """ class response: def __init__(self, name, unit=None, **kwargs): self.name = name if unit is None: self.unit = 1 else: self.unit = unit self...
25.521739
58
0.592845
93058413f125b86fd5590c562af0432ea0df3e48
7,491
py
Python
extras/appdaemon/apps/ac_automation.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
18
2016-08-10T01:02:27.000Z
2017-10-26T04:19:49.000Z
extras/appdaemon/apps/ac_automation.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
null
null
null
extras/appdaemon/apps/ac_automation.py
aneisch/home-assistant
d8a866d75f512d23ffa7b9e5d82d7c575ece3c76
[ "Apache-2.0" ]
4
2017-04-20T19:41:21.000Z
2017-05-16T17:10:05.000Z
import appdaemon.plugins.hass.hassapi as hass import datetime class AutoAdjust(hass.Hass): def initialize(self): # Add api endpoints for REST https://appdaemon.readthedocs.io/en/latest/APPGUIDE.html?#restful-api-support self.register_endpoint(self.adjust_night, "adjust_night") self.register...
53.892086
145
0.628354
93058e0db5fbec3264b2ef24302758abcaae860d
3,367
py
Python
alipay/aop/api/domain/AntMerchantOrderStoreSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AntMerchantOrderStoreSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AntMerchantOrderStoreSyncModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "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.constant.ParamConstants import * class AntMerchantOrderStoreSyncModel(object): def __init__(self): self._description = None self._event_type = None self._order_id = None self._out_biz_no = None ...
29.025862
77
0.583606
9305b000a6d63be51fe0aebc57564f9f79340177
2,542
py
Python
factrank/legacy/endpoint.py
lejafar/factrank
716e4885401314fd867d74bcea8f2a422743f595
[ "MIT" ]
12
2018-11-15T10:44:16.000Z
2022-02-19T20:35:17.000Z
factrank/legacy/endpoint.py
lejafar/factrank
716e4885401314fd867d74bcea8f2a422743f595
[ "MIT" ]
1
2020-04-28T18:19:33.000Z
2020-04-28T21:04:39.000Z
factrank/legacy/endpoint.py
factrank/FactRank
716e4885401314fd867d74bcea8f2a422743f595
[ "MIT" ]
1
2020-05-21T18:30:49.000Z
2020-05-21T18:30:49.000Z
#!/usr/bin/env python3 """ Load pre-trained model and provide endpoint for predictions. helper.py requires the pattern package for python3 to be installed using the development brach https://github.com/clips/pattern#installation """ # Built-in modules import re import pickle import glob import os # Third-party modul...
31.382716
96
0.698269
9305dc41f17870506ea33935fd8bd29e85156f7d
564
py
Python
tools/migrations/0009_auto_20171213_1304.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
2
2016-09-02T12:45:31.000Z
2018-02-10T10:18:11.000Z
tools/migrations/0009_auto_20171213_1304.py
Socialsquare/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
17
2020-03-24T15:58:05.000Z
2022-02-10T08:08:57.000Z
tools/migrations/0009_auto_20171213_1304.py
moonbirddk/networked-toolbox
b059b77bfda173794b3cad55874cb06edc70d0e1
[ "BSD-2-Clause-FreeBSD" ]
1
2018-01-05T08:02:18.000Z
2018-01-05T08:02:18.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2017-12-13 13:04 from __future__ import unicode_literals from django.db import migrations, models import tools.models class Migration(migrations.Migration): dependencies = [ ('tools', '0008_auto_20171212_1948'), ] operations = [ # ...
24.521739
107
0.641844
9305dd9779f1f4d618e3fd2df6f5b3f8d288b19d
6,990
py
Python
test/unit/test_transfomer.py
jesterhazy/sagemaker-containers
6fc058561de618441e0dc11a2461d8306aaf287b
[ "Apache-2.0" ]
null
null
null
test/unit/test_transfomer.py
jesterhazy/sagemaker-containers
6fc058561de618441e0dc11a2461d8306aaf287b
[ "Apache-2.0" ]
null
null
null
test/unit/test_transfomer.py
jesterhazy/sagemaker-containers
6fc058561de618441e0dc11a2461d8306aaf287b
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' file acc...
36.40625
105
0.714878
93067516a3916d4200a0e9a5d7cece2101926d7e
3,534
py
Python
Lib/site-packages/kivy/core/image/img_pil.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
9
2016-09-03T07:20:01.000Z
2020-05-21T14:44:48.000Z
Lib/site-packages/kivy/core/image/img_pil.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
1
2017-05-30T20:45:15.000Z
2017-05-30T20:45:15.000Z
Lib/site-packages/kivy/core/image/img_pil.py
Aakash10399/simple-health-glucheck
1f7c4ff7778a44f09b1c8cb0089fef51dc26cea2
[ "bzip2-1.0.6" ]
4
2016-09-10T15:27:54.000Z
2020-03-27T22:05:31.000Z
''' PIL: PIL image loader ''' __all__ = ('ImageLoaderPIL', ) try: from PIL import Image as PILImage except: import Image as PILImage from kivy.logger import Logger from kivy.core.image import ImageLoaderBase, ImageData, ImageLoader class ImageLoaderPIL(ImageLoaderBase): '''Image loader based on the PIL...
30.730435
74
0.557725
930679b9a9f95417214364ccf090bad615c6df17
18,237
py
Python
utils/normal_estimation_utils.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
87
2020-07-21T09:09:03.000Z
2022-03-28T09:29:22.000Z
utils/normal_estimation_utils.py
sitzikbs/DeepF
e6106953ff6d47cb126e1d2ca488a6030bdc9f81
[ "MIT" ]
7
2021-01-09T21:44:20.000Z
2021-11-19T08:08:09.000Z
utils/normal_estimation_utils.py
2429581027/local-geometric-guided
8cbaa9b6d0c88b13b768a9813c931d00f8f38ee0
[ "MIT" ]
19
2020-08-09T03:35:24.000Z
2022-03-25T07:00:41.000Z
# normal_estimation_utils.py normal estimation and 3DmFV utility functions # Author:Itzik Ben Sabat sitzikbs[at]gmail.com # If you use this code,see LICENSE.txt file and cite our work from sklearn.mixture import GaussianMixture from sklearn.preprocessing import normalize import os import pickle import numpy as np impo...
42.020737
175
0.63437
93068acee47e4c1dc35ab2ecb5a990c6152754e0
9,518
py
Python
influxdb_client/domain/bucket.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
1
2021-06-06T10:39:47.000Z
2021-06-06T10:39:47.000Z
influxdb_client/domain/bucket.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
influxdb_client/domain/bucket.py
kelseiv/influxdb-client-python
9a0d2d659157cca96f6a04818fdeb215d699bdd7
[ "MIT" ]
null
null
null
# coding: utf-8 """ Influx API Service No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: 0.1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class Buck...
25.246684
191
0.553478
93068dffbfc094098851a9d962316dabf5975ff0
3,097
py
Python
exetest/executor.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
exetest/executor.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
exetest/executor.py
realead/exetest
7143c04de8f857f556ff0396b4fa8afc147720a5
[ "MIT" ]
null
null
null
import subprocess import itertools from exetest.parnames import OPTIONS, EXIT_CODE, STDOUT, STDERR, INPUT, CHECKERS, ADDITIONAL_CHECKERS, PREPARERS, CLEANERS, INPUT_FILE, STDOUT_FILE, STDERR_FILE from exetest.checkers import DefaultChecker def slurp_file(file_name): with open(file_name, 'r') as content_file: ...
27.900901
160
0.643203
93069005e762f1176f5f02b0e11f6cb91ce407ef
6,204
py
Python
abo/backends/paymill/tests/test_events.py
kralla/django-abo
e0fa98ec44d5ea31ff2313ca0f96ff12d6aa26e4
[ "BSD-3-Clause" ]
null
null
null
abo/backends/paymill/tests/test_events.py
kralla/django-abo
e0fa98ec44d5ea31ff2313ca0f96ff12d6aa26e4
[ "BSD-3-Clause" ]
null
null
null
abo/backends/paymill/tests/test_events.py
kralla/django-abo
e0fa98ec44d5ea31ff2313ca0f96ff12d6aa26e4
[ "BSD-3-Clause" ]
null
null
null
import json from django.test import TestCase from django.core.urlresolvers import reverse from abo.factories import PlanFactory from abo.backends.paymill.forms import PaymillForm from abo.models import BackendSubscription from .mockups import Mockmill class EventTestCase(TestCase): def _create_subscription(sel...
134.869565
2,451
0.689716
930690decdbb6c033bac0996254157c82ee27551
4,285
py
Python
app/recipe/tests/test_tags_api.py
daikikuchi/recipe-app-api
ebafc56e5be6fc70369d157f6941d529d3001b9f
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
daikikuchi/recipe-app-api
ebafc56e5be6fc70369d157f6941d529d3001b9f
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags_api.py
daikikuchi/recipe-app-api
ebafc56e5be6fc70369d157f6941d529d3001b9f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag, Recipe from recipe.serializers import TagSerializer # ViewSet automatically appends the action name...
32.462121
78
0.636173
9306a581c8f6d07ec15155b439b0233e38481343
255
py
Python
doc/srcs_generated_examples/python_srcs/manage010.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
doc/srcs_generated_examples/python_srcs/manage010.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
doc/srcs_generated_examples/python_srcs/manage010.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
from morphforge.stdimports import PluginMgr import morphforgecontrib.stdimports as mfc fname = '~/Desktop/morphforge_config.pdf' summary = PluginMgr.summarise_all() summary.to_pdf(fname) print 'morphforge environment summary stored at: %s'%fname
15.9375
58
0.796078
9306e23197a8ffbc143ed494ca2d082dfb3c1b9b
2,504
py
Python
vnpy/trader/database/database.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
vnpy/trader/database/database.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
vnpy/trader/database/database.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
from abc import ABC, abstractmethod from datetime import datetime from enum import Enum from typing import Optional, Sequence, List, Dict, TYPE_CHECKING if TYPE_CHECKING: from vnpy.trader.constant import Interval, Exchange # noqa from vnpy.trader.object import BarData, TickData # noqa class Driver(Enum): ...
22.357143
87
0.571486
9306f4a11c3d25f9b4cc552c77adb66af1e03276
5,230
py
Python
webcom/generators.py
xbound/isp-system
2990f69357387e00524f5e99f00f00b81d10b11f
[ "MIT" ]
null
null
null
webcom/generators.py
xbound/isp-system
2990f69357387e00524f5e99f00f00b81d10b11f
[ "MIT" ]
null
null
null
webcom/generators.py
xbound/isp-system
2990f69357387e00524f5e99f00f00b81d10b11f
[ "MIT" ]
null
null
null
import random import re from datetime import timedelta from django.utils import timezone from djmoney.money import Money from faker import Faker from webcom import models from webcom.models import Customer, TechnicalEmployee class Factory: def __init__(self): self.fake = Faker("en_US") def generat...
45.877193
133
0.578394
930712da8c78421303cd9d5cf35437a7d2f7027d
1,678
py
Python
hard-gists/4707012/snippet.py
dockerizeme/dockerizeme
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/4707012/snippet.py
dockerizeme/dockerizeme
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/4707012/snippet.py
dockerizeme/dockerizeme
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
import sys from pyspark.context import SparkContext from numpy import array, random as np_random from sklearn import linear_model as lm from sklearn.base import copy N = 10000 # Number of data points D = 10 # Numer of dimensions ITERATIONS = 5 np_random.seed(seed=42) def generate_data(N): return [[1 if np...
29.438596
94
0.628725
93071daf4b7a5046b44a3b88ca4eb8dcf7553e53
1,432
py
Python
arc/job/sshTest.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
30
2019-02-02T01:45:40.000Z
2022-03-20T13:03:27.000Z
arc/job/sshTest.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
434
2018-12-24T18:00:07.000Z
2022-03-13T15:55:26.000Z
arc/job/sshTest.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
19
2019-01-04T19:05:45.000Z
2022-03-20T13:03:28.000Z
#!/usr/bin/env python3 # encoding: utf-8 """ This module contains unit tests of the arc.job.ssh module """ import unittest import arc.job.ssh as ssh class TestSSH(unittest.TestCase): """ Contains unit tests for the SSH module """ def test_check_job_status_in_stdout(self): """Test checking ...
40.914286
134
0.594274
930736aaef32b3bb129f2625bb611e410a97bd7b
4,652
py
Python
utest/controller/test_file_rename.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
84
2016-09-21T10:57:22.000Z
2021-11-30T21:25:36.000Z
utest/controller/test_file_rename.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
124
2017-12-11T21:23:06.000Z
2022-02-18T19:11:02.000Z
utest/controller/test_file_rename.py
chandrapola/RIDE
08e01b98026b618359e47689cb5e65a0a67795f5
[ "ECL-2.0", "Apache-2.0" ]
38
2017-07-20T02:51:56.000Z
2021-07-09T04:54:44.000Z
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
39.760684
148
0.725494
930751b5a93ae8e000e1e616e55aefba04ee4ea5
36,639
py
Python
pymatgen/io/vasp/tests/test_inputs.py
chunweizhu/pymatgen
acfe5899ee50add1e2a0dd6385ee4fba78122e0f
[ "MIT" ]
1
2021-02-12T11:21:56.000Z
2021-02-12T11:21:56.000Z
pymatgen/io/vasp/tests/test_inputs.py
chunweizhu/pymatgen
acfe5899ee50add1e2a0dd6385ee4fba78122e0f
[ "MIT" ]
null
null
null
pymatgen/io/vasp/tests/test_inputs.py
chunweizhu/pymatgen
acfe5899ee50add1e2a0dd6385ee4fba78122e0f
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import pickle import unittest import warnings from pathlib import Path import numpy as np import pytest # type: ignore import scipy.constants as const from monty.io import zopen from monty.tempfile ...
34.178172
119
0.539261
93076309f84e10629eed8b45cc25768518621194
47,004
py
Python
tensorflow/python/ops/image_ops_impl.py
smarthi/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
2
2019-10-09T08:06:48.000Z
2021-01-07T03:16:09.000Z
tensorflow/python/ops/image_ops_impl.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
1
2017-02-06T08:12:22.000Z
2017-02-06T08:12:22.000Z
tensorflow/python/ops/image_ops_impl.py
gjmulder/tensorflow
55b01593515817992821423fec19733bca91c918
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow 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 applica...
37.245642
141
0.68892
93076976ff91b44bbd08eab80b2aa1866c6d6c58
3,188
py
Python
week8/week8.2/server1.py
mikequaid/DR
3f54ad37d841cd910cffae11176db783681c2479
[ "Apache-2.0" ]
null
null
null
week8/week8.2/server1.py
mikequaid/DR
3f54ad37d841cd910cffae11176db783681c2479
[ "Apache-2.0" ]
null
null
null
week8/week8.2/server1.py
mikequaid/DR
3f54ad37d841cd910cffae11176db783681c2479
[ "Apache-2.0" ]
null
null
null
# creating a RESTful API from flask import Flask, jsonify, request, abort app = Flask(__name__, static_url_path='', static_folder='.') # Create the table: books=[ { "id":1, "Title":"Harry Potter", "Author":"JK", "Price":1000}, { "id":2, "Title":"The Quiet American", "Author":"Greene", "Price":800}, { "id...
32.530612
153
0.624529
9307798b672eed2d4be9c3c8962b14229b059bda
2,678
py
Python
tests/testTaskPool.py
hubo1016/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
252
2015-11-17T14:21:50.000Z
2022-03-11T10:19:47.000Z
tests/testTaskPool.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
23
2018-01-09T13:28:52.000Z
2019-12-12T06:11:44.000Z
tests/testTaskPool.py
SarahZarei/vlcp
61c4c2595b610675ac0cbc4dbc46f70ec40090d3
[ "Apache-2.0" ]
37
2016-08-03T04:42:22.000Z
2021-12-30T16:57:10.000Z
''' Created on 2015/12/31 @author: hubo ''' import unittest from vlcp.server.server import Server from vlcp.utils.connector import TaskPool from vlcp.event.runnable import RoutineContainer from vlcp.event.event import withIndices, Event @withIndices() class TaskTestEvent(Event): pass class Test(unittest.TestCase...
30.431818
81
0.549291
93077c8f5d81c8ecd997ddb7aa9e75d4cc7b163c
12,812
py
Python
run_sh/sources/get_all_boxes.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
run_sh/sources/get_all_boxes.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
run_sh/sources/get_all_boxes.py
denglixi/faster-rcnn.pytorch
12158fa2ec998ba3733a4696b7a4e08a35c157e3
[ "MIT" ]
null
null
null
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick # -------------------------------------------------------- from __future__ import absolute_import from __...
42.144737
502
0.616375
930788ba2496f2583c36e5f49683e56b676465d5
50,057
py
Python
BioNetGen-2.3.0/source_Atomizer/SBMLparser/libsbml2bngl.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/libsbml2bngl.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
BioNetGen-2.3.0/source_Atomizer/SBMLparser/libsbml2bngl.py
joseph-hellerstein/RuleBasedProgramming
fb88118ab764035979dc7c2bf8c89a7b484e4472
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 1 16:14:42 2013 @author: proto """ #!/usr/bin/env python from collections import OrderedDict import time import libsbml import writer.bnglWriter as writer from optparse import OptionParser import atomizer.moleculeCreation as mc import sys from os import listdir import r...
39.570751
245
0.637393
9307a12d7ab7ec9787a35aa2cc8ebd65e88b80b2
757
py
Python
examples/mlbasics_learn_to_add.py
JonathanRaiman/dali-cython-stub
e258469aeb1d4cb3e4cdf5c07e8948f461a038f1
[ "MIT" ]
7
2016-06-20T17:50:06.000Z
2019-12-13T17:27:46.000Z
examples/mlbasics_learn_to_add.py
JonathanRaiman/dali-cython
e258469aeb1d4cb3e4cdf5c07e8948f461a038f1
[ "MIT" ]
6
2015-08-04T07:25:38.000Z
2015-08-13T22:06:22.000Z
examples/mlbasics_learn_to_add.py
JonathanRaiman/dali-cython
e258469aeb1d4cb3e4cdf5c07e8948f461a038f1
[ "MIT" ]
2
2016-07-04T21:38:14.000Z
2016-08-31T02:53:19.000Z
from test_dali import Mat, random, MatOps, Graph num_examples = 100 example_size = 3 iterations = 150 lr = 0.01 X = random.uniform( 0.0, 1.0 / example_size, size=(num_examples, example_size) ) ones = Mat.ones((X.shape[1], 1)) Y = X.dot(ones) X = MatOps.consider_constant(X) Y = MatOps.consider...
22.264706
55
0.627477
9307b81afb61d3574d772c9c22c97017c341ad68
7,419
py
Python
app/api/v1/resources/restart_process.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
app/api/v1/resources/restart_process.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
app/api/v1/resources/restart_process.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" DRS report resource package. Copyright (c) 2018-2020 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: Redistributio...
62.344538
844
0.708182
9307bc8ec64276fac5ba9207cf3694a5eb78107e
22,276
py
Python
app/celery/letters_pdf_tasks.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
app/celery/letters_pdf_tasks.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
app/celery/letters_pdf_tasks.py
alphagov-mirror/notifications-api
4a2e47b118c51f0ad45e87c89521f6087b1fcc2f
[ "MIT" ]
null
null
null
from base64 import urlsafe_b64encode from datetime import datetime, timedelta from hashlib import sha512 from botocore.exceptions import ClientError as BotoClientError from flask import current_app from notifications_utils.letter_timings import LETTER_PROCESSING_DEADLINE from notifications_utils.postal_address import ...
41.951036
120
0.678802
9307c0802f5697c56d6f3faf4b6c1845101457da
10,086
py
Python
client/utils/grpc_proxy.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/swarming_client/utils/grpc_proxy.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/swarming_client/utils/grpc_proxy.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright 2017 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Common gRPC implementation for Swarming and Isolate""" import logging import os import re import time import types import urlparse from utils ...
35.142857
83
0.683125
9307c0c4541de6b6028a2e9f0602ae424f73b790
18,439
py
Python
tests/test_validator.py
mjavaid/BootIntegrityValidator
bc0735cc8f53393087dc1db0612796ad16b0367a
[ "MIT" ]
null
null
null
tests/test_validator.py
mjavaid/BootIntegrityValidator
bc0735cc8f53393087dc1db0612796ad16b0367a
[ "MIT" ]
null
null
null
tests/test_validator.py
mjavaid/BootIntegrityValidator
bc0735cc8f53393087dc1db0612796ad16b0367a
[ "MIT" ]
null
null
null
import re import pytest import gzip import pathlib import json import io from BootIntegrityValidator import BootIntegrityValidator class TestBootIntegrityValidator(object): def setup(self): self.test_files = pathlib.Path(__file__).parent / "test_files" def test_invalid_custom_cert(self): kgv...
46.563131
136
0.671728
930803300bc32ff1c81220e3f158ab1a8e538c26
1,335
py
Python
unit_tests/python_lib/test_create_proxy_rules_cf.py
adrianmkng/watchmen
4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa
[ "Apache-2.0" ]
190
2017-12-13T05:01:42.000Z
2021-11-15T23:35:54.000Z
unit_tests/python_lib/test_create_proxy_rules_cf.py
adrianmkng/watchmen
4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa
[ "Apache-2.0" ]
2
2018-08-31T04:53:03.000Z
2018-11-14T00:13:49.000Z
unit_tests/python_lib/test_create_proxy_rules_cf.py
adrianmkng/watchmen
4be15ad64a5d54d4f546ca8c139fa41fd42dd6aa
[ "Apache-2.0" ]
22
2017-12-13T04:36:46.000Z
2021-07-29T07:37:41.000Z
# Copyright 2017 Insurance Australia Group Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
39.264706
97
0.771536
930821e1b311a1bf78e23fe23d7156a090c6cc48
10,142
py
Python
custom_components/alarmo/mqtt.py
avidit/home-assistant-config
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
1
2018-10-04T03:50:13.000Z
2018-10-04T03:50:13.000Z
custom_components/alarmo/mqtt.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
null
null
null
custom_components/alarmo/mqtt.py
avidit/homeassistant
c4ea82e7ea75f93ebfb1700b39df5ff9787843b7
[ "MIT" ]
null
null
null
import json import logging from homeassistant.core import ( HomeAssistant, callback, ) from homeassistant.components.mqtt import ( DOMAIN as ATTR_MQTT, CONF_STATE_TOPIC, CONF_COMMAND_TOPIC, ) import homeassistant.components.mqtt as mqtt from homeassistant.helpers.json import JSONEncoder from hom...
37.562963
120
0.563991
9308225f2152bc6a3b1c58fb0638bf50b3837292
33,722
py
Python
agents.py
stabgan/aima-python
7c5bcdda2563248c4dc454d02026fc280fc9b066
[ "MIT" ]
2
2021-09-18T03:37:33.000Z
2021-09-18T03:37:46.000Z
agents.py
stabgan/aima-python
7c5bcdda2563248c4dc454d02026fc280fc9b066
[ "MIT" ]
null
null
null
agents.py
stabgan/aima-python
7c5bcdda2563248c4dc454d02026fc280fc9b066
[ "MIT" ]
1
2018-10-03T15:44:50.000Z
2018-10-03T15:44:50.000Z
"""Implement Agents and Environments (Chapters 1-2). The class hierarchies are as follows: Thing ## A physical object that can exist in an environment Agent Wumpus Dirt Wall ... Environment ## An environment holds objects, runs simulations XYEnvironment VacuumEnvironment W...
34.515865
100
0.607615
93084da2b8863030546e9c7e92924d45f0603ab3
1,014
py
Python
test/terra_test/grover.py
Qr4cl3/Iqb_n_p
0c99088461bd1443cb633063f408e86216e004ef
[ "Apache-2.0" ]
null
null
null
test/terra_test/grover.py
Qr4cl3/Iqb_n_p
0c99088461bd1443cb633063f408e86216e004ef
[ "Apache-2.0" ]
null
null
null
test/terra_test/grover.py
Qr4cl3/Iqb_n_p
0c99088461bd1443cb633063f408e86216e004ef
[ "Apache-2.0" ]
1
2019-11-19T07:32:20.000Z
2019-11-19T07:32:20.000Z
# import matplotlib.pyplot as plt # %matplotlib inline import numpy as np # importing Qiskit from qiskit import IBMQ, BasicAer from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister, execute def phase_oracle(circuit, register): circuit.x(register[0]) circuit.cz(register[0], register[1]) cir...
24.142857
78
0.72288
9308b65e715d5e07e8a336933faa99245ad050e2
215,806
py
Python
hrl_dynamic_mpc/src/darci_left_dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
1
2017-07-13T14:58:35.000Z
2017-07-13T14:58:35.000Z
hrl_dynamic_mpc/src/darci_left_dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
null
null
null
hrl_dynamic_mpc/src/darci_left_dMdq_func.py
gt-ros-pkg/hrl-haptic-manip
6458187075033ecd3a22fbcdc1a632df39b0cba1
[ "Apache-2.0" ]
2
2017-03-08T14:44:22.000Z
2019-07-15T23:46:35.000Z
# # # Copyright (c) 2013, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
61.013854
1,258
0.567992
9308be28eba9fa5952df36f0ec52a52be0d3fb10
193
py
Python
gunicorn_config.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
gunicorn_config.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
gunicorn_config.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
import gunicorn import os workers = os.getenv("GUNICORN_WORKERS") worker_class = "gevent" keepalive = os.getenv("GUNICORN_KEEP_ALIVE") bind = "0.0.0.0:5000" gunicorn.SERVER_SOFTWARE = "None"
19.3
44
0.756477
9308c8a2e0d9b214465272ddcc008521455a3e73
7,002
py
Python
dialogflow_v2beta1/gapic/transports/knowledge_bases_grpc_transport.py
gertventer1970/dialogflow-python-client-v2
e78b0e6765f94fb9ecbbc72c9fc30ce7245703e2
[ "Apache-2.0" ]
1
2020-10-14T07:43:19.000Z
2020-10-14T07:43:19.000Z
dialogflow_v2beta1/gapic/transports/knowledge_bases_grpc_transport.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
dialogflow_v2beta1/gapic/transports/knowledge_bases_grpc_transport.py
everydaycodings/dialogflow-python-client-v2
c1c925d94726f49e549870e087ad79ee491056e2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
36.46875
87
0.647386
9308e630973def8300d954f679c3245c61314be6
12,645
py
Python
exps/NATS-algos/regularized_ea.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
null
null
null
exps/NATS-algos/regularized_ea.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
null
null
null
exps/NATS-algos/regularized_ea.py
Mirofil/AutoDL-Projects
e7ee9fe27e5c5561a4b9fd1c1ee185677ef30893
[ "MIT" ]
null
null
null
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020 # ################################################################## # Regularized Evolution for Image Classifier Architecture Search # ################################################################## # python ./exps/N...
48.079848
194
0.680269
9308f92efe7db11341f3b00e96e3021f8807da2c
563
py
Python
Scrapy/mareduc/mareduc/pipelines.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
null
null
null
Scrapy/mareduc/mareduc/pipelines.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
2
2021-06-01T21:52:33.000Z
2021-12-13T19:44:00.000Z
Scrapy/mareduc/mareduc/pipelines.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
1
2015-10-14T12:16:07.000Z
2015-10-14T12:16:07.000Z
from scrapy.exceptions import DropItem # -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html class MareducPipeline(object): def __init__(self): self.ids_seen = set() ...
26.809524
65
0.64476
93090914a2aeaa8d464647e046e7e09dffb223b5
6,314
py
Python
HW 7/ps7.py
minotaur487/MIT-OCW-Problem-Sets
40ca55009f1543a1249cca4304357ff39d72e3e6
[ "MIT" ]
null
null
null
HW 7/ps7.py
minotaur487/MIT-OCW-Problem-Sets
40ca55009f1543a1249cca4304357ff39d72e3e6
[ "MIT" ]
null
null
null
HW 7/ps7.py
minotaur487/MIT-OCW-Problem-Sets
40ca55009f1543a1249cca4304357ff39d72e3e6
[ "MIT" ]
null
null
null
# Problem Set 7: Simulating the Spread of Disease and Virus Population Dynamics # Name: # Collaborators: # Time: import numpy import random import pylab ''' Begin helper code ''' class NoChildException(Exception): """ NoChildException is raised by the reproduce() method in the SimpleVirus and Resistant...
30.650485
95
0.642224
93090921d560e6487534cf8933c75bcb12c0b3b4
655
py
Python
SDCUP/uer/utils/subword.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
16
2022-02-13T08:06:16.000Z
2022-03-28T01:34:44.000Z
SDCUP/uer/utils/subword.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
4
2022-02-28T09:30:42.000Z
2022-03-29T05:42:32.000Z
SDCUP/uer/utils/subword.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
7
2022-02-15T08:20:23.000Z
2022-03-31T05:55:25.000Z
# -*- encoding:utf-8 -*- import torch import torch.nn as nn from uer.utils.constants import * def word2sub(word_ids, vocab, sub_vocab, subword_type): ''' word_ids: batch_size, seq_length ''' batch_size, seq_length = word_ids.size() device = word_ids.device word_ids = word_ids.contiguous().view...
31.190476
80
0.651908
9309205364f7137b4ede4d4b22fdfb04685478d2
2,608
py
Python
pyonepassword/_py_op_commands.py
pschelle/pyonepassword
2258c0fa851ad6a63c4f959982a66c715706b654
[ "MIT" ]
null
null
null
pyonepassword/_py_op_commands.py
pschelle/pyonepassword
2258c0fa851ad6a63c4f959982a66c715706b654
[ "MIT" ]
null
null
null
pyonepassword/_py_op_commands.py
pschelle/pyonepassword
2258c0fa851ad6a63c4f959982a66c715706b654
[ "MIT" ]
null
null
null
""" Description: A module that maps methods to to `op` commands and subcommands """ from ._py_op_cli import ( _OPCLIExecute, _OPArgv ) from .py_op_exceptions import ( OPCmdFailedException, OPGetItemException, OPGetDocumentException ) class _OPCommandInterface(_OPCLIExecute): """ A class t...
33.012658
106
0.66066
93095439b82559f11ac1a2ba6eb7f7e07031817f
524
py
Python
agogosml/agogosml/utils/cli.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-12-07T21:02:20.000Z
2019-02-22T14:36:31.000Z
agogosml/agogosml/utils/cli.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
43
2018-11-30T11:31:43.000Z
2019-04-03T16:09:06.000Z
agogosml/agogosml/utils/cli.py
cicorias/agogosml
60e0b52c2fc721bdd965aadaf8c1afd1ddb9b7d1
[ "MIT" ]
13
2018-11-29T00:31:29.000Z
2019-02-22T18:50:28.000Z
"""Utilities for CLIs.""" from argparse import ArgumentTypeError from json import loads def json_arg(value: str): """ Parse a JSON argument from the command line. >>> json_arg('{"foo": "bar", "baz": [1, 2]}') {'foo': 'bar', 'baz': [1, 2]} >>> json_arg('{') Traceback (most recent call last): ...
23.818182
67
0.59542
93095b7688cf99458885354a78f393d272b62b41
2,332
py
Python
my_scripts/grad/guidedgradcam.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
10
2019-03-11T22:47:56.000Z
2021-01-02T11:52:11.000Z
my_scripts/grad/guidedgradcam.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
1
2019-12-22T17:40:23.000Z
2019-12-25T01:26:52.000Z
my_scripts/grad/guidedgradcam.py
SilverKnightVGM/adversarial-robustness-toolbox
9c37bed005cfe09f04dfed40c0886724b083b975
[ "MIT" ]
8
2019-03-01T13:10:37.000Z
2022-03-07T07:48:41.000Z
from keras.applications.vgg16 import VGG16 from keras.applications.vgg16 import preprocess_input, decode_predictions from keras.preprocessing import image import sys sys.path.insert(0, '../utils') sys.path.insert(0, '../keras-GuidedBackpropagation') import numpy as np import cv2 from utils import deprocess_image fro...
32.84507
153
0.719125
93095b8f581fc356882bbe2ae00dcfc7ad8c3921
110,699
py
Python
masci_tools/vis/plot_methods.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
masci_tools/vis/plot_methods.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
masci_tools/vis/plot_methods.py
soumyajyotih/masci-tools
e4d9ea2fbf6e16378d0cbfb8828a11bdb09c2139
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the Masci-tools package. ...
38.211598
221
0.573582
93096319081e09e24cddd278624cca061ced61a0
59,794
py
Python
gcrlm/processors.py
giussepi/gcrlm
2c633eb681f536389cc0b63bb0d33ed933809b69
[ "MIT" ]
null
null
null
gcrlm/processors.py
giussepi/gcrlm
2c633eb681f536389cc0b63bb0d33ed933809b69
[ "MIT" ]
null
null
null
gcrlm/processors.py
giussepi/gcrlm
2c633eb681f536389cc0b63bb0d33ed933809b69
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ gcrlm/processors """ import copy import os import random import re import shutil from collections import defaultdict from math import floor, ceil from unittest.mock import patch, MagicMock import cv2 import numpy as np from gtorch_utils.constants import DB from gutils.datasets.utils import...
44.957895
171
0.598354
930988d01132288b4d6e5cfe6ddbaee596ab99c1
8,063
py
Python
code/massfunctions.py
modichirag/21cmhod
0807a7b0b880f4ba5bc7161b843d500ddcece5a7
[ "MIT" ]
null
null
null
code/massfunctions.py
modichirag/21cmhod
0807a7b0b880f4ba5bc7161b843d500ddcece5a7
[ "MIT" ]
null
null
null
code/massfunctions.py
modichirag/21cmhod
0807a7b0b880f4ba5bc7161b843d500ddcece5a7
[ "MIT" ]
null
null
null
import numpy as np import re, os, sys from pmesh.pm import ParticleMesh from nbodykit.lab import BigFileCatalog, BigFileMesh, MultipleSpeciesCatalog, FFTPower from nbodykit import setup_logging from mpi4py import MPI import HImodels # enable logging, we have some clue what's going on. setup_logging('info...
35.519824
167
0.608706
9309b53a5956b777ae7f2154835de2b96a300d8c
4,610
py
Python
sdca4crf/parameters/dense_weights.py
remilepriol/sdca4crf
13e7fbd741f6f4530de1983ca10e1760aa702207
[ "MIT" ]
3
2018-06-25T23:16:18.000Z
2020-11-11T00:45:49.000Z
sdca4crf/parameters/dense_weights.py
remilepriol/sdca4crf
13e7fbd741f6f4530de1983ca10e1760aa702207
[ "MIT" ]
null
null
null
sdca4crf/parameters/dense_weights.py
remilepriol/sdca4crf
13e7fbd741f6f4530de1983ca10e1760aa702207
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt from sdca4crf.parameters.sparse_weights import SparsePrimalDirection from sdca4crf.parameters.weights import WeightsWithoutEmission from sdca4crf.utils import letters2wordimage class DenseWeights(WeightsWithoutEmission): """Implement the weights of the mode...
40.79646
94
0.649892
9309c0c5d4d578f55004a08169214c5090d885ea
1,111
py
Python
tests/tls13/test_tls13_ClientAuth_ECDSA_SHA256.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tests/tls13/test_tls13_ClientAuth_ECDSA_SHA256.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
tests/tls13/test_tls13_ClientAuth_ECDSA_SHA256.py
timb-machine-mirrors/tlsmate
1313161b9170311f466a3a43b3d84797cecc0291
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Implements a class to be used for unit testing. """ import pathlib from tests.cipher_suite_tester import CipherSuiteTester from tlsmate import tls from tlsmate.tlssuite import TlsLibrary class TestCase(CipherSuiteTester): """Class used for tests with pytest. For more information re...
30.861111
83
0.710171
9309db1a67466c8244ffdb34d39a097922fd8a49
999
py
Python
MachineLearning/CNN/api.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
MachineLearning/CNN/api.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
MachineLearning/CNN/api.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# coding:UTF-8 # 2018-11-16 # api import os import cv2 import math import numpy as np __suffix = ["png", "jpg"] def getFiles(dirpath): file = [] for root, dirs, files in os.walk(dirpath, topdown=False): for name in files: path = os.path.join(root, name) if name.split(".")[-1] ...
21.255319
69
0.60961
9309eeb05f09ae500dd0355bf59ab08dd2fcfeaf
11,716
py
Python
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_sql_server_recoverable_sql_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_sql_server_recoverable_sql_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/operations/_workspace_managed_sql_server_recoverable_sql_pools_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
42.296029
229
0.670451
9309f52235166a2f755b882a08bf1cf0ed748dc9
349
py
Python
app.py
harababurel/macefash
5f8246fec53814eaecec8212fa555d5ef20627b0
[ "MIT" ]
12
2015-04-30T10:57:28.000Z
2020-12-02T16:28:07.000Z
app.py
harababurel/macefash
5f8246fec53814eaecec8212fa555d5ef20627b0
[ "MIT" ]
26
2015-05-05T18:41:33.000Z
2022-03-11T23:12:34.000Z
app.py
harababurel/macefash
5f8246fec53814eaecec8212fa555d5ef20627b0
[ "MIT" ]
4
2015-05-04T14:14:29.000Z
2016-06-22T08:52:02.000Z
""" I also keep app.py very thin. This module configures the app and the database. If the database is non-existent, then the module generates it. """ from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy app = Flask(__name__) app.secret_key = 'fascist' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///a...
24.928571
62
0.756447
930a0798335fdec97c983841f3e0f1a11575f54c
1,865
py
Python
smt_switch/src/sorts.py
makaimann/ezSMT
e4f7ffd1adb35f6a5e8a9c5aabb3143c24ab0aad
[ "BSD-3-Clause" ]
1
2020-06-24T02:12:24.000Z
2020-06-24T02:12:24.000Z
smt_switch/src/sorts.py
makaimann/ezSMT
e4f7ffd1adb35f6a5e8a9c5aabb3143c24ab0aad
[ "BSD-3-Clause" ]
null
null
null
smt_switch/src/sorts.py
makaimann/ezSMT
e4f7ffd1adb35f6a5e8a9c5aabb3143c24ab0aad
[ "BSD-3-Clause" ]
1
2019-10-10T22:21:19.000Z
2019-10-10T22:21:19.000Z
# This file is part of the smt-switch project. # See the file LICENSE in the top-level source directory for licensing information. from abc import ABCMeta, abstractmethod __all__ = ['BitVec', 'Int', 'Real', 'Bool', 'Array'] class SortBase(metaclass=ABCMeta): @abstractmethod def __init__(self, sexpr, children...
21.686047
83
0.616622
930a4af3a7c3df172acfe15b5b154bcb2c078678
4,802
py
Python
redhawk/test/test_common_xpath_functionality.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
2
2016-10-04T11:46:32.000Z
2017-07-09T15:23:55.000Z
redhawk/test/test_common_xpath_functionality.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
4
2016-03-07T13:16:48.000Z
2018-03-21T00:25:04.000Z
redhawk/test/test_common_xpath_functionality.py
spranesh/Redhawk
e2be5a6553df8449acecee2239b60c7bca0f22bc
[ "BSD-2-Clause-FreeBSD" ]
3
2016-04-06T08:04:34.000Z
2020-03-17T20:59:47.000Z
#!/usr/bin/env python """ Test xpath query functionality.""" from __future__ import absolute_import from __future__ import print_function import redhawk.common.selector as S from .sample_last import module_tree import redhawk.common.xpath as X """ The sample tree that we will test the selectors on: (module (defin...
26.240437
69
0.588088
930a65a2f71bd8408abee9a9ed69541b67b987f0
1,002
py
Python
repos/spikewidgets/spikewidgets/example_datasets/toy_example1.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikewidgets/spikewidgets/example_datasets/toy_example1.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikewidgets/spikewidgets/example_datasets/toy_example1.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
import spikeextractors as se import numpy as np from .synthesize_random_waveforms import synthesize_random_waveforms from .synthesize_random_firings import synthesize_random_firings from .synthesize_timeseries import synthesize_timeseries def toy_example1(duration=10, num_channels=4, samplerate=30000, K=10): upsa...
45.545455
120
0.741517
930aa5d91ef7b1bc64564b1b78766ebc9b72400a
3,868
py
Python
intersight/models/cond_hcl_status_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/cond_hcl_status_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/cond_hcl_status_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class CondHclStatusList(object): """ NOTE: This cla...
25.116883
83
0.551448
930aaf70e534ecf556329b61aac684eb61f00c1a
2,010
py
Python
bot/bot.py
manusaurio/bot
33dd712d3fe046c196ac0d31e0bfaf121f469ed5
[ "MIT" ]
null
null
null
bot/bot.py
manusaurio/bot
33dd712d3fe046c196ac0d31e0bfaf121f469ed5
[ "MIT" ]
null
null
null
bot/bot.py
manusaurio/bot
33dd712d3fe046c196ac0d31e0bfaf121f469ed5
[ "MIT" ]
null
null
null
import logging import socket from typing import Optional import aiohttp from discord.ext import commands from prometheus_async.aio.web import start_http_server as start_prometheus_http_server from bot import api log = logging.getLogger('bot') class Bot(commands.Bot): """A subclass of `discord.ext.commands.Bot`...
35.263158
93
0.675124
930ac57e5b7533c37cbc24b8c6fc060d58955059
861
py
Python
dc_gym/monitor/test_qdisc_stats.py
matthieu637/iroko
3905caa46328a7c011762f8a96a15fbde9826899
[ "Apache-2.0" ]
56
2018-12-01T00:11:27.000Z
2022-03-08T04:10:10.000Z
dc_gym/monitor/test_qdisc_stats.py
matthieu637/iroko
3905caa46328a7c011762f8a96a15fbde9826899
[ "Apache-2.0" ]
33
2018-12-13T20:18:07.000Z
2022-03-23T16:03:26.000Z
dc_gym/monitor/test_qdisc_stats.py
matthieu637/iroko
3905caa46328a7c011762f8a96a15fbde9826899
[ "Apache-2.0" ]
17
2019-02-19T05:31:23.000Z
2022-03-14T15:20:00.000Z
""" Simple test suite to verify the functionality of the bandwidth control library. Hardcoded. """ import ctypes import os FILE_DIR = os.path.dirname(os.path.abspath(__file__)) class Qdisc(ctypes.Structure): pass q_lib = ctypes.CDLL(FILE_DIR + "/libqdisc_stats.so") q_lib.init_qdisc_monitor.argtypes = [cty...
29.689655
66
0.804878
930ace36f715d3683d8e3ccc99d35a60c5b9bad5
9,210
py
Python
run.py
romanlutz/pmf-automl
2600cf484658803ecd08b3c03d77eb83f675fa95
[ "BSD-3-Clause" ]
null
null
null
run.py
romanlutz/pmf-automl
2600cf484658803ecd08b3c03d77eb83f675fa95
[ "BSD-3-Clause" ]
null
null
null
run.py
romanlutz/pmf-automl
2600cf484658803ecd08b3c03d77eb83f675fa95
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import sklearn.decomposition import sklearn.impute import time import torch import kernels import gaussian_process_latent_variable_model from utils import transform_forward, transform_backward import bayesian_optimization torch.set_default_tensor_type(torch.FloatTensor) fn_data ...
37.137097
138
0.642671
930b052a4c4aaddcf49b4c50eea3171680391a1f
545
py
Python
faws/cli.py
feiming/faws
00fa6566fbedb5216deb230edff65d907ae05501
[ "MIT" ]
1
2018-12-11T08:19:29.000Z
2018-12-11T08:19:29.000Z
faws/cli.py
feiming/faws
00fa6566fbedb5216deb230edff65d907ae05501
[ "MIT" ]
1
2021-11-15T17:48:03.000Z
2021-11-15T17:48:03.000Z
faws/cli.py
feiming/faws
00fa6566fbedb5216deb230edff65d907ae05501
[ "MIT" ]
2
2019-10-15T04:13:52.000Z
2019-10-27T15:57:00.000Z
# -*- coding: utf-8 -*- """Console script for faws.""" import sys import click @click.command() @click.argument('name') def main(name): """Console script for faws.""" import faws ec2 = faws.ls_obj('ec2') for i in ec2: instance_name_tag = faws.core.tags(i).get('Name', '').lower() if na...
23.695652
116
0.612844
930b40b89682dd22cec51905a2082ea71c907b10
6,665
py
Python
bookshop/resources/BookGenre.py
turner-townsend/genyrator
4d6f4aa1945a06a8b6d445a0f643a683c13e909a
[ "MIT" ]
null
null
null
bookshop/resources/BookGenre.py
turner-townsend/genyrator
4d6f4aa1945a06a8b6d445a0f643a683c13e909a
[ "MIT" ]
9
2019-09-13T09:31:55.000Z
2021-01-11T11:09:17.000Z
bookshop/resources/BookGenre.py
turner-townsend/genyrator
4d6f4aa1945a06a8b6d445a0f643a683c13e909a
[ "MIT" ]
1
2020-07-22T15:03:41.000Z
2020-07-22T15:03:41.000Z
import uuid from typing import Optional from flask import request, abort, url_for from flask_restx import Resource, fields, Namespace from sqlalchemy.orm import noload from bookshop.core.convert_dict import ( python_dict_to_json_dict, json_dict_to_python_dict ) from bookshop.sqlalchemy import db from bookshop.sq...
36.823204
112
0.67877
930b94630a85a7c5a6f135618ed4fa8344ef05a4
3,451
py
Python
mail_private/models.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
1
2020-12-07T19:52:33.000Z
2020-12-07T19:52:33.000Z
mail_private/models.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
null
null
null
mail_private/models.py
trojikman/mail-addons
193caa9af759700a588cdec8910ccbad05b59104
[ "MIT" ]
null
null
null
# Copyright 2016 x620 <https://github.com/x620> # Copyright 2017 Artyom Losev <https://github.com/ArtyomLosev> # Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev> # Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/> # License MIT (https://opensource.org/licenses/MIT). from odo...
33.504854
86
0.56969
930b9613a896f0fdac1ca0c3541c59a6867b7abc
2,320
py
Python
contrib/fanfouapi/parsers.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
contrib/fanfouapi/parsers.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
contrib/fanfouapi/parsers.py
joodo/loser-fan
ad6be4fb171ee7a8ca1fa8da572acaf11a1548b9
[ "MIT" ]
null
null
null
# Copyright 2009-2010 Joshua Roesslein # See LICENSE for details. from fanfouapi.objs import ModelFactory from fanfouapi.utils import import_simplejson from fanfouapi.error import WeibopError class Parser(object): def parse(self, method, payload): """ Parse the response payload and return the re...
29
91
0.62931
930bbee36e88083c54e15a422bff76c329259e46
1,795
py
Python
playground/fsdet/coco/retentive_rcnn/30shot/seed7/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
23
2021-06-25T05:34:31.000Z
2022-02-08T03:32:00.000Z
playground/fsdet/coco/retentive_rcnn/30shot/seed7/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
6
2021-06-30T13:10:21.000Z
2021-11-04T13:26:39.000Z
playground/fsdet/coco/retentive_rcnn/30shot/seed7/config.py
Megvii-BaseDetection/GFSD
78c0a938d794584f44d60afab66debd43773d4f7
[ "Apache-2.0" ]
1
2021-10-12T11:58:14.000Z
2021-10-12T11:58:14.000Z
import os.path as osp from cvpods.configs.rcnn_fpn_config import RCNNFPNConfig _config_dict = dict( MODEL=dict( WEIGHTS="/path/to/your/model.pth", MASK_ON=False, RESNETS=dict(DEPTH=101), ROI_HEADS=dict( NUM_CLASSES=80, COSINE_ON=True, COSINE_SCAL...
27.615385
84
0.560446
930c012ff8677a19e9693ca322f9f892cd181a65
8,903
py
Python
trainer/base_trainer.py
fmbao/wav_unet_audio_densoise
6b583ccfcf440d29850053824bf6395fdf2ea94e
[ "MIT" ]
166
2019-05-24T08:19:27.000Z
2022-03-29T03:12:19.000Z
trainer/base_trainer.py
cst781/Wave-U-Net-for-Speech-Enhancement
c8c9d8945959ba8c3aa1e7cb18cddc10dbc52210
[ "MIT" ]
9
2019-06-03T08:10:17.000Z
2022-03-30T12:56:47.000Z
trainer/base_trainer.py
cst781/Wave-U-Net-for-Speech-Enhancement
c8c9d8945959ba8c3aa1e7cb18cddc10dbc52210
[ "MIT" ]
52
2019-06-03T10:17:16.000Z
2022-03-10T18:02:18.000Z
import time from pathlib import Path import json5 import numpy as np import torch from torch.optim.lr_scheduler import StepLR from util import visualization from util.utils import prepare_empty_dir, ExecutionTime class BaseTrainer: def __init__(self, config, resume: ...
41.602804
171
0.607436
930c01da9d439d71f7d9b117ced437d0497cfd15
3,323
py
Python
cogbot/extensions/custodian.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
8
2016-12-26T14:10:38.000Z
2021-01-02T03:50:05.000Z
cogbot/extensions/custodian.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
28
2016-12-12T04:06:53.000Z
2020-04-23T06:18:55.000Z
cogbot/extensions/custodian.py
Arcensoth/cogbot
ef9d935ae8c8fbe00fb9370c75e0e6d9189141d0
[ "MIT" ]
9
2017-06-03T00:33:57.000Z
2020-10-29T18:16:02.000Z
import logging import typing from datetime import datetime, timedelta import discord from cogbot.cog_bot import CogBot, RoleId log = logging.getLogger(__name__) class CustodianServerState: def __init__( self, bot: CogBot, server: discord.Server, roles: typing.List[RoleId], ...
38.195402
97
0.64189
930c08c7369d052d691312efb797f3a34101821b
85
py
Python
pretrained_model/constants.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
1
2021-09-25T14:11:22.000Z
2021-09-25T14:11:22.000Z
pretrained_model/constants.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
null
null
null
pretrained_model/constants.py
rtoengi/transfer-learning-for-sign-language-recognition
e0627115e6b68d6b85244d484011bb3895ccf4ee
[ "MIT" ]
4
2021-04-10T01:33:03.000Z
2021-11-11T06:58:59.000Z
# Training run to be used for the pre-trained model TRAINING_RUN = '20200612_235400'
28.333333
51
0.788235
930c46e60bfc71fd001321f51d3fffd77f183168
2,077
py
Python
frappe/core/doctype/module_def/module_def.py
abhishekbalam/frappe
75326b2f23e433f356b699c4f7aa954d329150c5
[ "MIT" ]
1
2020-11-28T14:00:37.000Z
2020-11-28T14:00:37.000Z
frappe/core/doctype/module_def/module_def.py
abhishekbalam/frappe
75326b2f23e433f356b699c4f7aa954d329150c5
[ "MIT" ]
null
null
null
frappe/core/doctype/module_def/module_def.py
abhishekbalam/frappe
75326b2f23e433f356b699c4f7aa954d329150c5
[ "MIT" ]
1
2020-09-03T18:16:50.000Z
2020-09-03T18:16:50.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe, os, json from frappe.model.document import Document class ModuleDef(Document): def on_update(self): """If in `developer_mode`, create folder for module and ...
31.469697
75
0.7039
930c61fcc10a13cb32adf2079deb4207c9fd73a1
1,281
py
Python
setup.py
northpower25/wt.pygardena
07b8c272e9019dbd1291c0fa207b43a5a32f9993
[ "Apache-2.0" ]
2
2019-01-02T20:57:17.000Z
2019-08-26T13:26:36.000Z
setup.py
northpower25/wt.pygardena
07b8c272e9019dbd1291c0fa207b43a5a32f9993
[ "Apache-2.0" ]
8
2018-09-06T07:19:29.000Z
2019-09-11T18:07:46.000Z
setup.py
northpower25/wt.pygardena
07b8c272e9019dbd1291c0fa207b43a5a32f9993
[ "Apache-2.0" ]
7
2019-01-02T21:18:56.000Z
2020-05-24T16:32:40.000Z
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 f: long_description = f.read() setuptools.setup( name='wt.pygardena', version='0.9.6', packages=setuptools.find_packages(), url='https:...
33.710526
73
0.643247