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
9e972e1b92ccf44dd579d52942d7e84c3a326311
784
py
Python
anthill/game/controller/model/heartbeat.py
anthill-platform/anthill-game-controller
9c2fe2d4b4f8c95c6094f02d6d2cb22c8a686b13
[ "MIT" ]
null
null
null
anthill/game/controller/model/heartbeat.py
anthill-platform/anthill-game-controller
9c2fe2d4b4f8c95c6094f02d6d2cb22c8a686b13
[ "MIT" ]
null
null
null
anthill/game/controller/model/heartbeat.py
anthill-platform/anthill-game-controller
9c2fe2d4b4f8c95c6094f02d6d2cb22c8a686b13
[ "MIT" ]
1
2020-04-16T13:55:53.000Z
2020-04-16T13:55:53.000Z
from psutil import virtual_memory, cpu_percent, disk_usage from anthill.common.model import Model class HeartbeatModel(Model): def __init__(self, app, dist_usage_path): self.app = app self.dist_usage_path = dist_usage_path def __rooms_report__(self): return [room_id for room_id, room...
27.034483
81
0.607143
9e976fe25bb34dac0769ce7541b935c1b933eb7e
8,030
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_02_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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) AutoRest Code Generator. # Changes may ...
38.605769
123
0.811333
9e97b71548d8fca7c790673c041dba3224cc5d0c
3,504
py
Python
nile/db/sqlalchemy/session.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/db/sqlalchemy/session.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
nile/db/sqlalchemy/session.py
Orpheus11/nile
b92d514f57eec9583d9e6f2a7df83506efe2a2e8
[ "Apache-2.0" ]
null
null
null
import contextlib from nile.common import log as logging from sqlalchemy import create_engine from sqlalchemy import MetaData from sqlalchemy.orm import sessionmaker from nile.common.i18n import _ from nile.db.sqlalchemy import mappers _ENGINE = None _MAKER = None _ENGINE_PRI = None _MAKER_PRI = None LOG = logging.get...
30.469565
87
0.652397
9e97f803a08ee315830faa2050bf9fea72767cce
3,054
py
Python
code/baselines/en_dataset_creation.py
RefalMachine/diachronic-wordnets
29f525ae282dd45f1ecb1f0723d9266f4beee572
[ "Apache-2.0" ]
3
2020-11-22T15:28:09.000Z
2022-01-25T21:28:58.000Z
code/baselines/en_dataset_creation.py
RefalMachine/diachronic-wordnets
29f525ae282dd45f1ecb1f0723d9266f4beee572
[ "Apache-2.0" ]
null
null
null
code/baselines/en_dataset_creation.py
RefalMachine/diachronic-wordnets
29f525ae282dd45f1ecb1f0723d9266f4beee572
[ "Apache-2.0" ]
2
2020-11-22T15:27:50.000Z
2021-09-05T11:17:53.000Z
import json import os import sys from itertools import combinations import networkx as nx from nltk.corpus import WordNetCorpusReader def extract_new_lemmas(synsets, wordnet, pos): new_lemmas = set([lemma.name() for synset in synsets for lemma in synset.lemmas()]) old_lemmas = set(wordnet.all_lemm...
35.929412
121
0.637525
9e97fe580d24de0df698c38df28a7d446a469478
8,252
py
Python
datacompare/comparedataframe.py
kitjosh1050/DataCompare
2a410c69ef5a97b000a4eef254a41f44f2c53c4b
[ "MIT" ]
3
2016-04-20T10:13:24.000Z
2019-07-31T22:36:08.000Z
datacompare/comparedataframe.py
kitjosh1050/DataCompare
2a410c69ef5a97b000a4eef254a41f44f2c53c4b
[ "MIT" ]
1
2016-03-02T21:59:12.000Z
2016-03-03T14:32:49.000Z
datacompare/comparedataframe.py
kitjosh1050/DataCompare
2a410c69ef5a97b000a4eef254a41f44f2c53c4b
[ "MIT" ]
1
2016-04-09T17:09:07.000Z
2016-04-09T17:09:07.000Z
import pandas as pd from datacompare import util as dc_util import pyodbc import logging logging.basicConfig(level=logging.INFO, format=' %(asctime)s - %(levelname)s- %(message)s') logging.debug('Start of program') class CompareDataFrame(pd.DataFrame): """ A CompareDataFrame is a pandas.DataFrame with specif...
37.004484
160
0.611973
9e981c41f46730d1eb186e780b6fcad5e11dbb23
3,785
py
Python
zoopt/algos/opt_algorithms/racos/racos.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
1
2018-11-03T12:05:00.000Z
2018-11-03T12:05:00.000Z
zoopt/algos/opt_algorithms/racos/racos.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
zoopt/algos/opt_algorithms/racos/racos.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
""" This module contains the class Racos, which is a optimization algorithm provided in ZOOpt. Author: Yu-Ren Liu """ import time from zoopt.algos.opt_algorithms.racos.racos_classification import RacosClassification from zoopt.algos.opt_algorithms.racos.racos_common import RacosCommon from zoopt.utils.tool_funct...
43.011364
111
0.579921
9e9878c5cec950dd02839521f220371cb6add7bc
1,178
py
Python
test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/azure/version-tolerant/Expected/AcceptanceTests/CustomPollerPagerVersionTolerant/setup.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
# 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) AutoRest Code Generator. # Changes may ...
31
94
0.629032
9e988211e514862d43c48eb4ab0916eed5df904d
1,118
py
Python
Digit_Recognition/OneDigit/linear_regression.py
ayoubbensakhria/ML-6.86x
58662b58bca413180fb0a31f5e98c930da6b796e
[ "MIT" ]
null
null
null
Digit_Recognition/OneDigit/linear_regression.py
ayoubbensakhria/ML-6.86x
58662b58bca413180fb0a31f5e98c930da6b796e
[ "MIT" ]
null
null
null
Digit_Recognition/OneDigit/linear_regression.py
ayoubbensakhria/ML-6.86x
58662b58bca413180fb0a31f5e98c930da6b796e
[ "MIT" ]
1
2021-04-30T09:44:34.000Z
2021-04-30T09:44:34.000Z
import numpy as np ### Functions for you to fill in ### def closed_form(X, Y, lambda_factor): """ Computes the closed form solution of linear regression with L2 regularization Args: X - (n, d + 1) NumPy array (n datapoints each with d features plus the bias feature in the first dimension) ...
38.551724
115
0.658318
9e988443ef223e97cc351de8df776a6bd001068d
1,412
py
Python
example/toturial/BUILD.py
adinosaur/configure
0c2bf44a8dff2312dc201da75d86798a8df07671
[ "MIT" ]
6
2021-05-25T03:18:45.000Z
2022-01-08T04:37:36.000Z
example/toturial/BUILD.py
adinosaur/configure
0c2bf44a8dff2312dc201da75d86798a8df07671
[ "MIT" ]
null
null
null
example/toturial/BUILD.py
adinosaur/configure
0c2bf44a8dff2312dc201da75d86798a8df07671
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- from __main__ import ExeTarget import glob import os class Toturial(ExeTarget): def __init__(self): super(Toturial, self).__init__() if os.name == 'posix': self.name = 'example/toturial/toturial' self.cxxflags = ['-g'] ...
36.205128
69
0.430595
9e9916f50338ff543514bc77f949950e0e567e1b
2,022
py
Python
tests/test_record.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
null
null
null
tests/test_record.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
null
null
null
tests/test_record.py
mrakitin/recordwhat
c68b8fca69836bdba0075726e829325f2c8918a8
[ "BSD-3-Clause" ]
null
null
null
import pytest import epics import recordwhat from .util import skip_if_pv_unavailable motor_pv = 'XF:31IDA-OP{Tbl-Ax:X1}Mtr' records = [ ('ai', 'Py:ai1'), ('ao', 'Py:ao1'), ('bi', 'Py:bi1'), ('bo', 'Py:bo1'), ('fanout', 'Py:mylinker'), ('longin', 'Py:long1'), ('longout', 'Py:long2'), ...
28.885714
75
0.645895
9e9956942c0472430e72c5a88e01105bb86dc8e5
789
py
Python
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/azurestackhci/azure-mgmt-azurestackhci/azure/mgmt/azurestackhci/aio/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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) AutoRest Code Generator. # Changes may ...
49.3125
114
0.638783
9e99a6066e53f896b6e6f2bd25e0e7887f17c06b
14,290
py
Python
Lib/configs.py
wc7086/viperpython
ce4db2bc2533fa98cb4854e50286a4d88a28189d
[ "BSD-3-Clause" ]
null
null
null
Lib/configs.py
wc7086/viperpython
ce4db2bc2533fa98cb4854e50286a4d88a28189d
[ "BSD-3-Clause" ]
null
null
null
Lib/configs.py
wc7086/viperpython
ce4db2bc2533fa98cb4854e50286a4d88a28189d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # @File : configs.py # @Date : 2019/1/11 # @Desc : 存储viper通用的配置信息 from CONFIG import MSFDIR CODE_MSG_ZH = { 200: '服务器成功返回请求的数据', 201: '新建或修改数据成功', 202: '一个请求已经进入后台排队(异步任务)', 204: '删除数据成功', 400: '发出的请求有错误,服务器没有进行新建或修改数据的操作', 401: '用户没有权限(令牌、用户名、密码错误)', 403: '用户得到授权...
23.235772
142
0.658782
9e99aeae2a372a4bc76d8d4b1cdc2b459f50b70e
801
py
Python
python/computer_vision/face_detect_haar_cascade/samples/sample_image_time.py
san99tiago/tesis
70e452cfa9eedbbe64347e2bd8826bb295473d01
[ "MIT" ]
4
2021-03-09T19:59:50.000Z
2021-03-31T01:28:24.000Z
python/computer_vision/face_detect_haar_cascade/samples/sample_image_time.py
san99tiago/tesis
70e452cfa9eedbbe64347e2bd8826bb295473d01
[ "MIT" ]
null
null
null
python/computer_vision/face_detect_haar_cascade/samples/sample_image_time.py
san99tiago/tesis
70e452cfa9eedbbe64347e2bd8826bb295473d01
[ "MIT" ]
null
null
null
# MULTIPLE IMAGE SAMPLES FOR FACE_DETECTION WITH HAAR_CASCADE APPROACH # Built-int imports import os import time # External imports import cv2 as cv import numpy as np # My own imports import face_detect_hc as fdhc import get_assets_folder as gaf def process_one_image_face(): # Sample 1 image_relative_path ...
25.03125
78
0.721598
9e99afb51b157793949d1e9a7f5956a93eb37327
1,332
py
Python
figure/4/corr_harm.py
XinhuiLi/PipelineHarmonization
701f84841528d3e50c5538b2de244ee36eedd7d6
[ "Apache-2.0" ]
7
2021-11-11T19:18:19.000Z
2022-03-15T13:53:49.000Z
figure/4/corr_harm.py
XinhuiLi/PipelineHarmonization
701f84841528d3e50c5538b2de244ee36eedd7d6
[ "Apache-2.0" ]
1
2021-11-18T05:23:30.000Z
2021-11-19T20:31:53.000Z
figure/4/corr_harm.py
XinhuiLi/PipelineHarmonization
701f84841528d3e50c5538b2de244ee36eedd7d6
[ "Apache-2.0" ]
1
2022-01-06T06:29:56.000Z
2022-01-06T06:29:56.000Z
import os import numpy as np def upper_tri_indexing(A): m = A.shape[0] r,c = np.triu_indices(m,1) return A[r,c] def get_corr(pathname, subid): filename = os.path.join(pathname, 'sub-00254'+str(subid)+'a.1D') data = np.genfromtxt(filename) data = data.transpose() data_corr = np.corrcoef(dat...
28.340426
68
0.663664
9e99c1c946a11e80fd05b24ff8183ac4057fa2fc
13,937
py
Python
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/session.py
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-11-15T15:17:43.000Z
2021-11-15T15:17:43.000Z
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/session.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/session.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.000Z
#!/usr/bin/env python # messy first-run at falcon SRP key negotiation and aes ctr decryption import urlparse import logging import socket import re import json import urllib import random import time import random import Cookie from hashlib import sha1 import tornado.iostream import tornado.ioloop import tornado.optio...
35.827763
141
0.590227
9e99c215080d671510da8d8cb7e0b8793142b482
4,425
py
Python
cc_cet/pyquist.py
davidjwilson/pceb
259cf4b18b51b7163d6ce84ab150c5f65f8cfdec
[ "MIT" ]
3
2018-12-31T23:15:59.000Z
2020-12-09T07:37:49.000Z
cc_cet/pyquist.py
davidjwilson/pceb
259cf4b18b51b7163d6ce84ab150c5f65f8cfdec
[ "MIT" ]
null
null
null
cc_cet/pyquist.py
davidjwilson/pceb
259cf4b18b51b7163d6ce84ab150c5f65f8cfdec
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ This module contains functions for calculating the canidate intrinsic frequencies and amplitudes that may underlie an observed sub-Nyquist signal, or the sub-Nyquist frequencies and amplitudes that would be measured from some intrinsic super-Nyquist signal. This code...
34.84252
84
0.646102
9e99dfba35376cd267e05588653e72e89f9e74a8
84,220
py
Python
sirepo/template/srw.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
1
2019-06-06T08:08:11.000Z
2019-06-06T08:08:11.000Z
sirepo/template/srw.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
sirepo/template/srw.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""SRW execution template. :copyright: Copyright (c) 2015 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkcollections from pykern import pkio from pykern.pkd...
41.817279
266
0.62598
9e99fdc31e5114037f0ffd47fff18e6026fbfdfc
11,316
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/compute_management_client.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# 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) AutoRest Code Generator. # Changes ...
60.83871
146
0.791269
9e9a3c76ee51584433eef3f15c3b29f653d5fff2
173
py
Python
tensormonk/optimizers/__init__.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
29
2018-07-06T23:57:23.000Z
2022-03-08T20:38:57.000Z
tensormonk/optimizers/__init__.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
3
2018-12-14T22:21:26.000Z
2020-06-19T02:13:34.000Z
tensormonk/optimizers/__init__.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
8
2018-07-06T23:58:03.000Z
2021-04-12T01:35:54.000Z
""" TensorMONK :: optimizers """ __all__ = ["LookAhead", "RAdam", "AdaBelief"] from .look_ahead import LookAhead from .radam import RAdam from .adabelief import AdaBelief
21.625
45
0.734104
9e9a53e6974bc2dcde92d6db37b7d30dac871d0a
1,388
py
Python
python/ray/rllib/offline/mixed_input.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/rllib/offline/mixed_input.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/rllib/offline/mixed_input.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from ray.rllib.offline.input_reader import InputReader from ray.rllib.offline.json_reader import JsonReader from ray.rllib.utils.annotations import override class MixedInput(InputReader): ...
30.173913
71
0.603026
9e9a5714bf790d2258bd6b7887a9a6fe526932f8
3,923
py
Python
tql/algo_ml/models/classifier/baseline_xgb.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/algo_ml/models/classifier/baseline_xgb.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/algo_ml/models/classifier/baseline_xgb.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ __title__ = 'xgb' __author__ = 'JieYuan' __mtime__ = '19-1-2' """ import xgboost as xgb class BaselineXGB(object): """ 待补充: https://xgboost.readthedocs.io/en/release_0.81/tutorials/feature_interaction_constraint.html 新版xgb支持交叉特征interaction_constraints ...
34.716814
118
0.572266
9e9a5c60b0d5cfb76945a0a123585041ce99057a
2,950
py
Python
neb/util.py
cstein/neb
8bf59ef16819841d0839d6875c5935a681e0c405
[ "MIT" ]
20
2016-12-13T19:38:19.000Z
2022-02-11T08:40:40.000Z
neb/util.py
cstein/neb
8bf59ef16819841d0839d6875c5935a681e0c405
[ "MIT" ]
null
null
null
neb/util.py
cstein/neb
8bf59ef16819841d0839d6875c5935a681e0c405
[ "MIT" ]
6
2017-03-02T16:59:44.000Z
2021-01-25T10:06:17.000Z
import numpy """ Utility variables and functions """ aa2au = 1.8897261249935897 # bohr / AA # converts nuclear charge to atom label Z2LABEL = { 1: 'H', 2: 'He', 3: 'Li', 4: 'Be', 5: 'B', 6: 'C', 7: 'N', 8: 'O', 9: 'F', 10: 'Ne', 11: 'NA', 12: 'Mg...
32.417582
106
0.498983
9e9a8924a06e06e887e780e753692717e420c524
1,716
py
Python
phenotype/System/Interop.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/System/Interop.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
phenotype/System/Interop.py
kamalm87/phenotype
92ff1c3ec6b21cd540caf10880ef532270d85110
[ "MIT" ]
null
null
null
if __name__ == '__main__': from sys import path as __sys_path__ from os.path import abspath as __abs_path__ __sys_path__.insert(0, __abs_path__('..')) from collections.abc import ( Callable as __abc_callable__ ) from shlex import ( split as __shlex_split__ ) from subprocess import (...
36.510638
90
0.645105
9e9a94e40c79907e10eb302a8d58985c982267ca
1,874
py
Python
chapter3-deep-networks/cnn-functional-3.1.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
3
2017-12-31T15:03:22.000Z
2021-03-10T09:39:08.000Z
chapter3-deep-networks/cnn-functional-3.1.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
null
null
null
chapter3-deep-networks/cnn-functional-3.1.1.py
roatienza/dl-keras
9472dce7381e0bc05b52db269905909c2a2aa5c8
[ "MIT" ]
9
2017-10-25T05:59:39.000Z
2020-04-16T08:51:47.000Z
''' Using Functional API to build CNN Project: https://github.com/roatienza/dl-keras Dependencies: keras Usage: python3 <this file> ''' import numpy as np from keras.layers import Activation, Dense, Dropout, Input from keras.layers import Conv2D, MaxPooling2D, Flatten from keras.models import Model from keras.datase...
27.558824
61
0.697972
9e9ac2369f82386703e543da8b27ea457c613c61
2,979
py
Python
augly/text/augmenters/upside_down.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/text/augmenters/upside_down.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
augly/text/augmenters/upside_down.py
Adib234/AugLy
35a6a5de07e64f465b8979e3257218551929e57a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. from typing import List, Union from augly.text.augmenters.utils import ( detokenize, get_aug_idxes, tokenize, UPSIDE_DOWN_CHAR_MAPPING, ) from augly.utils.libsndfile import install_libsndfile install_libsndfile() from nlpaug.au...
29.79
94
0.572675
9e9afaaaf013faeca991dd9cd95feec32a8879bf
12,229
py
Python
hubspot3/base.py
ndewani/hubspot3
c8751b6127f4fc3b9bb3c27b5be29c02b4c6939c
[ "MIT" ]
null
null
null
hubspot3/base.py
ndewani/hubspot3
c8751b6127f4fc3b9bb3c27b5be29c02b4c6939c
[ "MIT" ]
4
2019-06-28T10:22:50.000Z
2019-08-09T15:02:43.000Z
hubspot3/base.py
ndewani/hubspot3
c8751b6127f4fc3b9bb3c27b5be29c02b4c6939c
[ "MIT" ]
null
null
null
""" base hubspot client class """ import http.client import json import logging import time import traceback import urllib.request import urllib.parse import urllib.error from typing import List, Union import zlib from hubspot3 import utils from hubspot3.utils import force_utf8 from hubspot3.error import ( Hubspot...
33.688705
98
0.532586
9e9afc9a82c7d83af8464acd4495bec8099c4297
259
py
Python
project/sound_store/forms.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
project/sound_store/forms.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
project/sound_store/forms.py
katesmr/SoundGeneration
d4e5892eedea69fcf2f4fbde75069f2002196a52
[ "MIT" ]
null
null
null
from django import forms from allauth.account.forms import LoginForm class SocialNetworkLoginForm(LoginForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['password'].widget = forms.PasswordInput()
25.9
62
0.714286
9e9b0ffd94ab8e971cc48a883416cdb945f10369
3,760
py
Python
facebook_business/test/async_business_docs.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/test/async_business_docs.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
facebook_business/test/async_business_docs.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
37.979798
76
0.714894
9e9b2bf98d9a20c48a8fcbcab8b952fd76bdd2d1
580
py
Python
extractor/ValueType.py
MITMotorsports/MY17_OneDayDAQ
cbf0c22d17a133042e3a7a4ee7fb2a7b601bf74d
[ "MIT" ]
2
2017-10-17T16:36:48.000Z
2019-05-13T01:02:06.000Z
extractor/ValueType.py
MITMotorsports/MY17_OneDayDAQ
cbf0c22d17a133042e3a7a4ee7fb2a7b601bf74d
[ "MIT" ]
null
null
null
extractor/ValueType.py
MITMotorsports/MY17_OneDayDAQ
cbf0c22d17a133042e3a7a4ee7fb2a7b601bf74d
[ "MIT" ]
null
null
null
class ValueType: attributes = ['name', 'range'] def __init__(self, name, value): assert isinstance(value, (tuple, list, int)) self.name = str(name) self.range = tuple(value) if isinstance(value, list) else (value, value) def __contains__(self, data): return self.range[0] <= ...
34.117647
80
0.610345
9e9b370bc957957303fdf08dde08024ef37c3631
794
py
Python
defoe/test/papers/test_article_galen.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
2
2022-02-14T12:10:54.000Z
2022-02-14T12:35:44.000Z
defoe/test/papers/test_article_galen.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
17
2022-02-09T21:46:14.000Z
2022-02-25T14:55:09.000Z
defoe/test/papers/test_article_galen.py
kallewesterling/defoe
d72af2f748fd4363a4718c93bb0b0284b8cb1f3e
[ "MIT" ]
1
2022-02-14T13:19:08.000Z
2022-02-14T13:19:08.000Z
""" defoe.papers.article.Article tests for newspapers conforming to GALENP.dtd. """ from defoe.papers.issue import Issue from defoe.file_utils import get_path from defoe.test.papers import fixtures from defoe.test.papers.test_article import TestArticle class TestArticleGalen(TestArticle): """ defoe.papers.ar...
26.466667
71
0.691436
9e9b38bbc84e0148ea064a0d03e420de68d55fcd
26,655
py
Python
release/scripts/addons/add_curve_ivygen.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
2
2018-06-18T01:50:25.000Z
2018-06-18T01:50:32.000Z
release/scripts/addons/add_curve_ivygen.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
release/scripts/addons/add_curve_ivygen.py
1-MillionParanoidTterabytes/Blender-2.79b-blackened
e8d767324e69015aa66850d13bee7db1dc7d084b
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program 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 version. # # This program is distrib...
35.445479
81
0.547064
9e9b5be8a3120ae2525f92ddd81193aafe6d81f7
2,005
py
Python
benchmark/benchmark_exec_full.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
6
2015-05-13T23:44:26.000Z
2021-05-30T07:23:30.000Z
benchmark/benchmark_exec_full.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
4
2018-07-24T20:10:52.000Z
2018-09-07T17:16:51.000Z
benchmark/benchmark_exec_full.py
robfalck/CADRE
f1fb419aade62fe830d56d958f35f1e153f04363
[ "Apache-2.0" ]
14
2015-07-21T17:41:42.000Z
2020-07-31T09:49:09.000Z
""" Benchmark: Execution of full CADRE MDP. Serial version. """ from __future__ import print_function import unittest import numpy as np from openmdao.api import Problem from openmdao.utils.assert_utils import assert_rel_error from CADRE.CADRE_mdp import CADRE_MDP_Group class BenchmarkExecSerial(unittest.TestCase...
33.416667
84
0.599501
9e9b7c983efb2b9366d48c3b211630f149276cc8
2,820
py
Python
src/buildstream/_options/optionenum.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_options/optionenum.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
src/buildstream/_options/optionenum.py
doraskayo/buildstream
1c72d4342ae7df360808de22c5e49f55dbb6bec6
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2017 Codethink 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 agre...
30.989011
109
0.626241
9e9bb29391a22e121276571813569956d9abaaba
1,470
py
Python
src/pyoffers/models/__init__.py
Stranger6667/py-offers
73ef00e7b02ddfa5adc6df282009aea7670e465f
[ "MIT" ]
17
2016-08-26T10:50:44.000Z
2021-07-08T17:39:34.000Z
src/pyoffers/models/__init__.py
Stranger6667/py-offers
73ef00e7b02ddfa5adc6df282009aea7670e465f
[ "MIT" ]
80
2016-08-26T08:45:20.000Z
2020-08-31T15:47:10.000Z
src/pyoffers/models/__init__.py
Stranger6667/py-offers
73ef00e7b02ddfa5adc6df282009aea7670e465f
[ "MIT" ]
7
2017-04-03T08:19:06.000Z
2020-10-16T19:02:21.000Z
from .advertiser import Advertiser, AdvertiserManager # noqa from .affiliate import ( # noqa Affiliate, AffiliateManager, AffiliateOffer, AffiliateOfferManager, AffiliateUser, AffiliateUserManager, ) from .conversion import Conversion, ConversionManager # noqa from .core import ApplicationMan...
32.666667
120
0.735374
9e9bc6d9165163e443809f665926377d819aec26
1,948
py
Python
yaksh/decorators.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/decorators.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
yaksh/decorators.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
1
2015-04-05T09:51:54.000Z
2015-04-05T09:51:54.000Z
from django.shortcuts import render_to_response, redirect from django.conf import settings from django.template import RequestContext # Local imports from yaksh.forms import ProfileForm def user_has_profile(user): return hasattr(user, 'profile') def has_profile(func): """ This decorator is used to chec...
35.418182
77
0.618583
9e9bf8b664fccab5e6da0174227e645cedb8788e
15,687
py
Python
piq/msid.py
hecoding/piq
c72143ce9deb30fefaca434a39e4dfc557673e97
[ "Apache-2.0" ]
null
null
null
piq/msid.py
hecoding/piq
c72143ce9deb30fefaca434a39e4dfc557673e97
[ "Apache-2.0" ]
null
null
null
piq/msid.py
hecoding/piq
c72143ce9deb30fefaca434a39e4dfc557673e97
[ "Apache-2.0" ]
null
null
null
r"""Implemetation of Multi-scale Evaluation metric, based on paper https://arxiv.org/abs/1905.11141 and author's repository https://github.com/xgfs/msid """ from typing import List, Tuple, Optional from warnings import warn import torch import numpy as np from piq.base import BaseFeatureMetric from piq.utils import ...
39.2175
120
0.619558
9e9c10f27ee5d6a1cc996cda3c7a55570994726e
157
py
Python
PythonApp/Main.py
eternalamenity/FootballerPricePredictor
ee5875abef2f25d06a547d4c7148fc1d24e6b566
[ "MIT" ]
null
null
null
PythonApp/Main.py
eternalamenity/FootballerPricePredictor
ee5875abef2f25d06a547d4c7148fc1d24e6b566
[ "MIT" ]
null
null
null
PythonApp/Main.py
eternalamenity/FootballerPricePredictor
ee5875abef2f25d06a547d4c7148fc1d24e6b566
[ "MIT" ]
null
null
null
import externals.WebScrapper.get_players_data as pd import externals.WebScrapper.get_teams_urls as tu tu.get_teams_urls(0) print("Hello Machine Learning!")
26.166667
51
0.840764
9e9c613048abc4f1f663a355e029cd7efe8d65bd
1,730
py
Python
tests/simulation/intelligence/interactions/gp.py
tiyimo/SynPath
aa926101b8d2ff75b112a0a8672af528a855008f
[ "MIT" ]
5
2021-05-12T06:52:41.000Z
2022-01-05T18:47:54.000Z
tests/simulation/intelligence/interactions/gp.py
tiyimo/SynPath
aa926101b8d2ff75b112a0a8672af528a855008f
[ "MIT" ]
15
2021-09-28T12:28:46.000Z
2022-03-08T14:10:39.000Z
tests/simulation/intelligence/interactions/gp.py
tiyimo/SynPath
aa926101b8d2ff75b112a0a8672af528a855008f
[ "MIT" ]
4
2021-05-05T13:00:19.000Z
2021-07-05T12:42:45.000Z
import datetime import os import sys def measure_bmi(patient, environment, patient_time): encounter = { "resource_type": "Encounter", "name": "outpatient encounter", "start": patient_time, } bmi = { "resource_type": "Observation", "name": "Body mass index (BMI)", ...
24.714286
76
0.59422
9e9c796bf4db34b8abdd396b6717fde2991d7f24
1,623
py
Python
src/ggrc_workflows/migrations/versions/20140804163110_2b1ba26f2123_clean_up_taskgrouptask.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2018-03-30T11:28:48.000Z
2018-03-30T11:28:48.000Z
src/ggrc_workflows/migrations/versions/20140804163110_2b1ba26f2123_clean_up_taskgrouptask.py
trevordonnelly/ggrc-core
499cf0d3cce70737b080991b12c203ec22015cea
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_workflows/migrations/versions/20140804163110_2b1ba26f2123_clean_up_taskgrouptask.py
zidarsk8/ggrc-core
2509c989eddf434249d3bef50c21e08dbf56c1a4
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Clean up TaskGroupTask Revision ID: 2b1ba26f2123 Revises: eab2ab6a0fc Create Date: 2014-08-04 16:31:10.190834 """ # revision identifiers, used by Alembic. revision = '2b1ba26f2123' down_revision = 'ea...
36.066667
124
0.747998
9e9c81cd28f1e21a4d6354722e031467e90d9869
1,515
py
Python
msoffcrypto/__main__.py
DidierStevens/msoffcrypto-tool
f746a38ed174910195ed3b9bdff4ea5b075a2055
[ "MIT" ]
6
2018-06-06T12:22:33.000Z
2021-02-04T19:19:44.000Z
msoffcrypto/__main__.py
DidierStevens/msoffcrypto-tool
f746a38ed174910195ed3b9bdff4ea5b075a2055
[ "MIT" ]
null
null
null
msoffcrypto/__main__.py
DidierStevens/msoffcrypto-tool
f746a38ed174910195ed3b9bdff4ea5b075a2055
[ "MIT" ]
4
2018-07-24T13:38:12.000Z
2021-05-23T22:20:55.000Z
import logging, sys import argparse logger = logging.getLogger(__name__) logger.addHandler(logging.NullHandler()) import olefile from . import OfficeFile def ifWIN32SetBinary(io): if sys.platform == 'win32': import msvcrt, os msvcrt.setmode(io.fileno(), os.O_BINARY) parser = argparse.ArgumentPa...
29.705882
118
0.681188
9e9c873cff9421257f5ad4b523a2e3d4af25fde9
2,982
py
Python
lib/createoutput.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
6
2019-12-11T16:35:26.000Z
2021-08-12T12:15:04.000Z
lib/createoutput.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
7
2018-07-05T13:50:27.000Z
2022-03-07T07:20:51.000Z
lib/createoutput.py
xyanqian/multi_padlock_design
b2696cb615bd5688668b0fe768a4c19c0d0cb7aa
[ "MIT" ]
5
2018-11-09T09:46:30.000Z
2022-03-11T15:22:06.000Z
# for multi_padlock_design # Xiaoyan, 2017 import datetime import os import numpy as np def usetime(): """ Use current time to create temporary folder""" t = str(datetime.datetime.now())[:19] t = t.replace('-', '') t = t.replace(':', '') t = t.replace(' ', '') return t def tempdir(outdir): ...
34.674419
113
0.53387
9e9c89f56314c77c88343884d3ae9424c5b37111
16,804
py
Python
onmt/translate/beam_search.py
leejihwan23/NMT-GPU
96464effc6f328cc94d553df996b19a9ffe64c60
[ "Apache-2.0" ]
93
2020-04-03T01:00:15.000Z
2022-03-16T09:33:49.000Z
onmt/translate/beam_search.py
midobal/OpenNMT-py
db11135e5c9967c7903cda786c7207dc607e38a0
[ "MIT" ]
10
2020-04-21T13:43:23.000Z
2022-02-02T16:11:25.000Z
onmt/translate/beam_search.py
midobal/OpenNMT-py
db11135e5c9967c7903cda786c7207dc607e38a0
[ "MIT" ]
15
2020-04-03T13:41:28.000Z
2022-03-28T11:01:16.000Z
import torch from onmt.translate import penalties from onmt.translate.decode_strategy import DecodeStrategy from onmt.utils.misc import tile import warnings class BeamSearch(DecodeStrategy): """Generation beam search. Note that the attributes list is not exhaustive. Rather, it highlights tensors to docu...
44.221053
79
0.600333
9e9c8cca69f209eb2c424e6172be49c1805e773d
1,098
py
Python
clients/client/python/test/test_submit_self_service_login_flow_with_totp_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_login_flow_with_totp_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
clients/client/python/test/test_submit_self_service_login_flow_with_totp_method_body.py
sproutfi/sdk
5340b37d7b3e8f3c1b8f4c0c16ede05488498620
[ "Apache-2.0" ]
null
null
null
""" Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 The version of the OpenAPI document: v0.0.1-alpha.71 Contact: support@ory.sh Generated by: htt...
29.675676
194
0.757741
9e9c9cc14ebaf021b057a0fe87088dd5ca301cbb
3,033
py
Python
warehouse/utils/project.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2021-08-14T13:47:31.000Z
2021-08-14T13:47:31.000Z
warehouse/utils/project.py
denza/warehouse
928cd5b495a2e861fee7857467430d1def6f7995
[ "Apache-2.0" ]
null
null
null
warehouse/utils/project.py
denza/warehouse
928cd5b495a2e861fee7857467430d1def6f7995
[ "Apache-2.0" ]
null
null
null
# 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 Li...
31.268041
77
0.670623
9e9ca7d272ae0d46cb2224fbb21d603bc996c5dd
8,878
py
Python
src/qclass.py
dweissma/qpy
2933eb1bfd873bbc7bb6dd79674c4f7e4ffd6bcb
[ "MIT" ]
2
2019-08-07T03:20:54.000Z
2019-08-14T01:10:22.000Z
src/qclass.py
dweissma/qpy
2933eb1bfd873bbc7bb6dd79674c4f7e4ffd6bcb
[ "MIT" ]
null
null
null
src/qclass.py
dweissma/qpy
2933eb1bfd873bbc7bb6dd79674c4f7e4ffd6bcb
[ "MIT" ]
null
null
null
from __future__ import annotations from qiskit import QuantumCircuit, QuantumRegister, execute, IBMQ from qiskit.aqua.circuits.gates import mct import uuid import random import math import re class qclass(object): """ Abstract class used as a backend for quantum data structures Keeping a set of quantum reg...
36.385246
113
0.565555
9e9cab42df716f7963cc89ffd1e36e865b19f1f8
1,765
py
Python
ResNet.py
ParadoxZW/CIFAR100-PRACTICE
175d9a72fc8e7d79ec3ef8670028d1efe830e5b9
[ "MIT" ]
1
2020-04-15T11:01:28.000Z
2020-04-15T11:01:28.000Z
ResNet.py
ParadoxZW/CIFAR100-PRACTICE
175d9a72fc8e7d79ec3ef8670028d1efe830e5b9
[ "MIT" ]
null
null
null
ResNet.py
ParadoxZW/CIFAR100-PRACTICE
175d9a72fc8e7d79ec3ef8670028d1efe830e5b9
[ "MIT" ]
null
null
null
# this code is work, I've 92% accuracy on test set from modules import ResBlock, SampleResBlock, Conv2d from torch import tensor import torch import numpy as np import torch.nn.functional as F from torch import nn class ResGroup(nn.Module): """ resblocks with different input and output size. """ def ...
28.934426
79
0.6
9e9cbd6df70fffa6bfa59cb04ed7652544c4e54f
9,333
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/aio/operations/_virtual_machine_extension_images_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# 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) AutoRest Code Generator. # Changes may ...
41.852018
211
0.678989
9e9ccef69806fda5db3b3abe05f103c445b2cde8
834
py
Python
Text-Comparison/compare.py
rgabeflores/Scripts
c8138cb4543e576924de2107abb5a65f0b84264c
[ "MIT" ]
2
2018-05-12T10:58:51.000Z
2021-11-16T11:52:27.000Z
src/Text-Comparison/textComparison.py
learn-py/Posts
da394236db0a52c93ca1c0374ad121b263555272
[ "MIT" ]
null
null
null
src/Text-Comparison/textComparison.py
learn-py/Posts
da394236db0a52c93ca1c0374ad121b263555272
[ "MIT" ]
null
null
null
import sys import logging from difflib import ndiff, context_diff ''' Compares text in two files. Made for testing generated output from student assignment submissions against expected output from correct code. Prints results to screen and logs to file. ''' logging.basicConfig(filename='results.log', leve...
24.529412
78
0.640288
9e9cdd42cba83562d6cccdd196920269ad142e83
218
py
Python
src/homework/main(10).py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
null
null
null
src/homework/main(10).py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-02-03T03:41:28.000Z
2018-02-03T03:41:28.000Z
src/homework/main(10).py
acc-cosc-1336/cosc-1336-spring-2018-BarndonSelesino
c2ee6a9914383716347765f148d2d15b9e3211b7
[ "MIT" ]
1
2018-04-13T01:17:50.000Z
2018-04-13T01:17:50.000Z
#write import statements for Player and Die class from player import from die import #Create an instance of the Main class and call/execute the roll_doubles method class Main(): def run(self): self.Main = main
27.25
78
0.761468
9e9d157b3b1763744a7173d7046e4ca475cc726d
1,049
py
Python
skorecard/utils/dataframe.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
31
2021-06-10T13:35:07.000Z
2022-03-30T12:34:26.000Z
skorecard/utils/dataframe.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
50
2021-06-10T10:56:34.000Z
2022-01-26T18:23:31.000Z
skorecard/utils/dataframe.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
2
2021-09-09T00:44:17.000Z
2021-09-24T17:08:32.000Z
import pandas as pd from typing import List, Tuple from skorecard.utils import NotInstalledError try: import dabl as db except ModuleNotFoundError: db = NotInstalledError("dabl") def detect_types(X: pd.DataFrame) -> Tuple[List, List]: """Detects numerical and categorical columns. Wrapper around `da...
28.351351
111
0.70734
9e9d4ff31175c66325e40ab35546faaf6c943399
1,717
py
Python
model.py
panmari/seeing3d
0a73576c70392276065094c96185e5ef53d6c2c1
[ "MIT" ]
56
2015-05-28T17:30:30.000Z
2022-01-25T07:15:40.000Z
model.py
panmari/seeing3d
0a73576c70392276065094c96185e5ef53d6c2c1
[ "MIT" ]
4
2015-02-25T17:36:01.000Z
2019-10-16T07:43:36.000Z
model.py
dimatura/seeing3d
0a73576c70392276065094c96185e5ef53d6c2c1
[ "MIT" ]
14
2015-02-20T19:48:14.000Z
2020-07-10T06:41:12.000Z
import sys import json import Image import numpy as np import path class Model(object): def __init__(self, model_dir): self.model_dir = path.path(model_dir) self.metadata_path = path.path('metadata.json') self.thumb_render_path = path.path('thumb.render.png') self.thumb_render_l...
29.603448
88
0.680256
9e9d9fca42db0f7bf88e1e133770c919d9ccd72e
4,599
py
Python
hivemind/server/dht_handler.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
11
2021-06-21T19:56:01.000Z
2021-12-22T09:06:09.000Z
hivemind/server/dht_handler.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
hivemind/server/dht_handler.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
import threading from functools import partial from typing import Sequence, Dict, List, Tuple, Optional from hivemind.dht import DHT, DHTNode, DHTExpiration, DHTValue from hivemind.client.expert import RemoteExpert from hivemind.server.expert_uid import (ExpertUID, ExpertPrefix, FLAT_EXPERT, Coordinate, ...
52.862069
116
0.700587
9e9dbdb21098ec6c40f26d0936a3b0f80d838e8a
7,157
py
Python
selsum/tasks/selsum_task.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
34
2021-09-10T17:10:10.000Z
2022-03-28T05:12:07.000Z
selsum/tasks/selsum_task.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
null
null
null
selsum/tasks/selsum_task.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
3
2021-11-20T08:21:19.000Z
2022-03-28T05:12:14.000Z
from fairseq.tasks import FairseqTask, register_task from selsum.tasks.abs_task import AbsTask, MAX_DOC_LEN from fairseq.data.raw_label_dataset import RawLabelDataset import torch as T import numpy as np from fairseq.data.data_utils import load_indexed_dataset from selsum.utils.helpers.io import make_bin_path, get_bin_...
47.085526
90
0.599972
9e9dbe010f5b2a2cc619ace313b344c9b0f654cd
628
py
Python
hs_core/migrations/0043_auto_20190621_0308.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/migrations/0043_auto_20190621_0308.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/migrations/0043_auto_20190621_0308.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.18 on 2019-06-21 03:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_core', '0042_auto_20190402_1339'), ] operations = [ migrations.AlterField( model_name='contributor...
24.153846
73
0.590764
9e9dcaf785e2433b013198e20dfa3a3ebcbfaa99
5,367
py
Python
process.py
w4c/language-models-are-knowledge-graphs-pytorch
429e701993b3746b42d5433ebb8ad7a049eae11d
[ "MIT" ]
113
2020-11-26T20:50:22.000Z
2022-03-21T23:36:03.000Z
process.py
qianrenjian/language-models-are-knowledge-graphs-pytorch
3ee8b294aa668f515c999e0c8b467335b5070d13
[ "MIT" ]
11
2020-12-11T00:29:57.000Z
2021-11-22T16:26:00.000Z
process.py
qianrenjian/language-models-are-knowledge-graphs-pytorch
3ee8b294aa668f515c999e0c8b467335b5070d13
[ "MIT" ]
32
2020-11-28T03:16:34.000Z
2022-03-31T04:44:04.000Z
from utils import compress_attention, create_mapping, BFS, build_graph, is_word from multiprocessing import Pool import spacy import en_core_web_md import torch from transformers import AutoTokenizer, BertModel, GPT2Model from constant import invalid_relations_set def process_matrix(attentions, layer_idx = -1, head_n...
34.403846
162
0.641327
9e9dd5bd3a80285f9a0196220bbc9d8a7964416d
89
py
Python
factorial.py
hubenjm/projecteuler
544596a6693a2e64a88e1d4606ce85480486dab5
[ "MIT" ]
null
null
null
factorial.py
hubenjm/projecteuler
544596a6693a2e64a88e1d4606ce85480486dab5
[ "MIT" ]
null
null
null
factorial.py
hubenjm/projecteuler
544596a6693a2e64a88e1d4606ce85480486dab5
[ "MIT" ]
null
null
null
def factorial(n): if n == 1: return 1 return n*factorial(n-1) print(factorial(200))
12.714286
24
0.662921
9e9dd81ab4e6ae356757ae430a04b903873ecdc6
1,092
py
Python
ClassifierNew.py
gaurav8341/SkinCancerCapstone
078005783c08b13b6ddd0379233c8b69b37da401
[ "MIT" ]
null
null
null
ClassifierNew.py
gaurav8341/SkinCancerCapstone
078005783c08b13b6ddd0379233c8b69b37da401
[ "MIT" ]
1
2021-02-24T13:55:38.000Z
2021-04-17T09:48:01.000Z
ClassifierNew.py
gaurav8341/SkinCancerCapstone
078005783c08b13b6ddd0379233c8b69b37da401
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch import nn class Flatten(nn.Module): def forward(self, input): return input.view(input.size(0), -1) class ClassifierNew(nn.Module): def __init__(self, inp = 2208, h1=1024, out = 102, d=0.35): super().__init__() self.ap = nn.A...
31.2
77
0.543956
9e9e1ffb9b1d04720996eb50192abd99899f7c76
32,874
py
Python
escape/escape/orchest/ros_API.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
escape/escape/orchest/ros_API.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
escape/escape/orchest/ros_API.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
# Copyright 2017 Janos Czentye # # 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, s...
40.041413
94
0.654134
9e9e47ce8e770993d29d08fccea6d2968db0dc19
3,918
py
Python
test/test_httpdownload.py
richardhsu/naarad
665f58f76c2412e125f2be2c111ebc7cdf6ff92e
[ "Apache-2.0" ]
180
2015-01-05T13:27:16.000Z
2021-02-08T04:11:47.000Z
test/test_httpdownload.py
richardhsu/naarad
665f58f76c2412e125f2be2c111ebc7cdf6ff92e
[ "Apache-2.0" ]
58
2015-01-07T10:25:17.000Z
2020-11-05T03:40:23.000Z
test/test_httpdownload.py
richardhsu/naarad
665f58f76c2412e125f2be2c111ebc7cdf6ff92e
[ "Apache-2.0" ]
60
2015-01-06T09:23:33.000Z
2021-02-11T04:29:33.000Z
# coding=utf-8 """ Copyright 2013 LinkedIn Corp. 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...
27.985714
117
0.723328
9e9e4fc4846753613024d62617fd88798ef6e724
56,019
py
Python
disnake/interactions/base.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
null
null
null
disnake/interactions/base.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
null
null
null
disnake/interactions/base.py
UT1C/disnake
4f1e3a78b662b42ef5dbe10c75c16283c3010460
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2015-2021 Rapptz Copyright (c) 2021-present Disnake Development 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 restrictio...
37.321119
147
0.610596
9e9e51272fdc5431e7737f42edd9a6f4b1443163
10,493
py
Python
pyiron/lammps/potential.py
caglayanoaras/pyiron
f656f1bc89393e8c5a4175229937f7b169cf3786
[ "BSD-3-Clause" ]
null
null
null
pyiron/lammps/potential.py
caglayanoaras/pyiron
f656f1bc89393e8c5a4175229937f7b169cf3786
[ "BSD-3-Clause" ]
null
null
null
pyiron/lammps/potential.py
caglayanoaras/pyiron
f656f1bc89393e8c5a4175229937f7b169cf3786
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) Max-Planck-Institut für Eisenforschung GmbH - Computational Materials Design (CM) Department # Distributed under the terms of "New BSD License", see the LICENSE file. from __future__ import print_function from ast import literal_eval import numpy as np import pandas as pd import shutil ...
35.329966
119
0.595635
9e9e5997de3c5da8e7267347dc96bfb824409953
5,012
py
Python
detectron/tests/test_restore_checkpoint.py
sitingshen/Detectron-ZZNet
8cea7762ead8998be3ca0c1446bc2587439dcf38
[ "Apache-2.0" ]
23
2019-04-07T16:25:54.000Z
2020-09-27T22:29:17.000Z
detectron/tests/test_restore_checkpoint.py
sitingshen/Detectron-ZZNet
8cea7762ead8998be3ca0c1446bc2587439dcf38
[ "Apache-2.0" ]
4
2019-07-04T07:43:02.000Z
2021-01-12T08:00:14.000Z
detectron/tests/test_restore_checkpoint.py
sitingshen/Detectron-ZZNet
8cea7762ead8998be3ca0c1446bc2587439dcf38
[ "Apache-2.0" ]
4
2019-04-16T07:36:37.000Z
2020-07-02T12:40:30.000Z
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
37.684211
81
0.730048
9e9e806b29116f3fa1b91a7edd2b8021281f04b6
3,036
py
Python
tools/custom_torch_modules.py
alessandrodepalma/oval-bab
014b6ee5071508430c8e515bbae725306db68fe1
[ "MIT" ]
6
2021-06-28T18:06:53.000Z
2022-03-09T09:00:50.000Z
tools/custom_torch_modules.py
alessandrodepalma/oval-bab
014b6ee5071508430c8e515bbae725306db68fe1
[ "MIT" ]
null
null
null
tools/custom_torch_modules.py
alessandrodepalma/oval-bab
014b6ee5071508430c8e515bbae725306db68fe1
[ "MIT" ]
2
2021-06-28T18:06:13.000Z
2021-09-03T11:24:26.000Z
from torch import nn import torch class Flatten(nn.Module): def forward(self, x): self.in_shape = (-1, *x.shape[1:]) return torch.flatten(x, start_dim=1) def inverse(self, inp): # Manually provide inverse operator. return inp.reshape(self.in_shape) class View(nn.Module): ...
26.867257
76
0.627141
9e9e849b1a725a716ba2f417f14d1298b0f83b6d
10,714
py
Python
sacla/scripts/backups/sacla3_Chip_Collect_v6.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/sacla3_Chip_Collect_v6.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
sacla/scripts/backups/sacla3_Chip_Collect_v6.py
beamline-i24/DiamondChips
02fb58a95ad2c1712c41b641eb5f197d688c54c3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import numpy as np import pv, os, re, sys import time, math, string from time import sleep from ca import caput, caget #import setup_beamline as sup from sacla3_Chip_StartUp_v6 import scrape_parameter_file from sacla3_Chip_StartUp_v6 import get_format ############################################## #...
31.511765
102
0.584936
9e9ec7507c50ca53d7863a3a3ab6b2558bbb431a
6,729
py
Python
swagger_client/models/post_test_artifact.py
radon-h2020/radon-ctt-cli
3120b748c73e99d81d0cac5037e393229577d640
[ "Apache-2.0" ]
null
null
null
swagger_client/models/post_test_artifact.py
radon-h2020/radon-ctt-cli
3120b748c73e99d81d0cac5037e393229577d640
[ "Apache-2.0" ]
null
null
null
swagger_client/models/post_test_artifact.py
radon-h2020/radon-ctt-cli
3120b748c73e99d81d0cac5037e393229577d640
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ RADON CTT Server API This is API of the RADON Continuous Testing Tool (CTT) Server: <a href=\"https://github.com/radon-h2020/radon-ctt\">https://github.com/radon-h2020/radon-ctt<a/> # noqa: E501 OpenAPI spec version: 1.0.0-oas3 Generated by: https://github.com/swagger-api/sw...
30.866972
178
0.612127
9e9ec99456b780fd72355407c234bb4ba8e885ed
11,534
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/tests/functional/test_functional.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/tests/functional/test_functional.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo_messaging/tests/functional/test_functional.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# # 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 # ...
39.910035
78
0.597885
9e9ececc22fa51b982e5ef063b6957eaf3573226
5,390
py
Python
code/MCTS.py
ankurshaswat/AlphaGo-Zero
54d45e5ed4a3ee3b5a2e73bed4a04d6160cec6ef
[ "MIT" ]
1
2020-12-04T18:39:04.000Z
2020-12-04T18:39:04.000Z
code/MCTS.py
ankurshaswat/AlphaGo-Zero
54d45e5ed4a3ee3b5a2e73bed4a04d6160cec6ef
[ "MIT" ]
null
null
null
code/MCTS.py
ankurshaswat/AlphaGo-Zero
54d45e5ed4a3ee3b5a2e73bed4a04d6160cec6ef
[ "MIT" ]
null
null
null
import math import numpy as np EPS = 1e-8 class MCTS(): """ This class handles the MCTS tree. """ def __init__(self, game, nnet, args): self.game = game self.nnet = nnet self.args = args self.Qsa = {} # stores Q values for s,a (as defined in the paper) se...
37.692308
145
0.541002
9e9f507a9aa1fbbe7baa9a92d3ee4532faa86ff9
1,266
py
Python
tests/test_provider_llomgui_openshift.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_llomgui_openshift.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_llomgui_openshift.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_llomgui_openshift.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:23:47 UTC) def test_provider_import(): import terrascript.provider.llomgui.openshift def test_resource_import(): from terrascript.resource.llomgui.openshift import openshift_build_config from terra...
32.461538
82
0.793049
9e9f9b62a7ff1e7ba3b5045f38c6aaa0c4b05049
25,828
py
Python
sdks/python/appcenter_sdk/models/LogFlowDevice.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/LogFlowDevice.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/LogFlowDevice.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class LogFlowDevice(...
33.070423
505
0.642404
9e9fb2244a4c16a89a5216928022a46aa0e6fcad
4,898
py
Python
shadowreader/utils/conf.py
luckymike/shadowreader
831fe8fbc8f980337285caabe24512b6ba73be11
[ "Apache-2.0" ]
1
2019-11-03T11:34:55.000Z
2019-11-03T11:34:55.000Z
shadowreader/utils/conf.py
NP-compete/shadowreader
b941797edbe2286aefdab714c30784b0b94fd5cb
[ "Apache-2.0" ]
null
null
null
shadowreader/utils/conf.py
NP-compete/shadowreader
b941797edbe2286aefdab714c30784b0b94fd5cb
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 Edmunds.com, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softw...
36.552239
109
0.672724
9e9fc696bdcede070ae6b554c8fc21e884c0426d
9,920
py
Python
feincms/admin/item_editor.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
325
2015-01-07T08:20:09.000Z
2022-03-22T02:55:13.000Z
feincms/admin/item_editor.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
148
2015-01-09T06:19:35.000Z
2022-01-07T15:36:35.000Z
feincms/admin/item_editor.py
songshansitulv/feincms
47dfad9a50dcc3498814b70494a09006ef9d8780
[ "BSD-3-Clause" ]
109
2015-01-13T09:30:20.000Z
2022-01-03T09:24:07.000Z
# ------------------------------------------------------------------------ # coding=utf-8 # ------------------------------------------------------------------------ from __future__ import absolute_import, unicode_literals import copy import logging import warnings from django import VERSION, forms from django.contri...
38.153846
88
0.618448
9e9fd8ffea516e0c45851329cb64faf9f287cfc0
2,545
py
Python
DeepJudge/whitebox_generation.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
12
2022-01-11T08:17:16.000Z
2022-03-31T12:58:57.000Z
DeepJudge/whitebox_generation.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
null
null
null
DeepJudge/whitebox_generation.py
Testing4AI/DeepJudge
5f3a43cd30f7cd858cfbf6d2f78c53155aec4b6d
[ "MIT" ]
null
null
null
import argparse import tensorflow as tf from tensorflow.keras.models import load_model import numpy as np import os import time from neuron_fuzz import NeuronFuzzing parser = argparse.ArgumentParser(description='DeepJudge white-box test case generation process') parser.add_argument('--model', required=True, type=str,...
35.84507
126
0.690766
9e9fe48cac95dcc5257c97a71c2e00f615ca7f0d
12,698
py
Python
qiskit_experiments/library/characterization/analysis/cr_hamiltonian_analysis.py
mriedem/qiskit-experiments
b40cb9887061136e26bffd62ee07d5afe79af2b0
[ "Apache-2.0" ]
1
2022-03-17T05:27:28.000Z
2022-03-17T05:27:28.000Z
qiskit_experiments/library/characterization/analysis/cr_hamiltonian_analysis.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
null
null
null
qiskit_experiments/library/characterization/analysis/cr_hamiltonian_analysis.py
dongcc/qiskit-experiments
894dcf41ac69ace9e6a0a3c4800d4b6994ac3b5a
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
39.434783
110
0.537486
9ea00323e4cdb7b32c5a4ec18c146ec417813e0e
6,071
py
Python
krllint/linter.py
d4nuu8/krlcodestyle
2f9376cdae14c201364d9c31b4c19a8ff2f708d2
[ "MIT" ]
6
2018-12-04T23:21:53.000Z
2021-07-01T01:24:38.000Z
krllint/linter.py
d4nuu8/krlcodestyle
2f9376cdae14c201364d9c31b4c19a8ff2f708d2
[ "MIT" ]
null
null
null
krllint/linter.py
d4nuu8/krlcodestyle
2f9376cdae14c201364d9c31b4c19a8ff2f708d2
[ "MIT" ]
3
2020-03-09T04:25:27.000Z
2021-11-15T18:42:35.000Z
# -*- coding: utf-8 -*- """ Checks and automatically fixes KRL (KUKA Robot Language) code. """ import os from argparse import ArgumentParser, Action import krllint import krllint.rules from .tools import get_parameters from .parameters import Parameters from .api import RULES from .reporter import Message class Li...
30.355
80
0.622467
9ea012c08defa251ac16718c170dd02e4420f58e
1,220
py
Python
rio_tiler_mosaic/methods/base.py
kylebarron/rio-tiler-mosaic
d1add30c65b1ffd08dd82f58be67d5c8d001d7bf
[ "MIT" ]
null
null
null
rio_tiler_mosaic/methods/base.py
kylebarron/rio-tiler-mosaic
d1add30c65b1ffd08dd82f58be67d5c8d001d7bf
[ "MIT" ]
null
null
null
rio_tiler_mosaic/methods/base.py
kylebarron/rio-tiler-mosaic
d1add30c65b1ffd08dd82f58be67d5c8d001d7bf
[ "MIT" ]
null
null
null
"""rio-tiler-mosaic.methods abc class.""" import abc import numpy # Python 2 and 3 compat # see https://stackoverflow.com/a/38668373 ABC = abc.ABCMeta("ABC", (object,), {"__slots__": ()}) class MosaicMethodBase(ABC): """Abstract base class for rio-tiler-mosaic methods objects.""" def __init__(self): ...
19.365079
71
0.528689
9ea035dcb718d6a85bf1113e21d3817c0feb3147
13,585
py
Python
src/ProcessWork/scripts/rebuild_ProcessWork.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
3
2019-11-26T05:33:47.000Z
2020-05-18T06:49:41.000Z
src/ProcessWork/scripts/rebuild_ProcessWork.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
src/ProcessWork/scripts/rebuild_ProcessWork.py
xylsxyls/xueyelingshuan
61eb1c7c4f76c3eaf4cf26e4b2b37b6ed2abc5b9
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import os import sys import time import ctypes import shutil import subprocess IsPy3 = sys.version_info[0] >= 3 if IsPy3: import winreg else: import codecs import _winreg as winreg BuildType = 'Release' IsRebuild = True Build = 'Rebuild' Update = False Copy = False CleanAl...
38.160112
195
0.595804
9ea03a12956518f3805df2429e450f351a20dda1
2,366
py
Python
scripts/configs.py
AmiEis/highway-env
7477d8234aa34447292ed92e7da547eac20f9d8e
[ "MIT" ]
null
null
null
scripts/configs.py
AmiEis/highway-env
7477d8234aa34447292ed92e7da547eac20f9d8e
[ "MIT" ]
null
null
null
scripts/configs.py
AmiEis/highway-env
7477d8234aa34447292ed92e7da547eac20f9d8e
[ "MIT" ]
null
null
null
large_obs_dims = (256, 64) #Use with DQN, TD3, SAC small_obs_dims = (160, 64) simulation_frequency = 6 policy_frequency = 2 vehicles_density = 1 right_lane_reward = 0.01 high_speed_reward = 0.1 collision_reward = -3.0 reward_rear_brake = -0.3 reward_off_road = -3.0 reward_front_dist = -0.3 reward_non_centered = -0.03...
26.886364
78
0.642012
9ea046a078a4ade69e3d29d60e3b566fe73d541c
191
py
Python
terrascript/stdlib/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/stdlib/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/stdlib/r.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/stdlib/r.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21.222222
79
0.764398
9ea060bf697105dde7aac4909fad982d7cceff5c
2,540
py
Python
rhucrl/agent/ep_opt.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl/agent/ep_opt.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl/agent/ep_opt.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Python Script Template.""" import math import numpy as np import torch from rllib.agent import PPOAgent from rllib.dataset.utilities import stack_list_of_tuples from torch.distributions.uniform import Uniform class EPOPTAgent(PPOAgent): """EP-OPT Agent. References ---------- Rajeswaran, A., Ghotr...
34.324324
87
0.637795
9ea0671e52a7475dbb56e295b31e98dcde541a28
48,405
py
Python
bilby/bilby_mcmc/sampler.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
bilby/bilby_mcmc/sampler.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
bilby/bilby_mcmc/sampler.py
deepchatterjeeligo/bilby
6532c63d0d970ad33478ae0b1c28d4c570b74047
[ "MIT" ]
null
null
null
import datetime import os import signal import time from collections import Counter import numpy as np import pandas as pd from ..core.result import rejection_sample from ..core.sampler.base_sampler import MCMCSampler, ResumeError, SamplerError from ..core.utils import check_directory_exists_and_if_not_mkdir, logger,...
35.829016
94
0.60252
9ea079893f93f6e2b169b6a0a027f22b15f84d0a
263
py
Python
test/integrated/storage_Y/cli/dev/feature_B/make.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
87
2022-02-01T12:47:48.000Z
2022-03-31T10:46:34.000Z
test/integrated/storage_Y/cli/dev/feature_B/make.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
28
2022-02-01T10:16:42.000Z
2022-03-24T10:53:01.000Z
test/integrated/storage_Y/cli/dev/feature_B/make.py
orkhanshirin/py-dynacli
6891d922bfb403756e8ebb97e5f9698cdeb725f9
[ "MIT" ]
4
2022-02-09T14:10:32.000Z
2022-03-28T16:45:19.000Z
def make(env: str, is_new: bool) -> None: """ make the env if it is a new one Args: env (str): name of the env is_new (str): if it is a new env or not Return: None """ print(f"Initializing the {env} if it is a {is_new}")
21.916667
56
0.555133
9ea07d5ca60daf24c5cef43ba8e90617dc8388f9
3,328
py
Python
xcessiv/presets/tests/test_cvsetting.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
1,362
2017-05-23T15:02:18.000Z
2022-03-28T22:42:21.000Z
xcessiv/presets/tests/test_cvsetting.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
40
2017-05-23T17:59:05.000Z
2019-07-03T13:08:14.000Z
xcessiv/presets/tests/test_cvsetting.py
KhaledTo/xcessiv
a48dff7d370c84eb5c243bde87164c1f5fd096d5
[ "Apache-2.0" ]
123
2017-05-24T05:49:34.000Z
2022-02-06T17:54:32.000Z
from __future__ import absolute_import, print_function, division, unicode_literals import unittest from sklearn.datasets import load_iris from xcessiv import functions from xcessiv.presets import cvsetting class TestKFold(unittest.TestCase): def setUp(self): self.X, self.y = load_iris(return_X_y=True) ...
28.93913
101
0.704026
9ea1364682be9b5b734b2695a77c27e9b780336f
16,790
py
Python
oscar/lib/python2.7/site-packages/IPython/testing/iptest.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/testing/iptest.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/IPython/testing/iptest.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """IPython Test Suite Runner. This module provides a main entry point to a user script to test IPython itself from the command line. There are two ways of running this script: 1. With the syntax `iptest all`. This runs our entire test suite by calling this script (with different arg...
37.815315
127
0.61757
9ea142ecdd94c589a44986a0d1e63a4acbb40704
4,098
py
Python
intersight/models/deviceinfo_serial_number_info_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/deviceinfo_serial_number_info_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/deviceinfo_serial_number_info_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 DeviceinfoSerialNumberInfoList(object): """ N...
26.61039
95
0.576623
9ea148223a5c6a9c9064dd2096f42c1cb432c824
1,295
py
Python
backend/apps/volontulo/tests/serializers/test_offer.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/tests/serializers/test_offer.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
backend/apps/volontulo/tests/serializers/test_offer.py
ponycalypsenow/volontulo
8f7886aa3c8ea5ec0ca84711a089bea60fb69598
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ .. module:: test_offer """ from urllib.parse import urlparse from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase from django.test.client import RequestFactory from apps.volontulo.models import Offer from apps.volontulo.models import OfferImage f...
27.553191
78
0.655598
9ea15ca1b11e8e61c8e8a93cf27b1ce69e91708f
25,336
py
Python
sagify/commands/cloud.py
barakbl/sagify
ffe3efd773e98e7c3f2afcaaa629740ccf528fd2
[ "MIT" ]
null
null
null
sagify/commands/cloud.py
barakbl/sagify
ffe3efd773e98e7c3f2afcaaa629740ccf528fd2
[ "MIT" ]
null
null
null
sagify/commands/cloud.py
barakbl/sagify
ffe3efd773e98e7c3f2afcaaa629740ccf528fd2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import os import sys import click from sagify.api import cloud as api_cloud from sagify.commands import ASCII_LOGO from sagify.commands.custom_validators.validators import validate_tags from sagify.log import logger from sagify.config.co...
27.53913
123
0.634986
9ea16b94f11593d8adeaf7aa5183361696b6f901
2,226
py
Python
data/transcoder_evaluation_gfg/python/MAXIMUM_SUM_BITONIC_SUBARRAY.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/MAXIMUM_SUM_BITONIC_SUBARRAY.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/MAXIMUM_SUM_BITONIC_SUBARRAY.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-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. # def f_gold ( arr , n ) : msis = [ None ] * n msds = [ None ] * n max_sum = 0 msis [ 0 ] = arr [ 0 ] for i in...
46.375
204
0.429021
9ea16ee4dca4a2eb4c5da2cc467f2635778d8b81
26,156
py
Python
main.py
ashmoreinc/Soundboard
4810eaeb92ebeaa887f5e8bc0c44909cccd21137
[ "MIT" ]
1
2018-11-05T22:15:42.000Z
2018-11-05T22:15:42.000Z
main.py
ashmoreinc/Soundboard
4810eaeb92ebeaa887f5e8bc0c44909cccd21137
[ "MIT" ]
null
null
null
main.py
ashmoreinc/Soundboard
4810eaeb92ebeaa887f5e8bc0c44909cccd21137
[ "MIT" ]
null
null
null
from tkinter import filedialog as tkFileDialog import tkinter as tk from tkinter.messagebox import askyesno as tkAskYesNo from tkinter.messagebox import showinfo as tkShowInfo import widgets import winsound as wsnd import csv from tempfile import NamedTemporaryFile import shutil from os import remove as ...
39.45098
129
0.567786
9ea1732cdc08a0a73a90b7ab33934e4309089fa8
15,030
py
Python
tests/integration/server/api/roles_api_test.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
tests/integration/server/api/roles_api_test.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
tests/integration/server/api/roles_api_test.py
Nonj/sawtooth-next-directory
32b3de8efca89b4485af785fe955974e76c093db
[ "Apache-2.0" ]
null
null
null
# 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 ...
37.295285
88
0.612176
9ea17fe4fc781517a39bc401a8825abae9874c84
4,116
py
Python
appengine/monorail/framework/test/validate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/framework/test/validate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/framework/test/validate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """This file provides unit tests for Validate functions.""" from __future__ import print_functi...
31.906977
79
0.616618
9ea181750de022b12984658f6da5252fa80f4c2f
1,505
py
Python
setup.py
raspberrypi/picamera2
79ed21438902bb19fd73f62c2620bbb12b02e2c3
[ "BSD-2-Clause" ]
71
2022-02-15T14:24:34.000Z
2022-03-29T16:36:46.000Z
setup.py
raspberrypi/picamera2
79ed21438902bb19fd73f62c2620bbb12b02e2c3
[ "BSD-2-Clause" ]
37
2022-02-16T12:35:45.000Z
2022-03-31T13:18:42.000Z
setup.py
raspberrypi/picamera2
79ed21438902bb19fd73f62c2620bbb12b02e2c3
[ "BSD-2-Clause" ]
15
2022-02-16T12:12:57.000Z
2022-03-31T15:17:58.000Z
#! /usr/bin/env python3 # Copyright (c) 2021-2022 Raspberry Pi & Raspberry Pi Foundation # # SPDX-License-Identifier: BSD-2-Clause import os from setuptools import setup reqs = ['numpy', 'PiDNG', 'piexif', 'pillow', 'simplejpeg', 'v4l2-python3', 'python-prctl'] allreqs = reqs + ['pyopengl', 'PyQt5'] if os.getenv('NO...
35
119
0.66711
9ea1a03fb151778a85a591df5b0d72dc949c6630
5,284
py
Python
src/scripts/add_pval_flags.py
secimTools/gait-gm
758394addb95b09e794132a23a1f7e95ba39df0b
[ "MIT" ]
null
null
null
src/scripts/add_pval_flags.py
secimTools/gait-gm
758394addb95b09e794132a23a1f7e95ba39df0b
[ "MIT" ]
1
2021-07-09T11:54:15.000Z
2021-07-09T11:54:15.000Z
src/scripts/add_pval_flags.py
secimTools/gait-gm
758394addb95b09e794132a23a1f7e95ba39df0b
[ "MIT" ]
1
2021-02-23T18:12:19.000Z
2021-02-23T18:12:19.000Z
#!/usr/bin/env python ###################################################################################### # AUTHOR: Francisco Huertas <f.huertas@ufl.edu> # CONTRIBUTORS: Alison Morse <ammorse@ufl.edu>, Oleksandr Moskalenko <om@rc.ufl.edu> # DESCRIPTION: Add flags to a Differential Expression Analysis Dataset. # Outp...
28.717391
96
0.575322
9ea1a788b6926c10736ddde7d050212749a0c048
591
py
Python
telegram_bot/modulus/base.py
stPhoenix/project_osirius
35718b2ddb2f6de86011199ad93238faa67f8957
[ "MIT" ]
1
2020-07-27T02:31:52.000Z
2020-07-27T02:31:52.000Z
telegram_bot/modulus/base.py
stPhoenix/project_osirius
35718b2ddb2f6de86011199ad93238faa67f8957
[ "MIT" ]
18
2020-02-11T21:21:56.000Z
2022-02-26T03:41:40.000Z
telegram_bot/modulus/base.py
stPhoenix/project_osirius
35718b2ddb2f6de86011199ad93238faa67f8957
[ "MIT" ]
null
null
null
class BaseModule: def __init__(self, **kwargs): self.langs = kwargs['langs'] self.DESTINATIONS = None self.setup_destinations() self.dispatch_destination = kwargs['dispatch_destination'] self.users = kwargs['users'] self.students = kwargs['students'] self.menu...
31.105263
66
0.62775
9ea1a7e1d67c6ea05cfc3c3ece0e01ff53e08640
960
py
Python
grouper/fe/handlers/perf_profile.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/fe/handlers/perf_profile.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
grouper/fe/handlers/perf_profile.py
TimYagan/merou
3d3cd5e17eab5ffe259f7b41a925af6f47ec8988
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING from tornado.web import RequestHandler from grouper.models.base.session import Session from grouper.perf_profile import FLAMEGRAPH_SUPPORTED, get_flamegraph_svg, InvalidUUID if TYPE_CHECKING: from typing import Any # Don't use GrouperHandler here as we don't want to count these...
32
97
0.660417
9ea1d03d7a3e9ebc767e517e886d20b965958b95
449
py
Python
util/checks.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
1
2019-09-15T14:31:05.000Z
2019-09-15T14:31:05.000Z
util/checks.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
null
null
null
util/checks.py
Bmbus/DiscordAnalytica
663ebbe83789432804e45929fdea136b957a6237
[ "MIT" ]
null
null
null
from discord.ext import commands def is_on_blacklist(): async def predicate(ctx): data = await ctx.bot.db.find_one({"_id": str(ctx.guild.id)}) blacklist = data["blacklist"] return str(ctx.guild.id) in blacklist return commands.check(predicate) async def in_blacklist(db, guild, channel)...
32.071429
68
0.67706
9ea1e154248bc146b636c368e77062c2a48b6876
2,681
py
Python
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_firefox_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_firefox_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/benchmark_runner/browser_driver/linux_firefox_driver.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2016 Igalia S.L. 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, this list of conditions and the ...
48.745455
98
0.731443
9ea1e157fa8831f0d1fe8b27055a959fbbcb7fe2
1,835
py
Python
Python_files/OD_matrix_estimation_GLS_Oct_weekday_MD_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Oct_weekday_MD_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Oct_weekday_MD_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Jing Zhang" __email__ = "jingzbu@gmail.com" __status__ = "Development" from util import * import numpy as np from numpy.linalg import inv import json # load logit_route_choice_probability_matrix P = zload('../temp_files/logit_route_choice_probability_matrix_ext.pkz') P = np.mat...
27.80303
114
0.661035
9ea1ea9c92c9b016a3f9126c89ee4dc1e73c9f27
18,041
py
Python
tensorflow/python/ops/candidate_sampling_ops.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/ops/candidate_sampling_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/ops/candidate_sampling_ops.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# 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...
47.981383
80
0.719251
9ea21a3d293f9a7e2cef21bac7021703d278ba4f
2,413
py
Python
msticpy/datamodel/entities/geo_location.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
msticpy/datamodel/entities/geo_location.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
msticpy/datamodel/entities/geo_location.py
GiuseppeLaurenza/msticpy
37f96126b1e7ed06d3d140e340cdf86d6eee440b
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """GeoLoca...
26.228261
76
0.551596
9ea2352cfd11226cefd35ecbc5bfd7744be0e44a
519
py
Python
terrascript/provider/davidji99/herokux.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/provider/davidji99/herokux.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/provider/davidji99/herokux.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/provider/davidji99/herokux.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:18:42 UTC) import terrascript class herokux(terrascript.Provider): """Terraform HerokuX provider""" __description__ = "Terraform HerokuX provider" __namespace__ = "davidji99" __name__ = "heroku...
25.95
74
0.720617