hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
2acf5cc827236e1632b4ab5f89604160d95afc87
102
py
Python
yucheng_ner/__init__.py
131250208/TPLinkerNER
ef7c9a4d9a3324f7a4e4a9f11727367c5ca4e4c0
[ "MIT" ]
1
2020-11-19T13:02:34.000Z
2020-11-19T13:02:34.000Z
yucheng_ner/__init__.py
131250208/TPLinkerNER
ef7c9a4d9a3324f7a4e4a9f11727367c5ca4e4c0
[ "MIT" ]
null
null
null
yucheng_ner/__init__.py
131250208/TPLinkerNER
ef7c9a4d9a3324f7a4e4a9f11727367c5ca4e4c0
[ "MIT" ]
null
null
null
from yucheng_ner.tplinker_ner import tplinker_ner from yucheng_ner.ner_common import components, utils
51
52
0.892157
from yucheng_ner.tplinker_ner import tplinker_ner from yucheng_ner.ner_common import components, utils
0
0
0
2e03545e72140c8b2d853118bc5b211a21e8896e
1,742
py
Python
misc/zmqsnoop.py
brgirgis/pyzmqrpc3
a93339f98686e7f695f7c8a19dac198e4fc56aab
[ "MIT" ]
null
null
null
misc/zmqsnoop.py
brgirgis/pyzmqrpc3
a93339f98686e7f695f7c8a19dac198e4fc56aab
[ "MIT" ]
null
null
null
misc/zmqsnoop.py
brgirgis/pyzmqrpc3
a93339f98686e7f695f7c8a19dac198e4fc56aab
[ "MIT" ]
null
null
null
''' Created on Apr 2014 Edited on Oct 2020 @author: Jan Verhoeven @author: Bassem Girgis @copyright: MIT license, see http://opensource.org/licenses/MIT ''' import argparse import signal import sys from typing import Optional, Tuple import zmq # Handle OS signals (like keyboard interrupt) signal.signal(signa...
21.775
73
0.619977
''' Created on Apr 2014 Edited on Oct 2020 @author: Jan Verhoeven @author: Bassem Girgis @copyright: MIT license, see http://opensource.org/licenses/MIT ''' import argparse import signal import sys from typing import Optional, Tuple import zmq # Handle OS signals (like keyboard interrupt) def _signal_handler(_...
1,275
0
68
9b5f2a4b67b1ee2b3bd4b1a97fea1b31e9003769
2,038
py
Python
T28_batch_ui.py
NathanMacDiarmid/ECOR-1051-Project
fae9e274ef57a29af511131908dcfb85e791af9a
[ "Unlicense" ]
null
null
null
T28_batch_ui.py
NathanMacDiarmid/ECOR-1051-Project
fae9e274ef57a29af511131908dcfb85e791af9a
[ "Unlicense" ]
null
null
null
T28_batch_ui.py
NathanMacDiarmid/ECOR-1051-Project
fae9e274ef57a29af511131908dcfb85e791af9a
[ "Unlicense" ]
null
null
null
# Submitted April 2, 2020 # Team 28: # Nathan MacDiarmid 101098993 # Anita Ntomchukwu 101138391 # Sam Hurd 101146639 # Yahya Shah 101169280 # MILESTONE 3 # IMPORTS from T28_image_filters import * from Cimpl import * # DEFINITIONS def execute_filter(command: tuple) -> Image: """ Returns an image with the fi...
22.395604
79
0.609421
# Submitted April 2, 2020 # Team 28: # Nathan MacDiarmid 101098993 # Anita Ntomchukwu 101138391 # Sam Hurd 101146639 # Yahya Shah 101169280 # MILESTONE 3 # IMPORTS from T28_image_filters import * from Cimpl import * # DEFINITIONS def execute_filter(command: tuple) -> Image: """ Returns an image with the fi...
0
0
0
88dc25a7bff37aeba8e20d34161d9fc923acd8ac
544
py
Python
python/p003.py
livioribeiro/project-euler
71f915b1ddad90c3a5b805cad7047cd6e4ce64ed
[ "MIT" ]
2
2015-12-16T18:39:23.000Z
2015-12-19T03:49:07.000Z
python/p003.py
livioribeiro/project-euler
71f915b1ddad90c3a5b805cad7047cd6e4ce64ed
[ "MIT" ]
null
null
null
python/p003.py
livioribeiro/project-euler
71f915b1ddad90c3a5b805cad7047cd6e4ce64ed
[ "MIT" ]
null
null
null
""" The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? """ import math INPUT = 600851475143 if __name__ == '__main__': for i in range(math.ceil(math.sqrt(INPUT)), 1, -2): if INPUT % i == 0 and is_prime(i): print(i) break
18.758621
60
0.558824
""" The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143? """ import math def is_prime(num): if num <= 2: return True if num % 2 == 0: return False for i in range(3, math.ceil(math.sqrt(num)) + 1, 2): if num % i == 0: ...
202
0
23
cbbe64b49ba07940c302c5be1b82d33d7e5ea708
3,841
py
Python
gpn/models/matern_ggp.py
WodkaRHR/Graph-Posterior-Network
139e7c45c37324c9286e0cca60360a4978b3f411
[ "MIT" ]
23
2021-11-16T01:31:55.000Z
2022-03-04T05:49:03.000Z
gpn/models/matern_ggp.py
WodkaRHR/Graph-Posterior-Network
139e7c45c37324c9286e0cca60360a4978b3f411
[ "MIT" ]
1
2021-12-17T01:25:16.000Z
2021-12-20T10:38:30.000Z
gpn/models/matern_ggp.py
WodkaRHR/Graph-Posterior-Network
139e7c45c37324c9286e0cca60360a4978b3f411
[ "MIT" ]
7
2021-12-03T11:13:44.000Z
2022-02-06T03:12:10.000Z
from typing import Tuple import torch import os import tensorflow as tf import networkx as nx import scipy as sp import numpy as np import torch_geometric.utils as tu from torch_geometric.data import Data import gpflow from gpn.utils import ModelConfiguration from .gpflow_gpp import GPFLOWGGP from .matern_ggp_utils i...
36.580952
106
0.660505
from typing import Tuple import torch import os import tensorflow as tf import networkx as nx import scipy as sp import numpy as np import torch_geometric.utils as tu from torch_geometric.data import Data import gpflow from gpn.utils import ModelConfiguration from .gpflow_gpp import GPFLOWGGP from .matern_ggp_utils i...
3,082
0
80
5c8bbe5f5e6b002ce0ad5bbf441e36d1ceb4eeb0
3,664
py
Python
analytics_utils/autocorrelation.py
patricksferraz/analytics-utils
3b083e1d5eec9825bddf536d1f05db0643b2a710
[ "MIT" ]
1
2019-08-14T02:41:55.000Z
2019-08-14T02:41:55.000Z
analytics_utils/autocorrelation.py
patricksferraz/analytics-utils
3b083e1d5eec9825bddf536d1f05db0643b2a710
[ "MIT" ]
null
null
null
analytics_utils/autocorrelation.py
patricksferraz/analytics-utils
3b083e1d5eec9825bddf536d1f05db0643b2a710
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This is the find module. The find module supplies one function, autocorrelation() """ from statsmodels.tsa.stattools import acf import pandas as pd def autocorrelation( data_frame: pd.DataFrame, unbiased: bool = False, nlags: int = 40, fft: bool = None, alpha: floa...
26.550725
77
0.567959
# -*- coding: utf-8 -*- """ This is the find module. The find module supplies one function, autocorrelation() """ from statsmodels.tsa.stattools import acf import pandas as pd def autocorrelation( data_frame: pd.DataFrame, unbiased: bool = False, nlags: int = 40, fft: bool = None, alpha: floa...
0
0
0
ebfc27beaee1b32063685d09cce85b000da8edf1
431
py
Python
Ex029.py
raphaeltertuliano/Python
ffa9813aaa13ccca807f7c08be9489a2d88d3d62
[ "MIT" ]
1
2021-11-23T21:38:46.000Z
2021-11-23T21:38:46.000Z
Ex029.py
raphaeltertuliano/Python
ffa9813aaa13ccca807f7c08be9489a2d88d3d62
[ "MIT" ]
null
null
null
Ex029.py
raphaeltertuliano/Python
ffa9813aaa13ccca807f7c08be9489a2d88d3d62
[ "MIT" ]
null
null
null
#Escreva um progrma que leia a velocidade de um carro. #Se ele ultrapassar 80Km/h, mostre um mensagem de que ele foi multado #A multa vai custar R$7,00 por cada Km acima do limite. v = float(input('Velocidade do carro: ')) if v <= 80: print('Dentro do limite de velocidade. Boa viagem') else: print(f'Velocidade...
35.916667
69
0.677494
#Escreva um progrma que leia a velocidade de um carro. #Se ele ultrapassar 80Km/h, mostre um mensagem de que ele foi multado #A multa vai custar R$7,00 por cada Km acima do limite. v = float(input('Velocidade do carro: ')) if v <= 80: print('Dentro do limite de velocidade. Boa viagem') else: print(f'Velocidade...
0
0
0
5dce94849acc5a2df23e97ba2c96d11861c4c527
455
py
Python
Python/middle-of-the-linked-list.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
4
2019-12-09T20:23:17.000Z
2021-11-24T08:59:21.000Z
Python/middle-of-the-linked-list.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
null
null
null
Python/middle-of-the-linked-list.py
Ravan339/LeetCode
4276e562aa67e4c39cd92be5d2d6700a9465a579
[ "MIT" ]
9
2020-03-15T23:32:26.000Z
2022-02-25T05:51:26.000Z
# https://leetcode.com/problems/middle-of-the-linked-list/ # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None
19.782609
58
0.531868
# https://leetcode.com/problems/middle-of-the-linked-list/ # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def middleNode(self, head): """ :type head: ListNode :rtype: ListNode ""...
0
237
23
bda2a5e2ce26d03c188538f3c96972517acbd7d7
1,723
py
Python
tests/test_field_amount.py
BitySA/swissdta
046f466610e1197eea1e04683085b7008898c93a
[ "MIT" ]
null
null
null
tests/test_field_amount.py
BitySA/swissdta
046f466610e1197eea1e04683085b7008898c93a
[ "MIT" ]
3
2017-10-21T08:45:01.000Z
2021-06-02T00:16:43.000Z
tests/test_field_amount.py
BitySA/swissdta
046f466610e1197eea1e04683085b7008898c93a
[ "MIT" ]
2
2017-10-20T09:45:52.000Z
2018-12-03T16:00:40.000Z
"""Tests for the Amount field""" from decimal import Decimal import pytest from swissdta.fields import Amount from swissdta.records.record import DTARecord FIELD_LENGTH = 8 class ARecord(DTARecord): """Subclass of DTARecord for testing the Numeric field""" field = Amount(length=FIELD_LENGTH) @pytest.mar...
30.22807
64
0.612304
"""Tests for the Amount field""" from decimal import Decimal import pytest from swissdta.fields import Amount from swissdta.records.record import DTARecord FIELD_LENGTH = 8 class ARecord(DTARecord): """Subclass of DTARecord for testing the Numeric field""" field = Amount(length=FIELD_LENGTH) @pytest.mar...
197
0
22
ce2e8e0ca9f87c9bcb289954d8f5c250c1e39f69
3,064
py
Python
src/scripts/ct.py
xuanxiaoliqu/CRC4Docker
5ee26f9a590b727693202d8ad3b6460970304bd9
[ "MIT" ]
1
2020-10-26T12:02:08.000Z
2020-10-26T12:02:08.000Z
src/scripts/ct.py
TonyZPW/CRC4Docker
e52a6e88d4469284a071c0b96d009f6684dbb2ea
[ "MIT" ]
null
null
null
src/scripts/ct.py
TonyZPW/CRC4Docker
e52a6e88d4469284a071c0b96d009f6684dbb2ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python #****************************************************************************** # Name: ct.py # Purpose: determine classification accuracy and contingency table # from test data # Usage: # python ct.py # # Copyright (c) 2018, Mort Canty import numpy as np impo...
31.265306
79
0.465731
#!/usr/bin/env python #****************************************************************************** # Name: ct.py # Purpose: determine classification accuracy and contingency table # from test data # Usage: # python ct.py # # Copyright (c) 2018, Mort Canty import numpy as np impo...
2,585
0
45
2d974f6f2e2ec53dacc65c4d74b242efd37bc595
2,085
py
Python
botcommands/morbidity.py
pastorhudson/mtb-pykeybasebot
af977f5823b178c91fb870058369f8a65205f7d6
[ "BSD-3-Clause" ]
null
null
null
botcommands/morbidity.py
pastorhudson/mtb-pykeybasebot
af977f5823b178c91fb870058369f8a65205f7d6
[ "BSD-3-Clause" ]
null
null
null
botcommands/morbidity.py
pastorhudson/mtb-pykeybasebot
af977f5823b178c91fb870058369f8a65205f7d6
[ "BSD-3-Clause" ]
null
null
null
import gspread import pandas as pd from datetime import datetime import os import json # print(os.environ.get('google_p_key')) credentials = json.loads(os.environ.get('google_p_key')) gc = gspread.service_account_from_dict(credentials) sh = gc.open_by_key("1b9o6uDO18sLxBqPwl_Gh9bnhW-ev_dABH83M5Vb5L8o") worksheet =...
30.661765
84
0.656595
import gspread import pandas as pd from datetime import datetime import os import json # print(os.environ.get('google_p_key')) credentials = json.loads(os.environ.get('google_p_key')) gc = gspread.service_account_from_dict(credentials) sh = gc.open_by_key("1b9o6uDO18sLxBqPwl_Gh9bnhW-ev_dABH83M5Vb5L8o") worksheet =...
1,343
0
69
6252e057a7f774fa6c73d66594dcda75d9fbb137
689
py
Python
MetaheuristicOptimization/Assignment2/TEST/NQUEENS_CODE_AND_DATA/convert.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
MetaheuristicOptimization/Assignment2/TEST/NQUEENS_CODE_AND_DATA/convert.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
MetaheuristicOptimization/Assignment2/TEST/NQUEENS_CODE_AND_DATA/convert.py
bhattacharjee/ml-assignments
631492b1f1aa1ace5365abfa7fec9c187e99d28a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys filename = sys.argv[1] out_filename = filename[:-3] + "csv" with open(filename, "r", encoding='utf-16le') as inputFile: with open(out_filename, "w") as outputFile: lines = [line.strip() for line in inputFile.readlines()] lines = [line[2:] for line in lines if line.st...
28.708333
68
0.596517
#!/usr/bin/python3 import sys filename = sys.argv[1] out_filename = filename[:-3] + "csv" with open(filename, "r", encoding='utf-16le') as inputFile: with open(out_filename, "w") as outputFile: lines = [line.strip() for line in inputFile.readlines()] lines = [line[2:] for line in lines if line.st...
0
0
0
0782aa9b1306a84d232eb6fb81a8e64dd65ec477
1,039
py
Python
cli/iotexetl/utils/iotex_utils.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
3
2020-07-04T13:53:38.000Z
2020-07-30T15:07:35.000Z
cli/iotexetl/utils/iotex_utils.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
13
2020-07-16T06:07:33.000Z
2020-08-20T10:35:10.000Z
cli/iotexetl/utils/iotex_utils.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
1
2021-01-20T10:06:20.000Z
2021-01-20T10:06:20.000Z
import bech32 from eth_hash.auto import keccak as keccak_256 DEFAULT_ADDRESS_PREFIX = 'io' def pubkey_to_address(pubkey, prefix=None): """This implements the algorithm described here https://github.com/iotexproject/iotex-address""" if prefix is None: prefix = DEFAULT_ADDRESS_PREFIX if pubkey is...
27.342105
100
0.732435
import bech32 from eth_hash.auto import keccak as keccak_256 DEFAULT_ADDRESS_PREFIX = 'io' def set_iotex_utils_context(address_prefix): global DEFAULT_ADDRESS_PREFIX DEFAULT_ADDRESS_PREFIX = address_prefix def pubkey_to_address(pubkey, prefix=None): """This implements the algorithm described here https...
415
0
69
297572fc491a36c41352e325663d421d04d40933
177
py
Python
Python/src/util/data.py
LN-STEMpunks/VexBot
f7bebe01ab35686cab92b8c2035d32f8f8372d64
[ "RSA-MD" ]
null
null
null
Python/src/util/data.py
LN-STEMpunks/VexBot
f7bebe01ab35686cab92b8c2035d32f8f8372d64
[ "RSA-MD" ]
null
null
null
Python/src/util/data.py
LN-STEMpunks/VexBot
f7bebe01ab35686cab92b8c2035d32f8f8372d64
[ "RSA-MD" ]
null
null
null
""" Input and output data """ from networktables import NetworkTables import logging logging.basicConfig(level=logging.DEBUG) SD = NetworkTables.getTable("SmartDashboard")
13.615385
45
0.785311
""" Input and output data """ from networktables import NetworkTables import logging logging.basicConfig(level=logging.DEBUG) SD = NetworkTables.getTable("SmartDashboard")
0
0
0
3cb80b80af56503f39e62a6900fb4e57018aac52
2,096
py
Python
NetTtest/res.py
FoyerSociety/QPC-SESAME
7512f9e038f7fb6070c40783f4b7bda812eb419b
[ "Unlicense" ]
1
2019-06-16T06:13:43.000Z
2019-06-16T06:13:43.000Z
NetTtest/res.py
FoyerSociety/QPC-SESAME
7512f9e038f7fb6070c40783f4b7bda812eb419b
[ "Unlicense" ]
null
null
null
NetTtest/res.py
FoyerSociety/QPC-SESAME
7512f9e038f7fb6070c40783f4b7bda812eb419b
[ "Unlicense" ]
null
null
null
import time, threading from scapy.all import * listc = [] lists = [] print('debut') x = time.time() p1 = Find(1,50) p2 = Find(50,100) p3 = Find(100, 150) p4 = Find(150,200) p1.start() p2.start() p3.start() p4.start() for i in range(200, 250): print(time.time() - x , 's :', f'192.168.8.{i}...
29.942857
122
0.435115
import time, threading from scapy.all import * listc = [] lists = [] print('debut') x = time.time() class Find(threading.Thread): def __init__(self, a, b): self.a = a self.b = b threading.Thread.__init__(self) def search(self, a, b): global listc for i in range(a, ...
1,115
8
108
347fe3f18ce0feef76ca7424f649fe2df32a9534
2,825
py
Python
taco/test/test_bedgraph.py
tacorna/taco
eeaeb879b8622365123edbc61ebc100d84194b80
[ "MIT" ]
22
2016-04-03T16:30:54.000Z
2022-03-07T23:01:08.000Z
taco/test/test_bedgraph.py
tacorna/taco
eeaeb879b8622365123edbc61ebc100d84194b80
[ "MIT" ]
18
2016-04-10T15:33:09.000Z
2022-02-06T15:53:25.000Z
taco/test/test_bedgraph.py
tacorna/taco
eeaeb879b8622365123edbc61ebc100d84194b80
[ "MIT" ]
5
2016-11-23T22:26:00.000Z
2021-06-09T11:23:20.000Z
''' TACO: Multi-sample transcriptome assembly from RNA-Seq ''' import os import cStringIO import timeit import numpy as np from taco.lib.dtypes import FLOAT_DTYPE from taco.lib.bedgraph import array_to_bedgraph, bedgraph_to_array from taco.lib.cbedgraph import array_to_bedgraph as c_array_to_bedgraph
27.427184
71
0.647788
''' TACO: Multi-sample transcriptome assembly from RNA-Seq ''' import os import cStringIO import timeit import numpy as np from taco.lib.dtypes import FLOAT_DTYPE from taco.lib.bedgraph import array_to_bedgraph, bedgraph_to_array from taco.lib.cbedgraph import array_to_bedgraph as c_array_to_bedgraph def write_and_r...
2,330
0
184
8f1ae0df3d2caf0aac1e3036584ca2faea7b680b
1,093
py
Python
tests/test_utils.py
sodre/sqs-workers
46e14694805c4c2185a29ce2e906143358d06d8c
[ "MIT" ]
21
2018-10-06T21:51:51.000Z
2021-04-30T19:22:38.000Z
tests/test_utils.py
sodre/sqs-workers
46e14694805c4c2185a29ce2e906143358d06d8c
[ "MIT" ]
15
2019-02-27T13:19:34.000Z
2022-03-16T17:40:05.000Z
tests/test_utils.py
sodre/sqs-workers
46e14694805c4c2185a29ce2e906143358d06d8c
[ "MIT" ]
4
2019-02-27T12:21:26.000Z
2021-09-20T05:04:09.000Z
from textwrap import TextWrapper from sqs_workers.utils import ( adv_bind_arguments, adv_validate_arguments, instantiate_from_dict, instantiate_from_string, string_to_object, )
24.288889
70
0.675206
from textwrap import TextWrapper from sqs_workers.utils import ( adv_bind_arguments, adv_validate_arguments, instantiate_from_dict, instantiate_from_string, string_to_object, ) def test_string_to_object(): splitext = string_to_object("os.path.splitext") assert splitext("foo.txt") == ("foo...
775
0
115
823d5ccd7f4b25190eae376bdf8bf96d5298b941
6,202
py
Python
loaders.py
singleswitch/ticker
1e793316f2a3252d80339a69672ad81df550875d
[ "MIT" ]
null
null
null
loaders.py
singleswitch/ticker
1e793316f2a3252d80339a69672ad81df550875d
[ "MIT" ]
1
2018-11-06T09:30:23.000Z
2018-11-06T09:30:23.000Z
loaders.py
singleswitch/ticker
1e793316f2a3252d80339a69672ad81df550875d
[ "MIT" ]
1
2019-01-23T14:46:11.000Z
2019-01-23T14:46:11.000Z
import numpy as np import cPickle """* This file contains everything that has to be loaded from lookuptables e.g., the sound file lengths, the alphabet etc * Lookuptables stored in files, all depend on a root directory""" class AlphabetLoader(FileLoader): """This class contains all the loading functions asso...
45.270073
204
0.632215
import numpy as np import cPickle """* This file contains everything that has to be loaded from lookuptables e.g., the sound file lengths, the alphabet etc * Lookuptables stored in files, all depend on a root directory""" class FileLoader(): def __init__(self , i_root_dir): self.setRootDir(i_root_dir...
4,448
43
772
d257ca048420318e5eb15a7666e242097d2ed7a8
394
py
Python
server.py
michaelrbock/hackers-job-apply
c5f6c26046946316067897cf9ab9b5e6d7310e8a
[ "MIT" ]
20
2015-05-28T20:08:55.000Z
2020-10-12T21:51:12.000Z
server.py
michaelrbock/hackers-job-apply
c5f6c26046946316067897cf9ab9b5e6d7310e8a
[ "MIT" ]
null
null
null
server.py
michaelrbock/hackers-job-apply
c5f6c26046946316067897cf9ab9b5e6d7310e8a
[ "MIT" ]
5
2016-02-16T13:54:04.000Z
2020-06-26T18:50:22.000Z
import os from flask import Flask, request app = Flask(__name__) @app.route('/', methods=["GET", "POST"]) if __name__ == "__main__": app.run(debug=True)
23.176471
109
0.64467
import os from flask import Flask, request app = Flask(__name__) @app.route('/', methods=["GET", "POST"]) def index(): if request.json and request.json.get("answer") == os.getenv("ANSWER"): return os.getenv("JOB_EMAIL") + "\n" return "%s %s" % (os.getenv("QUESTION"), "POST json to the server with the answer -> ...
212
0
22
b4fa2855a728102eb7e89aa73c52415f48029918
1,782
py
Python
paypaladaptive/settings.py
amineck/django-paypal-adaptive
98a5d4674a4ae2b619ff4f9ee11240c27d03ac73
[ "CC-BY-3.0" ]
4
2015-01-21T10:42:21.000Z
2016-01-19T09:16:55.000Z
paypaladaptive/settings.py
amineck/django-paypal-adaptive
98a5d4674a4ae2b619ff4f9ee11240c27d03ac73
[ "CC-BY-3.0" ]
6
2015-01-14T22:13:10.000Z
2021-06-10T20:34:41.000Z
paypaladaptive/settings.py
amineck/django-paypal-adaptive
98a5d4674a4ae2b619ff4f9ee11240c27d03ac73
[ "CC-BY-3.0" ]
10
2015-03-23T14:16:30.000Z
2021-02-21T02:05:27.000Z
from datetime import timedelta from django.conf import settings from money import set_default_currency DEBUG = getattr(settings, "DEBUG", False) if DEBUG: # use sandboxes while in debug mode PAYPAL_ENDPOINT = 'https://svcs.sandbox.paypal.com/AdaptivePayments/' PAYPAL_PAYMENT_HOST = 'https://www.sandbox.p...
40.5
89
0.795174
from datetime import timedelta from django.conf import settings from money import set_default_currency DEBUG = getattr(settings, "DEBUG", False) if DEBUG: # use sandboxes while in debug mode PAYPAL_ENDPOINT = 'https://svcs.sandbox.paypal.com/AdaptivePayments/' PAYPAL_PAYMENT_HOST = 'https://www.sandbox.p...
0
0
0
a6c3a422b10ad2352d84749db1185f4c78782d2e
11,228
py
Python
vcd2json.py
anders-code/vcd2json
146384371f6b877b5a787c5bad2f9f171bad30e2
[ "MIT" ]
1
2022-01-29T23:32:40.000Z
2022-01-29T23:32:40.000Z
vcd2json.py
anders-code/vcd2json
146384371f6b877b5a787c5bad2f9f171bad30e2
[ "MIT" ]
null
null
null
vcd2json.py
anders-code/vcd2json
146384371f6b877b5a787c5bad2f9f171bad30e2
[ "MIT" ]
null
null
null
"""Create WaveJSON text string from VCD file.""" import sys
34.336391
77
0.483969
"""Create WaveJSON text string from VCD file.""" import sys class _SignalDef: def __init__(self, name, sid, length): self._name = name self._sid = sid self._length = length self._fmt = '' class WaveExtractor: def __init__(self, vcd_file, json_file, path_list): """ ...
7,002
3,882
280
c141fd6371c72cd5ede68d8b52c9dc5b2a9703e2
3,532
py
Python
agent.py
lmbaeza/Laberinto-SI
c86b459f13c9d9a58a64e17fcf228fe486755df7
[ "MIT" ]
null
null
null
agent.py
lmbaeza/Laberinto-SI
c86b459f13c9d9a58a64e17fcf228fe486755df7
[ "MIT" ]
null
null
null
agent.py
lmbaeza/Laberinto-SI
c86b459f13c9d9a58a64e17fcf228fe486755df7
[ "MIT" ]
null
null
null
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import B...
36.040816
110
0.583522
import time from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import B...
2,818
-9
174
5ad1a42fbcf99a0df17e4be175d2b9c068c6de4d
593
py
Python
fish_core/scrapy/run_crawler.py
SylvanasSun/FishFishJump
696212d242d8d572f3f1b43925f3d8ab8acc6a2d
[ "MIT" ]
60
2018-03-09T07:06:10.000Z
2021-11-18T15:53:04.000Z
fish_core/scrapy/run_crawler.py
qiubaiying/FishFishJump
696212d242d8d572f3f1b43925f3d8ab8acc6a2d
[ "MIT" ]
1
2018-04-03T11:05:54.000Z
2018-04-03T20:06:41.000Z
fish_core/scrapy/run_crawler.py
qiubaiying/FishFishJump
696212d242d8d572f3f1b43925f3d8ab8acc6a2d
[ "MIT" ]
8
2018-03-12T03:07:00.000Z
2021-06-11T05:16:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sched import time """ Perform crawling tasks on a regular basis, this module default starts crawler 'fish_simple_crawler' on the everyday. """ scheduler = sched.scheduler(time.time, time.sleep) if __name__ == '__main__': scheduler.enter(0, 0, ...
21.962963
76
0.716695
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sched import time """ Perform crawling tasks on a regular basis, this module default starts crawler 'fish_simple_crawler' on the everyday. """ scheduler = sched.scheduler(time.time, time.sleep) def crawl_tasks(spider_name): os.system('scrapy cra...
161
0
46
3c8a8feacb5678a703a405eb0fbe5a06f7f05dc1
437
py
Python
model/roi_layers/nms.py
ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch
9dd24947db318f6e404918d4758f1d824eea3748
[ "MIT" ]
26
2019-10-31T08:21:46.000Z
2022-03-11T13:58:43.000Z
model/roi_layers/nms.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
12
2019-11-07T09:12:50.000Z
2022-03-12T02:58:18.000Z
model/roi_layers/nms.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
11
2019-10-30T08:44:47.000Z
2022-03-11T13:58:48.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # from ._utils import _C import torch if torch.__version__.split(".")[0] == "1": from torchvision.ops import nms elif torch.__version__ == "0.4.0": from model.nms.nms_wrapper import nms else: raise RuntimeError("unsupported torch versi...
31.214286
91
0.713959
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # from ._utils import _C import torch if torch.__version__.split(".")[0] == "1": from torchvision.ops import nms elif torch.__version__ == "0.4.0": from model.nms.nms_wrapper import nms else: raise RuntimeError("unsupported torch versi...
0
0
0
2a873e86730c2b7e035acf29e0e6c9308282c3c7
1,834
py
Python
motion_sensor.py
joelghill/catcam
1b95b23d48bcaf42a028a90f728c0609b2ef9f79
[ "MIT" ]
1
2018-05-09T06:51:49.000Z
2018-05-09T06:51:49.000Z
motion_sensor.py
joelghill/catcam
1b95b23d48bcaf42a028a90f728c0609b2ef9f79
[ "MIT" ]
null
null
null
motion_sensor.py
joelghill/catcam
1b95b23d48bcaf42a028a90f728c0609b2ef9f79
[ "MIT" ]
null
null
null
#!/usr/bin/python import RPi.GPIO as GPIO import time #monitor = SonicDistanceMonitor(print_distance) #monitor.start(0.2)
26.970588
78
0.605234
#!/usr/bin/python import RPi.GPIO as GPIO import time class MotionDetector() : _input_pin = 11 _is_running = False _on_motion_detected = None def __init__(self, callback, input_pin=11) : """ Initializes a new instance of the SonicDistance class tigger is the GPIO pin connecte...
54
1,633
23
d7fa59b9d3ca261fe2244e4fe4242ca509271090
682
py
Python
kfusiontables/kft/sync.py
kula1922/kfusiontables
149ddaddb95319a237bb94525db17b1b3a5ac66f
[ "BSD-3-Clause" ]
4
2016-04-10T10:27:36.000Z
2018-10-12T13:45:25.000Z
kfusiontables/kft/sync.py
kula1922/kfusiontables
149ddaddb95319a237bb94525db17b1b3a5ac66f
[ "BSD-3-Clause" ]
2
2020-06-05T17:30:32.000Z
2021-06-01T21:52:49.000Z
kfusiontables/kft/sync.py
kula1922/kfusiontables
149ddaddb95319a237bb94525db17b1b3a5ac66f
[ "BSD-3-Clause" ]
null
null
null
import logging from kfusiontables.kft import KFusionTables logger = logging.getLogger(__name__)
27.28
73
0.617302
import logging from kfusiontables.kft import KFusionTables logger = logging.getLogger(__name__) class KFusionTablesSync(KFusionTables): def sync_tables(self, table_name=None, table_names=None, sender=None, senders=None, _all=None, force=None): """ Synchronize local tables to...
0
559
23
92f7c60c2ca087b46a3cac5a9312bc2c42f94484
11,399
py
Python
pyqode/core/_forms/search_panel_ui.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
pyqode/core/_forms/search_panel_ui.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
pyqode/core/_forms/search_panel_ui.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/colin/dev/pyQode/pyqode.core/forms/search_panel.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from qtpy import QtCore, QtGui, QtWidgets from pyqode.core.widgets import Prom...
58.45641
115
0.737258
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/colin/dev/pyQode/pyqode.core/forms/search_panel.ui' # # Created by: PyQt5 UI code generator 5.5.1 # # WARNING! All changes made in this file will be lost! from qtpy import QtCore, QtGui, QtWidgets class Ui_SearchPanel(object): de...
10,956
8
76
b59b2caf90924f8b1f174e18235105b36f87f29b
4,614
py
Python
main.py
kodo-pp/hse-ws10
9dbad128d2cbaa65a7d7ae4418f3a03736df0211
[ "Apache-2.0" ]
null
null
null
main.py
kodo-pp/hse-ws10
9dbad128d2cbaa65a7d7ae4418f3a03736df0211
[ "Apache-2.0" ]
null
null
null
main.py
kodo-pp/hse-ws10
9dbad128d2cbaa65a7d7ae4418f3a03736df0211
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import json import re import sys import time from argparse import ArgumentParser from queue import Queue import requests as rq from bs4 import BeautifulSoup from loguru import logger if __name__ == '__main__': main()
26.982456
108
0.596012
#!/usr/bin/env python import json import re import sys import time from argparse import ArgumentParser from queue import Queue import requests as rq from bs4 import BeautifulSoup from loguru import logger def parse_arguments(): ap = ArgumentParser( description = 'Download an HTML page, find HTTPS links ...
4,103
0
253
2732bd4889b921a247d93555b57cc7fd26b0b357
24,762
py
Python
load_data.py
vincekurtz/gracenet
787ed3c559cd540bbbb53380d5b21879857fe254
[ "MIT" ]
null
null
null
load_data.py
vincekurtz/gracenet
787ed3c559cd540bbbb53380d5b21879857fe254
[ "MIT" ]
null
null
null
load_data.py
vincekurtz/gracenet
787ed3c559cd540bbbb53380d5b21879857fe254
[ "MIT" ]
1
2018-09-19T06:43:19.000Z
2018-09-19T06:43:19.000Z
#!/usr/bin/env python3 ## # # GraceNET v0.0 # # Predict future anomolies based soley on the past 24 months of # GRACE anomolies. This file generates training and testing data # saving both to json files # ## import random import csv import glob import json import datetime import numpy as np import matplotlib.pyplot ...
32.368627
125
0.593288
#!/usr/bin/env python3 ## # # GraceNET v0.0 # # Predict future anomolies based soley on the past 24 months of # GRACE anomolies. This file generates training and testing data # saving both to json files # ## import random import csv import glob import json import datetime import numpy as np import matplotlib.pyplot ...
2,895
0
228
8b51079e178a0d8d86e85b0424d64cfac8f46bb3
1,414
py
Python
template/config/train.py
penguinmenac3/deeptech-template
63df98f9ff69ab0dbbb0e38287810928c4173b11
[ "MIT" ]
null
null
null
template/config/train.py
penguinmenac3/deeptech-template
63df98f9ff69ab0dbbb0e38287810928c4173b11
[ "MIT" ]
null
null
null
template/config/train.py
penguinmenac3/deeptech-template
63df98f9ff69ab0dbbb0e38287810928c4173b11
[ "MIT" ]
null
null
null
"""doc # Train Config This is the main configuration file used for training the approach. """ import os from deeptech.core import Config, cli from deeptech.model.module_from_json import Module from deeptech.training.trainers import SupervisedTrainer from deeptech.training.optimizers import smart_optimizer from torch.o...
36.25641
113
0.755304
"""doc # Train Config This is the main configuration file used for training the approach. """ import os from deeptech.core import Config, cli from deeptech.model.module_from_json import Module from deeptech.training.trainers import SupervisedTrainer from deeptech.training.optimizers import smart_optimizer from torch.o...
709
12
49
0d6c2a22e6d4c282df65ea5887d039eeeed9275c
12,871
py
Python
.tox/scenario/lib/python2.7/site-packages/psutil/_psbsd.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/psutil/_psbsd.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
.tox/scenario/lib/python2.7/site-packages/psutil/_psbsd.py
bdrich/neutron-lbaas
b4711abfe0207c4fdd5d7fb7ecbf017e753abbfd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """FreeBSD platform implementation.""" import errno import os import sys import warnings import _psutil_bsd import _psutil_posix ...
34.050265
80
0.681688
#!/usr/bin/env python # Copyright (c) 2009, Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """FreeBSD platform implementation.""" import errno import os import sys import warnings import _psutil_bsd import _psutil_posix ...
2,660
0
389
ff394a1171c293e681f64072878f8148762d365e
2,100
py
Python
tap_linkedin_marketing/executor.py
Radico/tap-linkedin-marketing
4ccd48bfdfa109955d4eb1c9ae5d81ff0c1f40bb
[ "Apache-2.0" ]
null
null
null
tap_linkedin_marketing/executor.py
Radico/tap-linkedin-marketing
4ccd48bfdfa109955d4eb1c9ae5d81ff0c1f40bb
[ "Apache-2.0" ]
null
null
null
tap_linkedin_marketing/executor.py
Radico/tap-linkedin-marketing
4ccd48bfdfa109955d4eb1c9ae5d81ff0c1f40bb
[ "Apache-2.0" ]
1
2020-10-08T16:49:59.000Z
2020-10-08T16:49:59.000Z
import singer from tap_kit import TapExecutor from tap_kit.utils import (transform_write_and_count) LOGGER = singer.get_logger()
27.272727
71
0.543333
import singer from tap_kit import TapExecutor from tap_kit.utils import (transform_write_and_count) LOGGER = singer.get_logger() class LinkedInExecutor(TapExecutor): def __init__(self, streams, args, client): """ Args: streams (arr[Stream]) args (dict) client...
660
1,285
23
3c5b2df441b90277fa6a7b32261e00006b20d450
566
py
Python
products/migrations/0009_auto_20200310_1903.py
JayPeaa/msproject5
89ee3e52cbefc686104389f91770581b88349020
[ "MIT" ]
null
null
null
products/migrations/0009_auto_20200310_1903.py
JayPeaa/msproject5
89ee3e52cbefc686104389f91770581b88349020
[ "MIT" ]
12
2020-02-12T02:53:42.000Z
2022-03-12T00:17:00.000Z
products/migrations/0009_auto_20200310_1903.py
JayPeaa/msproject5
89ee3e52cbefc686104389f91770581b88349020
[ "MIT" ]
1
2020-04-11T12:31:12.000Z
2020-04-11T12:31:12.000Z
# Generated by Django 2.1.14 on 2020-03-10 19:03 from django.db import migrations, models
23.583333
70
0.591873
# Generated by Django 2.1.14 on 2020-03-10 19:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0008_auto_20200307_1352'), ] operations = [ migrations.RemoveField( model_name='product', name='product...
0
451
23
73a63e4efac203c167f98bcd9a2ff16d6821760c
4,158
py
Python
core/src/models.py
fall2021-csc510-group40/filmfan
da42fdcc713f2b22debc1da9a09dc7a82aa5b66b
[ "MIT" ]
1
2021-09-20T00:34:27.000Z
2021-09-20T00:34:27.000Z
core/src/models.py
fall2021-csc510-group40/filmfan
da42fdcc713f2b22debc1da9a09dc7a82aa5b66b
[ "MIT" ]
36
2021-10-29T19:02:23.000Z
2021-11-16T03:06:01.000Z
core/src/models.py
pncnmnp/SE21-project
da42fdcc713f2b22debc1da9a09dc7a82aa5b66b
[ "MIT" ]
1
2022-02-25T03:07:26.000Z
2022-02-25T03:07:26.000Z
""" This package defines database models and relations used """ from . import db from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash class MovieHandle(db.Model): """ MovieHandle class provides a representation of a movie id for the database """ i...
31.740458
106
0.61544
""" This package defines database models and relations used """ from . import db from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash class MovieHandle(db.Model): """ MovieHandle class provides a representation of a movie id for the database """ i...
47
0
27
282aaaeff385e415d0b0f70d80c9a913e92b0bfc
3,092
py
Python
python/itertools_combinations_2.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
null
null
null
python/itertools_combinations_2.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
1
2019-02-23T18:30:51.000Z
2019-02-23T18:30:51.000Z
python/itertools_combinations_2.py
Hamng/python-sources
0cc5a5d9e576440d95f496edcfd921ae37fcd05a
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 00:39:20 2019 @author: Ham HackerRanch Challenge: Iterable and Iterators The itertools module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an iterator algebra making it possible...
29.730769
95
0.651682
# -*- coding: utf-8 -*- """ Created on Tue Mar 5 00:39:20 2019 @author: Ham HackerRanch Challenge: Iterable and Iterators The itertools module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an iterator algebra making it possible...
0
0
0
1249771607a589243d9d0012abde96e177516f07
236
py
Python
setup.py
pallogu/numerai
6f5d6b31e86d27030b041f8591e0122894128e59
[ "FTL" ]
null
null
null
setup.py
pallogu/numerai
6f5d6b31e86d27030b041f8591e0122894128e59
[ "FTL" ]
null
null
null
setup.py
pallogu/numerai
6f5d6b31e86d27030b041f8591e0122894128e59
[ "FTL" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Fun project to explore numer.ai modelling of market trends', author='Arvpau', license='', )
21.454545
77
0.677966
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Fun project to explore numer.ai modelling of market trends', author='Arvpau', license='', )
0
0
0
54db4693e1cf294e42ce5591b68d9cdb70403b91
4,356
py
Python
OCR.py
Sunil7545/OCRProjectTeamTwo
6124b0440421acfd28524988171d0061507d53dd
[ "MIT" ]
null
null
null
OCR.py
Sunil7545/OCRProjectTeamTwo
6124b0440421acfd28524988171d0061507d53dd
[ "MIT" ]
2
2022-01-13T02:02:43.000Z
2022-03-12T00:11:03.000Z
OCR.py
Sunil7545/OCRProjectTeamTwo
6124b0440421acfd28524988171d0061507d53dd
[ "MIT" ]
2
2019-12-27T19:07:27.000Z
2020-01-17T15:06:13.000Z
''' This program will convert PDFs into images and read text from those images and print the text over the screen. This can also extract text directly from images and print it out. ''' import os # try is used to keep a check over the import. If there is an error, it will not close # the program, but instead execute th...
36.3
96
0.665289
''' This program will convert PDFs into images and read text from those images and print the text over the screen. This can also extract text directly from images and print it out. ''' import os # try is used to keep a check over the import. If there is an error, it will not close # the program, but instead execute th...
0
0
0
61a82ac910dabe7ebb8ace667d6eced2cc315462
1,671
py
Python
tests/ros_comm/test_asserts.py
ros-testing/rospbt
db708ba9c326920b222ef5662b0326db9397d718
[ "Apache-2.0" ]
null
null
null
tests/ros_comm/test_asserts.py
ros-testing/rospbt
db708ba9c326920b222ef5662b0326db9397d718
[ "Apache-2.0" ]
11
2018-05-11T15:37:20.000Z
2018-07-30T19:10:47.000Z
tests/ros_comm/test_asserts.py
ros-testing/rospbt
db708ba9c326920b222ef5662b0326db9397d718
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from rostestplus.ros_comm.asserts import ( AssertException, assert_node_pingable, assert_node_listed, assert_node_listed_on_machine, assert_service_response_success_true, )
25.707692
86
0.775583
# -*- coding: utf-8 -*- import pytest from rostestplus.ros_comm.asserts import ( AssertException, assert_node_pingable, assert_node_listed, assert_node_listed_on_machine, assert_service_response_success_true, ) def test_assert_node_pingable_doesnt_raise_exception_for_existing_node(): fake_st...
1,286
0
138
3f63d509b9f70233de4928b087d43a1d0bf024cc
3,229
py
Python
model-optimizer/mo/ops/pad_test.py
JOCh1958/openvino
070201feeec5550b7cf8ec5a0ffd72dc879750be
[ "Apache-2.0" ]
1
2021-04-06T03:32:12.000Z
2021-04-06T03:32:12.000Z
model-optimizer/mo/ops/pad_test.py
JOCh1958/openvino
070201feeec5550b7cf8ec5a0ffd72dc879750be
[ "Apache-2.0" ]
28
2021-09-24T09:29:02.000Z
2022-03-28T13:20:46.000Z
model-optimizer/mo/ops/pad_test.py
JOCh1958/openvino
070201feeec5550b7cf8ec5a0ffd72dc879750be
[ "Apache-2.0" ]
1
2020-08-30T11:48:03.000Z
2020-08-30T11:48:03.000Z
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from mo.graph.graph import Node from mo.ops.pad import Pad, AttributedPad from mo.utils.unittest.graph import build_graph
33.635417
120
0.539486
# Copyright (C) 2018-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest import numpy as np from mo.graph.graph import Node from mo.ops.pad import Pad, AttributedPad from mo.utils.unittest.graph import build_graph class TestPadOps(unittest.TestCase): node_attrs = { 'data_in': {...
2,058
905
23
b3fa2afde1dc0c13806286ecc1f5bd2388803a59
11,997
py
Python
tensorflow/script/network_hrnet.py
christinazavou/ANNFASS_Structure
f7b6d3e44d2466ed15009a3335e757def62adfa6
[ "MIT" ]
null
null
null
tensorflow/script/network_hrnet.py
christinazavou/ANNFASS_Structure
f7b6d3e44d2466ed15009a3335e757def62adfa6
[ "MIT" ]
null
null
null
tensorflow/script/network_hrnet.py
christinazavou/ANNFASS_Structure
f7b6d3e44d2466ed15009a3335e757def62adfa6
[ "MIT" ]
null
null
null
from ocnn import *
46.863281
120
0.581895
from ocnn import * class OctreeUpsample: def __init__(self, upsample='nearest'): self.upsample = upsample def __call__(self, data, octree, d, mask=None): if self.upsample == 'nearest': data = octree_tile(data, octree, d) else: data = octree_bilinear(data, octre...
11,527
-9
452
cf2a2de27769f700c32eae12f1013f8529c4d8cf
835
py
Python
backend/wod_board/models/__init__.py
GuillaumeOj/P13-WOD-Board
36df7979e63c354507edb56eabdfc548b1964d08
[ "MIT" ]
null
null
null
backend/wod_board/models/__init__.py
GuillaumeOj/P13-WOD-Board
36df7979e63c354507edb56eabdfc548b1964d08
[ "MIT" ]
82
2021-01-17T18:12:23.000Z
2021-06-12T21:46:49.000Z
backend/wod_board/models/__init__.py
GuillaumeOj/WodBoard
1ac12404f6094909c9bf116bcaf6ccd60e85bc00
[ "MIT" ]
null
null
null
import sqlalchemy import sqlalchemy.orm from wod_board import config Base = sqlalchemy.orm.declarative_base() engine = sqlalchemy.create_engine(config.DATABASE_URL) Session = sqlalchemy.orm.sessionmaker(bind=engine, class_=sqlalchemy.orm.Session) # Import each model fo Alembic from wod_board.models.equipment im...
21.973684
81
0.732934
import sqlalchemy import sqlalchemy.orm from wod_board import config Base = sqlalchemy.orm.declarative_base() engine = sqlalchemy.create_engine(config.DATABASE_URL) Session = sqlalchemy.orm.sessionmaker(bind=engine, class_=sqlalchemy.orm.Session) def get_db(): db = Session() try: yield db fin...
157
0
69
99e693da437969ae877a9c639beb2e1c016d3c3c
1,727
py
Python
qatrack/parts/migrations/0014_auto_20201230_0955.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/parts/migrations/0014_auto_20201230_0955.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/parts/migrations/0014_auto_20201230_0955.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
# Generated by Django 2.1.15 on 2020-12-30 14:55 import os from django.conf import settings from django.db import migrations from django.db.migrations.recorder import MigrationRecorder
31.4
107
0.659525
# Generated by Django 2.1.15 on 2020-12-30 14:55 import os from django.conf import settings from django.db import migrations from django.db.migrations.recorder import MigrationRecorder def alter_unique(apps, schema): from django.db import connection, transaction cursor = connection.cursor() cursor.execu...
1,035
457
46
00d47b939f359f3dcf59c98e277e76e10ecbf25e
5,108
py
Python
app/main.py
prav10194/automated-twitter-reddit-app
7c44dbb998d4124589e7c8d74fa0b6e09c2aea40
[ "MIT" ]
null
null
null
app/main.py
prav10194/automated-twitter-reddit-app
7c44dbb998d4124589e7c8d74fa0b6e09c2aea40
[ "MIT" ]
null
null
null
app/main.py
prav10194/automated-twitter-reddit-app
7c44dbb998d4124589e7c8d74fa0b6e09c2aea40
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from flask import Flask, render_template, request from flask_cors import CORS, cross_origin import requests import dropbox app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' import praw import requests import youtube_dl import random import time...
45.607143
166
0.57224
from __future__ import unicode_literals from flask import Flask, render_template, request from flask_cors import CORS, cross_origin import requests import dropbox app = Flask(__name__) cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' import praw import requests import youtube_dl import random import time...
4,112
0
44
072864afc42d7a2bd9cbf5cb71e2e0a705e39792
3,651
py
Python
dgaintel/predict.py
ffontaine/dgaintel
6b2ed1023c73fd3449571380eca34e17f919114b
[ "MIT" ]
null
null
null
dgaintel/predict.py
ffontaine/dgaintel
6b2ed1023c73fd3449571380eca34e17f919114b
[ "MIT" ]
null
null
null
dgaintel/predict.py
ffontaine/dgaintel
6b2ed1023c73fd3449571380eca34e17f919114b
[ "MIT" ]
null
null
null
''' Main prediction module for dgaintel package ''' import os import numpy as np from tensorflow.keras.models import load_model DIR_PATH = os.path.dirname(os.path.abspath(__file__)) SAVED_MODEL_PATH = os.path.join(DIR_PATH, 'domain_classifier_model.h5') MODEL = load_model(SAVED_MODEL_PATH) CHAR2IDX = {'-': 0, '.': 1,...
30.680672
83
0.575185
''' Main prediction module for dgaintel package ''' import os import numpy as np from tensorflow.keras.models import load_model DIR_PATH = os.path.dirname(os.path.abspath(__file__)) SAVED_MODEL_PATH = os.path.join(DIR_PATH, 'domain_classifier_model.h5') MODEL = load_model(SAVED_MODEL_PATH) CHAR2IDX = {'-': 0, '.': 1,...
689
0
46
4521ed0e587cc3e49439300b7abac40ba3de6383
17,394
py
Python
python/deepLearningPlotter.py
cms-ttbarAC/CyMiniAna
405b1ac6639f8a93297e847180b5a6ab58f9a06c
[ "MIT" ]
null
null
null
python/deepLearningPlotter.py
cms-ttbarAC/CyMiniAna
405b1ac6639f8a93297e847180b5a6ab58f9a06c
[ "MIT" ]
31
2017-10-26T16:11:32.000Z
2018-08-13T14:39:56.000Z
python/deepLearningPlotter.py
cms-ttbarAC/cheetah
76457d3cb3936dac5c78957b66b3b8aa213ca2b7
[ "MIT" ]
1
2018-07-24T20:32:35.000Z
2018-07-24T20:32:35.000Z
""" Created: 11 November 2016 Last Updated: 16 February 2018 Dan Marley daniel.edison.marley@cernSPAMNOT.ch Texas A&M University ----- Base class for plotting deep learning Designed for running on desktop at TAMU with specific set of software installed --> not guaranteed to work in CMSSW environment! Doe...
39.531818
144
0.593825
""" Created: 11 November 2016 Last Updated: 16 February 2018 Dan Marley daniel.edison.marley@cernSPAMNOT.ch Texas A&M University ----- Base class for plotting deep learning Designed for running on desktop at TAMU with specific set of software installed --> not guaranteed to work in CMSSW environment! Doe...
249
0
26
834408ee97e14fc2967196b73b32178bcfe126ec
5,078
py
Python
parametric_problems/lasso.py
BerkeleyAutomation/rlqp_benchmarks
5c79e870c4bd697383f66f5dff26aea29dc1ebfa
[ "Apache-2.0" ]
49
2017-11-18T11:16:44.000Z
2021-05-05T12:48:33.000Z
parametric_problems/lasso.py
leiyubiao/osqp_benchmarks
5c79e870c4bd697383f66f5dff26aea29dc1ebfa
[ "Apache-2.0" ]
5
2017-11-18T20:10:25.000Z
2020-09-27T09:06:58.000Z
parametric_problems/lasso.py
leiyubiao/osqp_benchmarks
5c79e870c4bd697383f66f5dff26aea29dc1ebfa
[ "Apache-2.0" ]
19
2017-11-18T20:13:31.000Z
2021-05-06T01:27:31.000Z
""" Solve Lasso problem as parametric QP by updating iteratively lambda """ import numpy as np import pandas as pd import os from solvers.solvers import SOLVER_MAP # AVOID CIRCULAR DEPENDENCY from problem_classes.lasso import LassoExample from utils.general import make_sure_path_exists # import osqppurepy as osqp impo...
32.343949
83
0.521268
""" Solve Lasso problem as parametric QP by updating iteratively lambda """ import numpy as np import pandas as pd import os from solvers.solvers import SOLVER_MAP # AVOID CIRCULAR DEPENDENCY from problem_classes.lasso import LassoExample from utils.general import make_sure_path_exists # import osqppurepy as osqp impo...
0
4,726
23
e1bd1d8d7ce5622633bf24fc68ec450788976faa
74,865
py
Python
src/datalad_installer.py
datalad/datalad-installer
93a4c7a032aef42af59fc889e61d9e4c78f0f1bb
[ "MIT" ]
2
2021-07-06T11:51:44.000Z
2022-03-01T08:03:01.000Z
src/datalad_installer.py
datalad/datalad-installer
93a4c7a032aef42af59fc889e61d9e4c78f0f1bb
[ "MIT" ]
88
2020-12-15T16:12:58.000Z
2022-03-25T20:48:31.000Z
src/datalad_installer.py
datalad/datalad-installer
93a4c7a032aef42af59fc889e61d9e4c78f0f1bb
[ "MIT" ]
2
2020-12-24T03:03:29.000Z
2022-01-06T01:28:36.000Z
#!/usr/bin/env python3 """ Installation script for Datalad and related components ``datalad-installer`` is a script for installing Datalad_, git-annex_, and related components all in a single invocation. It requires no third-party Python libraries, though it does make heavy use of external packaging commands. .. _Da...
34.263158
96
0.562773
#!/usr/bin/env python3 """ Installation script for Datalad and related components ``datalad-installer`` is a script for installing Datalad_, git-annex_, and related components all in a single invocation. It requires no third-party Python libraries, though it does make heavy use of external packaging commands. .. _Da...
39,771
5,767
1,471
0ad7f61aed9b153afd213f5a01cf465a50844018
9,205
py
Python
moabb/paradigms/ssvep.py
plcrodrigues/moabb
aa4274fe7905631864e854c121c92e1927061f29
[ "BSD-3-Clause" ]
321
2017-06-03T16:14:45.000Z
2022-03-28T17:43:59.000Z
moabb/paradigms/ssvep.py
plcrodrigues/moabb
aa4274fe7905631864e854c121c92e1927061f29
[ "BSD-3-Clause" ]
223
2017-06-03T17:41:57.000Z
2022-03-29T09:07:44.000Z
moabb/paradigms/ssvep.py
girafe-ai/moabb
78bbb48a2a0058b0725ebeba1ba1e3203f0eacd5
[ "BSD-3-Clause" ]
118
2017-06-03T18:36:35.000Z
2022-03-16T06:22:02.000Z
"""Steady-State Visually Evoked Potentials Paradigms""" import logging from moabb.datasets import utils from moabb.datasets.fake import FakeDataset from moabb.paradigms.base import BaseParadigm log = logging.getLogger(__name__) class BaseSSVEP(BaseParadigm): """Base SSVEP Paradigm Parameters --------...
34.475655
86
0.610864
"""Steady-State Visually Evoked Potentials Paradigms""" import logging from moabb.datasets import utils from moabb.datasets.fake import FakeDataset from moabb.paradigms.base import BaseParadigm log = logging.getLogger(__name__) class BaseSSVEP(BaseParadigm): """Base SSVEP Paradigm Parameters --------...
3,019
0
240
3bce5d801f2b7e46030a48b54ef5fc9e31dec0f2
394
py
Python
.ipython/profile_default/startup/startup_file.py
mmphego/dot-files
0563646cd9e9d627c08c710000afcc038a55fa2c
[ "MIT" ]
29
2019-03-03T17:54:46.000Z
2021-12-05T00:06:30.000Z
.ipython/profile_default/startup/startup_file.py
deltakapa/dot-files
bb43088d2bcea15e892dfa45bff934b8e7399e17
[ "MIT" ]
1
2019-03-04T05:41:14.000Z
2019-03-04T05:41:14.000Z
.ipython/profile_default/startup/startup_file.py
deltakapa/dot-files
bb43088d2bcea15e892dfa45bff934b8e7399e17
[ "MIT" ]
6
2019-03-03T17:50:34.000Z
2021-01-18T13:12:45.000Z
import os import subprocess import sys import time modulenames = ", ".join(list(set(sys.modules) & set(globals()))) msg = "---> Automagically imported these packages (if available): {}".format(modulenames) formatted_msg = Style.LINE + Style.BOLD + Style.RED + msg + Style.END print(formatted_msg)
21.888889
89
0.659898
import os import subprocess import sys import time class Style: BOLD = "\033[1m" END = "\033[0m\n" RED = "\033[91m" LINE = "\n" modulenames = ", ".join(list(set(sys.modules) & set(globals()))) msg = "---> Automagically imported these packages (if available): {}".format(modulenames) formatted_msg = S...
0
71
23
3bdcdb5f7e2a731cc8ba3d1d150a2d7eaeb46753
1,602
py
Python
tests/test_parser_helpers.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
1
2021-06-01T17:03:47.000Z
2021-06-01T17:03:47.000Z
tests/test_parser_helpers.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
null
null
null
tests/test_parser_helpers.py
zagaran/instant-census
62dd5bbc62939f43776a10708ef663722ead98af
[ "MIT" ]
null
null
null
from tests.common import InstantCensusTestCase from utils.parser_helpers import split_standard_separators # from parsers.number_parser import text2int from string import whitespace as WHITESPACE_CHARS # text2int_tests = { # "twenty-two" : 22, # "ninety seven" : 97, # "one hundred thirty seven" : 137, # ...
31.411765
86
0.519975
from tests.common import InstantCensusTestCase from utils.parser_helpers import split_standard_separators # from parsers.number_parser import text2int from string import whitespace as WHITESPACE_CHARS class TestParserHelpers(InstantCensusTestCase): SPLIT_STRING_TESTS = { #simple splitting cases 'a...
264
523
23
1f48ee108a1a017bfe9393336c3a466100542c05
206
py
Python
millisecond1/millisecond1_1.py
Walop/AdventOfCode2017
32786e46d8fdfb5c824b72403cbc1a8858bac2bb
[ "MIT" ]
null
null
null
millisecond1/millisecond1_1.py
Walop/AdventOfCode2017
32786e46d8fdfb5c824b72403cbc1a8858bac2bb
[ "MIT" ]
null
null
null
millisecond1/millisecond1_1.py
Walop/AdventOfCode2017
32786e46d8fdfb5c824b72403cbc1a8858bac2bb
[ "MIT" ]
null
null
null
with open("input", "r") as file: input = file.read() nums = list(input) sum = 0 for i in range(0, len(nums)): if nums[i] == nums[i-1]: sum += int(nums[i]) print(sum)
22.888889
33
0.490291
with open("input", "r") as file: input = file.read() nums = list(input) sum = 0 for i in range(0, len(nums)): if nums[i] == nums[i-1]: sum += int(nums[i]) print(sum)
0
0
0
a6b98cf550cbc9c04e82fd726c98a3cd54cc8498
15,173
py
Python
framework-nucleus-segmentation/mrcnn/samples/cell/cell.py
CBIIT/nci-hitif
2f825cbcba92ff2fdffac60de56604578f31e937
[ "MIT" ]
null
null
null
framework-nucleus-segmentation/mrcnn/samples/cell/cell.py
CBIIT/nci-hitif
2f825cbcba92ff2fdffac60de56604578f31e937
[ "MIT" ]
8
2020-04-13T18:52:30.000Z
2022-02-10T01:18:21.000Z
mrcnn/samples/cell/cell.py
usnistgov/WIPP-fpn-inference-plugin
a3356305dcf2f3196833690c56f6bf5599de3d08
[ "MIT" ]
3
2018-07-10T15:19:54.000Z
2021-02-16T17:10:01.000Z
import tensorflow as tf tf_version = int((tf.__version__).split('.')[0]) if tf_version >= 2: import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import os import sys import random import numpy as np import cv2 import skimage.io import warnings; warnings.simplefilter('ignore') import time import h5py # ...
33.056645
173
0.598827
import tensorflow as tf tf_version = int((tf.__version__).split('.')[0]) if tf_version >= 2: import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import os import sys import random import numpy as np import cv2 import skimage.io import warnings; warnings.simplefilter('ignore') import time import h5py # ...
0
1,136
23
2025037e1bf63d94579a9569795dc83706d80bac
2,749
py
Python
examples/adafruit_io_simpletest_esp_at.py
willingc/Adafruit_CircuitPython_AdafruitIO
9f47ce31564f952072b804a162d738d1c872aa28
[ "MIT" ]
null
null
null
examples/adafruit_io_simpletest_esp_at.py
willingc/Adafruit_CircuitPython_AdafruitIO
9f47ce31564f952072b804a162d738d1c872aa28
[ "MIT" ]
null
null
null
examples/adafruit_io_simpletest_esp_at.py
willingc/Adafruit_CircuitPython_AdafruitIO
9f47ce31564f952072b804a162d738d1c872aa28
[ "MIT" ]
null
null
null
""" Usage example of the ESP32 over UART using the CircuitPython ESP_ATControl library. Dependencies: * https://github.com/adafruit/Adafruit_CircuitPython_ESP_ATcontrol """ from random import randint import board import busio from digitalio import DigitalInOut # Import Adafruit IO REST Client from adafruit_io.ada...
32.341176
95
0.772645
""" Usage example of the ESP32 over UART using the CircuitPython ESP_ATControl library. Dependencies: * https://github.com/adafruit/Adafruit_CircuitPython_ESP_ATcontrol """ from random import randint import board import busio from digitalio import DigitalInOut # Import Adafruit IO REST Client from adafruit_io.ada...
0
0
0
d9548f1abcc0c877d3c68c744296db8df25eecf0
2,925
py
Python
toil/src/toil_marginphase/scripts/split_bam_by_coordinate.py
sachet-mittal/marginPhase
afe6c69825c5c51f02131b9f675a7d2c2d2c164e
[ "MIT" ]
34
2017-08-07T00:24:11.000Z
2021-11-19T04:34:44.000Z
toil/src/toil_marginphase/scripts/split_bam_by_coordinate.py
sachet-mittal/marginPhase
afe6c69825c5c51f02131b9f675a7d2c2d2c164e
[ "MIT" ]
12
2018-04-16T06:34:53.000Z
2022-03-04T03:40:48.000Z
toil/src/toil_marginphase/scripts/split_bam_by_coordinate.py
sachet-mittal/marginPhase
afe6c69825c5c51f02131b9f675a7d2c2d2c164e
[ "MIT" ]
10
2017-02-18T03:48:23.000Z
2020-01-07T00:57:21.000Z
#!/usr/bin/env python from __future__ import print_function import argparse import glob import os import subprocess import sys CHR = "c" START = "s" END = "e" DESC = "d" if __name__ == "__main__": main()
37.5
128
0.6
#!/usr/bin/env python from __future__ import print_function import argparse import glob import os import subprocess import sys CHR = "c" START = "s" END = "e" DESC = "d" def parse_args(): parser = argparse.ArgumentParser("Split BAM by region") parser.add_argument('--input_bam_glob', '-i', dest='input_bam_gl...
2,638
0
69
06d1b0decc735be6856a071f3dfe2d0445118634
2,520
py
Python
select.py
rmccartney856/marvelMovieSelector
8adaef2ce1ed2c83c840f36ff74312b4322d3cec
[ "MIT" ]
2
2019-03-31T23:00:31.000Z
2019-03-31T23:00:34.000Z
select.py
rmccartney856/marvelMovieSelector
8adaef2ce1ed2c83c840f36ff74312b4322d3cec
[ "MIT" ]
null
null
null
select.py
rmccartney856/marvelMovieSelector
8adaef2ce1ed2c83c840f36ff74312b4322d3cec
[ "MIT" ]
null
null
null
#NAME: select.py #DATE: 31/03/2019 import json import time import random import tkinter as tk from PIL import Image, ImageTk coverPath = "noimage.png" root = tk.Tk() root.title("Marvel Movie Generator") root.configure(background='black') #size of the window root.geometry("450x880") frame = tk.Frame(root) frame.pac...
30.361446
128
0.702381
#NAME: select.py #DATE: 31/03/2019 import json import time import random import tkinter as tk from PIL import Image, ImageTk coverPath = "noimage.png" def generate(): #Open Movie File marvelMovies = open('movies.json').read() marvel = json.loads(marvelMovies) #Select Random Phase print("Selecti...
1,116
0
23
91a51dcbfc685464fa605e651f220b09aaf8f706
15,440
py
Python
tests/test_utils.py
radioactivedecay/radioactivedecay
39b9cf45465f8ed54dc67bc35a3bb20bd8c257c7
[ "MIT" ]
12
2021-11-12T21:15:22.000Z
2022-03-30T12:36:03.000Z
tests/test_utils.py
radioactivedecay/radioactivedecay
39b9cf45465f8ed54dc67bc35a3bb20bd8c257c7
[ "MIT" ]
15
2021-11-08T03:30:41.000Z
2022-03-21T07:24:48.000Z
tests/test_utils.py
radioactivedecay/radioactivedecay
39b9cf45465f8ed54dc67bc35a3bb20bd8c257c7
[ "MIT" ]
3
2021-11-07T16:33:19.000Z
2022-02-10T09:50:42.000Z
""" Unit tests for utils.py functions. """ import unittest import numpy as np from sympy import Integer, log from radioactivedecay.utils import ( get_metastable_chars, Z_to_elem, elem_to_Z, build_id, build_nuclide_string, NuclideStrError, parse_nuclide_str, parse_id, parse_nuclide, ...
44.240688
94
0.629922
""" Unit tests for utils.py functions. """ import unittest import numpy as np from sympy import Integer, log from radioactivedecay.utils import ( get_metastable_chars, Z_to_elem, elem_to_Z, build_id, build_nuclide_string, NuclideStrError, parse_nuclide_str, parse_id, parse_nuclide, ...
0
0
0
f4ed724a958fb55e950f7a8e3a6a1c517973e5d2
759
py
Python
flexslider/models.py
ForumDev/djangocms-flexslider
181168aa9752d7023e03880b27004b886c96afdf
[ "MIT" ]
null
null
null
flexslider/models.py
ForumDev/djangocms-flexslider
181168aa9752d7023e03880b27004b886c96afdf
[ "MIT" ]
null
null
null
flexslider/models.py
ForumDev/djangocms-flexslider
181168aa9752d7023e03880b27004b886c96afdf
[ "MIT" ]
1
2020-10-12T06:32:34.000Z
2020-10-12T06:32:34.000Z
from django.db import models from cms.models.pluginmodel import CMSPlugin from django.utils.http import int_to_base36 # Create your models here.
44.647059
116
0.716733
from django.db import models from cms.models.pluginmodel import CMSPlugin from django.utils.http import int_to_base36 # Create your models here. class Slide(models.Model): title = models.CharField(max_length=25) index = models.IntegerField(default=0) descript = models.TextField(default='') short_name =...
155
436
23
5b5eae6199479a508c9a2978661678252607a7c1
1,147
py
Python
level_loader.py
OHopiak/over_the_wire_level_loader
31a5ecc68553d1ed9c09402af025347c209d1f15
[ "MIT" ]
1
2022-03-06T19:10:21.000Z
2022-03-06T19:10:21.000Z
level_loader.py
OHopiak/over_the_wire_level_loader
31a5ecc68553d1ed9c09402af025347c209d1f15
[ "MIT" ]
null
null
null
level_loader.py
OHopiak/over_the_wire_level_loader
31a5ecc68553d1ed9c09402af025347c209d1f15
[ "MIT" ]
null
null
null
import json import os from config import Config from level import Level
24.404255
58
0.707934
import json import os from config import Config from level import Level class LevelLoader: def __init__(self, config: Config, filename): self.config = config self.filename = filename self.levels = {} def load(self): if not os.path.exists(self.filename): self.levels[0] = Level(self.config) self.save(...
934
-3
142
22892635c988f34b654c60f02e026254afa31ea3
6,210
py
Python
hw/rmnist.py
vihari/CSD
9902cdc8ea54f2650cd1396f904a06598a864a76
[ "MIT" ]
41
2020-05-01T10:08:26.000Z
2021-12-21T12:47:53.000Z
hw/rmnist.py
kevinbro96/CSD
9902cdc8ea54f2650cd1396f904a06598a864a76
[ "MIT" ]
6
2020-07-10T03:48:16.000Z
2021-07-21T06:49:05.000Z
hw/rmnist.py
kevinbro96/CSD
9902cdc8ea54f2650cd1396f904a06598a864a76
[ "MIT" ]
6
2020-06-07T13:57:36.000Z
2021-12-09T11:52:39.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...
36.315789
114
0.703865
# 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...
4,503
0
69
c9fb9128994d65e802fe7e09c5ea25c6fdc37c5a
2,290
py
Python
tests/test_plotting.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
1
2020-11-20T17:17:50.000Z
2020-11-20T17:17:50.000Z
tests/test_plotting.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
12
2020-11-19T05:22:13.000Z
2020-12-15T03:50:33.000Z
tests/test_plotting.py
dpanici/DESC
e98a16394d02411952efc18cc6c009e5226b11e4
[ "MIT" ]
null
null
null
import unittest from desc.plotting import Plot
43.207547
88
0.461135
import unittest from desc.plotting import Plot class TestPlot(unittest.TestCase): def setUp(self): self.names = ['B', '|B|', 'B^zeta', 'B_zeta', 'B_r', 'B^zeta_r', 'B_zeta_r', 'B**2', 'B_r**2', 'B^zeta**2', 'B_zeta**2', 'B^zeta_r**2', 'B_zeta_r**2'] self.bases = ['...
2,125
13
104
4395828f7160f986e3513ec5a042011bcc7933d9
5,193
py
Python
appimagebuilder/__main__.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
appimagebuilder/__main__.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
appimagebuilder/__main__.py
mssalvatore/appimage-builder
2ecb7973cedfff9d03a21258419e515c48cafe84
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, cop...
32.867089
88
0.629886
#!/usr/bin/env python3 # Copyright 2020 Alexis Lopez Zubieta # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation the # rights to use, cop...
3,974
0
69
c3cc1bbc8361fb79bfc3929e7c307b0d7476fa52
8,616
py
Python
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/IBM/FakeAlbumCoverGame.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# coding: utf-8 # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="http://cocl.us/NotebooksPython101"><img src = "https://ibm.box.com/shared/static/yfe6h4az47ktg2mm9h05wby2n7e8kei3.png" width = 750, align = "center"></a> # <a href="https://www.bigdatauniversity.com"><img src = "https:...
36.201681
520
0.709262
# coding: utf-8 # <div class="alert alert-block alert-info" style="margin-top: 20px"> # <a href="http://cocl.us/NotebooksPython101"><img src = "https://ibm.box.com/shared/static/yfe6h4az47ktg2mm9h05wby2n7e8kei3.png" width = 750, align = "center"></a> # <a href="https://www.bigdatauniversity.com"><img src = "https:...
0
0
0
5ac1a60094da7f7d24954f092d12c53c1fb20c08
1,915
py
Python
src/create_feature_descriptor.py
gmaher/cmd_tools
27f31eadca16e5fb7e4175ff3d6dd5881bfa3e27
[ "MIT" ]
null
null
null
src/create_feature_descriptor.py
gmaher/cmd_tools
27f31eadca16e5fb7e4175ff3d6dd5881bfa3e27
[ "MIT" ]
null
null
null
src/create_feature_descriptor.py
gmaher/cmd_tools
27f31eadca16e5fb7e4175ff3d6dd5881bfa3e27
[ "MIT" ]
null
null
null
import os import json import argparse import pandas as pd from tqdm import tqdm from dateutil.parser import parse parser = argparse.ArgumentParser() parser.add_argument('-input') parser.add_argument('-output_dir') parser.add_argument('-override_file',type=str,default="") args = parser.parse_args() input_ = os.path....
25.197368
66
0.627676
import os import json import argparse import pandas as pd from tqdm import tqdm from dateutil.parser import parse def is_date_func(string): try: parse(string) return True except: return False parser = argparse.ArgumentParser() parser.add_argument('-input') parser.add_argument('-output...
88
0
23
bfaf623c08a95eaf936f8bdf7d57dc7654bcf392
1,425
py
Python
src/utils.py
uvipen/QuickDraw-AirGesture-tensorflow
377f3344e37496306d12c753794b06ddca84c3f3
[ "MIT" ]
94
2021-07-12T13:02:40.000Z
2022-02-15T10:48:57.000Z
src/utils.py
haoict/QuickDraw-AirGesture-tensorflow
3e11cf12a08d3ebf012d20ff0ebb44afdfb17bad
[ "MIT" ]
null
null
null
src/utils.py
haoict/QuickDraw-AirGesture-tensorflow
3e11cf12a08d3ebf012d20ff0ebb44afdfb17bad
[ "MIT" ]
24
2021-07-12T13:02:03.000Z
2021-12-06T09:42:45.000Z
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import cv2 import numpy as np from collections import OrderedDict # https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/image_classification/quickdraw_labels.txt # Rule: key of category = index -1, with index from the link above CLASS_IDS = Ordere...
29.6875
114
0.698246
""" @author: Viet Nguyen <nhviet1009@gmail.com> """ import cv2 import numpy as np from collections import OrderedDict # https://github.com/tensorflow/datasets/blob/master/tensorflow_datasets/image_classification/quickdraw_labels.txt # Rule: key of category = index -1, with index from the link above CLASS_IDS = Ordere...
596
0
46
a4c89ea15ba64b8b6f264c35fcaeb76de5ace39c
6,496
py
Python
reinvent-2019/connected-photo-booth/py_client/config.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
reinvent-2019/connected-photo-booth/py_client/config.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
reinvent-2019/connected-photo-booth/py_client/config.py
chriscoombs/aws-builders-fair-projects
eee405931030b833fa8c51e906c73d09ce051bcd
[ "Apache-2.0" ]
null
null
null
import boto3 import botocore import os import glob import json import requests from datetime import datetime from time import sleep from time import gmtime, strftime import sys, getopt import argparse import subprocess from shutil import copyfile, rmtree import logging import configparser __CONFIG_FILE_PATH__ ...
26.406504
114
0.671952
import boto3 import botocore import os import glob import json import requests from datetime import datetime from time import sleep from time import gmtime, strftime import sys, getopt import argparse import subprocess from shutil import copyfile, rmtree import logging import configparser __CONFIG_FILE_PATH__ ...
4,326
1,776
23
56e7ca0fc7489f5c223fc37faf7817929b1b8643
2,240
py
Python
convert_hdf52recordio.py
Helmholtz-AI-Energy/mlperf-deepcam
d4869bce18029cc9877d7ed04178d6e4ca73a411
[ "MIT" ]
3
2021-11-18T20:01:35.000Z
2021-12-17T17:47:23.000Z
convert_hdf52recordio.py
Helmholtz-AI-Energy/mlperf-deepcam
d4869bce18029cc9877d7ed04178d6e4ca73a411
[ "MIT" ]
1
2022-03-16T07:29:30.000Z
2022-03-31T10:19:07.000Z
convert_hdf52recordio.py
Helmholtz-AI-Energy/mlperf-deepcam
d4869bce18029cc9877d7ed04178d6e4ca73a411
[ "MIT" ]
1
2021-11-18T01:53:25.000Z
2021-11-18T01:53:25.000Z
import os import sys import glob import h5py as h5 import numpy as np import math import argparse as ap import mxnet as mx from mpi4py import MPI if __name__ == "__main__": AP = ap.ArgumentParser() AP.add_argument("--input_directory", type=str, help="Directory with input files", required = True...
29.473684
131
0.647768
import os import sys import glob import h5py as h5 import numpy as np import math import argparse as ap import mxnet as mx from mpi4py import MPI def filter_func(item, lst): item = os.path.basename(item).replace(".h5", ".npy") return item not in lst def read(ifname): with h5.File(ifname, 'r') as f: ...
1,594
0
69
ea7ea6e4956da5520f3970ca5834c2b81388da01
754
py
Python
setup.py
nkennek/pytorch-cnn-visualizations
54699710b1beae1edae4bc12e9403080191c40ed
[ "MIT" ]
null
null
null
setup.py
nkennek/pytorch-cnn-visualizations
54699710b1beae1edae4bc12e9403080191c40ed
[ "MIT" ]
null
null
null
setup.py
nkennek/pytorch-cnn-visualizations
54699710b1beae1edae4bc12e9403080191c40ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='pytorch-cnn-visualization', version='0.0', description='pytorch implementation of CNN visualization techniques', packages=find_packages(), include_package_data=True, install_requires=[ ...
21.542857
73
0.485411
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages setup( name='pytorch-cnn-visualization', version='0.0', description='pytorch implementation of CNN visualization techniques', packages=find_packages(), include_package_data=True, install_requires=[ ...
0
0
0
eef9139890c2b1751504590b390a2fe9c136409e
3,840
py
Python
replication_handler/models/mysql_dumps.py
ywlianghang/mysql_streamer
7fc85efaca3db6a387ea4b791632c2df2d04cb3e
[ "Apache-2.0" ]
419
2016-11-17T18:41:47.000Z
2022-03-14T02:50:02.000Z
replication_handler/models/mysql_dumps.py
ywlianghang/mysql_streamer
7fc85efaca3db6a387ea4b791632c2df2d04cb3e
[ "Apache-2.0" ]
19
2016-11-30T18:09:00.000Z
2019-04-02T06:20:02.000Z
replication_handler/models/mysql_dumps.py
ywlianghang/mysql_streamer
7fc85efaca3db6a387ea4b791632c2df2d04cb3e
[ "Apache-2.0" ]
90
2016-11-23T06:26:20.000Z
2022-01-22T09:24:42.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ag...
33.982301
81
0.654167
# -*- coding: utf-8 -*- # Copyright 2016 Yelp 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 ag...
2,428
382
72
38a4e46d7b35ffafb2edb463735f6e74a3e69b52
12,614
py
Python
mordred/_base/calculator.py
zhengfj1994/mordred
2848b088fd7b6735590242b5e22573babc724f10
[ "BSD-3-Clause" ]
1
2019-09-12T03:38:47.000Z
2019-09-12T03:38:47.000Z
mordred/_base/calculator.py
zhengfj1994/mordred
2848b088fd7b6735590242b5e22573babc724f10
[ "BSD-3-Clause" ]
null
null
null
mordred/_base/calculator.py
zhengfj1994/mordred
2848b088fd7b6735590242b5e22573babc724f10
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import sys import warnings from types import ModuleType from contextlib import contextmanager from multiprocessing import cpu_count from distutils.version import StrictVersion from .result import Result from .._util import Capture, DummyBar from ..error import Error, Missing, Mul...
27.968958
99
0.570002
from __future__ import print_function import sys import warnings from types import ModuleType from contextlib import contextmanager from multiprocessing import cpu_count from distutils.version import StrictVersion from .result import Result from .._util import Capture, DummyBar from ..error import Error, Missing, Mul...
5,302
0
402
cea0480cc90d81ea261b1a8a170bb14ba568725e
584
py
Python
tests/type/any_type/test_equality.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
1
2016-02-06T17:16:22.000Z
2016-02-06T17:16:22.000Z
tests/type/any_type/test_equality.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
tests/type/any_type/test_equality.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_equality ---------------------------------- Tests for the `AnyType` __eq__ method """ import unittest from finitio.types import AnyType if __name__ == '__main__': import sys sys.exit(unittest.main())
19.466667
73
0.672945
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_equality ---------------------------------- Tests for the `AnyType` __eq__ method """ import unittest from finitio.types import AnyType class TestAnyTypeEq(unittest.TestCase): _type = AnyType() _type2 = AnyType() def test_it_should_apply_structu...
174
118
23
7418a9ede9105dcc2f6808eb0451d86e1f5d6771
2,294
py
Python
PARAMETERS.py
sk-stm/banana_project
56423e0b516297652eb402a4a70559b2afd8c8a1
[ "MIT" ]
null
null
null
PARAMETERS.py
sk-stm/banana_project
56423e0b516297652eb402a4a70559b2afd8c8a1
[ "MIT" ]
null
null
null
PARAMETERS.py
sk-stm/banana_project
56423e0b516297652eb402a4a70559b2afd8c8a1
[ "MIT" ]
null
null
null
# # DQN agent # # agent hyper parameters # N_EPISODES = 2000 # how many episodes to train # MAX_T = 10000 # maximum steps per episode # EPS_START = 1.0 # start values of epsilon (for epsilon greedy exploration) # EPS_END = 0.01 # minimum value of epsilon # EPS_DECAY = 0.995 # decay rate of epsilon new_eps = old_ep...
34.757576
88
0.723627
# # DQN agent # # agent hyper parameters # N_EPISODES = 2000 # how many episodes to train # MAX_T = 10000 # maximum steps per episode # EPS_START = 1.0 # start values of epsilon (for epsilon greedy exploration) # EPS_END = 0.01 # minimum value of epsilon # EPS_DECAY = 0.995 # decay rate of epsilon new_eps = old_ep...
0
0
0
c08004c116c9dc2c7e5db2068d81bd9605d565f8
2,495
py
Python
dataset_scripts/xml_detects_creator.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
1
2019-06-02T22:27:31.000Z
2019-06-02T22:27:31.000Z
dataset_scripts/xml_detects_creator.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
null
null
null
dataset_scripts/xml_detects_creator.py
shpotes/self-driving-car
7329e6213c483a7695ab4e97cf16c93ce6d0b25f
[ "MIT" ]
null
null
null
import imutils # import dlib import cv2 import datetime import glob import sys if __name__ == '__main__': main()
28.352273
105
0.644088
import imutils # import dlib import cv2 import datetime import glob import sys def main(): # construct the argument parser and parse the arguments # initialize dlib's face detector (HOG-based) and then create # the facial landmark predictor #detector = dlib.get_frontal_face_detector() #predictor = dlib.shape_pre...
2,356
0
23
8a95cbc9a629fdf7e574d8397ff368a4a0ca806b
2,362
py
Python
graph.py
lokkelvin2/dc_tts
cd6bb96904f25a3db11fc4ba30d42a49a5b2b98c
[ "Apache-2.0" ]
25
2020-07-04T11:30:09.000Z
2022-01-28T18:11:16.000Z
graph.py
lokkelvin2/dc_tts
cd6bb96904f25a3db11fc4ba30d42a49a5b2b98c
[ "Apache-2.0" ]
5
2020-06-19T02:29:23.000Z
2021-06-20T09:25:11.000Z
graph.py
lokkelvin2/dc_tts
cd6bb96904f25a3db11fc4ba30d42a49a5b2b98c
[ "Apache-2.0" ]
4
2021-05-15T19:25:32.000Z
2022-02-17T00:29:32.000Z
from data_load import load_vocab from hyperparams import Hyperparams as hp from networks import TextEnc, AudioEnc, AudioDec, Attention, SSRN import tensorflow as tf
39.366667
121
0.54276
from data_load import load_vocab from hyperparams import Hyperparams as hp from networks import TextEnc, AudioEnc, AudioDec, Attention, SSRN import tensorflow as tf class Graph: def __init__(self, num=1, mode="train"): ''' Args: num: Either 1 or 2. 1 for Text2Mel 2 for SSRN. m...
0
2,163
23
4014f038ccad19cb9b43c7a5f154e829057d1c39
443
py
Python
app.py
0xAurelius/playgrounds
510bea031df6079e060b1bf3ba7399d45d00e050
[ "MIT" ]
null
null
null
app.py
0xAurelius/playgrounds
510bea031df6079e060b1bf3ba7399d45d00e050
[ "MIT" ]
4
2021-11-17T20:18:55.000Z
2022-01-12T18:06:58.000Z
app.py
0xAurelius/playgrounds
510bea031df6079e060b1bf3ba7399d45d00e050
[ "MIT" ]
null
null
null
import dash import dash_bootstrap_components as dbc from utils import load_config config = load_config() protocol = config['protocol'] app = dash.Dash( __name__, external_stylesheets=[dbc.themes.DARKLY], suppress_callback_exceptions=True, title=f"{protocol} Playgrounds", meta_tags=[{ 'nam...
23.315789
97
0.69526
import dash import dash_bootstrap_components as dbc from utils import load_config config = load_config() protocol = config['protocol'] app = dash.Dash( __name__, external_stylesheets=[dbc.themes.DARKLY], suppress_callback_exceptions=True, title=f"{protocol} Playgrounds", meta_tags=[{ 'nam...
0
0
0
ccef29cabcdead762aa3b1c5fa4b620d44ce3602
337
py
Python
Codewars/8kyu/geometry-basics-circle-area-in-2d/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/geometry-basics-circle-area-in-2d/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/geometry-basics-circle-area-in-2d/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 3.6.0 test.assert_equals(round(circle_area(Circle(Point(10, 10), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(25, -70), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 0)), 6), 0) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 12.5)),...
48.142857
82
0.715134
# Python - 3.6.0 test.assert_equals(round(circle_area(Circle(Point(10, 10), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(25, -70), 30)), 6), 2827.433388) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 0)), 6), 0) test.assert_equals(round(circle_area(Circle(Point(-15, 5), 12.5)),...
0
0
0
2ecce8e6510586c097a7c41d462e2fca1a437b5d
1,663
py
Python
paddlenlp/taskflow/utils.py
a5116638/PaddleNLP
37a95ae3c0d317aff09f76f79484208354db1e36
[ "Apache-2.0" ]
1
2021-09-29T06:05:13.000Z
2021-09-29T06:05:13.000Z
paddlenlp/taskflow/utils.py
svs1984/PaddleNLP
9eb9e23b01d044706c789158ac6cf0d365aea848
[ "Apache-2.0" ]
null
null
null
paddlenlp/taskflow/utils.py
svs1984/PaddleNLP
9eb9e23b01d044706c789158ac6cf0d365aea848
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
39.595238
104
0.725195
# coding:utf-8 # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
0
0
0
04ed3515e3b9ad34f17dc8d17749cddc196feff9
9,707
py
Python
users/tests/test_forms.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
1
2020-03-28T23:55:02.000Z
2020-03-28T23:55:02.000Z
users/tests/test_forms.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
60
2018-04-16T13:40:23.000Z
2020-06-05T18:02:01.000Z
users/tests/test_forms.py
mmesiti/cogs3
c48cd48629570f418b93aec73de49bc2fb59edc2
[ "MIT" ]
10
2018-03-14T22:25:50.000Z
2020-01-09T21:32:22.000Z
import datetime from django import forms from django.test import TestCase from django.utils.translation import activate from institution.models import Institution from users.forms import CustomUserChangeForm from users.forms import CustomUserCreationForm from users.forms import ProfileUpdateForm from users.forms impo...
36.768939
99
0.608221
import datetime from django import forms from django.test import TestCase from django.utils.translation import activate from institution.models import Institution from users.forms import CustomUserChangeForm from users.forms import CustomUserCreationForm from users.forms import ProfileUpdateForm from users.forms impo...
489
8,717
92
37932ce90f945a2abf6aae9ca6759bd8c18500f4
13,160
py
Python
build.py
secure-foundations/veri-titan
f7e4b434fd2ab85642aeb1fc4d7c34c28c678d3c
[ "MIT" ]
10
2020-06-26T17:14:49.000Z
2022-03-31T16:29:01.000Z
build.py
secure-foundations/veri-titan
f7e4b434fd2ab85642aeb1fc4d7c34c28c678d3c
[ "MIT" ]
2
2021-04-06T14:06:34.000Z
2022-03-09T00:01:14.000Z
build.py
secure-foundations/veri-titan
f7e4b434fd2ab85642aeb1fc4d7c34c28c678d3c
[ "MIT" ]
4
2020-06-11T02:39:15.000Z
2022-01-27T09:46:08.000Z
#!/usr/bin/env python import sys, os, subprocess, re, platform from subprocess import PIPE, Popen from os.path import exists TOOLS_DIR = "./tools" DAFNY_PATH = "./tools/dafny/dafny" VALE_PATH = "./tools/vale/bin/vale" DAFNY_LIB_DIR = "./std_lib" DAFNY_LIB_HASH = "84d160538b6442017a5401feb91265147bf34bfc" DAFNY_ZIP_...
31.111111
150
0.629027
#!/usr/bin/env python import sys, os, subprocess, re, platform from subprocess import PIPE, Popen from os.path import exists TOOLS_DIR = "./tools" DAFNY_PATH = "./tools/dafny/dafny" VALE_PATH = "./tools/vale/bin/vale" DAFNY_LIB_DIR = "./std_lib" DAFNY_LIB_HASH = "84d160538b6442017a5401feb91265147bf34bfc" DAFNY_ZIP_...
11,217
-3
625
c014c57708ea670205d0e1b85a67761597da2bbc
2,701
py
Python
test.py
emboiko/Socket_Singleton
e44e8230daa5167c92f9519c73a2374a3d279cbc
[ "MIT" ]
1
2021-08-01T06:12:49.000Z
2021-08-01T06:12:49.000Z
test.py
emboiko/Socket_Singleton
e44e8230daa5167c92f9519c73a2374a3d279cbc
[ "MIT" ]
null
null
null
test.py
emboiko/Socket_Singleton
e44e8230daa5167c92f9519c73a2374a3d279cbc
[ "MIT" ]
null
null
null
import unittest from time import sleep from subprocess import run from src.Socket_Singleton import Socket_Singleton, MultipleSingletonsError if __name__ == "__main__": unittest.main()
31.045977
86
0.670863
import unittest from time import sleep from subprocess import run from src.Socket_Singleton import Socket_Singleton, MultipleSingletonsError class TestMain(unittest.TestCase): def setUp(self): self.app = Socket_Singleton() self.traced_args = [] def test_default(self): result = run("t...
2,100
13
377
14c7ea14a7df31fd177851177e74b5d33195f582
533
py
Python
Wikipedia search.py
Behordeun/simple-python-projects
c2d088a2c1ebd842ca4d9817d569da4fd6b7f637
[ "Apache-2.0" ]
1
2021-09-09T10:55:23.000Z
2021-09-09T10:55:23.000Z
Wikipedia search.py
Behordeun/simple-python-projects
c2d088a2c1ebd842ca4d9817d569da4fd6b7f637
[ "Apache-2.0" ]
null
null
null
Wikipedia search.py
Behordeun/simple-python-projects
c2d088a2c1ebd842ca4d9817d569da4fd6b7f637
[ "Apache-2.0" ]
null
null
null
from tensorboard import summary from tkinter import * import wikipedia root = Tk() root.title("Wikipedia Search") root.geometry("400x400") frame = Frame(root) input = Entry(frame, width = 30) input.pack() result = "" text = Text(root, font = ("arial", 20)) button = Button(frame, text="Search", command=search) button...
21.32
53
0.69606
from tensorboard import summary from tkinter import * import wikipedia root = Tk() root.title("Wikipedia Search") root.geometry("400x400") frame = Frame(root) input = Entry(frame, width = 30) input.pack() result = "" text = Text(root, font = ("arial", 20)) def search(): global result result = input.get() ...
120
0
23
7afd3df22ba47b8d1930eeb3a5534f705fbda846
456
py
Python
students/k3342/laboratory_works/Kocheshkova_Kseniia/laboratory_work_1/flights/migrations/0004_auto_20201101_2206.py
Derimeer/ITMO_ICT_WebProgramming_2020
afb4999d20d59c5d47e4f380e8ba06204a42c729
[ "MIT" ]
null
null
null
students/k3342/laboratory_works/Kocheshkova_Kseniia/laboratory_work_1/flights/migrations/0004_auto_20201101_2206.py
Derimeer/ITMO_ICT_WebProgramming_2020
afb4999d20d59c5d47e4f380e8ba06204a42c729
[ "MIT" ]
null
null
null
students/k3342/laboratory_works/Kocheshkova_Kseniia/laboratory_work_1/flights/migrations/0004_auto_20201101_2206.py
Derimeer/ITMO_ICT_WebProgramming_2020
afb4999d20d59c5d47e4f380e8ba06204a42c729
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-01 19:06 from django.db import migrations, models
24
120
0.596491
# Generated by Django 3.1.2 on 2020-11-01 19:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('flights', '0003_flight_number_flight'), ] operations = [ migrations.AlterField( model_name='flight', name='type', ...
0
342
23
739ce0612c9ab100da3c259aaf5a9f24e447aef4
357
py
Python
three/mathutils/__init__.py
jpiland16/three.py-packaged
53026f1637eff31bbdbeb32dac6bb4ec608ff4a6
[ "MIT" ]
null
null
null
three/mathutils/__init__.py
jpiland16/three.py-packaged
53026f1637eff31bbdbeb32dac6bb4ec608ff4a6
[ "MIT" ]
null
null
null
three/mathutils/__init__.py
jpiland16/three.py-packaged
53026f1637eff31bbdbeb32dac6bb4ec608ff4a6
[ "MIT" ]
null
null
null
from three.mathutils.MatrixFactory import * from three.mathutils.Matrix import * from three.mathutils.Curve import * from three.mathutils.CurveFactory import * from three.mathutils.Multicurve import * from three.mathutils.Surface import * from three.mathutils.Hilbert3D import * from three.mathutils.RandomUtils import *...
35.7
43
0.823529
from three.mathutils.MatrixFactory import * from three.mathutils.Matrix import * from three.mathutils.Curve import * from three.mathutils.CurveFactory import * from three.mathutils.Multicurve import * from three.mathutils.Surface import * from three.mathutils.Hilbert3D import * from three.mathutils.RandomUtils import *...
0
0
0
ed46fa2cc80b4b07d8ccd05414bb5d2f39219bbd
14,476
py
Python
ddnet/ddnet.py
fzqneo/DD-Net
bde4c01d7378582dfa84f98a3affa84931f64ca1
[ "MIT" ]
null
null
null
ddnet/ddnet.py
fzqneo/DD-Net
bde4c01d7378582dfa84f98a3affa84931f64ca1
[ "MIT" ]
null
null
null
ddnet/ddnet.py
fzqneo/DD-Net
bde4c01d7378582dfa84f98a3affa84931f64ca1
[ "MIT" ]
null
null
null
import numpy as np import scipy.ndimage.interpolation as inter import tensorflow as tf from keras import backend as K from keras import regularizers from keras.layers import * from keras.layers.convolutional import * from keras.layers.core import * from keras.models import Model, load_model from keras.optimizers import...
32.677201
133
0.579649
import numpy as np import scipy.ndimage.interpolation as inter import tensorflow as tf from keras import backend as K from keras import regularizers from keras.layers import * from keras.layers.convolutional import * from keras.layers.core import * from keras.models import Model, load_model from keras.optimizers import...
3,574
4,869
330
758c8e0bb0787b888692896184c923a6e803e43e
1,188
py
Python
tests/flask/test_template.py
odahu/odahuPackager
35839d257c7a471541026bb9418072110190d29f
[ "ECL-2.0", "Apache-2.0" ]
7
2020-01-27T12:44:54.000Z
2021-07-21T02:22:26.000Z
tests/flask/test_template.py
odahu/odahuPackager
35839d257c7a471541026bb9418072110190d29f
[ "ECL-2.0", "Apache-2.0" ]
19
2019-11-28T18:45:27.000Z
2022-01-14T08:41:09.000Z
tests/flask/test_template.py
odahu/odahuPackager
35839d257c7a471541026bb9418072110190d29f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2020 EPAM Systems # # 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 writin...
36
80
0.740741
# Copyright 2020 EPAM Systems # # 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 writin...
441
0
23
b4d3f9914e42a85151f9ba1a4493866d2ca72d28
536
py
Python
test/ResultsAndPrizes/zodiac/test_zodiac_results_of_the_last_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
1
2019-12-05T06:50:54.000Z
2019-12-05T06:50:54.000Z
test/ResultsAndPrizes/zodiac/test_zodiac_results_of_the_last_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
test/ResultsAndPrizes/zodiac/test_zodiac_results_of_the_last_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
# зодиак + Результаты последнего тиража
41.230769
82
0.826493
# зодиак + Результаты последнего тиража def test_zodiac_results_last_draw(app): app.ResultAndPrizes.open_page_results_and_prizes() app.ResultAndPrizes.click_game_zodiac() app.ResultAndPrizes.click_results_of_the_last_draw() app.ResultAndPrizes.button_get_report_winners() app.ResultAndPrizes.parse...
488
0
23
066863fb285e7985e22baf254e538f1c8ce1832e
2,082
py
Python
src/lobster.py
gdifiore/lobster
ca556ee70ad579b95ac78d525233e0b851cbeb53
[ "MIT" ]
null
null
null
src/lobster.py
gdifiore/lobster
ca556ee70ad579b95ac78d525233e0b851cbeb53
[ "MIT" ]
null
null
null
src/lobster.py
gdifiore/lobster
ca556ee70ad579b95ac78d525233e0b851cbeb53
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # lobster.py - lobster # # (c) gdifiore 2018 <difioregabe@gmail.com> # import os import sys import json from lobster_json import * from bs4 import BeautifulSoup type = sys.argv[1] file = sys.argv[2] theme = sys.argv[3] if type == "simple": lobster_data = readJSON(file) title = getTit...
28.520548
62
0.612872
#!/usr/bin/env python # # lobster.py - lobster # # (c) gdifiore 2018 <difioregabe@gmail.com> # import os import sys import json from lobster_json import * from bs4 import BeautifulSoup type = sys.argv[1] file = sys.argv[2] theme = sys.argv[3] if type == "simple": def writeToHTML(title, header, content): ...
1,234
0
52
0161925bdf1e38b609660308a47257b50d5a5327
46
py
Python
reelib/__init__.py
reeve0930/reelib
0010c0179448dd4d3f3a82280beade4936bab8ff
[ "MIT" ]
null
null
null
reelib/__init__.py
reeve0930/reelib
0010c0179448dd4d3f3a82280beade4936bab8ff
[ "MIT" ]
null
null
null
reelib/__init__.py
reeve0930/reelib
0010c0179448dd4d3f3a82280beade4936bab8ff
[ "MIT" ]
null
null
null
from . import timestamp from . import contjson
23
23
0.804348
from . import timestamp from . import contjson
0
0
0
12aa58faa493370b575a7ad6f15f43ea90c3f41c
11,111
py
Python
Pyrado/tests/test_sampling.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/tests/test_sampling.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
Pyrado/tests/test_sampling.py
jacarvalho/SimuRLacra
a6c982862e2ab39a9f65d1c09aa59d9a8b7ac6c5
[ "BSD-3-Clause" ]
null
null
null
import pytest import random import time from torch.distributions.multivariate_normal import MultivariateNormal from matplotlib import pyplot as plt from pyrado.environment_wrappers.domain_randomization import DomainRandWrapperLive from pyrado.environments.pysim.ball_on_beam import BallOnBeamSim from pyrado.environment...
32.488304
117
0.676447
import pytest import random import time from torch.distributions.multivariate_normal import MultivariateNormal from matplotlib import pyplot as plt from pyrado.environment_wrappers.domain_randomization import DomainRandWrapperLive from pyrado.environments.pysim.ball_on_beam import BallOnBeamSim from pyrado.environment...
7,262
0
312
b41b891967812c7db46e79974d3319938dfddaf5
573
py
Python
lib/nms_cython/setup.py
PJunhyuk/exercise-pose-guide
a2793ede6b150e5ae20185e14f8b4ad3a08f4196
[ "Apache-2.0" ]
161
2018-02-22T15:15:47.000Z
2022-02-10T16:40:06.000Z
Chapter04/lib/nms_cython/setup.py
mayurmorin/Computer-Vision-Projects-with-OpenCV-and-Python-3
bf9041d2804fd76d6a59a8b6f2feb8d50f80c9d3
[ "MIT" ]
15
2018-03-01T23:18:00.000Z
2021-05-15T06:23:15.000Z
Chapter04/lib/nms_cython/setup.py
mayurmorin/Computer-Vision-Projects-with-OpenCV-and-Python-3
bf9041d2804fd76d6a59a8b6f2feb8d50f80c9d3
[ "MIT" ]
41
2018-03-01T13:03:54.000Z
2022-02-17T14:32:22.000Z
from setuptools import setup from Cython.Build import cythonize from distutils.extension import Extension from sys import platform as _platform import os import numpy as np #openmp_arg = '-fopenmp' #if _platform == "win32": # openmp_arg = '-openmp' extensions = [ Extension( 'nms_grid', ['nms_grid.pyx'], ...
22.038462
69
0.673647
from setuptools import setup from Cython.Build import cythonize from distutils.extension import Extension from sys import platform as _platform import os import numpy as np #openmp_arg = '-fopenmp' #if _platform == "win32": # openmp_arg = '-openmp' extensions = [ Extension( 'nms_grid', ['nms_grid.pyx'], ...
0
0
0
85fd73311ab29b216fc7b92dd55084fe9aacf91e
9,815
py
Python
test/test_union.py
Mortal/scalgoproto
b9acfbdcf7cc75d6b673fde64ecd94dbe56738a8
[ "MIT" ]
null
null
null
test/test_union.py
Mortal/scalgoproto
b9acfbdcf7cc75d6b673fde64ecd94dbe56738a8
[ "MIT" ]
26
2018-11-18T19:38:09.000Z
2020-04-14T03:31:06.000Z
test/test_union.py
Mortal/scalgoproto
b9acfbdcf7cc75d6b673fde64ecd94dbe56738a8
[ "MIT" ]
2
2019-01-03T16:08:15.000Z
2019-09-23T05:16:55.000Z
# -*- mode: python: return False tab-width: 4: return False indent-tabs-mode: nil: return False python-indent-offset: 4: return False coding: utf-8 -*- import sys import scalgoproto import union from test_base import require2, require, read_in, validate_out, get_v, require_some if __name__ == "__main__": main...
30.576324
151
0.576872
# -*- mode: python: return False tab-width: 4: return False indent-tabs-mode: nil: return False python-indent-offset: 4: return False coding: utf-8 -*- import sys import scalgoproto import union from test_base import require2, require, read_in, validate_out, get_v, require_some def for_copy() -> union.Table3In: w...
9,400
0
92
40e41cf6a305104b3eb63bfef1e1c24cdb5f902e
2,278
py
Python
python_modules/dagster-pandas/dagster_pandas_tests/test_dagstermill_pandas_solids.py
vishvananda/dagster
f6aa44714246bc770fe05a9c986fe8b7d848956b
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-pandas/dagster_pandas_tests/test_dagstermill_pandas_solids.py
vishvananda/dagster
f6aa44714246bc770fe05a9c986fe8b7d848956b
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-pandas/dagster_pandas_tests/test_dagstermill_pandas_solids.py
vishvananda/dagster
f6aa44714246bc770fe05a9c986fe8b7d848956b
[ "Apache-2.0" ]
null
null
null
import sys import pandas as pd import pytest from dagster import execute_pipeline from dagster.utils import script_relative_path from dagster_pandas.examples import ( define_pandas_papermill_pandas_hello_world_pipeline, define_papermill_pandas_hello_world_pipeline, ) @pytest.mark.skip('Must ship over run ...
34
97
0.668569
import sys import pandas as pd import pytest from dagster import execute_pipeline from dagster.utils import script_relative_path from dagster_pandas.examples import ( define_pandas_papermill_pandas_hello_world_pipeline, define_papermill_pandas_hello_world_pipeline, ) def notebook_test(f): # mark this w...
1,834
0
67
4f006e344b7da6ee2a5647dd3a58fe2711c71e5d
2,011
py
Python
createdb.py
rakeshr4/Travelogue
4f8c1506fe6a5a6ac5229db5c137235efd7b01c6
[ "MIT" ]
null
null
null
createdb.py
rakeshr4/Travelogue
4f8c1506fe6a5a6ac5229db5c137235efd7b01c6
[ "MIT" ]
null
null
null
createdb.py
rakeshr4/Travelogue
4f8c1506fe6a5a6ac5229db5c137235efd7b01c6
[ "MIT" ]
null
null
null
import csv
37.943396
221
0.655893
import csv def addData(db): addUsers(db) addGuides(db) addInterests(db) userInterests(db) guideInterests(db) addEvents(db) def addUsers(db): with open('models/user.csv', 'rb') as csvfile: spamreader = csv.reader(csvfile, delimiter=',') for row in spamreader: db.execute('insert into users (id, firstname,...
1,840
0
161
77ed1d01a8b54b550a0d5ac17cedf2c08e1e0481
6,880
py
Python
rrc scripts/scripts/networkRGAN.py
wq13552463699/Real_Robot_Challenge_Phase2_AE_attemp
280736589077a2179254099ddaf2327752d9321c
[ "MIT" ]
1
2021-11-02T10:48:55.000Z
2021-11-02T10:48:55.000Z
rrc scripts/scripts/networkRGAN.py
wq13552463699/Real_Robot_Challenge_Phase2_AE_attemp
280736589077a2179254099ddaf2327752d9321c
[ "MIT" ]
null
null
null
rrc scripts/scripts/networkRGAN.py
wq13552463699/Real_Robot_Challenge_Phase2_AE_attemp
280736589077a2179254099ddaf2327752d9321c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Aug 12 05:31:02 2021 @author: 14488 """ import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim from torch.autograd import Variable import torch import rrc_example_package.scripts.convolutional_rnn from torch.nn.utils.rnn impor...
32
105
0.461483
# -*- coding: utf-8 -*- """ Created on Thu Aug 12 05:31:02 2021 @author: 14488 """ import torch import torch.nn as nn import torch.nn.parallel import torch.optim as optim from torch.autograd import Variable import torch import rrc_example_package.scripts.convolutional_rnn from torch.nn.utils.rnn impor...
5,007
10
763
f7a85f4ba484b62374b57b5478bfaa096d4ed62c
1,021
py
Python
Python/text_to_speech.py
BlackTimber-Labs/DemoPr
6495b5307323ce17be5071006f1de90a1120edf4
[ "MIT" ]
10
2021-10-01T15:11:27.000Z
2021-10-03T10:41:36.000Z
Python/text_to_speech.py
BlackTimber-Labs/DemoPr
6495b5307323ce17be5071006f1de90a1120edf4
[ "MIT" ]
102
2021-10-01T14:49:50.000Z
2021-10-31T17:30:15.000Z
Python/text_to_speech.py
BlackTimber-Labs/DemoPr
6495b5307323ce17be5071006f1de90a1120edf4
[ "MIT" ]
88
2021-10-01T14:28:10.000Z
2021-10-31T12:02:42.000Z
# Import the gTTS module for text # to speech conversion from gtts import gTTS # This module is imported so that we can # play the converted audio from playsound import playsound # It is a text value that we want to convert to audio text_val = 'Welcome to hacktoberfest 21.Hacktoberfest, in its 8t...
37.814815
313
0.740451
# Import the gTTS module for text # to speech conversion from gtts import gTTS # This module is imported so that we can # play the converted audio from playsound import playsound # It is a text value that we want to convert to audio text_val = 'Welcome to hacktoberfest 21.Hacktoberfest, in its 8t...
0
0
0
f224bda332d1ba774feb2b9787bb81d6d7f8b0a1
384
py
Python
pytmc/__init__.py
jsheppard95/pytmc
d9383d104393d67df54f5c43cb6a2d552405d5f8
[ "BSD-3-Clause-LBNL" ]
null
null
null
pytmc/__init__.py
jsheppard95/pytmc
d9383d104393d67df54f5c43cb6a2d552405d5f8
[ "BSD-3-Clause-LBNL" ]
null
null
null
pytmc/__init__.py
jsheppard95/pytmc
d9383d104393d67df54f5c43cb6a2d552405d5f8
[ "BSD-3-Clause-LBNL" ]
null
null
null
import logging from ._version import get_versions # noqa from .xml_obj import Symbol, DataType, SubItem # noqa from .xml_collector import TmcFile # noqa from . import epics # noqa logger = logging.getLogger(__name__) __version__ = get_versions()['version'] del get_versions __all__ = [ 'DataType', 'SubI...
17.454545
54
0.684896
import logging from ._version import get_versions # noqa from .xml_obj import Symbol, DataType, SubItem # noqa from .xml_collector import TmcFile # noqa from . import epics # noqa logger = logging.getLogger(__name__) __version__ = get_versions()['version'] del get_versions __all__ = [ 'DataType', 'SubI...
0
0
0
9d7b0b014026c589a321d25b4e6588f897fcd81c
405
py
Python
app/schemas/pokemon.py
dmontag23/pokedex-api
b16b25493a08698f617b8afa2bd4f14b2bfc21e6
[ "MIT" ]
null
null
null
app/schemas/pokemon.py
dmontag23/pokedex-api
b16b25493a08698f617b8afa2bd4f14b2bfc21e6
[ "MIT" ]
null
null
null
app/schemas/pokemon.py
dmontag23/pokedex-api
b16b25493a08698f617b8afa2bd4f14b2bfc21e6
[ "MIT" ]
null
null
null
from pydantic import BaseModel
21.315789
59
0.493827
from pydantic import BaseModel class Pokemon(BaseModel): name: str description: str habitat: str isLegendary: str class Config: schema_extra = { "example": { "name": "mewtwo", "description": "I am mewtwo hear me roar!", "habitat"...
0
350
23
c065834fb36e57bb45b56bc2d41ed8afa0ca7ba6
15,194
py
Python
tests/test_plot.py
chrisburr/hist
d10132ab8d03f41152f0b934a18291ce699453b2
[ "BSD-3-Clause" ]
null
null
null
tests/test_plot.py
chrisburr/hist
d10132ab8d03f41152f0b934a18291ce699453b2
[ "BSD-3-Clause" ]
null
null
null
tests/test_plot.py
chrisburr/hist
d10132ab8d03f41152f0b934a18291ce699453b2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from hist import Hist, NamedHist, axis import pytest import numpy as np unp = pytest.importorskip("uncertainties.unumpy") plt = pytest.importorskip("matplotlib.pyplot") def test_general_plot1d(): """ Test general plot1d -- whether 1d-Hist can be plotted properly. """ h = His...
25.97265
87
0.561735
# -*- coding: utf-8 -*- from hist import Hist, NamedHist, axis import pytest import numpy as np unp = pytest.importorskip("uncertainties.unumpy") plt = pytest.importorskip("matplotlib.pyplot") def test_general_plot1d(): """ Test general plot1d -- whether 1d-Hist can be plotted properly. """ h = His...
344
0
54
6a2d2f548e7bfb36954f0ec0ef6f275ccfc9aa16
1,966
py
Python
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
6
2017-10-03T15:10:14.000Z
2020-08-06T06:39:14.000Z
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
1
2017-02-09T21:13:13.000Z
2017-02-09T21:13:13.000Z
resources/PTZgrid/calcInitialCond.py
sebalander/sebaPhD
0260094bd5143843ef372ce52aceb568834f90f4
[ "BSD-3-Clause" ]
4
2017-02-09T19:46:00.000Z
2019-11-21T12:47:55.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 20:21:33 2016 generate the camera's pose conditions by hand @author: sebalander """ # %% import cv2 import numpy as np import numpy.linalg as lin from scipy.linalg import sqrtm, inv import matplotlib.pyplot as plt # %% tVecFile = "PTZsheetTvecInitial.npy" rVecFile ...
21.844444
72
0.61648
# -*- coding: utf-8 -*- """ Created on Wed Jul 20 20:21:33 2016 generate the camera's pose conditions by hand @author: sebalander """ # %% import cv2 import numpy as np import numpy.linalg as lin from scipy.linalg import sqrtm, inv import matplotlib.pyplot as plt # %% tVecFile = "PTZsheetTvecInitial.npy" rVecFile ...
0
0
0
b6dd96934dde46ba7c8e268255f6ccb3b47bf7e8
985
py
Python
setup.py
MrIncredibuell/clerius
e3f482754892ae32b3862d2a283b54d4ed955b9a
[ "MIT" ]
null
null
null
setup.py
MrIncredibuell/clerius
e3f482754892ae32b3862d2a283b54d4ed955b9a
[ "MIT" ]
null
null
null
setup.py
MrIncredibuell/clerius
e3f482754892ae32b3862d2a283b54d4ed955b9a
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="clericus", version="0.0.3a27", author="Joseph L Buell V", author_email="jlrbuellv@gmail.com", description= "An async webserver focused on being predictable and self documenting.", ...
28.970588
76
0.59797
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="clericus", version="0.0.3a27", author="Joseph L Buell V", author_email="jlrbuellv@gmail.com", description= "An async webserver focused on being predictable and self documenting.", ...
0
0
0
b98e6632fd9bb96d3dde1a83e1c4c80e452a716a
1,433
py
Python
test/make_global_settings/env-wrapper/gyptest-wrapper.py
Herjar/gyp
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f
[ "BSD-3-Clause" ]
75
2015-02-03T14:54:27.000Z
2022-03-24T06:44:38.000Z
test/make_global_settings/env-wrapper/gyptest-wrapper.py
Herjar/gyp
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f
[ "BSD-3-Clause" ]
3
2016-08-22T10:35:24.000Z
2019-07-16T19:47:20.000Z
test/make_global_settings/env-wrapper/gyptest-wrapper.py
Herjar/gyp
4d467626b0b9f59a85fb81ca4d7ea9eca99b9d8f
[ "BSD-3-Clause" ]
43
2015-02-02T04:26:11.000Z
2021-09-07T06:06:58.000Z
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies *_wrapper in environment. """ import os import sys import TestGyp print "This test is currently disabled: https://crbug.com/4...
28.66
79
0.651779
#!/usr/bin/env python # Copyright (c) 2013 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Verifies *_wrapper in environment. """ import os import sys import TestGyp print "This test is currently disabled: https://crbug.com/4...
0
0
0