hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
4e1e6d9f64c976db2a230f08343f92e8512ecc75
4,560
py
Python
code/analysis/old/get_word_representativeness_Poisson.py
tkc-morita/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
4
2021-03-27T18:28:23.000Z
2022-01-10T23:32:29.000Z
code/analysis/old/get_word_representativeness_Poisson.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
null
null
null
code/analysis/old/get_word_representativeness_Poisson.py
stannam/variational_inference_DP_mix_HDP_topic_ngram
95d6c8ab2956501fc82b416bf423ee57fe77c73f
[ "MIT" ]
1
2022-01-10T23:45:54.000Z
2022-01-10T23:45:54.000Z
# coding: utf-8 import pandas as pd import numpy as np import scipy.misc as spm import scipy.special as sps # import scipy.stats as spst import sys, os.path def main_loop(encoded_data, log_ngram, n, start_code, log_assignment_over_others, gamma_poisson): return np.array( [get_representativeness( string, ...
29.419355
114
0.739035
5395c8898878d9e85668cd3dcdecba71bc00bb1b
8,749
py
Python
Network Automation/Automation.py
kuhakuu04/Network_Automation
f3eb99943e569f3311233f437ea17cd1862e3dc9
[ "Apache-2.0" ]
null
null
null
Network Automation/Automation.py
kuhakuu04/Network_Automation
f3eb99943e569f3311233f437ea17cd1862e3dc9
[ "Apache-2.0" ]
null
null
null
Network Automation/Automation.py
kuhakuu04/Network_Automation
f3eb99943e569f3311233f437ea17cd1862e3dc9
[ "Apache-2.0" ]
null
null
null
#module import os import paramiko import netmiko import getpass import Router #login banner print('NETWORK AUTOMATION\nCREATE BY LNF LINFIQ 04\n\n\nver0.2.1\nhelp - show command\n') while True: #input input_command = input('LNF(automation) > ') #input command if(input_command == 'help'): pri...
44.411168
160
0.508972
3e0f0bd2b4b852de3e60c3e3469689efa6955839
2,537
py
Python
backtoshops/routes/urls.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
backtoshops/routes/urls.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
backtoshops/routes/urls.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################# # # Copyright © Dragon Dollar Limited # contact: contact@dragondollar.com # # This software is a collection of webservices designed to provide a secure # and scalable framework to build e-commerce websites. # # This s...
46.127273
90
0.703587
715f552cce772eb09654bf70f4e1eacbeb4bde91
864
py
Python
eventkit_cloud/gunicorn.py
zta6/eventkit-cloud
a9e1aaa2bbfd3d11d3cf3df91e413e6220d6e876
[ "BSD-3-Clause" ]
9
2019-02-27T19:42:02.000Z
2021-05-09T14:16:28.000Z
eventkit_cloud/gunicorn.py
zta6/eventkit-cloud
a9e1aaa2bbfd3d11d3cf3df91e413e6220d6e876
[ "BSD-3-Clause" ]
46
2017-06-27T03:12:57.000Z
2018-12-28T19:48:35.000Z
eventkit_cloud/gunicorn.py
zta6/eventkit-cloud
a9e1aaa2bbfd3d11d3cf3df91e413e6220d6e876
[ "BSD-3-Clause" ]
7
2017-07-28T18:16:34.000Z
2019-01-18T04:41:55.000Z
import os from gunicorn.http import wsgi # Used to configure gunicorn settings. def build_header(name, value): """ Takes a header name and value and constructs a valid string to add to the headers list. """ stripped_value = value.lstrip(" ").rstrip("\r\n").rstrip("\n") stripped_name = name.rstri...
32
92
0.689815
f8219b6911425c43ff07a535e0179294b0d82c0b
7,305
py
Python
SVM/SMS_spam_classifier.py
daniel-yj-yang/ml
075b348025e4eca416a6587f360feb2c73422ecb
[ "BSD-3-Clause" ]
null
null
null
SVM/SMS_spam_classifier.py
daniel-yj-yang/ml
075b348025e4eca416a6587f360feb2c73422ecb
[ "BSD-3-Clause" ]
null
null
null
SVM/SMS_spam_classifier.py
daniel-yj-yang/ml
075b348025e4eca416a6587f360feb2c73422ecb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Sep 10 23:20:59 2020 @author: daniel """ # https://github.com/DTrimarchi10/confusion_matrix/blob/master/cf_matrix.py from machlearn import model_evaluation as me from textblob import TextBlob # StratifiedKFold, cross_val_score, from sklearn.model_se...
34.457547
126
0.657906
66a504538549984dd64477a3e76f3bb96316c4c1
669
py
Python
var/spack/repos/builtin/packages/py-nestle/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-10T13:47:48.000Z
2019-04-17T13:05:17.000Z
var/spack/repos/builtin/packages/py-nestle/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-nestle/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-07-19T20:31:27.000Z
2021-07-19T21:14:14.000Z
# Copyright 2013-2021 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 PyNestle(PythonPackage): """Nested sampling algorithms for evaluating Bayesian evidence.""...
30.409091
95
0.723468
5dcc39bdff506f5f41ad35f250c50929c6b36381
1,109
py
Python
src/utils/analysis.py
JetBrains-Research/pubtrends-nature-reviews
c5806d64805726733348bdb60c9243cbf9232d02
[ "Apache-2.0" ]
1
2022-01-27T13:34:46.000Z
2022-01-27T13:34:46.000Z
src/utils/analysis.py
JetBrains-Research/pubtrends-nature-reviews
c5806d64805726733348bdb60c9243cbf9232d02
[ "Apache-2.0" ]
null
null
null
src/utils/analysis.py
JetBrains-Research/pubtrends-nature-reviews
c5806d64805726733348bdb60c9243cbf9232d02
[ "Apache-2.0" ]
1
2022-01-05T04:10:53.000Z
2022-01-05T04:10:53.000Z
import logging from pysrc.papers.analysis.graph import build_papers_graph logger = logging.getLogger(__name__) def get_direct_references_subgraph(analyzer, pmid): """ Extract subgraph of the papers graph containing only direct references of the paper with given `pmid`. """ logger.info('Analyzing...
30.805556
100
0.738503
d7a98d784b14dba96a32957f596e981638829fa4
204
py
Python
libraries/website/tests/examples/test_swarm_solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
95
2020-01-02T23:02:34.000Z
2022-03-08T18:57:24.000Z
libraries/website/tests/examples/test_swarm_solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
44
2020-01-05T03:07:45.000Z
2021-08-11T20:45:53.000Z
libraries/website/tests/examples/test_swarm_solver.py
justindujardin/mathy
776ac528d4586d6ea558a7212adb3559ea487a3c
[ "MIT" ]
5
2020-04-04T16:46:36.000Z
2022-03-30T08:10:02.000Z
def test_swarm_random_task(): from ...docs.snippets.examples import swarm_random_task # noqa def test_swarm_generate_data(): from ...docs.snippets.examples import swarm_data_generation # noqa
29.142857
71
0.77451
8a2dd6d057cc66d44dbd17e0c86e0c5ddaca0bb0
7,345
py
Python
sonnet/python/modules/layer_norm.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
3
2019-07-31T12:36:26.000Z
2020-12-16T14:37:19.000Z
sonnet/python/modules/layer_norm.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
null
null
null
sonnet/python/modules/layer_norm.py
ankitshah009/sonnet
a07676192c6d0f2ed5967d6bc367d62e55835baf
[ "Apache-2.0" ]
3
2019-07-29T08:55:20.000Z
2019-07-30T06:36:56.000Z
# Copyright 2017 The Sonnet 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 l...
34.646226
80
0.677059
8b49db26652db52eeb6553f99274498c9649133a
64,422
py
Python
doozerlib/runtime.py
thegreyd/doozer
89d2cad82f831aa6594c90293ec3923c08b343d6
[ "Apache-2.0" ]
null
null
null
doozerlib/runtime.py
thegreyd/doozer
89d2cad82f831aa6594c90293ec3923c08b343d6
[ "Apache-2.0" ]
null
null
null
doozerlib/runtime.py
thegreyd/doozer
89d2cad82f831aa6594c90293ec3923c08b343d6
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from future import standard_library standard_library.install_aliases() from future.utils import as_native_str from multiprocessing.dummy import Pool as ThreadPool from contextlib import contextmanager from collections import namedtuple import os ...
44.7375
244
0.620642
5dc033e56b43fd2b7ce65e905d2023c1aa460cae
688
py
Python
api/src/wt/costs/expenditures/_model.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
api/src/wt/costs/expenditures/_model.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
api/src/wt/costs/expenditures/_model.py
sedlar/work-tracking
78917ff8200829eb674142ce43b503d8e892d7eb
[ "BSD-2-Clause" ]
null
null
null
from typing import List from wt.costs.expenditures._obj import Expenditure, BoundExpenditure from wt.ids import SimpleId, EntityId class ExpendituresModel: def create_expenditure(self, entity_id: EntityId, expenditure: Expenditure) -> BoundExpenditure: raise NotImplementedError() def delete_expendit...
28.666667
100
0.702035
102d118025c02973d604b06d3f4c62dce2dbd592
79
py
Python
tests/config.py
krypton-unite/time_series_models
adbf320bfb926b459d0bf3761f18ed1e260f2098
[ "Unlicense" ]
null
null
null
tests/config.py
krypton-unite/time_series_models
adbf320bfb926b459d0bf3761f18ed1e260f2098
[ "Unlicense" ]
null
null
null
tests/config.py
krypton-unite/time_series_models
adbf320bfb926b459d0bf3761f18ed1e260f2098
[ "Unlicense" ]
null
null
null
""" Configures tests """ # devices = ['cuda', 'cpu'] devices = ['cuda', 'cpu']
13.166667
27
0.544304
2136fed3bf50aca81b83aa7789d0ef1c74e9634a
5,801
py
Python
Various/ThirdParty/opencv/video.py
pixlra/HARP-fork
36e94b3f5f6798726b254380498656d17b68d2f7
[ "CC-BY-2.0" ]
null
null
null
Various/ThirdParty/opencv/video.py
pixlra/HARP-fork
36e94b3f5f6798726b254380498656d17b68d2f7
[ "CC-BY-2.0" ]
1
2019-01-14T09:00:21.000Z
2019-01-14T09:00:21.000Z
Various/ThirdParty/opencv/video.py
pixlra/HARP-fork
36e94b3f5f6798726b254380498656d17b68d2f7
[ "CC-BY-2.0" ]
1
2022-02-01T12:45:29.000Z
2022-02-01T12:45:29.000Z
#!/usr/bin/env python ''' Video capture sample. Sample shows how VideoCapture class can be used to acquire video frames from a camera of a movie file. Also the sample provides an example of procedural video generation by an object, mimicking the VideoCapture interface (see Chess class). 'create_capture' is a convini...
29.748718
109
0.555249
c446bc91606f8a415ff5bda1f204581b15c36b47
1,903
py
Python
Python_libs/.ipynb_checkpoints/stab_aux-checkpoint.py
tsommerfeld/L2-methods_for_resonances
acba48bfede415afd99c89ff2859346e1eb4f96c
[ "MIT" ]
null
null
null
Python_libs/.ipynb_checkpoints/stab_aux-checkpoint.py
tsommerfeld/L2-methods_for_resonances
acba48bfede415afd99c89ff2859346e1eb4f96c
[ "MIT" ]
null
null
null
Python_libs/.ipynb_checkpoints/stab_aux-checkpoint.py
tsommerfeld/L2-methods_for_resonances
acba48bfede415afd99c89ff2859346e1eb4f96c
[ "MIT" ]
null
null
null
""" functions needed for the GPA analysis of stabilization graphs convention: the scaling variable is called L L could be a box-size or a scaling factor of exponents however, I have the suspicion is works only, if s = 1/L^2 as in L = boxlength is used """ import numpy as np def dEdL(E, L, P, Q, R)...
22.927711
69
0.518655
d377018eb4679769e06717400fccb71699724eb6
5,036
py
Python
gnuradio-3.7.13.4/grc/gui/Preferences.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
1
2021-03-09T07:32:37.000Z
2021-03-09T07:32:37.000Z
gnuradio-3.7.13.4/grc/gui/Preferences.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
gnuradio-3.7.13.4/grc/gui/Preferences.py
v1259397/cosmic-gnuradio
64c149520ac6a7d44179c3f4a38f38add45dd5dc
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2008 Free Software Foundation, Inc. This file is part of GNU Radio GNU Radio Companion is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later ...
28.942529
96
0.67633
fa37447a25bf986681486ca2bb9cdf2d1be114a5
37,527
py
Python
ironic_inspector/node_cache.py
elfosardo/ironic-inspector
479c0465676b36a8a9b0f23eabafdac36d5b2a6f
[ "Apache-2.0" ]
1
2019-06-17T21:39:14.000Z
2019-06-17T21:39:14.000Z
ironic_inspector/node_cache.py
elfosardo/ironic-inspector
479c0465676b36a8a9b0f23eabafdac36d5b2a6f
[ "Apache-2.0" ]
1
2019-09-16T09:38:03.000Z
2019-09-16T09:38:03.000Z
ironic_inspector/node_cache.py
elfosardo/ironic-inspector
479c0465676b36a8a9b0f23eabafdac36d5b2a6f
[ "Apache-2.0" ]
5
2019-06-13T13:00:16.000Z
2021-04-17T16:32:42.000Z
# 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, software # distributed under the...
36.755142
79
0.603725
7be45c6a4732cbdb274cca2412c5c49157bcea40
7,339
py
Python
indicators/tests/test_generate_periodic_target.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
null
null
null
indicators/tests/test_generate_periodic_target.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
5
2021-02-08T20:42:48.000Z
2022-03-12T00:19:38.000Z
indicators/tests/test_generate_periodic_target.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
null
null
null
import datetime from indicators.models import Indicator from indicators.views.view_utils import ( generate_periodic_target_single, generate_periodic_targets ) from django import test @test.tag('targets', 'fast') class GenerateSinglePeriodicTarget(test.TestCase): def setUp(self): self.start_date ...
42.178161
119
0.556615
e68767e81b0e3b34bd20f1464488df1d1b25c5a4
22,151
py
Python
q_encodings/strongly_constrained_encoding.py
irfansha/Q-Planner
14adad480f2627a3893796b89b54f8c2622d1618
[ "MIT" ]
null
null
null
q_encodings/strongly_constrained_encoding.py
irfansha/Q-Planner
14adad480f2627a3893796b89b54f8c2622d1618
[ "MIT" ]
null
null
null
q_encodings/strongly_constrained_encoding.py
irfansha/Q-Planner
14adad480f2627a3893796b89b54f8c2622d1618
[ "MIT" ]
null
null
null
# Irfansha Shaik, 10.04.2021, Aarhus. from utils.variables_dispatcher import VarDispatcher as vd from utils.gates import GatesGen as gg from tarski.syntax import formulas as fr # TODO: Update to adapt to strong constraints ''' WARNING: It is possible that empty or gates might cause some problem, not sure but better...
49.55481
175
0.706289
d7cab5e474e1274b1ed0d3abb9436018e3a9dfef
7,658
py
Python
data_steward/cdr_cleaner/cleaning_rules/ensure_date_datetime_consistency.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/ensure_date_datetime_consistency.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
data_steward/cdr_cleaner/cleaning_rules/ensure_date_datetime_consistency.py
jp3477/curation
41f98d57c8273d9963ad6d466a237c99b63c74be
[ "MIT" ]
null
null
null
""" Ensuring there are no null datetimes. Original Issues: DC-614, DC-509, and DC-432 The intent is to copy the date over to the datetime field if the datetime field is null or incorrect. """ # Python imports import logging import common # Project imports import constants.bq_utils as bq_consts import constants.cdr_...
36.995169
119
0.639462
f4a7de87fba623caa76c27ebaf48641f8dfef5e6
6,647
py
Python
np_mnist.py
jusonn/Neural-Process
7e76811ff90d4ff2ba57f36cfd56b2e1d9a18652
[ "MIT" ]
5
2019-02-02T14:03:26.000Z
2020-11-07T10:23:26.000Z
np_mnist.py
jusonn/Neural-Process
7e76811ff90d4ff2ba57f36cfd56b2e1d9a18652
[ "MIT" ]
null
null
null
np_mnist.py
jusonn/Neural-Process
7e76811ff90d4ff2ba57f36cfd56b2e1d9a18652
[ "MIT" ]
1
2021-03-17T11:32:35.000Z
2021-03-17T11:32:35.000Z
import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F from torchvision import datasets, transforms from torchvision.utils import save_image import random device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') train_loader = torch.utils.data.DataLoader( ...
34.984211
103
0.591395
c083f7e39257f336c2c555756daaae4d05ba24d7
227
py
Python
30/01/1.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
30/01/1.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
70
2017-06-01T11:02:51.000Z
2017-06-30T00:35:32.000Z
30/01/1.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
from array import array ary = array('B', [0, 255, 127]) # B: unsigned char 0〜255(0x00〜0xFF) #ary = array('B', [0, 255, -1]) # OverflowError: unsigned byte integer is less than minimum for a in ary: print(a) print(sorted(ary))
37.833333
91
0.674009
f5eed238404a957910b2fdc14fe482193784f494
10,364
py
Python
spyder/utils/misc.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
7,956
2015-02-17T01:19:09.000Z
2022-03-31T21:52:15.000Z
spyder/utils/misc.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
16,326
2015-02-16T23:15:21.000Z
2022-03-31T23:34:34.000Z
spyder/utils/misc.py
Earthman100/spyder
949ce0f9100a69504c70a5678e8589a05aee7d38
[ "MIT" ]
1,918
2015-02-20T19:26:26.000Z
2022-03-31T19:03:25.000Z
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Miscellaneous utilities""" import functools import logging import os import os.path as osp import re import sys import stat import socket from s...
31.791411
78
0.584523
992c4a1c6123b0b72902d1e73d1d62e0581ef60e
25
py
Python
MockBot/__init__.py
dgisolfi/MockBot
2b7cae9d0241c3a8fcd5035356e596e0ebc3a4a2
[ "MIT" ]
null
null
null
MockBot/__init__.py
dgisolfi/MockBot
2b7cae9d0241c3a8fcd5035356e596e0ebc3a4a2
[ "MIT" ]
null
null
null
MockBot/__init__.py
dgisolfi/MockBot
2b7cae9d0241c3a8fcd5035356e596e0ebc3a4a2
[ "MIT" ]
null
null
null
from MockBot.bot import *
25
25
0.8
816aaa405033e9ca9a6b5fbc38e7d5869d041952
299
py
Python
apps/static/models/__init__.py
Sult/daf
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
[ "MIT" ]
null
null
null
apps/static/models/__init__.py
Sult/daf
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
[ "MIT" ]
null
null
null
apps/static/models/__init__.py
Sult/daf
a4da9e8c96f70577e2490c05e82bdf7d0de1a563
[ "MIT" ]
null
null
null
from .agt import * from .cert import * from .char import * from .crp import * from .dmg import * from .eve import * from .industry import * from .inv import * from .mapt import * from .planet import * from .ram import * from .sta import * from .trn import * from .war import * #from .temp import *
17.588235
23
0.692308
fb9e061424fcf5231137e981e095a483274e46b5
7,126
py
Python
openstackclient/tests/functional/identity/v3/test_role.py
alvarosimon/python-openstackclient
2ab3396f19796935ddcb281b865d37839a4f84f7
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/functional/identity/v3/test_role.py
alvarosimon/python-openstackclient
2ab3396f19796935ddcb281b865d37839a4f84f7
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/functional/identity/v3/test_role.py
alvarosimon/python-openstackclient
2ab3396f19796935ddcb281b865d37839a4f84f7
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# 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, software # d...
41.672515
78
0.561184
51f1fe44f84c9725c6ad5fb8a2c1aa97faaf867b
2,503
py
Python
lfp_atn_simuran/multi_runs/run_lfp_rate.py
seankmartin/lfp_atn
647889eddfa9ba3910c74df7e61f10fd98c61854
[ "MIT" ]
null
null
null
lfp_atn_simuran/multi_runs/run_lfp_rate.py
seankmartin/lfp_atn
647889eddfa9ba3910c74df7e61f10fd98c61854
[ "MIT" ]
null
null
null
lfp_atn_simuran/multi_runs/run_lfp_rate.py
seankmartin/lfp_atn
647889eddfa9ba3910c74df7e61f10fd98c61854
[ "MIT" ]
null
null
null
""" simuran_multi_params describes running main.py for multiple different recordings, functions, etc. In theory, this could describe a full experiment. """ import os def create_new_entry(batch_param_loc, fn_param_loc, add=""): def make_default_dict(add=""): param_names = {} # file_list_name is of...
28.123596
81
0.59129
574b9a799c7616273ccc8fe8ca0ca1ca26e2a90a
255
py
Python
manage.py
staciajohanna/squadbox
4701062e64c2e1d3ad75ac01fb75cf55caa1ee10
[ "MIT" ]
23
2017-10-29T17:36:30.000Z
2020-12-04T17:44:07.000Z
manage.py
anantb/voicex
9c22f8bf02818c6fdda6a99717bc1a1ccc9bdecd
[ "MIT" ]
60
2017-10-10T21:49:26.000Z
2021-06-10T19:12:42.000Z
manage.py
anantb/voicex
9c22f8bf02818c6fdda6a99717bc1a1ccc9bdecd
[ "MIT" ]
8
2017-12-09T16:18:53.000Z
2021-07-12T04:08:29.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "http_handler.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.181818
76
0.776471
b66e99b413bcc59f2f5c73d98ef98eace1f7cdb5
6,071
py
Python
reference-implementation/cogs/eval.py
tilda/lolbot
9d03ce1cbd506329d3538ec16a62895f8693016a
[ "MIT" ]
3
2017-07-18T11:49:58.000Z
2018-02-25T00:10:16.000Z
reference-implementation/cogs/eval.py
tilda/lolbot
9d03ce1cbd506329d3538ec16a62895f8693016a
[ "MIT" ]
6
2017-08-27T02:51:54.000Z
2018-01-22T03:09:06.000Z
reference-implementation/cogs/eval.py
tilda/lolbot
9d03ce1cbd506329d3538ec16a62895f8693016a
[ "MIT" ]
5
2017-10-07T16:41:21.000Z
2018-02-05T22:01:48.000Z
""" The MIT License (MIT) Copyright (c) 2018 tilda 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, publis...
33.174863
88
0.607643
c5f4d5e39f8b870f5232187a302a675a23642d5f
5,445
py
Python
evaluation/jenkins/second_run_gear_images_without_cache.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/jenkins/second_run_gear_images_without_cache.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
evaluation/jenkins/second_run_gear_images_without_cache.py
seveirbian/gear-old
8d3529a9bf42e652a9d7475c9d14e9a6afc69a76
[ "Apache-2.0" ]
null
null
null
import sys # package need to be installed, pip install docker import docker import time import yaml import os import random import subprocess import signal import urllib2 import shutil import xlwt # package need to be installed, pip install hvac import hvac auto = False private_registry = "202.114.10.146:9999/" suff...
28.809524
109
0.51405
6e10c8085e7ee2b0272707a6984a4a1b2e88e290
21,079
py
Python
snake.py
andyhou965/SnakeAI
8520c4c9a2dcd8a844e298adc3f939ec8b7ce3a5
[ "MIT" ]
null
null
null
snake.py
andyhou965/SnakeAI
8520c4c9a2dcd8a844e298adc3f939ec8b7ce3a5
[ "MIT" ]
null
null
null
snake.py
andyhou965/SnakeAI
8520c4c9a2dcd8a844e298adc3f939ec8b7ce3a5
[ "MIT" ]
null
null
null
import numpy as np from typing import Tuple, Optional, Union, Set, Dict, Any from fractions import Fraction import random from collections import deque import sys import os import json from misc import * from genetic_algorithm.individual import Individual from neural_network import FeedForwardNetwork, linea...
42.327309
135
0.59462
f169154333f29cc1ac783b539b5a22037e28b2d6
432
py
Python
projects/views.py
aminyaraghi/portfolio
dabef787f36eb80563b6a0246a55d3495b126cb5
[ "MIT" ]
null
null
null
projects/views.py
aminyaraghi/portfolio
dabef787f36eb80563b6a0246a55d3495b126cb5
[ "MIT" ]
null
null
null
projects/views.py
aminyaraghi/portfolio
dabef787f36eb80563b6a0246a55d3495b126cb5
[ "MIT" ]
null
null
null
from django.shortcuts import render from projects.models import Project def project_index(request): projects = Project.objects.all() context = { 'projects': projects } return render(request, 'project_index.html', context) def project_detail(request, pk): project = Project.objects.get(pk=...
22.736842
58
0.68287
d89dc2402f97bbb8cc742987ddaf32554db003cc
11,716
py
Python
tests/table/test_join.py
0scarB/piccolo
27539219431874bae99b7206df48133fbe1a27eb
[ "MIT" ]
750
2019-01-03T16:02:48.000Z
2022-03-30T19:53:03.000Z
tests/table/test_join.py
0scarB/piccolo
27539219431874bae99b7206df48133fbe1a27eb
[ "MIT" ]
311
2019-01-14T13:07:13.000Z
2022-03-31T07:43:08.000Z
tests/table/test_join.py
0scarB/piccolo
27539219431874bae99b7206df48133fbe1a27eb
[ "MIT" ]
48
2020-12-18T08:13:50.000Z
2022-03-24T03:18:06.000Z
import decimal from unittest import TestCase from tests.example_apps.music.tables import ( Band, Concert, Manager, Ticket, Venue, ) TABLES = [Manager, Band, Venue, Concert] class TestCreateJoin: def test_create_join(self): for table in TABLES: table.create_table().run_syn...
31.923706
79
0.550444
0ae2dd48c7ad3d7bfdeb431cc77b8b8be1bba784
2,972
py
Python
Tiana.py
TEAMOFDEVIL-X/TIANACHATBOT
7a6c85c12d506b79a6788646fd4e3c210b3c1166
[ "MIT" ]
3
2021-09-04T07:01:11.000Z
2021-10-17T19:25:13.000Z
Tiana.py
TEAMOFDEVIL-X/TIANACHATBOT
7a6c85c12d506b79a6788646fd4e3c210b3c1166
[ "MIT" ]
null
null
null
Tiana.py
TEAMOFDEVIL-X/TIANACHATBOT
7a6c85c12d506b79a6788646fd4e3c210b3c1166
[ "MIT" ]
6
2021-08-06T18:36:49.000Z
2022-01-05T11:00:57.000Z
print("[INFO]: Importing Your API_ID, API_HASH, BOT_TOKEN") import re from asyncio import (gather, get_event_loop, sleep) from aiohttp import ClientSession from pyrogram import (Client, filters, idle) from Python_ARQ import ARQ from config import bot, BOT_TOKEN, ARQ_API_KEY, ARQ_API_BASE_URL, LANGUAGE bot_token= BOT_...
25.843478
80
0.64031
7240cf093e2eeba8e74fa05114e309f3dd93e24d
636
py
Python
exploitTemplate.py
ArchCWithClasses/VanillaX86BufferOverflow
d154ceae6237cec82df834b0eeba7400510e28f1
[ "MIT" ]
null
null
null
exploitTemplate.py
ArchCWithClasses/VanillaX86BufferOverflow
d154ceae6237cec82df834b0eeba7400510e28f1
[ "MIT" ]
null
null
null
exploitTemplate.py
ArchCWithClasses/VanillaX86BufferOverflow
d154ceae6237cec82df834b0eeba7400510e28f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import socket ip = "MACHINE_IP" port = 1337 #Testing chars for shellcode, 0x00(Null byte) is default bad. charslist = "" badchars = [0x00] for i in range (0x00, 0xFF+1): if i not in badchars: charslist += chr(i) #shellcode = () offset = 0 jun...
19.272727
61
0.591195
2dbf035c011ed16dd4913befdce6c7c824bb3053
632
py
Python
manage.py
Parth-Shah-99/Polling-Project
b9d1548dc801a0b02d1fd8b925276d9349bb10fe
[ "MIT" ]
1
2021-06-23T11:24:01.000Z
2021-06-23T11:24:01.000Z
manage.py
Parth-Shah-99/Polling-Project
b9d1548dc801a0b02d1fd8b925276d9349bb10fe
[ "MIT" ]
null
null
null
manage.py
Parth-Shah-99/Polling-Project
b9d1548dc801a0b02d1fd8b925276d9349bb10fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PollsProject.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise I...
28.727273
76
0.685127
98eae49ad844740f1e0251c1e23b2e1c4380b48c
952
py
Python
assignment_7/src/train.py
amitbcp/tsai-vision
14a66d4c3295714fdcc97db13804ffba9d6f06cc
[ "Apache-2.0" ]
null
null
null
assignment_7/src/train.py
amitbcp/tsai-vision
14a66d4c3295714fdcc97db13804ffba9d6f06cc
[ "Apache-2.0" ]
null
null
null
assignment_7/src/train.py
amitbcp/tsai-vision
14a66d4c3295714fdcc97db13804ffba9d6f06cc
[ "Apache-2.0" ]
2
2021-07-25T10:24:11.000Z
2021-08-13T09:23:30.000Z
import torch.nn as nn import torch.nn.functional as F from tqdm import tqdm def train(model, device, train_loader, optimizer,train_acc,train_losses): model.train() pbar = tqdm(train_loader) correct = 0 processed = 0 for batch_idx, (data, target) in enumerate(pbar): data = data["image"].to(...
27.2
98
0.633403
00dbd4284076dad57d9f3a1590123acb842a3603
906
py
Python
service/microservice.py
SFDigitalServices/solarpanel
1e9850a286dc389ed392cdaf5a0ac04a3bd0798b
[ "MIT" ]
null
null
null
service/microservice.py
SFDigitalServices/solarpanel
1e9850a286dc389ed392cdaf5a0ac04a3bd0798b
[ "MIT" ]
null
null
null
service/microservice.py
SFDigitalServices/solarpanel
1e9850a286dc389ed392cdaf5a0ac04a3bd0798b
[ "MIT" ]
null
null
null
"""Main application module""" import os import json import jsend import sentry_sdk import falcon from .resources.welcome import Welcome from .resources.solarpanel import SolarPanel from .resources.staticresource import StaticResource def start_service(): """Start this service set SENTRY_DSN environmental varia...
28.3125
71
0.722958
7bcdcf7636c3b3eb1a293748ea16e349bf7adb6b
4,629
py
Python
paddlevideo/utils/record.py
Hzx66666/BDCI_Padddle_5
5283d8b9d3db3eb828e401faf42b62f71770d0ff
[ "Apache-2.0" ]
1
2021-11-24T09:23:21.000Z
2021-11-24T09:23:21.000Z
paddlevideo/utils/record.py
Hzx66666/BDCI_Padddle_5
5283d8b9d3db3eb828e401faf42b62f71770d0ff
[ "Apache-2.0" ]
null
null
null
paddlevideo/utils/record.py
Hzx66666/BDCI_Padddle_5
5283d8b9d3db3eb828e401faf42b62f71770d0ff
[ "Apache-2.0" ]
1
2021-11-24T09:49:26.000Z
2021-11-24T09:49:26.000Z
# copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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...
36.738095
81
0.620436
6e29081b4f1bcd34cc71cc5a00d56e91e3693b82
1,832
py
Python
dist/Platform.app/Contents/Resources/lib/python3.7/wx/py/tests/test_interpreter.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
6
2021-07-26T14:21:25.000Z
2021-07-26T14:32:01.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/py/tests/test_interpreter.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
9
2021-03-18T23:10:27.000Z
2022-03-11T23:43:55.000Z
dist/Platform.app/Contents/Resources/lib/python3.7/wx/py/tests/test_interpreter.py
njalloul90/Genomics_Oncology_Platform
9bf6d0edca5df783f4e371fa1bc46b7b1576fe70
[ "MIT" ]
2
2019-03-11T05:06:49.000Z
2019-03-22T21:48:49.000Z
#!/usr/bin/env python __author__ = "Patrick K. O'Brien <pobrien@orbtech.com>" import unittest from wx.py import interpreter """ These unittest methods are preferred: ------------------------------------- self.assert_(expr, msg=None) self.assertEqual(first, second, msg=None) self.assertRaises(excClass, callableObj,...
25.444444
62
0.582424
6d65e55b35d6c50fd364f4b7234eb87be70280a0
2,161
py
Python
src/visualize/visualize_nturefined.py
Immocat/ACTOR
c7237e82e333bf2c57f7d8e12f27d0831233befc
[ "MIT" ]
164
2021-09-06T12:43:39.000Z
2022-03-29T02:33:38.000Z
src/visualize/visualize_nturefined.py
Immocat/ACTOR
c7237e82e333bf2c57f7d8e12f27d0831233befc
[ "MIT" ]
14
2021-09-17T00:42:24.000Z
2022-03-07T04:18:12.000Z
src/visualize/visualize_nturefined.py
Immocat/ACTOR
c7237e82e333bf2c57f7d8e12f27d0831233befc
[ "MIT" ]
27
2021-09-07T04:38:38.000Z
2022-03-29T00:37:10.000Z
import matplotlib.pyplot as plt import torch from src.datasets.get_dataset import get_dataset from src.utils.anim import plot_3d_motion import src.utils.fixseed # noqa plt.switch_backend('agg') def viz_ntu13(dataset, device): """ Generate & viz samples """ print("Visualization of the ntu13") from ...
31.318841
138
0.62795
d12ee5d8c8be93b34aa01ee940a4d5932c56a7e7
86,253
py
Python
pybit/__init__.py
jerrydboonstra/pybit
c4e945d43bf1c3d6134e80ea969d0dd195d124e1
[ "MIT" ]
118
2020-03-31T21:13:48.000Z
2022-03-26T15:23:05.000Z
pybit/__init__.py
msjahan47/pybit
c4e945d43bf1c3d6134e80ea969d0dd195d124e1
[ "MIT" ]
53
2020-04-04T00:34:29.000Z
2022-03-08T22:50:43.000Z
pybit/__init__.py
msjahan47/pybit
c4e945d43bf1c3d6134e80ea969d0dd195d124e1
[ "MIT" ]
48
2020-11-10T15:41:51.000Z
2022-03-18T19:49:32.000Z
# -*- coding: utf-8 -*- """ pybit ------------------------ pybit is a lightweight and high-performance API connector for the RESTful and WebSocket APIs of the Bybit exchange. Documentation can be found at https://github.com/verata-veritatis/pybit :copyright: (c) 2020-2021 verata-veritatis :license: MIT License """...
34.849697
125
0.550149
d327ef81625cd9c2487c8476d1180277ae2a8720
6,725
py
Python
osf_tests/management_commands/test_EGAP_import.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
628
2015-01-15T04:33:22.000Z
2022-03-30T06:40:10.000Z
osf_tests/management_commands/test_EGAP_import.py
gaybro8777/osf.io
30408511510a40bc393565817b343ef5fd76ab14
[ "Apache-2.0" ]
4,712
2015-01-02T01:41:53.000Z
2022-03-30T14:18:40.000Z
osf_tests/management_commands/test_EGAP_import.py
Johnetordoff/osf.io
de10bf249c46cede04c78f7e6f7e352c69e6e6b5
[ "Apache-2.0" ]
371
2015-01-12T16:14:08.000Z
2022-03-31T18:58:29.000Z
# encoding: utf-8 import os import shutil import pytest import responses HERE = os.path.dirname(os.path.abspath(__file__)) from osf_tests.factories import ( AuthUserFactory, NodeFactory, ApiOAuth2PersonalTokenFactory ) from osf.models import ( RegistrationSchema, ApiOAuth2PersonalToken ) from osf.m...
36.155914
128
0.625725
96e2ad47fceb41d887d116d9f5fba9befbc2a704
3,637
py
Python
load_data.py
cocoaaa/ml_gesture
a23dd7b9d13bbcb5a1ee049a7f1b026f81a4ba9d
[ "MIT" ]
null
null
null
load_data.py
cocoaaa/ml_gesture
a23dd7b9d13bbcb5a1ee049a7f1b026f81a4ba9d
[ "MIT" ]
null
null
null
load_data.py
cocoaaa/ml_gesture
a23dd7b9d13bbcb5a1ee049a7f1b026f81a4ba9d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Jun 16 14:26:09 2015 @author: LLP-admin """ import sys import pandas as pd from sklearn.preprocessing import StandardScaler def divideByClass(filepath, toSave = True): """ Input: a complete filepath toSave (bool parameter): if true, save each class file to curren...
37.494845
134
0.636514
93b45eb07fa4cbf662e5eba4013866afb34ed1c3
114,954
py
Python
kinow_client/apis/videos_api.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
1
2019-06-26T14:24:54.000Z
2019-06-26T14:24:54.000Z
kinow_client/apis/videos_api.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
null
null
null
kinow_client/apis/videos_api.py
kinow-io/kinow-python-sdk
4c1699a3c78048b84287bd049a669651a5b4e2d5
[ "Apache-2.0" ]
1
2018-02-01T10:08:40.000Z
2018-02-01T10:08:40.000Z
# coding: utf-8 """ Server API Reference for Server API (REST/Json) OpenAPI spec version: 1.4.58 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import sys import os import re # python 2 and python 3 compatibility library from six i...
44.607683
489
0.568888
9d7f76dcca0831dac26a2110d75072cc9f9470df
2,414
py
Python
validation/certs/scripts/chains/issuer-no-match-subject/generate.py
Werxis/usable-cert-validation
d166af6accbd1054f1ecd9db7a70600ca9c1bf8e
[ "MIT" ]
13
2019-07-11T11:41:14.000Z
2021-12-18T23:50:56.000Z
validation/certs/scripts/chains/issuer-no-match-subject/generate.py
Werxis/usable-cert-validation
d166af6accbd1054f1ecd9db7a70600ca9c1bf8e
[ "MIT" ]
115
2019-07-11T13:46:38.000Z
2022-03-08T18:28:31.000Z
validation/certs/scripts/chains/issuer-no-match-subject/generate.py
Werxis/usable-cert-validation
d166af6accbd1054f1ecd9db7a70600ca9c1bf8e
[ "MIT" ]
9
2020-05-05T17:11:17.000Z
2021-12-19T15:04:48.000Z
import asn1tools from utils import x509 from utils import io from utils import misc from utils import crypto VALID_ASN_FILE = 'valid.asn' EXPORTED_KEY_NAME = 'key.pem' EXPORTED_CHAIN_NAME = 'chain.pem' def main(): args = misc.parse_arguments() # Compile the ASN.1 specification asn = asn1tools.compile_fi...
34.485714
74
0.635046
b9589eaf4d72108188b155a7257a18baeb08c97f
863
py
Python
analysis/out_periods_elo_test.py
damienld/Tennis-predict
be5658d70bd4751bf9f11aa8ef51f1d77d77120a
[ "Apache-2.0" ]
null
null
null
analysis/out_periods_elo_test.py
damienld/Tennis-predict
be5658d70bd4751bf9f11aa8ef51f1d77d77120a
[ "Apache-2.0" ]
null
null
null
analysis/out_periods_elo_test.py
damienld/Tennis-predict
be5658d70bd4751bf9f11aa8ef51f1d77d77120a
[ "Apache-2.0" ]
null
null
null
import out_periods_elo import pandas as pd from datetime import datetime from brier_score import calc_brier class Test_Analyse_out_periods_predictions: def test_analyse_out_periods_predictions_1(self): dfWithElos = pd.read_csv("./results/dfWithElos.csv", parse_dates=["Date"]) # dont keep year 1 as...
45.421053
88
0.71263
9d09f30f85bfddc5e6dd1dbefcba7364494feb5a
38
py
Python
src/apps/devices/cubelib/__init__.py
ajintom/music_sync
0d7bc302502d28e4be4f0a0be1fc9bafb706f651
[ "MIT" ]
null
null
null
src/apps/devices/cubelib/__init__.py
ajintom/music_sync
0d7bc302502d28e4be4f0a0be1fc9bafb706f651
[ "MIT" ]
null
null
null
src/apps/devices/cubelib/__init__.py
ajintom/music_sync
0d7bc302502d28e4be4f0a0be1fc9bafb706f651
[ "MIT" ]
null
null
null
__all__ = ["emulator", "mywireframe"]
19
37
0.684211
ac61daa3c54495624b8682899688bd4fd36deaca
13,110
py
Python
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
api/config/h5Template/tanmuContent.py
jimbunny/wedding-invitation
a3648454e1105d9362f95d9f6e69055a7522e15b
[ "MIT" ]
null
null
null
tanmuContent = ''' <style> .barrage-input-tip { z-index: 1999; position: absolute; left: 10px; width: 179.883px; height: 35.7422px; line-height: 35.7422px; border-radius: 35.7422px; box-sizing: border-box; color: rgb(255, 255, 255); ...
39.017857
427
0.564607
8919c9ec891776336e37810e06435914b153bbfc
2,669
py
Python
train.py
Derolik666/im2latex
458a33f13e876389c54136c5103fe3718d2f91d1
[ "Apache-2.0" ]
2
2020-09-14T19:01:16.000Z
2020-09-14T19:45:48.000Z
train.py
Derolik666/im2latex
458a33f13e876389c54136c5103fe3718d2f91d1
[ "Apache-2.0" ]
null
null
null
train.py
Derolik666/im2latex
458a33f13e876389c54136c5103fe3718d2f91d1
[ "Apache-2.0" ]
1
2020-12-09T06:39:44.000Z
2020-12-09T06:39:44.000Z
import click from model.utils.data_generator import DataGenerator from model.img2seq import Img2SeqModel from model.utils.lr_schedule import LRSchedule from model.utils.general import Config from model.utils.text import Vocab from model.utils.image import greyscale @click.command() @click.option('--data', default="...
43.048387
87
0.626827
a2ec172f37543b2c0b960d4df4b0cb3a2ab750a9
12,779
py
Python
karix/models/inline_response2001.py
karixtech/karix-python
e9162d41249a639fdb35cba1263416d76d7b79c9
[ "MIT" ]
5
2019-02-27T07:22:40.000Z
2021-03-28T23:17:23.000Z
karix/models/inline_response2001.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
2
2019-12-03T13:55:07.000Z
2020-03-31T03:44:40.000Z
karix/models/inline_response2001.py
sendbee/karix-python
0f2d72a6949dce5d5db5d3f48b37d3b6fc65a50e
[ "MIT" ]
5
2019-04-22T17:33:29.000Z
2021-01-12T19:57:44.000Z
# coding: utf-8 """ karix api # Overview Karix API lets you interact with the Karix platform using an omnichannel messaging API. It also allows you to query your account, set up webhooks and buy phone numbers. # API and Clients Versioning Karix APIs are versioned using the format vX.Y where X is the major ...
88.131034
8,932
0.622193
d1df6116b6aae7ad456af6b519d7f5908a36c5b4
2,313
py
Python
scripts/deps.py
wolfgangwazzlestrauss/canvas
87d577ec2edfe1188d8ecd176acc5a284b1dc81f
[ "MIT" ]
null
null
null
scripts/deps.py
wolfgangwazzlestrauss/canvas
87d577ec2edfe1188d8ecd176acc5a284b1dc81f
[ "MIT" ]
2
2022-02-04T05:06:16.000Z
2022-02-04T05:06:27.000Z
scripts/deps.py
wolfgangwazzlestrauss/canvas
87d577ec2edfe1188d8ecd176acc5a284b1dc81f
[ "MIT" ]
null
null
null
"""Script for checking and updating package dependencies.""" import pathlib from typing import Any, Dict, List import requests import toml import typer app = typer.Typer(help=__doc__) # Mypy incorrectly thinks that toml.TomlEncoder is not defined. class CustomEncoder(toml.TomlEncoder): # type: ignore """Cus...
25.417582
79
0.629918
cba35b1a0a0f8dac5e3f747841af5d359686fd79
6,034
py
Python
fm/models/eventclassificationrule.py
xUndero/noc
9fb34627721149fcf7064860bd63887e38849131
[ "BSD-3-Clause" ]
1
2019-09-20T09:36:48.000Z
2019-09-20T09:36:48.000Z
fm/models/eventclassificationrule.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
fm/models/eventclassificationrule.py
ewwwcha/noc
aba08dc328296bb0e8e181c2ac9a766e1ec2a0bb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # --------------------------------------------------------------------- # EventClassificationRule model # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------...
34.678161
89
0.524196
0d9d0fc071ab858362508d459fffcda0a807ec04
8,401
py
Python
examples/vision/python_yolov4/image_processing.py
raramakr/AMDMIGraphX
83e7425367f6ce850ec28fe716fe7c23ce34c79f
[ "MIT" ]
72
2018-12-06T18:31:17.000Z
2022-03-30T15:01:02.000Z
examples/vision/python_yolov4/image_processing.py
raramakr/AMDMIGraphX
83e7425367f6ce850ec28fe716fe7c23ce34c79f
[ "MIT" ]
1,006
2018-11-30T16:32:33.000Z
2022-03-31T22:43:39.000Z
examples/vision/python_yolov4/image_processing.py
raramakr/AMDMIGraphX
83e7425367f6ce850ec28fe716fe7c23ce34c79f
[ "MIT" ]
36
2019-05-07T10:41:46.000Z
2022-03-28T15:59:56.000Z
# All pre- and post-processing methods used below are borrowed from the ONNX MOdel Zoo # https://github.com/onnx/models/tree/master/vision/object_detection_segmentation/yolov4 import numpy as np import cv2 from scipy import special import colorsys import random # this function is from tensorflow-yolov4-tflite/core/u...
35.748936
88
0.559576
43190b0457d4fa58556fe9e6cff0fb6df20dfa63
2,437
py
Python
rlpyt/ul/algos/ul_for_rl/replay_saver.py
traffic-lights/rlpyt
ec4689cddd55d98c037194685cfd6ca8e6785014
[ "MIT" ]
2,122
2019-07-02T13:19:10.000Z
2022-03-22T09:59:42.000Z
rlpyt/ul/algos/ul_for_rl/replay_saver.py
traffic-lights/rlpyt
ec4689cddd55d98c037194685cfd6ca8e6785014
[ "MIT" ]
206
2019-07-02T14:19:42.000Z
2022-02-15T02:34:28.000Z
rlpyt/ul/algos/ul_for_rl/replay_saver.py
traffic-lights/rlpyt
ec4689cddd55d98c037194685cfd6ca8e6785014
[ "MIT" ]
369
2019-07-02T13:38:28.000Z
2022-03-28T11:16:39.000Z
from rlpyt.algos.base import RlAlgorithm from rlpyt.replays.non_sequence.uniform import UniformReplayBuffer from rlpyt.replays.non_sequence.frame import UniformReplayFrameBuffer from rlpyt.utils.collections import namedarraytuple SamplesToBuffer = namedarraytuple("SamplesToBuffer", ["observation", "action", "re...
35.838235
90
0.681986
936f0683fc29c257e045c8e058d647034eb5d05b
1,327
py
Python
app/core/models.py
justinwkUKM/django-app-api
a55231ac1d938ff3678ff06d47cfdbcc5301f371
[ "MIT" ]
null
null
null
app/core/models.py
justinwkUKM/django-app-api
a55231ac1d938ff3678ff06d47cfdbcc5301f371
[ "MIT" ]
4
2021-03-19T01:28:34.000Z
2021-09-22T18:49:45.000Z
app/core/models.py
justinwkUKM/django-app-api
a55231ac1d938ff3678ff06d47cfdbcc5301f371
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, \ BaseUserManager, PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): '''creates and saves a new user''' if not email: raise ValueEr...
32.365854
76
0.683497
4ba82c71a030c321256ee495a4ac971c57e43edf
3,687
py
Python
dict_minimize/torch_api.py
anukaal/dict_minimize
df1934ddde4e64da88e39cc41e2e1a70f32488f3
[ "Apache-2.0" ]
64
2020-08-26T17:39:14.000Z
2022-03-30T09:50:26.000Z
dict_minimize/torch_api.py
anukaal/dict_minimize
df1934ddde4e64da88e39cc41e2e1a70f32488f3
[ "Apache-2.0" ]
10
2020-08-24T19:14:05.000Z
2021-09-29T18:31:55.000Z
dict_minimize/torch_api.py
anukaal/dict_minimize
df1934ddde4e64da88e39cc41e2e1a70f32488f3
[ "Apache-2.0" ]
5
2021-01-13T13:50:34.000Z
2022-03-21T01:02:28.000Z
from collections import OrderedDict from typing import Callable, Optional, Sequence import numpy as np import torch from dict_minimize.core._scipy import _minimize def _get_dtype(X): dtype = X.dtype return dtype def _from_np(X, dtype): assert X.dtype.kind == "f" dtype_ = X.dtype X = np.asarra...
36.87
115
0.643341
cfeb4691eff89c3c33a147b0da65451d28aebc18
442
py
Python
azusa/__tests__/test_curve_probabilities.py
ihowell/mtgcurve
d6b2f59be257e84025e0322b10f957418fa493f1
[ "MIT" ]
null
null
null
azusa/__tests__/test_curve_probabilities.py
ihowell/mtgcurve
d6b2f59be257e84025e0322b10f957418fa493f1
[ "MIT" ]
6
2021-03-18T23:25:11.000Z
2021-03-27T02:05:47.000Z
azusa/__tests__/test_curve_probabilities.py
ihowell/mtgcurve
d6b2f59be257e84025e0322b10f957418fa493f1
[ "MIT" ]
null
null
null
from azusa.curve_probabilities import calculate_cmc_probs, display_prob_table def test_artifact_probs(): num_lands = 4 num_other = 7 mana_producers = {'Mana Crypt': 1, 'Sol Ring': 1} probs = calculate_cmc_probs(len(mana_producers) + num_lands + num_other, mana_producer...
29.466667
77
0.588235
7de919af6fb9fa507282f40617e7134bbb73f2a7
37,779
py
Python
packages/netsuite-adapter/scripts/types_generator.py
tomermevorach/salto
f159518d52e62075f9720a8d2ce83918e6243304
[ "Apache-2.0" ]
null
null
null
packages/netsuite-adapter/scripts/types_generator.py
tomermevorach/salto
f159518d52e62075f9720a8d2ce83918e6243304
[ "Apache-2.0" ]
null
null
null
packages/netsuite-adapter/scripts/types_generator.py
tomermevorach/salto
f159518d52e62075f9720a8d2ce83918e6243304
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from selenium import webdriver import os import pyotp import re import sys import time import logging logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s', level=logging.INFO) SCRIPT_DIR = os.path.dirname(__file__) SRC_DIR = os.path.join(SCRIPT_DIR, '../src/') TYPES_DIR = os.path.joi...
56.9819
345
0.774557
c5e1f3102d15fec97688f3c0082a4dde4344e558
2,785
py
Python
petastorm/tests/test_metadata_read.py
VivekPanyam/petastorm
d8dcee4541f26d58195e9cb119ac5acf53d0a58d
[ "Apache-2.0" ]
null
null
null
petastorm/tests/test_metadata_read.py
VivekPanyam/petastorm
d8dcee4541f26d58195e9cb119ac5acf53d0a58d
[ "Apache-2.0" ]
null
null
null
petastorm/tests/test_metadata_read.py
VivekPanyam/petastorm
d8dcee4541f26d58195e9cb119ac5acf53d0a58d
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-2018 Uber Technologies, 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 ...
42.846154
119
0.725314
ad2922b20dc00412bdaf075ba02292be7edc0dc5
10,224
py
Python
ladim_plugins/sedimentation/test_ibm.py
pnsaevik/ladim_plugins
2097a451346e2517e50f735be8b31862f24e64e2
[ "MIT" ]
null
null
null
ladim_plugins/sedimentation/test_ibm.py
pnsaevik/ladim_plugins
2097a451346e2517e50f735be8b31862f24e64e2
[ "MIT" ]
null
null
null
ladim_plugins/sedimentation/test_ibm.py
pnsaevik/ladim_plugins
2097a451346e2517e50f735be8b31862f24e64e2
[ "MIT" ]
1
2020-07-09T08:18:36.000Z
2020-07-09T08:18:36.000Z
import numpy as np from ladim_plugins.sedimentation import ibm import pytest class Stub: def __init__(self, **kwargs): self._dic = kwargs def __getattr__(self, item): return self._dic[item] class Test_update: @staticmethod def gsf(num, hvel=0, wvel=0, dt=1): zr = np.zeros(nu...
30.338279
82
0.548611
7b363bb14890a1c746ac9f5c1ce7508c007e2dd7
2,294
py
Python
networkapi/equipamento/resource/EquipmentTypeGetAllResource.py
brunodevel/GloboNetworkAPI
ea8eebc0337636f9250e628cc392514934db8edd
[ "Apache-2.0" ]
null
null
null
networkapi/equipamento/resource/EquipmentTypeGetAllResource.py
brunodevel/GloboNetworkAPI
ea8eebc0337636f9250e628cc392514934db8edd
[ "Apache-2.0" ]
null
null
null
networkapi/equipamento/resource/EquipmentTypeGetAllResource.py
brunodevel/GloboNetworkAPI
ea8eebc0337636f9250e628cc392514934db8edd
[ "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 "Lic...
38.233333
104
0.710549
71eb9e5a7ff4709067eb66e4dd361c8d02d86e3f
178
py
Python
doc/CyberSecurity/Modern_Cryptography/Enigma/Python_Enigma/ReflectorA.py
tanducmai/.dotfiles
13cad9bc7fcecff6108eb5df34635d4748712532
[ "Unlicense" ]
null
null
null
doc/CyberSecurity/Modern_Cryptography/Enigma/Python_Enigma/ReflectorA.py
tanducmai/.dotfiles
13cad9bc7fcecff6108eb5df34635d4748712532
[ "Unlicense" ]
null
null
null
doc/CyberSecurity/Modern_Cryptography/Enigma/Python_Enigma/ReflectorA.py
tanducmai/.dotfiles
13cad9bc7fcecff6108eb5df34635d4748712532
[ "Unlicense" ]
null
null
null
#Reflector A alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" reflector = "EJMZALYXVBWFCRQUONTSPIKHGD" def reflect(letter): spot = alphabet.find(letter) return reflector[spot]
17.8
40
0.764045
abe1efcfb7137a47a36aba247b9e4b259b082ea1
3,336
py
Python
venv/Lib/site-packages/networkx/algorithms/community/tests/test_centrality.py
Richoor/HEFT
8422bfc5e9abf132c409a0ae299cbde29eb6e5fc
[ "BSD-3-Clause" ]
4
2018-10-19T04:36:20.000Z
2020-02-13T16:14:09.000Z
venv/Lib/site-packages/networkx/algorithms/community/tests/test_centrality.py
Richoor/HEFT
8422bfc5e9abf132c409a0ae299cbde29eb6e5fc
[ "BSD-3-Clause" ]
null
null
null
venv/Lib/site-packages/networkx/algorithms/community/tests/test_centrality.py
Richoor/HEFT
8422bfc5e9abf132c409a0ae299cbde29eb6e5fc
[ "BSD-3-Clause" ]
1
2018-08-23T14:45:15.000Z
2018-08-23T14:45:15.000Z
# -*- coding: utf-8 -*- # test_centrality.py - unit tests for algorithms.community.centrality # # Copyright 2015, 2016 NetworkX developers. # # This file is part of NetworkX. # # NetworkX is distributed under a BSD license; see LICENSE.txt for more # information. """Unit tests for the :mod:`networkx.algorithms.communit...
35.870968
82
0.61301
625064129186841687f03065c106ae96463aeb08
3,974
py
Python
alipay/aop/api/request/AlipayUserCertdocSyncRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayUserCertdocSyncRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayUserCertdocSyncRequest.py
articuly/alipay-sdk-python-all
0259cd28eca0f219b97dac7f41c2458441d5e7a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import simplejson as json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayUserCertdocSyncModel import AlipayUserCertdocSyncModel class AlipayUserCertdocSyncRequest(object): def __in...
27.406897
166
0.643181
7ee13083aaf65d1936a1919ade839d3f576c28b7
12,607
py
Python
pycas/cas/core/CasFactory.py
dkpro/dkpro-pycas
caeeea1613a689ce51c14c11cbc285dfe7af6521
[ "Apache-2.0" ]
5
2017-08-18T04:00:08.000Z
2018-06-01T12:57:21.000Z
pycas/cas/core/CasFactory.py
dkpro/dkpro-pycas
caeeea1613a689ce51c14c11cbc285dfe7af6521
[ "Apache-2.0" ]
7
2018-05-14T10:44:47.000Z
2019-11-04T12:13:02.000Z
pycas/cas/core/CasFactory.py
dkpro/dkpro-pycas
caeeea1613a689ce51c14c11cbc285dfe7af6521
[ "Apache-2.0" ]
4
2018-03-23T15:28:39.000Z
2019-03-26T14:52:11.000Z
''' Created on Jan 23, 2017 @author: Dibyojyoti ''' from pycas.cas.parse.CasXmiParser import CasXmiParser from pycas.cas.core.CAS import CAS from pycas.type.cas.CAS_Type import CAS_Type from pycas.type.cas.TypeSystemFactory import TypeSystemFactory from pycas.type.cas.TypeDescription import TypeDescription class CasF...
53.876068
138
0.555009
7f1842197c18298ae10e00ef469c0516703864bd
5,209
py
Python
tests/test_crop_foregroundd.py
benduffy1/MONAI
046e625b09262261373d7b8039fb652547201368
[ "Apache-2.0" ]
3
2020-06-22T20:59:14.000Z
2021-04-09T21:24:45.000Z
tests/test_crop_foregroundd.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
null
null
null
tests/test_crop_foregroundd.py
Borda/MONAI
e0db5a564225a7cb62e7a23df97267019006302f
[ "Apache-2.0" ]
1
2020-06-22T19:22:59.000Z
2020-06-22T19:22:59.000Z
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
36.426573
119
0.444231
620117126deef89eb70e8e531a68e9183c97cb7e
9,349
py
Python
Script_Extraction_API/quadrillage_recurssif_opti.py
CazabetLyon1/lyon_resto_2018_Autumn
2d9f495b1fdcea3e9f9e0945baf4d49f24b17de4
[ "DOC" ]
1
2020-10-25T08:21:19.000Z
2020-10-25T08:21:19.000Z
Script_Extraction_API/quadrillage_recurssif_opti.py
CazabetLyon1/lyon_resto_2018_Autumn
2d9f495b1fdcea3e9f9e0945baf4d49f24b17de4
[ "DOC" ]
null
null
null
Script_Extraction_API/quadrillage_recurssif_opti.py
CazabetLyon1/lyon_resto_2018_Autumn
2d9f495b1fdcea3e9f9e0945baf4d49f24b17de4
[ "DOC" ]
null
null
null
from math import * import copy import json import time from geopy import distance import matplotlib.pyplot as plt import numpy as np #liste en variable globale qui contient les coordonnées et le rayon associé de tout les appels qu'il faut faire pour couvrir la meme zone que l'ancien json donné l=[] NB_MAX_RES = 30 #fon...
32.688811
331
0.683603
3dcf6d8300d04b5e3276145e21d9eca8843dadf7
42,004
py
Python
saleor/graphql/product/tests/test_category.py
nestfiy/saleor
6fce3bc5c0ca72ac28db99553e6d2b49249c6dac
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/product/tests/test_category.py
nestfiy/saleor
6fce3bc5c0ca72ac28db99553e6d2b49249c6dac
[ "CC-BY-4.0" ]
null
null
null
saleor/graphql/product/tests/test_category.py
nestfiy/saleor
6fce3bc5c0ca72ac28db99553e6d2b49249c6dac
[ "CC-BY-4.0" ]
null
null
null
import os from unittest.mock import Mock, patch import graphene import pytest from django.utils.functional import SimpleLazyObject from django.utils.text import slugify from graphql_relay import to_global_id from ....product.error_codes import ProductErrorCode from ....product.models import Category, Product, Product...
32.236378
88
0.654842
cb30382a453e8230414a67ff376a0ff8b1f918a1
1,350
py
Python
model_training/unet_vae/trainer.py
ostapViniavskyi/brain_tumor_segmentation
c367155bd8eb3e4f950da824385641d2dc8c063a
[ "MIT" ]
7
2019-12-18T20:07:03.000Z
2021-04-28T09:19:11.000Z
model_training/unet_vae/trainer.py
ostapViniavskyi/brain_tumor_segmentation
c367155bd8eb3e4f950da824385641d2dc8c063a
[ "MIT" ]
null
null
null
model_training/unet_vae/trainer.py
ostapViniavskyi/brain_tumor_segmentation
c367155bd8eb3e4f950da824385641d2dc8c063a
[ "MIT" ]
1
2022-01-17T11:21:50.000Z
2022-01-17T11:21:50.000Z
import tqdm import numpy as np from model_training.unet_addnet.trainer import Trainer class TrainerVAE(Trainer): def __init__(self, model, vae, config, train_dl, val_dl, device): super(TrainerVAE, self).__init__(model, config, train_dl, val_dl, device) self.vae = vae def _init_params(self): ...
30
81
0.603704
f3104cd45a6b2360c64481838cb49d7da68b8a43
1,234
py
Python
odbx/api/views/alarms.py
kilinger/odbx
78fa0ed60db4debb9398b9e197961c7a758dd9f4
[ "BSD-3-Clause" ]
null
null
null
odbx/api/views/alarms.py
kilinger/odbx
78fa0ed60db4debb9398b9e197961c7a758dd9f4
[ "BSD-3-Clause" ]
null
null
null
odbx/api/views/alarms.py
kilinger/odbx
78fa0ed60db4debb9398b9e197961c7a758dd9f4
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from rest_framework import viewsets from odbx.alarms.filters import AlarmMenuFilter from odbx.alarms.models import AlarmMenu from odbx.alarms.serializers import AlarmMenuSerializer class AlarmViewSet(viewsets.ModelViewSet): queryset = AlarmMenu.objects.all() serializer_class = AlarmMenu...
36.294118
86
0.690438
c4eddad37eeefabcff7e096394f351ac9aceb65c
5,497
py
Python
tests/test_config_builder.py
TheoLaudatQM/py-qua-tools
60c005c651148bafee8f437ce1be69d2340a265b
[ "BSD-3-Clause" ]
null
null
null
tests/test_config_builder.py
TheoLaudatQM/py-qua-tools
60c005c651148bafee8f437ce1be69d2340a265b
[ "BSD-3-Clause" ]
null
null
null
tests/test_config_builder.py
TheoLaudatQM/py-qua-tools
60c005c651148bafee8f437ce1be69d2340a265b
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np from qualang_tools.config.configuration import * from qualang_tools.config.components import * from qualang_tools.config.builder import ConfigBuilder @pytest.fixture def config_resonator(): cont = Controller("con1") res = ReadoutResonator( "res1", outputs=[con...
33.723926
88
0.616882
b6066628072ec200299de963f6a63afc059b70be
2,239
py
Python
tests/demo/demoproject/settings.py
saxix/django-adminfilters
14fd8dba6629752e64eccc5bec651eefb2c6c701
[ "BSD-1-Clause" ]
17
2015-03-03T23:15:31.000Z
2022-03-02T16:55:18.000Z
tests/demo/demoproject/settings.py
saxix/django-adminfilters
14fd8dba6629752e64eccc5bec651eefb2c6c701
[ "BSD-1-Clause" ]
9
2015-11-10T15:30:27.000Z
2022-02-12T20:55:39.000Z
tests/demo/demoproject/settings.py
saxix/django-adminfilters
14fd8dba6629752e64eccc5bec651eefb2c6c701
[ "BSD-1-Clause" ]
14
2015-04-07T13:52:42.000Z
2022-02-03T17:54:42.000Z
# Django settings for demoproject project. import os import sys here = os.path.dirname(__file__) sys.path.append(os.path.abspath(os.path.join(here, '..', '..'))) DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'ENGINE': '...
29.460526
78
0.662349
dc848883e0ae2b00907882d275eb8d0a7b2c9da8
2,866
py
Python
warbler/configuration.py
heckj/warbler
9f79ce4d279a3c166d9b8d244b645d74124eee00
[ "Apache-2.0" ]
3
2020-09-30T05:37:09.000Z
2021-11-06T07:01:12.000Z
warbler/configuration.py
heckj/warbler
9f79ce4d279a3c166d9b8d244b645d74124eee00
[ "Apache-2.0" ]
null
null
null
warbler/configuration.py
heckj/warbler
9f79ce4d279a3c166d9b8d244b645d74124eee00
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 Joseph Heck. See LICENSE import os # import shutil from pathlib import Path as P import configparser import logging logger = logging.getLogger(__name__) sbg_config_dir = P("heckj", "warbler") # https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html xdg_config_dir = { ...
33.717647
117
0.652477
335d2287ae2481c3d4ae75b92b323b2c454c270a
706
py
Python
blamepipeline/tokenizers/__init__.py
Shuailong/BlamePipeline
bbd508dd0afc2e2c579f6afea5a3acd4c5c47956
[ "MIT" ]
5
2019-02-12T14:47:40.000Z
2021-10-24T00:39:05.000Z
blamepipeline/tokenizers/__init__.py
Shuailong/BlamePipeline
bbd508dd0afc2e2c579f6afea5a3acd4c5c47956
[ "MIT" ]
1
2020-08-10T10:16:29.000Z
2020-08-10T10:16:29.000Z
blamepipeline/tokenizers/__init__.py
Shuailong/BlamePipeline
bbd508dd0afc2e2c579f6afea5a3acd4c5c47956
[ "MIT" ]
3
2019-02-12T14:48:01.000Z
2022-02-07T15:27:09.000Z
#!/usr/bin/env python3 # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import os DEFAULTS = { 'corenlp_classpath': os.getenv('CLASSPATH') } def set_default(key, value): g...
19.081081
61
0.709632
b36868ccced89a9828e1f3ed666c963011828486
9,517
py
Python
generate_data/task2_data_quiz.py
shshen-closer/TOP1-for-Answer-Prediction-task-2-in-the-NeurIPS-2020-Education-Challenge
2add1704909a46c443681d8e1701ee54ddc43039
[ "Apache-2.0" ]
3
2021-01-18T15:02:12.000Z
2021-05-16T10:47:33.000Z
generate_data/task2_data_quiz.py
shshen-closer/TOP1-for-Answer-Prediction-task-2-in-the-NeurIPS-2020-Education-Challenge
2add1704909a46c443681d8e1701ee54ddc43039
[ "Apache-2.0" ]
null
null
null
generate_data/task2_data_quiz.py
shshen-closer/TOP1-for-Answer-Prediction-task-2-in-the-NeurIPS-2020-Education-Challenge
2add1704909a46c443681d8e1701ee54ddc43039
[ "Apache-2.0" ]
2
2021-02-22T01:24:54.000Z
2022-03-12T00:29:17.000Z
import numpy as np import pandas as pd from tqdm import tqdm import random import json #df_train = pd.read_csv('train_data/train_task_1_2.csv') pd.set_option('display.float_format',lambda x : '%.2f' % x) np.set_printoptions(suppress=True) seq_len = 10 train_all = pd.read_csv('../data_preproces...
38.068
102
0.450772
14caa73b91ed1abad6eb9acf99129977013df021
4,917
py
Python
pw_console/py/help_window_test.py
Robor-Electronics/pigweed
f0a3564dc72361e9e0e4af77ababc8114e7c4763
[ "Apache-2.0" ]
null
null
null
pw_console/py/help_window_test.py
Robor-Electronics/pigweed
f0a3564dc72361e9e0e4af77ababc8114e7c4763
[ "Apache-2.0" ]
null
null
null
pw_console/py/help_window_test.py
Robor-Electronics/pigweed
f0a3564dc72361e9e0e4af77ababc8114e7c4763
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.73125
79
0.570673
771f22eeb9ca175037e9e72bdb034cfc5e59a661
3,349
py
Python
agent/agent/settings.py
parker-pu/octopus-plus
8533f9c8a5b895e8851d2bece408864cc12c01b2
[ "Apache-2.0" ]
null
null
null
agent/agent/settings.py
parker-pu/octopus-plus
8533f9c8a5b895e8851d2bece408864cc12c01b2
[ "Apache-2.0" ]
null
null
null
agent/agent/settings.py
parker-pu/octopus-plus
8533f9c8a5b895e8851d2bece408864cc12c01b2
[ "Apache-2.0" ]
null
null
null
# Scrapy settings for agent project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middleware.h...
33.49
103
0.768289
50ea575a79ffa4a58b582885aefe89646e2ac670
2,297
py
Python
pyhole/core/config.py
jk0/pyhole
67ea7212fbbb8731a5cf649168b296d2dcd04059
[ "Apache-2.0" ]
12
2016-01-29T14:47:41.000Z
2020-03-11T04:09:14.000Z
pyhole/core/config.py
jk0/pyhole
67ea7212fbbb8731a5cf649168b296d2dcd04059
[ "Apache-2.0" ]
24
2016-01-13T18:50:33.000Z
2016-10-07T15:39:06.000Z
pyhole/core/config.py
jk0/pyhole
67ea7212fbbb8731a5cf649168b296d2dcd04059
[ "Apache-2.0" ]
9
2015-01-10T18:18:30.000Z
2016-05-21T01:37:00.000Z
# Copyright 2010-2011 Josh Kearney # # 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 agre...
33.289855
79
0.612538
9ae6226c29396d38b9178faf335f0e9ff21ca1e8
3,007
py
Python
kittycad/api/file/get_file_conversion.py
KittyCAD/kittycad.py
7f7460d366dbd55fce50e5faa4a032b62e4baae4
[ "MIT" ]
1
2022-02-06T05:07:25.000Z
2022-02-06T05:07:25.000Z
kittycad/api/file/get_file_conversion.py
KittyCAD/kittycad.py
7f7460d366dbd55fce50e5faa4a032b62e4baae4
[ "MIT" ]
7
2022-02-04T11:29:25.000Z
2022-03-07T01:37:26.000Z
kittycad/api/file/get_file_conversion.py
KittyCAD/kittycad.py
7f7460d366dbd55fce50e5faa4a032b62e4baae4
[ "MIT" ]
null
null
null
from typing import Any, Dict, Optional, Union, cast import httpx from ...client import Client from ...models.file_conversion_with_output import FileConversionWithOutput from ...models.error import Error from ...types import Response def _get_kwargs( id: str, *, client: Client, ) -> Dict[str, Any]: url = "{}/file...
25.922414
125
0.745261
fa42cbeb9cd3faf5fdf8c1ae734320bbbb6234f9
102,341
py
Python
tests/validation/cattlevalidationtest/core/common_fixtures.py
bmdepesa/validation-tests
23e7ab95ce76744483a0657f790b42a88a93436d
[ "Apache-2.0" ]
7
2015-11-18T17:43:08.000Z
2021-07-14T09:48:18.000Z
tests/validation/cattlevalidationtest/core/common_fixtures.py
bmdepesa/validation-tests
23e7ab95ce76744483a0657f790b42a88a93436d
[ "Apache-2.0" ]
175
2015-07-09T18:41:24.000Z
2021-06-10T21:23:27.000Z
tests/validation/cattlevalidationtest/core/common_fixtures.py
bmdepesa/validation-tests
23e7ab95ce76744483a0657f790b42a88a93436d
[ "Apache-2.0" ]
25
2015-08-08T04:54:24.000Z
2021-05-25T21:10:37.000Z
from cattle import from_env import pytest import random import requests import os import time import logging import paramiko import inspect import re import json from docker import Client logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) TEST_IMAGE_UUID = os.environ.get('CATTL...
35.448909
79
0.607928
1fd3b671a467d34c73d236d968add37499b665be
5,764
py
Python
maskrcnn_benchmark/modeling/rpn/rpn.py
huajianni666/maskrcnn-benchmark
8543f26c44a8f0a4d178548bd08471bf53498381
[ "MIT" ]
2
2019-02-12T10:02:17.000Z
2019-02-12T14:42:08.000Z
maskrcnn_benchmark/modeling/rpn/rpn.py
huajianni666/maskrcnn-benchmark
8543f26c44a8f0a4d178548bd08471bf53498381
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/rpn/rpn.py
huajianni666/maskrcnn-benchmark
8543f26c44a8f0a4d178548bd08471bf53498381
[ "MIT" ]
1
2020-03-27T11:21:10.000Z
2020-03-27T11:21:10.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch import torch.nn.functional as F from torch import nn import pdb from maskrcnn_benchmark.modeling import registry from maskrcnn_benchmark.modeling.box_coder import BoxCoder from .loss import make_rpn_loss_evaluator from .anchor_generato...
40.027778
86
0.650416
4585b0fcd22acbbab59888eef94f5bf829f1b747
5,140
py
Python
packages/M2Crypto-0.21.1/demo/medusa/default_handler.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
packages/M2Crypto-0.21.1/demo/medusa/default_handler.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
6
2021-03-31T19:21:50.000Z
2022-01-13T01:46:09.000Z
packages/M2Crypto-0.21.1/demo/medusa/default_handler.py
RaphaelPrevost/Back2Shops
5f2d369e82fe2a7b9b3a6c55782319b23d142dfd
[ "CECILL-B" ]
null
null
null
# -*- Mode: Python; tab-width: 4 -*- # # Author: Sam Rushing <rushing@nightmare.com> # Copyright 1997 by Sam Rushing # All Rights Reserved. # # standard python modules import os import re import posixpath import stat import string import time # medusa modules import http_date import http_server import mime_type...
23.796296
73
0.677432
e6d2a9ad9bc8376df7184e244bdec40a3ca9c6ac
1,999
py
Python
ssseg/modules/datasets/lip.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
1
2021-05-28T06:42:37.000Z
2021-05-28T06:42:37.000Z
ssseg/modules/datasets/lip.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
ssseg/modules/datasets/lip.py
skydengyao/sssegmentation
606b05983fa967bb3c98d1120f44dfc516532dad
[ "MIT" ]
null
null
null
''' Function: load the LIP dataset Author: Zhenchao Jin ''' import os import pandas as pd from .base import * '''LIP dataset''' class LIPDataset(BaseDataset): num_classes = 20 classnames = ['__background__', 'hat', 'hair', 'glove', 'sunglasses', 'upperclothes', 'dress', 'coat', 'soc...
43.456522
99
0.624312
0f440debf44f018eccc4e398418786361a1994de
8,287
py
Python
plata/payment/modules/ogone.py
fsw/plata
c704f2626da1c233e5f915c34b95d576915fe607
[ "BSD-3-Clause" ]
null
null
null
plata/payment/modules/ogone.py
fsw/plata
c704f2626da1c233e5f915c34b95d576915fe607
[ "BSD-3-Clause" ]
null
null
null
plata/payment/modules/ogone.py
fsw/plata
c704f2626da1c233e5f915c34b95d576915fe607
[ "BSD-3-Clause" ]
null
null
null
""" Payment module for Ogone integration Needs the following settings to work correctly:: OGONE = { 'PSPID': 'your_shop_id', 'LIVE': True, # Or False 'SHA1_IN': 'yourhash', 'SHA1_OUT': 'yourotherhash', } """ from decimal import Decimal from hashlib import sha1 import local...
35.719828
90
0.615663
85cd31aed0af562c9e93ede5068ff14d43328b4f
5,263
py
Python
foundation_setting_out_rev01.py
suben-mk/FoundationSetting-Out-Rev01
e4b47bba88e2e33b81486350197e02203fe79159
[ "MIT" ]
null
null
null
foundation_setting_out_rev01.py
suben-mk/FoundationSetting-Out-Rev01
e4b47bba88e2e33b81486350197e02203fe79159
[ "MIT" ]
null
null
null
foundation_setting_out_rev01.py
suben-mk/FoundationSetting-Out-Rev01
e4b47bba88e2e33b81486350197e02203fe79159
[ "MIT" ]
null
null
null
# Foundation Setting Out Program Rev.01 import numpy as np import csv ################################## Function List ################################## # Convert Angle : แปลงมุม (Credit Prajuab Riabroy's Blog) PI = np.pi DEG2RAD = PI / 180.0 RAD2DEG= 180.0 / PI # แปลง degree > deg,min,sec (Credit Praj...
41.769841
151
0.586358
da63931547da9d005f57cf986aad1ad1f8080914
558
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/SUN/slice_accum.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/SUN/slice_accum.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/SUN/slice_accum.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
34.875
113
0.775986
a2f4f8abdf7783427ea7ed9d939e9b0f5e2670f9
12,856
py
Python
recognition/triplet_loss.py
chicm/landmark
6cb2672e9a042050721f9e557b9827316b205bc2
[ "Apache-2.0" ]
null
null
null
recognition/triplet_loss.py
chicm/landmark
6cb2672e9a042050721f9e557b9827316b205bc2
[ "Apache-2.0" ]
null
null
null
recognition/triplet_loss.py
chicm/landmark
6cb2672e9a042050721f9e557b9827316b205bc2
[ "Apache-2.0" ]
1
2020-01-20T13:42:29.000Z
2020-01-20T13:42:29.000Z
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ import torch from torch import nn from torch.autograd import Variable def normalize(x, axis=-1): """Normalizing to unit length along the specified dimension. Args: x: pytorch Variable Returns: x: pytorch Variable,...
34.282667
83
0.604698
7c54b5d7e0d7c3159ef91378a80cb5d9bfb8e43e
38
py
Python
samreetira2/__init__.py
samreetira123/samreetira2
38004bbfe9f698407ad816b29f7ce728c3472f58
[ "MIT" ]
null
null
null
samreetira2/__init__.py
samreetira123/samreetira2
38004bbfe9f698407ad816b29f7ce728c3472f58
[ "MIT" ]
null
null
null
samreetira2/__init__.py
samreetira123/samreetira2
38004bbfe9f698407ad816b29f7ce728c3472f58
[ "MIT" ]
null
null
null
from samreetira2.samree import Samree
19
37
0.868421
a1d98ddc7c88635a63b6c5ee293fd490d5cd7b51
22,776
py
Python
fastybird_fb_bus_connector/connector.py
FastyBird/fb-bus-connector-plugin
71568874243578a37a01bd3f0cbb3306c331d11f
[ "Apache-2.0" ]
null
null
null
fastybird_fb_bus_connector/connector.py
FastyBird/fb-bus-connector-plugin
71568874243578a37a01bd3f0cbb3306c331d11f
[ "Apache-2.0" ]
null
null
null
fastybird_fb_bus_connector/connector.py
FastyBird/fb-bus-connector-plugin
71568874243578a37a01bd3f0cbb3306c331d11f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # Copyright 2021. FastyBird s.r.o. # # 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 re...
40.311504
118
0.587592
91866e298c1a32f1ab98b7bcf43edf35ce6d8158
3,428
py
Python
Chapter_3/visits_microservice/visits_microservice_stack.py
jonahjon/spring-petclinic
df5213dc715c88679bd290b07d4461ac1b511ffa
[ "Apache-2.0" ]
null
null
null
Chapter_3/visits_microservice/visits_microservice_stack.py
jonahjon/spring-petclinic
df5213dc715c88679bd290b07d4461ac1b511ffa
[ "Apache-2.0" ]
null
null
null
Chapter_3/visits_microservice/visits_microservice_stack.py
jonahjon/spring-petclinic
df5213dc715c88679bd290b07d4461ac1b511ffa
[ "Apache-2.0" ]
null
null
null
from aws_cdk import ( aws_ec2 as ec2, aws_ecs as ecs, aws_rds as rds, aws_ecs as ecs, aws_ecr_assets as ecr_assets, aws_autoscaling as autoscaling, aws_elasticloadbalancingv2 as elbv2, core ) from random import randint class VisitsMicroserviceStack(core.Stack): def __init__(self, scope: core.Construct, ...
32.647619
127
0.556301
0b3a02c58998543f31103df321e9653c13fc9ccd
429
py
Python
checkout/migrations/0003_alter_order_country.py
sanson0/obelisk_jewellery
27f811f5d163c6fd6336fba56d7f54d5570fc7a8
[ "PostgreSQL" ]
null
null
null
checkout/migrations/0003_alter_order_country.py
sanson0/obelisk_jewellery
27f811f5d163c6fd6336fba56d7f54d5570fc7a8
[ "PostgreSQL" ]
null
null
null
checkout/migrations/0003_alter_order_country.py
sanson0/obelisk_jewellery
27f811f5d163c6fd6336fba56d7f54d5570fc7a8
[ "PostgreSQL" ]
1
2021-10-30T11:10:51.000Z
2021-10-30T11:10:51.000Z
# Generated by Django 3.2.7 on 2021-10-01 11:31 from django.db import migrations import django_countries.fields class Migration(migrations.Migration): dependencies = [ ('checkout', '0002_auto_20210928_1357'), ] operations = [ migrations.AlterField( model_name='order', ...
21.45
69
0.634033
2e7adbddb57cc23200e1d042adbccf44d404f3b1
253
py
Python
commands/newClass.py
AsherSeiling/jvclass
6a279145165994bfb2e37dee7cac626e6b0526ba
[ "MIT" ]
null
null
null
commands/newClass.py
AsherSeiling/jvclass
6a279145165994bfb2e37dee7cac626e6b0526ba
[ "MIT" ]
null
null
null
commands/newClass.py
AsherSeiling/jvclass
6a279145165994bfb2e37dee7cac626e6b0526ba
[ "MIT" ]
null
null
null
import os import sys def new_class(args): name = str(args[2].split(".")[1]) codetamplate = [f"public class {name}" + "{", "}"] os.system(f"touch {args[2]}.java") files = open(f"{args[2]}.java", "w+") for i in codetamplate: files.write(f"{i}\n")
23
51
0.604743
3d7052cb94e66ff3ef323488d2c7fa93e3345859
5,364
py
Python
deep_sort/tracker.py
weishengtoh/computervision_assignment
98964e765527956b15ac2cf075914956ea4e7ec4
[ "Apache-2.0" ]
null
null
null
deep_sort/tracker.py
weishengtoh/computervision_assignment
98964e765527956b15ac2cf075914956ea4e7ec4
[ "Apache-2.0" ]
null
null
null
deep_sort/tracker.py
weishengtoh/computervision_assignment
98964e765527956b15ac2cf075914956ea4e7ec4
[ "Apache-2.0" ]
null
null
null
# vim: expandtab:ts=4:sw=4 from __future__ import absolute_import import numpy as np from . import kalman_filter from . import linear_assignment from . import iou_matching from .track import Track, TrackState class Tracker: """ This is the multi-target tracker. Parameters ---------- metric : nn_m...
37.774648
80
0.645041
1fb20d685fd94a6e1a5bab513ab753ec67eae398
3,059
py
Python
tests/python/test_local_atomics.py
ppwwyyxx/taichi
ef0c3367bb06ad78b3457b8f93b5370f14b1d9c4
[ "MIT" ]
1
2020-05-19T06:21:39.000Z
2020-05-19T06:21:39.000Z
tests/python/test_local_atomics.py
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
null
null
null
tests/python/test_local_atomics.py
zf38473013/taichi
ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb
[ "MIT" ]
null
null
null
import taichi as ti @ti.all_archs def test_explicit_local_atomic_add(): A = ti.var(ti.f32, shape=()) @ti.kernel def func(): a = 0 for i in range(10): ti.atomic_add(a, i) A[None] = a func() assert A[None] == 45 @ti.all_archs def test_implicit_local_atomic_add...
16.625
44
0.505721
7ae2ed5d7d3c943ab18dac8ce2415b59e77f2b3e
320
py
Python
25 1000-digit Fibonacci number.py
Polar1ty/euler_problems
bc1cd917d95d1b63b80a0b182dbd5e9f90a95d90
[ "MIT" ]
2
2020-06-09T10:35:12.000Z
2020-06-09T11:32:16.000Z
25 1000-digit Fibonacci number.py
Polar1ty/euler_problems
bc1cd917d95d1b63b80a0b182dbd5e9f90a95d90
[ "MIT" ]
null
null
null
25 1000-digit Fibonacci number.py
Polar1ty/euler_problems
bc1cd917d95d1b63b80a0b182dbd5e9f90a95d90
[ "MIT" ]
null
null
null
# 1000-digit Fibonacci number import time start = time.time() fibo = [1, 1] while 1: new_f = fibo[-2] + fibo[-1] fibo.append(new_f) if len(str(new_f)) == 1000: print('Result =', fibo.index(new_f) + 1) break end = time.time() print('Time of execution = ' + str(end - start))
20
49
0.559375
602fcb07447ad09561d80028e3c7c194afdbe4d3
13,849
py
Python
utils/eulerangles.py
Hao-FANG-92/3D_PSPNet
2821a3181cbdb70ee3291c29ebac19af38e6c8dc
[ "MIT" ]
6
2020-06-13T08:34:49.000Z
2021-11-09T04:09:48.000Z
utils/eulerangles.py
jtpils/3D_PSPNet
2821a3181cbdb70ee3291c29ebac19af38e6c8dc
[ "MIT" ]
null
null
null
utils/eulerangles.py
jtpils/3D_PSPNet
2821a3181cbdb70ee3291c29ebac19af38e6c8dc
[ "MIT" ]
4
2020-03-08T17:00:19.000Z
2022-03-18T15:42:14.000Z
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ##...
33.052506
100
0.594195
bd3b8066be6f55e107635852b6699094b1c8a64e
4,424
py
Python
qiskit/chemistry/algorithms/eigen_solvers/q_eom_ee.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2020-08-01T21:07:54.000Z
2020-08-01T21:07:54.000Z
qiskit/chemistry/algorithms/eigen_solvers/q_eom_ee.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
null
null
null
qiskit/chemistry/algorithms/eigen_solvers/q_eom_ee.py
hushaohan/aqua
8512bc6ce246a8b3cca1e5edb1703b6885aa7c5d
[ "Apache-2.0" ]
1
2022-01-25T07:09:10.000Z
2022-01-25T07:09:10.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020. # # 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...
48.615385
94
0.62726
86748563683dfff1f127d811a9418843553f2764
1,662
py
Python
catalyst/rl/core/exploration.py
162/catalyst
b4ba36be52c51160e0fabecdcb084a8d5cd96cb7
[ "MIT" ]
null
null
null
catalyst/rl/core/exploration.py
162/catalyst
b4ba36be52c51160e0fabecdcb084a8d5cd96cb7
[ "MIT" ]
null
null
null
catalyst/rl/core/exploration.py
162/catalyst
b4ba36be52c51160e0fabecdcb084a8d5cd96cb7
[ "MIT" ]
null
null
null
from typing import List from copy import deepcopy import numpy as np from catalyst.rl.registry import EXPLORATION from catalyst.rl.core import EnvironmentSpec class ExplorationStrategy: """ Base class for working with various exploration strategies. In discrete case must contain method get_action(q_values...
31.961538
74
0.683514
1596f9e2d19c328135331402283f4ec8caf8c784
982
py
Python
outlook/setup.py
penelopec/indico-plugins-cern
bb67d2fb9e3d24faeeff2b78a5e9bcff52ac5f26
[ "MIT" ]
null
null
null
outlook/setup.py
penelopec/indico-plugins-cern
bb67d2fb9e3d24faeeff2b78a5e9bcff52ac5f26
[ "MIT" ]
null
null
null
outlook/setup.py
penelopec/indico-plugins-cern
bb67d2fb9e3d24faeeff2b78a5e9bcff52ac5f26
[ "MIT" ]
null
null
null
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2018 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from setuptools import fin...
27.277778
76
0.662933
14552793cee58d25d39650fd853b7bff55726a8c
146
py
Python
payment_handler/handler/apps.py
KartashevaAnna/Payment-platform
c229894de5dd2b0f745b1d363fac2fcc9372413c
[ "MIT" ]
null
null
null
payment_handler/handler/apps.py
KartashevaAnna/Payment-platform
c229894de5dd2b0f745b1d363fac2fcc9372413c
[ "MIT" ]
1
2021-11-04T13:47:28.000Z
2021-11-04T13:47:28.000Z
payment_handler/handler/apps.py
KartashevaAnna/Payment-platform
c229894de5dd2b0f745b1d363fac2fcc9372413c
[ "MIT" ]
1
2021-10-20T14:44:19.000Z
2021-10-20T14:44:19.000Z
from django.apps import AppConfig class HandlerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'handler'
20.857143
56
0.760274