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
7968922019c1478e87cd53af26fd74884d97bc92
31,586
py
Python
sktime/utils/tests/test_data_loading.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-10-05T12:17:41.000Z
2020-10-19T08:57:50.000Z
sktime/utils/tests/test_data_loading.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
2
2020-04-20T12:26:42.000Z
2020-04-22T17:09:14.000Z
sktime/utils/tests/test_data_loading.py
brettkoonce/sktime
6336247bad0dac8692aa4b911c267f401dea4163
[ "BSD-3-Clause" ]
1
2022-02-14T18:19:01.000Z
2022-02-14T18:19:01.000Z
import os import tempfile import numpy as np from sktime.utils.load_data import TsFileParseException from sktime.utils.load_data import load_from_tsfile_to_dataframe def test_load_from_tsfile_to_dataframe(): """Test the load_from_tsfile_to_dataframe() function. """ # Test that an empty file is classed a...
34.369967
79
0.529728
7968a3838e60e8443c07a6f605dc4a8f89e8789e
18,676
py
Python
dataprep/clean/clean_currency.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
1,229
2019-12-21T02:58:59.000Z
2022-03-30T08:12:33.000Z
dataprep/clean/clean_currency.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
680
2019-12-19T06:09:23.000Z
2022-03-31T04:15:25.000Z
dataprep/clean/clean_currency.py
Waterpine/dataprep-1
4032acb1d1f2c413d4cb000d17e8ffa611315f9f
[ "MIT" ]
170
2020-01-08T03:27:26.000Z
2022-03-20T20:42:55.000Z
""" Clean and validate a DataFrame column containing currencies """ # pylint: disable=too-many-arguments, line-too-long, too-many-locals, too-many-branches, too-many-statements, too-many-return-statements, import json from os import path from operator import itemgetter from typing import Any, List, Union, Optional ...
33.772152
137
0.640662
7968a3f4625f25ae5be74ac4d9cb505115cbcf47
4,979
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_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/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_02_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_02_01/models/__init__.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 ...
29.636905
94
0.748142
7968bbf4f463a61829be1fc961407eaa12d99b9d
308
py
Python
examples/yields.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
206
2021-06-24T16:16:13.000Z
2022-03-31T07:44:17.000Z
examples/yields.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
13
2021-06-24T17:51:36.000Z
2022-02-23T10:07:17.000Z
examples/yields.py
quynhanh-ngx/pytago
de976ad8d85702ae665e97978bc4a75d282c857f
[ "MIT" ]
14
2021-06-26T02:19:45.000Z
2022-03-30T03:02:49.000Z
def main(): my_gen = gen() for x in my_gen: print("Received next number!") print(x) def gen(): print("Yielding next number...") yield 1 print("Yielding next number...") yield 2 print("Yielding next number...") yield 3 if __name__ == '__main__': main()
16.210526
38
0.558442
7968c3ae20d66b30d024f0baa30366788b6bc508
9,541
py
Python
roles/modeling/fast/model.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
roles/modeling/fast/model.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
7
2020-11-13T17:50:07.000Z
2022-02-10T02:17:14.000Z
roles/modeling/fast/model.py
JMFlin/auto-preference-finder
07dd2e6b2b28398ca9bfb6ad328c578eb9987417
[ "MIT" ]
null
null
null
# https://www.tensorflow.org/tutorials/load_data/images # https://www.tensorflow.org/tutorials/keras/overfit_and_underfit # https://www.tensorflow.org/tutorials/keras/save_and_load import tensorflow as tf import logging import os import os.path from tensorflow.keras import layers from google.cloud import storage import...
32.016779
135
0.677812
7968d7dbd1a7f157b919a7577674cf03476c962b
15,240
py
Python
src/test.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
1
2021-09-16T06:24:39.000Z
2021-09-16T06:24:39.000Z
src/test.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
src/test.py
reigHns/RANZCR-CLiP---Catheter-and-Line-Position-Challenge
80d4177bf74f9ffa5f7906687ebe648832ec84e1
[ "Apache-2.0" ]
null
null
null
from src.model_blocks import * import torch.nn as nn import timm from src.activations import Swish_Module from src.config import YAMLConfig import typing import gc from src.utils import * """ Test two pytorch models are the same """ """ This is a testing for RANZCR. Note that the model weights will never match unles...
37.62963
154
0.597638
796902af71ddb5a10440fe24a64d48c092dd88f7
544
py
Python
Chapter19/3_1.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
19
2018-06-28T15:48:47.000Z
2022-01-08T12:40:52.000Z
Chapter19/3_1.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
null
null
null
Chapter19/3_1.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
13
2018-06-30T10:33:52.000Z
2021-12-29T11:31:31.000Z
import time import RPi.GPIO as GPIO import Adafruit_ADS1x15 water_valve_pin = 23 moisture_percentage = 20 GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(water_valve_pin, GPIO.OUT) adc = Adafruit_ADS1x15.ADS1115() channel = 0 GAIN = 1 while True: adc.start_adc(channel, gain=GAIN) moisture_value = adc.get_la...
25.904762
41
0.794118
79690e202ae3175e244d3889a4da7644cb3b14e2
3,098
py
Python
src/py/test_patches_2class.py
rtiglobalhealth/trachoma
5aac19f7af45ed99a14e6712cda7e8c1f4118bbd
[ "Apache-2.0" ]
null
null
null
src/py/test_patches_2class.py
rtiglobalhealth/trachoma
5aac19f7af45ed99a14e6712cda7e8c1f4118bbd
[ "Apache-2.0" ]
null
null
null
src/py/test_patches_2class.py
rtiglobalhealth/trachoma
5aac19f7af45ed99a14e6712cda7e8c1f4118bbd
[ "Apache-2.0" ]
2
2021-01-07T17:21:05.000Z
2021-09-14T19:18:30.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf from tensorflow.keras import layers from tensorflow.keras.applications.resnet50 import preprocess_input import json import os import glob import sys import pandas as p...
29.788462
117
0.668496
7969a64b67b3a5565b1ba8b340899752ad073363
610
py
Python
migrations/versions/2fdabf2bae04_.py
molguin92/MoulinetteBackend
b742da52f4613d457bcdf718a305976c20b62711
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/2fdabf2bae04_.py
molguin92/MoulinetteBackend
b742da52f4613d457bcdf718a305976c20b62711
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/2fdabf2bae04_.py
molguin92/MoulinetteBackend
b742da52f4613d457bcdf718a305976c20b62711
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: 2fdabf2bae04 Revises: ffb338ffe1f7 Create Date: 2016-08-25 23:06:44.798337 """ # revision identifiers, used by Alembic. revision = '2fdabf2bae04' down_revision = 'ffb338ffe1f7' import sqlalchemy as sa from alembic import op def upgrade(): ### commands auto generated by Alembic - ...
22.592593
79
0.695082
7969ce37c79193283ac1a8bd219e77f11b0f4601
2,211
py
Python
setup.py
OpenGeophysics/matrixutils
20ed7ebc06b28499e98bc0ce725abe714a8df957
[ "MIT" ]
1
2021-10-21T04:27:32.000Z
2021-10-21T04:27:32.000Z
setup.py
OpenGeophysics/matrixutils
20ed7ebc06b28499e98bc0ce725abe714a8df957
[ "MIT" ]
3
2018-04-03T03:50:30.000Z
2018-04-12T20:31:49.000Z
setup.py
opengeophysics/matrixutils
20ed7ebc06b28499e98bc0ce725abe714a8df957
[ "MIT" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function """matrixutils Utilities for working with matrices as linear operators """ from setuptools import find_packages try: from numpy.distutils.core import setup except Exception: raise Exception( "Install requires numpy. " "If you use con...
28.346154
74
0.657621
796a321d94e6221da2957b55b95ddf43fb7d4fa8
4,281
py
Python
osgar/tools/log2video.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
12
2017-02-16T10:22:59.000Z
2022-03-20T05:48:06.000Z
osgar/tools/log2video.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
618
2016-08-30T04:46:12.000Z
2022-03-25T16:03:10.000Z
osgar/tools/log2video.py
robotika/osgar
6f4f584d5553ab62c08a1c7bb493fefdc9033173
[ "MIT" ]
11
2016-08-27T20:02:55.000Z
2022-03-07T08:53:53.000Z
#!/usr/bin/python """ Convert logfile to AVI video """ import pathlib from datetime import timedelta try: import cv2 except ImportError: print('\nERROR: Please install OpenCV\n pip install opencv-python\n') try: import numpy as np except ImportError: print('\nERROR: Please install numpy\n pip ...
39.275229
98
0.570895
796a3844bb6ba3dbdf362ad8a38367d264e25b35
3,025
py
Python
vessel_tracking/mcts.py
gmaher/vessel_tracking
3fd31f0b999bcd570199efd0dc7478924a90704e
[ "MIT" ]
1
2019-12-16T23:07:51.000Z
2019-12-16T23:07:51.000Z
vessel_tracking/mcts.py
gmaher/vessel_tracking
3fd31f0b999bcd570199efd0dc7478924a90704e
[ "MIT" ]
null
null
null
vessel_tracking/mcts.py
gmaher/vessel_tracking
3fd31f0b999bcd570199efd0dc7478924a90704e
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, state, terminal=False): self.state = state self.value = 0 self.children = [] self.visits = 0 self.terminal = terminal def terminal(node): index = node.state for i in range(2): if index[i] == 0 or index[i] == N: return Tr...
28.537736
77
0.513388
796a44e888be7f5d00e0326def2a32a1d9323ea5
2,033
py
Python
qnarre/doc/ipython.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/ipython.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/ipython.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix 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...
32.790323
79
0.662568
796a9a215e0cdd97eeba3386573d0bc317671ebf
591
py
Python
Doing Some Math/convert from decimal larger bases.py
dibyanshushekhardey/Data-structures-and-Algorithms-
27a456375897108a3f407fa6082c227cbb393777
[ "MIT" ]
null
null
null
Doing Some Math/convert from decimal larger bases.py
dibyanshushekhardey/Data-structures-and-Algorithms-
27a456375897108a3f407fa6082c227cbb393777
[ "MIT" ]
null
null
null
Doing Some Math/convert from decimal larger bases.py
dibyanshushekhardey/Data-structures-and-Algorithms-
27a456375897108a3f407fa6082c227cbb393777
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 10 23:23:47 2020 @author: Hp """ def convert_from_decimal_larger_bases(number, base): strings = "0123456789ABCDEFGHIJ" result = "" while number > 0: digit = number%base result = strings[digit] + result number = number//base ...
29.55
68
0.64467
796aa37d1f669b4d3a55bfa63bc8f0383d348e25
391
py
Python
NyanPaw/NyanPaw/wsgi.py
vmp32k/NyanPaw
605c1685a228bedf134457f56ca10f8f1194a956
[ "MIT" ]
1
2018-02-06T12:51:44.000Z
2018-02-06T12:51:44.000Z
NyanPaw/NyanPaw/wsgi.py
Nyancoins/NyanPaw
605c1685a228bedf134457f56ca10f8f1194a956
[ "MIT" ]
null
null
null
NyanPaw/NyanPaw/wsgi.py
Nyancoins/NyanPaw
605c1685a228bedf134457f56ca10f8f1194a956
[ "MIT" ]
null
null
null
""" WSGI config for NyanPaw project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
23
78
0.785166
796aac24d2ac335abcd65432fe654ab06f6e0229
1,795
py
Python
src/networks/layers/temporal.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
src/networks/layers/temporal.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
src/networks/layers/temporal.py
abelrguezr/Deep-SAD-PyTorch
268ca21570a4a8dadc331a9dbf26ccade36ae5d9
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from torch.nn.utils import weight_norm # Code from https://github.com/locuslab/TCN class Chomp1d(nn.Module): def __init__(self, chomp_size): super(Chomp1d, self).__init__() self.chomp_size = chomp_size def forward(self, x): return x[:, :, :-self.chom...
38.191489
97
0.623398
796ac280d9731b60af7a3369eb31ffe444fe26c9
13,778
py
Python
helmnet/architectures.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
null
null
null
helmnet/architectures.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
null
null
null
helmnet/architectures.py
sio13/helmnet
514a2035b4e043825d444496eda375b3d954f853
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def getActivationFunction( act_function_name: str, features=None, end=False ) -> nn.Module: """Returns the activation function module given the name Args: act_function_name (str): Name of the activation function, case unsensitive Raises: NotImpl...
29.566524
88
0.561257
796ae12a74e383ecfef06a82ebbda367c20a6edf
1,800
py
Python
tf2onnx/tflite/UniqueOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tf2onnx/tflite/UniqueOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tf2onnx/tflite/UniqueOptions.py
LoicDagnas/tensorflow-onnx
6691850e79047d05d85017573170fd8240393b57
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class UniqueOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset...
35.294118
114
0.711111
796af16bffde6ce44c8d09d1064c719c900047d5
1,689
py
Python
doc/examples/usersguide/quad.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/usersguide/quad.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
doc/examples/usersguide/quad.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
from __future__ import division ############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/...
27.688525
78
0.68206
796afa1be10451266e4dff1575756df7707b07df
13,350
py
Python
crankycoin/services/api_client.py
Rajatkalsotra/crankycoin
41c7ac6226842fb867b5eaa554c3604e998507c2
[ "MIT" ]
162
2017-07-11T11:27:10.000Z
2022-03-17T14:24:12.000Z
crankycoin/services/api_client.py
Rajatkalsotra/crankycoin
41c7ac6226842fb867b5eaa554c3604e998507c2
[ "MIT" ]
14
2017-09-05T08:38:55.000Z
2021-06-05T13:44:10.000Z
crankycoin/services/api_client.py
Rajatkalsotra/crankycoin
41c7ac6226842fb867b5eaa554c3604e998507c2
[ "MIT" ]
63
2017-07-16T13:35:14.000Z
2022-01-09T21:49:38.000Z
import json import requests from crankycoin import config, logger from crankycoin.models.enums import MessageType from crankycoin.models.transaction import Transaction from crankycoin.models.block import BlockHeader class ApiClient(object): FULL_NODE_PORT = config['network']['full_node_port'] NODES_URL = co...
42.246835
111
0.584195
796b004f1bfff6eead480871332922518577ef43
3,694
py
Python
word_mover_distance/model.py
hechmik/word_mover_distance
567b9f4fec3e03ea8bacd65e96868f08cbbd476e
[ "MIT" ]
6
2020-06-28T07:42:21.000Z
2021-05-25T01:47:47.000Z
word_mover_distance/model.py
hechmik/word_mover_distance
567b9f4fec3e03ea8bacd65e96868f08cbbd476e
[ "MIT" ]
null
null
null
word_mover_distance/model.py
hechmik/word_mover_distance
567b9f4fec3e03ea8bacd65e96868f08cbbd476e
[ "MIT" ]
null
null
null
from typing import List import logging from gensim.corpora import Dictionary import numpy as np from pyemd import emd def nbow(document, vocab_len, dictionary): d = np.zeros(vocab_len, dtype=np.double) nbow = dictionary.doc2bow(document) # Word frequencies. doc_len = len(document) for idx, freq in nb...
38.479167
99
0.596643
796b253aec60c08ff4204c5420f9dad0ddaec2d3
1,485
py
Python
src/waveform_parser/base_waveform.py
FAU-LS12-RC/Finding-COs-in-Side-Channel-Traces
fcd93980b55e621a267bd75c04612d25ccb45282
[ "Apache-2.0" ]
3
2021-11-10T19:38:58.000Z
2022-03-31T10:53:19.000Z
src/waveform_parser/base_waveform.py
FAU-LS12-RC/Finding-COs-on-Side-Channel-Traces
fcd93980b55e621a267bd75c04612d25ccb45282
[ "Apache-2.0" ]
null
null
null
src/waveform_parser/base_waveform.py
FAU-LS12-RC/Finding-COs-on-Side-Channel-Traces
fcd93980b55e621a267bd75c04612d25ccb45282
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 class BaseWaveform: def __init__(self): self.dataValues = list() self.horizontalTimeAtFrameStart = 0 self.horizontalTimePerSample = 0 self.horizontalUnit = "" self.verticalUnit = "" self.byteArray = list() def getDataValues(self): tim...
28.018868
77
0.660606
796b6f62800f8de1f07255629ddd50836de4c7f7
1,164
py
Python
air_quality_monitor/src/web_monitor.py
Batov/air_quality_monitor
cb2eae7ba16a38bd8d3372ee2c2644e4b074ee0e
[ "MIT" ]
2
2018-12-06T11:17:56.000Z
2020-06-04T15:18:04.000Z
air_quality_monitor/src/web_monitor.py
Batov/air_quality_monitor
cb2eae7ba16a38bd8d3372ee2c2644e4b074ee0e
[ "MIT" ]
null
null
null
air_quality_monitor/src/web_monitor.py
Batov/air_quality_monitor
cb2eae7ba16a38bd8d3372ee2c2644e4b074ee0e
[ "MIT" ]
null
null
null
from gevent import monkey monkey.patch_all() from time import time import gevent from geventwebsocket import WebSocketServer, WebSocketApplication, Resource from monitor import get_monitor class Application(WebSocketApplication): """ Web App class """ def on_open(self): """ On socket...
24.25
84
0.598797
796b738bbcbbeb3b48c45e5fb1ce9632c138ddc0
3,445
py
Python
treasureisland/Predictor.py
priyamayur/GenomicIslandPrediction
1fc5e10fa18b5bf00b48d21953e7bc1d4a139ed1
[ "MIT" ]
null
null
null
treasureisland/Predictor.py
priyamayur/GenomicIslandPrediction
1fc5e10fa18b5bf00b48d21953e7bc1d4a139ed1
[ "MIT" ]
null
null
null
treasureisland/Predictor.py
priyamayur/GenomicIslandPrediction
1fc5e10fa18b5bf00b48d21953e7bc1d4a139ed1
[ "MIT" ]
1
2021-10-01T18:11:12.000Z
2021-10-01T18:11:12.000Z
from treasureisland.IdentifyGI import IdentifyGI import pickle import pandas as pd from Bio import SeqIO import os from . import models from importlib import resources import time class Predictor: def __init__(self, input_file_path, output_file_path="output"): self.input_file_path = input_file_path ...
37.445652
101
0.62119
796b79e68dd9fe8fcb2cfd2a6128c70dd376b15d
2,082
py
Python
tests/measure_tests/numerical_data_tests/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
tests/measure_tests/numerical_data_tests/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2015-01-18T08:52:30.000Z
2015-01-18T08:52:30.000Z
tests/measure_tests/numerical_data_tests/squared_euclidean_distance_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
# coding=utf-8 from unittest import TestCase from similarityPy.measure.numerical_data.squared_euclidean_distance import SquaredEuclideanDistance from tests import test_logger __author__ = 'cenk' class SquaredEuclideanDistanceTest(TestCase): def test_algorithm(self): test_logger.debug("SquaredEuclideanD...
40.038462
103
0.667627
796b90c1c4ab666692c39074f3e3817ab6c8247f
5,677
py
Python
src/adapter/c3aidatalake.py
joy13975/covidprof_submission
b3c7bb0ebf6fa1557edb8d1ca5d3d41377508e7d
[ "MIT" ]
null
null
null
src/adapter/c3aidatalake.py
joy13975/covidprof_submission
b3c7bb0ebf6fa1557edb8d1ca5d3d41377508e7d
[ "MIT" ]
null
null
null
src/adapter/c3aidatalake.py
joy13975/covidprof_submission
b3c7bb0ebf6fa1557edb8d1ca5d3d41377508e7d
[ "MIT" ]
null
null
null
import requests import pandas as pd def read_data_json(typename, api, body): """ read_data_json directly accesses the C3.ai COVID-19 Data Lake APIs using the requests library, and returns the response as a JSON, raising an error if the call fails for any reason. ------ typename: The type you want...
41.137681
162
0.650696
796c0eb582cd9e2e35ba1dbd68e21d7ab755644c
1,870
py
Python
src-py/resistance/human.py
jasperpato/resistanceAI
e9378c018ce4fe98ecf29f5fcee05765342fb314
[ "MIT" ]
null
null
null
src-py/resistance/human.py
jasperpato/resistanceAI
e9378c018ce4fe98ecf29f5fcee05765342fb314
[ "MIT" ]
null
null
null
src-py/resistance/human.py
jasperpato/resistanceAI
e9378c018ce4fe98ecf29f5fcee05765342fb314
[ "MIT" ]
1
2021-10-18T14:20:05.000Z
2021-10-18T14:20:05.000Z
from agent import Agent class Human(Agent): ''' A human agent. Actions must be input on the command line. ''' def __init__(self, name="Human"): self.name = name def new_game(self, number_of_players, player_number, spies): self.number_of_players = number_of_players self.player_n...
37.4
89
0.604278
796c16d4765554b411b9aaa2b1a2c87fcefaa540
64,329
py
Python
Lib/yp_test/test_bytes.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_bytes.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
Lib/yp_test/test_bytes.py
Syeberman/nohtyP
59d7214a5a5474a03c54f45d79ad4fd037989a79
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""Unit tests for the bytes and bytearray types. XXX This is a mess. Common tests should be moved to buffer_tests.py, which itself ought to be unified with string_tests.py (and the latter should be modernized). """ from yp import * import os import random import re import sys import copy import functools import pick...
39.906328
765
0.591926
796c29d95f40f541efc11b3af0d093682a2be22a
12,336
py
Python
Code/licenses/tests/test_views.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
2
2021-12-15T21:58:43.000Z
2021-12-15T22:17:26.000Z
Code/licenses/tests/test_views.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
null
null
null
Code/licenses/tests/test_views.py
praktianerJones/LSD
8ca07bfcf53347dc466be0cae260387c90f0c2ed
[ "BSD-3-Clause" ]
1
2021-12-19T17:02:02.000Z
2021-12-19T17:02:02.000Z
#SPDX-License-Identifier: BSD-3-Clause ''' test_views.py (C) Copyright 2020 Friedrich Luetze GmbH, J. Luelsdorf <lsd@luetze.de> ''' from django.test import TestCase, Client, override_settings from django.urls import reverse from django.contrib.auth.models import User from licenses.models import License from software.m...
44.215054
116
0.601329
796c619949186846aab6174aa1884fc8cc473f24
1,567
py
Python
15_Three-Sum.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
3
2018-07-05T05:51:10.000Z
2019-05-04T08:35:44.000Z
15_Three-Sum.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
15_Three-Sum.py
Coalin/Daily-LeetCode-Exercise
a064dcdc3a82314be4571d342c4807291a24f69f
[ "MIT" ]
null
null
null
# Actually, this solution is to be finished because it is out of time limits. # The time complexity is n^2, which is still rejected by Leetcode. # Date: 2018-08-13. class Solution(object): def threeSum(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ if len...
29.018519
77
0.439056
796cccb2c035c06cdd2be0c88986da3231c027ed
510
py
Python
examples/basic_example.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
202
2018-02-06T12:13:42.000Z
2022-03-18T16:33:20.000Z
examples/basic_example.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
262
2018-02-06T14:49:15.000Z
2022-03-25T19:49:46.000Z
examples/basic_example.py
chinmay3/NiaPy
b4e5c0f98063e2a9eebd8d750f0922cfca88bc55
[ "MIT" ]
136
2018-02-06T16:55:32.000Z
2022-03-05T17:49:52.000Z
# This is temporary fix to import module from parent folder # It will be removed when package is published on PyPI import sys sys.path.append('../') # End of fix from niapy.algorithms.basic import GreyWolfOptimizer from niapy.task import Task # we will run 10 repetitions of Grey Wolf Optimizer against Pinter problem...
30
74
0.75098
796cd58e146a05794a16283eb23020748bb1d328
3,392
py
Python
chapter-6/app/app_template/actions.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-6/app/app_template/actions.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
chapter-6/app/app_template/actions.py
PacktPublishing/Real-time-Django
07480a089fc0880d752d4ee5740ae6587de93aee
[ "MIT" ]
null
null
null
from .forms import LoginForm, SignupForm from asgiref.sync import async_to_sync from django.template.loader import render_to_string from django.urls import reverse from channels.auth import login, logout from django.contrib.auth.models import User from django.contrib.auth import authenticate from datetime import dateti...
31.407407
172
0.602594
796cf204bd5a3574b89eef8e343b7d67298368fc
504
py
Python
tests/test_middlewares/test_ns_middleware/fixtures.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
tests/test_middlewares/test_ns_middleware/fixtures.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
tests/test_middlewares/test_ns_middleware/fixtures.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
import threading from typing import Optional import pytest from botx import Message from botx.middlewares.ns import register_next_step_handler @pytest.fixture() def build_handler_to_start_chain(): def factory(next_handler_name: Optional[str], event: threading.Event): def decorator(message: Message): ...
24
74
0.72619
796d52d482201dc03caa30f99f5ad1738d315e0e
2,939
py
Python
ios/dateparser/lib/python2.7/site-packages/umalqurra/hijri.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
ios/dateparser/lib/python2.7/site-packages/umalqurra/hijri.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
ios/dateparser/lib/python2.7/site-packages/umalqurra/hijri.py
mpercich/Calendarize
d658962d5d205f878afd9876cb64b5381964f112
[ "MIT" ]
null
null
null
import math from ummalqura_arrray import UmalqurraArray ''' This class is responsoble to convert from Hijri to Gregorian or from Gregorian to Hijri The algrothem was converted from java script to python by Khalid Al-hussayen in 1436-3-14 2015-1-5 The orjinal source developed by Suhail Alkowaileet the source url https:...
39.186667
143
0.572644
796d7147161de807dff5f4a8787719fe9f989227
1,441
py
Python
models/lenet.py
lihr04/PCA-OGD
196d03701f22110479af9c1feb619fef6fe1562b
[ "MIT" ]
3
2021-02-18T23:09:45.000Z
2021-04-15T07:11:08.000Z
models/lenet.py
lihr04/PCA-OGD
196d03701f22110479af9c1feb619fef6fe1562b
[ "MIT" ]
null
null
null
models/lenet.py
lihr04/PCA-OGD
196d03701f22110479af9c1feb619fef6fe1562b
[ "MIT" ]
3
2021-03-15T21:56:18.000Z
2022-02-08T17:39:10.000Z
import torch.nn as nn class LeNet(nn.Module): def __init__(self, out_dim=10, in_channel=1, img_sz=32, hidden_dim=500): super(LeNet, self).__init__() feat_map_sz = img_sz//4 self.n_feat = 50 * feat_map_sz * feat_map_sz self.hidden_dim = hidden_dim self.conv = nn.Sequenti...
25.732143
94
0.541291
796db01646e169bff214aa56489f82b27e65c563
76,965
py
Python
tests/test_protocols/test_generator/test_validate.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_protocols/test_generator/test_validate.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
tests/test_protocols/test_generator/test_validate.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2020 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
39.775194
243
0.632794
796dbfcc938376ed34847c09f470f3cf563b8165
1,689
py
Python
API/src/main/resources/Lib/robot/utils/robottypes3.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/utils/robottypes3.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/utils/robottypes3.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
25.984615
75
0.694494
796dfe330984949acba81e7d576319b6e45a2a1c
4,630
py
Python
prince/mfa.py
mattadendorff/prince
6b83b51fe84dda59f4642b68e77559545dee3c70
[ "MIT" ]
null
null
null
prince/mfa.py
mattadendorff/prince
6b83b51fe84dda59f4642b68e77559545dee3c70
[ "MIT" ]
null
null
null
prince/mfa.py
mattadendorff/prince
6b83b51fe84dda59f4642b68e77559545dee3c70
[ "MIT" ]
null
null
null
"""Multiple Factor Analysis (MFA)""" import itertools import numpy as np import pandas as pd from sklearn import utils from . import mca from . import pca class MFA(pca.PCA): def __init__(self, groups=None, rescale_with_mean=True, rescale_with_std=True, n_components=2, n_iter=10, copy=True, ran...
33.79562
99
0.572354
796e2344b86ca0c0149968fa00696872ca863d39
15,522
py
Python
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/operations/_backup_policies_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/operations/_backup_policies_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
null
null
null
src/dataprotection/azext_dataprotection/vendored_sdks/dataprotection/operations/_backup_policies_operations.py
LGDoor/azure-cli-extensions
570a7c181999c1dd160d48f8454aab6cea057a20
[ "MIT" ]
1
2022-02-14T21:43:29.000Z
2022-02-14T21:43:29.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 (autorest: 3.0....
48.204969
219
0.666989
796e2a12c078076b80f48c8cdf5bf4aa13db6539
319
py
Python
graph/management/commands/download_PHE_cases.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
graph/management/commands/download_PHE_cases.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
graph/management/commands/download_PHE_cases.py
StephenGrey/covid_data
8651460734a9aa21b5106896ab98c47491eadb3c
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from graph import phe_fetch as pf class Command(BaseCommand): help = 'Downloads the latest PHE cases data' def handle(self, *args, **kwargs): self.stdout.write("Saving new case data from PHE if available") pf.check_and_download()
24.538462
71
0.69906
796e651c3117ac67877bc8cc65ee590e74506b8f
19,936
py
Python
leetcode_python/Design/design-twitter.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Design/design-twitter.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Design/design-twitter.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
""" 355. Design Twitter Medium Design a simplified version of Twitter where users can post tweets, follow/unfollow another user, and is able to see the 10 most recent tweets in the user's news feed. Implement the Twitter class: Twitter() Initializes your twitter object. void postTweet(int userId, int tweetId) Compo...
36.181488
256
0.621539
796e7290b38c055ebb284572461c710849e355a3
477
py
Python
exe1007.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1007.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
exe1007.py
juniorpedroso/Curso-Intensivo-de-Python
4357e313660e77f5e43bb516c1b19fd979de5070
[ "MIT" ]
null
null
null
while True: try: num1 = input('\nDigite um número (S para sair): ') if num1.upper() == 'S': break num1 = int(num1) num2 = input('Digite outro número (S para sair):') if num2.upper() == 'S': break num2 = int(num2) except ValueErro...
25.105263
60
0.48847
796e8a9289884b28e64427997cfe364c30becb94
2,542
py
Python
src/test/tests/databases/zipwrapper.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/zipwrapper.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/zipwrapper.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: zipwrapper.py # # Tests: STSD operation (STL) # STMD operation (Silo) # .visit file and .* database # Operation over time # Cache pre-emption wo...
28.244444
78
0.684894
796e9d054009fe71a4c5e49bdb0b5c0c1e60eab5
691
py
Python
glpi_ticket.py
storagebot/glpi-sdk-python
6c869311e4ee7f039870767a9b8f0a28815003dd
[ "Apache-2.0" ]
null
null
null
glpi_ticket.py
storagebot/glpi-sdk-python
6c869311e4ee7f039870767a9b8f0a28815003dd
[ "Apache-2.0" ]
null
null
null
glpi_ticket.py
storagebot/glpi-sdk-python
6c869311e4ee7f039870767a9b8f0a28815003dd
[ "Apache-2.0" ]
null
null
null
from .glpi import GlpiService class GlpiTicket(GlpiService): """ Client for GLPI Ticket item """ def __init__(self, url, app_token, username, password): """ Construct an instance for Ticket item """ GlpiService.__init__( self, url, app_token, username=username, ...
28.791667
67
0.541245
796e9e954e57e51d01abcbb8744d00c389b82256
19,154
py
Python
storm_control/sc_hardware/photometrics/pvcam.py
BoettigerLab/scopeTest
50c6601c952adf1d63c7f27b1aba8890e789c280
[ "MIT" ]
1
2021-03-17T20:25:59.000Z
2021-03-17T20:25:59.000Z
storm_control/sc_hardware/photometrics/pvcam.py
BoettigerLab/scopeTest
50c6601c952adf1d63c7f27b1aba8890e789c280
[ "MIT" ]
null
null
null
storm_control/sc_hardware/photometrics/pvcam.py
BoettigerLab/scopeTest
50c6601c952adf1d63c7f27b1aba8890e789c280
[ "MIT" ]
1
2021-03-17T21:24:35.000Z
2021-03-17T21:24:35.000Z
#!/usr/bin/env python """ A ctypes based interface to the Photometrics PVCAM library. Hazen 10/17, Alistair 10/20 """ import ctypes import numpy import sys import storm_control.sc_library.halExceptions as halExceptions import storm_control.sc_hardware.photometrics.pvcam_constants as pvc pvcam = None def check(value...
34.264758
224
0.561293
796ea15c47a070d4bcbc403cb9109c0ed21aadf4
1,899
py
Python
tools/delay_wav.py
RangHo/webrtc-delay-estimation
44fd98ce1bf778d51e3a3593bcd3c8d8a300b294
[ "BSD-3-Clause" ]
3
2021-04-05T14:24:37.000Z
2021-07-02T02:45:28.000Z
tools/delay_wav.py
jzi040941/webrtc-delay-estimation
44fd98ce1bf778d51e3a3593bcd3c8d8a300b294
[ "BSD-3-Clause" ]
null
null
null
tools/delay_wav.py
jzi040941/webrtc-delay-estimation
44fd98ce1bf778d51e3a3593bcd3c8d8a300b294
[ "BSD-3-Clause" ]
4
2021-03-18T14:09:40.000Z
2022-03-15T07:39:15.000Z
import argparse import random import wave def delay_wav(filename: str, delay_samples: int, output_filename: str = None, randomize: bool = False): """ Creates a delayed copy of the given .wav file. """ input_wav = wave.open(filename, 'rb') # Information required to create delayed waves sample_...
30.142857
103
0.652449
796eaa4a09708f9ab6b9226e3b7bc361bd9ef696
689
py
Python
hydroshare/__init__.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hydroshare/__init__.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hydroshare/__init__.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
import logging # Import defusedexpat here so that it can patch the standard library's expat XML parser, which is used by # rdflib and other libraries in other parts of the app. try: import defusedexpat # Import logging after defusedexpat in case logging uses XML (who knows) except ImportError: msg = ("U...
36.263158
105
0.724238
796eab24f3a6feda5dfcdacc449c26c5dc581ca8
2,215
py
Python
src/cryptoadvance/specter/devices/coldcard.py
DerM007/specter-desktop
d8094a6261006ea792d8858dbc691da5b7eee7ad
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/devices/coldcard.py
DerM007/specter-desktop
d8094a6261006ea792d8858dbc691da5b7eee7ad
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/devices/coldcard.py
DerM007/specter-desktop
d8094a6261006ea792d8858dbc691da5b7eee7ad
[ "MIT" ]
null
null
null
import urllib from .sd_card_device import SDCardDevice from ..util.xpub import get_xpub_fingerprint from ..helpers import to_ascii20 from embit.psbt import PSBT, DerivationPath from embit import bip32 from binascii import b2a_base64, a2b_base64 from collections import OrderedDict CC_TYPES = {"legacy": "BIP45", "p2sh-s...
33.560606
87
0.626637
796eb9251c4403ea20ad297dab17afb6cf480da6
10,238
py
Python
qiskit/aqua/components/uncertainty_problems/multivariate_problem.py
charmerDark/qiskit-aqua
c1564af8792c6664670807614a378147fd04d28f
[ "Apache-2.0" ]
504
2018-12-15T16:34:03.000Z
2022-03-26T11:24:53.000Z
qiskit/aqua/components/uncertainty_problems/multivariate_problem.py
charmerDark/qiskit-aqua
c1564af8792c6664670807614a378147fd04d28f
[ "Apache-2.0" ]
746
2018-12-16T16:44:42.000Z
2021-07-10T16:59:43.000Z
qiskit/aqua/components/uncertainty_problems/multivariate_problem.py
charmerDark/qiskit-aqua
c1564af8792c6664670807614a378147fd04d28f
[ "Apache-2.0" ]
421
2018-12-22T14:49:00.000Z
2022-03-04T09:47:07.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2019, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
40.788845
99
0.583024
796edba758c32b91f77546bcc82063182fcd2d0f
13,012
py
Python
tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py
moneypi/model-optimization
1408a1ae328304f3b5d238c41479382efb015869
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py
moneypi/model-optimization
1408a1ae328304f3b5d238c41479382efb015869
[ "Apache-2.0" ]
null
null
null
tensorflow_model_optimization/python/core/clustering/keras/clustering_registry.py
moneypi/model-optimization
1408a1ae328304f3b5d238c41479382efb015869
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
36.245125
91
0.679834
796ef982a8f5958b3cf9f4125c760e250a910b07
1,380
py
Python
floodsystem/flood.py
TK594/IA-flood-risk-project
17902a255d1e76b4085760d5ab655aa5dce762dc
[ "MIT" ]
null
null
null
floodsystem/flood.py
TK594/IA-flood-risk-project
17902a255d1e76b4085760d5ab655aa5dce762dc
[ "MIT" ]
null
null
null
floodsystem/flood.py
TK594/IA-flood-risk-project
17902a255d1e76b4085760d5ab655aa5dce762dc
[ "MIT" ]
null
null
null
from .utils import sorted_by_key # noqa from floodsystem.stationdata import update_water_levels #2B def stations_level_over_threshold(stations, tol): """for a list of stations and a tolerance, return a list of tuples of station objects and their relative level if it's above the tolerance""" # Update latest lev...
34.5
145
0.718841
796f11a5c02264114a47235dda2ad258f73b09fa
4,630
py
Python
mplStyle/types/test/test_StyleProperty.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
39
2015-03-08T23:05:01.000Z
2022-02-07T16:03:35.000Z
mplStyle/types/test/test_StyleProperty.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
null
null
null
mplStyle/types/test/test_StyleProperty.py
khanfarhan10/mplStyle
f657f54c6c101811b8bf0c44f4b16d4f4926685d
[ "BSD-3-Clause" ]
23
2015-03-08T19:56:59.000Z
2021-07-15T15:16:26.000Z
#=========================================================================== # # Copyright (c) 2014, California Institute of Technology. # U.S. Government Sponsorship under NASA Contract NAS7-03001 is # acknowledged. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modific...
37.33871
76
0.537581
796f14b06c69d13bb76f5269eab82122cd5503d5
9,517
py
Python
gui.py
pkumath/datastructure
0b440b59af73ed73c575df5cd1c67946aa510dba
[ "MIT" ]
4
2020-05-19T05:38:37.000Z
2020-05-27T04:14:17.000Z
gui.py
pkumath/datastructure
0b440b59af73ed73c575df5cd1c67946aa510dba
[ "MIT" ]
null
null
null
gui.py
pkumath/datastructure
0b440b59af73ed73c575df5cd1c67946aa510dba
[ "MIT" ]
1
2020-05-19T05:41:53.000Z
2020-05-19T05:41:53.000Z
import tkinter as tk from tkinter import filedialog as tkfiledialog from tkinter import messagebox as tkmessagebox from pathlib import Path import sys import pyperclip from multiprocessing import Process import threading import webbrowser import os from appdirs import * import logging as log import inkscape_control f...
35.913208
222
0.645056
796f1ec36ebdb70abdef98e6b4aa8b602d185dd3
320
py
Python
tests/test_utils.py
sohinik/workspace-tools
3cc8aac5b7a0df9221dcf9359d94cc5074579020
[ "MIT" ]
3
2018-08-22T20:52:32.000Z
2020-12-01T21:22:46.000Z
tests/test_utils.py
sohinik/workspace-tools
3cc8aac5b7a0df9221dcf9359d94cc5074579020
[ "MIT" ]
3
2019-04-10T02:30:39.000Z
2020-06-02T01:58:26.000Z
tests/test_utils.py
sohinik/workspace-tools
3cc8aac5b7a0df9221dcf9359d94cc5074579020
[ "MIT" ]
4
2019-04-08T20:00:22.000Z
2020-06-01T18:25:49.000Z
from workspace.utils import shortest_id def test_shortest_id(): assert shortest_id('apple', ['orange', 'banana']) == 'a' assert shortest_id('apple', ['apricot', 'banana']) == 'app' assert shortest_id('apple', ['apple seed', 'banana']) == 'apple' assert shortest_id('apple', ['apple', 'banana']) == 'a'
35.555556
68
0.634375
796f24c57d047af46f1737c07b6c5c33eb39ff04
174,790
py
Python
tofu/data/_core.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
6
2016-09-15T17:01:19.000Z
2017-03-06T22:53:10.000Z
tofu/data/_core.py
WinstonLHS/tofu
c95b2eb6aedcf4bac5676752b9635b78f31af6ca
[ "MIT" ]
9
2016-09-14T17:23:52.000Z
2017-04-13T07:30:07.000Z
tofu/data/_core.py
Didou09/tofu
4a4e1f058bab8e7556ed9d518f90807cec605476
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Built-in import sys import os import itertools as itt import copy import warnings from abc import ABCMeta, abstractmethod import inspect # Common import numpy as np import scipy.interpolate as scpinterp import matplotlib.pyplot as plt from matplotlib.tri import Triangulation as mplTri # to...
39.688919
90
0.47235
796f63ca0a185c177b58ebc88848a4aeeca1f4e1
838
py
Python
app/conf/gunicorn-config.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
1
2019-07-06T10:27:43.000Z
2019-07-06T10:27:43.000Z
app/conf/gunicorn-config.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
null
null
null
app/conf/gunicorn-config.py
ianjuma/errand-runner
afb3ac5e322b79386507f4a5807238538d182f35
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import multiprocessing workers = multiprocessing.cpu_count() * 2 + 1 def numCPUs(): if not hasattr(os, 'sysconf'): raise RuntimeError('No sysconf detected.') return os.sysconf('SC_NPROCESSORS_ONLN') use = 'flask_render:app' bind = '0.0.0.0:8000' workers = numCPUs() ...
22.052632
82
0.682578
796f6b047f961b0e01209802dd92689b76803e2e
7,922
py
Python
bonneville/modules/brew.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/brew.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
null
null
null
bonneville/modules/brew.py
lowsodium/bonneville
02a016380b56345594f20ee007c62e7e92821a8b
[ "Apache-2.0" ]
3
2020-05-10T02:08:44.000Z
2020-11-06T11:01:57.000Z
# -*- coding: utf-8 -*- ''' Homebrew for Mac OS X ''' # Import python libs import copy import logging # Import bonneville libs import bonneville.utils log = logging.getLogger(__name__) def __virtual__(): ''' Confine this module to Mac OS with Homebrew. ''' if bonneville.utils.which('brew') and __g...
25.888889
109
0.59278
796faaaf84aeb682f047fcd5f1382e474b9b6ff0
6,814
py
Python
mobtypingmodules/mobmods.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
1
2018-03-26T09:00:42.000Z
2018-03-26T09:00:42.000Z
mobtypingmodules/mobmods.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
null
null
null
mobtypingmodules/mobmods.py
AlexOrlek/MOBtyping
a7d454669dbb7e2d337118e36d4979d7fe8e2fae
[ "MIT" ]
null
null
null
"""This module contains functions for general bioinformatic tasks such as handling fasta files, running BLAST searches, and using the built-in subprocess module flexibly and safely""" #HANDLING FASTA FILES def extractfromfasta(fastafilepath): """extract FASTA headers ('comments') and sequences from FASTA file"""...
36.438503
359
0.576167
796fb06901ac603e0893fd0191041bffb764866c
2,119
py
Python
archive/nexus-api-v2/Database/User/Schemas/Base.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/User/Schemas/Base.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
null
null
null
archive/nexus-api-v2/Database/User/Schemas/Base.py
cloud-hybrid/delta
402b00ed5aaa32ccef628361e9635879b7ace44f
[ "BSD-3-Clause" ]
1
2022-01-03T05:33:15.000Z
2022-01-03T05:33:15.000Z
# #!/usr/bin/env python3 # # # -*- Coding: UTF-8 -*- # # # -*- System: Linux -*- # # # -*- Usage: *.py -*- # # # # Owner: Jacob B. Sanders # # Source: code.cloud-technology.io # # License: BSD 2-Clause License # # """ # ... # """ # # import dataclasses # # # import ujson # import json # # from . import * # # __...
24.079545
82
0.507787
796fb4cfabe7ff7ada67e28bc29a19b48f5ec2fe
8,227
py
Python
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/plot.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
1
2019-06-27T12:09:44.000Z
2019-06-27T12:09:44.000Z
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/plot.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/rasterio/plot.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
"""Implementations of various common operations. Including `show()` for displaying an array or with matplotlib. Most can handle a numpy array or `rasterio.Band()`. Primarily supports `$ rio insp`. """ from __future__ import absolute_import import logging import warnings import numpy as np import rasterio from rast...
32.011673
93
0.619181
796fbbda87e61d015690a86ba1dc0691ec1130ac
6,364
py
Python
src/wavestate/iirrational/v1/nyquist_move.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/v1/nyquist_move.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/v1/nyquist_move.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
32.469388
106
0.509742
796fc9fc32f02a2861e2c0c18e65d03728bd4a71
689
py
Python
102/save4_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
102/save4_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
102/save4_passed.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
VALID_COLORS = ['blue', 'yellow', 'red'] def print_colors(): """In the while loop ask the user to enter a color, lowercase it and store it in a variable. Next check: - if 'quit' was entered for color, print 'bye' and break. - if the color is not in VALID_COLORS, print 'Not a valid color' an...
32.809524
85
0.561684
796fce0a0deace3187a69e92fbcfc7276f935af5
51
py
Python
cisc108/__init__.py
ElBell/cisc108-python-support-library
cfa1a2ac469dcd89b4eaa1248f6be18b84f5e897
[ "MIT" ]
null
null
null
cisc108/__init__.py
ElBell/cisc108-python-support-library
cfa1a2ac469dcd89b4eaa1248f6be18b84f5e897
[ "MIT" ]
null
null
null
cisc108/__init__.py
ElBell/cisc108-python-support-library
cfa1a2ac469dcd89b4eaa1248f6be18b84f5e897
[ "MIT" ]
null
null
null
from cisc108.assertions import assert_equal, QUIET
25.5
50
0.862745
79701046e04dd8e3036af8bdfb655f7c33748a1a
5,562
py
Python
app/model/thematic.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/model/thematic.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/model/thematic.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Repository para recuperar informações da CEE ''' from model.base import BaseModel from repository.thematic import ThematicRepository #pylint: disable=R0903 class Thematic(BaseModel): ''' Definição do repo ''' METADATA = { 'SMARTLAB': { 'datasets': [ 'sstindicadoresnacion...
35.653846
94
0.506832
7970166f7ac6bab159b294c947fce53ae3dfe633
1,524
py
Python
alipay/aop/api/domain/AlipayOpenSearchBoxactivityOfflineModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenSearchBoxactivityOfflineModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenSearchBoxactivityOfflineModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenSearchBoxactivityOfflineModel(object): def __init__(self): self._box_activity_id = None self._merchant_id = None @property def box_activity_id(self): re...
27.214286
81
0.625984
797039307e8c2bde3342c069dbe9e5b8d5336887
365
py
Python
src/test/tinc/tinctest/lib/test/test_base.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
46
2018-10-22T23:34:03.000Z
2022-03-31T09:31:34.000Z
src/test/tinc/tinctest/lib/test/test_base.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
317
2018-10-05T23:51:48.000Z
2022-03-22T17:38:52.000Z
src/test/tinc/tinctest/lib/test/test_base.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
46
2018-10-10T18:55:00.000Z
2022-03-28T07:27:04.000Z
import os from tinctest.lib import local_path import unittest2 as unittest class PathTestCase(unittest.TestCase): def test_local_path(self): filename = local_path('some_file_test_that_lives_in_my_current_working_directory') assert filename == os.path.join(os.path.dirname(__file__), 'some_file_test_...
40.555556
127
0.810959
797054202b50f2dea2c5e73a43c932e8be4a09a9
3,871
py
Python
zwuenf/pysrec/SRecordFile.py
ngara/pysrec
f853cae4109db5d6a91c07e0de9e0b77320e6cd4
[ "MIT" ]
1
2021-07-03T01:26:26.000Z
2021-07-03T01:26:26.000Z
zwuenf/pysrec/SRecordFile.py
ngara/pysrec
f853cae4109db5d6a91c07e0de9e0b77320e6cd4
[ "MIT" ]
null
null
null
zwuenf/pysrec/SRecordFile.py
ngara/pysrec
f853cae4109db5d6a91c07e0de9e0b77320e6cd4
[ "MIT" ]
null
null
null
import os import binascii __all__ = ('MOTType', 'SRecordFile') from enum import Enum from zwuenf.pysrec.SRecord import SRecordType, SRecord from zwuenf.pysrec import * class MOTType(Enum): S19 = 0 S28 = 1 S37 = 2 UNKNOWN = 3 class SRecordFile: """Data structure for holding a S-Record file.""" ...
26.333333
107
0.542754
79705b76492b77f18e727d673bbdb1ec8509ce91
4,886
py
Python
tests/fts_test.py
rtmigo/skifts_py
6cb51c413ca327beb58136cfee79355051e94923
[ "MIT" ]
null
null
null
tests/fts_test.py
rtmigo/skifts_py
6cb51c413ca327beb58136cfee79355051e94923
[ "MIT" ]
null
null
null
tests/fts_test.py
rtmigo/skifts_py
6cb51c413ca327beb58136cfee79355051e94923
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: (c) 2022 Artёm IG <github.com/rtmigo> # SPDX-License-Identifier: MIT import re import unittest from typing import List from skifts._fts import SkiFts _mr_postman = """ "Please Mr. Postman" is a song written by Georgia Dobbins, William Garrett, Freddie Gorman, Brian Holland and ...
27.144444
73
0.534384
7970607a715b9c09a1069ed0471dbba26324db79
727
py
Python
maddpg/OUNoise.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
maddpg/OUNoise.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
maddpg/OUNoise.py
hogansung/deep-reinforcement-learning
5170ca42bdfdb16cc5c2b86c61bee304015a6254
[ "MIT" ]
null
null
null
import numpy as np import torch # from https://github.com/songrotek/DDPG/blob/master/ou_noise.py class OUNoise: def __init__(self, action_dimension, scale=0.1, mu=0, theta=0.15, sigma=0.2): self.action_dimension = action_dimension self.scale = scale self.mu = mu self.theta = theta ...
30.291667
81
0.621733
7970a296ab5fe5c1fbe75bf8957a6ad2b49a7e44
8,172
py
Python
torchgan/losses/auxclassifier.py
torchgan/torchgan
f4139537ac2d3d8609d5aecc859a6fb797b107a1
[ "MIT" ]
1,300
2018-10-14T05:02:29.000Z
2022-03-23T09:52:13.000Z
torchgan/losses/auxclassifier.py
yuhao20/torchgan
cfd5da4b7ffcec544c6cc4a22257edf40fd31f9d
[ "MIT" ]
102
2018-10-13T22:46:03.000Z
2022-01-03T19:20:09.000Z
torchgan/losses/auxclassifier.py
yuhao20/torchgan
cfd5da4b7ffcec544c6cc4a22257edf40fd31f9d
[ "MIT" ]
164
2018-10-12T08:36:29.000Z
2022-03-31T03:12:08.000Z
import torch from .functional import auxiliary_classification_loss from .loss import DiscriminatorLoss, GeneratorLoss __all__ = [ "AuxiliaryClassifierGeneratorLoss", "AuxiliaryClassifierDiscriminatorLoss", ] class AuxiliaryClassifierGeneratorLoss(GeneratorLoss): r"""Auxiliary Classifier GAN (ACGAN) loss...
43.935484
111
0.622736
7970afd818264472766678ddf7619c9bcdf333a3
1,285
py
Python
partnerclient/hfppnetwork/partner/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
7
2015-07-15T06:47:16.000Z
2020-10-17T20:51:09.000Z
partnerclient/hfppnetwork/partner/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
null
null
null
partnerclient/hfppnetwork/partner/logginghelper.py
NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention
4facd935920e77239c25323ca7e233cb899ba9f5
[ "Apache-2.0" ]
8
2017-01-30T02:27:01.000Z
2021-04-21T04:15:48.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2013 TopCoder Inc., All Rights Reserved. This is the module that defines logging helper methods This module resides in Python source file logginghelper.py Thread Safety: It is thread safe because no module-level variable is used. @author: TCSASSEMBLER @version: 1.0 """ import...
31.341463
77
0.693385
7970e40e33e7345d7fcdfab689836218952325a9
6,944
py
Python
warehouse/accounts/forms.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2021-01-03T00:58:00.000Z
2021-01-03T00:58:00.000Z
warehouse/accounts/forms.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2019-09-09T15:04:44.000Z
2019-09-09T15:04:44.000Z
warehouse/accounts/forms.py
Volcyy/warehouse
6a183497f051eeace1bd8ba8028f0e2d3e879a35
[ "Apache-2.0" ]
1
2019-09-09T15:02:40.000Z
2019-09-09T15:02:40.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 Li...
32.297674
79
0.603687
7970e7ffa5cd1258c9942a65940a6618d4789643
2,318
py
Python
masksMaker.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
masksMaker.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
masksMaker.py
ksu-hmi/mouth-check
f659a8c76707eb7f974dc3fbdd93b1324315f91b
[ "MIT" ]
null
null
null
import numpy as np from utils import pairwise from tqdm import tqdm import os import json from PIL import Image, ImageDraw from skimage.draw import polygon2mask import cv2 import pandas as pd import matplotlib.pyplot as plt import sys pathImgSrc = "data\\img\\ori" pathImgDst = "data\\img\\mask" pathDf = "data/label/...
30.5
116
0.617343
7970f6c8702f236e515f499a7aa61eb643490c2e
2,658
py
Python
bindings/pydeck/pydeck/io/html.py
Ayazona/deck.gl
bbbf0800741887fecc559d624cef03583c91c9d6
[ "MIT" ]
null
null
null
bindings/pydeck/pydeck/io/html.py
Ayazona/deck.gl
bbbf0800741887fecc559d624cef03583c91c9d6
[ "MIT" ]
5
2021-03-11T04:45:23.000Z
2022-02-13T19:45:44.000Z
bindings/pydeck/pydeck/io/html.py
Ayazona/deck.gl
bbbf0800741887fecc559d624cef03583c91c9d6
[ "MIT" ]
null
null
null
import os from os.path import relpath, realpath import tempfile import time import webbrowser import jinja2 TEMPLATES_PATH = os.path.join(os.path.dirname(__file__), './templates/') j2_env = jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATES_PATH), trim_blocks=True) CDN_URL = 'htt...
30.204545
116
0.676072
79710bf604bad0fc7b071347093f880c13aae56e
4,455
py
Python
datawinners/dcs_web/local_settings_example_dcs.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/dcs_web/local_settings_example_dcs.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/dcs_web/local_settings_example_dcs.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 import os from datawinners.settings import PROJECT_DIR, TEMPLATE_DIRS SITE_ID = 1 DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': 'mangrove'...
30.724138
135
0.715376
79711bccf33dab18c3398adea2d99181a605adc9
3,684
py
Python
doc/jupyter_execute/examples/iter8/progressive_rollout/separate_sdeps/abtest.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/examples/iter8/progressive_rollout/separate_sdeps/abtest.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/examples/iter8/progressive_rollout/separate_sdeps/abtest.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Progressive Rollouts using Two Seldon Deployments # # In this example we will AB Test two Iris models: an SKLearn model and an XGBOOST model. # We will run a progressive rollout allowing Iter8 to control the traffic to the two Seldon Deployments and gradually move traffic to ...
19.492063
203
0.690825
79713ed81d2d2058a33cb7f10c4f06dd2d31b53b
40,724
py
Python
fabric/connection.py
timsnyder/fabric
35d7662ee020e8de236577a17571f1428c102479
[ "BSD-2-Clause" ]
null
null
null
fabric/connection.py
timsnyder/fabric
35d7662ee020e8de236577a17571f1428c102479
[ "BSD-2-Clause" ]
8
2021-09-22T12:47:32.000Z
2022-01-14T21:30:38.000Z
venv/lib/python3.8/site-packages/fabric/connection.py
HCDigitalScholarship/migration-encounters
08e705f8ed1b4d4e00d2c1112a8b5d30bf2ebd4d
[ "MIT" ]
2
2021-05-23T16:46:31.000Z
2021-05-26T23:51:09.000Z
from contextlib import contextmanager from threading import Event try: from invoke.vendor.six import StringIO from invoke.vendor.decorator import decorator from invoke.vendor.six import string_types except ImportError: from six import StringIO from decorator import decorator from six import str...
40.88755
163
0.617204
79715c9d3afc3e9ca43422f143f6364de2a9742b
69,856
py
Python
salt/client/__init__.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/client/__init__.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
salt/client/__init__.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The client module is used to create a client connection to the publisher The data structure needs to be: {'enc': 'clear', 'load': {'fun': '<mod.callable>', 'arg':, ('arg1', 'arg2', ...), 'tgt': '<glob or id>', 'key': '<read in the key file>'...
36.727655
120
0.504309
797179112cf538d30b794e6f83d4cdeed5ad6685
201
py
Python
calling_plan/pages/views.py
hadtrindade/calling-plan
b9790bd2738c81e6d2c2835bb4de96d6abb09404
[ "MIT" ]
null
null
null
calling_plan/pages/views.py
hadtrindade/calling-plan
b9790bd2738c81e6d2c2835bb4de96d6abb09404
[ "MIT" ]
12
2021-03-10T12:46:02.000Z
2021-06-10T20:54:49.000Z
calling_plan/pages/views.py
hadtrindade/calling-plan
b9790bd2738c81e6d2c2835bb4de96d6abb09404
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib.auth.decorators import login_required @login_required(login_url="core:login") def home(request): return render(request, "pages/home.html")
25.125
57
0.79602
797184e6849fa71c219ae0e0f6f6aeefac7596a3
2,467
py
Python
lib/helm.py
Racter42/gxabm
04b77f3abb9caa69e527f84c3d85fa8e3d931e27
[ "MIT" ]
1
2021-11-23T21:44:09.000Z
2021-11-23T21:44:09.000Z
lib/helm.py
Racter42/gxabm
04b77f3abb9caa69e527f84c3d85fa8e3d931e27
[ "MIT" ]
18
2021-07-28T22:32:30.000Z
2021-12-09T19:43:36.000Z
lib/helm.py
Racter42/gxabm
04b77f3abb9caa69e527f84c3d85fa8e3d931e27
[ "MIT" ]
2
2021-08-04T21:24:14.000Z
2021-11-23T17:57:40.000Z
import io import os import time import lib import common from common import run, find_executable import subprocess def update(args:list): """ Runs the ``helm upgrade`` command on the cluster to update the *jobs.rules.container_mapper_rules* configuration. :param args: a list containing the path to t...
25.968421
135
0.611674
7971acfabfb0168a20ec9ad4916fa0eca7fa6c17
1,008
py
Python
tests/NormBase/t04a_evaluate_nu.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/NormBase/t04a_evaluate_nu.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
tests/NormBase/t04a_evaluate_nu.py
michaelStettler/BVS
947f1e505ccc3ebcf1926c8f52924d823bd1e101
[ "Apache-2.0" ]
null
null
null
from utils.load_config import load_config from utils.evaluate_model import evaluate_model def evaluate_nu(config): if isinstance(config['nu'], list): nus = config['nu'] else: nus = [config['nu']] for nu in nus: config['nu'] = nu print("[LOOP] nu=", nu) accuracy, i...
30.545455
117
0.691468
7971c29bbfba0d9b8414161f2b2fe952b7d7928c
7,526
py
Python
tools/train.py
zylamarek/frederic
69fee52e173803443aa4fe8b76a4b88882b1aac6
[ "MIT" ]
7
2019-11-05T19:21:36.000Z
2021-12-07T12:11:03.000Z
tools/train.py
zylamarek/frederic
69fee52e173803443aa4fe8b76a4b88882b1aac6
[ "MIT" ]
6
2020-12-03T12:36:46.000Z
2022-03-12T00:03:26.000Z
tools/train.py
zylamarek/frederic
69fee52e173803443aa4fe8b76a4b88882b1aac6
[ "MIT" ]
1
2021-12-02T19:38:41.000Z
2021-12-02T19:38:41.000Z
import os import argparse import datetime import keras from keras.callbacks import TensorBoard, ModelCheckpoint, ReduceLROnPlateau, EarlyStopping from keras.applications import mobilenet_v2 from keras.layers import Dense, Flatten from keras.models import Model, load_model from PIL import Image import context from fred...
54.934307
120
0.59527
7971c674a2613f4e8729c1223f3a294d7e061009
53,062
py
Python
mne/preprocessing/tests/test_ica.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/tests/test_ica.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
mne/preprocessing/tests/test_ica.py
jorisvandenbossche/mne-python
0c4db6f8ef12999d119085aa7c496cadb32411bd
[ "BSD-3-Clause" ]
null
null
null
# Author: Denis Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from itertools import product import os import os.path as op from unittest import SkipTest import pytest import numpy as np from numpy.testing import (assert_array_almost_equal, a...
38.987509
79
0.642475
7971e6fe6cc10614a0ec13f63f29e4672357aa13
31
py
Python
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/RandomPositionBasic/random_position_basic.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/RandomPositionBasic/random_position_basic.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Simulation/Towers/Behaviors/Attack/Behaviors/RandomPositionBasic/random_position_basic.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class RandomPositionBasic: pass
31
31
0.903226
7971f562ea22077853a74d58c0e3ee1282d58276
3,289
py
Python
end_to_end_tests/golden-record-custom/custom_e2e/models/model_with_any_json_properties.py
benchling/openapi-python-client
a755ed9dc77b7d7e394057159831fbfa327be113
[ "MIT" ]
2
2020-10-15T07:25:50.000Z
2021-09-14T21:29:08.000Z
end_to_end_tests/golden-record-custom/custom_e2e/models/model_with_any_json_properties.py
benchling/openapi-python-client
a755ed9dc77b7d7e394057159831fbfa327be113
[ "MIT" ]
79
2020-09-10T00:47:21.000Z
2022-03-25T02:07:31.000Z
end_to_end_tests/golden-record/my_test_api_client/models/model_with_any_json_properties.py
benchling/openapi-python-client
a755ed9dc77b7d7e394057159831fbfa327be113
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Union, cast import attr from ..models.model_with_any_json_properties_additional_property import ModelWithAnyJsonPropertiesAdditionalProperty @attr.s(auto_attribs=True) class ModelWithAnyJsonProperties: """ """ additional_properties: Dict[ str, Union[ModelWithAny...
36.142857
120
0.630891
79721239025d7b1b4f0fc1bf35ec386948cb8a1c
750
py
Python
larq/constraints_test.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
larq/constraints_test.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
larq/constraints_test.py
sbrugman/larq
b080d9452847e9403b3d2fafd9425b488be71567
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np import tensorflow as tf import larq as lq @pytest.mark.parametrize("name", ["weight_clip"]) def test_serialization(name): fn = tf.keras.constraints.get(name) ref_fn = getattr(lq.constraints, name)() assert fn.__class__ == ref_fn.__class__ config = tf.keras.constraints....
32.608696
73
0.725333
797225f6dc9d924cab8c69dd5b3097f887866887
19,580
py
Python
statsmodels/iolib/summary2.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/iolib/summary2.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
statsmodels/iolib/summary2.py
saedsaleh/statsmodels
7df5291f04f406f127242736008f72cb4a579262
[ "BSD-3-Clause" ]
null
null
null
from statsmodels.compat.python import (lrange, iterkeys, iteritems, lzip, reduce, itervalues, zip, string_types, range) from statsmodels.compat.collections import OrderedDict import numpy as np import pandas as pd import datetime import textw...
35.026834
79
0.581767
79722e3ac432c4eced7eb6618fa34fad9c213cfb
1,274
py
Python
app/auth/forms.py
josphat-mwangi/Blog-
646f4d4caeb8c2d9ae5baa001997beb2c6d2a62e
[ "MIT" ]
null
null
null
app/auth/forms.py
josphat-mwangi/Blog-
646f4d4caeb8c2d9ae5baa001997beb2c6d2a62e
[ "MIT" ]
null
null
null
app/auth/forms.py
josphat-mwangi/Blog-
646f4d4caeb8c2d9ae5baa001997beb2c6d2a62e
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, Length, Email, EqualTo,Required from ..models import User class RegistrationForm(FlaskForm): email = StringField('Your Email Address', validators=[Required(), Ema...
41.096774
79
0.72135
7972584cff814f666580e18cf851c56a4dffa778
132
py
Python
conftest.py
jaraco/jaraco.video
a3195d42ee887fe276683dbea668a9e1365a5167
[ "MIT" ]
14
2019-02-18T18:10:54.000Z
2022-02-03T00:51:12.000Z
conftest.py
jaraco/jaraco.video
a3195d42ee887fe276683dbea668a9e1365a5167
[ "MIT" ]
5
2016-01-13T03:53:03.000Z
2021-03-15T01:25:21.000Z
conftest.py
jaraco/jaraco.video
a3195d42ee887fe276683dbea668a9e1365a5167
[ "MIT" ]
2
2019-10-20T21:18:52.000Z
2020-09-01T06:46:36.000Z
import platform collect_ignore_glob = ( [ 'jaraco/video/*', ] if platform.system() != 'Windows' else [] )
12
37
0.537879
79725c2509be805a5b4e0b2509e903a423ec3543
3,723
py
Python
intersight/models/firmwareimc_wait_for_download_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/firmwareimc_wait_for_download_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/firmwareimc_wait_for_download_ref.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 FirmwareimcWaitForDownloadRef(object): """ NO...
24.82
82
0.555466
797274916ff3650d91d8519c2ebe09e92fbdd915
715
py
Python
scielomanager/scielomanager/utils/migrations.py
patymori/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
8
2015-07-07T03:09:16.000Z
2019-03-16T04:46:32.000Z
scielomanager/scielomanager/utils/migrations.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
245
2015-01-14T13:29:58.000Z
2022-01-13T00:48:44.000Z
scielomanager/scielomanager/utils/migrations.py
DalavanCloud/scielo-manager
0945f377376de8ef0ada83c35b4e2312062cdf45
[ "BSD-2-Clause" ]
5
2016-02-19T15:47:08.000Z
2019-03-16T04:46:20.000Z
from django.db.models import DateTimeField def safe_autodatetime(modelname): """ Decorator to be used in migrations. This decorator monkeypatch a given model to avoid the datetimefield to override the current dates priviously registered in the database. """ def rewrapper(func): def wr...
24.655172
74
0.618182
79728004c78d7f0e5b7c0544d0fd898ff5ea6db5
10,979
py
Python
libs/JoyMapper/joy.py
CleitonLC/GamesRetro-Web
40c671d52c148087df6780c5fc5a6200086cc215
[ "MIT" ]
null
null
null
libs/JoyMapper/joy.py
CleitonLC/GamesRetro-Web
40c671d52c148087df6780c5fc5a6200086cc215
[ "MIT" ]
null
null
null
libs/JoyMapper/joy.py
CleitonLC/GamesRetro-Web
40c671d52c148087df6780c5fc5a6200086cc215
[ "MIT" ]
null
null
null
#!/usr/bin/env python import logging #logging.basicConfig(level=logging.DEBUG) logging.basicConfig() log = logging.getLogger(__name__) import sys from subprocess import * import time import configparser import pygame.joystick import pygame from libs.JoyMapper.events import * from libs.JoyMapper.inputs import * class...
38.795053
179
0.61308
7972a650cdb52479742ba4f74fa229b2f90ecde3
702
py
Python
afs2datasource/__init__.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
4
2019-07-19T05:40:37.000Z
2021-03-31T05:49:30.000Z
afs2datasource/__init__.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
1
2019-08-13T18:27:40.000Z
2019-08-13T18:27:40.000Z
afs2datasource/__init__.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 WISE-PaaS/AFS # 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 re...
41.294118
79
0.716524
7972c09f26c9c82be36b9ada56dc7e8c517944ae
5,757
py
Python
experiments/vitchyr/goal_distribution/representation_learning/exps_20_07_21/exp4_old_vs_new_vae_architecture_train_longer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/goal_distribution/representation_learning/exps_20_07_21/exp4_old_vs_new_vae_architecture_train_longer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/goal_distribution/representation_learning/exps_20_07_21/exp4_old_vs_new_vae_architecture_train_longer.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import rlkit.misc.hyperparameter as hyp from multiworld.envs.pygame import PickAndPlaceEnv from rlkit.launchers.launcher_util import run_experiment from rlkit.torch.sets.rl_launcher import disco_experiment if __name__ == "__main__": variant = dict( env_class=PickAndPlaceEnv, env_kwargs=dict( ...
31.288043
75
0.532222
7972d69a5b44e04573709c21dbce1a5035708132
14,378
py
Python
ibis/backends/impala/tests/test_sql.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
1
2020-08-19T03:36:26.000Z
2020-08-19T03:36:26.000Z
ibis/backends/impala/tests/test_sql.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/backends/impala/tests/test_sql.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
2
2020-11-27T22:21:50.000Z
2021-04-03T09:36:25.000Z
import operator import unittest import pytest import ibis from ibis.backends.impala.compiler import to_sql # noqa: E402 from ibis.backends.impala.tests.mocks import MockImpalaConnection from ibis.tests.sql.test_compiler import ExprTestCases pytest.importorskip('sqlalchemy') pytest.importorskip('impala.dbapi') pyt...
25.72093
120
0.575254
7973022e897d573071434be7af6664e27237c631
27
py
Python
test.py
zhourunlong/densenet-ag_news-nlp
38dcf5a18386a3155593d74e3eba6d967501b242
[ "MIT" ]
null
null
null
test.py
zhourunlong/densenet-ag_news-nlp
38dcf5a18386a3155593d74e3eba6d967501b242
[ "MIT" ]
null
null
null
test.py
zhourunlong/densenet-ag_news-nlp
38dcf5a18386a3155593d74e3eba6d967501b242
[ "MIT" ]
null
null
null
str = 'fuck' print(str[1])
13.5
13
0.592593
7973124373411b5b928ad878ab301fe8df44254b
2,385
py
Python
hard_negatives_generator.py
ML-Recipes/BERT-FAQ
3c184030c1819b462e29f665465ab4968657440e
[ "MIT" ]
4
2021-12-08T12:43:49.000Z
2022-03-26T14:46:29.000Z
hard_negatives_generator.py
ML-Recipes/BERT-FAQ
3c184030c1819b462e29f665465ab4968657440e
[ "MIT" ]
null
null
null
hard_negatives_generator.py
ML-Recipes/BERT-FAQ
3c184030c1819b462e29f665465ab4968657440e
[ "MIT" ]
null
null
null
from evaluation import get_relevance_label_df from evaluation import get_relevance_label from shared.utils import load_from_json from shared.utils import dump_to_json from searcher import Searcher from tqdm import tqdm import pandas as pd import random class Hard_Negatives_Generator(object): def __init__(self, es,...
35.073529
98
0.587421
79731b609996ffa560281f1440ec29920adb07da
9,222
py
Python
tests/h/services/annotation_json_presentation_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/services/annotation_json_presentation_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/services/annotation_json_presentation_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import mock import pytest from h.interfaces import IGroupService from h.services.annotation_json_presentation import AnnotationJSONPresentationService from h.services.annotation_json_presentation import ( annotation_json_presentation_...
36.023438
95
0.720234
797338a089889974712ef569fc7d9d00fcfa633e
1,516
py
Python
taskflow/conductors/backends/impl_blocking.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
299
2015-01-11T01:36:28.000Z
2022-03-11T08:56:27.000Z
taskflow/conductors/backends/impl_blocking.py
JonasMie/taskflow
942bb76d9cf69a87e7c78f0e231ce9b94e69bb37
[ "Apache-2.0" ]
4
2015-02-06T11:12:58.000Z
2018-10-19T18:55:58.000Z
taskflow/conductors/backends/impl_blocking.py
jimbobhickville/taskflow
6ea991ce94f5be46b7e4726b4c4f014e10407786
[ "Apache-2.0" ]
67
2015-01-11T14:34:24.000Z
2022-01-14T02:57:03.000Z
# -*- coding: utf-8 -*- # 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...
36.095238
78
0.693931
79733abdb86ee95696fcf7234f1683e591520983
3,388
py
Python
mysite/mysite/settings.py
WorkShoft/Django-Channels-with-React
6516ffb0f970ce18013157d0d199b65e095d889c
[ "CC-BY-4.0" ]
8
2020-05-29T16:54:46.000Z
2021-12-07T05:03:16.000Z
mysite/mysite/settings.py
farshidhss/Django-Channels-with-React
1a06a74b5ac287a0e39479e55fb39b91f096ea82
[ "CC-BY-4.0" ]
6
2021-03-19T04:13:33.000Z
2021-09-22T19:06:26.000Z
mysite/mysite/settings.py
farshidhss/Django-Channels-with-React
1a06a74b5ac287a0e39479e55fb39b91f096ea82
[ "CC-BY-4.0" ]
1
2021-01-23T18:38:06.000Z
2021-01-23T18:38:06.000Z
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.0.6. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
24.911765
91
0.679162