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
580f6b656f18ebb519adcc1d9ef6790858d2d266
34,832
py
Python
paddleslim/nas/ofa/convert_super.py
1375207619/PaddleSlim
1a9376a8b68e2219db3e95dea900ef4003e72c36
[ "Apache-2.0" ]
1
2021-12-30T08:23:21.000Z
2021-12-30T08:23:21.000Z
paddleslim/nas/ofa/convert_super.py
maxpark/PaddleSlim
f6b827fca5f3d9cc467426b8ef30e3a6d2b012b9
[ "Apache-2.0" ]
null
null
null
paddleslim/nas/ofa/convert_super.py
maxpark/PaddleSlim
f6b827fca5f3d9cc467426b8ef30e3a6d2b012b9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
45.354167
432
0.507206
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
2,360
0
197
d27d5b61acd3b4c1ac9339b822d86b898b922e93
419
py
Python
ch6/stopwordfacts.py
bronevet-abc/NLPython
edb2f2c558215df556449c0fafb717d3442cfd9b
[ "MIT" ]
null
null
null
ch6/stopwordfacts.py
bronevet-abc/NLPython
edb2f2c558215df556449c0fafb717d3442cfd9b
[ "MIT" ]
null
null
null
ch6/stopwordfacts.py
bronevet-abc/NLPython
edb2f2c558215df556449c0fafb717d3442cfd9b
[ "MIT" ]
null
null
null
from gensim import models w = models.Word2Vec.load_word2vec_format('/home/jalaj/Downloads/GoogleNews-vectors-negative300.bin', binary=True) if 'the' in w.wv.vocab: print("Vector for word 'the' \n") print(w.wv['the']) else: print("Vocabulary doesn't include word 'the'\n") if 'a' in w.wv.vocab: print("Vec...
34.916667
113
0.677804
from gensim import models w = models.Word2Vec.load_word2vec_format('/home/jalaj/Downloads/GoogleNews-vectors-negative300.bin', binary=True) if 'the' in w.wv.vocab: print("Vector for word 'the' \n") print(w.wv['the']) else: print("Vocabulary doesn't include word 'the'\n") if 'a' in w.wv.vocab: print("Vec...
0
0
0
65d276966f308225a1010b7dd886205ed3264332
327
py
Python
django_yubin/iter_utils.py
pmendezsuarez/django-yubin
6832bb2bb5b3aa8e00c9484475db9c4a593de2f0
[ "Apache-2.0" ]
37
2015-02-27T15:35:55.000Z
2022-02-11T13:58:29.000Z
django_yubin/iter_utils.py
pmendezsuarez/django-yubin
6832bb2bb5b3aa8e00c9484475db9c4a593de2f0
[ "Apache-2.0" ]
56
2015-02-04T00:18:39.000Z
2022-01-17T14:25:18.000Z
django_yubin/iter_utils.py
pmendezsuarez/django-yubin
6832bb2bb5b3aa8e00c9484475db9c4a593de2f0
[ "Apache-2.0" ]
29
2015-05-18T15:53:45.000Z
2021-12-17T11:37:31.000Z
import itertools def peek(sequence): """ Returns the value of the top of the sequence without removing the value from the data. """ iterable = iter(sequence) try: first = next(iterable) return first, itertools.chain([first], iterable) except StopIteration: return No...
21.8
75
0.633028
import itertools def peek(sequence): """ Returns the value of the top of the sequence without removing the value from the data. """ iterable = iter(sequence) try: first = next(iterable) return first, itertools.chain([first], iterable) except StopIteration: return No...
0
0
0
efc0190db60d88a60ad8561d578bd624621bc097
5,073
py
Python
RadClass/H0.py
CNERG/RadClass
70b70624e41fee2e0a6229c7ab7aa4f3249b5a0f
[ "BSD-3-Clause" ]
1
2021-03-26T05:30:49.000Z
2021-03-26T05:30:49.000Z
RadClass/H0.py
CNERG/RadClass
70b70624e41fee2e0a6229c7ab7aa4f3249b5a0f
[ "BSD-3-Clause" ]
34
2021-03-29T14:37:14.000Z
2022-03-16T21:35:01.000Z
RadClass/H0.py
CNERG/RadClass
70b70624e41fee2e0a6229c7ab7aa4f3249b5a0f
[ "BSD-3-Clause" ]
2
2021-03-26T19:04:57.000Z
2021-11-24T14:13:13.000Z
import numpy as np from scipy import stats class H0: ''' Applies binomial hypothesis test to data processed with RadClass. Capable of applying a hypothesis test to gross or channel-wise count-rate. This test relies on the assumption that count-rates measured consecutively in time will not be stat...
40.584
87
0.568697
import numpy as np from scipy import stats class H0: ''' Applies binomial hypothesis test to data processed with RadClass. Capable of applying a hypothesis test to gross or channel-wise count-rate. This test relies on the assumption that count-rates measured consecutively in time will not be stat...
2,328
0
81
4d1560d4925bf5bccbfb37740702d79ea76917da
65,128
py
Python
resources/Wireshark/WiresharkDissectorFoo/help/faq.py
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
2
2020-09-11T05:51:42.000Z
2020-12-31T11:42:02.000Z
resources/Wireshark/WiresharkDissectorFoo/help/faq.py
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
null
null
null
resources/Wireshark/WiresharkDissectorFoo/help/faq.py
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # faq.py # # Routines to assemble a FAQ list for the Wireshark web site. # Questions and answer content can be found below. Section and # question numbers will be automatically generated. # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Co...
35.725727
145
0.741893
#!/usr/bin/env python # # faq.py # # Routines to assemble a FAQ list for the Wireshark web site. # Questions and answer content can be found below. Section and # question numbers will be automatically generated. # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Co...
3,802
26
673
40302b004460699dfe8522c59c9a3e8cf1c35d83
89
py
Python
configs/_base_/filters/savizky_golay.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
configs/_base_/filters/savizky_golay.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
configs/_base_/filters/savizky_golay.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
filter_cfg = dict( type='SavizkyGolayFilter', window_size=11, polyorder=2, )
14.833333
30
0.662921
filter_cfg = dict( type='SavizkyGolayFilter', window_size=11, polyorder=2, )
0
0
0
b8439448287ddf1bbb2368705d0a9643ba1ccc8e
1,363
py
Python
CustomCNN.py
mehtajinesh/Classify-Dog-Breeds-using-CNNs
6ab2549ec592bd4d7fe404f7973663bc4d38ba15
[ "MIT" ]
3
2019-12-09T07:51:31.000Z
2020-12-10T18:30:03.000Z
CustomCNN.py
mehtajinesh/Classify-Dog-Breeds-using-CNNs
6ab2549ec592bd4d7fe404f7973663bc4d38ba15
[ "MIT" ]
4
2021-03-19T10:03:22.000Z
2022-03-12T00:10:53.000Z
CustomCNN.py
mehtajinesh/Classify-Dog-Breeds-using-CNNs
6ab2549ec592bd4d7fe404f7973663bc4d38ba15
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F # define the CNN architecture ### TODO: choose an architecture, and complete the class
33.243902
66
0.547322
import torch.nn as nn import torch.nn.functional as F # define the CNN architecture class Net(nn.Module): ### TODO: choose an architecture, and complete the class def __init__(self): super(Net, self).__init__() ## Define layers of a CNN self.features = nn.Sequential( # 1st 2...
1,139
0
79
c5b910ce2d9d382f8cdfb27852093b6ecd72db00
21,559
py
Python
Quaternion/tests/test_all.py
sot/Quaternion
610fe97f875199e0ec41e2b1c6f738457f134fd1
[ "BSD-3-Clause" ]
null
null
null
Quaternion/tests/test_all.py
sot/Quaternion
610fe97f875199e0ec41e2b1c6f738457f134fd1
[ "BSD-3-Clause" ]
28
2016-07-13T18:05:05.000Z
2021-08-31T15:18:26.000Z
Quaternion/tests/test_all.py
sot/Quaternion
610fe97f875199e0ec41e2b1c6f738457f134fd1
[ "BSD-3-Clause" ]
4
2016-11-11T20:54:43.000Z
2021-02-12T02:54:52.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pytest import pickle import os from .. import Quat, normalize ra = 10. dec = 20. roll = 30. q0 = Quat([ra, dec, roll]) equatorial_23 = np.array([[[10, 20, 30], [10, 20, -30], ...
32.714719
91
0.588339
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pytest import pickle import os from .. import Quat, normalize def indices(t): import itertools for k in itertools.product(*[range(i) for i in t]): yield k def normalize_angles(x, xmin, xmax): while np.any(...
15,136
0
734
65412ef002af7b1dc9bc280643785461f236172e
3,240
py
Python
gdf_tests/test_config_file.py
dunkgray/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
7
2015-08-27T09:20:55.000Z
2019-06-27T14:00:11.000Z
gdf_tests/test_config_file.py
alex-ip/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
null
null
null
gdf_tests/test_config_file.py
alex-ip/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
5
2015-05-13T05:58:13.000Z
2019-12-09T00:36:11.000Z
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
34.83871
117
0.671605
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
50
0
23
9b3154638b0c846a8de9d8e99c8b465693e7cb4f
250
py
Python
eunice012716/Week1/ch2/2.6/exercise2.py
coookie89/Intern-Training
6e3b26edfee5bdcc98dd5ac05d35cef125778ad5
[ "MIT" ]
1
2021-08-24T12:14:46.000Z
2021-08-24T12:14:46.000Z
eunice012716/Week1/ch2/2.6/exercise2.py
coookie89/Intern-Training
6e3b26edfee5bdcc98dd5ac05d35cef125778ad5
[ "MIT" ]
14
2021-07-09T07:48:35.000Z
2021-08-19T03:06:31.000Z
eunice012716/Week1/ch2/2.6/exercise2.py
coookie89/Intern-Training
6e3b26edfee5bdcc98dd5ac05d35cef125778ad5
[ "MIT" ]
11
2021-07-09T07:35:24.000Z
2021-08-15T07:19:43.000Z
if __name__ == "__main__": print("The upper bound of P(A∪B) = P(A) + P(B)\n") print("The lower bound of P(A∪B) = max(P(A), P(B))\n") print("The upper bound of P(A∩B) = max(P(A), P(B))\n") print("The lower bound of P(A∩B) = 0\n")
41.666667
59
0.532
if __name__ == "__main__": print("The upper bound of P(A∪B) = P(A) + P(B)\n") print("The lower bound of P(A∪B) = max(P(A), P(B))\n") print("The upper bound of P(A∩B) = max(P(A), P(B))\n") print("The lower bound of P(A∩B) = 0\n")
0
0
0
a2103083f0f7d54ec8154290af8a153fcc08a0cd
1,365
py
Python
tests/test_pype_flowgraph.py
Mynti207/TimeDB
08e72c4e237bfe8ee0642179cdc6ccd570a52550
[ "MIT" ]
null
null
null
tests/test_pype_flowgraph.py
Mynti207/TimeDB
08e72c4e237bfe8ee0642179cdc6ccd570a52550
[ "MIT" ]
null
null
null
tests/test_pype_flowgraph.py
Mynti207/TimeDB
08e72c4e237bfe8ee0642179cdc6ccd570a52550
[ "MIT" ]
null
null
null
import pytest from pype import * __author__ = "Mynti207" __copyright__ = "Mynti207" __license__ = "mit"
26.25
72
0.651282
import pytest from pype import * __author__ = "Mynti207" __copyright__ = "Mynti207" __license__ = "mit" def test_flowgraph(): # create flowgraph and nodes FG = fgir.Flowgraph("standardize") FG.new_node(FGNodeType.unknown, None) FG.new_node(FGNodeType.unknown, 1) FG.new_node(FGNodeType.unknown, 2...
1,236
0
23
06b9377e2c1fca5b77db45fb9af0019cb2aaff14
2,268
py
Python
.kodi/addons/script.ftvguide/strings.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/script.ftvguide/strings.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/script.ftvguide/strings.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Tommy Winther # http://tommy.winther.nu # # Modified for FTV Guide (09/2014 onwards) # by Thomas Geppert [bluezed] - bluezed.apps@gmail.com # # This Program is free software; you can redistribute it and/or modify # it under the terms of the G...
28
73
0.745591
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Tommy Winther # http://tommy.winther.nu # # Modified for FTV Guide (09/2014 onwards) # by Thomas Geppert [bluezed] - bluezed.apps@gmail.com # # This Program is free software; you can redistribute it and/or modify # it under the terms of the G...
165
0
24
40633883c1f46469abf4e2108447cf8284f80196
921
py
Python
cvpods/utils/imports.py
0x4f5da2/BorderDet
a3bdcb2e62b9a395075963b9d400bc2109463d22
[ "Apache-2.0" ]
null
null
null
cvpods/utils/imports.py
0x4f5da2/BorderDet
a3bdcb2e62b9a395075963b9d400bc2109463d22
[ "Apache-2.0" ]
null
null
null
cvpods/utils/imports.py
0x4f5da2/BorderDet
a3bdcb2e62b9a395075963b9d400bc2109463d22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : imports.py @Time : 2020/05/07 23:59:19 @Author : Benjin Zhu @Contact : poodarchu@gmail.com @Last Modified by : Benjin Zhu @Last Modified time : 2020/05/07 23:59:19 ''' import imp def dynamic_i...
28.78125
80
0.603692
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : imports.py @Time : 2020/05/07 23:59:19 @Author : Benjin Zhu @Contact : poodarchu@gmail.com @Last Modified by : Benjin Zhu @Last Modified time : 2020/05/07 23:59:19 ''' import imp def dynamic_i...
0
0
0
9ea0669177fcaaa99ed69cff6207ee673a129f43
1,224
py
Python
scripts/kernel_load.py
strawberryhacker/cinnamonOS
6eb663123c07c8573a5bd1993f6001f2fbe1ccb7
[ "MIT" ]
24
2020-08-24T18:31:46.000Z
2020-10-25T09:06:57.000Z
scripts/kernel_load.py
strawberryhacker/citrus-kernel
6eb663123c07c8573a5bd1993f6001f2fbe1ccb7
[ "MIT" ]
35
2020-09-19T13:40:58.000Z
2020-10-27T01:21:59.000Z
scripts/kernel_load.py
strawberryhacker/citrusOS
6eb663123c07c8573a5bd1993f6001f2fbe1ccb7
[ "MIT" ]
1
2021-06-01T17:57:14.000Z
2021-06-01T17:57:14.000Z
# Copyright (C) strawberryhacker import os import sys import serial import time from citrus import citrus_packet from citrus import citrus_file from loading import loading_simple from loading import loading_bar # Used for loading a custom application to the CitrusOS and execute it main()
24.48
70
0.65768
# Copyright (C) strawberryhacker import os import sys import serial import time from citrus import citrus_packet from citrus import citrus_file from loading import loading_simple from loading import loading_bar # Used for loading a custom application to the CitrusOS and execute it def main(): start = int(round(...
908
0
23
787c575813c9701765cb7fe3a2ff8e9fd18f93d3
71
py
Python
tests/__init__.py
reclamador/document_clipper
61be44eb023a5e32c8a2886e579dffe4d4d525ee
[ "MIT" ]
3
2017-11-08T12:58:14.000Z
2021-08-29T06:33:24.000Z
tests/__init__.py
reclamador/document_clipper
61be44eb023a5e32c8a2886e579dffe4d4d525ee
[ "MIT" ]
130
2017-11-13T12:46:48.000Z
2022-03-11T23:11:39.000Z
tests/__init__.py
reclamador/document_clipper
61be44eb023a5e32c8a2886e579dffe4d4d525ee
[ "MIT" ]
1
2020-12-03T09:41:06.000Z
2020-12-03T09:41:06.000Z
# -*- coding: utf-8 -*- """Unit test package for document_clipper."""
17.75
45
0.619718
# -*- coding: utf-8 -*- """Unit test package for document_clipper."""
0
0
0
5cee680d31f450c9770021f82d15a3c5b1d83208
92
py
Python
intensity_normalization/normalize/__init__.py
sarthakpati/intensity-normalization
5f2fc9ea3f305a3bd214b6f42fd8b1664a3ecbdc
[ "Apache-2.0" ]
null
null
null
intensity_normalization/normalize/__init__.py
sarthakpati/intensity-normalization
5f2fc9ea3f305a3bd214b6f42fd8b1664a3ecbdc
[ "Apache-2.0" ]
null
null
null
intensity_normalization/normalize/__init__.py
sarthakpati/intensity-normalization
5f2fc9ea3f305a3bd214b6f42fd8b1664a3ecbdc
[ "Apache-2.0" ]
null
null
null
from intensity_normalization.normalize import fcm, gmm, kde, lsq, nyul, whitestripe, zscore
46
91
0.815217
from intensity_normalization.normalize import fcm, gmm, kde, lsq, nyul, whitestripe, zscore
0
0
0
83f608591f706ae143b4aa3d0c9cc32939ff6de2
733
py
Python
blocksec2go/cli/unlock_pin.py
Infineon/secora-blockchain-python-library
1edcd7ae7299a148448a93110fed101f93623303
[ "MIT" ]
2
2021-11-23T13:44:53.000Z
2021-12-06T19:48:51.000Z
blocksec2go/cli/unlock_pin.py
Infineon/secora-blockchain-python-library
1edcd7ae7299a148448a93110fed101f93623303
[ "MIT" ]
null
null
null
blocksec2go/cli/unlock_pin.py
Infineon/secora-blockchain-python-library
1edcd7ae7299a148448a93110fed101f93623303
[ "MIT" ]
1
2020-10-03T08:27:26.000Z
2020-10-03T08:27:26.000Z
import sys import json import argparse from blocksec2go import open_pyscard, CardError from blocksec2go import select_app, unlock_pin, set_pin from blocksec2go.util import bytes_from_hex
30.541667
84
0.736698
import sys import json import argparse from blocksec2go import open_pyscard, CardError from blocksec2go import select_app, unlock_pin, set_pin from blocksec2go.util import bytes_from_hex def _unlock_pin(args): reader = args.reader unlock_pin(reader, args.puk) set_pin(reader, args.new_pin) if args.mac...
499
0
46
48a1b66fc9217ad435e82d602fb6b80f644b9382
547
py
Python
main/libdaemon/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/libdaemon/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/libdaemon/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "libdaemon" pkgver = "0.14" pkgrel = 0 build_style = "gnu_configure" configure_args = ["--disable-lynx"] hostmakedepends = ["pkgconf"] pkgdesc = "Lightweight C library that eases the writing of UNIX daemons" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "http://0pointer.de/len...
32.176471
75
0.751371
pkgname = "libdaemon" pkgver = "0.14" pkgrel = 0 build_style = "gnu_configure" configure_args = ["--disable-lynx"] hostmakedepends = ["pkgconf"] pkgdesc = "Lightweight C library that eases the writing of UNIX daemons" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "http://0pointer.de/len...
28
0
22
688a19a98edd409433c22d157ee58a5e92da91f9
8,287
py
Python
pyQuASAR/pyQuASAR.py
anthony-aylward/pyQuASAR
9fee9817b576615ff4cd96f08cdaa76ddc1a236e
[ "MIT" ]
null
null
null
pyQuASAR/pyQuASAR.py
anthony-aylward/pyQuASAR
9fee9817b576615ff4cd96f08cdaa76ddc1a236e
[ "MIT" ]
null
null
null
pyQuASAR/pyQuASAR.py
anthony-aylward/pyQuASAR
9fee9817b576615ff4cd96f08cdaa76ddc1a236e
[ "MIT" ]
null
null
null
#=============================================================================== # pyQuASAR.py #=============================================================================== # Imports ====================================================================== import funcgenom import gzip import itertools import os impor...
26.81877
80
0.485218
#=============================================================================== # pyQuASAR.py #=============================================================================== # Imports ====================================================================== import funcgenom import gzip import itertools import os impor...
0
0
0
10d4dc862e6d17cf503b0e5b178d5c8b237f342f
2,935
py
Python
helper/views.py
arkRedM/ua-iamai-cg-python
c51aa9c76a9b9734917b39e1bbda673b2a8f9cae
[ "MIT" ]
null
null
null
helper/views.py
arkRedM/ua-iamai-cg-python
c51aa9c76a9b9734917b39e1bbda673b2a8f9cae
[ "MIT" ]
9
2019-12-04T23:22:49.000Z
2022-02-10T07:50:16.000Z
helper/views.py
arkRedM/ua-iamai-abhinav-harish-python
c51aa9c76a9b9734917b39e1bbda673b2a8f9cae
[ "MIT" ]
null
null
null
import re import idna from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods from helper.models import UserData, NotesData EMAIL_REGEX = '^[a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$' @csrf_exem...
27.688679
160
0.611244
import re import idna from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods from helper.models import UserData, NotesData EMAIL_REGEX = '^[a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$' @csrf_exem...
2,385
0
112
3f28f8ea9f6d7f7343afdb3a96f06fd29ff0a8bb
1,115
py
Python
microservices/utils.py
estibensmanchego/retail
0b36eb48b080bbde8ac38ac45267d77cebae7432
[ "MIT" ]
null
null
null
microservices/utils.py
estibensmanchego/retail
0b36eb48b080bbde8ac38ac45267d77cebae7432
[ "MIT" ]
null
null
null
microservices/utils.py
estibensmanchego/retail
0b36eb48b080bbde8ac38ac45267d77cebae7432
[ "MIT" ]
null
null
null
import json import datetime import decimal from math import sqrt access_control = {'Access-Control-Allow-Origin': '*','Access-Control-Allow-Credentials': 'true'}
21.037736
102
0.671749
import json import datetime import decimal from math import sqrt access_control = {'Access-Control-Allow-Origin': '*','Access-Control-Allow-Credentials': 'true'} def validate(value): body = {'status': False, 'message': value + " is required."} response = { "statusCode": 400, "headers": access_control, "body"...
836
0
116
977e5030df24240fb62138565ca88a32e059b69d
905
py
Python
api-gateway/server/__init__.py
Niweera/DNSTool-Middleware-API
0e83d9f62fb65d9223b86a7876b3f30b2771befb
[ "Apache-2.0" ]
null
null
null
api-gateway/server/__init__.py
Niweera/DNSTool-Middleware-API
0e83d9f62fb65d9223b86a7876b3f30b2771befb
[ "Apache-2.0" ]
9
2021-06-12T05:39:59.000Z
2021-08-14T09:20:00.000Z
api-gateway/server/__init__.py
Niweera/DNSTool-Middleware-API
0e83d9f62fb65d9223b86a7876b3f30b2771befb
[ "Apache-2.0" ]
2
2021-05-22T15:33:50.000Z
2021-08-28T08:51:25.000Z
from os.path import abspath, join, dirname, realpath from flask import Flask from flask_cors import CORS from cache import initialize_cache from compress import initialize_compress from controllers import initialize_routes from flask_restful import Api from mailer import initialize_mailer from middleware.error_handling...
24.459459
80
0.78232
from os.path import abspath, join, dirname, realpath from flask import Flask from flask_cors import CORS from cache import initialize_cache from compress import initialize_compress from controllers import initialize_routes from flask_restful import Api from mailer import initialize_mailer from middleware.error_handling...
0
0
0
35a2fe39e3494f6a6cb5353894a5e81463e013c9
1,980
py
Python
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
1
2020-05-27T16:18:43.000Z
2020-05-27T16:18:43.000Z
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
null
null
null
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-18 10:36 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion
46.046512
156
0.647475
# Generated by Django 3.0.5 on 2020-04-18 10:36 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('grosshaendler', '0001_initial'), ('artikel', '0...
0
1,784
23
413b9efa3a39ff7dd7a517413b97f43f3549ffa1
4,115
py
Python
BackEnd/table_manager.py
doughnut187/CIS407_FF
a4e5be03824604f99be9dc41c7b9f40e36fbad96
[ "MIT" ]
null
null
null
BackEnd/table_manager.py
doughnut187/CIS407_FF
a4e5be03824604f99be9dc41c7b9f40e36fbad96
[ "MIT" ]
null
null
null
BackEnd/table_manager.py
doughnut187/CIS407_FF
a4e5be03824604f99be9dc41c7b9f40e36fbad96
[ "MIT" ]
null
null
null
""" Filename: table_manager.py Purpose: A program to define and create all tables needed in the database Authors: Jordan Smith Group: Wholesome as Heck Programmers (WaHP) Last modified: 11/13/21 """ from db_manager import db_mgr DROP_ALL = True tables = {} ### # TABLES TO BE ADDED ### tables['fitnessGoal'] = { ...
27.993197
88
0.612394
""" Filename: table_manager.py Purpose: A program to define and create all tables needed in the database Authors: Jordan Smith Group: Wholesome as Heck Programmers (WaHP) Last modified: 11/13/21 """ from db_manager import db_mgr DROP_ALL = True tables = {} ### # TABLES TO BE ADDED ### tables['fitnessGoal'] = { ...
0
0
0
6d2117fd7d99a8171e5259d65c44db731880c38a
27
py
Python
boiler/boiler_template/wsgi.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
19
2016-08-06T20:06:21.000Z
2020-10-22T08:31:49.000Z
boiler/boiler_template/wsgi.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
104
2016-07-31T19:45:00.000Z
2021-09-15T08:13:36.000Z
boiler/boiler_template/wsgi.py
projectshift/shift-boiler
5f1d236b97fc814ba72897fa8bc76c7518bd1919
[ "MIT" ]
1
2017-12-30T09:07:38.000Z
2017-12-30T09:07:38.000Z
from backend.app import app
27
27
0.851852
from backend.app import app
0
0
0
6a81c5a41ae96203f45ff1b955cf357c3fe8d61d
753
py
Python
postgresqleu/confreg/migrations/0029_drop_mailman_sync.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
11
2020-08-20T11:16:02.000Z
2022-03-12T23:25:04.000Z
postgresqleu/confreg/migrations/0029_drop_mailman_sync.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
71
2019-11-18T10:11:22.000Z
2022-03-27T16:12:57.000Z
postgresqleu/confreg/migrations/0029_drop_mailman_sync.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
18
2019-11-18T09:56:31.000Z
2022-01-08T03:16:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-10-09 14:26 from __future__ import unicode_literals from django.db import migrations
23.53125
49
0.575033
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-10-09 14:26 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('confreg', '0028_conferencenews'), ] operations = [ migrations.RemoveField( ...
0
581
23
54d42ececd3221eab54cf510c69419239e27e1be
9,300
py
Python
python/orca/example/learn/tf/image_segmentation/image_segmentation.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/orca/example/learn/tf/image_segmentation/image_segmentation.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/orca/example/learn/tf/image_segmentation/image_segmentation.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
41.150442
100
0.670968
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
6,950
0
69
61559f8d36b7771737d73c305c73f5b98979c15b
15,502
py
Python
fastrk/rk_base.py
BoberSA/fastrk
72b313537428bd4c15bdca29c9c4ef0c01039184
[ "MIT" ]
1
2021-07-12T18:36:27.000Z
2021-07-12T18:36:27.000Z
fastrk/rk_base.py
BoberSA/fastrk
72b313537428bd4c15bdca29c9c4ef0c01039184
[ "MIT" ]
null
null
null
fastrk/rk_base.py
BoberSA/fastrk
72b313537428bd4c15bdca29c9c4ef0c01039184
[ "MIT" ]
null
null
null
""" Algorithms for ode propagation with adaptive step selection using explicit embedded runge-kutta method (rk_step): - select_initial_step: select size of first step - rk_variable_step: make an adaptive rk step according to tolerance - rk_prop: integrate ode from s0, t0 to t (Cauchy's problem) - event_detector: root s...
34.372506
114
0.600052
""" Algorithms for ode propagation with adaptive step selection using explicit embedded runge-kutta method (rk_step): - select_initial_step: select size of first step - rk_variable_step: make an adaptive rk step according to tolerance - rk_prop: integrate ode from s0, t0 to t (Cauchy's problem) - event_detector: root s...
183
0
46
4a5de15344cb09a35e974ff8ea559ff1ccb96654
12,375
bzl
Python
pw_protobuf_compiler/pw_proto_library.bzl
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
pw_protobuf_compiler/pw_proto_library.bzl
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
pw_protobuf_compiler/pw_proto_library.bzl
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.560345
133
0.664727
# Copyright 2022 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
1,490
0
96
85a6fdd6b78aab7569aa64c0b0f9759be6c49e9d
4,844
py
Python
src/aquarium/trace/upload.py
aquariumbio/aquarium-provenance
63879b181608a9857a4fe514b2d7d0182ca25ed8
[ "MIT" ]
1
2019-03-28T04:10:15.000Z
2019-03-28T04:10:15.000Z
src/aquarium/trace/upload.py
klavinslab/aquarium-provenance
63879b181608a9857a4fe514b2d7d0182ca25ed8
[ "MIT" ]
1
2020-11-16T19:20:33.000Z
2020-11-16T19:20:33.000Z
src/aquarium/trace/upload.py
klavinslab/aquarium-provenance
63879b181608a9857a4fe514b2d7d0182ca25ed8
[ "MIT" ]
null
null
null
import hashlib import json import logging import os from aquarium.provenance import (FileEntity, FileTypes, JobActivity, OperationActivity, ProvenanceTrace) from typing import List, Union
34.35461
78
0.572461
import hashlib import json import logging import os from aquarium.provenance import (FileEntity, FileTypes, JobActivity, OperationActivity, ProvenanceTrace) from typing import List, Union class UploadManager: def __init__(self, *, ...
1,886
2,601
100
5973ac4755bc832fd1e7494ecdcd663b65d8e774
3,197
py
Python
metadrive/utils/interpolating_line.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
125
2021-08-30T06:33:57.000Z
2022-03-31T09:02:44.000Z
metadrive/utils/interpolating_line.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
72
2021-08-30T16:23:41.000Z
2022-03-31T19:17:16.000Z
metadrive/utils/interpolating_line.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
20
2021-09-09T08:20:25.000Z
2022-03-24T13:24:07.000Z
import math import numpy as np from metadrive.utils.math_utils import norm class InterpolatingLine: """ This class provides point set with interpolating function """ @staticmethod @staticmethod @staticmethod @staticmethod def get_point(self, longitudinal, lateral=None): ...
34.010638
106
0.598061
import math import numpy as np from metadrive.utils.math_utils import norm class InterpolatingLine: """ This class provides point set with interpolating function """ def __init__(self, points): self.segment_property = self._get_properties(points) self.length = sum([seg["length"] for ...
1,349
0
211
f539a6e9c103aca6a5bb59916fb5b8fef3519e25
6,906
py
Python
tests/test_storage.py
andher1802/dummy_0532
fb953c2785652c583d1147a2b688997e260e6afa
[ "MIT" ]
null
null
null
tests/test_storage.py
andher1802/dummy_0532
fb953c2785652c583d1147a2b688997e260e6afa
[ "MIT" ]
null
null
null
tests/test_storage.py
andher1802/dummy_0532
fb953c2785652c583d1147a2b688997e260e6afa
[ "MIT" ]
null
null
null
import pytest # pylint: disable=unused-import from .context import Storage, Asset, Order from .fixtures import ( ASSET_ID, ORDER_ID, WORKSPACE_ID, auth_mock, auth_live, storage_mock, storage_live, JSON_ASSET, JSON_ORDER, ) def test_paginate_with_limit_smaller_page_size(storage...
29.387234
83
0.62062
import pytest # pylint: disable=unused-import from .context import Storage, Asset, Order from .fixtures import ( ASSET_ID, ORDER_ID, WORKSPACE_ID, auth_mock, auth_live, storage_mock, storage_live, JSON_ASSET, JSON_ORDER, ) def test_init(storage_mock): assert isinstance(storage...
2,216
0
184
ea4268c8ca3f837d893737284413554e35d72642
902
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/plugins/doc_fragments/azure_tags.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/plugins/doc_fragments/azure_tags.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/plugins/doc_fragments/azure_tags.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2016, Matt Davis, <mdavis@ansible.com> # Copyright: (c) 2016, Chris Houseknecht, <house@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
34.692308
114
0.648559
# -*- coding: utf-8 -*- # Copyright: (c) 2016, Matt Davis, <mdavis@ansible.com> # Copyright: (c) 2016, Chris Houseknecht, <house@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Azure doc fragment DOCUMENTATION = r'''...
0
643
23
41925108c67ac2d0b73b532a142be61a3e5d52da
1,595
py
Python
cupy/testing/array.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
null
null
null
cupy/testing/array.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
1
2016-11-09T06:32:32.000Z
2016-11-09T10:20:04.000Z
cupy/testing/array.py
ytoyama/yans_chainer_hackathon
744e7a5a67da8dec2869879f0adfae2d43eaf75c
[ "MIT" ]
1
2018-11-18T00:36:51.000Z
2018-11-18T00:36:51.000Z
import numpy.testing import cupy # NumPy-like assertion functions that accept both NumPy and CuPy arrays
31.9
73
0.692163
import numpy.testing import cupy # NumPy-like assertion functions that accept both NumPy and CuPy arrays def assert_allclose(actual, desired, rtol=1e-7, atol=0, err_msg='', verbose=True): numpy.testing.assert_allclose( cupy.asnumpy(actual), cupy.asnumpy(desired), rtol=rtol, a...
1,320
0
161
64dea9b660d7caa189b81fae885d7a2ec1877248
1,870
py
Python
Models/lpa.py
zyhhhhhhh/social-and-info-networks
d1dd45fc50f55cb2ac1e1cd7cf03cdbb32c5a144
[ "MIT" ]
null
null
null
Models/lpa.py
zyhhhhhhh/social-and-info-networks
d1dd45fc50f55cb2ac1e1cd7cf03cdbb32c5a144
[ "MIT" ]
null
null
null
Models/lpa.py
zyhhhhhhh/social-and-info-networks
d1dd45fc50f55cb2ac1e1cd7cf03cdbb32c5a144
[ "MIT" ]
null
null
null
from collections import Counter import random class LPA: """ Louvain community detection """ def train(self,networks): """ No training actually takes place in this class. :param networks: list of egonet objects :return: Predictions on training networks """ ...
30.16129
98
0.535829
from collections import Counter import random class LPA: """ Louvain community detection """ def __init__(self): pass def train(self,networks): """ No training actually takes place in this class. :param networks: list of egonet objects :return: Predictions ...
11
0
27
e5453407a0260d2fa672531e2b6a6e9895a78b85
6,821
py
Python
code_for_figures/suppFig1_annualmean/cmip6_plot_annualmean_change.py
Timh37/SeasonalDSLC_NWES
9cbc155448dbd0ba07a5b95c5ce49dc3cb4a4187
[ "MIT" ]
null
null
null
code_for_figures/suppFig1_annualmean/cmip6_plot_annualmean_change.py
Timh37/SeasonalDSLC_NWES
9cbc155448dbd0ba07a5b95c5ce49dc3cb4a4187
[ "MIT" ]
null
null
null
code_for_figures/suppFig1_annualmean/cmip6_plot_annualmean_change.py
Timh37/SeasonalDSLC_NWES
9cbc155448dbd0ba07a5b95c5ce49dc3cb4a4187
[ "MIT" ]
1
2021-11-19T13:30:04.000Z
2021-11-19T13:30:04.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ #plot maps of ensemble mean annual mean dslc and wind stress change @author: thermans """ import xarray as xr import matplotlib.pyplot as plt import os import numpy as np import fnmatch import cmocean import cartopy.crs as ccrs import matplotlib import matplotlib.gri...
50.525926
154
0.756341
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ #plot maps of ensemble mean annual mean dslc and wind stress change @author: thermans """ import xarray as xr import matplotlib.pyplot as plt import os import numpy as np import fnmatch import cmocean import cartopy.crs as ccrs import matplotlib import matplotlib.gri...
0
0
0
58ba3579f30090af3cb25a5fd67c18fa1d8dbd8b
613
py
Python
tests/conanbuilder/test_signature.py
arnaudgelas/mumoco
f38db5bdccc93473e2b8bfeb8e7f2884063fd9de
[ "MIT" ]
null
null
null
tests/conanbuilder/test_signature.py
arnaudgelas/mumoco
f38db5bdccc93473e2b8bfeb8e7f2884063fd9de
[ "MIT" ]
null
null
null
tests/conanbuilder/test_signature.py
arnaudgelas/mumoco
f38db5bdccc93473e2b8bfeb8e7f2884063fd9de
[ "MIT" ]
null
null
null
import pytest from src.conanbuilder.signature import Signature @pytest.fixture
17.514286
48
0.725938
import pytest from src.conanbuilder.signature import Signature @pytest.fixture def signature(): return Signature() def test_version(signature): assert not signature.version def test_version_set(signature): signature.version = "1.0.0" assert signature.version == "1.0.0" def test_channel(signature...
366
0
160
0e1d8979796434fec6803abf366ff204854a1441
2,148
py
Python
models/embedder.py
hanq0212/Few_Shot-Neural_Talking_Head
a5d2b4e745531e39d4d4c31a94557c0bd5e6072e
[ "MIT" ]
null
null
null
models/embedder.py
hanq0212/Few_Shot-Neural_Talking_Head
a5d2b4e745531e39d4d4c31a94557c0bd5e6072e
[ "MIT" ]
null
null
null
models/embedder.py
hanq0212/Few_Shot-Neural_Talking_Head
a5d2b4e745531e39d4d4c31a94557c0bd5e6072e
[ "MIT" ]
null
null
null
import torch import torch.nn from models.blocks import *
45.702128
88
0.474395
import torch import torch.nn from models.blocks import * class Embedder(nn.Module): def __init__(self,curr_size=224, ideal_size=256, pool_mode = "sum"): super(Embedder, self).__init__() self.init_padding= Padding(curr_size=curr_size, ideal=ideal_size) # downsample # input: B, 6, ...
1,996
5
77
2e0ef5edb1fb4a280d5ae05b33226aeb2148eed9
4,059
py
Python
tests/test_parser.py
hirnimeshrampuresoftware/python-tcod
c82d60eaaf12e50b405d55df1026c1d00dd283b6
[ "BSD-2-Clause" ]
231
2018-06-28T10:07:41.000Z
2022-03-20T16:17:19.000Z
tests/test_parser.py
hanok2/python-tcod
807fdca464389e3febd8c86991bd4564d091f48d
[ "BSD-2-Clause" ]
66
2018-06-27T19:04:25.000Z
2022-03-30T21:15:15.000Z
tests/test_parser.py
hanok2/python-tcod
807fdca464389e3febd8c86991bd4564d091f48d
[ "BSD-2-Clause" ]
31
2018-09-12T00:35:42.000Z
2022-03-20T16:17:22.000Z
#!/usr/bin/env python import os from typing import Any import pytest import tcod as libtcod @pytest.mark.filterwarnings("ignore") if __name__ == "__main__": test_parser()
50.7375
114
0.698694
#!/usr/bin/env python import os from typing import Any import pytest import tcod as libtcod @pytest.mark.filterwarnings("ignore") def test_parser() -> None: print("***** File Parser test *****") parser = libtcod.parser_new() struct = libtcod.parser_new_struct(parser, "myStruct") libtcod.struct_add_...
3,855
0
22
f13c36c38565a5f00a1c93b2baf699d1fcfd7720
7,009
py
Python
utils.py
UKPLab/EACL21-personalized-conversational-system
ff4949f11928b82f5bea06fa62b091cc337f56cc
[ "MIT" ]
9
2021-01-27T22:10:45.000Z
2021-11-09T23:47:46.000Z
utils.py
UKPLab/EACL21-personalized-conversational-system
ff4949f11928b82f5bea06fa62b091cc337f56cc
[ "MIT" ]
3
2021-03-11T06:04:15.000Z
2021-08-31T15:44:42.000Z
utils.py
UKPLab/EACL21-personalized-conversational-system
ff4949f11928b82f5bea06fa62b091cc337f56cc
[ "MIT" ]
1
2021-05-10T07:35:01.000Z
2021-05-10T07:35:01.000Z
# Copyright (c) 2019-present, HuggingFace Inc. # All rights reserved. This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import json import logging import os import tarfile import tempfile import torch from pytorch_pretrained_bert import cac...
46.726667
153
0.659153
# Copyright (c) 2019-present, HuggingFace Inc. # All rights reserved. This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import json import logging import os import tarfile import tempfile import torch from pytorch_pretrained_bert import cac...
644
0
109
6b90888722e66e986dd59cf3304d14be7e22c8b2
4,255
py
Python
lib/roi_data/minibatch.py
GothicAi/AugMask
1547de027ddac29cc92ec6f98c837f32301fcd67
[ "MIT" ]
null
null
null
lib/roi_data/minibatch.py
GothicAi/AugMask
1547de027ddac29cc92ec6f98c837f32301fcd67
[ "MIT" ]
null
null
null
lib/roi_data/minibatch.py
GothicAi/AugMask
1547de027ddac29cc92ec6f98c837f32301fcd67
[ "MIT" ]
1
2020-03-31T22:37:29.000Z
2020-03-31T22:37:29.000Z
import numpy as np import cv2 from core.config import cfg import utils.blob as blob_utils import roi_data.rpn def get_minibatch_blob_names(is_training=True): """Return blob names in the order in which they are read by the data loader. """ # data blob: holds a batch of N images, each with 3 channels b...
38.681818
106
0.610811
import numpy as np import cv2 from core.config import cfg import utils.blob as blob_utils import roi_data.rpn def get_minibatch_blob_names(is_training=True): """Return blob names in the order in which they are read by the data loader. """ # data blob: holds a batch of N images, each with 3 channels b...
0
0
0
e2103516eeb997f257f194053521245582f812a4
2,141
py
Python
extract.py
josh-austin/color-extractor
d43f350a2340005da9d086aa1e797588c1125270
[ "MIT" ]
2
2015-01-11T00:00:25.000Z
2020-06-30T19:39:51.000Z
extract.py
josh-austin/color-extractor
d43f350a2340005da9d086aa1e797588c1125270
[ "MIT" ]
null
null
null
extract.py
josh-austin/color-extractor
d43f350a2340005da9d086aa1e797588c1125270
[ "MIT" ]
null
null
null
import sys, os class Extractor: ''' Returns the variable name if a variable with the value <value> is found. ''' ''' Scans a list of <lines> containing CSS and returns a list of strings containing the rendered LESS version. ''' ''' Returns the output for the v...
31.955224
83
0.502102
import sys, os class Extractor: def __init__(self, prefix=''): self.variables = {} self.prefix = os.path.basename(prefix) ''' Returns the variable name if a variable with the value <value> is found. ''' def find_variable_name(self, value): for var, val in self.v...
910
0
105
da14e30138a8a6095f020cff0406d675dbf3d07c
12,557
py
Python
scripts/auv_models_test.py
michoy/system_identification
13e2b249e111e00e290461ab392f0e2ad562246d
[ "MIT" ]
null
null
null
scripts/auv_models_test.py
michoy/system_identification
13e2b249e111e00e290461ab392f0e2ad562246d
[ "MIT" ]
null
null
null
scripts/auv_models_test.py
michoy/system_identification
13e2b249e111e00e290461ab392f0e2ad562246d
[ "MIT" ]
null
null
null
import unittest import numpy as np from auv_models import linear_surge, diagonal_slow_without_g from helper import degrees_to_quat_rotation if __name__ == "__main__": unittest.main()
31.951654
74
0.525285
import unittest import numpy as np from auv_models import linear_surge, diagonal_slow_without_g from helper import degrees_to_quat_rotation class SimplifiedSurgeAUVTest(unittest.TestCase): def test_auv_1DOF(self): x = 0 u = 0.1 tau = 1 m = 10 d = 20 state = np.ar...
11,915
54
395
83871a80758a183a877a1739b65f003ef563b450
5,998
py
Python
zdf_downloader.py
leaffan/downloading
c917c394f7519772b8c195e6e922ba40a372dce2
[ "MIT" ]
1
2017-02-01T15:37:31.000Z
2017-02-01T15:37:31.000Z
zdf_downloader.py
leaffan/downloading
c917c394f7519772b8c195e6e922ba40a372dce2
[ "MIT" ]
null
null
null
zdf_downloader.py
leaffan/downloading
c917c394f7519772b8c195e6e922ba40a372dce2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import argparse import requests import json from dateutil.parser import parse from lxml import html if __name__ == '__main__': arg_parser = argparse.ArgumentParser( description='Download videos from ZDF media library.') arg_parser...
37.72327
79
0.603701
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import argparse import requests import json from dateutil.parser import parse from lxml import html class ZdfDownloader(): QUALITY_KEYS = ['veryhigh', 'high', 'low'] BROADCAST_BASE_URL = ( "https://api.zdf.de/tmd/2/ngplayer_2_3/vod...
502
4,530
23
1a245c6ec7443114f7802b71a77b0421f9982bb1
11,707
py
Python
tests/test_aztp_os_selector.py
jeremyschulman/aeon-ztps
45f649f9453a56da1cc16df183c6292505c33762
[ "Apache-2.0" ]
null
null
null
tests/test_aztp_os_selector.py
jeremyschulman/aeon-ztps
45f649f9453a56da1cc16df183c6292505c33762
[ "Apache-2.0" ]
null
null
null
tests/test_aztp_os_selector.py
jeremyschulman/aeon-ztps
45f649f9453a56da1cc16df183c6292505c33762
[ "Apache-2.0" ]
1
2021-07-07T18:10:15.000Z
2021-07-07T18:10:15.000Z
import os import yaml import tempfile import json import sys import copy from collections import namedtuple import pytest from mock import patch from aeon_ztp.bin import aztp_os_selector dev_data = { 'os_name': 'cumulus-vx', 'vendor': 'cumulus', 'hw_part_number': '1234', 'hostname': 'cumulus', 'f...
36.357143
124
0.679252
import os import yaml import tempfile import json import sys import copy from collections import namedtuple import pytest from mock import patch from aeon_ztp.bin import aztp_os_selector dev_data = { 'os_name': 'cumulus-vx', 'vendor': 'cumulus', 'hw_part_number': '1234', 'hostname': 'cumulus', 'f...
8,022
0
499
f475c91d05ddbf6f7564e71bed827fc0d1f9127b
1,065
py
Python
lymph/tests/monitoring/test_aggregator.py
torte/lymph
1dc726dfa931c91a0068ddd81401d3321367f470
[ "Apache-2.0" ]
null
null
null
lymph/tests/monitoring/test_aggregator.py
torte/lymph
1dc726dfa931c91a0068ddd81401d3321367f470
[ "Apache-2.0" ]
null
null
null
lymph/tests/monitoring/test_aggregator.py
torte/lymph
1dc726dfa931c91a0068ddd81401d3321367f470
[ "Apache-2.0" ]
null
null
null
import unittest from lymph.core.monitoring.metrics import RawMetric from lymph.core.monitoring.aggregator import Aggregator
31.323529
121
0.676995
import unittest from lymph.core.monitoring.metrics import RawMetric from lymph.core.monitoring.aggregator import Aggregator def _get_metrics_one(): yield RawMetric('dummy', 'one') def _get_metrics_two(): yield RawMetric('dummy', 'two') class AggregatorTestCase(unittest.TestCase): def test_aggregator...
764
23
150
e2c2e185e25912314724f45aa243c157fc190970
4,322
py
Python
Compare_simple_warehouse/without_GA/param.py
liuyandong1988/Warehouse_GA
3dd6f07ae03c3b1a7eb1a961ed03e88a245a4455
[ "MIT" ]
1
2019-07-30T09:41:53.000Z
2019-07-30T09:41:53.000Z
Compare_simple_warehouse/without_GA/param.py
liuyandong1988/Warehouse_GA
3dd6f07ae03c3b1a7eb1a961ed03e88a245a4455
[ "MIT" ]
null
null
null
Compare_simple_warehouse/without_GA/param.py
liuyandong1988/Warehouse_GA
3dd6f07ae03c3b1a7eb1a961ed03e88a245a4455
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 eelium <eelium@eez008> # # Distributed under terms of the MIT license. import random """ parameters """ # The window refresh rate REFRESH_INTERVAL = 50 # the ground size margin_left = 100 margin_right = 100 margin_top = 100 margin_b...
34.576
113
0.512031
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 eelium <eelium@eez008> # # Distributed under terms of the MIT license. import random """ parameters """ # The window refresh rate REFRESH_INTERVAL = 50 # the ground size margin_left = 100 margin_right = 100 margin_top = 100 margin_b...
0
0
0
5016217d66d62951ba236ae324a5ee4c82ba7fd0
59,821
py
Python
Seth/importer/views.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
1
2020-08-09T01:26:31.000Z
2020-08-09T01:26:31.000Z
Seth/importer/views.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
17
2017-11-15T10:06:02.000Z
2019-02-13T15:32:41.000Z
Seth/importer/views.py
Inf1n1te/Seth
4ccfcba6226f3d284fd955cd0a81316402e8d043
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.db import transaction from django.db.utils import IntegrityError from djang...
50.567202
172
0.567109
from django.contrib.auth.decorators import login_required from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.core.exceptions import PermissionDenied, SuspiciousOperation from django.db import transaction from django.db.utils import IntegrityError from djang...
16,534
750
238
ac15b3969bc4796063311a9d060ccadf45c21a9b
2,923
py
Python
lsp.py
blguweb/radiarDetection
81cb694c17c6ef8736f30ad691f7da82cc83ea4c
[ "MIT" ]
null
null
null
lsp.py
blguweb/radiarDetection
81cb694c17c6ef8736f30ad691f7da82cc83ea4c
[ "MIT" ]
null
null
null
lsp.py
blguweb/radiarDetection
81cb694c17c6ef8736f30ad691f7da82cc83ea4c
[ "MIT" ]
null
null
null
#coding=utf-8 import os import math #from tqdm import tqdm def lsp(x,y,th,mv_red_th,mv_green_th):#x与y为五人机绝对坐标系,后二者为mv返回大致角度值(为绝对坐标系中y轴方向顺时针转动角度) ''' ''' times=30#雷达扫描次数 num_data_line=600#雷达数据行数 data_ls = [[round(0.6 * x,2),0] for x in range(num_data_line)]#创建存储雷达数据的数组 error_rang...
30.447917
274
0.517961
#coding=utf-8 import os import math #from tqdm import tqdm def dis2int(dis): #将距离从字符串转换成整形 int_dis=0 for i in range(5): int_dis += int(int(dis[i])*math.pow(10, 4 - i)) return int_dis def lsp(x,y,th,mv_red_th,mv_green_th):#x与y为五人机绝对坐标系,后二者为mv返回大致角度值(为绝对坐标系中y轴方向顺时针转动角度) ''' '...
155
0
23
e0b3ce02e06b9dc10e756ee437b6ab424249cddb
6,365
py
Python
basicsr/inference_test.py
ZhangAoCanada/HINet
6c03a65f70a494186a9fed02ce91cdf8deab105a
[ "MIT" ]
null
null
null
basicsr/inference_test.py
ZhangAoCanada/HINet
6c03a65f70a494186a9fed02ce91cdf8deab105a
[ "MIT" ]
null
null
null
basicsr/inference_test.py
ZhangAoCanada/HINet
6c03a65f70a494186a9fed02ce91cdf8deab105a
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------ # Copyright (c) 2021 megvii-model. All Rights Reserved. # ------------------------------------------------------------------------ # Modified from BasicSR (https://github.com/xinntao/BasicSR) # Copyright 2018-2020 BasicSR Authors # -------------...
35.758427
135
0.571092
# ------------------------------------------------------------------------ # Copyright (c) 2021 megvii-model. All Rights Reserved. # ------------------------------------------------------------------------ # Modified from BasicSR (https://github.com/xinntao/BasicSR) # Copyright 2018-2020 BasicSR Authors # -------------...
5,066
0
91
977a52aceacc4591282f0f56211f48e3f242cb03
194
py
Python
sort_123.py
malai001/codebank
6834107ab683a38a8799102278369a66b1c1b336
[ "bzip2-1.0.6" ]
1
2017-07-11T05:02:12.000Z
2017-07-11T05:02:12.000Z
sort_123.py
malai001/codebank
6834107ab683a38a8799102278369a66b1c1b336
[ "bzip2-1.0.6" ]
null
null
null
sort_123.py
malai001/codebank
6834107ab683a38a8799102278369a66b1c1b336
[ "bzip2-1.0.6" ]
null
null
null
a = [1,2,3,1,2,3] l = 0 m = 0 h = len(a)-1 while(m<=h): if(a[m]==1): a[l],a[m] = a[m],a[l] l+=1 m+=1 elif(a[m]==2): m+=1 else: a[h],a[m] = a[m],a[h] h-=1 print a
12.125
24
0.360825
a = [1,2,3,1,2,3] l = 0 m = 0 h = len(a)-1 while(m<=h): if(a[m]==1): a[l],a[m] = a[m],a[l] l+=1 m+=1 elif(a[m]==2): m+=1 else: a[h],a[m] = a[m],a[h] h-=1 print a
0
0
0
0f527fbcf41be763958ea69825ceb32c790d1718
5,751
py
Python
plaso/analysis/test_lib.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
3
2016-03-11T02:47:08.000Z
2016-12-24T03:19:27.000Z
plaso/analysis/test_lib.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
null
null
null
plaso/analysis/test_lib.py
cvandeplas/plaso
b625a2c267ed09505cfac84c9593d8c0922852b1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2014 The Plaso Project Authors. # Please see the AUTHORS file for details on individual authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the L...
34.437126
79
0.738828
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2014 The Plaso Project Authors. # Please see the AUTHORS file for details on individual authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the L...
0
0
0
ab052d4fcf325877949746f118c6d1847e0459da
6,901
py
Python
tests/conftest.py
danbider/lightning-pose
23dc5f22e4b40fa8b71193322f11fca703fd8ec9
[ "MIT" ]
47
2021-11-03T07:56:50.000Z
2022-03-23T12:22:38.000Z
tests/conftest.py
danbider/lightning-pose
23dc5f22e4b40fa8b71193322f11fca703fd8ec9
[ "MIT" ]
2
2021-10-19T03:45:12.000Z
2022-01-25T22:20:42.000Z
tests/conftest.py
danbider/lightning-pose
23dc5f22e4b40fa8b71193322f11fca703fd8ec9
[ "MIT" ]
6
2021-11-16T23:32:18.000Z
2022-03-17T16:55:39.000Z
"""Provide pytest fixtures for the entire test suite. These fixtures create data and data modules that can be reused by other tests. Their construction relies heavily on the utility functions provided in `utils/scripts.py`. """ import copy import imgaug.augmenters as iaa from omegaconf import ListConfig, OmegaConf i...
28.634855
84
0.705115
"""Provide pytest fixtures for the entire test suite. These fixtures create data and data modules that can be reused by other tests. Their construction relies heavily on the utility functions provided in `utils/scripts.py`. """ import copy import imgaug.augmenters as iaa from omegaconf import ListConfig, OmegaConf i...
356
0
66
76164ad7c850bfbf1dd29a68a4e24774dd59e647
30
py
Python
iot_inspector_client/queries/__init__.py
IoT-Inspector/python-client
88a5b4f27e7f95e544a0c62da89cd1f42be0af3f
[ "MIT" ]
3
2021-04-14T20:21:34.000Z
2021-05-19T20:59:03.000Z
iot_inspector_client/queries/__init__.py
IoT-Inspector/python-client
88a5b4f27e7f95e544a0c62da89cd1f42be0af3f
[ "MIT" ]
6
2021-04-20T10:45:30.000Z
2022-01-22T13:02:52.000Z
iot_inspector_client/queries/__init__.py
IoT-Inspector/python-client
88a5b4f27e7f95e544a0c62da89cd1f42be0af3f
[ "MIT" ]
1
2022-01-19T17:48:44.000Z
2022-01-19T17:48:44.000Z
from .utils import load_query
15
29
0.833333
from .utils import load_query
0
0
0
0efa1c8d1416695a1aacbad21331a04b9a79f3f1
6,095
py
Python
tests/test_cosalib_cmdlib.py
shanemcd/coreos-assembler
a295e945bb0f4ba7a998c2440990680157b7e0d9
[ "Apache-2.0" ]
249
2018-09-11T14:43:09.000Z
2022-03-26T05:03:11.000Z
tests/test_cosalib_cmdlib.py
shanemcd/coreos-assembler
a295e945bb0f4ba7a998c2440990680157b7e0d9
[ "Apache-2.0" ]
2,262
2018-08-28T16:56:35.000Z
2022-03-31T22:40:11.000Z
tests/test_cosalib_cmdlib.py
jmarrero/coreos-assembler
3f0b818a54767d17600e1b7b9155b6d7d9534353
[ "Apache-2.0" ]
148
2018-08-29T14:59:19.000Z
2022-03-14T12:57:42.000Z
import datetime import os import platform import pytest import subprocess import sys import uuid sys.path.insert(0, 'src') from cosalib import cmdlib PY_MAJOR, PY_MINOR, PY_PATCH = platform.python_version_tuple() def test_run_verbose(): """ Verify run_verbose returns expected information """ result...
26.732456
77
0.59475
import datetime import os import platform import pytest import subprocess import sys import uuid sys.path.insert(0, 'src') from cosalib import cmdlib PY_MAJOR, PY_MINOR, PY_PATCH = platform.python_version_tuple() def test_run_verbose(): """ Verify run_verbose returns expected information """ result...
2,303
0
100
daea94a3811d4fbda0c97cd4b522850520def761
3,691
py
Python
release/scripts/startup/bl_ui/properties_workspace.py
mmk-code/blender
c8fc23fdbe09c33f5342ed51735dab50fe4f071b
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2019-03-20T13:10:46.000Z
2019-05-15T20:00:31.000Z
engine/2.80/scripts/startup/bl_ui/properties_workspace.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
engine/2.80/scripts/startup/bl_ui/properties_workspace.py
byteinc/Phasor
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
31.547009
77
0.638309
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
1,903
552
92
468a25b174ed8ac5bf498b1f130bd5cf63f10a97
1,275
py
Python
setup.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
setup.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
setup.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
import setuptools, sys, os with open("README.rst", "r") as fh: long_description = fh.read() # The wce triage is designed to work with Ubuntu 18.04LTS and after # that comes with Python 3.6. python_version = sys.version_info need_python_version = (3, 6) if python_version < need_python_version: raise RuntimeError...
26.5625
73
0.661176
import setuptools, sys, os with open("README.rst", "r") as fh: long_description = fh.read() # The wce triage is designed to work with Ubuntu 18.04LTS and after # that comes with Python 3.6. python_version = sys.version_info need_python_version = (3, 6) if python_version < need_python_version: raise RuntimeError...
0
0
0
189cd7625aaa95f6630ac9cfcded7b39a36c88fe
5,500
py
Python
src/main/python/dev4py/utils/dicts.py
St4rG00se/dev4py-utils
7507bd443cb231b6362e66ff6b161c8d792f39dc
[ "Apache-2.0" ]
null
null
null
src/main/python/dev4py/utils/dicts.py
St4rG00se/dev4py-utils
7507bd443cb231b6362e66ff6b161c8d792f39dc
[ "Apache-2.0" ]
null
null
null
src/main/python/dev4py/utils/dicts.py
St4rG00se/dev4py-utils
7507bd443cb231b6362e66ff6b161c8d792f39dc
[ "Apache-2.0" ]
null
null
null
""" The `dicts` module provides a set of utility functions to simplify dict operations """ # Copyright 2022 the original author or authors (i.e.: St4rG00se for Dev4py). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtai...
32.163743
120
0.687273
""" The `dicts` module provides a set of utility functions to simplify dict operations """ # Copyright 2022 the original author or authors (i.e.: St4rG00se for Dev4py). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtai...
0
0
0
60bc56ceec284ddfd7facd879668c71a84410bde
725
py
Python
tutorial/snippets/serializers/UserSerializer.py
sinner/testing-djrf
729312cc55a85a7b6a9b0ed159a29a6d0570d139
[ "MIT" ]
null
null
null
tutorial/snippets/serializers/UserSerializer.py
sinner/testing-djrf
729312cc55a85a7b6a9b0ed159a29a6d0570d139
[ "MIT" ]
null
null
null
tutorial/snippets/serializers/UserSerializer.py
sinner/testing-djrf
729312cc55a85a7b6a9b0ed159a29a6d0570d139
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.contrib.auth.models import User from snippets.models import Contact from snippets.models import Snippet from snippets.serializers import ContactSerializer
34.52381
92
0.736552
from rest_framework import serializers from django.contrib.auth.models import User from snippets.models import Contact from snippets.models import Snippet from snippets.serializers import ContactSerializer class UserSerializer(serializers.ModelSerializer): snippets = serializers.PrimaryKeyRelatedField(many=True, ...
196
299
23
bf7ba2bf762b26c528325abaa78c23eea1b93956
3,241
py
Python
hskl/classification.py
qiancao/hskl
7a530d3e1cc10f0f85e5a1f3edbdcd91f2c2cc8a
[ "BSD-3-Clause" ]
7
2021-03-01T18:07:49.000Z
2021-09-12T10:22:21.000Z
hskl/classification.py
qiancao/hskl
7a530d3e1cc10f0f85e5a1f3edbdcd91f2c2cc8a
[ "BSD-3-Clause" ]
null
null
null
hskl/classification.py
qiancao/hskl
7a530d3e1cc10f0f85e5a1f3edbdcd91f2c2cc8a
[ "BSD-3-Clause" ]
4
2021-03-25T13:36:54.000Z
2021-05-30T10:25:06.000Z
# -*- coding: utf-8 -*- """ hskl Classification Module Data I/O conventions X: (DimX, DimY, NumSpectralChannels) <np.array> Y: (DimX, DimY) <np.array,dtype=uint8> 0 - ignored 1 - first label 2 - second label ... """ # Author: Qian Cao # License: BSD 3-Clause import numpy as np from sklearn.utils ...
27.700855
82
0.639309
# -*- coding: utf-8 -*- """ hskl Classification Module Data I/O conventions X: (DimX, DimY, NumSpectralChannels) <np.array> Y: (DimX, DimY) <np.array,dtype=uint8> 0 - ignored 1 - first label 2 - second label ... """ # Author: Qian Cao # License: BSD 3-Clause import numpy as np from sklearn.utils ...
414
0
62
d4c92148b0ac4e28242be712fafb2a11f6a3d5a4
1,106
py
Python
dynts/utils/populate.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
57
2015-02-10T13:42:06.000Z
2022-03-28T14:48:36.000Z
dynts/utils/populate.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
1
2016-11-01T07:43:05.000Z
2016-11-01T07:43:05.000Z
dynts/utils/populate.py
quantmind/dynts
21ac57c648bfec402fa6b1fe569496cf098fb5e8
[ "BSD-3-Clause" ]
17
2015-05-08T04:09:19.000Z
2021-08-02T19:24:52.000Z
from datetime import date, timedelta from random import uniform from numpy import ndarray def polygen(*coefficients): '''Polynomial generating function''' if not coefficients: return lambda i: 0 else: c0 = coefficients[0] coefficients = coefficients[1:] ...
22.12
64
0.563291
from datetime import date, timedelta from random import uniform from numpy import ndarray def _generator(x): return uniform(0, 1) class gdata(object): def __init__(self, data): self.data = data def __iter__(self): return (v for v in self.data) def datepopulate(siz...
582
-1
191
d4bddb57b63ff8699be1cdd5f9d5d69256c5b486
4,376
py
Python
awsm_rank/awsm_rank.py
psacawa/awsm-rank
36a8900c60c75e33973769162ec12b6dd4017dcd
[ "MIT" ]
null
null
null
awsm_rank/awsm_rank.py
psacawa/awsm-rank
36a8900c60c75e33973769162ec12b6dd4017dcd
[ "MIT" ]
null
null
null
awsm_rank/awsm_rank.py
psacawa/awsm-rank
36a8900c60c75e33973769162ec12b6dd4017dcd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import sys import argparse import asyncio import json from os import environ from typing import List from pprint import pprint import logging import subprocess from urllib.parse import urlparse from aiohttp import ClientSession, ClientError import requests from bs4 import BeautifulSoup...
33.661538
91
0.675046
#!/usr/bin/env python3 import re import sys import argparse import asyncio import json from os import environ from typing import List from pprint import pprint import logging import subprocess from urllib.parse import urlparse from aiohttp import ClientSession, ClientError import requests from bs4 import BeautifulSoup...
670
0
46
9c94d36e656c8b0972e4d60231610351bbee92fa
9,994
py
Python
BioLAMA/best.py
dmis-lab/BioLAMA
28eabf54af362e58e7b8b8096b3a71c432b4f02b
[ "Apache-2.0" ]
29
2021-09-16T02:26:37.000Z
2022-03-27T08:48:55.000Z
BioLAMA/best.py
dmis-lab/BioLAMA
28eabf54af362e58e7b8b8096b3a71c432b4f02b
[ "Apache-2.0" ]
5
2021-09-24T02:32:49.000Z
2022-03-17T11:53:55.000Z
BioLAMA/best.py
dmis-lab/BioLAMA
28eabf54af362e58e7b8b8096b3a71c432b4f02b
[ "Apache-2.0" ]
2
2021-12-16T07:09:13.000Z
2022-03-17T03:47:20.000Z
""" .. module:: BEST :platform: Unix, linux, Windows .. moduleauthor:: Sunkyu Kim <sunkyu-kim@korea.ac.kr> ================================ Biomedical Entity Query API v2 ================================ API Description ================ This API is for use of BEST(Biomedical Entity Search Tool) in various purposes....
30.562691
201
0.558735
""" .. module:: BEST :platform: Unix, linux, Windows .. moduleauthor:: Sunkyu Kim <sunkyu-kim@korea.ac.kr> ================================ Biomedical Entity Query API v2 ================================ API Description ================ This API is for use of BEST(Biomedical Entity Search Tool) in various purposes....
2,624
0
104
3faf6cfa0866ca8d6a6f948152e173e23006d08d
352
py
Python
python-benchmarking-tools/test/test_log.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
python-benchmarking-tools/test/test_log.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
python-benchmarking-tools/test/test_log.py
HASTE-project/benchmarking-tools
3e65cd4019287051a612bc21fa68e4b1a5bbc745
[ "BSD-3-Clause" ]
null
null
null
import io import unittest import unittest.mock from haste.benchmarking import log
23.466667
64
0.713068
import io import unittest import unittest.mock from haste.benchmarking import log class TestLog(unittest.TestCase): @unittest.mock.patch('sys.stdout', new_callable=io.StringIO) def test_log(self, mock_stdout): log.log('topic', 'message') print(mock_stdout.getvalue()) self.assertEqual...
141
104
23
d09a47265de40fa28d63d23152163d2afe398393
32
py
Python
RandomBot/__init__.py
RandomBotDev/RandomBotCog
a00db232cf6eeb85293060a3ffaf6d44f4330450
[ "MIT" ]
null
null
null
RandomBot/__init__.py
RandomBotDev/RandomBotCog
a00db232cf6eeb85293060a3ffaf6d44f4330450
[ "MIT" ]
null
null
null
RandomBot/__init__.py
RandomBotDev/RandomBotCog
a00db232cf6eeb85293060a3ffaf6d44f4330450
[ "MIT" ]
1
2022-03-07T11:48:37.000Z
2022-03-07T11:48:37.000Z
from RandomBot.MainCog import *
16
31
0.8125
from RandomBot.MainCog import *
0
0
0
d55115c108a4e0def496b8f1eed2b517ab34ee3a
1,398
py
Python
notebooks/chisel-tutorial/src/chisel-tutorial/adder4.py
edwardcwang/magmathon
f9a1e9d93823d0a90e77c968d952d05b553a6a86
[ "MIT" ]
null
null
null
notebooks/chisel-tutorial/src/chisel-tutorial/adder4.py
edwardcwang/magmathon
f9a1e9d93823d0a90e77c968d952d05b553a6a86
[ "MIT" ]
null
null
null
notebooks/chisel-tutorial/src/chisel-tutorial/adder4.py
edwardcwang/magmathon
f9a1e9d93823d0a90e77c968d952d05b553a6a86
[ "MIT" ]
null
null
null
# coding: utf-8 # In[1]: import sys sys.path.append("../../examples") from full_adder import FullAdder from magma import * # In[2]: T = Bits(4) # In[3]: from magma.simulator import PythonSimulator from magma.bit_vector import BitVector simulator = PythonSimulator(Adder4) simulator.set_value(Adder4.a, BitVe...
24.103448
82
0.619456
# coding: utf-8 # In[1]: import sys sys.path.append("../../examples") from full_adder import FullAdder from magma import * # In[2]: T = Bits(4) class Adder4(Circuit): name = "Adder4" IO = ["a", In(T), "b", In(T), "cin", In(Bit), "out", Out(T), "cout", Out(Bit)] @classmethod def definition(io): ...
638
147
22
7bfcdc9926552a8b0a147972eecca053f069298b
694
py
Python
Algorithms/0021_Merge_Two_Sorted_Lists/Python/Merge_Two_Sorted_Lists_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0021_Merge_Two_Sorted_Lists/Python/Merge_Two_Sorted_Lists_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
Algorithms/0021_Merge_Two_Sorted_Lists/Python/Merge_Two_Sorted_Lists_Solution_1.py
lht19900714/Leetcode_Solutions
dac7a038329a5c1f8a78e86cc6f49116b963f1fb
[ "MIT" ]
null
null
null
# Space: O(1) # Time: O(n) # Recursive approach # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None
18.756757
53
0.489914
# Space: O(1) # Time: O(n) # Recursive approach # Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def mergeTwoLists(self, l1, l2): def helper(l1, l2): if l1 is None and l2 is None: return No...
462
-6
50
0fcb44b3908d0bb94f87d70dc7b56e91aa980468
3,257
py
Python
dvc/utils/fs.py
ap-kulkarni/dvc
735b563ce411413d29be4d9ec2eca716356de3b9
[ "Apache-2.0" ]
null
null
null
dvc/utils/fs.py
ap-kulkarni/dvc
735b563ce411413d29be4d9ec2eca716356de3b9
[ "Apache-2.0" ]
null
null
null
dvc/utils/fs.py
ap-kulkarni/dvc
735b563ce411413d29be4d9ec2eca716356de3b9
[ "Apache-2.0" ]
null
null
null
import errno import logging import os import shutil import stat import sys from typing import TYPE_CHECKING from dvc.exceptions import DvcException if TYPE_CHECKING: from dvc.types import StrPath logger = logging.getLogger(__name__) def path_isin(child: "StrPath", parent: "StrPath") -> bool: """Check ...
26.917355
76
0.634326
import errno import logging import os import shutil import stat import sys from typing import TYPE_CHECKING from dvc.exceptions import DvcException if TYPE_CHECKING: from dvc.types import StrPath logger = logging.getLogger(__name__) class BasePathNotInCheckedPathException(DvcException): def __init__(self, ...
2,522
33
191
e6b4b48425df0aec5cd3b453e554c427e79241d4
3,935
py
Python
tfplot/figure.py
sirspinach/tensorflow-plot
d6ad65cb4392e9adbf65d3dc8086a2eacd1e9f43
[ "MIT" ]
null
null
null
tfplot/figure.py
sirspinach/tensorflow-plot
d6ad65cb4392e9adbf65d3dc8086a2eacd1e9f43
[ "MIT" ]
null
null
null
tfplot/figure.py
sirspinach/tensorflow-plot
d6ad65cb4392e9adbf65d3dc8086a2eacd1e9f43
[ "MIT" ]
null
null
null
''' Figure utilities. ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import types import matplotlib.pyplot as plt from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg import six from io i...
28.309353
83
0.652097
''' Figure utilities. ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import types import matplotlib.pyplot as plt from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg import six from io i...
0
0
0
254837b592b886220849629aa4e47fbd84c719a1
18,279
py
Python
campy/private/backends/jbe/platformat.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
campy/private/backends/jbe/platformat.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-07T04:33:46.000Z
2017-06-07T04:33:46.000Z
campy/private/backends/jbe/platformat.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
""" Java Backend Format Strings The following section lists format strings for the Java backend, and can/ should be updated as the text API to the Stanford Portable Library changes. The strings are marked using keyword format syntax, which can be expanded by keyword in Python """ # Platform::filelib_fileExists # Platf...
56.070552
141
0.743914
""" Java Backend Format Strings The following section lists format strings for the Java backend, and can/ should be updated as the text API to the Stanford Portable Library changes. The strings are marked using keyword format syntax, which can be expanded by keyword in Python """ # Platform::filelib_fileExists # Platf...
0
0
0
ac37cde218154420b284a26ad457b2fee3a27de3
1,998
py
Python
ipproxytool/spiders/proxy/freeproxylists.py
txgyy/ipproxytool
59db3c4394abaf3df4a31ac35d297a1c7f929f65
[ "MIT" ]
11
2018-07-24T10:45:54.000Z
2021-06-30T08:42:18.000Z
ipproxytool/spiders/proxy/freeproxylists.py
txgyy/ipproxytool
59db3c4394abaf3df4a31ac35d297a1c7f929f65
[ "MIT" ]
3
2021-03-31T18:28:23.000Z
2022-03-02T14:54:29.000Z
ipproxytool/spiders/proxy/freeproxylists.py
txgyy/ipproxytool
59db3c4394abaf3df4a31ac35d297a1c7f929f65
[ "MIT" ]
4
2018-11-07T07:15:47.000Z
2020-04-15T14:15:18.000Z
# coding=utf-8 import urllib import re from proxy import Proxy from .basespider import BaseSpider from bs4 import BeautifulSoup
33.864407
111
0.506507
# coding=utf-8 import urllib import re from proxy import Proxy from .basespider import BaseSpider from bs4 import BeautifulSoup class FreeProxyListsSpider(BaseSpider): name = 'freeproxylists' def __init__(self, *a, **kwargs): super(FreeProxyListsSpider, self).__init__(*a, **kwargs) self.url...
1,744
100
23
a8b83a04607ee8cd36a6e73180f394da0c9619ea
1,248
py
Python
tracardi/service/storage/drivers/elastic/log.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
null
null
null
tracardi/service/storage/drivers/elastic/log.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
null
null
null
tracardi/service/storage/drivers/elastic/log.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
null
null
null
from tracardi.service.storage.elastic_client import ElasticClient from tracardi.service.storage.factory import storage_manager from tracardi.domain.storage_result import StorageResult from tracardi.service.storage.index import resources
33.72973
101
0.659455
from tracardi.service.storage.elastic_client import ElasticClient from tracardi.service.storage.factory import storage_manager from tracardi.domain.storage_result import StorageResult from tracardi.service.storage.index import resources async def load_all(start: int = 0, limit: int = 100) -> StorageResult: return...
939
0
69
40de51363eddccc28fd1673164d753ebb4fb9c63
2,505
py
Python
python/yugabyte_db_thirdparty/yb_build_thirdparty_main.py
ttyusupov/yugabyte-db-thirdparty
9680123cfe2d7d623e5ba2e4ed5cfbc42dbd5850
[ "CC-BY-3.0" ]
null
null
null
python/yugabyte_db_thirdparty/yb_build_thirdparty_main.py
ttyusupov/yugabyte-db-thirdparty
9680123cfe2d7d623e5ba2e4ed5cfbc42dbd5850
[ "CC-BY-3.0" ]
null
null
null
python/yugabyte_db_thirdparty/yb_build_thirdparty_main.py
ttyusupov/yugabyte-db-thirdparty
9680123cfe2d7d623e5ba2e4ed5cfbc42dbd5850
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Yugabyte, 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.851351
99
0.741317
#!/usr/bin/env python3 # Copyright (c) Yugabyte, 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...
1,305
0
23
f9230cc2630f651c77fc85d50504908444d0686f
1,195
py
Python
wikimon_bot/views/google.py
facerecog/wikimon
212be56277f711ac145972254b3fead3f92e949c
[ "MIT" ]
7
2016-05-06T12:52:20.000Z
2018-02-13T15:48:15.000Z
wikimon_bot/views/google.py
facerecog/wikimon
212be56277f711ac145972254b3fead3f92e949c
[ "MIT" ]
null
null
null
wikimon_bot/views/google.py
facerecog/wikimon
212be56277f711ac145972254b3fead3f92e949c
[ "MIT" ]
3
2017-01-14T14:25:01.000Z
2021-03-11T21:01:36.000Z
""" GoogleViews: /s(earch) <term> /i(mage) <term> youtube urls """ from ..utils import media_sender import requests, urllib
38.548387
114
0.645188
""" GoogleViews: /s(earch) <term> /i(mage) <term> youtube urls """ from ..utils import media_sender import requests, urllib class GoogleViews(): def __init__(self, interface_layer): self.image_sender = media_sender.ImageSender(interface_layer) self.video_sender = media_sender.Vide...
951
-1
103
d3d28355849fba837e5d0a48bc1a5239d87df296
4,355
py
Python
seisflows/solver/specfem3d.py
umairbinwaheed/seisflows
b28cd89e1b37875c2e226f30a8c14d788fa7798f
[ "BSD-2-Clause" ]
2
2021-05-12T03:28:31.000Z
2021-12-08T14:43:20.000Z
seisflows/solver/specfem3d.py
umairbinwaheed/seisflows
b28cd89e1b37875c2e226f30a8c14d788fa7798f
[ "BSD-2-Clause" ]
null
null
null
seisflows/solver/specfem3d.py
umairbinwaheed/seisflows
b28cd89e1b37875c2e226f30a8c14d788fa7798f
[ "BSD-2-Clause" ]
1
2021-12-08T14:43:49.000Z
2021-12-08T14:43:49.000Z
import subprocess from glob import glob from os.path import join import numpy as np import seisflows.seistools.specfem3d as solvertools from seisflows.seistools.shared import getpar, setpar from seisflows.tools import unix from seisflows.tools.code import exists from seisflows.tools.config import SeisflowsParameter...
25.617647
80
0.589208
import subprocess from glob import glob from os.path import join import numpy as np import seisflows.seistools.specfem3d as solvertools from seisflows.seistools.shared import getpar, setpar from seisflows.tools import unix from seisflows.tools.code import exists from seisflows.tools.config import SeisflowsParameter...
650
0
185
d53e3296d343fcbd5e9aedf582b891457907c88c
4,197
py
Python
tensormonk/loss/utils.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
29
2018-07-06T23:57:23.000Z
2022-03-08T20:38:57.000Z
tensormonk/loss/utils.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
3
2018-12-14T22:21:26.000Z
2020-06-19T02:13:34.000Z
tensormonk/loss/utils.py
Tensor46/TensorMONK
67617d3fdf8fde072ba9cab42de7d67c79b17494
[ "MIT" ]
8
2018-07-06T23:58:03.000Z
2021-04-12T01:35:54.000Z
""" TensorMONK :: loss :: utils """ __all__ = ["compute_n_embedding", "compute_top15", "one_hot", "one_hot_idx", "hard_negative_mask"] import torch import numpy as np @torch.no_grad() @torch.no_grad() @torch.no_grad() @torch.no_grad() def hard_negative_mask(prediction: torch.Tensor, ...
39.59434
79
0.630212
""" TensorMONK :: loss :: utils """ __all__ = ["compute_n_embedding", "compute_top15", "one_hot", "one_hot_idx", "hard_negative_mask"] import torch import numpy as np def compute_n_embedding(tensor_size: tuple): if isinstance(tensor_size, list) or isinstance(tensor_size, tuple): if len(tensor...
1,101
0
89
bfafc368176b6513edfd8f2cc1521fbf61f656f2
3,885
py
Python
qiskit/ignis/verification/entanglement/linear.py
yehuda-naveh/qiskit-ignis-1
26da6a2173ea3cc46a11753746b6b83c68216c1f
[ "Apache-2.0" ]
null
null
null
qiskit/ignis/verification/entanglement/linear.py
yehuda-naveh/qiskit-ignis-1
26da6a2173ea3cc46a11753746b6b83c68216c1f
[ "Apache-2.0" ]
null
null
null
qiskit/ignis/verification/entanglement/linear.py
yehuda-naveh/qiskit-ignis-1
26da6a2173ea3cc46a11753746b6b83c68216c1f
[ "Apache-2.0" ]
null
null
null
''' The module linear.py provides the linear preparation analogous of parallelize.py. ''' from qiskit import * from qiskit.circuit import Parameter def get_measurement_circ(n, qregname, cregname, full_measurement=True): ''' Creates a measurement circuit that can toggle between measuring the first control...
27.359155
72
0.646332
''' The module linear.py provides the linear preparation analogous of parallelize.py. ''' from qiskit import * from qiskit.circuit import Parameter def get_measurement_circ(n, qregname, cregname, full_measurement=True): ''' Creates a measurement circuit that can toggle between measuring the first control...
0
0
0
b3e616c9c00524f30d047f2ab6854aa68f2005ce
8,950
py
Python
mc/db/tests/test_ent.py
aspuru-guzik-group/mission_control
bfe930e1038e9e0d6c4bb327474766e85b2190cb
[ "Apache-2.0" ]
3
2017-09-01T19:49:59.000Z
2018-06-04T10:30:01.000Z
mc/db/tests/test_ent.py
aspuru-guzik-group/mission_control
bfe930e1038e9e0d6c4bb327474766e85b2190cb
[ "Apache-2.0" ]
null
null
null
mc/db/tests/test_ent.py
aspuru-guzik-group/mission_control
bfe930e1038e9e0d6c4bb327474766e85b2190cb
[ "Apache-2.0" ]
1
2018-12-13T19:48:27.000Z
2018-12-13T19:48:27.000Z
import time import unittest import sqlalchemy as _sqla import sqlalchemy.orm as _sqla_orm from .. import models
34.423077
78
0.513296
import time import unittest import sqlalchemy as _sqla import sqlalchemy.orm as _sqla_orm from .. import models class BaseTestCase(unittest.TestCase): def setUp(self): self.engine = _sqla.create_engine('sqlite://') models.utils.Base.metadata.create_all(self.engine) self.Session = _sqla_o...
8,166
65
601
d3994b6e31abc336d878a1cd54606f301a5aaddf
1,781
py
Python
main.py
jtprogru/bad-isp-twbot
79391396694265531049bb715437b35242f5aa46
[ "WTFPL" ]
2
2020-07-17T17:05:49.000Z
2020-07-24T16:41:46.000Z
main.py
jtprog/bad-isp-twbot
79391396694265531049bb715437b35242f5aa46
[ "WTFPL" ]
1
2021-09-03T14:40:42.000Z
2021-09-03T14:40:42.000Z
main.py
jtprog/bad-isp-twbot
79391396694265531049bb715437b35242f5aa46
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # Created by JTProgru # Date: 2019-08-13 # https://jtprog.ru/ __author__ = 'jtprogru' __version__ = '0.0.1' __author_email__ = 'mail@jtprog.ru' import twitter import dotenv as d from pathlib import Path from speedtest import Speedtest import json env = d.get_variables(str(Path(__...
26.984848
111
0.66648
#!/usr/bin/env python # coding=utf-8 # Created by JTProgru # Date: 2019-08-13 # https://jtprog.ru/ __author__ = 'jtprogru' __version__ = '0.0.1' __author_email__ = 'mail@jtprog.ru' import twitter import dotenv as d from pathlib import Path from speedtest import Speedtest import json env = d.get_variables(str(Path(__...
0
0
0
e4114e3069a26efc84fae5bfd4804aeb08612c18
7,203
py
Python
mergecounts/utils/cache.py
adthrasher/merge-counts
87f41bec1c7fd3600e1fff52722ca6cc28509c0c
[ "MIT" ]
1
2022-03-10T02:09:47.000Z
2022-03-10T02:09:47.000Z
mergecounts/utils/cache.py
adthrasher/merge-counts
87f41bec1c7fd3600e1fff52722ca6cc28509c0c
[ "MIT" ]
3
2020-08-13T18:39:41.000Z
2021-06-18T15:12:21.000Z
mergecounts/utils/cache.py
adthrasher/merge-counts
87f41bec1c7fd3600e1fff52722ca6cc28509c0c
[ "MIT" ]
1
2021-02-18T16:20:58.000Z
2021-02-18T16:20:58.000Z
"""Caching utilities for the merge-counts command line tool.""" import glob import os import json import tempfile from pathlib import Path from typing import Dict, Optional from logzero import logger from . import errors CACHE_POINTER_LOCATION = Path.home() / ".mergecounts-cache" class DNAnexusFileCache: """A...
33.041284
106
0.670276
"""Caching utilities for the merge-counts command line tool.""" import glob import os import json import tempfile from pathlib import Path from typing import Dict, Optional from logzero import logger from . import errors CACHE_POINTER_LOCATION = Path.home() / ".mergecounts-cache" class DNAnexusFileCache: """A...
0
0
0
eecdfa932379a2cf4658c04955118aefa60f9289
13,522
py
Python
yahoo_surface_scraper.py
JECSand/yahoo_finance_stock_scraper
99efce789427a6bc16f874713ba43aed2e68e3ae
[ "MIT" ]
7
2018-04-11T05:30:55.000Z
2021-12-02T20:36:10.000Z
yahoo_surface_scraper.py
JECSand/yahoo_finance_stock_scraper
99efce789427a6bc16f874713ba43aed2e68e3ae
[ "MIT" ]
null
null
null
yahoo_surface_scraper.py
JECSand/yahoo_finance_stock_scraper
99efce789427a6bc16f874713ba43aed2e68e3ae
[ "MIT" ]
4
2020-07-14T21:03:02.000Z
2022-01-25T01:27:57.000Z
# Connor Sanders # 10/16/2017 # Yahoo Finance Web Scraper # Tested on python 2.7 and 3.5 # Returns a JSON File containing financial statement data for a given company or list of companies # How to use this script: # Make sure you have the PhantomJS Driver set up. If you need the manually add the path, go to...
42.25625
121
0.619139
# Connor Sanders # 10/16/2017 # Yahoo Finance Web Scraper # Tested on python 2.7 and 3.5 # Returns a JSON File containing financial statement data for a given company or list of companies # How to use this script: # Make sure you have the PhantomJS Driver set up. If you need the manually add the path, go to...
9,306
1,498
139
10967061082d22a1f1ea01e1906929512f9533e7
21,995
py
Python
src/nodes/gazebo_to_habitat_agent.py
ericchen321/ros_x_habitat
f256b62fe8dda059baaf9bad87cf53f7d769f2f9
[ "CC-BY-4.0" ]
24
2021-09-10T23:35:53.000Z
2022-03-31T18:12:20.000Z
src/nodes/gazebo_to_habitat_agent.py
ericchen321/ros_x_habitat
f256b62fe8dda059baaf9bad87cf53f7d769f2f9
[ "CC-BY-4.0" ]
4
2021-12-11T06:56:58.000Z
2022-02-23T03:05:00.000Z
src/nodes/gazebo_to_habitat_agent.py
ericchen321/ros_x_habitat
f256b62fe8dda059baaf9bad87cf53f7d769f2f9
[ "CC-BY-4.0" ]
7
2021-12-17T14:13:27.000Z
2022-03-31T16:39:28.000Z
#!/usr/bin/env python import argparse import numpy as np import rospy import message_filters from message_filters import TimeSynchronizer from ros_x_habitat.msg import PointGoalWithGPSCompass, DepthImage from sensor_msgs.msg import Image from cv_bridge import CvBridge import cv2 from PIL import Image as PILImage from n...
39.702166
96
0.586815
#!/usr/bin/env python import argparse import numpy as np import rospy import message_filters from message_filters import TimeSynchronizer from ros_x_habitat.msg import PointGoalWithGPSCompass, DepthImage from sensor_msgs.msg import Image from cv_bridge import CvBridge import cv2 from PIL import Image as PILImage from n...
1,679
0
23
c9531b3c2f83920008aaf29bed3e2590a463efbf
2,265
py
Python
src/didery/controllers/static.py
SmithSamuelM/didery
8181cd2dd2aa711d0b559acdc8ba1c7e2e8ba2fb
[ "Apache-2.0" ]
8
2018-09-07T09:26:52.000Z
2021-01-16T12:22:07.000Z
src/didery/controllers/static.py
SmithSamuelM/didery
8181cd2dd2aa711d0b559acdc8ba1c7e2e8ba2fb
[ "Apache-2.0" ]
184
2018-04-19T17:46:02.000Z
2019-05-21T19:04:30.000Z
src/didery/controllers/static.py
SmithSamuelM/didery
8181cd2dd2aa711d0b559acdc8ba1c7e2e8ba2fb
[ "Apache-2.0" ]
3
2018-09-26T19:16:30.000Z
2018-12-18T18:50:40.000Z
# ================================================== # # DASHBOARD # # ================================================== # # Author: Brady Hammond # # Created: 05/04/2018 # # Last Edited: ...
39.736842
80
0.381457
# ================================================== # # DASHBOARD # # ================================================== # # Author: Brady Hammond # # Created: 05/04/2018 # # Last Edited: ...
1,151
0
53
c72a4448e4129fda1ce176b0155b4e9ef10901e5
1,234
py
Python
app.py
jmuelbert/SciHubEVA
96c5f623d5710806d3ff224f2e6f6ba83e75de56
[ "MIT" ]
null
null
null
app.py
jmuelbert/SciHubEVA
96c5f623d5710806d3ff224f2e6f6ba83e75de56
[ "MIT" ]
5
2021-03-31T20:10:22.000Z
2022-03-12T00:54:40.000Z
app.py
jmuelbert/SciHubEVA
96c5f623d5710806d3ff224f2e6f6ba83e75de56
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import locale from PySide2.QtCore import Qt, QTranslator from PySide2.QtGui import QGuiApplication, QIcon, QFont from scihubeva.scihubeva_dialog import SciHubEVADialog from scihubeva.utils import * import scihubeva.resources if hasattr(Qt, 'AA_Enab...
29.380952
101
0.73906
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import locale from PySide2.QtCore import Qt, QTranslator from PySide2.QtGui import QGuiApplication, QIcon, QFont from scihubeva.scihubeva_dialog import SciHubEVADialog from scihubeva.utils import * import scihubeva.resources if hasattr(Qt, 'AA_Enab...
0
0
0
718fcbeaca7ad960cba411e1d228ff504c056497
531
py
Python
hass_ci_ignore.py
mikevansighem/homeassistant
40d1c89113c9bc5ff479bc7374d077027642401b
[ "MIT" ]
1
2021-09-12T17:51:38.000Z
2021-09-12T17:51:38.000Z
hass_ci_ignore.py
mikevansighem/homeassistant
40d1c89113c9bc5ff479bc7374d077027642401b
[ "MIT" ]
54
2021-09-19T08:20:53.000Z
2022-03-28T18:22:25.000Z
hass_ci_ignore.py
mikevansighem/homeassistant
40d1c89113c9bc5ff479bc7374d077027642401b
[ "MIT" ]
null
null
null
# A basic script to remove any part of the configuration that is described in "hassci" #Open the file with open(r'configuration.yaml', 'r') as file: data = file.read() # Open ignore file with open('.hass_ci') as ignore_file: # Open ignore file and replace matches line by line for search_t...
27.947368
86
0.681733
# A basic script to remove any part of the configuration that is described in "hassci" #Open the file with open(r'configuration.yaml', 'r') as file: data = file.read() # Open ignore file with open('.hass_ci') as ignore_file: # Open ignore file and replace matches line by line for search_t...
0
0
0
3189f2abd2559448f78a1d712c311f6a95570583
16,948
py
Python
test/urlobject_test.py
vartagg/urlblocks-new
b6c34ea9cd46ead2b0b1e5479b5b69e3a781cbfe
[ "Unlicense" ]
null
null
null
test/urlobject_test.py
vartagg/urlblocks-new
b6c34ea9cd46ead2b0b1e5479b5b69e3a781cbfe
[ "Unlicense" ]
null
null
null
test/urlobject_test.py
vartagg/urlblocks-new
b6c34ea9cd46ead2b0b1e5479b5b69e3a781cbfe
[ "Unlicense" ]
null
null
null
import platform import doctest import unittest from nose.tools import assert_raises from urlblocks import urlblocks as urlblocks_module from urlblocks import URL from urlblocks.six import text_type, u, print_ def dictsort(d): """``repr()`` a dictionary with sorted key/value pairs, for doctests.""" items = so...
44.020779
108
0.66645
import platform import doctest import unittest from nose.tools import assert_raises from urlblocks import urlblocks as urlblocks_module from urlblocks import URL from urlblocks.six import text_type, u, print_ def dictsort(d): """``repr()`` a dictionary with sorted key/value pairs, for doctests.""" items = so...
13,827
630
2,077
aaf71fd1397197fd34773671ae32662cb1dc84cb
7,974
py
Python
toapi/api.py
davidthewatson/toapi
5f77ffa7a53692bcf9f14919a1aa435bf0152bd4
[ "Apache-2.0" ]
null
null
null
toapi/api.py
davidthewatson/toapi
5f77ffa7a53692bcf9f14919a1aa435bf0152bd4
[ "Apache-2.0" ]
null
null
null
toapi/api.py
davidthewatson/toapi
5f77ffa7a53692bcf9f14919a1aa435bf0152bd4
[ "Apache-2.0" ]
null
null
null
import json import re from collections import OrderedDict, defaultdict import cchardet import requests from colorama import Fore from selenium import webdriver from toapi.cache import CacheSetting from toapi.log import logger from toapi.server import Server from toapi.settings import Settings from toapi.storage impor...
40.272727
113
0.561951
import json import re from collections import OrderedDict, defaultdict import cchardet import requests from colorama import Fore from selenium import webdriver from toapi.cache import CacheSetting from toapi.log import logger from toapi.server import Server from toapi.settings import Settings from toapi.storage impor...
1,519
0
81
f05f80d6e34a297a39e3d791591e9a691c17b6ec
572
py
Python
src/Chapter11/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter11/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
src/Chapter11/Exercise2.py
djeada/Python-For-Informatics
fc93cb60b6c81ee98b82b76934d39930a0c323d0
[ "MIT" ]
null
null
null
""" Exercise 2 Write a program to look for lines of the form New Revision: 39772 And extract the number from each of the lines using a regular expression and the findall() method. Compute the average of the numbers and print out the average. Enter file:mbox.txt 38549.7949721 Enter file:mbox-short.txt 39756.9259259 ""...
21.185185
76
0.701049
""" Exercise 2 Write a program to look for lines of the form New Revision: 39772 And extract the number from each of the lines using a regular expression and the findall() method. Compute the average of the numbers and print out the average. Enter file:mbox.txt 38549.7949721 Enter file:mbox-short.txt 39756.9259259 ""...
0
0
0
6dfb198298ffa10c994027b9895b4b8eb50d0e0c
11,218
py
Python
circle_vp.py
Prajwal-Prathiksh/Panel_Methods
387275a2791f616e5cd53e1713c409acc47f8f0a
[ "MIT" ]
null
null
null
circle_vp.py
Prajwal-Prathiksh/Panel_Methods
387275a2791f616e5cd53e1713c409acc47f8f0a
[ "MIT" ]
null
null
null
circle_vp.py
Prajwal-Prathiksh/Panel_Methods
387275a2791f616e5cd53e1713c409acc47f8f0a
[ "MIT" ]
null
null
null
########################################################################### # Imports ########################################################################### # Standard library imports import argparse import time as time import numpy as np import math as math import matplotlib.pyplot as plt from matplotlib import p...
30.734247
83
0.584953
########################################################################### # Imports ########################################################################### # Standard library imports import argparse import time as time import numpy as np import math as math import matplotlib.pyplot as plt from matplotlib import p...
1,251
0
23
e9be790eafe58cf7aaa0017314b055dd2bdf4ea4
79
py
Python
core/devices/__init__.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
core/devices/__init__.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
core/devices/__init__.py
kisonho/torchmanager
ac01c61a132238bc0d39bf2173dfd37f44dbbf30
[ "BSD-2-Clause" ]
null
null
null
from .devices import data_parallel, empty_cache, find, move_to_device, CPU, GPU
79
79
0.822785
from .devices import data_parallel, empty_cache, find, move_to_device, CPU, GPU
0
0
0
30d5b7f4cd7dad7609afa473bd961873ddbb194d
4,674
py
Python
msldap/authentication/kerberos/multiplexor.py
blshkv/msldap
435601df85faa407793555ed0da582aa709e3be1
[ "MIT" ]
1
2021-11-08T09:11:22.000Z
2021-11-08T09:11:22.000Z
msldap/authentication/kerberos/multiplexor.py
blshkv/msldap
435601df85faa407793555ed0da582aa709e3be1
[ "MIT" ]
null
null
null
msldap/authentication/kerberos/multiplexor.py
blshkv/msldap
435601df85faa407793555ed0da582aa709e3be1
[ "MIT" ]
null
null
null
## ## ## Interface to allow remote kerberos authentication via Multiplexor ## ## ## ## ## ## TODO: RPC auth type is not implemented or tested!!!! from msldap.authentication.spnego.asn1_structs import KRB5Token from msldap.authentication.kerberos.gssapi import get_gssapi, GSSWrapToken, KRB5_MECH_INDEP_TOKEN from min...
29.961538
116
0.735344
## ## ## Interface to allow remote kerberos authentication via Multiplexor ## ## ## ## ## ## TODO: RPC auth type is not implemented or tested!!!! from msldap.authentication.spnego.asn1_structs import KRB5Token from msldap.authentication.kerberos.gssapi import get_gssapi, GSSWrapToken, KRB5_MECH_INDEP_TOKEN from min...
2,505
1,388
46
38fce3bd5985202b03c539465a04b5355411b99c
6,739
py
Python
plugins/modules/firewall_rule.py
tnaganawa/ansible-collections-tungstenfabric
548f5233e7ffb9dd19373963ecd79765c6cdd1db
[ "Apache-2.0" ]
2
2020-10-26T10:49:19.000Z
2021-02-04T10:02:40.000Z
plugins/modules/firewall_rule.py
tnaganawa/ansible-collections-tungstenfabric
548f5233e7ffb9dd19373963ecd79765c6cdd1db
[ "Apache-2.0" ]
3
2021-02-04T11:40:31.000Z
2021-02-13T18:27:18.000Z
plugins/modules/firewall_rule.py
tnaganawa/ansible-collections-tungstenfabric
548f5233e7ffb9dd19373963ecd79765c6cdd1db
[ "Apache-2.0" ]
1
2021-02-04T10:02:46.000Z
2021-02-04T10:02:46.000Z
#!/usr/bin/python # Copyright: (c) 2020, Tatsuya Naganawa <tatsuyan201101@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- mo...
30.493213
150
0.630657
#!/usr/bin/python # Copyright: (c) 2020, Tatsuya Naganawa <tatsuyan201101@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- mo...
4,462
0
46
98c88d01d58e03405eb7ae9a6afce512ca4d2ba3
3,404
py
Python
tests/unit/bokeh/models/test_axes.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_axes.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
tests/unit/bokeh/models/test_axes.py
g-parki/bokeh
664ead5306bba64609e734d4105c8aa8cfb76d81
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
38.247191
86
0.439189
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
1,483
0
161
a478619e6914d1e1305e3507e52c36a7ab9360ac
887
py
Python
swarms/test/test_results.py
swarms/python-client
d5b39b5304143266da48c9900c1b605e37e96912
[ "MIT" ]
5
2017-11-07T19:34:57.000Z
2017-11-15T12:07:29.000Z
swarms/test/test_results.py
swarms/python-client
d5b39b5304143266da48c9900c1b605e37e96912
[ "MIT" ]
5
2017-11-22T12:24:37.000Z
2018-02-10T15:31:21.000Z
swarms/test/test_results.py
swarms/python-client
d5b39b5304143266da48c9900c1b605e37e96912
[ "MIT" ]
2
2018-02-10T15:14:10.000Z
2018-04-17T08:11:52.000Z
import unittest from ..sdk import Client, Results from . import config if __name__ == '__main__': unittest.main()
22.175
70
0.461105
import unittest from ..sdk import Client, Results from . import config class ResultsTest(unittest.TestCase): client = Client(config.base_url, config.username, config.password) results = Results(client) def test_approve(self): self.results.approve({ "_links": { "approve...
545
198
23
51d11f001a852af14d3dbe85f4af50ccec0ddb61
343
py
Python
tests/ozpiwc/test_model_access.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2018-10-05T17:03:01.000Z
2018-10-05T17:03:01.000Z
tests/ozpiwc/test_model_access.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
1
2017-01-06T19:20:32.000Z
2017-01-06T19:20:32.000Z
tests/ozpiwc/test_model_access.py
emosher/ozp-backend
d31d00bb8a28a8d0c999813f616b398f41516244
[ "Apache-2.0" ]
7
2016-12-16T15:42:05.000Z
2020-09-05T01:11:27.000Z
from django.test import TestCase from django.test import override_settings @override_settings(ES_ENABLED=False)
19.055556
61
0.688047
from django.test import TestCase from django.test import override_settings @override_settings(ES_ENABLED=False) class DataTest(TestCase): @classmethod def setUpTestData(cls): pass def setUp(self): pass def test_get_all_keys(self): # model_access.get_all_keys('wsmith') # fla...
105
102
22
de655777ca8f445cac9d75d319feab564d472995
4,942
py
Python
src/core/utils.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
null
null
null
src/core/utils.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
1
2021-05-07T06:26:16.000Z
2021-05-07T06:26:16.000Z
src/core/utils.py
Viewly/alpha-2
6b6d827197489164d8c4bde4f4d591dcec5a2163
[ "MIT" ]
null
null
null
import hashlib import os import shutil from concurrent.futures import ThreadPoolExecutor, as_completed from contextlib import suppress from functools import wraps from typing import List, Any, Union from funcy import contextmanager from toolz import keyfilter logger = None def ensure_directory(directory, force_rec...
26.427807
89
0.630716
import hashlib import os import shutil from concurrent.futures import ThreadPoolExecutor, as_completed from contextlib import suppress from functools import wraps from typing import List, Any, Union from funcy import contextmanager from toolz import keyfilter logger = None def sha1sum(filename): BLOCKSIZE = 655...
954
0
184
b5426ce03c25d2c3db0c7b7a3b82a01b4e548c15
2,495
py
Python
refactor/query_testing_back_end/subtle/defaults.py
joschout/tilde
1403b50842b83f2edd6b16b1fbe24b9bec2d0048
[ "Apache-2.0" ]
16
2019-03-06T06:11:33.000Z
2022-02-07T21:30:25.000Z
refactor/query_testing_back_end/subtle/defaults.py
joschout/tilde
1403b50842b83f2edd6b16b1fbe24b9bec2d0048
[ "Apache-2.0" ]
4
2019-10-08T14:48:23.000Z
2020-03-26T00:31:57.000Z
refactor/query_testing_back_end/subtle/defaults.py
krishnangovindraj/tilde
5243a02d92f375d56ffc49ab8c3d1a87e31e99b9
[ "Apache-2.0" ]
4
2019-08-14T05:40:47.000Z
2020-08-05T13:21:16.000Z
from refactor.default_interface import DefaultHandler from refactor.tilde_essentials.example import Example from refactor.tilde_essentials.leaf_strategy import LeafBuilder from refactor.tilde_essentials.splitter import Splitter from refactor.tilde_essentials.stop_criterion import StopCriterion from refactor.tilde_essen...
51.979167
111
0.771543
from refactor.default_interface import DefaultHandler from refactor.tilde_essentials.example import Example from refactor.tilde_essentials.leaf_strategy import LeafBuilder from refactor.tilde_essentials.splitter import Splitter from refactor.tilde_essentials.stop_criterion import StopCriterion from refactor.tilde_essen...
1,572
157
23
c9b09a107304ec5a2d9596197ed6710b0ee8f7e4
998
py
Python
identixone/api/utility/v1/utility.py
identixone/identixone-python
232e5dfcf98ebe91a3ed433a265be161ee965a5e
[ "MIT" ]
2
2019-03-07T11:57:27.000Z
2022-01-21T20:24:01.000Z
identixone/api/utility/v1/utility.py
identixone/identixone-python
232e5dfcf98ebe91a3ed433a265be161ee965a5e
[ "MIT" ]
215
2019-02-18T15:28:09.000Z
2022-03-31T18:47:03.000Z
identixone/api/utility/v1/utility.py
identixone/identixone-python
232e5dfcf98ebe91a3ed433a265be161ee965a5e
[ "MIT" ]
1
2019-06-19T11:07:49.000Z
2019-06-19T11:07:49.000Z
from identixone.base.choices import Conf
32.193548
76
0.618236
from identixone.base.choices import Conf class Utility(object): def __init__(self, http_client): self.http_client = http_client def asm(self, photo): files = {'photo': photo} return self.http_client.post('v1/utility/asm/', files=files) def liveness(self, photo): files = ...
797
1
158
574ec9c1bd4120bbf01ba6b4f5112f48fc81ba49
7,059
py
Python
tools/convert_settings.py
sharvil/basis
58c4c88c69d42ed00082f9b3a9b032603caf5f06
[ "Apache-2.0" ]
2
2016-04-25T06:48:53.000Z
2021-05-06T20:24:49.000Z
tools/convert_settings.py
sharvil/basis
58c4c88c69d42ed00082f9b3a9b032603caf5f06
[ "Apache-2.0" ]
null
null
null
tools/convert_settings.py
sharvil/basis
58c4c88c69d42ed00082f9b3a9b032603caf5f06
[ "Apache-2.0" ]
5
2015-01-21T05:23:29.000Z
2019-04-05T00:16:53.000Z
#!/usr/bin/python import argparse import collections import json import math import os import struct import sys ANGLE_FACTOR = 2 * math.pi / 40000.0 SPEED_FACTOR = 1 / 1000.0 if __name__ == '__main__': main()
42.017857
125
0.702791
#!/usr/bin/python import argparse import collections import json import math import os import struct import sys ANGLE_FACTOR = 2 * math.pi / 40000.0 SPEED_FACTOR = 1 / 1000.0 def parseConfig(settingsFile): settings = {} curSection = None lines = [x.strip() for x in settingsFile.readlines()] for line in lines...
6,730
0
115
a197e0534d286fb5df7f6e049547cd6674633bc9
7,596
py
Python
.kokoro/trampoline_windows.py
directionless/google-cloud-ruby
bb7c09406b23de5223897d92edc63c21cd44f471
[ "Apache-2.0" ]
8
2021-04-24T02:35:09.000Z
2022-01-29T03:05:45.000Z
.kokoro/trampoline_windows.py
directionless/google-cloud-ruby
bb7c09406b23de5223897d92edc63c21cd44f471
[ "Apache-2.0" ]
1
2019-10-18T15:31:34.000Z
2019-10-18T17:25:07.000Z
.kokoro/trampoline_windows.py
directionless/google-cloud-ruby
bb7c09406b23de5223897d92edc63c21cd44f471
[ "Apache-2.0" ]
3
2017-07-20T20:10:34.000Z
2022-03-31T03:17:01.000Z
#!/usr/env/bin python3 # Copyright 2017 Google 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 ...
42.674157
117
0.640864
#!/usr/env/bin python3 # Copyright 2017 Google 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 ...
3,746
0
185