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
b759e7bd31af70be7eea8575585cafd0450c2cfe
1,310
py
Python
app/app11_plos_HumanEKC/prepData2.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
1
2020-05-30T06:01:50.000Z
2020-05-30T06:01:50.000Z
app/app11_plos_HumanEKC/prepData2.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
null
null
null
app/app11_plos_HumanEKC/prepData2.py
ameenetemady/DeepPep
121826309667f1290fa1121746a2992943d0927b
[ "Apache-2.0" ]
1
2019-10-20T21:11:48.000Z
2019-10-20T21:11:48.000Z
# Prerequisite: directories for "in_strProtRefsDir" and "sparseData2", should not contain any ".txt" file # Output: under sparseData2 directory: target.csv, metaInfo.csv, *.txt import sys import os sys.path.append('../..') import prepLib in_strFastaFilename = '{!s}/data/protein/plos_HumanEKC/HumanEKC_uniprot-reviewed_...
52.4
137
0.816031
# Prerequisite: directories for "in_strProtRefsDir" and "sparseData2", should not contain any ".txt" file # Output: under sparseData2 directory: target.csv, metaInfo.csv, *.txt import sys import os sys.path.append('../..') import prepLib in_strFastaFilename = '{!s}/data/protein/plos_HumanEKC/HumanEKC_uniprot-reviewed_...
0
0
0
2c97c0f192d433d52d140b286b27d5678d5f5e29
10,138
py
Python
tests/utils/test_gmm_utils.py
Prithwijit-Chak/simpeg
d93145d768b5512621cdd75566b4a8175fee9ed3
[ "MIT" ]
358
2015-03-11T05:48:41.000Z
2022-03-26T02:04:12.000Z
tests/utils/test_gmm_utils.py
thast/simpeg
8021082b8b53f3c08fa87fc085547bdd56437c6b
[ "MIT" ]
885
2015-01-19T09:23:48.000Z
2022-03-29T12:08:34.000Z
tests/utils/test_gmm_utils.py
thast/simpeg
8021082b8b53f3c08fa87fc085547bdd56437c6b
[ "MIT" ]
214
2015-03-11T05:48:43.000Z
2022-03-02T01:05:11.000Z
import numpy as np import unittest import discretize from SimPEG.maps import Wires from SimPEG.utils import ( mkvc, WeightedGaussianMixture, GaussianMixtureWithPrior, ) from scipy.stats import norm, multivariate_normal if __name__ == "__main__": unittest.main()
35.823322
96
0.56451
import numpy as np import unittest import discretize from SimPEG.maps import Wires from SimPEG.utils import ( mkvc, WeightedGaussianMixture, GaussianMixtureWithPrior, ) from scipy.stats import norm, multivariate_normal class TestGMMs(unittest.TestCase): def setUp(self): np.random.seed(518936)...
9,687
13
157
92db716832059479b2d853e09b420af4b7d94b8c
1,863
py
Python
lang/ir_env.py
aleksiy325/compiler
c8d135709907e31f671061da25a76b3d64b67292
[ "MIT" ]
null
null
null
lang/ir_env.py
aleksiy325/compiler
c8d135709907e31f671061da25a76b3d64b67292
[ "MIT" ]
null
null
null
lang/ir_env.py
aleksiy325/compiler
c8d135709907e31f671061da25a76b3d64b67292
[ "MIT" ]
null
null
null
from llvmlite import ir, binding from lang.scope import Scope from collections import defaultdict
35.826923
73
0.657005
from llvmlite import ir, binding from lang.scope import Scope from collections import defaultdict class IREnvironment(): def __init__(self): self.functions = {} self.binding = binding self.binding.initialize() self.binding.initialize_native_target() self.binding.initialize_...
1,579
1
184
ea221f0eca0e44612cb7425eb660c95162fd9ac7
3,176
py
Python
wagtail/embeds/rich_text.py
wlcrs/wagtail
8afbc6c3eccef9eb0f09ed56c54cd36779451882
[ "BSD-3-Clause" ]
3
2019-05-14T13:43:08.000Z
2021-11-09T11:27:18.000Z
wagtail/embeds/rich_text.py
denza/wagtail
3939397850f2c73d3f960cea5cc9c2cfae2d005d
[ "BSD-3-Clause" ]
13
2019-03-25T19:57:35.000Z
2019-12-28T19:25:23.000Z
wagtail/embeds/rich_text.py
denza/wagtail
3939397850f2c73d3f960cea5cc9c2cfae2d005d
[ "BSD-3-Clause" ]
1
2021-08-13T15:38:43.000Z
2021-08-13T15:38:43.000Z
from draftjs_exporter.dom import DOM from wagtail.admin.rich_text.converters import editor_html from wagtail.admin.rich_text.converters.contentstate_models import Entity from wagtail.admin.rich_text.converters.html_to_contentstate import AtomicBlockEntityElementHandler from wagtail.embeds import embeds, format from wa...
31.445545
99
0.662469
from draftjs_exporter.dom import DOM from wagtail.admin.rich_text.converters import editor_html from wagtail.admin.rich_text.converters.contentstate_models import Entity from wagtail.admin.rich_text.converters.html_to_contentstate import AtomicBlockEntityElementHandler from wagtail.embeds import embeds, format from wa...
569
0
26
1e5e1b379eece7a8be5749fbe67ee5b0d26fada8
332
py
Python
exercises/ja/exc_01_03_02.py
YanaPalacheva/spacy-course
59975f7348a601532303be91474d75d02d0540ef
[ "MIT" ]
1
2021-12-30T06:40:11.000Z
2021-12-30T06:40:11.000Z
exercises/ja/exc_01_03_02.py
YanaPalacheva/spacy-course
59975f7348a601532303be91474d75d02d0540ef
[ "MIT" ]
null
null
null
exercises/ja/exc_01_03_02.py
YanaPalacheva/spacy-course
59975f7348a601532303be91474d75d02d0540ef
[ "MIT" ]
1
2020-06-08T13:26:06.000Z
2020-06-08T13:26:06.000Z
# Englishクラスをインポートし、nlpオブジェクトを作成 from ____ import ____ nlp = ____ # テキストを処理 doc = ____("I like tree kangaroos and narwhals.") # 「tree kangaroors」のスライスを選択 tree_kangaroos = ____ print(tree_kangaroos.text) # 「tree kangaroos and narwhals」のスライスを選択(「.」は含まない) tree_kangaroos_and_narwhals = ____ print(tree_kangaroos_and_nar...
20.75
49
0.795181
# Englishクラスをインポートし、nlpオブジェクトを作成 from ____ import ____ nlp = ____ # テキストを処理 doc = ____("I like tree kangaroos and narwhals.") # 「tree kangaroors」のスライスを選択 tree_kangaroos = ____ print(tree_kangaroos.text) # 「tree kangaroos and narwhals」のスライスを選択(「.」は含まない) tree_kangaroos_and_narwhals = ____ print(tree_kangaroos_and_nar...
0
0
0
268df34dd6cb7ca7216ce4dfd7e43748131043eb
10,178
py
Python
causal_world/task_generators/experimenting.py
LukasKapp-Schwoerer/CausalWorld
20d2bbfe147ead64041bde5f4448a29780218f6c
[ "MIT" ]
null
null
null
causal_world/task_generators/experimenting.py
LukasKapp-Schwoerer/CausalWorld
20d2bbfe147ead64041bde5f4448a29780218f6c
[ "MIT" ]
null
null
null
causal_world/task_generators/experimenting.py
LukasKapp-Schwoerer/CausalWorld
20d2bbfe147ead64041bde5f4448a29780218f6c
[ "MIT" ]
null
null
null
from causal_world.task_generators.base_task import BaseTask import numpy as np
45.641256
159
0.562782
from causal_world.task_generators.base_task import BaseTask import numpy as np class ExperimentingTaskGenerator(BaseTask): def __init__(self, variables_space='space_a', fractional_reward_weight=0, dense_reward_weights=np.array([0,0,0,0,0,0,0,0]), activate_sparse_...
624
9,447
23
abdf9913bb8e4a3e540e3afa3bc655a6aac7779e
4,078
py
Python
telegram_ecommerce/tamplates/products.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
10
2020-11-20T20:55:52.000Z
2022-02-10T20:25:45.000Z
telegram_ecommerce/tamplates/products.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
1
2022-02-16T10:28:18.000Z
2022-02-16T10:35:31.000Z
telegram_ecommerce/tamplates/products.py
Anonylions/telegram_ecommerce
f5382886bbebf607c735e2f451774c56df8d6011
[ "MIT" ]
8
2021-05-01T01:13:09.000Z
2022-03-13T14:00:01.000Z
from telegram import InputMediaPhoto from ..language import get_text from ..database.query import count_occurrence_of_specified_rating from .buttons import ( get_list_of_buttons, tamplate_for_show_a_list_of_products, tamplate_for_show_a_detailed_product)
28.921986
78
0.664787
from telegram import InputMediaPhoto from ..language import get_text from ..database.query import count_occurrence_of_specified_rating from .buttons import ( get_list_of_buttons, tamplate_for_show_a_list_of_products, tamplate_for_show_a_detailed_product) class Product(): def __init__( self, ...
3,357
2
434
c51070e21a3ea544b20c010d1a0a301c1ee793fa
5,524
py
Python
sequana/iotools.py
ddesvillechabrol/sequana
c92d6071e782df78566fffd15ad619c8c3df6fe3
[ "BSD-3-Clause" ]
null
null
null
sequana/iotools.py
ddesvillechabrol/sequana
c92d6071e782df78566fffd15ad619c8c3df6fe3
[ "BSD-3-Clause" ]
null
null
null
sequana/iotools.py
ddesvillechabrol/sequana
c92d6071e782df78566fffd15ad619c8c3df6fe3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016-2017 - Sequana Development Team # # File author(s): # Thomas Cokelaer <thomas.cokelaer@pasteur.fr> # # Distributed under the terms of the 3-clause BSD license. # The full license is in the LICENSE file, distributed with t...
32.304094
84
0.56336
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016-2017 - Sequana Development Team # # File author(s): # Thomas Cokelaer <thomas.cokelaer@pasteur.fr> # # Distributed under the terms of the 3-clause BSD license. # The full license is in the LICENSE file, distributed with t...
773
0
54
fb65b58ba30ff18957a19ea60f05ec0892aff289
4,628
py
Python
examples/websocket/tests.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
1,410
2015-01-02T14:55:07.000Z
2022-03-28T17:22:06.000Z
examples/websocket/tests.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
194
2015-01-22T06:18:24.000Z
2020-10-20T21:21:58.000Z
examples/websocket/tests.py
PyCN/pulsar
fee44e871954aa6ca36d00bb5a3739abfdb89b26
[ "BSD-3-Clause" ]
168
2015-01-31T10:29:55.000Z
2022-03-14T10:22:24.000Z
'''Tests the websocket middleware in pulsar.apps.ws.''' import unittest import asyncio from pulsar.api import send from pulsar.apps.ws import WebSocket, WS from pulsar.apps.http import HttpClient from pulsar.apps.test import run_test_server from examples.websocket.manage import server
33.294964
74
0.612576
'''Tests the websocket middleware in pulsar.apps.ws.''' import unittest import asyncio from pulsar.api import send from pulsar.apps.ws import WebSocket, WS from pulsar.apps.http import HttpClient from pulsar.apps.test import run_test_server from examples.websocket.manage import server class Echo(WS): def __ini...
3,740
390
208
361a95a9d55113478f6cb1aacfcbe892d796532c
3,217
py
Python
app/main/address_ctlr.py
bvbgrad/betterJob
d54962d31eafde428fa7309c8bf5ac238bf6a640
[ "MIT" ]
null
null
null
app/main/address_ctlr.py
bvbgrad/betterJob
d54962d31eafde428fa7309c8bf5ac238bf6a640
[ "MIT" ]
null
null
null
app/main/address_ctlr.py
bvbgrad/betterJob
d54962d31eafde428fa7309c8bf5ac238bf6a640
[ "MIT" ]
null
null
null
""" """ import app.utils6L.utils6L as utils import logging import os import PySimpleGUI as sg from app.main.views import view_create_link_address from app.model import db_session from app.model.Company import Address, Company from PySimpleGUI.PySimpleGUI import popup_scrolled logger_name = os.getenv("LOGGER_NAME")...
31.23301
79
0.632577
""" """ import app.utils6L.utils6L as utils import logging import os import PySimpleGUI as sg from app.main.views import view_create_link_address from app.model import db_session from app.model.Company import Address, Company from PySimpleGUI.PySimpleGUI import popup_scrolled logger_name = os.getenv("LOGGER_NAME")...
2,653
0
88
f71a4b33d3f34e4911b2fce2af6caffbdfbb62bf
1,326
py
Python
Assessments/count-contained-permutations.py
SaumyaRai2010/algoexpert-data-structures-algorithms
bcafd8d7798661bf86c2d6234221d764c68fc19f
[ "MIT" ]
2
2021-08-17T14:13:01.000Z
2021-08-17T14:13:16.000Z
Assessments/count-contained-permutations.py
SaumyaRai2010/algoexpert-data-structures-algorithms
bcafd8d7798661bf86c2d6234221d764c68fc19f
[ "MIT" ]
null
null
null
Assessments/count-contained-permutations.py
SaumyaRai2010/algoexpert-data-structures-algorithms
bcafd8d7798661bf86c2d6234221d764c68fc19f
[ "MIT" ]
null
null
null
# COUNT CONTAINED PERMUTATIONS # O(M * U + N) time and O(U) space, where M -> length of big string, # U -> number of unique characters in small string, N -> length # of small string. # U is actually a constant since it can't be greater than 26. and # M > N, so M will dissolve N # So, modified complexities: # O(M) ti...
26
68
0.684766
# COUNT CONTAINED PERMUTATIONS # O(M * U + N) time and O(U) space, where M -> length of big string, # U -> number of unique characters in small string, N -> length # of small string. # U is actually a constant since it can't be greater than 26. and # M > N, so M will dissolve N # So, modified complexities: # O(M) ti...
917
0
45
014ea7ee19fe30e5e999c1aec260c631eca49b6a
372
py
Python
rblxpy/__init__.py
INfoUpgraders/rblxpy
481af14bb7a8bc349c635b865afa1c113097b3a7
[ "MIT" ]
null
null
null
rblxpy/__init__.py
INfoUpgraders/rblxpy
481af14bb7a8bc349c635b865afa1c113097b3a7
[ "MIT" ]
null
null
null
rblxpy/__init__.py
INfoUpgraders/rblxpy
481af14bb7a8bc349c635b865afa1c113097b3a7
[ "MIT" ]
null
null
null
import urllib.request, json print(Users.get_user(Users("INfoUpgradersYT")))
26.571429
116
0.669355
import urllib.request, json class Users: def __init__(self, username): self.username = username def get_user(self): with urllib.request.urlopen(f"http://api.roblox.com/users/get-by-username?username={self.username}") as url: data = json.loads(url.read().decode()) return da...
227
-9
77
4ac0d9b1f7062d530a2af91182823f4011c59b45
1,996
py
Python
torch/distributions/pareto.py
wenhaopeter/read_pytorch_code
491f989cd918cf08874dd4f671fb7f0142a0bc4f
[ "Intel", "X11" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
torch/distributions/pareto.py
wenhaopeter/read_pytorch_code
491f989cd918cf08874dd4f671fb7f0142a0bc4f
[ "Intel", "X11" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
torch/distributions/pareto.py
wenhaopeter/read_pytorch_code
491f989cd918cf08874dd4f671fb7f0142a0bc4f
[ "Intel", "X11" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
from torch.distributions import constraints from torch.distributions.exponential import Exponential from torch.distributions.transformed_distribution import TransformedDistribution from torch.distributions.transforms import AffineTransform, ExpTransform from torch.distributions.utils import broadcast_all class Pareto...
36.962963
88
0.677355
from torch.distributions import constraints from torch.distributions.exponential import Exponential from torch.distributions.transformed_distribution import TransformedDistribution from torch.distributions.transforms import AffineTransform, ExpTransform from torch.distributions.utils import broadcast_all class Pareto...
933
0
159
2fefa0cc0491cc014b49bbd1dfae85fb15a3a408
1,123
py
Python
bitmovin/services/outputs/output_service.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
44
2016-12-12T17:37:23.000Z
2021-03-03T09:48:48.000Z
bitmovin/services/outputs/output_service.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
38
2017-01-09T14:45:45.000Z
2022-02-27T18:04:33.000Z
bitmovin/services/outputs/output_service.py
camberbridge/bitmovin-python
3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95
[ "Unlicense" ]
27
2017-02-02T22:49:31.000Z
2019-11-21T07:04:57.000Z
from bitmovin.bitmovin_object import BitmovinObject from .s3_output_service import S3 from .gcs_output_service import GCS from .akamai_netstorage_output_service import AkamaiNetStorage from .azure_output_service import Azure from .ftp_output_service import FTP from .sftp_output_service import SFTP from .generic_s3_outp...
43.192308
78
0.779163
from bitmovin.bitmovin_object import BitmovinObject from .s3_output_service import S3 from .gcs_output_service import GCS from .akamai_netstorage_output_service import AkamaiNetStorage from .azure_output_service import Azure from .ftp_output_service import FTP from .sftp_output_service import SFTP from .generic_s3_outp...
616
15
49
5821dd47fba75dd2ea15fba39cbd3efaf72653d2
431
py
Python
Markets/BTCMarkets/btcmarkets_fetch.py
infectiious/Pharaoh
edde36f578fec1f0621da4ef212c3b01ea7b67ed
[ "MIT" ]
null
null
null
Markets/BTCMarkets/btcmarkets_fetch.py
infectiious/Pharaoh
edde36f578fec1f0621da4ef212c3b01ea7b67ed
[ "MIT" ]
null
null
null
Markets/BTCMarkets/btcmarkets_fetch.py
infectiious/Pharaoh
edde36f578fec1f0621da4ef212c3b01ea7b67ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from btcmarkets_api import Market BTC = Market("/market/BTC/AUD/tick", "BTC") LTC = Market("/market/LTC/AUD/tick", "LTC") ETH = Market("/market/ETH/AUD/tick", "ETH") ETC = Market("/market/ETC/AUD/tick", "ETC") XRP = Market("/market/XRP/AUD/tick", "XRP") BCH = Market("/market/BCH/AUD/tick", "BCH"...
25.352941
43
0.691415
#!/usr/bin/env python3 from btcmarkets_api import Market BTC = Market("/market/BTC/AUD/tick", "BTC") LTC = Market("/market/LTC/AUD/tick", "LTC") ETH = Market("/market/ETH/AUD/tick", "ETH") ETC = Market("/market/ETC/AUD/tick", "ETC") XRP = Market("/market/XRP/AUD/tick", "XRP") BCH = Market("/market/BCH/AUD/tick", "BCH"...
0
0
0
616c3bf20e5e0eba25e4c7b33ae80a18eea27832
701
py
Python
tests/concordance_test.py
stencila/libdh
41b0dc826e6a6af3390877736185ed90b52459a2
[ "Apache-2.0" ]
2
2019-01-20T09:35:06.000Z
2019-03-29T20:29:59.000Z
tests/concordance_test.py
stencila/libdh
41b0dc826e6a6af3390877736185ed90b52459a2
[ "Apache-2.0" ]
1
2018-03-19T22:56:07.000Z
2018-03-20T03:14:19.000Z
tests/concordance_test.py
stencila/libdh
41b0dc826e6a6af3390877736185ed90b52459a2
[ "Apache-2.0" ]
1
2018-04-04T00:08:22.000Z
2018-04-04T00:08:22.000Z
from funcs.concordance import concordance def test_concordance_string(): """ concordance can be called with a string (e.g. a single cell containing a string) """ grams = concordance('Hello world. Hello, my great world! Hello Alice and Bob.', 'world') assert grams == [ ('Hello world'), ...
29.208333
100
0.623395
from funcs.concordance import concordance def test_concordance_string(): """ concordance can be called with a string (e.g. a single cell containing a string) """ grams = concordance('Hello world. Hello, my great world! Hello Alice and Bob.', 'world') assert grams == [ ('Hello world'), ...
0
0
0
77342629a5359863a3e4ac211322c8f62eafaf6f
7,392
py
Python
prototipo_mouse_expressions.py
AlbertMelo/MouseExpressions
8e2bc36d8378541d512e04b17908bdefac6090e8
[ "MIT" ]
3
2019-07-22T18:29:10.000Z
2019-09-11T12:24:05.000Z
prototipo_mouse_expressions.py
AlbertMelo/MouseExpressions
8e2bc36d8378541d512e04b17908bdefac6090e8
[ "MIT" ]
7
2019-12-16T22:20:58.000Z
2022-02-10T00:50:45.000Z
prototipo_mouse_expressions.py
AlbertMelo/MouseExpressions
8e2bc36d8378541d512e04b17908bdefac6090e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import cv2 as cv from keras.preprocessing import image from keras.models import model_from_json import click import pandas as pd from keras.layers import Input from keras import models from keras.models import load_model import pyautogui import statistics from PyQt5 import QtW...
33.6
278
0.684389
# -*- coding: utf-8 -*- import numpy as np import cv2 as cv from keras.preprocessing import image from keras.models import model_from_json import click import pandas as pd from keras.layers import Input from keras import models from keras.models import load_model import pyautogui import statistics from PyQt5 import QtW...
5,568
11
193
4c97aa5d3d19d9348f63b93ed4291c1b26df65b9
1,496
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/plugins/doc_fragments/vmware_rest_client.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/vmware_rest_client.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/plugins/doc_fragments/vmware_rest_client.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
34.790698
129
0.701872
# -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Parameters for VMware REST Client based modules DOCUMENT...
0
1,253
23
fa88f585ee7d7db3b7f7a6e6a849089d906b2efb
1,062
py
Python
datacollection/utils.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
null
null
null
datacollection/utils.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
16
2019-12-10T19:40:27.000Z
2022-02-10T11:51:06.000Z
datacollection/utils.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
null
null
null
import json from .models import URL
32.181818
76
0.658192
import json from .models import URL def get_group(self, data_json): print("get_group start session: " + str(self.customsession.session_key)) namedata = data_json["data"] namejson = json.loads(namedata) if self.customsession.url is not None: print("urlpk found: ") url = self.customsess...
1,001
0
23
679ad77e84c8222952811ad00bc89e353d4ed471
5,617
py
Python
automol/zmatrix/bmat.py
kevinmooreiii/autochem
87f50adc09c3f1170459c629697aadd74154c769
[ "Apache-2.0" ]
null
null
null
automol/zmatrix/bmat.py
kevinmooreiii/autochem
87f50adc09c3f1170459c629697aadd74154c769
[ "Apache-2.0" ]
null
null
null
automol/zmatrix/bmat.py
kevinmooreiii/autochem
87f50adc09c3f1170459c629697aadd74154c769
[ "Apache-2.0" ]
null
null
null
""" IN PROGRESS:Transliterating Carlo's routine from Fortran Form the B-Matrix and C-Matrix used to convert the coordinates Calcualtes all of the derivaties via finite-difference define starting xyz geometry. convention: atom 1 is is 0 0 0 atom 2 bd 0 0 atom 3 on xy plane """ # import numpy as np # # NATOMS = 10 #...
33.434524
79
0.513263
""" IN PROGRESS:Transliterating Carlo's routine from Fortran Form the B-Matrix and C-Matrix used to convert the coordinates Calcualtes all of the derivaties via finite-difference define starting xyz geometry. convention: atom 1 is is 0 0 0 atom 2 bd 0 0 atom 3 on xy plane """ # import numpy as np # # NATOMS = 10 #...
0
0
0
58eab8d36c5aa9986701a4f86760228903a57b48
2,315
py
Python
src/command_modules/azure-cli-botservice/azure/cli/command_modules/botservice/converged_app.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
1
2019-06-21T05:07:59.000Z
2019-06-21T05:07:59.000Z
src/command_modules/azure-cli-botservice/azure/cli/command_modules/botservice/converged_app.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
3
2019-07-12T22:10:38.000Z
2019-07-12T22:10:49.000Z
src/command_modules/azure-cli-botservice/azure/cli/command_modules/botservice/converged_app.py
jfcoz/azure-cli
8459ef3fd3c76d9f99defd95d4c980923891fa6d
[ "MIT" ]
1
2019-06-21T05:08:09.000Z
2019-06-21T05:08:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.392157
120
0.621598
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
1,631
186
23
a29ae9caec88596cb11a22a6a82947490844cecd
1,325
py
Python
final_exam_prep/3rd.py
lowrybg/SoftuniPythonFund
ab80c424c35824bbfda5f43f1ba8ba5aa2f4efb5
[ "MIT" ]
null
null
null
final_exam_prep/3rd.py
lowrybg/SoftuniPythonFund
ab80c424c35824bbfda5f43f1ba8ba5aa2f4efb5
[ "MIT" ]
null
null
null
final_exam_prep/3rd.py
lowrybg/SoftuniPythonFund
ab80c424c35824bbfda5f43f1ba8ba5aa2f4efb5
[ "MIT" ]
null
null
null
n = int(input()) pieces = {} for _ in range(n): piece, composer, key = input().split("|") pieces[piece] = {'composer': composer, 'key': key} data = input() while not data == "Stop": command = data.split("|") if command[0] == "Add": piece, composer, key = command[1:] if piece in piec...
33.974359
87
0.568302
n = int(input()) pieces = {} for _ in range(n): piece, composer, key = input().split("|") pieces[piece] = {'composer': composer, 'key': key} data = input() while not data == "Stop": command = data.split("|") if command[0] == "Add": piece, composer, key = command[1:] if piece in piec...
0
0
0
374bd98516fb14783c4dd99d65e20d161f2986ee
1,125
py
Python
plugins/recorded_future/komand_recorded_future/actions/lookup_alert/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
46
2019-06-05T20:47:58.000Z
2022-03-29T10:18:01.000Z
plugins/recorded_future/komand_recorded_future/actions/lookup_alert/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
386
2019-06-07T20:20:39.000Z
2022-03-30T17:35:01.000Z
plugins/recorded_future/komand_recorded_future/actions/lookup_alert/action.py
lukaszlaszuk/insightconnect-plugins
8c6ce323bfbb12c55f8b5a9c08975d25eb9f8892
[ "MIT" ]
43
2019-07-09T14:13:58.000Z
2022-03-28T12:04:46.000Z
import insightconnect_plugin_runtime from .schema import LookupAlertInput, LookupAlertOutput, Input, Output, Component # Custom imports below from insightconnect_plugin_runtime.exceptions import PluginException from komand_recorded_future.util.api import Endpoint
36.290323
118
0.649778
import insightconnect_plugin_runtime from .schema import LookupAlertInput, LookupAlertOutput, Input, Output, Component # Custom imports below from insightconnect_plugin_runtime.exceptions import PluginException from komand_recorded_future.util.api import Endpoint class LookupAlert(insightconnect_plugin_runtime.Actio...
748
35
76
bc85e43a576f203604dcb456c0e57b0aa707256a
7,132
py
Python
test/functional/feature_index_prune.py
hernanmarino/bitcoin
51eebe082d0d5542ba10a470ee44dfcbd1f2d7e7
[ "MIT" ]
1
2020-01-03T01:06:07.000Z
2020-01-03T01:06:07.000Z
test/functional/feature_index_prune.py
hernanmarino/bitcoin
51eebe082d0d5542ba10a470ee44dfcbd1f2d7e7
[ "MIT" ]
1
2022-02-09T21:05:47.000Z
2022-02-09T21:05:47.000Z
test/functional/feature_index_prune.py
hernanmarino/bitcoin
51eebe082d0d5542ba10a470ee44dfcbd1f2d7e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test indices in conjunction with prune.""" from test_framework.test_framework import BitcoinTestFramewo...
45.717949
188
0.662227
#!/usr/bin/env python3 # Copyright (c) 2020-2021 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test indices in conjunction with prune.""" from test_framework.test_framework import BitcoinTestFramewo...
6,423
29
184
25a0afd05def23f2a550381df6805d5015e2da6a
751
py
Python
core/cooggerapp/views/utopic/contributor.py
bisguzar/coogger
ba8da2d4dcc7014d5e277ea8c400e312c4721e8f
[ "MIT" ]
null
null
null
core/cooggerapp/views/utopic/contributor.py
bisguzar/coogger
ba8da2d4dcc7014d5e277ea8c400e312c4721e8f
[ "MIT" ]
null
null
null
core/cooggerapp/views/utopic/contributor.py
bisguzar/coogger
ba8da2d4dcc7014d5e277ea8c400e312c4721e8f
[ "MIT" ]
1
2020-06-13T09:36:53.000Z
2020-06-13T09:36:53.000Z
from django.contrib.auth.models import User from django.shortcuts import get_object_or_404 from django.views.generic import TemplateView from ...models import Commit, UTopic from ..utils import paginator
37.55
85
0.739015
from django.contrib.auth.models import User from django.shortcuts import get_object_or_404 from django.views.generic import TemplateView from ...models import Commit, UTopic from ..utils import paginator class Contributor(TemplateView): template_name = "users/topic/detail/contributors.html" def get_context_...
425
97
23
17787b08cbccb8195aa6bd7bd0c829d41f386969
14,814
py
Python
src/abaqus/Interaction/FluidCavityProperty.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
7
2022-01-21T09:15:45.000Z
2022-02-15T09:31:58.000Z
src/abaqus/Interaction/FluidCavityProperty.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
src/abaqus/Interaction/FluidCavityProperty.py
Haiiliin/PyAbaqus
f20db6ebea19b73059fe875a53be370253381078
[ "MIT" ]
null
null
null
from abaqusConstants import * from .ContactProperty import ContactProperty class FluidCavityProperty(ContactProperty): """The FluidCavityProperty object is an interaction property that defines the fluid behavior for a surface-based fluid cavity. The FluidCavityProperty object is derived from the Interact...
58.785714
103
0.660659
from abaqusConstants import * from .ContactProperty import ContactProperty class FluidCavityProperty(ContactProperty): """The FluidCavityProperty object is an interaction property that defines the fluid behavior for a surface-based fluid cavity. The FluidCavityProperty object is derived from the Interact...
0
0
0
83599f9c39e0eb9c2eb150ed207890f904271e54
437
py
Python
slice_script.py
harsh52/endoscopy-artifact-detection
496d89ae0d162b97e616d586c56c8675a7652b4f
[ "MIT" ]
22
2019-07-08T02:34:22.000Z
2021-11-29T05:25:04.000Z
slice_script.py
harsh52/endoscopy-artifact-detection
496d89ae0d162b97e616d586c56c8675a7652b4f
[ "MIT" ]
1
2019-12-03T15:30:28.000Z
2019-12-03T15:30:28.000Z
slice_script.py
harsh52/endoscopy-artifact-detection
496d89ae0d162b97e616d586c56c8675a7652b4f
[ "MIT" ]
7
2019-08-29T16:34:40.000Z
2020-12-08T10:23:25.000Z
import re import csv line = [] list2 = [] with open('output2.txt') as f: for i in f: line.append(i) outList = re.findall(r"[-+]?\d*\.\d+|\d+", line[0]) # extracting integers from string list2.append(outList[0]) list2.append(outList[2]) #writing into csv file with open('epoch_loss.csv', 'a...
24.277778
90
0.606407
import re import csv line = [] list2 = [] with open('output2.txt') as f: for i in f: line.append(i) outList = re.findall(r"[-+]?\d*\.\d+|\d+", line[0]) # extracting integers from string list2.append(outList[0]) list2.append(outList[2]) #writing into csv file with open('epoch_loss.csv', 'a...
0
0
0
d8beb893a13694f876607ea939fc05d2189e77e6
3,947
py
Python
handlers/acceptmembermulti.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
1
2015-12-14T08:31:30.000Z
2015-12-14T08:31:30.000Z
handlers/acceptmembermulti.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
null
null
null
handlers/acceptmembermulti.py
micjerry/groupservice
807e5d53533897ac36d9bf1cce30aee09979ea9f
[ "Apache-2.0" ]
null
null
null
import tornado.web import tornado.gen import json import io import logging import motor from bson.objectid import ObjectId import mickey.userfetcher from mickey.basehandler import BaseHandler
32.089431
105
0.541677
import tornado.web import tornado.gen import json import io import logging import motor from bson.objectid import ObjectId import mickey.userfetcher from mickey.basehandler import BaseHandler class AcceptMultimemberHandler(BaseHandler): @tornado.web.asynchronous @tornado.gen.coroutine def post(self): ...
3,570
160
23
43f9de34af9bda3faa21f568aaf1d5e8fc9aee2b
4,560
py
Python
code/parser_class.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/parser_class.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
code/parser_class.py
vijindal/cluspand
a3676594354ab59991fe75fccecdc3a400c7b153
[ "MIT" ]
null
null
null
import os import re # Parses a given input file and returns a list of parameters for all structures.
53.647059
129
0.498904
import os import re class Parser: # Parses a given input file and returns a list of parameters for all structures. def parse(lattice_type, elements): #file_path = os.path.join(os.getcwd(), '../'+lattice_type+'_txt_files/'+file_name) #file_path = os.path.join(os.getcwd(), lattice_type+'_txt_file...
4,414
-8
49
c9479db68d58e4ca0978a711caa8fb9f9f3b477b
2,366
py
Python
silasdk/ethwallet.py
deepanshutyagi/Sila-Python
d0c0335f3f103129490f7df0ecab73051ec73549
[ "Apache-2.0" ]
null
null
null
silasdk/ethwallet.py
deepanshutyagi/Sila-Python
d0c0335f3f103129490f7df0ecab73051ec73549
[ "Apache-2.0" ]
null
null
null
silasdk/ethwallet.py
deepanshutyagi/Sila-Python
d0c0335f3f103129490f7df0ecab73051ec73549
[ "Apache-2.0" ]
null
null
null
from eth_account import Account import sha3 import json
35.313433
113
0.546492
from eth_account import Account import sha3 import json class EthWallet(): def create(entropy): """create an ethereum wallet for user This will generate a private key and ethereum address, that can be used for trasaction, however this not a recommended way to c...
0
2,279
23
3c41be0847b2540835a2e5b84d62ce2bdcdb833d
7,601
py
Python
rpi_pcm_ws281x.py
tvoverbeek/rpi-pcm-ws2811
479d7996f3b042cb579858caedd5ef7993d7549c
[ "MIT" ]
5
2016-10-20T09:15:03.000Z
2021-12-14T19:15:11.000Z
rpi_pcm_ws281x.py
tvoverbeek/rpi-pcm-ws2811
479d7996f3b042cb579858caedd5ef7993d7549c
[ "MIT" ]
3
2016-10-21T10:13:33.000Z
2018-08-11T22:04:45.000Z
rpi_pcm_ws281x.py
tvoverbeek/rpi-pcm-ws2811
479d7996f3b042cb579858caedd5ef7993d7549c
[ "MIT" ]
1
2017-03-27T18:00:55.000Z
2017-03-27T18:00:55.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): _rpi_pcm_ws281x = swig_import_helper() del swig...
44.976331
142
0.778187
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path impo...
1,943
3,831
326
ec821600b761fbf8efdb41b115e466a61978364e
16,410
py
Python
tests/test_pendulum.py
shromonag/active_testing
ca9c8f909f6b0f4e7b1affda6f9333e0d0b6c04b
[ "MIT" ]
4
2019-03-09T12:38:46.000Z
2021-12-08T15:45:44.000Z
tests/test_pendulum.py
shromonag/active_testing
ca9c8f909f6b0f4e7b1affda6f9333e0d0b6c04b
[ "MIT" ]
null
null
null
tests/test_pendulum.py
shromonag/active_testing
ca9c8f909f6b0f4e7b1affda6f9333e0d0b6c04b
[ "MIT" ]
3
2019-01-09T13:43:06.000Z
2021-11-30T22:15:28.000Z
''' Here we consider a controller trained on nearest neighbor for the pendulum environment in OpenAI Gym. The controller is taken from baselines ppo. ''' import gym import numpy as np from gym import spaces from baselines import deepq from baselines.common import set_global_seeds, tf_util as U import gym, logging from...
40.220588
123
0.625168
''' Here we consider a controller trained on nearest neighbor for the pendulum environment in OpenAI Gym. The controller is taken from baselines ppo. ''' import gym import numpy as np from gym import spaces from baselines import deepq from baselines.common import set_global_seeds, tf_util as U import gym, logging from...
8,081
0
183
3bacdb47786b68ea0eb99f183c0ed33e5b4958ed
1,189
py
Python
setup.py
vvd170501/pyhton-gforms
684956e06f4c6d8224ea3eb2f66827d3ec9bec46
[ "MIT" ]
3
2021-05-28T11:17:30.000Z
2022-03-13T14:49:24.000Z
setup.py
vvd170501/pyhton-gforms
684956e06f4c6d8224ea3eb2f66827d3ec9bec46
[ "MIT" ]
3
2021-05-26T17:19:18.000Z
2022-03-01T09:46:14.000Z
setup.py
vvd170501/pyhton-gforms
684956e06f4c6d8224ea3eb2f66827d3ec9bec46
[ "MIT" ]
2
2021-11-14T17:09:50.000Z
2021-12-02T20:13:49.000Z
import re from setuptools import setup, find_packages with open('README.md', 'r', encoding='utf-8') as f: readme = f.read() with open('gforms/__init__.py', encoding='utf-8') as f: version = re.search(r"__version__ = '(.+)'", f.read()).group(1) setup( name='gforms', description='Google Forms wrappe...
25.297872
67
0.592094
import re from setuptools import setup, find_packages with open('README.md', 'r', encoding='utf-8') as f: readme = f.read() with open('gforms/__init__.py', encoding='utf-8') as f: version = re.search(r"__version__ = '(.+)'", f.read()).group(1) setup( name='gforms', description='Google Forms wrappe...
0
0
0
f6e7faf06c12bf23f5e307d5f0d9371d91449b85
3,754
py
Python
seqcluster/libs/annotation.py
kkarolis/seqcluster
774e23add8cd4fdc83d626cea3bd1f458e7d060d
[ "MIT" ]
33
2015-01-26T23:18:01.000Z
2022-01-07T21:40:49.000Z
seqcluster/libs/annotation.py
kkarolis/seqcluster
774e23add8cd4fdc83d626cea3bd1f458e7d060d
[ "MIT" ]
44
2015-01-21T17:43:42.000Z
2021-08-25T15:49:18.000Z
seqcluster/libs/annotation.py
kkarolis/seqcluster
774e23add8cd4fdc83d626cea3bd1f458e7d060d
[ "MIT" ]
18
2015-05-18T15:34:32.000Z
2021-02-10T17:58:24.000Z
import seqcluster.libs.logger as mylog import os from seqcluster.libs.classes import annotation, dbannotation logger = mylog.getLogger("run") def read_gtf_line(cols, field="name"): """parse gtf line to get class/name information""" field = field.lower() try: group = cols[2] attrs = cols[...
35.084112
123
0.537294
import seqcluster.libs.logger as mylog import os from seqcluster.libs.classes import annotation, dbannotation logger = mylog.getLogger("run") def read_gtf_line(cols, field="name"): """parse gtf line to get class/name information""" field = field.lower() try: group = cols[2] attrs = cols[...
0
0
0
286bc6b3c5ed8544085b2f819632a9e139dca2dd
310
py
Python
testttt.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
testttt.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
testttt.py
Srinivassan-Ramamurthy/python_programs
53b390669c7e88532c67d80b758a9199d6fde8cf
[ "bzip2-1.0.6" ]
null
null
null
pattern()
23.846154
37
0.380645
def pattern(): a=input('enter 5 letter word ') for i in range(len(a)): for j in range(len(a)): if(j==i): print(a[i],end='') elif(j+i==4): print(a[-1-i],end='') else: print(' ',end='') print() pattern()
278
0
22
ac8b860ac3e67063a748e256dd35316334efdf95
4,826
py
Python
compose/plugin.py
GM-Alex/compose-improved
585175e50b71b07596b0cba3b7d66ad367c9b2ed
[ "Apache-2.0" ]
1
2017-05-26T15:22:02.000Z
2017-05-26T15:22:02.000Z
compose/plugin.py
GM-Alex/compose-improved
585175e50b71b07596b0cba3b7d66ad367c9b2ed
[ "Apache-2.0" ]
null
null
null
compose/plugin.py
GM-Alex/compose-improved
585175e50b71b07596b0cba3b7d66ad367c9b2ed
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import collections import inspect import json import os import re from functools import partial import compose
30.352201
101
0.627849
from __future__ import absolute_import from __future__ import unicode_literals import collections import inspect import json import os import re from functools import partial import compose class PartialMethod(partial): def __get__(self, instance, owner): if instance is None: return self ...
4,066
350
210
d7e9adcefd3cab5ccb8d34cc92eaa8b709da5a03
3,774
py
Python
pygsm/tests/test_ase.py
stenczelt/pyGSM
48e7a710744ec768e2c4a0f4d8dc1f9ffd948ce1
[ "MIT" ]
null
null
null
pygsm/tests/test_ase.py
stenczelt/pyGSM
48e7a710744ec768e2c4a0f4d8dc1f9ffd948ce1
[ "MIT" ]
2
2021-05-29T13:04:31.000Z
2021-05-30T11:05:41.000Z
pygsm/tests/test_ase.py
stenczelt/pyGSM
48e7a710744ec768e2c4a0f4d8dc1f9ffd948ce1
[ "MIT" ]
null
null
null
import numpy as np from ase.calculators.lj import LennardJones from ase.units import Bohr, Ha from pytest import approx, raises from pygsm.level_of_theories.ase import ASELoT, geom_to_ase, xyz_to_ase from pygsm.level_of_theories.base_lot import LoTError xyz_4x4 = [ ["H", 1.0, 2.0, 3.0], ["He", 4.0, 5.0, 6.0],...
28.80916
84
0.659777
import numpy as np from ase.calculators.lj import LennardJones from ase.units import Bohr, Ha from pytest import approx, raises from pygsm.level_of_theories.ase import ASELoT, geom_to_ase, xyz_to_ase from pygsm.level_of_theories.base_lot import LoTError xyz_4x4 = [ ["H", 1.0, 2.0, 3.0], ["He", 4.0, 5.0, 6.0],...
3,202
0
184
59d73a2e5b7f78e4793c434d33a541c7dae2d810
254
py
Python
survey/features/page_objects/weights.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
5
2016-08-25T12:48:54.000Z
2018-08-16T22:49:43.000Z
survey/features/page_objects/weights.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
2
2016-08-11T06:43:56.000Z
2016-12-08T09:11:36.000Z
survey/features/page_objects/weights.py
ericazhou7/uSurvey
1236f33355662957e7e1e769dde1811b910673a5
[ "BSD-3-Clause" ]
7
2016-09-16T11:03:44.000Z
2020-10-28T22:01:20.000Z
from survey.features.page_objects.base import PageObject __author__ = 'mnandri'
21.166667
56
0.783465
from survey.features.page_objects.base import PageObject __author__ = 'mnandri' class ListLocationWeightsPage(PageObject): url = "/locations/weights/" class ListLocationWeightsErrorLogPage(PageObject): url = "/locations/weights/error_logs/"
0
125
46
be6fc59741cd65844495a4517390894b6f81b3ef
11,198
py
Python
muffin_debugtoolbar/plugin.py
klen/muffin-debugtoolbar
bce845f48ae3f21c859663190f5be3ae69970ccc
[ "MIT" ]
4
2015-06-09T15:22:56.000Z
2016-11-08T11:49:57.000Z
muffin_debugtoolbar/plugin.py
klen/muffin-debugtoolbar
bce845f48ae3f21c859663190f5be3ae69970ccc
[ "MIT" ]
null
null
null
muffin_debugtoolbar/plugin.py
klen/muffin-debugtoolbar
bce845f48ae3f21c859663190f5be3ae69970ccc
[ "MIT" ]
null
null
null
"""Debug Toolbar Plugin.""" import asyncio import importlib import ipaddress as ip import os.path as op import re import sys import uuid from muffin import ( Response, StaticRoute, HTTPException, HTTPBadRequest, to_coroutine, HTTPForbidden) from muffin.plugins import BasePlugin, PluginException from muffin.utils i...
34.349693
99
0.610734
"""Debug Toolbar Plugin.""" import asyncio import importlib import ipaddress as ip import os.path as op import re import sys import uuid from muffin import ( Response, StaticRoute, HTTPException, HTTPBadRequest, to_coroutine, HTTPForbidden) from muffin.plugins import BasePlugin, PluginException from muffin.utils i...
1,552
0
159
0c7e1e059eedf931f70c49d679202f99a195fd40
8,200
py
Python
Operations/PH_Walker.py
ClarkLabUVA/hctsa-py
4382a7e852d21cdfefdac1a4a09ea6e11abd9be1
[ "MIT" ]
6
2020-08-14T00:16:19.000Z
2022-01-20T05:49:12.000Z
Operations/PH_Walker.py
fairscape/hctsa-py
4382a7e852d21cdfefdac1a4a09ea6e11abd9be1
[ "MIT" ]
null
null
null
Operations/PH_Walker.py
fairscape/hctsa-py
4382a7e852d21cdfefdac1a4a09ea6e11abd9be1
[ "MIT" ]
4
2020-08-14T00:22:45.000Z
2021-02-18T05:31:14.000Z
import numpy as np from scipy import stats import statsmodels.sandbox.stats.runs as runs # 18/21 output statistics fully implemented from MATLAB, the other three are either from complex helper functions or MATLAB functions that don't transfer well def PH_Walker(y, walkerRule='prop', walkerParams=np.array([])): "...
41.836735
216
0.517561
import numpy as np from scipy import stats import statsmodels.sandbox.stats.runs as runs # 18/21 output statistics fully implemented from MATLAB, the other three are either from complex helper functions or MATLAB functions that don't transfer well def PH_Walker(y, walkerRule='prop', walkerParams=np.array([])): "...
0
0
0
b15d0d88548bec009f72b3c26a79df2dbb7cf9c5
790
py
Python
modules/crawler/Utilities/helpers.py
kivzcu/heatmap.zcu
526c4df9c1c299eb1b3e9df6bd2be5578d462405
[ "MIT" ]
null
null
null
modules/crawler/Utilities/helpers.py
kivzcu/heatmap.zcu
526c4df9c1c299eb1b3e9df6bd2be5578d462405
[ "MIT" ]
null
null
null
modules/crawler/Utilities/helpers.py
kivzcu/heatmap.zcu
526c4df9c1c299eb1b3e9df6bd2be5578d462405
[ "MIT" ]
null
null
null
from typing import Dict SKIP = "SKIP" UNKNOWN = "UNKNOWN!" def detect_change(first: Dict[str, str], second: Dict[str, str], compareKeys: [str]) -> bool: """Detects change between two dictonaries Args: first (Dict[str, str]): First dictionary second (Dict[str, str]): Second...
26.333333
64
0.588608
from typing import Dict SKIP = "SKIP" UNKNOWN = "UNKNOWN!" def should_skip(device: Dict[str, str]) -> bool: return device['x'] == SKIP or device['y'] == SKIP or device[ 'x'] == UNKNOWN or device['y'] == UNKNOWN def detect_change(first: Dict[str, str], second: Dict[str, str], compareKe...
142
0
23
371b5d6ccd471e0f2f61a35d10fdcaf0c575c962
36
py
Python
src/backend/training/__init__.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
src/backend/training/__init__.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
src/backend/training/__init__.py
ToJestKrzysio/TheJungleGame
904dd4adc937145df2c8c353eb83bec3b5dd1f7e
[ "MIT" ]
null
null
null
from . helpers import get_timestamp
18
35
0.833333
from . helpers import get_timestamp
0
0
0
5f5d51144aed675324b53158ca76f498ab1e3b36
1,197
py
Python
cogs/cogsmgmt.py
jcoffm/ConciergeBot
fa33a12abebef1d7a6302b3c5ac5ce1e050af7d5
[ "MIT" ]
null
null
null
cogs/cogsmgmt.py
jcoffm/ConciergeBot
fa33a12abebef1d7a6302b3c5ac5ce1e050af7d5
[ "MIT" ]
null
null
null
cogs/cogsmgmt.py
jcoffm/ConciergeBot
fa33a12abebef1d7a6302b3c5ac5ce1e050af7d5
[ "MIT" ]
null
null
null
from discord.ext import commands
25.468085
62
0.606516
from discord.ext import commands class CogManagement(commands.Cog): def __init__(self, bot): self.bot = bot @commands.command() async def cogreload(self, ctx): cog_name = ctx.message.content.split(" ")[1] print(f"Reloading cog {cog_name}...") await ctx.channel.send(f"Relo...
924
192
46
5b06d060ba415fd61bd539d1de87749c0e6359bb
883
py
Python
collect_pong.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
null
null
null
collect_pong.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
1
2021-03-19T03:06:46.000Z
2021-08-02T13:29:05.000Z
collect_pong.py
Loptt/pong-autoencoder
c5123bb2466f644f7513d807044e11a4a17aae22
[ "MIT" ]
null
null
null
import gym import numpy as np from PIL import Image import sys env = gym.make('Pong-v0') env.reset() done = False i = 0 start = 0 if len(sys.argv) < 3: print("Usage: collect_pong <games> <start_point>") exit() try: games = int(sys.argv[1]) start = int(sys.argv[2]) i = start except: print("Pl...
21.02381
87
0.596829
import gym import numpy as np from PIL import Image import sys env = gym.make('Pong-v0') env.reset() done = False i = 0 start = 0 if len(sys.argv) < 3: print("Usage: collect_pong <games> <start_point>") exit() try: games = int(sys.argv[1]) start = int(sys.argv[2]) i = start except: print("Pl...
0
0
0
1177ec39443f0c4afc68b0f4bb00985b22bbdd21
887
py
Python
python/bubblesort.py
gmoise/sandbox
1ad01904448b19cec5f9ad89e698b59bc11150ed
[ "MIT" ]
null
null
null
python/bubblesort.py
gmoise/sandbox
1ad01904448b19cec5f9ad89e698b59bc11150ed
[ "MIT" ]
null
null
null
python/bubblesort.py
gmoise/sandbox
1ad01904448b19cec5f9ad89e698b59bc11150ed
[ "MIT" ]
null
null
null
import random mylist = [] for somethin in range(1,10): x = random.randrange(0,9) mylist.append(x) print(mylist) last_index=len(mylist) print ("length of mylist is:",len(mylist)) print ("first element is:",mylist[0]) print ("last element is:",mylist[len(mylist)-1]) #is mylist sorted? is_mylist_sorted ...
16.425926
48
0.620068
import random mylist = [] for somethin in range(1,10): x = random.randrange(0,9) mylist.append(x) print(mylist) last_index=len(mylist) print ("length of mylist is:",len(mylist)) print ("first element is:",mylist[0]) print ("last element is:",mylist[len(mylist)-1]) #is mylist sorted? is_mylist_sorted ...
0
0
0
c793722d0b378ee7db2b64de100d0736b9b47fda
1,117
py
Python
setup.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
4
2019-07-19T05:40:37.000Z
2021-03-31T05:49:30.000Z
setup.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
1
2019-08-13T18:27:40.000Z
2019-08-13T18:27:40.000Z
setup.py
stacy0416/afs2-datasource
25d498fc56eb142f2e97ea2d274d534245a4c301
[ "Apache-2.0" ]
null
null
null
import os import setuptools try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements requirements_path = os.path.join(os.path.dirname(__file__), 'requirements.txt') install_requires = parse_requirements(requirements_...
33.848485
80
0.733214
import os import setuptools try: # for pip >= 10 from pip._internal.req import parse_requirements except ImportError: # for pip <= 9.0.3 from pip.req import parse_requirements requirements_path = os.path.join(os.path.dirname(__file__), 'requirements.txt') install_requires = parse_requirements(requirements_...
0
0
0
1d241f184661fa37b57913861e9fb9b2387cc4b1
5,168
py
Python
predict.py
jaym096/FIFA-WorldCup-Match-Predictor
4b5b6fbc91391133f595cba4f650736eea81d2e0
[ "MIT" ]
null
null
null
predict.py
jaym096/FIFA-WorldCup-Match-Predictor
4b5b6fbc91391133f595cba4f650736eea81d2e0
[ "MIT" ]
null
null
null
predict.py
jaym096/FIFA-WorldCup-Match-Predictor
4b5b6fbc91391133f595cba4f650736eea81d2e0
[ "MIT" ]
null
null
null
import pandas as pd #============== First Round ===================# #===============================================# #============== Other Rounds ===================# #===============================================#
42.710744
124
0.614551
import pandas as pd #============== First Round ===================# def predict_firstRound(ranking, final_dataset, logreg): # Obtained from https://fixturedownload.com/results/fifa-world-cup-2018 fixtures = pd.read_csv('data/fixtures.csv') #List for storing the group stage games pred_set = [] ...
4,898
0
44
e4f38538428142f303485b2cb2db48de167944ae
410
py
Python
Aula_01/exercicio_03.py
Luferat/Curso_Python_Senac
a0710b25e4fedeacb1139c1c8f4e4a00c63dba73
[ "MIT" ]
1
2021-11-18T19:02:10.000Z
2021-11-18T19:02:10.000Z
Aula_01/exercicio_03.py
Luferat/Curso_Python_Senac
a0710b25e4fedeacb1139c1c8f4e4a00c63dba73
[ "MIT" ]
null
null
null
Aula_01/exercicio_03.py
Luferat/Curso_Python_Senac
a0710b25e4fedeacb1139c1c8f4e4a00c63dba73
[ "MIT" ]
null
null
null
""" Exercício 03 Peça ao usuário para digitar 3 valores inteiros e imprima a soma deles. """ print('Digite três números inteiros para somá-los:\n') num1 = int(float(input('Primeiro número: ').replace(',', '.'))) num2 = int(float(input('Segundo número: ').replace(',', '.'))) num3 = int(float(input('Terceiro número: ')....
34.166667
71
0.658537
""" Exercício 03 Peça ao usuário para digitar 3 valores inteiros e imprima a soma deles. """ print('Digite três números inteiros para somá-los:\n') num1 = int(float(input('Primeiro número: ').replace(',', '.'))) num2 = int(float(input('Segundo número: ').replace(',', '.'))) num3 = int(float(input('Terceiro número: ')....
0
0
0
d5e35b7eef70f9ce665c2f92c0cb10aaae53e7e9
4,228
py
Python
plugins/module_utils/definitions/discovery_network_device.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
plugins/module_utils/definitions/discovery_network_device.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
plugins/module_utils/definitions/discovery_network_device.py
robertcsapo/dnacenter-ansible
33f776f8c0bc7113da73191c301dd1807e6b4a43
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json module_definition = json.loads( """{ "family": "discovery", "name": "discovery_network_device", "operations": { "get": [ "get_discovered_network_devices_by_discovery_id", ...
26.26087
66
0.346736
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json module_definition = json.loads( """{ "family": "discovery", "name": "discovery_network_device", "operations": { "get": [ "get_discovered_network_devices_by_discovery_id", ...
0
0
0
72b850981a06edc2f84483d0a9fb974636249292
1,156
py
Python
tools/deep_memory_profiler/subcommands/stacktrace.py
nagineni/chromium-crosswalk
5725642f1c67d0f97e8613ec1c3e8107ab53fdf8
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
tools/deep_memory_profiler/subcommands/stacktrace.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2017-02-14T21:55:58.000Z
2017-02-14T21:55:58.000Z
tools/deep_memory_profiler/subcommands/stacktrace.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys from lib.bucket import BUCKET_ID from lib.subcommand import SubCommand
27.52381
72
0.67128
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys from lib.bucket import BUCKET_ID from lib.subcommand import SubCommand class StacktraceCommand(SubCommand): def __init__(self): super(Sta...
300
586
23
431b39143b9b0cf0b40e592c7fd8d42ef1d24d16
978
py
Python
FCFS.py
Aamina27/Amina-Afzal
90c4b2ab97051bfa6c7ec83aa216ad303b3d1135
[ "MIT" ]
null
null
null
FCFS.py
Aamina27/Amina-Afzal
90c4b2ab97051bfa6c7ec83aa216ad303b3d1135
[ "MIT" ]
null
null
null
FCFS.py
Aamina27/Amina-Afzal
90c4b2ab97051bfa6c7ec83aa216ad303b3d1135
[ "MIT" ]
null
null
null
burst_time=[] print("Enter the number of process: ") n=int(input()) print("Enter the burst time of the processes: \n") burst_time=list(map(int, input().split())) waiting_time=[] avg_waiting_time=0 turnaround_time=[] avg_turnaround_time=0 waiting_time.insert(0,0) turnaround_time.insert(0,burst_time[0]) for i ...
39.12
100
0.741309
burst_time=[] print("Enter the number of process: ") n=int(input()) print("Enter the burst time of the processes: \n") burst_time=list(map(int, input().split())) waiting_time=[] avg_waiting_time=0 turnaround_time=[] avg_turnaround_time=0 waiting_time.insert(0,0) turnaround_time.insert(0,burst_time[0]) for i ...
0
0
0
2b08ec7a52d6c60e3308d6a7da8ed66b3992c9ad
1,299
py
Python
airflow_sqlcmd_operator/sqlcmd.py
dewes/airflow-sqlcmd-operator
29177b111d5e87bd9a856388ac0e6254c391f99a
[ "MIT" ]
null
null
null
airflow_sqlcmd_operator/sqlcmd.py
dewes/airflow-sqlcmd-operator
29177b111d5e87bd9a856388ac0e6254c391f99a
[ "MIT" ]
1
2021-08-06T21:54:02.000Z
2021-08-06T21:54:02.000Z
airflow_sqlcmd_operator/sqlcmd.py
dewes/airflow-sqlcmd-operator
29177b111d5e87bd9a856388ac0e6254c391f99a
[ "MIT" ]
null
null
null
import os from airflow.hooks.base_hook import BaseHook from airflow.operators.bash_operator import BashOperator from airflow.utils.decorators import apply_defaults
36.083333
143
0.667436
import os from airflow.hooks.base_hook import BaseHook from airflow.operators.bash_operator import BashOperator from airflow.utils.decorators import apply_defaults class SqlcmdOperator(BashOperator): template_fields = ("task_id", "bash_command", "sql_command", "sql_folder", "sql_file") # Currently works onl...
507
603
23
bcbe7560b6bd844d2aac187e3e4e713f4dc467a8
13,482
py
Python
benchmarks/code/cifar10.py
nhahn7/SDTF
d9ff23b57f8b16a1be7d2fd49fb319b5a90bc20e
[ "MIT" ]
null
null
null
benchmarks/code/cifar10.py
nhahn7/SDTF
d9ff23b57f8b16a1be7d2fd49fb319b5a90bc20e
[ "MIT" ]
null
null
null
benchmarks/code/cifar10.py
nhahn7/SDTF
d9ff23b57f8b16a1be7d2fd49fb319b5a90bc20e
[ "MIT" ]
null
null
null
""" Author: Haoyin Xu """ import time import psutil import argparse import numpy as np import torchvision.datasets as datasets from numpy.random import permutation from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import RandomForestClassifier from river import tree from skgarden import MondrianFore...
29.565789
88
0.61927
""" Author: Haoyin Xu """ import time import psutil import argparse import numpy as np import torchvision.datasets as datasets from numpy.random import permutation from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import RandomForestClassifier from river import tree from skgarden import MondrianFore...
0
0
0
116ebabd373174e9bc708935a5a25a2354aabd43
11,479
py
Python
src/textwrap.py
pineapplemachine/mwde
e68378b74d1712347351f1d8fe41edd434d7af16
[ "MIT" ]
6
2018-08-19T18:50:13.000Z
2021-06-05T01:14:24.000Z
src/textwrap.py
pineapplemachine/mwde
e68378b74d1712347351f1d8fe41edd434d7af16
[ "MIT" ]
1
2018-12-01T14:18:34.000Z
2018-12-01T14:59:22.000Z
src/textwrap.py
pineapplemachine/mwde
e68378b74d1712347351f1d8fe41edd434d7af16
[ "MIT" ]
1
2021-06-05T01:14:31.000Z
2021-06-05T01:14:31.000Z
"""Text wrapping and filling. """ # Copyright (C) 1999-2001 Gregory P. Ward. # Copyright (C) 2002, 2003 Python Software Foundation. # Written by Greg Ward <gward@python.net> # Modified by Sophie Kirschner # https://github.com/python/cpython/blob/master/Lib/textwrap.py # https://github.com/python/cpython/blob/master/L...
41.143369
80
0.605105
"""Text wrapping and filling. """ # Copyright (C) 1999-2001 Gregory P. Ward. # Copyright (C) 2002, 2003 Python Software Foundation. # Written by Greg Ward <gward@python.net> # Modified by Sophie Kirschner # https://github.com/python/cpython/blob/master/Lib/textwrap.py # https://github.com/python/cpython/blob/master/L...
1,258
0
53
729c2aa69dc495d2e9bbc6997b3e87438b9334a0
9,382
py
Python
nova/objects/network.py
viveknandavanam/nova
556377b6915936467436c9d5bb33bc0e22244e1e
[ "Apache-2.0" ]
1
2019-07-29T10:30:24.000Z
2019-07-29T10:30:24.000Z
nova/objects/network.py
ljzjohnson/nova
87e1951a1b8c03b9ecdf8f75610d14690b61f272
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/objects/network.py
ljzjohnson/nova
87e1951a1b8c03b9ecdf8f75610d14690b61f272
[ "Apache-2.0" ]
7
2015-01-20T10:30:08.000Z
2020-02-05T10:29:05.000Z
# Copyright 2014 Red Hat, 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 a...
40.791304
78
0.649329
# Copyright 2014 Red Hat, 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 a...
4,617
3,724
44
aa48483bb4d631377a6e0d2824f5c99ecea55f93
2,968
py
Python
ImageData.py
Guwudao/WeChat-Python-demo
243b0c15f4d6a27271713f38ac5a987472844ce0
[ "MIT" ]
null
null
null
ImageData.py
Guwudao/WeChat-Python-demo
243b0c15f4d6a27271713f38ac5a987472844ce0
[ "MIT" ]
3
2021-12-13T20:41:27.000Z
2022-03-12T00:22:24.000Z
ImageData.py
Guwudao/WeChat-Python-demo
243b0c15f4d6a27271713f38ac5a987472844ce0
[ "MIT" ]
null
null
null
from PIL import Image from PIL.ExifTags import TAGS import exifread import re import json def get_exif_data(fname): """Get embedded EXIF data from image file.""" ret = {} try: img = Image.open(fname) if hasattr( img, '_getexif' ): exifinfo = img._getexif() if exifin...
39.052632
109
0.506739
from PIL import Image from PIL.ExifTags import TAGS import exifread import re import json def read(): with open('IMG_1956.HEIC', 'rb') as f: try: contents = exifread.process_file(f) for key in contents: if key == "GPS GPSLongitude": print("经度: ",...
2,413
0
23
f6f4753aa6c34ab70ffbc004f50c721b01c9c100
1,788
py
Python
app/__init__.py
avb76/barbershop
975b501b0c53600909910619e248dff627acaa22
[ "MIT" ]
null
null
null
app/__init__.py
avb76/barbershop
975b501b0c53600909910619e248dff627acaa22
[ "MIT" ]
null
null
null
app/__init__.py
avb76/barbershop
975b501b0c53600909910619e248dff627acaa22
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_bootstrap import Bootstrap from flask_login import LoginManager from flask_moment import Moment from flask_mail import Mail # from flask_mail_sendgrid import MailSendGrid from config import Config from logging.h...
28.83871
74
0.709172
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_bootstrap import Bootstrap from flask_login import LoginManager from flask_moment import Moment from flask_mail import Mail # from flask_mail_sendgrid import MailSendGrid from config import Config from logging.h...
1,241
0
23
35e9d55eab18f67cc2fc4818d7246c681b504cad
1,407
py
Python
gale/timeseries/test_conversions.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
gale/timeseries/test_conversions.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
gale/timeseries/test_conversions.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
''' File: test_conversions.py Author: Adam Pah Description: py.test test ensemble ''' import pytest import conversions as conv class TestConvertTimeseries: ''' Covers the convert_timeseries_to_intervalseries function ''' timeseries = [[0, 2], [2, 3], [5, 3]] def test_basic(self): ''' ...
29.93617
100
0.637527
''' File: test_conversions.py Author: Adam Pah Description: py.test test ensemble ''' import pytest import conversions as conv class TestConvertTimeseries: ''' Covers the convert_timeseries_to_intervalseries function ''' timeseries = [[0, 2], [2, 3], [5, 3]] def test_basic(self): ''' ...
0
0
0
1c0994f61423ca0f43a923170a867f08704e7dbb
7,724
py
Python
amy/extrequests/tests/test_event_requests.py
mattipt/amy
c8c7212fd51d875d22c413781d28e94837a3db2e
[ "MIT" ]
null
null
null
amy/extrequests/tests/test_event_requests.py
mattipt/amy
c8c7212fd51d875d22c413781d28e94837a3db2e
[ "MIT" ]
1
2019-12-13T11:22:47.000Z
2019-12-13T11:22:47.000Z
amy/extrequests/tests/test_event_requests.py
mattipt/amy
c8c7212fd51d875d22c413781d28e94837a3db2e
[ "MIT" ]
null
null
null
from django.urls import reverse from extforms.deprecated_forms import SWCEventRequestForm, DCEventRequestForm from extrequests.models import ( EventRequest, ) from workshops.models import Event, Organization from workshops.tests.base import TestBase
41.304813
78
0.617556
from django.urls import reverse from extforms.deprecated_forms import SWCEventRequestForm, DCEventRequestForm from extrequests.models import ( EventRequest, ) from workshops.models import Event, Organization from workshops.tests.base import TestBase class TestSWCEventRequestForm(TestBase): def setUp(self): ...
3,541
3,856
69
5f3c6e3145e4c5a9194485b8fe52b7dad8e138d8
2,449
py
Python
scripts/dbutil/hads_delete_dups.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
scripts/dbutil/hads_delete_dups.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
scripts/dbutil/hads_delete_dups.py
trentford/iem
7264d24f2d79a3cd69251a09758e6531233a732f
[ "MIT" ]
null
null
null
""" Our HADS database gets loaded up with duplicates, this cleans it up. called from RUN_MIDNIGHT.sh """ from __future__ import print_function import datetime import sys import pytz from pyiem.util import get_dbconn, utc def query(sql, args=None): """ Do a query and make it atomic """ pgconn = get...
28.476744
78
0.601062
""" Our HADS database gets loaded up with duplicates, this cleans it up. called from RUN_MIDNIGHT.sh """ from __future__ import print_function import datetime import sys import pytz from pyiem.util import get_dbconn, utc def query(sql, args=None): """ Do a query and make it atomic """ pgconn = get...
0
0
0
ecc7d9a9b5336ce6466f8857ffbb551a37b659f2
929
py
Python
api/api/video/models.py
dmitryro/django-starter
59a61500664285cfadad16fa127a85f0cee3b3c1
[ "MIT" ]
null
null
null
api/api/video/models.py
dmitryro/django-starter
59a61500664285cfadad16fa127a85f0cee3b3c1
[ "MIT" ]
6
2020-06-05T22:49:59.000Z
2021-06-10T18:53:10.000Z
api/api/video/models.py
dmitryro/django-starter
59a61500664285cfadad16fa127a85f0cee3b3c1
[ "MIT" ]
null
null
null
from django.db import models
38.708333
73
0.723358
from django.db import models class Video(models.Model): title = models.CharField(max_length=200, blank=True, null=True) uuid = models.CharField(max_length=200, blank=True, null=True) description = models.CharField(max_length=200, blank=True, null=True) author = models.CharField(max_length=200, blank=Tr...
23
852
23
417bba34d989778ffd40ffac7f4e3a0415f9798f
11,193
py
Python
Filter3x3.py
charlie-jones/Chinese-Character-Recognition
26ba530effa4d14542ffc76bfbb1dec1795c18b0
[ "MIT" ]
2
2020-07-26T14:18:08.000Z
2020-11-07T01:56:31.000Z
Filter3x3.py
charlie-jones/Chinese-Character-Recognition
26ba530effa4d14542ffc76bfbb1dec1795c18b0
[ "MIT" ]
null
null
null
Filter3x3.py
charlie-jones/Chinese-Character-Recognition
26ba530effa4d14542ffc76bfbb1dec1795c18b0
[ "MIT" ]
null
null
null
import numpy as np import os import pickle #128x128 #################################################### ''' Inputs 128x128 pixel array Returns label where: label 0 = 1 label 1 = 2 etc ''' ''' returns an array of arrays, each one is the data from one image ''' ########################################### # ...
35.087774
133
0.558653
import numpy as np import os import pickle #128x128 class Filter3x3: n_filters = 0 PATH_NAME = '' # set this if you want to train it filters = [] weights = [] biases = [] # generate weights and biases # self.weights = random.randn(n_inputs, n_nodes) / n_inputs # self.biases = zeros(n_...
8,637
1,539
89
9a90caab9991af9886325ebdd19a8ec880dc8732
1,381
py
Python
stalinsort.py
Gagis/stalinsort
b5ad8dad2b76ab5843deb9ba66f9eabb98d34479
[ "MIT" ]
null
null
null
stalinsort.py
Gagis/stalinsort
b5ad8dad2b76ab5843deb9ba66f9eabb98d34479
[ "MIT" ]
null
null
null
stalinsort.py
Gagis/stalinsort
b5ad8dad2b76ab5843deb9ba66f9eabb98d34479
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Python implementation of the StalinSort algorithm. References ---------- - :cite:`mathew` : @mathew@mastodon.social (2018/10/26 04:20:16) ''I came up with a single pass O(n) sort algorithm I call StalinSort. You iterate down the list of elements checking if they're in order. Any e...
27.62
79
0.621289
# -*- coding: utf-8 -*- """Python implementation of the StalinSort algorithm. References ---------- - :cite:`mathew` : @mathew@mastodon.social (2018/10/26 04:20:16) ''I came up with a single pass O(n) sort algorithm I call StalinSort. You iterate down the list of elements checking if they're in order. Any e...
0
0
0
420d28be65691041897d75814dd5308850466971
423
py
Python
examples/pade_agent/run_master.py
bressanmarcos/pade-fmi
e3c7a4a5c60bcd3afc8070465640c5aa8051380a
[ "MIT" ]
null
null
null
examples/pade_agent/run_master.py
bressanmarcos/pade-fmi
e3c7a4a5c60bcd3afc8070465640c5aa8051380a
[ "MIT" ]
null
null
null
examples/pade_agent/run_master.py
bressanmarcos/pade-fmi
e3c7a4a5c60bcd3afc8070465640c5aa8051380a
[ "MIT" ]
1
2020-12-11T04:09:49.000Z
2020-12-11T04:09:49.000Z
import matplotlib.pyplot as plt import numpy as np from pyfmi import load_fmu model = load_fmu('./PadeSlave.fmu') inputs = ('inputVariable', lambda t: 5. * np.cos(t)) simulation = model.simulate(final_time=30, input=inputs) plt.plot(simulation['time'], simulation['inputVariable']) plt.plot(simulation['time'], simula...
26.4375
58
0.742317
import matplotlib.pyplot as plt import numpy as np from pyfmi import load_fmu model = load_fmu('./PadeSlave.fmu') inputs = ('inputVariable', lambda t: 5. * np.cos(t)) simulation = model.simulate(final_time=30, input=inputs) plt.plot(simulation['time'], simulation['inputVariable']) plt.plot(simulation['time'], simula...
0
0
0
1b433d882adc6a9898daff097cf811d91e1207bd
40,416
py
Python
Tools/ResizePic/nnedi3_resample.py
capric98/macOS-Miscellaneous
0b3a42bfd5aad2a4477c0e220c5c55e56cda2e57
[ "WTFPL" ]
1
2021-06-21T17:30:22.000Z
2021-06-21T17:30:22.000Z
Tools/ResizePic/nnedi3_resample.py
capric98/macOS-Miscellaneous
0b3a42bfd5aad2a4477c0e220c5c55e56cda2e57
[ "WTFPL" ]
null
null
null
Tools/ResizePic/nnedi3_resample.py
capric98/macOS-Miscellaneous
0b3a42bfd5aad2a4477c0e220c5c55e56cda2e57
[ "WTFPL" ]
null
null
null
# Requirements: # - fmtc # - nnedi3 # From: # - https://github.com/mawen1250/VapourSynth-script # - https://github.com/HomeOfVapourSynthEvolution/mvsfunc import vapoursynth as vs import math ## Gamma conversion functions from HAvsFunc-r18 # Convert the luma channel to linear light # Convert back a clip t...
39.584721
677
0.606715
# Requirements: # - fmtc # - nnedi3 # From: # - https://github.com/mawen1250/VapourSynth-script # - https://github.com/HomeOfVapourSynthEvolution/mvsfunc import vapoursynth as vs import math def SetColorSpace(clip, ChromaLocation=None, ColorRange=None, Primaries=None, Matrix=None, Transfer=None): # Set VS ...
39,577
0
341
330a2345fb075320f63417f0ddce382a5a7b8c85
1,243
py
Python
teamlogic/migrations/0004_auto_20170317_1729.py
SarFootball/backend
9c51118becf34085dfd9bf8cb1c765631839a43b
[ "Apache-2.0" ]
11
2017-07-05T20:03:00.000Z
2018-09-19T17:18:26.000Z
teamlogic/migrations/0004_auto_20170317_1729.py
SarFootball/backend
9c51118becf34085dfd9bf8cb1c765631839a43b
[ "Apache-2.0" ]
50
2016-07-15T16:21:03.000Z
2018-04-17T11:18:06.000Z
teamlogic/migrations/0004_auto_20170317_1729.py
SarFootball/backend
9c51118becf34085dfd9bf8cb1c765631839a43b
[ "Apache-2.0" ]
6
2017-06-23T14:53:38.000Z
2022-01-03T12:38:46.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-03-17 17:29 from __future__ import unicode_literals from django.db import migrations, models
30.317073
106
0.583266
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-03-17 17:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teamlogic', '0003_auto_20170316_1536'), ] operations = [ migrations.AddField...
0
1,065
23
489ac134887d5f6319601625cffa35d5b3daae5d
9,635
py
Python
EZ/parameter.py
Alex6022/EZ
c90d13b78b3fb67fd191700965e0827ee40eccbf
[ "MIT" ]
null
null
null
EZ/parameter.py
Alex6022/EZ
c90d13b78b3fb67fd191700965e0827ee40eccbf
[ "MIT" ]
null
null
null
EZ/parameter.py
Alex6022/EZ
c90d13b78b3fb67fd191700965e0827ee40eccbf
[ "MIT" ]
2
2021-01-26T16:57:26.000Z
2021-03-21T18:04:25.000Z
import numpy as np import EZ.stderr as stderr
24.516539
72
0.532745
import numpy as np import EZ.stderr as stderr class Parameter(): def __init__(self, x, y, name="", unit="", scale=1, xlabel=""): self.name = name self.unit = unit self.scale = scale self.x = x self.y = y self.fit_x = None self.fit_y = None self.mode...
8,655
-3
928
d26b10ff6669fa3fb71b08771c9e2a65a51f7bb3
9,074
py
Python
deep_coach.py
jendelel/rhl-algs
d5b8779d7e271265d4f0bfcb3602bc56958e3eb3
[ "Apache-2.0" ]
2
2019-03-30T23:29:10.000Z
2019-04-05T21:54:21.000Z
deep_coach.py
jendelel/rhl-algs
d5b8779d7e271265d4f0bfcb3602bc56958e3eb3
[ "Apache-2.0" ]
3
2019-03-29T11:23:17.000Z
2020-12-28T02:00:17.000Z
deep_coach.py
jendelel/rhl-algs
d5b8779d7e271265d4f0bfcb3602bc56958e3eb3
[ "Apache-2.0" ]
null
null
null
from PyQt5 import QtGui, QtCore, QtWidgets from collections import namedtuple import time import random import torch import torch.nn as nn import torch.nn.functional as F from utils import utils HumanFeedback = namedtuple('HumanFeedback', ['feedback_value']) SavedAction = namedtuple('SavedAction', ['state', 'action', ...
45.144279
119
0.622548
from PyQt5 import QtGui, QtCore, QtWidgets from collections import namedtuple import time import random import torch import torch.nn as nn import torch.nn.functional as F from utils import utils HumanFeedback = namedtuple('HumanFeedback', ['feedback_value']) SavedAction = namedtuple('SavedAction', ['state', 'action', ...
8,167
28
439
07b7f98b58a60c6fd215e2e961645309aca54a73
7,048
py
Python
BogalSolver.py
NAU-OSS/CS499_Group_7
8986ca82410b907b47f6eeca53ae382031442481
[ "MIT" ]
1
2018-09-27T15:48:10.000Z
2018-09-27T15:48:10.000Z
BogalSolver.py
NAU-OSS/CS499_Group_7
8986ca82410b907b47f6eeca53ae382031442481
[ "MIT" ]
3
2018-09-25T16:15:13.000Z
2018-10-04T02:54:51.000Z
BogalSolver.py
NAU-OSS/CS499_Group_7
8986ca82410b907b47f6eeca53ae382031442481
[ "MIT" ]
5
2018-09-25T15:30:40.000Z
2018-10-08T05:00:38.000Z
import sys, random, string, time rawBoard = '' moves = 0 # size -> int # generate board of size size x size filled with random chars # @returns none # textFile -> string # loads a board from a text file # @returns board in 2D list form # board -> 2D array # prints out the bogal board # coordinate -> ...
34.048309
112
0.588394
import sys, random, string, time rawBoard = '' moves = 0 # size -> int # generate board of size size x size filled with random chars # @returns none def generateBoard(size): outFile = 'test.txt' out = open(outFile, 'w') charlist = string.ascii_uppercase for z in range(0, size): line...
5,926
0
211
d39b40d76ad390bb6e4fffa2f6e2fbcdc65ce596
65
py
Python
control flow/functions.py
karan1276/learning-python
9f0791370fbdf9e1d5b94ef874f8eb403d34c22c
[ "MIT" ]
null
null
null
control flow/functions.py
karan1276/learning-python
9f0791370fbdf9e1d5b94ef874f8eb403d34c22c
[ "MIT" ]
null
null
null
control flow/functions.py
karan1276/learning-python
9f0791370fbdf9e1d5b94ef874f8eb403d34c22c
[ "MIT" ]
null
null
null
myFunc("That's neat")
13
29
0.646154
def myFunc(str = "yo world"): print str myFunc("That's neat")
20
0
22
6ff315ad8982585ca6bf135699b88f03f7a8eb4a
2,482
py
Python
osism/plugins/routeros.py
osism/python-osism
cb4f74501f92fceab1b803d4990ef20335bb7ca1
[ "Apache-2.0" ]
null
null
null
osism/plugins/routeros.py
osism/python-osism
cb4f74501f92fceab1b803d4990ef20335bb7ca1
[ "Apache-2.0" ]
28
2022-02-03T16:45:11.000Z
2022-03-29T13:47:33.000Z
osism/plugins/routeros.py
osism/python-osism
cb4f74501f92fceab1b803d4990ef20335bb7ca1
[ "Apache-2.0" ]
null
null
null
import logging import os from netmiko import ConnectHandler from paramiko import AutoAddPolicy, SSHClient from routeros_diff.parser import RouterOSConfig from scp import SCPClient
27.577778
94
0.698227
import logging import os from netmiko import ConnectHandler from paramiko import AutoAddPolicy, SSHClient from routeros_diff.parser import RouterOSConfig from scp import SCPClient def get_netmiko_connection(device): parameters = get_parameters(device) result = ConnectHandler(device_type="mikrotik_routeros", ...
2,157
0
138
31b9775840bb061015540ecd002cded13941b01b
3,596
py
Python
tests/test_pytest_pydocstyle.py
henry0312/pytest-docstyle
cc78c65804f87a9fb6386d222a058a1dd593411d
[ "MIT" ]
9
2018-06-02T14:02:26.000Z
2019-11-28T16:00:02.000Z
tests/test_pytest_pydocstyle.py
henry0312/pytest-docstyle
cc78c65804f87a9fb6386d222a058a1dd593411d
[ "MIT" ]
9
2018-01-15T04:09:48.000Z
2019-12-11T05:19:59.000Z
tests/test_pytest_pydocstyle.py
henry0312/pytest-docstyle
cc78c65804f87a9fb6386d222a058a1dd593411d
[ "MIT" ]
3
2017-12-27T02:33:30.000Z
2018-06-09T20:11:45.000Z
import pytest_pydocstyle # https://docs.pytest.org/en/5.2.2/writing_plugins.html#testing-plugins pytest_plugins = ["pytester"]
25.870504
72
0.603448
import pytest_pydocstyle # https://docs.pytest.org/en/5.2.2/writing_plugins.html#testing-plugins pytest_plugins = ["pytester"] def test_option_false(testdir): p = testdir.makepyfile(""" def test_option(request): flag = request.config.getoption('pydocstyle') assert flag is False ...
3,024
15
419
008790803e7b775bedbd07bf57d31032aeb4bcd3
217
py
Python
db/manage.py
yabirgb/hilos
e3a90aa21c4d6f7e1c0301bf815ceb2a57c156f8
[ "MIT" ]
1
2020-04-28T08:01:27.000Z
2020-04-28T08:01:27.000Z
db/manage.py
yabirgb/hilos
e3a90aa21c4d6f7e1c0301bf815ceb2a57c156f8
[ "MIT" ]
1
2021-06-01T22:03:58.000Z
2021-06-01T22:03:58.000Z
db/manage.py
yabirgb/hilos
e3a90aa21c4d6f7e1c0301bf815ceb2a57c156f8
[ "MIT" ]
null
null
null
from peewee import * import peeweedbevolve from models_data import Tweet, Branch, calldb db = calldb() create_tables()
14.466667
45
0.709677
from peewee import * import peeweedbevolve from models_data import Tweet, Branch, calldb db = calldb() def create_tables(): calldb() db.evolve([Tweet, Branch]) print("Tables created") create_tables()
71
0
23
862dc8bb6d24ecac3d2901e91126649fc31737e3
10,931
py
Python
friend/tests.py
HumphreyLu6/SpongeBook
9d12e4be0ffc21bb2114df785f4278668a695f39
[ "Apache-2.0" ]
1
2020-04-01T21:37:49.000Z
2020-04-01T21:37:49.000Z
friend/tests.py
HumphreyLu6/SpongeBook
9d12e4be0ffc21bb2114df785f4278668a695f39
[ "Apache-2.0" ]
7
2020-03-06T00:20:30.000Z
2020-04-04T21:04:43.000Z
friend/tests.py
HumphreyLu6/SpongeBook
9d12e4be0ffc21bb2114df785f4278668a695f39
[ "Apache-2.0" ]
1
2020-07-08T07:29:49.000Z
2020-07-08T07:29:49.000Z
import json import base64 from rest_framework import status from rest_framework.test import APITestCase from rest_framework.authtoken.models import Token from .models import User # Create your tests here. ACCEPT_STATUS = "A" REJECT_STATUS = "R" UNFRIEND_STATUS = "R"
38.625442
87
0.519623
import json import base64 from rest_framework import status from rest_framework.test import APITestCase from rest_framework.authtoken.models import Token from .models import User # Create your tests here. ACCEPT_STATUS = "A" REJECT_STATUS = "R" UNFRIEND_STATUS = "R" class FriendTestCase(APITestCase): def setUp(s...
10,464
13
184
3836be24e6da9b7521e2fa8859eb76a407788328
4,926
py
Python
Crawler/Install Files/eyeD3-0.7.4/src/eyed3/plugins/lameinfo.py
hanvo/MusicCloud
b91b9481df087955fcb09f472308c9ad1a94ba94
[ "BSD-3-Clause" ]
null
null
null
Crawler/Install Files/eyeD3-0.7.4/src/eyed3/plugins/lameinfo.py
hanvo/MusicCloud
b91b9481df087955fcb09f472308c9ad1a94ba94
[ "BSD-3-Clause" ]
null
null
null
Crawler/Install Files/eyeD3-0.7.4/src/eyed3/plugins/lameinfo.py
hanvo/MusicCloud
b91b9481df087955fcb09f472308c9ad1a94ba94
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ################################################################################ # Copyright (C) 2009 Travis Shirk <travis@pobox.com> # # 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 So...
43.59292
80
0.556029
# -*- coding: utf-8 -*- ################################################################################ # Copyright (C) 2009 Travis Shirk <travis@pobox.com> # # 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 So...
3,079
556
23
5ea65d4873a5243d2a44e0d39d0611c949e980c6
3,307
py
Python
clothing_recommender_project.py
rb2001/Clothing_Recommender
48399911686e7cbb8c830340338ca59d0475815c
[ "Unlicense" ]
null
null
null
clothing_recommender_project.py
rb2001/Clothing_Recommender
48399911686e7cbb8c830340338ca59d0475815c
[ "Unlicense" ]
null
null
null
clothing_recommender_project.py
rb2001/Clothing_Recommender
48399911686e7cbb8c830340338ca59d0475815c
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- """Clothing_Recommender Project .ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1nw0ewNdkx8o3WULAp2ynhHpbq1kVq7YZ Clean the data and use input """ ## Import and Organize Data ## import pandas as pd import numpy as np ...
35.180851
195
0.752646
# -*- coding: utf-8 -*- """Clothing_Recommender Project .ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1nw0ewNdkx8o3WULAp2ynhHpbq1kVq7YZ Clean the data and use input """ ## Import and Organize Data ## import pandas as pd import numpy as np ...
0
0
0
3d7273fc6bb41c58edc1197e7e7b8b7f7da08c10
2,773
py
Python
src/features/build_rtree.py
mingxiiii/trajectory-search
ac3c751a47be8f6a6cc389d53e5c001c01c4ca8f
[ "FTL" ]
null
null
null
src/features/build_rtree.py
mingxiiii/trajectory-search
ac3c751a47be8f6a6cc389d53e5c001c01c4ca8f
[ "FTL" ]
null
null
null
src/features/build_rtree.py
mingxiiii/trajectory-search
ac3c751a47be8f6a6cc389d53e5c001c01c4ca8f
[ "FTL" ]
null
null
null
from rtree.index import Rtree from src.features.helper import * import sys import logging import time if __name__ == '__main__': train_data = sys.argv[1] q_size = int(sys.argv[2]) main(train_data, q_size)
34.6625
89
0.647313
from rtree.index import Rtree from src.features.helper import * import sys import logging import time def main(train, qgram_size): logger = logging.getLogger('build_rtree') logger.setLevel(logging.DEBUG) fh = logging.FileHandler('./log/%s' % train) fh.setLevel(logging.DEBUG) # create console hand...
2,530
0
23
d65bca6881e00c4d8e00349db6bc84adc3dfb3d6
141
py
Python
wsgi.py
brettrhenderson/WhiteElephant
e63b7ceae22e7da7b0f5b2b0775308da34b42e3b
[ "MIT" ]
null
null
null
wsgi.py
brettrhenderson/WhiteElephant
e63b7ceae22e7da7b0f5b2b0775308da34b42e3b
[ "MIT" ]
null
null
null
wsgi.py
brettrhenderson/WhiteElephant
e63b7ceae22e7da7b0f5b2b0775308da34b42e3b
[ "MIT" ]
null
null
null
from app import app import logging logging.basicConfig(level=logging.WARNING) if __name__ == "__main__": app.debug = True app.run()
17.625
42
0.723404
from app import app import logging logging.basicConfig(level=logging.WARNING) if __name__ == "__main__": app.debug = True app.run()
0
0
0
f7cfaa20a69f2a7b5703c65f15095a00399bcd2b
653
py
Python
var/spack/repos/builtin/packages/r-affypdnn/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/r-affypdnn/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/r-affypdnn/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RAffypdnn(RPackage): """The package contains functions to perform the PDNN method desc...
32.65
73
0.709035
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RAffypdnn(RPackage): """The package contains functions to perform the PDNN method desc...
0
0
0
d18a94277219f1495767914e43a9e25e30e24490
1,605
py
Python
modules/population_initialization.py
EmanueleMusumeci/MMPI-2_GeneticAlgorithm_Clustering_no_data
32a18f080387f296a75c99190abb4b0df1cd4779
[ "CC0-1.0" ]
null
null
null
modules/population_initialization.py
EmanueleMusumeci/MMPI-2_GeneticAlgorithm_Clustering_no_data
32a18f080387f296a75c99190abb4b0df1cd4779
[ "CC0-1.0" ]
null
null
null
modules/population_initialization.py
EmanueleMusumeci/MMPI-2_GeneticAlgorithm_Clustering_no_data
32a18f080387f296a75c99190abb4b0df1cd4779
[ "CC0-1.0" ]
null
null
null
####################################################################### """ @author: Emanuele Musumeci (https://github.com/EmanueleMusumeci) PopulationInitializer abstract class and basic initializer that generates a population of random binary strings of a given length """ ######################################...
32.1
123
0.658567
####################################################################### """ @author: Emanuele Musumeci (https://github.com/EmanueleMusumeci) PopulationInitializer abstract class and basic initializer that generates a population of random binary strings of a given length """ ######################################...
568
194
123
915aa51395b0122e7d71f533efe1d0daf8c758c5
14,691
py
Python
pycondor/dagman.py
karlhornlund/pycondor
7f0dd59c776697d402515b78b35c5fd6084c2c5c
[ "MIT" ]
1
2020-01-21T10:25:25.000Z
2020-01-21T10:25:25.000Z
pycondor/dagman.py
karlhornlund/pycondor
7f0dd59c776697d402515b78b35c5fd6084c2c5c
[ "MIT" ]
null
null
null
pycondor/dagman.py
karlhornlund/pycondor
7f0dd59c776697d402515b78b35c5fd6084c2c5c
[ "MIT" ]
null
null
null
import os import subprocess from .utils import checkdir, get_condor_version, requires_command from .basenode import BaseNode from .job import Job def _iter_job_args(job): """ Iterates over Job args list. Yields the name (and JobArg) for each node to be used when adding job to a Dagman (i.e. the name in...
35.744526
90
0.57137
import os import subprocess from .utils import checkdir, get_condor_version, requires_command from .basenode import BaseNode from .job import Job def _get_subdag_string(dagman): if not isinstance(dagman, Dagman): raise TypeError( 'Expecting a Dagman object, got {}'.format(type(dagman)))...
1,645
0
211
875425da3ed2a31653ab5479cf56429d96c1a09a
4,123
py
Python
src/napari_tissuemaps_interface/lazy_array.py
fractal-napari-plugins-collection/napari_tissuemaps_interface
4cba72a6193b1853c8534ccecf5fc0ace5202fb3
[ "BSD-3-Clause" ]
null
null
null
src/napari_tissuemaps_interface/lazy_array.py
fractal-napari-plugins-collection/napari_tissuemaps_interface
4cba72a6193b1853c8534ccecf5fc0ace5202fb3
[ "BSD-3-Clause" ]
null
null
null
src/napari_tissuemaps_interface/lazy_array.py
fractal-napari-plugins-collection/napari_tissuemaps_interface
4cba72a6193b1853c8534ccecf5fc0ace5202fb3
[ "BSD-3-Clause" ]
null
null
null
""" Module containing a numpy-like array which supports lazy reading of tiled 2D-image data. """ import abc import dask.array as da import numpy as np class LazyArray: """ An abstract class of a numpy-like array which supports lazy reading of tiled 2D-image data. The class represents a custom array contai...
36.486726
96
0.600049
""" Module containing a numpy-like array which supports lazy reading of tiled 2D-image data. """ import abc import dask.array as da import numpy as np class LazyArray: """ An abstract class of a numpy-like array which supports lazy reading of tiled 2D-image data. The class represents a custom array contai...
0
0
0
dec18f38e4f16ec25a933f6494d2b368ad15e5be
305
py
Python
core/management/commands/fail_repeat.py
Suleymanov2006/ansible-manager
57397c12e49611a5cc6197ecd184222caabf1361
[ "MIT" ]
13
2017-03-18T06:03:43.000Z
2020-02-15T03:42:28.000Z
core/management/commands/fail_repeat.py
Suleymanov2006/ansible-manager
57397c12e49611a5cc6197ecd184222caabf1361
[ "MIT" ]
78
2017-03-17T18:16:32.000Z
2018-10-26T11:58:20.000Z
core/management/commands/fail_repeat.py
Suleymanov2006/ansible-manager
57397c12e49611a5cc6197ecd184222caabf1361
[ "MIT" ]
6
2017-03-19T13:41:29.000Z
2019-09-11T21:36:52.000Z
from django.core.management.base import BaseCommand from core.datatools.fail_repeat import FailRepeater
21.785714
51
0.652459
from django.core.management.base import BaseCommand from core.datatools.fail_repeat import FailRepeater class Command(BaseCommand): def handle(self, *args, **options): try: repeater = FailRepeater() repeater.run() except KeyboardInterrupt: pass
143
6
50
985f4df231084ec6e8ef79a8e7a70ed728a9ce86
634
py
Python
epg_grabber/sites/auth/starhubtvplus_auth.py
akmalharith/epg-grabber
ee6bdd20f7cbb4c780d96a8ce0fe2ca68b553c33
[ "MIT" ]
1
2022-03-16T00:42:21.000Z
2022-03-16T00:42:21.000Z
epg_grabber/sites/auth/starhubtvplus_auth.py
akmalharith/epg-grabber
ee6bdd20f7cbb4c780d96a8ce0fe2ca68b553c33
[ "MIT" ]
null
null
null
epg_grabber/sites/auth/starhubtvplus_auth.py
akmalharith/epg-grabber
ee6bdd20f7cbb4c780d96a8ce0fe2ca68b553c33
[ "MIT" ]
1
2022-03-17T17:16:30.000Z
2022-03-17T17:16:30.000Z
from typing import Dict import requests from config.env import starhubtvplus_app_key, starhubtvplus_client_uuid
30.190476
92
0.656151
from typing import Dict import requests from config.env import starhubtvplus_app_key, starhubtvplus_client_uuid def get_session() -> Dict[str, str]: try: response = requests.get( "https://api.one.accedo.tv/session?appKey={application_key}&uuid={uuid}".format( application_key=st...
498
0
23
73d5971c32585318885749af3454e804597d68f8
11,142
py
Python
ID18_U18_ONE_LENS/7keV_UndSource_RectSlit_R200um_MultiMode/run7keV_h.py
srio/paper-transfocators-resources
917d8b4114056f62c84b295579e55bf5f0b56b6b
[ "MIT" ]
1
2021-03-25T15:34:56.000Z
2021-03-25T15:34:56.000Z
ID18_U18_ONE_LENS/7keV_UndSource_RectSlit_R200um_MultiMode/run7keV_h.py
srio/paper-transfocators-resources
917d8b4114056f62c84b295579e55bf5f0b56b6b
[ "MIT" ]
null
null
null
ID18_U18_ONE_LENS/7keV_UndSource_RectSlit_R200um_MultiMode/run7keV_h.py
srio/paper-transfocators-resources
917d8b4114056f62c84b295579e55bf5f0b56b6b
[ "MIT" ]
null
null
null
# # Import section # import numpy from syned.beamline.beamline_element import BeamlineElement from syned.beamline.element_coordinates import ElementCoordinates from wofry.propagator.propagator import PropagationManager, PropagationElements, PropagationParameters from wofry.propagator.wavefront1D.generic_wavefront imp...
36.29316
218
0.653114
# # Import section # import numpy from syned.beamline.beamline_element import BeamlineElement from syned.beamline.element_coordinates import ElementCoordinates from wofry.propagator.propagator import PropagationManager, PropagationElements, PropagationParameters from wofry.propagator.wavefront1D.generic_wavefront imp...
7,838
0
69
bfa9580d8d9a5ab354f53be8a0dc88c93072abd5
3,302
py
Python
tests/test_bounding_box_query.py
HamutalCohen3/anyway
d130fc37ed51f838b53a79a641fe2706f2a29c6a
[ "BSD-3-Clause" ]
null
null
null
tests/test_bounding_box_query.py
HamutalCohen3/anyway
d130fc37ed51f838b53a79a641fe2706f2a29c6a
[ "BSD-3-Clause" ]
null
null
null
tests/test_bounding_box_query.py
HamutalCohen3/anyway
d130fc37ed51f838b53a79a641fe2706f2a29c6a
[ "BSD-3-Clause" ]
null
null
null
import unittest from models import Marker # for Marker.bounding_box_query import datetime # This tests year 2014 accidents as this is the current example git data for testing # Once this changes to another year or to the current year's accidents (as should be) un-comment lines 11,13,15 # and change both 2014 and 2015...
41.797468
113
0.640521
import unittest from models import Marker # for Marker.bounding_box_query import datetime # This tests year 2014 accidents as this is the current example git data for testing # Once this changes to another year or to the current year's accidents (as should be) un-comment lines 11,13,15 # and change both 2014 and 2015...
2,318
0
220
ba4934ddd31bff45e2438851f4120f4932853815
2,513
py
Python
service/learner/brains/tensor_nest_test.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
213
2021-06-11T01:15:16.000Z
2022-02-25T16:18:57.000Z
service/learner/brains/tensor_nest_test.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
32
2021-06-17T17:58:54.000Z
2022-02-02T05:58:10.000Z
service/learner/brains/tensor_nest_test.py
lcrh/falken
7545431c7bfa34a9b45c2243cae40dbb58adefaa
[ "Apache-2.0" ]
28
2021-06-17T17:34:21.000Z
2022-03-24T14:05:20.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.810127
77
0.569439
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0
0
0
2a4e1bcd422d71f49eec11d6fa5a7c3eff0d4a8c
1,868
py
Python
ads/exercises/dynamic_programming/longest_palindromic_subsequence.py
Aminul-Momin/Algorithms_and_Data_Structures
cba73b36b73ad92fb34bc34a0e03503f7a137713
[ "MIT" ]
null
null
null
ads/exercises/dynamic_programming/longest_palindromic_subsequence.py
Aminul-Momin/Algorithms_and_Data_Structures
cba73b36b73ad92fb34bc34a0e03503f7a137713
[ "MIT" ]
null
null
null
ads/exercises/dynamic_programming/longest_palindromic_subsequence.py
Aminul-Momin/Algorithms_and_Data_Structures
cba73b36b73ad92fb34bc34a0e03503f7a137713
[ "MIT" ]
null
null
null
""" Longest Palindromic Subsequence Given a string s, find the longest palindromic subsequence's length in s. A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements. - Example 1: - Input: s = "bbbab" - Output:...
30.129032
82
0.619379
""" Longest Palindromic Subsequence Given a string s, find the longest palindromic subsequence's length in s. A subsequence is a sequence that can be derived from another sequence by deleting some or no elements without changing the order of the remaining elements. - Example 1: - Input: s = "bbbab" - Output:...
918
0
22
a2067ed33a3a1be96603d79e2e8692eb71708f29
179
py
Python
23/04/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
23/04/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
70
2017-06-01T11:02:51.000Z
2017-06-30T00:35:32.000Z
23/04/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
import statistics data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5] print(statistics.mean(data)) # 平均 print(statistics.median(data)) # 中央値 print(statistics.variance(data)) # 標本標準分散
29.833333
47
0.698324
import statistics data = [2.75, 1.75, 1.25, 0.25, 0.5, 1.25, 3.5] print(statistics.mean(data)) # 平均 print(statistics.median(data)) # 中央値 print(statistics.variance(data)) # 標本標準分散
0
0
0
41e91c81754e039394c5dd4c0257dd388ee3fa1c
134
py
Python
src/pyhid_usb_relay/exceptions.py
JPEWdev/pyhid-usb-relay
287f4e6b992634c7273512b92da31ff4daafa058
[ "MIT" ]
5
2021-09-14T16:52:41.000Z
2022-02-13T12:28:58.000Z
src/pyhid_usb_relay/exceptions.py
JPEWdev/pyhid-usb-relay
287f4e6b992634c7273512b92da31ff4daafa058
[ "MIT" ]
1
2022-03-05T12:14:50.000Z
2022-03-05T12:14:50.000Z
src/pyhid_usb_relay/exceptions.py
JPEWdev/pyhid-usb-relay
287f4e6b992634c7273512b92da31ff4daafa058
[ "MIT" ]
1
2022-01-19T13:21:33.000Z
2022-01-19T13:21:33.000Z
# Copyright 2021 Joshua Watt <JPEWhacker@gmail.com> # # SPDX-License-Identifier: MIT
16.75
51
0.761194
# Copyright 2021 Joshua Watt <JPEWhacker@gmail.com> # # SPDX-License-Identifier: MIT class DeviceNotFoundError(Exception): pass
0
25
23
25854b801aebe4a8a85e849fa0d7329bfed9bddd
557
py
Python
blog/entries/models.py
vinothsundararajan/Django_Blog
a897120991293b3268220b429ce3de79537b565b
[ "MIT" ]
1
2020-05-01T12:24:52.000Z
2020-05-01T12:24:52.000Z
blog/entries/models.py
vinothsundararajan/Django_Blog
a897120991293b3268220b429ce3de79537b565b
[ "MIT" ]
10
2020-05-03T10:31:02.000Z
2022-03-12T00:26:51.000Z
blog/entries/models.py
vinothsundararajan/Django_Blog
a897120991293b3268220b429ce3de79537b565b
[ "MIT" ]
1
2020-05-03T10:11:32.000Z
2020-05-03T10:11:32.000Z
from django.db import models from django.contrib.auth.models import User from ckeditor_uploader.fields import RichTextUploadingField # Create your models here.
34.8125
94
0.748654
from django.db import models from django.contrib.auth.models import User from ckeditor_uploader.fields import RichTextUploadingField # Create your models here. class Entry(models.Model): entry_title = models.CharField(max_length=50) entry_text = RichTextUploadingField() entry_date = models.DateTimeField(au...
34
336
22
4c352e9eabe94aab22b090b6cc0b2abc3b67794c
3,557
py
Python
wagtail/contrib/redirects/forms.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
1
2022-02-09T05:25:30.000Z
2022-02-09T05:25:30.000Z
wagtail/contrib/redirects/forms.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/redirects/forms.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
import os from django import forms from django.utils.translation import gettext_lazy as _ from wagtail.admin.widgets import AdminPageChooser from wagtail.contrib.redirects.models import Redirect from wagtail.models import Site
32.633028
93
0.623278
import os from django import forms from django.utils.translation import gettext_lazy as _ from wagtail.admin.widgets import AdminPageChooser from wagtail.contrib.redirects.models import Redirect from wagtail.models import Site class RedirectForm(forms.ModelForm): site = forms.ModelChoiceField( label=_("...
1,161
2,095
69
54aff4a4ff3deac3f93e8a6c1ecd728b45da102b
11,643
py
Python
fpi/assignment2/operations.py
rrrichter/ufrgs
6a1de03afb5af0ff48d0e630a501c1db3ec2591e
[ "MIT" ]
null
null
null
fpi/assignment2/operations.py
rrrichter/ufrgs
6a1de03afb5af0ff48d0e630a501c1db3ec2591e
[ "MIT" ]
null
null
null
fpi/assignment2/operations.py
rrrichter/ufrgs
6a1de03afb5af0ff48d0e630a501c1db3ec2591e
[ "MIT" ]
1
2018-06-24T18:19:23.000Z
2018-06-24T18:19:23.000Z
import numpy as np import cv2 import copy from Tkinter import * from PIL import Image from PIL import ImageTk import tkFileDialog root = Tk() panelA = None panelB = None img = None img2 = None img3 = None ConvolutionLabel = Label(root, text="Convolute").grid(row=0,column=0) Conv00Entry = Entry(root, bd =5) Conv01Ent...
28.962687
429
0.675341
import numpy as np import cv2 import copy from Tkinter import * from PIL import Image from PIL import ImageTk import tkFileDialog def selectImage(): global panelA, panelB, panelC global img, img2 path = tkFileDialog.askopenfilename() if len(path) > 0: #img = loadImage('test_images/Space_187k.jpg') #img2 = l...
8,580
0
437
84afb68b2e52f3070efd8c0ae2d94c912cba6f2a
59,900
py
Python
vendor/mari/1.4v1/_ocio_toolbar.py
mjtitchener-fn/OpenColorIO
00b5362442b9fe954c4b1161fe0cec621fcf1915
[ "BSD-3-Clause" ]
628
2018-08-11T02:18:36.000Z
2022-03-31T15:05:23.000Z
src/mari/1.4v1/_ocio_toolbar.py
dictoon/OpenColorIO
64adcad300adfd166280d2e7b1fb5c3ce7dca482
[ "BSD-3-Clause" ]
655
2019-04-16T15:15:31.000Z
2022-03-31T18:05:52.000Z
src/mari/1.4v1/_ocio_toolbar.py
dictoon/OpenColorIO
64adcad300adfd166280d2e7b1fb5c3ce7dca482
[ "BSD-3-Clause" ]
181
2018-12-22T15:39:52.000Z
2022-03-22T09:52:27.000Z
#------------------------------------------------------------------------------- # Post processing (color management) related Mari scripts # coding: utf-8 # Copyright (c) 2011 The Foundry Visionmongers Ltd. All Rights Reserved. #------------------------------------------------------------------------------- import ma...
46.796875
188
0.581953
#------------------------------------------------------------------------------- # Post processing (color management) related Mari scripts # coding: utf-8 # Copyright (c) 2011 The Foundry Visionmongers Ltd. All Rights Reserved. #------------------------------------------------------------------------------- import ma...
51,709
-1
1,311
3adaa59898dd69e5ed1505298901761c27f40382
3,367
py
Python
fixit/common/tests/test_imports.py
dkgi/Fixit
1a68680dac71b0b332da9ccb0b8b51161f270130
[ "Apache-2.0" ]
null
null
null
fixit/common/tests/test_imports.py
dkgi/Fixit
1a68680dac71b0b332da9ccb0b8b51161f270130
[ "Apache-2.0" ]
null
null
null
fixit/common/tests/test_imports.py
dkgi/Fixit
1a68680dac71b0b332da9ccb0b8b51161f270130
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import shutil from pathlib import Path from libcst.testing.utils import UnitTest from fixit.common.config import ( CACHE as CO...
37
96
0.716068
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os import shutil from pathlib import Path from libcst.testing.utils import UnitTest from fixit.common.config import ( CACHE as CO...
2,250
13
205
3bf448d8e67ca350d1128281134e29fbeb3ed855
1,603
py
Python
src/network/addrthread.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
1,583
2015-01-01T13:03:20.000Z
2022-03-31T23:10:00.000Z
src/network/addrthread.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
841
2015-01-01T14:51:48.000Z
2022-03-25T06:45:14.000Z
src/network/addrthread.py
kaue/PyBitmessage
7b8bf082ff0d569f507d65e087000e4e3d6ccf3f
[ "MIT", "BSD-2-Clause-FreeBSD" ]
482
2015-01-07T00:53:25.000Z
2022-03-24T15:58:12.000Z
""" Announce addresses as they are received from other hosts """ import Queue import state from helper_random import randomshuffle from network.assemble import assemble_addr from network.connectionpool import BMConnectionPool from queues import addrQueue from threads import StoppableThread class AddrThread(Stoppable...
32.714286
74
0.535246
""" Announce addresses as they are received from other hosts """ import Queue import state from helper_random import randomshuffle from network.assemble import assemble_addr from network.connectionpool import BMConnectionPool from queues import addrQueue from threads import StoppableThread class AddrThread(Stoppable...
1,173
0
27
e43a18ae3fda6f1eb82d9a2621cb84585c33fe6f
25
py
Python
branch.py
Audrey-Newman/cs3240-labdemo
9bc1562616969bd6b7c4cfbbeb42766fb98c4d62
[ "MIT" ]
null
null
null
branch.py
Audrey-Newman/cs3240-labdemo
9bc1562616969bd6b7c4cfbbeb42766fb98c4d62
[ "MIT" ]
null
null
null
branch.py
Audrey-Newman/cs3240-labdemo
9bc1562616969bd6b7c4cfbbeb42766fb98c4d62
[ "MIT" ]
null
null
null
print("branches are fun")
25
25
0.76
print("branches are fun")
0
0
0
31947d277ef5f038f0c95f56a0c2e29cb0845520
271
py
Python
_game_chats/templatetags/custom_filters.py
cansarigol/game-chats
4b58e368cbb68126cfeeea2297c8b9bae5679916
[ "MIT" ]
1
2018-03-28T10:38:59.000Z
2018-03-28T10:38:59.000Z
_game_chats/templatetags/custom_filters.py
cansarigol/game-chats
4b58e368cbb68126cfeeea2297c8b9bae5679916
[ "MIT" ]
1
2018-02-21T14:11:15.000Z
2018-02-28T13:54:26.000Z
_game_chats/templatetags/custom_filters.py
cansarigol/game-chats
4b58e368cbb68126cfeeea2297c8b9bae5679916
[ "MIT" ]
null
null
null
from django import template register = template.Library() @register.filter(name='addcss')
22.583333
82
0.708487
from django import template register = template.Library() @register.filter(name='addcss') def addcss(field, css_addition): css_classes = field.field.widget.attrs.get('class', '') return field.as_widget(attrs={"class": "%s %s" % (css_classes, css_addition)})
154
0
22
da993499bc9ffd9e1ef582071f0dd064a15e6212
1,733
py
Python
wxbtool/data/variables.py
caiyunapp/wxbtool
7a019e1c0b9d454d07ed5cecbbf5ed00951d3ce7
[ "MIT" ]
3
2021-03-14T03:15:40.000Z
2021-09-30T16:32:52.000Z
wxbtool/data/variables.py
caiyunapp/wxbtool
7a019e1c0b9d454d07ed5cecbbf5ed00951d3ce7
[ "MIT" ]
null
null
null
wxbtool/data/variables.py
caiyunapp/wxbtool
7a019e1c0b9d454d07ed5cecbbf5ed00951d3ce7
[ "MIT" ]
1
2021-03-14T03:15:40.000Z
2021-03-14T03:15:40.000Z
# -*- coding: utf-8 -*- vars2d = [ '2m_temperature', '10m_u_component_of_wind', '10m_v_component_of_wind', 'total_cloud_cover', 'total_precipitation', 'toa_incident_solar_radiation', 'temperature_850hPa', ] vars3d = [ 'geopotential', 'temperature', 'specific_humidity', 'relative_humidity',...
27.951613
136
0.622043
# -*- coding: utf-8 -*- vars2d = [ '2m_temperature', '10m_u_component_of_wind', '10m_v_component_of_wind', 'total_cloud_cover', 'total_precipitation', 'toa_incident_solar_radiation', 'temperature_850hPa', ] vars3d = [ 'geopotential', 'temperature', 'specific_humidity', 'relative_humidity',...
350
0
23
cc8af49aa90076ada3fd9cdddb4cd4e13405a748
1,457
py
Python
steppy/controllers/base_controller.py
ygravrand/steppy
f1663da562243912afa7c016cf2aa517c20ed937
[ "BSD-3-Clause" ]
34
2016-12-13T14:46:53.000Z
2021-05-03T17:24:35.000Z
steppy/controllers/base_controller.py
ygravrand/steppy
f1663da562243912afa7c016cf2aa517c20ed937
[ "BSD-3-Clause" ]
3
2016-12-15T11:07:08.000Z
2022-01-23T10:09:04.000Z
steppy/controllers/base_controller.py
ygravrand/steppy
f1663da562243912afa7c016cf2aa517c20ed937
[ "BSD-3-Clause" ]
4
2017-02-11T14:02:45.000Z
2018-11-11T16:42:18.000Z
# -*- coding: utf-8 -*- """ StepPy :copyright: (c) 2016-2017 by Yann Gravrand. :license: BSD, see LICENSE for more details. """ from collections import OrderedDict
33.883721
88
0.612903
# -*- coding: utf-8 -*- """ StepPy :copyright: (c) 2016-2017 by Yann Gravrand. :license: BSD, see LICENSE for more details. """ from collections import OrderedDict class BaseController(object): def __init__(self, sequencer, console, port_name=''): self.sequencer = sequencer self.cons...
600
656
23