hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
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
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
1fb6aeab80a76c0b6ff20fb8d809d6b544dcedce
772
py
Python
python/dgllife/model/model_zoo/__init__.py
yxgu2353/dgl-lifesci
9f7d3bb6b78ecf44813e1eadbcad5fffd40998dc
[ "Apache-2.0" ]
null
null
null
python/dgllife/model/model_zoo/__init__.py
yxgu2353/dgl-lifesci
9f7d3bb6b78ecf44813e1eadbcad5fffd40998dc
[ "Apache-2.0" ]
null
null
null
python/dgllife/model/model_zoo/__init__.py
yxgu2353/dgl-lifesci
9f7d3bb6b78ecf44813e1eadbcad5fffd40998dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 # # Collection of model architectures # Molecular property prediction from .attentivefp_predictor import * from .gat_predictor import * from .gcn_predictor import * from .gin_predictor i...
23.393939
68
0.777202
c551b875a7a5a0936e17641d485dc4758922f6eb
35,624
py
Python
lib/kb_SPAdes/utils/spades_utils.py
qzzhang/kb_SPAdes
16592d6f56f2ac2d87cb32c59b552073fa917e59
[ "MIT" ]
null
null
null
lib/kb_SPAdes/utils/spades_utils.py
qzzhang/kb_SPAdes
16592d6f56f2ac2d87cb32c59b552073fa917e59
[ "MIT" ]
null
null
null
lib/kb_SPAdes/utils/spades_utils.py
qzzhang/kb_SPAdes
16592d6f56f2ac2d87cb32c59b552073fa917e59
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re import time import os import errno import numpy as np import zipfile import subprocess from pprint import pprint import uuid import copy import json import psutil from installed_clients.WorkspaceClient import Workspace from installed_clients.KBaseReportClient import KBaseReport from i...
42.61244
99
0.576157
41000ad5c2607d774be47cda1c733c007610c77e
3,982
py
Python
src/oci/autoscaling/models/threshold.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/autoscaling/models/threshold.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/autoscaling/models/threshold.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
32.112903
245
0.624561
11a0e77cf9b264d39b9b912c3ec96accd022a287
130
py
Python
core/views.py
mbarrientos/release-control
e6aa88ef3a938c034e5991e00d0b3f26c3cd6697
[ "MIT" ]
null
null
null
core/views.py
mbarrientos/release-control
e6aa88ef3a938c034e5991e00d0b3f26c3cd6697
[ "MIT" ]
null
null
null
core/views.py
mbarrientos/release-control
e6aa88ef3a938c034e5991e00d0b3f26c3cd6697
[ "MIT" ]
null
null
null
from django.views.generic import ListView from core.models import Release class ReleaseListView(ListView): model = Release
16.25
41
0.792308
70f69f4276c1900ec2182b4f9790128d0ae30d10
7,956
py
Python
tensorflow/python/kernel_tests/linalg/linear_operator_composition_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
9
2019-12-29T01:47:37.000Z
2021-12-21T13:47:41.000Z
tensorflow/python/kernel_tests/linalg/linear_operator_composition_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
1
2019-06-18T07:56:15.000Z
2019-06-18T07:56:15.000Z
tensorflow/python/kernel_tests/linalg/linear_operator_composition_test.py
PaulWang1905/tensorflow
ebf12d22b4801fb8dab5034cc94562bf7cc33fa0
[ "Apache-2.0" ]
5
2020-12-22T10:17:47.000Z
2021-05-06T14:14:52.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.517857
80
0.7182
d7f2a93c2bf95ac6938627a0cd4ac2b9c6887609
5,453
py
Python
tests/unit/core/test_reconcile.py
stefanhoelzl/synopse
07e5966b675d85d60e2e2484a62780a5735b2ed9
[ "MIT" ]
1
2021-03-09T23:04:28.000Z
2021-03-09T23:04:28.000Z
tests/unit/core/test_reconcile.py
stefanhoelzl/synopse
07e5966b675d85d60e2e2484a62780a5735b2ed9
[ "MIT" ]
null
null
null
tests/unit/core/test_reconcile.py
stefanhoelzl/synopse
07e5966b675d85d60e2e2484a62780a5735b2ed9
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, patch from synopse.core.component import Component, Index from synopse.core.reconcile import reconcile, \ reconcile_components, reconcile_dicts, reconcile_list ReconcileComponentsFn = "synopse.core.reconcile.reconcile_components" ReconcileListFn = "synopse.core.reconcile.reco...
38.95
77
0.649734
b966141479faf0aa0b56dce8645989e80342cd81
2,223
py
Python
methods/transformers/tests/test_configuration_auto.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/tests/test_configuration_auto.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/tests/test_configuration_auto.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team. # # 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 requ...
41.166667
111
0.736392
05a5b75e06ed3831cef1ffb4556375ae8fa43e00
1,982
py
Python
test/functional/mempool_limit.py
danigarcia3k/Sikacoin
82ef600cfeed1d8f163df6071d8d080fb9dac6b0
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
danigarcia3k/Sikacoin
82ef600cfeed1d8f163df6071d8d080fb9dac6b0
[ "MIT" ]
null
null
null
test/functional/mempool_limit.py
danigarcia3k/Sikacoin
82ef600cfeed1d8f163df6071d8d080fb9dac6b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Sikacoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool limiting together/eviction with the wallet.""" from test_framework.test_framework import...
42.170213
118
0.664985
2f866416c74c02d17e3b55cae8a31b97bf3772d9
15,877
py
Python
src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_dataset_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_dataset_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/datafactory/azext_datafactory/vendored_sdks/datafactory/operations/_dataset_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
49.615625
204
0.65661
ab83d7c0ea09ea1b6ed729941b4b12eee11b5152
1,252
py
Python
ttp/src/iam_backdoor_users_keys_src.py
blackbotinc/AWS-Attack
ad4668ab60173aabce3c6b9c7685160be5e3f14d
[ "Apache-2.0", "BSD-3-Clause" ]
26
2021-03-29T13:39:28.000Z
2022-03-21T10:57:58.000Z
ttp/src/iam_backdoor_users_keys_src.py
blackbotinc/AWS-Attack
ad4668ab60173aabce3c6b9c7685160be5e3f14d
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ttp/src/iam_backdoor_users_keys_src.py
blackbotinc/AWS-Attack
ad4668ab60173aabce3c6b9c7685160be5e3f14d
[ "Apache-2.0", "BSD-3-Clause" ]
8
2021-02-23T12:17:04.000Z
2022-02-25T13:28:14.000Z
#!/usr/bin/env python3 import datetime import argparse from botocore.exceptions import ClientError def main(args, awsattack_main, data=None): session = awsattack_main.get_active_session() print = awsattack_main.print usernames = data summary_data = {} client = awsattack_main.get_boto3_client('ia...
32.947368
173
0.634984
298efaa4c8d970de958b9c09ab86c927b4ed3a66
612
py
Python
nwbinspector/checks/behavior.py
jwodder/nwbinspector
9a736d8f016635193cd021d2123e79cb3c1f4281
[ "BSD-3-Clause-LBNL" ]
null
null
null
nwbinspector/checks/behavior.py
jwodder/nwbinspector
9a736d8f016635193cd021d2123e79cb3c1f4281
[ "BSD-3-Clause-LBNL" ]
16
2022-01-11T21:59:34.000Z
2022-03-02T15:21:30.000Z
nwbinspector/checks/behavior.py
jwodder/nwbinspector
9a736d8f016635193cd021d2123e79cb3c1f4281
[ "BSD-3-Clause-LBNL" ]
null
null
null
"""Checks for types belonging to the pynwb.behavior module.""" from pynwb.behavior import SpatialSeries from ..register_checks import register_check, Importance, InspectorMessage @register_check(importance=Importance.CRITICAL, neurodata_type=SpatialSeries) def check_spatial_series_dims(spatial_series: SpatialSeries)...
43.714286
103
0.745098
346e1fb6c3da51655b2342515efabafacc76ab2c
8,147
py
Python
contrib/verify-commits/verify-commits.py
Phonemetra/TurboCoin
041f807a3f68bb4b6d9b6c39235e71f1598153d9
[ "MIT" ]
null
null
null
contrib/verify-commits/verify-commits.py
Phonemetra/TurboCoin
041f807a3f68bb4b6d9b6c39235e71f1598153d9
[ "MIT" ]
null
null
null
contrib/verify-commits/verify-commits.py
Phonemetra/TurboCoin
041f807a3f68bb4b6d9b6c39235e71f1598153d9
[ "MIT" ]
3
2021-04-03T09:11:50.000Z
2021-04-03T09:12:31.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 TurboCoin # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Verify commits against a trusted keys list.""" import argparse import hashlib import logging import os import subprocess impor...
49.078313
190
0.629189
f5a4f3ee5b313b2e6fdb462e2898d564606e0d54
8,993
py
Python
poe/models.py
raylu/PoE.py
ca820be14ac1fb5081b4559ca29e9fb54dccd68f
[ "MIT" ]
null
null
null
poe/models.py
raylu/PoE.py
ca820be14ac1fb5081b4559ca29e9fb54dccd68f
[ "MIT" ]
null
null
null
poe/models.py
raylu/PoE.py
ca820be14ac1fb5081b4559ca29e9fb54dccd68f
[ "MIT" ]
null
null
null
class BaseItem: def __init_(self, name, item_id, page_url): self.name = name self.id = item_id self.page_url = page_url class ItemDrop: def __init__(self, enabled, level, max_level, leagues, areas, text): self.enabled = enabled self.level = level self.max_level ...
40.147321
118
0.646169
cc5c15911711b2134a3b178f789e7976a98803d5
11,029
py
Python
sc17/scheduler.py
esnet/calibers
13815aa0a984dc2ecd9a63283bba4f57df6e6650
[ "BSD-3-Clause" ]
3
2020-03-02T08:12:02.000Z
2021-04-10T19:28:06.000Z
sc17/scheduler.py
esnet/calibers
13815aa0a984dc2ecd9a63283bba4f57df6e6650
[ "BSD-3-Clause" ]
null
null
null
sc17/scheduler.py
esnet/calibers
13815aa0a984dc2ecd9a63283bba4f57df6e6650
[ "BSD-3-Clause" ]
1
2017-11-03T06:38:18.000Z
2017-11-03T06:38:18.000Z
# new flow: in pace, for each link sort flows by SJF or LJF, then take salck value(s) and assign it ot he new flow until it get Rmin # completed flow(s): in reshape, for all completed flows, find all involved links, then find all involved flows, then sor involved flows based on SJF or LJF, and distribute Rresid accord...
40.848148
191
0.590715
a5633b658190311b40eed29207583b0e012f3b15
970
py
Python
tools/download_nocrash_models.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
1
2021-03-01T19:43:12.000Z
2021-03-01T19:43:12.000Z
tools/download_nocrash_models.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
tools/download_nocrash_models.py
PDillis/coiltraine
a682aa62af5f6ecb95a837d33b70d893d3d261f6
[ "MIT" ]
null
null
null
import os import sys import tarfile PACKAGE_PARENT = '..' SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__)))) sys.path.append(os.path.normpath(os.path.join(SCRIPT_DIR, PACKAGE_PARENT))) from tools.download_tools import download_file_from_google_drive if __name__ ...
30.3125
103
0.748454
effe4a40473adf2acbefd48a2cb3b6048ae77f8e
1,914
py
Python
Technical_Indicators/momentum2.py
vhn0912/Finance
39cf49d4d778d322537531cee4ce3981cc9951f9
[ "MIT" ]
441
2020-04-22T02:21:19.000Z
2022-03-29T15:00:24.000Z
Technical_Indicators/momentum2.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
5
2020-07-06T15:19:58.000Z
2021-07-23T18:32:29.000Z
Technical_Indicators/momentum2.py
happydasch/Finance
4f6c5ea8f60fb0dc3b965ffb9628df83c2ecef35
[ "MIT" ]
111
2020-04-21T11:40:39.000Z
2022-03-20T07:26:17.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt import warnings warnings.filterwarnings("ignore") import yfinance as yf yf.pdr_override() import datetime as dt # input symbol = 'AAPL' start = dt.date.today() - dt.timedelta(days = 180) end = dt.date.today() # Read data df = yf.download(symbol,s...
27.73913
82
0.702194
8be25c31abd1a623ffc165273b5c3e261b2bbc4b
32,336
py
Python
tests/test_cloudstack_driver.py
globocom/globomap-driver-acs
f2b438314a84340d96c6a19002a1cc5e9da6f010
[ "Apache-2.0" ]
3
2017-08-07T18:23:29.000Z
2019-07-11T12:12:30.000Z
tests/test_cloudstack_driver.py
globocom/globomap-driver-acs
f2b438314a84340d96c6a19002a1cc5e9da6f010
[ "Apache-2.0" ]
3
2017-09-28T18:45:38.000Z
2019-12-07T12:37:48.000Z
tests/test_cloudstack_driver.py
globocom/globomap-driver-acs
f2b438314a84340d96c6a19002a1cc5e9da6f010
[ "Apache-2.0" ]
2
2018-10-13T00:02:34.000Z
2019-07-11T12:12:35.000Z
""" Copyright 2017 Globo.com 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 writ...
43.17223
111
0.651039
dc69d6ed3249cf73c6fb5236f8a91341ca5678d1
25,643
py
Python
virt/ansible-latest/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_storageaccount.py
lakhlaifi/RedHat-Ansible
27c5077cced9d416081fcd5d69ea44bca0317fa4
[ "Apache-2.0" ]
1
2020-03-29T18:41:01.000Z
2020-03-29T18:41:01.000Z
ansible/ansible/modules/cloud/azure/azure_rm_storageaccount.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
7
2020-09-07T17:27:56.000Z
2022-03-02T06:25:46.000Z
ansible/ansible/modules/cloud/azure/azure_rm_storageaccount.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
1
2020-03-22T01:04:48.000Z
2020-03-22T01:04:48.000Z
#!/usr/bin/python # # Copyright (c) 2016 Matt Davis, <mdavis@ansible.com> # Chris Houseknecht, <house@redhat.com> # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANS...
42.953099
154
0.594392
e1389c375b80143876eb39b711def4b4f4c89395
1,308
py
Python
invenio_rdm_records/resources/serializers/datacite/__init__.py
jennur/invenio-rdm-records
06cf273446a97cf2b037d24f1619a869974dcb30
[ "MIT" ]
null
null
null
invenio_rdm_records/resources/serializers/datacite/__init__.py
jennur/invenio-rdm-records
06cf273446a97cf2b037d24f1619a869974dcb30
[ "MIT" ]
null
null
null
invenio_rdm_records/resources/serializers/datacite/__init__.py
jennur/invenio-rdm-records
06cf273446a97cf2b037d24f1619a869974dcb30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 CERN. # # Invenio-RDM-Records is free software; you can redistribute it and/or modify # it under the terms of the MIT License; see LICENSE file for more details. """DataCite Serializers for Invenio RDM Records.""" from datacite import schema43 from flask_resources.seriali...
30.418605
77
0.66208
1ee05d69f0e905c50b9d9694f5882ce7af143d77
2,973
py
Python
test/functional/wallet_keypool_topup.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/wallet_keypool_topup.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
test/functional/wallet_keypool_topup.py
HunterCanimun/surgeofficial-surge-coin
663dc25517e9045a65a9b1e0993bbaa06d564284
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 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 HD Wallet keypool restore function. Two nodes. Node1 is under test. Node0 is providing transactions an...
37.632911
164
0.680121
13a7064fcdb8e670ecbf8926234f798e3652eb1c
1,196
py
Python
forest_puller/reports/base_template.py
xapple/forest_puller
3bc9c35e2308e57b90e9210b30d68e67ee86f4d2
[ "MIT" ]
1
2021-11-10T14:52:34.000Z
2021-11-10T14:52:34.000Z
forest_puller/reports/base_template.py
xapple/forest_puller
3bc9c35e2308e57b90e9210b30d68e67ee86f4d2
[ "MIT" ]
null
null
null
forest_puller/reports/base_template.py
xapple/forest_puller
3bc9c35e2308e57b90e9210b30d68e67ee86f4d2
[ "MIT" ]
1
2021-09-16T08:07:28.000Z
2021-09-16T08:07:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Written by Lucas Sinclair and Paul Rougieux. JRC Biomass Project. Unit D1 Bioeconomy. """ # Built-in modules # import socket from sys import platform # Internal modules # import forest_puller # First party modules # from pymarktex.templates import Template from pl...
24.408163
79
0.619565
fea80b7ca7053ffdf05aded4bc0f9df588cb4ff9
1,194
py
Python
3rdParty/patool/tests/archives/test_flac.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
null
null
null
3rdParty/patool/tests/archives/test_flac.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
null
null
null
3rdParty/patool/tests/archives/test_flac.py
UnicornParson/ConsoleUtils
95f445fd4006791331541e1057035c86cd8eeddb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2010-2015 Bastian Kleineidam # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. #...
35.117647
71
0.714405
715e8bd40a2d0fb348377c3e7c91c418e21935d8
5,378
py
Python
pandas/tests/extension/category/test_categorical.py
uds5501/pandas
ec356fa62241750a227c1bafb4c0c396bde1c293
[ "BSD-3-Clause" ]
2
2019-01-09T07:43:12.000Z
2020-05-30T05:49:11.000Z
pandas/tests/extension/category/test_categorical.py
uds5501/pandas
ec356fa62241750a227c1bafb4c0c396bde1c293
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/extension/category/test_categorical.py
uds5501/pandas
ec356fa62241750a227c1bafb4c0c396bde1c293
[ "BSD-3-Clause" ]
1
2019-08-12T18:17:31.000Z
2019-08-12T18:17:31.000Z
import string import pytest import pandas as pd import numpy as np from pandas.api.types import CategoricalDtype from pandas import Categorical from pandas.tests.extension import base def make_data(): return np.random.choice(list(string.ascii_letters), size=100) @pytest.fixture def dtype(): return Categor...
25.130841
75
0.664001
e9b8381144c99d2a406b939665455413fbab079f
471
py
Python
python/cugraph/utilities/unrenumber.py
lushl9301/cugraph
5b982a97793bc69bba345fc532459edc6fd68bd6
[ "Apache-2.0" ]
null
null
null
python/cugraph/utilities/unrenumber.py
lushl9301/cugraph
5b982a97793bc69bba345fc532459edc6fd68bd6
[ "Apache-2.0" ]
null
null
null
python/cugraph/utilities/unrenumber.py
lushl9301/cugraph
5b982a97793bc69bba345fc532459edc6fd68bd6
[ "Apache-2.0" ]
null
null
null
import cudf def unrenumber(renumber_map, df, col): if isinstance(renumber_map, cudf.DataFrame): unrenumbered_df = df.merge(renumber_map, left_on=col, right_on='id', how='left').drop(['id', col]) cols = unrenumbered_df.columns.to...
33.642857
67
0.56051
5dc9497787b2234ef33bff1d4a1cce5077d541d6
167
py
Python
settings.py
Bxvu/TopDownGame
1f1f93a54cd6190142cc3a129abd6358e016966c
[ "MIT" ]
null
null
null
settings.py
Bxvu/TopDownGame
1f1f93a54cd6190142cc3a129abd6358e016966c
[ "MIT" ]
null
null
null
settings.py
Bxvu/TopDownGame
1f1f93a54cd6190142cc3a129abd6358e016966c
[ "MIT" ]
null
null
null
TITLE = "Game" #screen dims WIDTH = 600 HEIGHT = 600 #frames per second FPS = 30 #colors WHITE = (255,255,255) BLACK = (0,0,0) REDDISH = (240,55,66) BLUE = (50,50,250)
15.181818
21
0.652695
7e1277259bda4afc95445ba319991c68e6775e45
2,782
py
Python
send_mail/tests.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
15
2017-04-03T14:01:44.000Z
2022-03-18T06:38:56.000Z
send_mail/tests.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
87
2016-10-13T01:53:38.000Z
2022-02-11T03:39:55.000Z
send_mail/tests.py
ritstudentgovernment/PawPrints
6f52d721d4c367a8524f49881e62a162a81469b4
[ "Apache-2.0" ]
8
2017-10-19T18:30:48.000Z
2021-04-03T02:26:01.000Z
from django.core import mail from django.test import TestCase, Client from django.contrib.auth.models import User from petitions.models import Petition, Tag, Report from profile.models import Profile from datetime import timedelta from django.utils import timezone from send_mail.tasks import * class EmailTests(TestCas...
40.318841
192
0.719267
e88c5887ddbbbe7d79ae306e7d0895be153c07cf
72
py
Python
script/YOLO/test_parse_cfg.py
JOHNKYON/Object_Detection_Track
83a5cdee8a044080d007e473c84c347c1f324c36
[ "MIT" ]
null
null
null
script/YOLO/test_parse_cfg.py
JOHNKYON/Object_Detection_Track
83a5cdee8a044080d007e473c84c347c1f324c36
[ "MIT" ]
null
null
null
script/YOLO/test_parse_cfg.py
JOHNKYON/Object_Detection_Track
83a5cdee8a044080d007e473c84c347c1f324c36
[ "MIT" ]
null
null
null
from unittest import TestCase class TestParse_cfg(TestCase): pass
12
30
0.777778
5655a2c0c78626b0ebf6a1868f360a210db145d3
2,728
py
Python
suggestions/api/serializers.py
kraupn3r/intranet
4cabf6f365ef0ea0f352f67f9322318e161ed265
[ "MIT" ]
null
null
null
suggestions/api/serializers.py
kraupn3r/intranet
4cabf6f365ef0ea0f352f67f9322318e161ed265
[ "MIT" ]
null
null
null
suggestions/api/serializers.py
kraupn3r/intranet
4cabf6f365ef0ea0f352f67f9322318e161ed265
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.utils import timezone import datetime from ..models import * from rest_framework_jwt.settings import api_settings class CommentSerializer(serializers.ModelSerializer): def to_representation(self, instance): rep = super(CommentSerializer, self).to_repres...
27.836735
86
0.63563
594dfafaedd735fff55af13509518dc0c64e6943
190
py
Python
warbend/util/foreach.py
int19h/warbend
1cee2aa547309a15ed02a879a1f3a153f17bbfc4
[ "MIT" ]
4
2018-08-03T13:29:53.000Z
2020-04-16T08:16:07.000Z
warbend/util/foreach.py
int19h/warbend
1cee2aa547309a15ed02a879a1f3a153f17bbfc4
[ "MIT" ]
1
2019-08-19T22:45:02.000Z
2019-09-20T14:18:44.000Z
warbend/util/foreach.py
int19h/warbend
1cee2aa547309a15ed02a879a1f3a153f17bbfc4
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from collections import deque from itertools import imap def foreach(f, iterable): deque(imap(f, iterable), maxlen=0)
21.111111
64
0.789474
a538c18b558f69908d19b5273fadbfa04e6d1738
31,404
py
Python
LeetCode/three_sum_equal_zero.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/three_sum_equal_zero.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
LeetCode/three_sum_equal_zero.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : pengj @ date : 2018/11/2 22:10 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : pengjianbiao@hotmail.com ----------------...
74.066038
140
0.556458
3cb2ff34a79244b03a70faa779db0fd367ac35fa
1,048
py
Python
argus/db/influxdb.py
aliariff/argus
b8948aa7103e8e5a682c4da89010e7c66aa80ab8
[ "MIT" ]
null
null
null
argus/db/influxdb.py
aliariff/argus
b8948aa7103e8e5a682c4da89010e7c66aa80ab8
[ "MIT" ]
null
null
null
argus/db/influxdb.py
aliariff/argus
b8948aa7103e8e5a682c4da89010e7c66aa80ab8
[ "MIT" ]
null
null
null
import coloredlogs import logging from influxdb import InfluxDBClient logger = logging.getLogger(__name__) coloredlogs.install() class InfluxDB(object): _instance = None def __new__(cls, db_config=None): if cls._instance is None: cls._instance = object.__new__(cls) try: ...
30.823529
88
0.632634
c7e011db2133e0b5ee7342f331da59b0527121bb
6,293
py
Python
tests/test_response.py
hungpham2017/mpDMET
d4d29d78dbff97ee1be5d6499a8bad4872c9d49f
[ "BSD-3-Clause" ]
1
2020-06-19T08:23:49.000Z
2020-06-19T08:23:49.000Z
tests/test_response.py
hungpham2017/mpDMET
d4d29d78dbff97ee1be5d6499a8bad4872c9d49f
[ "BSD-3-Clause" ]
null
null
null
tests/test_response.py
hungpham2017/mpDMET
d4d29d78dbff97ee1be5d6499a8bad4872c9d49f
[ "BSD-3-Clause" ]
null
null
null
''' Testing the implementation of libdmet (in C++). Author: Hung Q. Pham, Unviversity of Minnesota email: phamx494@umn.edu ''' import sys import pyscf from pyscf import gto, scf import numpy as np import pytest from mdmet import orthobasis, schmidtbasis, qcsolvers, dmet from functools import reduce sys.path.append('/p...
32.107143
176
0.70348
fa6140d64c8890bec8d76c4097e692fa5b9873f3
5,784
py
Python
utils/scannet/load_scannet_data.py
Co1lin/RfDNet
9a6910a0d3f8ab3bffbba9d992757d29a1d96bea
[ "MIT" ]
143
2021-04-09T12:28:47.000Z
2022-03-25T13:57:16.000Z
utils/scannet/load_scannet_data.py
blakeyy/Relational-RfDNet
72f4e35601e963c91515f40707174c0d79cb5403
[ "MIT" ]
10
2021-04-12T08:24:17.000Z
2022-01-02T22:33:01.000Z
utils/scannet/load_scannet_data.py
blakeyy/Relational-RfDNet
72f4e35601e963c91515f40707174c0d79cb5403
[ "MIT" ]
22
2021-04-10T06:05:44.000Z
2022-03-31T09:08:50.000Z
# 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. """ Load Scannet scenes with vertices and ground truth labels for semantic and instance segmentations """ # python imports import argparse i...
39.081081
119
0.644882
b109546e043899938d3368eef33be59657fa06d0
1,043
py
Python
day-4/trio_score/trio_score/segments/section_three/definition.py
s86100/intensive
4da98dbbfec411c8e91cfa6360f90159b10458ac
[ "MIT" ]
1
2021-05-29T17:59:54.000Z
2021-05-29T17:59:54.000Z
day-4/trio_score/trio_score/segments/section_three/definition.py
s86100/intensive
4da98dbbfec411c8e91cfa6360f90159b10458ac
[ "MIT" ]
null
null
null
day-4/trio_score/trio_score/segments/section_three/definition.py
s86100/intensive
4da98dbbfec411c8e91cfa6360f90159b10458ac
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import abjad import os from trio_score import materials from trio_score.tools import SegmentMaker segment_maker = SegmentMaker( time_signatures=[(2, 4), (2, 4), (5, 8), (6, 8), (5, 4)] * 2, cello_pitches=materials.my_pitches.transpose(-12).invert(-12), cello_rhythm_maker=material...
31.606061
71
0.708533
87d7037d51778e218a572fc2883623b3bc2c4bed
14,634
py
Python
src/sage/combinat/cartesian_product.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
1
2020-03-29T18:28:05.000Z
2020-03-29T18:28:05.000Z
src/sage/combinat/cartesian_product.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/cartesian_product.py
sbt4104/sage
2cbd93e0b78dec701f4b7ad9271d3b1e967bcd6c
[ "BSL-1.0" ]
null
null
null
r""" Cartesian Products """ # **************************************************************************** # Copyright (C) 2007 Mike Hansen <mhansen@gmail.com>, # # Distributed under the terms of the GNU General Public License (GPL) # # This code is distributed in the hope that it will be useful, # but WIT...
35.177885
178
0.575782
2b4207ad06d93af05ad4b76bbdb1d1c136a0d868
633
py
Python
Python/34.py
daniLOLZ/variaRoba
757586d6c8d1ccfbcc79379a138e3328f94be8ff
[ "MIT" ]
null
null
null
Python/34.py
daniLOLZ/variaRoba
757586d6c8d1ccfbcc79379a138e3328f94be8ff
[ "MIT" ]
null
null
null
Python/34.py
daniLOLZ/variaRoba
757586d6c8d1ccfbcc79379a138e3328f94be8ff
[ "MIT" ]
null
null
null
import json with open("birthdays.json", "r") as damnJson: birthDays = json.load(damnJson) print("We know the birth days of: ") for i in birthDays: print(i) print("\nWould you like to add or retrieve a birth day?") lol = input().strip().lower() if lol == "add": person = input("Who's the lucky one? ") date = input...
19.181818
58
0.663507
5a66a84bb3d922946695882dce9e303b6bb3cf0a
56,599
py
Python
pylatexenc/latex2text/__init__.py
ischurov/pylatexenc
3b4bddca067e267ae47d11fdb84ccfb703a626f4
[ "MIT" ]
null
null
null
pylatexenc/latex2text/__init__.py
ischurov/pylatexenc
3b4bddca067e267ae47d11fdb84ccfb703a626f4
[ "MIT" ]
null
null
null
pylatexenc/latex2text/__init__.py
ischurov/pylatexenc
3b4bddca067e267ae47d11fdb84ccfb703a626f4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # The MIT License (MIT) # # Copyright (c) 2018 Philippe Faist # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation t...
39.223146
104
0.634693
a1d523043483d976b8fd50bd73ee89e31e766e5d
1,755
py
Python
photonqat/Gaussianformula/ordering.py
ryosukehata/Photonqat
d5e320d3cc9ed94f6d63b1721f6871f13a0e6ea7
[ "Apache-2.0" ]
null
null
null
photonqat/Gaussianformula/ordering.py
ryosukehata/Photonqat
d5e320d3cc9ed94f6d63b1721f6871f13a0e6ea7
[ "Apache-2.0" ]
null
null
null
photonqat/Gaussianformula/ordering.py
ryosukehata/Photonqat
d5e320d3cc9ed94f6d63b1721f6871f13a0e6ea7
[ "Apache-2.0" ]
null
null
null
''' References arxiv: quant-ph/0503237 Physical Review A 49, 1567 (1994) Conversion between vectors of deffrent ordered operators R = (q_1, p_1, ..., q_n, p_n) S = (q_1, ..., q_n, p_1, ..., p_n) T = (a_1, ..., a^*_1, ..., a^*n) ''' import numpy as np def StoTmat(cov): N2 = cov.shape[0] N = np.int(N2/2) O...
24.041096
77
0.499715
9e5c902beb6d8210d89ca2ee2ba0f4dd11c16300
18,798
py
Python
chainerrl/agents/pcl.py
ouyangyii/chainerrl
194cd148f479a0ba5288d86c714b6cb07806ca7c
[ "MIT" ]
null
null
null
chainerrl/agents/pcl.py
ouyangyii/chainerrl
194cd148f479a0ba5288d86c714b6cb07806ca7c
[ "MIT" ]
null
null
null
chainerrl/agents/pcl.py
ouyangyii/chainerrl
194cd148f479a0ba5288d86c714b6cb07806ca7c
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from builtins import * # NOQA from future import standard_library standard_library.install_aliases() # NOQA import copy from logging import getLogger import chainer fr...
37.822938
79
0.582509
8eec3c6378e6fd195d2a015cd99c619d22151dfd
1,387
py
Python
tests/test_nerlist.py
siouxmathware/ijsbeer-ai
35b47a7735bb29dd0018b09ece683f57d8da0585
[ "Apache-2.0" ]
null
null
null
tests/test_nerlist.py
siouxmathware/ijsbeer-ai
35b47a7735bb29dd0018b09ece683f57d8da0585
[ "Apache-2.0" ]
null
null
null
tests/test_nerlist.py
siouxmathware/ijsbeer-ai
35b47a7735bb29dd0018b09ece683f57d8da0585
[ "Apache-2.0" ]
null
null
null
import os.path as op from lib.ner_lists import ner_lists from lib import constants from tests import test_tools class TestNerLists(test_tools.TestTools): @classmethod def setUpClass(cls): constants.DATA_DIR = test_tools.TEST_DATA_DIR ner_lists_config = { "data_dir": ["ner_lists",...
31.522727
103
0.648161
a12f961be9156612428a8066b846119d7915653f
1,215
py
Python
.history/classes/Menu_20171107123547.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
.history/classes/Menu_20171107123547.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
.history/classes/Menu_20171107123547.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
# DADSA - Assignment 1 # Reece Benson class Menu(): # Define the variables we will be using _app = None _menu = None def __init__(self, app): # Set our Application self._app = app def load(self): # Define our Menu self.menu = { 'Item 1': { ...
24.795918
55
0.474897
89431c624de2712911202ab89b99a8c748fdb9c6
3,514
py
Python
prepare_data/resources/list_static_frames.py
goodgodgd/vode-summer-school
1a6e0ff05b0c10901595e36607e844effed507b0
[ "BSD-2-Clause" ]
4
2020-08-15T02:14:03.000Z
2021-01-30T08:18:18.000Z
prepare_data/resources/list_static_frames.py
goodgodgd/vode-summer-school
1a6e0ff05b0c10901595e36607e844effed507b0
[ "BSD-2-Clause" ]
23
2020-01-24T07:25:40.000Z
2021-06-02T00:50:32.000Z
prepare_data/resources/list_static_frames.py
goodgodgd/vode-summer-school
1a6e0ff05b0c10901595e36607e844effed507b0
[ "BSD-2-Clause" ]
1
2021-11-23T19:53:14.000Z
2021-11-23T19:53:14.000Z
import os.path as op from config import opts from glob import glob import pykitti import cv2 import numpy as np ''' References https://github.com/opencv/opencv/blob/master/samples/python/opt_flow.py def draw_flow(img, flow, step=16): ... https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_vide...
45.051282
114
0.54354
e3f10d3edcc47d995c8fccb6b50647a89e6a3043
643
py
Python
tests/test_plugin_rtbf.py
NghiemTrung/livecli
6a21b1b144b045963b6d1db8d4d8dc8471b62737
[ "BSD-2-Clause" ]
1
2019-12-04T11:54:52.000Z
2019-12-04T11:54:52.000Z
tests/test_plugin_rtbf.py
NghiemTrung/livecli
6a21b1b144b045963b6d1db8d4d8dc8471b62737
[ "BSD-2-Clause" ]
null
null
null
tests/test_plugin_rtbf.py
NghiemTrung/livecli
6a21b1b144b045963b6d1db8d4d8dc8471b62737
[ "BSD-2-Clause" ]
null
null
null
import unittest from livecli.plugins.rtbf import RTBF class TestPluginRTBF(unittest.TestCase): def test_can_handle_url(self): should_match = [ "https://www.rtbf.be/auvio/direct_20-02?lid=117857", "https://www.rtbf.be/auvio/direct_a-pleines-dents?lid=116360", "https://w...
30.619048
79
0.62675
b8caceceba6ecb66bdb8db07a769c4a126dd3e80
1,819
py
Python
patron/cmd/api_metadata.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/cmd/api_metadata.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
patron/cmd/api_metadata.py
casbin/openstack-patron
b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a ...
33.072727
77
0.759208
1bac612560f876896e7d3033130af5dcc3a40790
1,217
py
Python
alg_valid_parentheses.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
8
2019-03-18T06:37:24.000Z
2022-01-30T07:50:58.000Z
alg_valid_parentheses.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
alg_valid_parentheses.py
bowen0701/python-algorithms-data-structures
e625f59a9fc59e4728825078d4434a7968a724e5
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function def valid_parentheses(s): """Balance parentheses in a string.""" open_close_d = { '(': ')', '[': ']', '{': '}' } open_set = set('([{') close_set = set(')]}') # ...
22.127273
70
0.535744
c86e9bc5b67c96ebb0b41f2d48c6557d22faa84c
541
py
Python
manage.py
TimothyGicharu/InstagramClone
b153c483c1878dbe7d626ae8ada317da1fd40348
[ "Unlicense" ]
null
null
null
manage.py
TimothyGicharu/InstagramClone
b153c483c1878dbe7d626ae8ada317da1fd40348
[ "Unlicense" ]
null
null
null
manage.py
TimothyGicharu/InstagramClone
b153c483c1878dbe7d626ae8ada317da1fd40348
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'caseygram.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Ar...
33.8125
73
0.687616
0eb8985f7c096e31a3874333d220a32914d643df
3,474
py
Python
kubernetes_asyncio/client/models/runtime_raw_extension.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
1
2020-03-25T01:24:27.000Z
2020-03-25T01:24:27.000Z
kubernetes_asyncio/client/models/runtime_raw_extension.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/models/runtime_raw_extension.py
olitheolix/kubernetes_asyncio
344426793e4e4b653bcd8e4a29c6fa4766e1fff7
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v1.10.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import si...
29.440678
179
0.551813
fd708e978f68f21951d9231c199bf1959254715b
2,517
py
Python
streamlit_app.py
jrieke/streamlit-sharing-test
f1ded0d30ae28de0802631cc95e194b06cd117bd
[ "MIT" ]
null
null
null
streamlit_app.py
jrieke/streamlit-sharing-test
f1ded0d30ae28de0802631cc95e194b06cd117bd
[ "MIT" ]
null
null
null
streamlit_app.py
jrieke/streamlit-sharing-test
f1ded0d30ae28de0802631cc95e194b06cd117bd
[ "MIT" ]
null
null
null
import streamlit as st # from aitextgen import aitextgen # import gc # from transformers import DistilBertTokenizer, DistilBertModel # import numpy as np st.title("Testing iframes on S4A") # st.multiselect( # "Select something", # [ # "Some very long text that will be truncated", # "Short te...
26.21875
103
0.67064
056c075ce780df830a0230774b7bffcb19bf3df9
6,630
py
Python
version_2.0/world.py
SeindElBardo/Watership
ba35b4f83abfd93f0ea0740bc043414045b126fe
[ "MIT" ]
3
2017-09-26T22:34:05.000Z
2018-09-27T14:15:52.000Z
version_2.0/world.py
SeindElBardo/Watership
ba35b4f83abfd93f0ea0740bc043414045b126fe
[ "MIT" ]
null
null
null
version_2.0/world.py
SeindElBardo/Watership
ba35b4f83abfd93f0ea0740bc043414045b126fe
[ "MIT" ]
null
null
null
from math import floor, log, radians, cos, sin from config import * # Dicen que hacer esto es feo, pero me parece necesario class World(object): def __init__(self, light_power, time): self.light_power = light_power self.planets = [] self.time = time def to_proceed(): for planet...
41.4375
218
0.655354
bd9073d113fb16de9ed7d64af6512429f1c30d23
103
py
Python
oeeBackend/job_orders_data/apps.py
yamenmarquez/oee_django
b192ecab930aac0922599b6a8fadf7e92350e5a7
[ "MIT" ]
null
null
null
oeeBackend/job_orders_data/apps.py
yamenmarquez/oee_django
b192ecab930aac0922599b6a8fadf7e92350e5a7
[ "MIT" ]
null
null
null
oeeBackend/job_orders_data/apps.py
yamenmarquez/oee_django
b192ecab930aac0922599b6a8fadf7e92350e5a7
[ "MIT" ]
1
2018-09-13T22:36:55.000Z
2018-09-13T22:36:55.000Z
from django.apps import AppConfig class JobOrdersDataConfig(AppConfig): name = 'job_orders_data'
17.166667
37
0.786408
61ae5c84ae43aaba7928f5e3bc40c9010ea5e682
2,424
py
Python
utils/sam.py
Huuush/learn_fashionai
f5e63f37f69edfc8a681289208240fa05c8d4dc0
[ "MIT" ]
3
2021-12-17T01:41:45.000Z
2021-12-17T02:13:17.000Z
utils/sam.py
Huuush/learn_fashionai
f5e63f37f69edfc8a681289208240fa05c8d4dc0
[ "MIT" ]
null
null
null
utils/sam.py
Huuush/learn_fashionai
f5e63f37f69edfc8a681289208240fa05c8d4dc0
[ "MIT" ]
3
2021-12-16T14:45:59.000Z
2021-12-17T01:14:01.000Z
import torch class SAM(torch.optim.Optimizer): def __init__(self, params, base_optimizer, rho=0.05, adaptive=False, **kwargs): assert rho >= 0.0, f"Invalid rho, should be non-negative: {rho}" defaults = dict(rho=rho, adaptive=adaptive, **kwargs) super(SAM, self).__init__(params, defaults)...
39.096774
131
0.589934
6486a07beec813075a7a849e3db7af0eecab1447
823
py
Python
core/admin.py
GarimaDe/receipe-app-api
bf78385eefdb414d13ec7a393448bccccfb00ae9
[ "MIT" ]
null
null
null
core/admin.py
GarimaDe/receipe-app-api
bf78385eefdb414d13ec7a393448bccccfb00ae9
[ "MIT" ]
null
null
null
core/admin.py
GarimaDe/receipe-app-api
bf78385eefdb414d13ec7a393448bccccfb00ae9
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from core import models from django.utils.translation import gettext as _ # Register your models here. class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( ...
30.481481
76
0.573512
df4ae6c47925dce69fc8031e6d81acfc360dbfd3
4,759
py
Python
notebooks/jaklinger/microsoft_academic_knowledge/modules/mak_from_titles.py
Juan-Mateos/coll_int_ai_case
82f4af8c5b493c633c902ecea6e549d2d6feb26d
[ "MIT" ]
null
null
null
notebooks/jaklinger/microsoft_academic_knowledge/modules/mak_from_titles.py
Juan-Mateos/coll_int_ai_case
82f4af8c5b493c633c902ecea6e549d2d6feb26d
[ "MIT" ]
null
null
null
notebooks/jaklinger/microsoft_academic_knowledge/modules/mak_from_titles.py
Juan-Mateos/coll_int_ai_case
82f4af8c5b493c633c902ecea6e549d2d6feb26d
[ "MIT" ]
null
null
null
from alphabet_detector import AlphabetDetector import requests import json # Inputs for the MAK POST request, including the API key HEADERS = { 'Ocp-Apim-Subscription-Key': 'a9a9efa851b44d5bbd6c841215a99e00', 'Content-Type': 'application/x-www-form-urlencoded' } # Fields to return from MAK FIELDS = ["Id","Ti"...
38.072
148
0.602227
cdbbbbf9fdb6094f644ab3466f3a4acacedbe3d6
2,241
py
Python
com/gionee/ota/util/Util.py
qmxiu531/OtaNeedInstalledApps
45e9d4214c721752651afd3f98b3e2363b380be4
[ "Apache-2.0" ]
1
2020-05-20T12:22:09.000Z
2020-05-20T12:22:09.000Z
com/gionee/ota/util/Util.py
qmxiu531/OtaNeedInstalledApps
45e9d4214c721752651afd3f98b3e2363b380be4
[ "Apache-2.0" ]
null
null
null
com/gionee/ota/util/Util.py
qmxiu531/OtaNeedInstalledApps
45e9d4214c721752651afd3f98b3e2363b380be4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os,sys from com.gionee.ota.log import Log import logging import threading import multiprocessing import time import glob import subprocess import itertools logger = Log.Logger('report.log',clevel = logging.DEBUG,Flevel = logging.INFO) def anyTrue(predicate, sequence): return True in...
27
78
0.605533
12ae65236213d4e0c1fda3d75be10cd6e3d6c82b
89
py
Python
utils/__init__.py
Shaw-git/Lightweight-Head-Pose-Estimation
2b561640d6a252dbd9763c68695db934d9e4862b
[ "MIT" ]
3
2022-01-10T02:59:36.000Z
2022-01-17T05:02:00.000Z
utils/__init__.py
Shaw-git/Lightweight-Head-Pose-Estimation
2b561640d6a252dbd9763c68695db934d9e4862b
[ "MIT" ]
null
null
null
utils/__init__.py
Shaw-git/Lightweight-Head-Pose-Estimation
2b561640d6a252dbd9763c68695db934d9e4862b
[ "MIT" ]
null
null
null
from .utils import * from .camera_normalize import * from .coordinate_transform import *
22.25
35
0.797753
24a1bb7c22302687acc7532757566aaada53dc25
532
py
Python
863.All Nodes Distance K in Binary Tree/answer.py
ReZeroS/LeetCode
807ae800437e0b6224bd4672f28007388625437b
[ "MIT" ]
2
2018-10-24T03:34:44.000Z
2020-07-16T15:34:44.000Z
863.All Nodes Distance K in Binary Tree/answer.py
ReZeroS/LeetCode
807ae800437e0b6224bd4672f28007388625437b
[ "MIT" ]
null
null
null
863.All Nodes Distance K in Binary Tree/answer.py
ReZeroS/LeetCode
807ae800437e0b6224bd4672f28007388625437b
[ "MIT" ]
null
null
null
def distanceK(self, root, target, K): conn = collections.defaultdict(list) def connect(parent, child): if parent and child: conn[parent.val].append(child.val) conn[child.val].append(parent.val) if child.left: connect(child, child.left) if child.right: connect(chil...
33.25
64
0.599624
05529a3387c8a1d555224baf6511ff29d1c1a7c8
2,977
py
Python
tests/multimeter_SDM3065X_v2.py
BlancaCC/granadaSat_batteries
9302feddddc62c1d26ca4faa7684edd0eeb95aa1
[ "MIT" ]
null
null
null
tests/multimeter_SDM3065X_v2.py
BlancaCC/granadaSat_batteries
9302feddddc62c1d26ca4faa7684edd0eeb95aa1
[ "MIT" ]
null
null
null
tests/multimeter_SDM3065X_v2.py
BlancaCC/granadaSat_batteries
9302feddddc62c1d26ca4faa7684edd0eeb95aa1
[ "MIT" ]
null
null
null
class SDM3065X: def __init__(self, instr): if 'SDM3065X' not in instr.query("*IDN?"): raise NameError('Device is not SDM3065X') else: self.instr = instr self.plc_current = 10 self.plc_volt = 10 self.th_type = 'BITS90' self.sensor_type = 'THER' def set_plc_current(self, plc): if not (plc!=100 ...
32.010753
141
0.713806
25c71bb0d04bc25d751949e3bcf25bc05e1cbbff
4,229
py
Python
venv/lib/python3.6/site-packages/ansible_collections/check_point/mgmt/tests/units/modules/test_cp_mgmt_application_site_group.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/check_point/mgmt/tests/units/modules/test_cp_mgmt_application_site_group.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/check_point/mgmt/tests/units/modules/test_cp_mgmt_application_site_group.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
# Ansible module to manage CheckPoint Firewall (c) 2019 # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dist...
34.663934
110
0.719083
c30f9a3df3f183b4956e4a5a4e267897b0221b6e
6,425
py
Python
robot/douyin/by_id.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
robot/douyin/by_id.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
robot/douyin/by_id.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import sys from urllib.parse import urlparse from urllib.parse import quote import requests from bs4 import BeautifulSoup import json import os import re from contextlib import closing import time import certifi import urllib3 class DouYin(object): ...
43.412162
542
0.639844
a36457f91911a7b0dc1633fc87326b83bd316348
748
py
Python
8-one_time_pad_attack/one_time_pad.py
AndrewIjano/crypto-workshop
186b4b42f7b75a8fbaf2184cd1736cf2ffb626d9
[ "MIT" ]
null
null
null
8-one_time_pad_attack/one_time_pad.py
AndrewIjano/crypto-workshop
186b4b42f7b75a8fbaf2184cd1736cf2ffb626d9
[ "MIT" ]
null
null
null
8-one_time_pad_attack/one_time_pad.py
AndrewIjano/crypto-workshop
186b4b42f7b75a8fbaf2184cd1736cf2ffb626d9
[ "MIT" ]
null
null
null
import sys import random BASE = ord('A') def rotate(char, shift): if not char.isalpha(): return char return chr((ord(char) + shift - BASE) % 26 + BASE) def encoder(plaintext): plaintext = plaintext.upper() ciphertext = '' random.seed(BASE - 66) for char in plaintext: if char.is...
26.714286
70
0.600267
e909ec71608681e33b53a929f3337a88a913aec8
3,656
py
Python
asteroid/models/dcunet.py
adobles96/asteroid
2abe5b3c36b6d0d728cfda1b0b3b4a9a5f709f7b
[ "MIT" ]
null
null
null
asteroid/models/dcunet.py
adobles96/asteroid
2abe5b3c36b6d0d728cfda1b0b3b4a9a5f709f7b
[ "MIT" ]
null
null
null
asteroid/models/dcunet.py
adobles96/asteroid
2abe5b3c36b6d0d728cfda1b0b3b4a9a5f709f7b
[ "MIT" ]
null
null
null
import torch from asteroid_filterbanks import make_enc_dec from asteroid_filterbanks.transforms import from_torch_complex, to_torch_complex from ..masknn.convolutional import DCUMaskNet from .base_models import BaseEncoderMaskerDecoder class BaseDCUNet(BaseEncoderMaskerDecoder): """Base class for ``DCUNet`` and ...
36.19802
88
0.653173
2ea359950654cdbbeb2d0018dfeb8fb3ce143e29
3,443
py
Python
mesonbuild/compilers/mixins/elbrus.py
monwarez/meson
63814543de6f46fc8aee7d3884a8746c968806ca
[ "Apache-2.0" ]
1
2020-10-22T05:33:27.000Z
2020-10-22T05:33:27.000Z
mesonbuild/compilers/mixins/elbrus.py
monwarez/meson
63814543de6f46fc8aee7d3884a8746c968806ca
[ "Apache-2.0" ]
null
null
null
mesonbuild/compilers/mixins/elbrus.py
monwarez/meson
63814543de6f46fc8aee7d3884a8746c968806ca
[ "Apache-2.0" ]
1
2020-12-07T15:37:35.000Z
2020-12-07T15:37:35.000Z
# Copyright 2019 The meson development team # # 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 ...
40.505882
155
0.628812
ab2800f695484d1845f6fea1515943e14da6b2a3
57
py
Python
Engine/src/tests/factory/__init__.py
xapharius/HadoopML
c0129f298007ca89b538eb1a3800f991141ba361
[ "MIT" ]
2
2018-02-05T12:41:31.000Z
2018-11-23T04:13:13.000Z
Engine/src/tests/factory/__init__.py
xapharius/HadoopML
c0129f298007ca89b538eb1a3800f991141ba361
[ "MIT" ]
null
null
null
Engine/src/tests/factory/__init__.py
xapharius/HadoopML
c0129f298007ca89b538eb1a3800f991141ba361
[ "MIT" ]
null
null
null
from homogenous_factory_test import HomogenousFactoryTest
57
57
0.947368
3a697c55e123233127aad45e86b4545a881a6061
393
py
Python
packages/python/plotly/plotly/validators/mesh3d/_textsrc.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/mesh3d/_textsrc.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/mesh3d/_textsrc.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): def __init__(self, plotly_name="textsrc", parent_name="mesh3d", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ed...
32.75
78
0.669211
6a667b59ab9061693c61bca3371d761e7c0ce9ba
1,832
py
Python
models/mlp.py
Lifelong-ML/Mendez2020Compositional
b779eeab54007ecb664043964f887adb3885f335
[ "Apache-2.0" ]
7
2021-04-11T04:33:36.000Z
2022-01-18T12:51:28.000Z
models/mlp.py
GRASP-ML/Mendez2020Compositional
b779eeab54007ecb664043964f887adb3885f335
[ "Apache-2.0" ]
1
2021-10-01T14:15:09.000Z
2021-10-01T14:15:09.000Z
models/mlp.py
GRASP-ML/Mendez2020Compositional
b779eeab54007ecb664043964f887adb3885f335
[ "Apache-2.0" ]
3
2020-08-14T08:17:00.000Z
2021-01-13T08:20:45.000Z
import torch import torch.nn as nn class MLP(nn.Module): def __init__(self, i_size, size, depth, num_classes, num_tasks, num_init_tasks, device='cuda', freeze_encoder=False, ...
31.586207
90
0.539847
857d4c9c79976bc8a4b6a5754e14f24e94c3b6ae
1,012
py
Python
apps/home.py
fferlito/streamlit-geospatial
43ed0378224c222e2c088ce3b1004d6571acddfe
[ "MIT" ]
null
null
null
apps/home.py
fferlito/streamlit-geospatial
43ed0378224c222e2c088ce3b1004d6571acddfe
[ "MIT" ]
null
null
null
apps/home.py
fferlito/streamlit-geospatial
43ed0378224c222e2c088ce3b1004d6571acddfe
[ "MIT" ]
null
null
null
import streamlit as st import leafmap.foliumap as leafmap def app(): st.title("LLC remote sensing dashboard") st.markdown( """ Welcome to the LLC remote sensing dashboard. """ ) st.info("Click on the left sidebar menu to navigate to the different apps.") st.subheader("N...
31.625
198
0.675889
91f5eb0eeee466d410e134411369b1da78b341f8
4,540
py
Python
wildfirepy/net/util/usgs.py
mehra-deepak/wildfirepy
cdd33928c4f38d936b9b0315cdfdcb0fff8d367a
[ "MIT" ]
null
null
null
wildfirepy/net/util/usgs.py
mehra-deepak/wildfirepy
cdd33928c4f38d936b9b0315cdfdcb0fff8d367a
[ "MIT" ]
null
null
null
wildfirepy/net/util/usgs.py
mehra-deepak/wildfirepy
cdd33928c4f38d936b9b0315cdfdcb0fff8d367a
[ "MIT" ]
null
null
null
import urllib import urllib.request from urllib.request import HTTPPasswordMgrWithDefaultRealm from urllib.request import HTTPBasicAuthHandler, HTTPCookieProcessor from http.cookiejar import CookieJar import re __all__ = ['URLOpenerWithRedirect', 'MODISHtmlParser', 'VIIRSHtmlParser'] class URLOpenerWithRedirect: ...
32.198582
105
0.62489
5a67bde1d3fd5d342a2fd42d55d56d56b048f808
3,234
py
Python
archive/syncClementine.py
starcraftman/.my_scripts
b504661547768dfff89931743197224b50d85f95
[ "MIT" ]
1
2016-06-23T05:02:34.000Z
2016-06-23T05:02:34.000Z
archive/syncClementine.py
starcraftman/.my_scripts
b504661547768dfff89931743197224b50d85f95
[ "MIT" ]
1
2015-02-28T14:59:56.000Z
2015-02-28T17:10:15.000Z
archive/syncClementine.py
starcraftman/.my_scripts
b504661547768dfff89931743197224b50d85f95
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Update the clementine ratings between two different DBs. Often switch between OSes and want to keep ratings up to date. If you only want a subset of the songs, modify the QUERY_RATING variable. Pass in db locations to the program as SRC and DST, ratings from SRC will ...
35.538462
93
0.640383
94e0d21ee3484710164b0645477dff51b745546b
53
py
Python
HypixelAPIWrapper/Gamemodes/Arcade/ThrowOut.py
Tammon23/hypixelAPI
4ecfe45542bd956e6d5cd069fa690ef6bf9670b7
[ "MIT" ]
null
null
null
HypixelAPIWrapper/Gamemodes/Arcade/ThrowOut.py
Tammon23/hypixelAPI
4ecfe45542bd956e6d5cd069fa690ef6bf9670b7
[ "MIT" ]
null
null
null
HypixelAPIWrapper/Gamemodes/Arcade/ThrowOut.py
Tammon23/hypixelAPI
4ecfe45542bd956e6d5cd069fa690ef6bf9670b7
[ "MIT" ]
null
null
null
class ThrowOut: def __init__(self): pass
13.25
23
0.603774
6c27d62ce79fef0b856cd1b2556bc6b735e0d083
177
py
Python
jeffnet/objax/layers/__init__.py
Forbu/efficientnet-jax
eb9ed23826a92761bd3c8d88df0243910c9c24bd
[ "Apache-2.0" ]
95
2020-10-28T22:32:55.000Z
2022-03-09T09:37:34.000Z
jeffnet/objax/layers/__init__.py
Forbu/efficientnet-jax
eb9ed23826a92761bd3c8d88df0243910c9c24bd
[ "Apache-2.0" ]
2
2021-03-19T17:03:06.000Z
2022-02-02T17:48:10.000Z
jeffnet/objax/layers/__init__.py
Forbu/efficientnet-jax
eb9ed23826a92761bd3c8d88df0243910c9c24bd
[ "Apache-2.0" ]
8
2020-11-01T14:05:02.000Z
2022-03-18T14:33:19.000Z
from .activations import get_act_fn from .drop_path import drop_path from .linear import Conv2d, Linear from .mixed_conv import MixedConv from .normalization import BatchNorm2d
29.5
38
0.847458
41f7d79bd48b1a97bfc2e73e7165598f256b0d50
1,196
py
Python
engine/DatabaseSearcher.py
leff0506/face_recognition
d4c1e1da6e3c197db2a5619b10d848819b563137
[ "MIT" ]
null
null
null
engine/DatabaseSearcher.py
leff0506/face_recognition
d4c1e1da6e3c197db2a5619b10d848819b563137
[ "MIT" ]
null
null
null
engine/DatabaseSearcher.py
leff0506/face_recognition
d4c1e1da6e3c197db2a5619b10d848819b563137
[ "MIT" ]
null
null
null
import cv2 from engine.FaceDetector import FaceDetector from engine.FaceNet import FaceNet import glob import pickle import numpy as np import os class DatabaseSearcher: def __init__(self): self.face_detector = FaceDetector() self.face_net = FaceNet() self.X = [] self.Y = [] ...
31.473684
55
0.553512
6a5ed46206e388ba1134b32d3101325eb9389aad
5,466
py
Python
dss_vae/metrics/evaluation.py
baoy-nlp/DSS-VAE
855f5722301b2d22aef622e7bb8fef74a759f9de
[ "Apache-2.0" ]
37
2019-07-05T16:20:13.000Z
2021-12-21T05:04:49.000Z
dss_vae/metrics/evaluation.py
baoy-nlp/DSS-VAE
855f5722301b2d22aef622e7bb8fef74a759f9de
[ "Apache-2.0" ]
2
2019-08-28T11:51:01.000Z
2021-06-06T11:39:21.000Z
dss_vae/metrics/evaluation.py
baoy-nlp/DSS-VAE
855f5722301b2d22aef622e7bb8fef74a759f9de
[ "Apache-2.0" ]
3
2020-01-03T06:17:13.000Z
2021-11-29T12:32:01.000Z
# coding=utf-8 from __future__ import print_function import os import time from .bleu_scorer import BleuScoreMetric from .tools import batchify_examples from .tools import predict_to_plain from .tools import prepare_input from .tools import prepare_ref from .tools import write_result # sys.path.append(".") # import...
29.545946
116
0.652397
8bf1609f4590cc3270b831fa2dbc507f84a1699f
272
py
Python
exercicios/009.py
daldantas/Curso-Python
96d09393b1ad278990156906e965c0d7adb4f4aa
[ "MIT" ]
null
null
null
exercicios/009.py
daldantas/Curso-Python
96d09393b1ad278990156906e965c0d7adb4f4aa
[ "MIT" ]
null
null
null
exercicios/009.py
daldantas/Curso-Python
96d09393b1ad278990156906e965c0d7adb4f4aa
[ "MIT" ]
null
null
null
n = int(input("Tabuada de: ")) print(n, 'x 1 =', n*1) print(n, 'x 2 =', n*2) print(n, 'x 3 =', n*3) print(n, 'x 4 =', n*4) print(n, 'x 5 =', n*5) print(n, 'x 6 =', n*6) print(n, 'x 7 =', n*7) print(n, 'x 8 =', n*8) print(n, 'x 9 =', n*9) print(n, 'x 10 =', n*10)
24.727273
31
0.441176
3c1c60965a90656b0277b1967081bec52801e885
4,460
py
Python
basis_set_exchange/printing.py
lomalaspina/basis_set_exchange
c0c61e56c065d21a32e66c0285cc75a737bc7e68
[ "BSD-3-Clause" ]
null
null
null
basis_set_exchange/printing.py
lomalaspina/basis_set_exchange
c0c61e56c065d21a32e66c0285cc75a737bc7e68
[ "BSD-3-Clause" ]
null
null
null
basis_set_exchange/printing.py
lomalaspina/basis_set_exchange
c0c61e56c065d21a32e66c0285cc75a737bc7e68
[ "BSD-3-Clause" ]
null
null
null
''' Helpers for printing pieces of basis sets ''' from . import lut from .misc import expand_elements, contraction_string def _find_point(x): if isinstance(x, int): return 0 else: return x.index('.') def _determine_leftpad(column, point_place): '''Find how many spaces to put before a co...
27.361963
96
0.62287
99ca3e005dde976fe971f4a97e087cb6a2e91466
8,712
py
Python
tests/components/conversation/test_init.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
1
2021-07-08T20:09:55.000Z
2021-07-08T20:09:55.000Z
tests/components/conversation/test_init.py
pcaston/core
e74d946cef7a9d4e232ae9e0ba150d18018cfe33
[ "Apache-2.0" ]
47
2021-02-21T23:43:07.000Z
2022-03-31T06:07:10.000Z
tests/components/conversation/test_init.py
OpenPeerPower/core
f673dfac9f2d0c48fa30af37b0a99df9dd6640ee
[ "Apache-2.0" ]
null
null
null
"""The tests for the Conversation component.""" import pytest from openpeerpower.components import conversation from openpeerpower.core import DOMAIN as OPP_DOMAIN, Context from openpeerpower.helpers import intent from openpeerpower.setup import async_setup_component from tests.common import async_mock_intent, async_...
31.565217
87
0.651745
f9ebb1a827068501b5e630ad4996ac96f233f8b5
2,045
py
Python
mrobot_bringup/scripts/odom_ekf.py
ROSCLUB/mrobot
d1cd0593bda8e958fb0d79f1e98c55b185cb41eb
[ "Apache-2.0" ]
52
2017-10-24T07:46:59.000Z
2021-08-16T13:13:00.000Z
mrobot_bringup/scripts/odom_ekf.py
ROSCLUB/mrobot
d1cd0593bda8e958fb0d79f1e98c55b185cb41eb
[ "Apache-2.0" ]
1
2019-09-07T09:00:50.000Z
2019-12-04T02:13:25.000Z
mrobot_bringup/scripts/odom_ekf.py
ROSCLUB/mrobot
d1cd0593bda8e958fb0d79f1e98c55b185cb41eb
[ "Apache-2.0" ]
25
2017-10-24T07:47:01.000Z
2021-08-16T11:21:12.000Z
#!/usr/bin/env python """ odom_ekf.py - Version 1.1 2013-12-20 Republish the /robot_pose_ekf/odom_combined topic which is of type geometry_msgs/PoseWithCovarianceStamped as an equivalent message of type nav_msgs/Odometry so we can view it in RViz. Created for the Pi Robot Project: http://www.pirobot...
31.953125
79
0.672372
aaa8fc947d107d555b91439ddd3f6b9892deb9f5
2,908
py
Python
research/object_detection/dataset_tools/safety_samples_dataset.py
tealeeseng/models
97b8db44c99cd552621cd2e95173e54350f88034
[ "Apache-2.0" ]
null
null
null
research/object_detection/dataset_tools/safety_samples_dataset.py
tealeeseng/models
97b8db44c99cd552621cd2e95173e54350f88034
[ "Apache-2.0" ]
null
null
null
research/object_detection/dataset_tools/safety_samples_dataset.py
tealeeseng/models
97b8db44c99cd552621cd2e95173e54350f88034
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import random import os import glob import shutil import sys # for sampling size percentage. To facilitate growing dataset in view of Active Learning process. PERCENTAGE = 0.01 # constant JPEG_IMAGES_DIR = 'JPEGImages/' flags = tf.app.flags flags.DEFINE_string('data_dir', 'full-safety-loads...
31.268817
135
0.689477
4cc332454222c963621abd77daaac51e396f5d78
643
py
Python
examples/src/Presentations/Conversion/RenderingNotesWhileConvertingToHTML.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Presentations/Conversion/RenderingNotesWhileConvertingToHTML.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
examples/src/Presentations/Conversion/RenderingNotesWhileConvertingToHTML.py
aspose-slides/Aspose.Slides-for-Python-via-.NET
c55ad5c71f942598f1e67e22a52cbcd1cb286467
[ "MIT" ]
null
null
null
import aspose.slides as slides def convert_to_html_with_notes(): #ExStart:RenderingNotesWhileConvertingToHTML # The path to the documents directory. dataDir = "./examples/data/" outDir = "./examples/out/" with slides.Presentation(dataDir + "welcome-to-powerpoint.pptx") as pres: opt = slide...
37.823529
101
0.734059
7f3a8ba2fdc08eef13bd7878e695ddf68ea9da7a
754
py
Python
validate.py
AhsanSN/Copy-Prevention-System
fa29c163bea7888041d87045a27f8c609ce7457b
[ "Apache-2.0" ]
2
2018-07-03T08:42:33.000Z
2018-07-14T23:13:12.000Z
validate.py
AhsanSN/Copy-Prevention-System
fa29c163bea7888041d87045a27f8c609ce7457b
[ "Apache-2.0" ]
null
null
null
validate.py
AhsanSN/Copy-Prevention-System
fa29c163bea7888041d87045a27f8c609ce7457b
[ "Apache-2.0" ]
null
null
null
import pickle,pprint,socket,webbrowser,re import sys, os # Save a dictionary into a pickle file. '''main''' def main(): os.chdir(os.getcwd()) #store mac address pkl_file = open('data.pkl', 'rb') data1 = pickle.load(pkl_file) storedMacAddress = (data1['macAddress']) # get allow value all...
22.848485
78
0.633952
1410e088421dc661eb7642ac7da8b74d4ce410d1
2,835
py
Python
pyflowgraph/graph_view_widget.py
phtaylor/pyflowgraph
47043e7a03b26f42c8783ba9e75171cc7cdd9282
[ "BSD-3-Clause" ]
50
2016-09-24T05:19:45.000Z
2022-01-24T07:00:15.000Z
pyflowgraph/graph_view_widget.py
phtaylor/pyflowgraph
47043e7a03b26f42c8783ba9e75171cc7cdd9282
[ "BSD-3-Clause" ]
7
2017-01-23T16:19:55.000Z
2017-04-07T18:22:46.000Z
pyflowgraph/graph_view_widget.py
phtaylor/pyflowgraph
47043e7a03b26f42c8783ba9e75171cc7cdd9282
[ "BSD-3-Clause" ]
23
2016-11-24T14:43:20.000Z
2021-12-31T11:29:56.000Z
# # Copyright 2015-2017 Eric Thivierge # import sys from qtpy import QtGui, QtWidgets, QtCore from .graph_view import GraphView class GraphViewWidget(QtWidgets.QWidget): rigNameChanged = QtCore.Signal() def __init__(self, parent=None): # constructors of base classes super(GraphViewWidget,...
34.156627
98
0.686067
4a02c23247891fd7bbb18fe2449d3ed603614f37
1,173
py
Python
examples/utils/event_callback.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
29
2019-12-28T10:37:16.000Z
2022-02-09T10:48:04.000Z
examples/utils/event_callback.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
29
2019-12-26T13:46:11.000Z
2022-03-29T18:14:33.000Z
examples/utils/event_callback.py
cclauss/pivy
55de2ba4dd32f62ce2d4e33ca28459cf3ea5167a
[ "ISC" ]
17
2019-12-29T11:49:32.000Z
2022-02-23T00:28:18.000Z
import sys from PySide2.QtGui import QColor from PySide2.QtWidgets import QApplication from pivy import quarter, coin # testing if a eventcallback can remove itself. class test(coin.SoSeparator): def __init__(self): super(test, self).__init__() self.events = coin.SoEventCallback() self +=...
26.066667
63
0.665814
c6076f01a8f3655045259a7e125d56efd8cf6a6a
2,430
py
Python
novelsave/services/source/source_gateway.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
null
null
null
novelsave/services/source/source_gateway.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
null
null
null
novelsave/services/source/source_gateway.py
damare01/novelsave
7896e8393c944e169e3cb52a33ab81ae396dff9f
[ "Apache-2.0" ]
null
null
null
from typing import List import browser_cookie3 from loguru import logger from novelsave_sources.sources.novel.source import Source from requests.cookies import RequestsCookieJar from ...core import dtos from ...core.services.source import BaseSourceGateway from ...exceptions import CookieBrowserNotSupportedException ...
32.4
82
0.693827
96102753a64ade42c62995631205af1dcc26e3de
8,509
py
Python
lib/googlecloudsdk/core/console/prompt_completer.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/console/prompt_completer.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
null
null
null
lib/googlecloudsdk/core/console/prompt_completer.py
bopopescu/Google-Cloud-SDK-1
c4683bacb2f6192d8a816932e438a0493085469b
[ "Apache-2.0" ]
1
2020-07-24T20:13:29.000Z
2020-07-24T20:13:29.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
34.730612
80
0.673287
592ec628c1bc926dcd615ea0d130cf20c1d5c66a
14,363
py
Python
submodules/efficientnet/efficientnet_pytorch/utils.py
khy0809/WeightNet
cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e
[ "MIT" ]
null
null
null
submodules/efficientnet/efficientnet_pytorch/utils.py
khy0809/WeightNet
cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e
[ "MIT" ]
null
null
null
submodules/efficientnet/efficientnet_pytorch/utils.py
khy0809/WeightNet
cd5ea53b42c6169ffd5a0d7d883788fdc871cd1e
[ "MIT" ]
null
null
null
""" This file contains helper functions for building the model and for loading model parameters. These helper functions are built to mirror those in the official TensorFlow implementation. """ import re import math import collections from functools import partial import torch from torch import nn from torch.nn import ...
42.368732
130
0.651466
ef579b33a39429bee78d0ce7b5e09e67a7ddd90f
10,190
py
Python
django/docs/topics/db/examples/many_to_many.txt.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/docs/topics/db/examples/many_to_many.txt.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
django/docs/topics/db/examples/many_to_many.txt.py
roshanba/mangal
f7b428811dc07214009cc33f0beb665ead402038
[ "bzip2-1.0.6", "MIT" ]
null
null
null
XXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXX XXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXX XX XXXXXXXXXXX XXXXX XX XXXXXX X XXXXXXXXXXXX XXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XX XXXX XXXXXXXX XX XXXXXXXXXXX XXX XX XXXXXXXXX XX XXXXXXXX XXXXXXXXXXXXXXX XXXXXXXX XXX X XXXXXXXXXXXXXXX XXX XXXXXXXX XXXXXXX...
36.007067
186
0.826693
80a4da103cdd9e1be86e602c2eb2844e20ae5d65
489
py
Python
chatbot_env/Lib/site-packages/sklearn/feature_selection/rfe.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
chatbot_env/Lib/site-packages/sklearn/feature_selection/rfe.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
site-packages/sklearn/feature_selection/rfe.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py import sys from . import _rfe from ..externals._pep562 import Pep562 from ..utils.deprecation import _raise_dep_warning_if_not_pytest deprecated_path = 'sklearn.feature_selection.rfe' correct_import_path = 'sklearn.feature_selection.rfe' _raise_dep_war...
27.166667
70
0.811861
627ca232c65501b20bf463f42a42f320ce5df732
2,275
py
Python
mvpnet/data/preprocess/resize_scannet_images.py
dcy0577/Enhancing-3D-Point-Cloud-Segmentation-Using-Multi-Modal-Fusion-with-2D-Images
b0e9c0d26177f74b20cbf95f15cefba9af695c70
[ "MIT" ]
3
2021-12-20T02:41:28.000Z
2022-02-18T15:47:48.000Z
mvpnet/data/preprocess/resize_scannet_images.py
dcy0577/Enhancing-3D-Point-Cloud-Segmentation-Using-Multi-Modal-Fusion-with-2D-Images
b0e9c0d26177f74b20cbf95f15cefba9af695c70
[ "MIT" ]
null
null
null
mvpnet/data/preprocess/resize_scannet_images.py
dcy0577/Enhancing-3D-Point-Cloud-Segmentation-Using-Multi-Modal-Fusion-with-2D-Images
b0e9c0d26177f74b20cbf95f15cefba9af695c70
[ "MIT" ]
null
null
null
import os import os.path as osp import glob import natsort from PIL import Image import numpy as np import multiprocessing as mp resize = (160, 120) # resize = (640, 480) # adapt the following paths raw_dir = "/home/dchangyu/MV-KPConv/ScanNet/scans" out_dir = "/home/dchangyu/MV-KPConv/ScanNet/scans_resize_{}x{}".forma...
32.042254
101
0.622857
fd969cfc658431fe6677fa8381fc51ac5115cff7
13,084
py
Python
bb_fit.py
simeonreusch/tywin
564a8cee7f6746e911b815c25f989e3104096b48
[ "BSD-3-Clause" ]
null
null
null
bb_fit.py
simeonreusch/tywin
564a8cee7f6746e911b815c25f989e3104096b48
[ "BSD-3-Clause" ]
null
null
null
bb_fit.py
simeonreusch/tywin
564a8cee7f6746e911b815c25f989e3104096b48
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Author: Simeon Reusch (simeon.reusch@desy.de) # License: BSD-3-Clause import logging, os, argparse, time, json import numpy as np import pandas as pd import matplotlib import astropy.units as u from astropy import constants as const from astropy import units as u import matplotlib.pyplot as pl...
29.075556
88
0.702843
cfadb8f0008ace98e9da5f0f93738bb3a182cebc
1,815
py
Python
authors/apps/authentication/backends.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
null
null
null
authors/apps/authentication/backends.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
64
2018-11-27T11:20:55.000Z
2021-06-10T20:58:34.000Z
authors/apps/authentication/backends.py
andela/ah-infinity-stones
e57d4b007f0df4a5db9a1841fd88898adecf1fcd
[ "BSD-3-Clause" ]
4
2018-12-19T19:58:18.000Z
2019-10-03T08:28:00.000Z
import jwt from datetime import datetime, timedelta from django.conf import settings from rest_framework.exceptions import AuthenticationFailed from rest_framework import authentication from .models import User class JWTAuthentication(authentication.BaseAuthentication): """This class implement the JWT token""" ...
34.245283
77
0.608815
39009cfdebe5d83b87d2352550403d901e6d5e6d
788
py
Python
Most Asked DSA By Companies/Meta/39-3.py
neelaadityakumar/leetcode
e78e0b8dc0113bdc1721bf7d025a463bea04847f
[ "MIT" ]
null
null
null
Most Asked DSA By Companies/Meta/39-3.py
neelaadityakumar/leetcode
e78e0b8dc0113bdc1721bf7d025a463bea04847f
[ "MIT" ]
null
null
null
Most Asked DSA By Companies/Meta/39-3.py
neelaadityakumar/leetcode
e78e0b8dc0113bdc1721bf7d025a463bea04847f
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/longest-substring-without-repeating-characters/ # 3. Longest Substring Without Repeating Characters # Medium # 22193 # 995 # Add to List # Share # Given a string s, find the length of the longest substring without repeating characters. # Example 1: # Input: s = "abcabcbb" # Output...
21.297297
90
0.700508
c8a6c1b0b4fe6728bf57366fdc64f694f953054c
795
py
Python
code/src/main/python/mos/blocks/ast_distance_node.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
null
null
null
code/src/main/python/mos/blocks/ast_distance_node.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
1
2021-11-03T08:28:31.000Z
2021-11-03T08:28:31.000Z
code/src/main/python/mos/blocks/ast_distance_node.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
1
2022-03-22T14:24:13.000Z
2022-03-22T14:24:13.000Z
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "COSAL" from utils.lib import O class ASTDistanceNode(O): DELIMITER = "-" def __init__(self, **kwargs): O.__init__(self, **kwargs) self.uid1 = None self.uid2 = None self.distance = None de...
19.875
73
0.646541
be108bd8b0319cc49a077142533a2c4549ad3c1e
6,553
py
Python
src/gui.py
bjorco/FileOrganizer
47065110f3cba472e59e3b65b402ffd6362a507e
[ "MIT" ]
null
null
null
src/gui.py
bjorco/FileOrganizer
47065110f3cba472e59e3b65b402ffd6362a507e
[ "MIT" ]
null
null
null
src/gui.py
bjorco/FileOrganizer
47065110f3cba472e59e3b65b402ffd6362a507e
[ "MIT" ]
null
null
null
import ctypes import shutil import tkinter as tk from dataclasses import asdict from pathlib import Path from tkinter import ttk from tkinter.filedialog import askdirectory from typing import Dict, List, Optional import model import pdf_viewer from item_treeview import DocumentInfoTree import pickle class Event: ...
34.671958
98
0.656035
36adc9ce6b8fdf61c14ddb7edbf5fd47a11429fd
1,270
py
Python
tools/view_bn_weights.py
Sanster/YOLOX
39f96860bf7d372389549a414381a4518004ff9e
[ "Apache-2.0" ]
12
2021-11-08T05:55:10.000Z
2022-02-19T12:09:34.000Z
tools/view_bn_weights.py
hyaihjq/YOLOX-Slim
39f96860bf7d372389549a414381a4518004ff9e
[ "Apache-2.0" ]
1
2022-03-17T13:24:52.000Z
2022-03-17T13:24:52.000Z
tools/view_bn_weights.py
hyaihjq/YOLOX-Slim
39f96860bf7d372389549a414381a4518004ff9e
[ "Apache-2.0" ]
2
2021-12-11T10:55:00.000Z
2022-02-25T03:16:59.000Z
import torch from torch import nn from pns import SlimPruner from torch.nn import BatchNorm2d from torch.utils.tensorboard import SummaryWriter from yolox.exp import get_exp def random_init(M): for m in M.modules(): try: if isinstance(m, nn.BatchNorm2d): nn.init.uniform_(m.wei...
28.863636
88
0.703937
755bc8dc1fa4d4bb19144e4278b03a92d3afc826
6,658
py
Python
sdk/python/pulumi_azure_nextgen/batch/v20170501/application_package.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/batch/v20170501/application_package.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/batch/v20170501/application_package.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
44.684564
770
0.658156
1494ca913545ca03f7b78590602734b6901f42f5
31,113
py
Python
mypy/plugins/attrs.py
ichard26/mypy
c90026bd867635a4efe70cdacf0caaf00a986914
[ "PSF-2.0" ]
1
2021-09-25T16:12:01.000Z
2021-09-25T16:12:01.000Z
mypy/plugins/attrs.py
ichard26/mypy
c90026bd867635a4efe70cdacf0caaf00a986914
[ "PSF-2.0" ]
1
2021-08-21T07:40:45.000Z
2021-08-21T07:40:45.000Z
mypy/plugins/attrs.py
ichard26/mypy
c90026bd867635a4efe70cdacf0caaf00a986914
[ "PSF-2.0" ]
1
2021-08-21T07:39:57.000Z
2021-08-21T07:39:57.000Z
"""Plugin for supporting the attrs library (http://www.attrs.org)""" from mypy.backports import OrderedDict from typing import Optional, Dict, List, cast, Tuple, Iterable from typing_extensions import Final import mypy.plugin # To avoid circular imports. from mypy.exprtotype import expr_to_unanalyzed_type, TypeTran...
42.679012
99
0.633369
41f0915867077658b7c6ef78a8326aa606bb3606
27,699
py
Python
empresas/migrations/0004_auto__del_field_compradoresrubros_rubro_1__del_field_compradoresrubros.py
CARocha/simasinnovacion
2848cfe4c84362e79217afb9db8b908daf800237
[ "MIT" ]
null
null
null
empresas/migrations/0004_auto__del_field_compradoresrubros_rubro_1__del_field_compradoresrubros.py
CARocha/simasinnovacion
2848cfe4c84362e79217afb9db8b908daf800237
[ "MIT" ]
null
null
null
empresas/migrations/0004_auto__del_field_compradoresrubros_rubro_1__del_field_compradoresrubros.py
CARocha/simasinnovacion
2848cfe4c84362e79217afb9db8b908daf800237
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'CompradoresRubros.rubro_1' db.delete_column(u'empresas_...
63.384439
187
0.603271
c155f05d4bd85c71672b12a27b2be0276f7abecb
368
py
Python
backend/project/config.py
MagicAP-QA/document-layout-analysis-app
39467658cc8704d734c8e50055449493f71e9495
[ "MIT" ]
13
2020-10-02T20:30:16.000Z
2022-02-01T09:00:00.000Z
backend/project/config.py
MagicAP-QA/document-layout-analysis-app
39467658cc8704d734c8e50055449493f71e9495
[ "MIT" ]
3
2020-10-07T02:17:41.000Z
2021-11-07T11:12:34.000Z
backend/project/config.py
MagicAP-QA/document-layout-analysis-app
39467658cc8704d734c8e50055449493f71e9495
[ "MIT" ]
19
2020-09-25T11:34:33.000Z
2022-02-01T09:00:01.000Z
import os class BaseConfig(object): DEBUG = False TESTING = False SECRET_KEY = os.environ.get("SECRET_KEY") or "l;afhdofhaoie2hifhskldn09234023 -u09)7(^(Y*IHFY *Yoisdf8" class DevelopmentConfig(BaseConfig): """Development configuration""" DEBUG = True class ProductionConfig(BaseConfig): "...
19.368421
107
0.706522
eca66126701c3add956b1ce3ed42c7ae5ea440e4
1,210
py
Python
src/core/api/serializers.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
src/core/api/serializers.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
src/core/api/serializers.py
infiltratorXYZ/invoicer
9b3542040b0e8268b2f725eeee8b806f9ca61a6d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from django.contrib.auth.models import User from rest_framework import serializers from core.models import Invoice, InvoiceEntry, Item class ItemSerializer(serializers.ModelSerializer): owner = serializers.ReadOnlyField(source="owner.username") class Meta: model = Item ...
27.5
84
0.718182
cf54f0591fc71e162b24c019601c9815707319c8
1,258
py
Python
pycsvsql/core.py
gzxultra/pycsvsql
ab421e4278b1277cc08cdb00aa91e0596c79a801
[ "MIT" ]
null
null
null
pycsvsql/core.py
gzxultra/pycsvsql
ab421e4278b1277cc08cdb00aa91e0596c79a801
[ "MIT" ]
null
null
null
pycsvsql/core.py
gzxultra/pycsvsql
ab421e4278b1277cc08cdb00aa91e0596c79a801
[ "MIT" ]
null
null
null
# coding: utf-8 import datetime import click from peewee import CharField, DateTimeField, Model, SqliteDatabase from pycsvsql.helpers import next_n_lines db = SqliteDatabase('pycsvsql.db') class BaseModel(Model): class Meta: database = db created_time = DateTimeField(default=datetime.datetime.now)...
23.735849
77
0.658188
0aa3a6709cfd9344e651ceb8ea0549a3ef7b1557
8,133
py
Python
engine/stress/teardown-test.py
kaxing/longhorn-tests
e8e95f1446155f20cbbb9b47d8e139de09d567f0
[ "Apache-2.0" ]
10
2021-01-25T00:52:46.000Z
2022-02-20T01:49:56.000Z
engine/stress/teardown-test.py
kaxing/longhorn-tests
e8e95f1446155f20cbbb9b47d8e139de09d567f0
[ "Apache-2.0" ]
273
2019-06-12T17:43:49.000Z
2022-03-29T09:06:02.000Z
engine/stress/teardown-test.py
kaxing/longhorn-tests
e8e95f1446155f20cbbb9b47d8e139de09d567f0
[ "Apache-2.0" ]
24
2019-06-12T04:03:00.000Z
2022-03-21T08:08:47.000Z
import subprocess import time import random import sys import threading import time import os import directio import mmap from os import path import stat import datetime from multiprocessing import Process, Manager, Array, current_process, Lock subprocess.call("sudo iscsiadm -m node --logout", shell=True) subprocess....
39.100962
108
0.626091