hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
73b2dfb851f12406a506333d8c97a15e80071473
9,238
py
Python
neutron/tests/unit/db/test_sqlalchemytypes.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
4
2018-08-05T00:43:03.000Z
2021-10-13T00:45:45.000Z
neutron/tests/unit/db/test_sqlalchemytypes.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
8
2018-06-14T14:50:16.000Z
2018-11-13T16:30:42.000Z
neutron/tests/unit/db/test_sqlalchemytypes.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
7
2018-06-12T18:57:04.000Z
2019-05-09T15:42:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
35.806202
78
0.602511
73b2e7a6a6145420264a72ec548d19781aefd521
1,497
py
Python
src/token_indexing.py
izuna385/Zero-Shot-Entity-Linking
565004af524d2cf373181c9c84b7d5c9f232d7fc
[ "MIT" ]
22
2020-05-27T09:27:15.000Z
2022-03-18T10:16:18.000Z
src/token_indexing.py
izuna385/Zero-Shot-Entity-Linking
565004af524d2cf373181c9c84b7d5c9f232d7fc
[ "MIT" ]
6
2020-07-31T12:46:13.000Z
2021-02-28T12:23:12.000Z
src/token_indexing.py
izuna385/Zero-Shot-Entity-Linking
565004af524d2cf373181c9c84b7d5c9f232d7fc
[ "MIT" ]
3
2020-08-19T12:59:12.000Z
2021-05-17T13:44:54.000Z
from commons import MENTION_START_TOKEN, MENTION_END_TOKEN NEVER_SPLIT_TOKEN = [MENTION_START_TOKEN, MENTION_END_TOKEN] from allennlp.data.token_indexers import TokenIndexer, SingleIdTokenIndexer, PretrainedTransformerIndexer import transformers class TokenIndexerReturner: def __init__(self, args): self.ar...
42.771429
105
0.648631
73b2f676ceaa9eaa49f7d288d2d24295f601d4dc
1,848
py
Python
Python_files/OD_matrix_estimation_GLS_Apr_weekday_MD_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Apr_weekday_MD_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
Python_files/OD_matrix_estimation_GLS_Apr_weekday_MD_ext.py
jingzbu/InverseVITraffic
c0d33d91bdd3c014147d58866c1a2b99fb8a9608
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Jing Zhang" __email__ = "jingzbu@gmail.com" __status__ = "Development" from util import * import numpy as np from numpy.linalg import inv, matrix_rank import json # load logit_route_choice_probability_matrix P = zload('../temp_files/logit_route_choice_probability_matrix_ext.pkz'...
26.782609
114
0.66342
73b301fc53c1f79a0a3001aabd02c9cee5c95f86
462
py
Python
indico_chat_bot/exceptions.py
pferreir/indico-chat-bot
0f961543d8e74c6951e24d63387a6b9903d7997c
[ "MIT" ]
null
null
null
indico_chat_bot/exceptions.py
pferreir/indico-chat-bot
0f961543d8e74c6951e24d63387a6b9903d7997c
[ "MIT" ]
2
2016-09-05T14:08:43.000Z
2016-09-07T08:27:43.000Z
indico_chat_bot/exceptions.py
pferreir/indico-chat-bot
0f961543d8e74c6951e24d63387a6b9903d7997c
[ "MIT" ]
2
2016-08-18T09:20:04.000Z
2016-08-18T09:22:28.000Z
class InvalidTimeDeltaFormat(Exception): def __init__(self, time_delta): message = f"Wrong format for timedelta: {time_delta}" super().__init__(message) class InvalidTime(Exception): def __init__(self): message = "Invalid time!" super().__init__(message) class UnknownNotifier...
27.176471
61
0.677489
73b30910c7be9dc56177d59dae53713fb91b2628
6,749
py
Python
arc/processorTest.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/processorTest.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/processorTest.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 """ This module contains unit tests for the arc.processor module """ import os import unittest from arc.common import arc_path from arc.processor import Processor from arc.species.species import ARCSpecies class TestProcessor(unittest.TestCase): """ Contains unit te...
49.262774
115
0.285524
73b3194cf86cd5c6107a76c3eaaa1a4f4b53c179
2,619
py
Python
multicurrency/guarani.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
multicurrency/guarani.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
multicurrency/guarani.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Guarani currency representation(s).""" from decimal import Decimal from typing import Optional, Union from .currency import Currency class Guarani(Curre...
34.012987
77
0.60252
73b335d57057c75a612e603f32a881b12b451ab0
21,645
py
Python
source/lib/MediaReplayEngineWorkflowHelper/MediaReplayEngineWorkflowHelper/__init__.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
22
2021-11-24T01:23:07.000Z
2022-03-26T23:24:46.000Z
source/lib/MediaReplayEngineWorkflowHelper/MediaReplayEngineWorkflowHelper/__init__.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
null
null
null
source/lib/MediaReplayEngineWorkflowHelper/MediaReplayEngineWorkflowHelper/__init__.py
awslabs/aws-media-replay-engine
2c217eff42f8e2c56b43e2ecf593f5aaa92c5451
[ "Apache-2.0" ]
3
2021-12-10T09:42:51.000Z
2022-02-16T02:22:50.000Z
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 ############################################################################## # # PURPOSE: # Helper library used by the MRE internal lambda functions to interact with # the control plane # ################...
34.521531
153
0.631601
73b33a856951abf8d4cde4c931f17a873b32fbd4
2,057
py
Python
autobias/training/data_iterator.py
chrisc36/autobias
df1120d46adccf024c8dc59f86dd95f2c710fb52
[ "Apache-2.0" ]
3
2020-12-27T11:42:14.000Z
2021-04-12T14:19:39.000Z
autobias/training/data_iterator.py
chrisc36/autobias
df1120d46adccf024c8dc59f86dd95f2c710fb52
[ "Apache-2.0" ]
1
2020-12-28T01:36:46.000Z
2020-12-28T01:36:46.000Z
autobias/training/data_iterator.py
chrisc36/autobias
df1120d46adccf024c8dc59f86dd95f2c710fb52
[ "Apache-2.0" ]
null
null
null
from typing import Union from torch.utils.data import DataLoader from autobias.training.data_batcher import SamplerSpec, SubsetSampler from autobias.utils import py_utils from autobias.utils.configured import Configured class DataIterator(Configured): """ Builds iterators over data, this abstraction is used so ...
30.701493
94
0.713175
73b348611461d623cb4c6e0618e79f724f863e7a
3,051
py
Python
irony_detection/control.py
amosbastian/IronyDetection
da97a9644f2979f356d769bcbec260d7fb35e6a1
[ "MIT" ]
null
null
null
irony_detection/control.py
amosbastian/IronyDetection
da97a9644f2979f356d769bcbec260d7fb35e6a1
[ "MIT" ]
4
2020-01-28T22:44:27.000Z
2021-05-21T15:38:56.000Z
irony_detection/control.py
amosbastian/IronyDetection
da97a9644f2979f356d769bcbec260d7fb35e6a1
[ "MIT" ]
null
null
null
import logging import os from random import shuffle import nltk from utils import remove_ngram, tokenise DIR_PATH = os.path.dirname(os.path.realpath(__file__)) def random_ngrams(ngrams, number_of_ngrams): relevant_ngrams = ngrams[:number_of_ngrams] remaining_ngrams = ngrams[number_of_ngrams:] relevant...
31.78125
77
0.633891
73b34ca9c0c9ae324c755968936a1e188b8c5f6e
532
py
Python
src/zeit/content/cp/browser/publish.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
null
null
null
src/zeit/content/cp/browser/publish.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
11
2015-04-16T14:15:08.000Z
2019-02-01T13:23:17.000Z
src/zeit/content/cp/browser/publish.py
ZeitOnline/zeit.content.cp
ee1dbc34e385e47a5c52eabbe01cdae2df09bd76
[ "BSD-3-Clause" ]
1
2015-12-03T14:58:26.000Z
2015-12-03T14:58:26.000Z
import zeit.cms.browser.menu import zeit.cms.checkout.interfaces import zeit.cms.workflow.interfaces class MenuItem(zeit.cms.browser.menu.LightboxActionMenuItem): sort = -1 lightbox = '@@publish.html' def is_visible(self): manager = zeit.cms.checkout.interfaces.ICheckinManager(self.context) ...
26.6
76
0.699248
73b35e0616cbdd2fec4c7ddd875de039369d7048
325
py
Python
tests/test_defect_system.py
kavanase/py-sc-fermi
3df9f0cf0e2edb566f57ff72d8dae5a191287b64
[ "MIT" ]
8
2019-09-10T02:10:49.000Z
2022-03-18T07:13:52.000Z
tests/test_defect_system.py
kavanase/py-sc-fermi
3df9f0cf0e2edb566f57ff72d8dae5a191287b64
[ "MIT" ]
6
2021-08-10T12:52:37.000Z
2022-02-15T11:36:00.000Z
tests/test_defect_system.py
kavanase/py-sc-fermi
3df9f0cf0e2edb566f57ff72d8dae5a191287b64
[ "MIT" ]
5
2019-08-25T02:54:01.000Z
2022-03-19T03:56:58.000Z
import unittest from unittest.mock import Mock, patch from py_sc_fermi.defect_system import DefectSystem from py_sc_fermi.defect_species import DefectSpecies class TestDefectSystemInit(unittest.TestCase): def test_defect_system_is_initialised(self): pass if __name__ == '__main__': unittest.ma...
23.214286
52
0.781538
73b364e5d2f025b4d2bd02e0fbe31cc4b4140c66
113,796
py
Python
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_03_preview/operations/_iot_hub_resource_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_03_preview/operations/_iot_hub_resource_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_03_preview/operations/_iot_hub_resource_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.79654
254
0.673987
73b38b44463456a191edb4c8ba041d1a56cc641e
7,445
py
Python
catalog/migrations/0001_initial.py
josht27/fomotrial
40d18dd3fe4fc5e1093a6831447ec3f96f2c5a1a
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0001_initial.py
josht27/fomotrial
40d18dd3fe4fc5e1093a6831447ec3f96f2c5a1a
[ "Apache-2.0" ]
null
null
null
catalog/migrations/0001_initial.py
josht27/fomotrial
40d18dd3fe4fc5e1093a6831447ec3f96f2c5a1a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.2 on 2018-04-10 01:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cont...
49.304636
193
0.577032
73b39245c2effd7acc877bfda973a9d44b92ba36
5,120
py
Python
tests/providers/kubernetes/k8s_mocks.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
tests/providers/kubernetes/k8s_mocks.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
tests/providers/kubernetes/k8s_mocks.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2021 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
36.312057
96
0.743555
73b3b0d4e17ede871281349a6c1633a9051cdd51
1,752
py
Python
sites/demo/apps/bigbang/management/commands/import_product_images.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
sites/demo/apps/bigbang/management/commands/import_product_images.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
sites/demo/apps/bigbang/management/commands/import_product_images.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from __future__ import print_function import os from django.core.management.base import BaseCommand from django.core.files import File from PIL import Image from oscar.apps.catalogue import models class Command(BaseCommand): args = '/path/to/folder' help = 'For importin...
29.694915
79
0.610731
73b3ba1a1fa06b910769a1be7ce433103ff36118
5,021
py
Python
cloudify_nsx/network/dhcp_bind.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
2
2017-03-08T21:44:54.000Z
2019-01-16T06:00:16.000Z
cloudify_nsx/network/dhcp_bind.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
3
2017-01-26T13:26:31.000Z
2017-02-03T14:51:45.000Z
cloudify_nsx/network/dhcp_bind.py
cloudify-cosmo/cloudify-nsx-plugin
d7b2abbe384e55aaf47b2c8474ab07f622eb83b5
[ "Apache-2.0" ]
5
2016-12-28T15:26:02.000Z
2017-01-30T08:46:10.000Z
######## # Copyright (c) 2016 GigaSpaces Technologies Ltd. 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...
34.156463
79
0.495718
73b3cc55e6841469ce46ccc1208fc725b0a18de7
265
py
Python
setup.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
6
2020-04-17T17:37:24.000Z
2021-12-04T03:03:46.000Z
setup.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
62
2019-05-21T21:06:42.000Z
2020-01-26T17:33:45.000Z
setup.py
gabimelo/portuguese_wsc
b07308712e0e9b63fbb10b5b8a8a4be95fc1ed1c
[ "MIT" ]
1
2019-07-22T10:19:38.000Z
2019-07-22T10:19:38.000Z
from setuptools import find_packages, setup setup( name='portuguese_wsc', packages=find_packages(), version='0.1.0', description='Solver for Winograd Schema Challenge like questions in Portuguese.', author='Gabriela Melo', license='MIT', )
24.090909
85
0.709434
73b3eb8920e2b216c894ba0cf78c5449c2531325
32,545
py
Python
Python_Code/Extras/Tephigram.py
pacificgilly1992/WC3_InSitu_Electrification
90e75c726811a4639315cab3a06258c711b2dda0
[ "Unlicense" ]
null
null
null
Python_Code/Extras/Tephigram.py
pacificgilly1992/WC3_InSitu_Electrification
90e75c726811a4639315cab3a06258c711b2dda0
[ "Unlicense" ]
null
null
null
Python_Code/Extras/Tephigram.py
pacificgilly1992/WC3_InSitu_Electrification
90e75c726811a4639315cab3a06258c711b2dda0
[ "Unlicense" ]
null
null
null
from __future__ import absolute_import, division, print_function from collections import Iterable, namedtuple from functools import partial from matplotlib.font_manager import FontProperties import matplotlib.pyplot as plt from mpl_toolkits.axisartist.grid_helper_curvelinear import GridHelperCurveLinear from mpl_toolki...
38.064327
128
0.601229
73b42dc409feccf5c613ac8ef3e10b016a3ff304
8,662
py
Python
docs/examples/viz_network_animated.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
docs/examples/viz_network_animated.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
docs/examples/viz_network_animated.py
sreekarchigurupati/fury
07ed10123954d3ce3197c45f8ee54a7d4909656d
[ "BSD-3-Clause" ]
null
null
null
""" ======================================================= Visualize Networks (Animated version) ======================================================= The goal of this demo is to show how to visualize a complex network and use an force directed algorithm to layout the network. A simpler animation of the network mad...
34.927419
79
0.532671
73b46deef6e9c7303d9bbade226f641e645d6c72
4,365
py
Python
modulemd/v2/tests/ModulemdTests/componentrpm.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
1
2019-03-12T05:36:55.000Z
2019-03-12T05:36:55.000Z
modulemd/v2/tests/ModulemdTests/componentrpm.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
null
null
null
modulemd/v2/tests/ModulemdTests/componentrpm.py
AarushiSingh09/libmodulemd
707a59858252fe176759f75fe2851212b30f0b87
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # This file is part of libmodulemd # Copyright (C) 2018 Red Hat, Inc. # # Fedora-License-Identifier: MIT # SPDX-2.0-License-Identifier: MIT # SPDX-3.0-License-Identifier: MIT # # This program is free software. # For more information on the license, see COPYING. # For more information on free softwar...
32.819549
74
0.614433
73b492f65ec1586f008d073858cc761192be61dd
11,700
py
Python
bzz/providers/sqlalchemy_provider.py
gitter-badger/bzz
68c7a5f073e5e991cf4c8305e0fb4bbb8f4ba236
[ "MIT" ]
5
2015-03-20T12:17:20.000Z
2021-06-02T20:14:39.000Z
bzz/providers/sqlalchemy_provider.py
gitter-badger/bzz
68c7a5f073e5e991cf4c8305e0fb4bbb8f4ba236
[ "MIT" ]
null
null
null
bzz/providers/sqlalchemy_provider.py
gitter-badger/bzz
68c7a5f073e5e991cf4c8305e0fb4bbb8f4ba236
[ "MIT" ]
1
2015-05-14T03:24:17.000Z
2015-05-14T03:24:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # This file is part of bzz. # https://github.com/heynemann/bzz # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT-license # Copyright (c) 2014 Bernardo Heynemann heynemann@gmail.com import math import tornado.gen as gen from sqlalchemy.orm.relationsh...
29.25
153
0.580171
73b49445424ac54894828a762388020c14ade4de
3,655
py
Python
tests/unit/states/openstack_config_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
tests/unit/states/openstack_config_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
tests/unit/states/openstack_config_test.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>` ''' # Import Python libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import skipIf, TestCase from salttesting.mock import ( NO_MOCK, NO_MOCK_REASON, MagicMock, patch) from...
34.481132
79
0.554309
73b4c5d786a519060c7a8b259795a37a85824d3c
3,307
py
Python
venv/Lib/site-packages/pyrogram/methods/bots/get_inline_bot_results.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/bots/get_inline_bot_results.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/bots/get_inline_bot_results.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
36.340659
97
0.590263
73b4fba1a451aabe11be36fc7ae54d4264bf9c96
3,266
py
Python
sports.py
iJebus/lemonbot
4850f24a54b8e8e9ddc56861d18aa3ad7a550f7c
[ "MIT" ]
null
null
null
sports.py
iJebus/lemonbot
4850f24a54b8e8e9ddc56861d18aa3ad7a550f7c
[ "MIT" ]
null
null
null
sports.py
iJebus/lemonbot
4850f24a54b8e8e9ddc56861d18aa3ad7a550f7c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- import arrow import re import requests from bs4 import BeautifulSoup BASE = 'http://app.sportdata.com.au' ORGS = { 'lords': '/find_sports/91' } STATS_TH = ['Team', 'Pos', 'Points', '%', 'For', 'Ag', 'Play', 'Won', 'Lost', 'Draw', 'Bye', 'FW', 'FL', 'B'] ...
30.523364
77
0.609002
73b50427358611a4636e9eea024867eb482c700c
7,752
py
Python
src/python/pants/testutil/option/fakes.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
src/python/pants/testutil/option/fakes.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
1
2018-09-04T17:37:34.000Z
2018-09-04T19:42:58.000Z
src/python/pants/testutil/option/fakes.py
mpopenko-exos/pants
47d27037c8b13291fc9023e56ddd1b1defdf1b8e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from collections import defaultdict from pants.option.global_options import GlobalOptionsRegistrar from pants.option.option_util import is_list_option from pants.option.parser import Pars...
38.954774
102
0.712203
73b5107415b52344801d4d25abd1d14a378d69a5
17,702
py
Python
fava/core/__init__.py
ngoonee/fava
c5de5e046bdfbcb62ce8493f679f7fdf9c639778
[ "MIT" ]
null
null
null
fava/core/__init__.py
ngoonee/fava
c5de5e046bdfbcb62ce8493f679f7fdf9c639778
[ "MIT" ]
null
null
null
fava/core/__init__.py
ngoonee/fava
c5de5e046bdfbcb62ce8493f679f7fdf9c639778
[ "MIT" ]
null
null
null
"""This module provides the data required by Fava's reports.""" import collections import copy import datetime import os from beancount import loader from beancount.core import getters, interpolate, prices, realization from beancount.core.flags import FLAG_UNREALIZED from beancount.core.account_types import get_accou...
34.641879
79
0.615976
73b5274817f616e73d15a423f5d2ed1dd38017b2
3,083
py
Python
doc/scripts/build_imgproc_defaults.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
doc/scripts/build_imgproc_defaults.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
doc/scripts/build_imgproc_defaults.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Construct an rst table with the dependencies """ from IPython import embed import os from pkg_resources import resource_filename import numpy from pypeit.utils import string_table from pypeit.par.pypeitpar import ProcessImagesPar, PypeItPar from pypeit.spectrographs import spectrograph_classes def write_imgpro...
33.51087
98
0.584496
73b58de0b7ddefbf2c10776acfcb9be95fb37d33
473
py
Python
setup.py
mehak151/unfurl
db4a0fd7163462156b5958103900942ae61c5d4c
[ "MIT" ]
null
null
null
setup.py
mehak151/unfurl
db4a0fd7163462156b5958103900942ae61c5d4c
[ "MIT" ]
null
null
null
setup.py
mehak151/unfurl
db4a0fd7163462156b5958103900942ae61c5d4c
[ "MIT" ]
null
null
null
"""A setuptools based setup module. """ # Always prefer setuptools over distutils from setuptools import setup with open("full-requirements.txt") as f: full_requirements = filter( None, [line.partition("#")[0].strip() for line in f.read().splitlines()] ) setup( setup_requires=["pbr"], pbr=Tru...
24.894737
80
0.684989
73b5db628bdc32247908b06286ea076086308e4e
1,736
py
Python
04_synchronization_thread/diningPhilosophers.py
837477/Python_Parallel
7590ff38e6a2b1dbec139e9571b6564b5bbf276f
[ "MIT" ]
67
2017-08-27T18:00:46.000Z
2022-03-01T11:54:16.000Z
04_synchronization_thread/diningPhilosophers.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
8
2018-10-18T17:15:45.000Z
2021-12-24T01:58:05.000Z
04_synchronization_thread/diningPhilosophers.py
837477/python_parallel_programming_study
2294f4a3de9e9f5b16b6772a3a8d96c37eb63c0f
[ "MIT" ]
49
2017-08-18T12:53:30.000Z
2022-02-06T09:40:50.000Z
import threading import time import random class Philosopher(threading.Thread): def __init__(self, name, leftFork, rightFork): print("{} Has Sat Down At the Table".format(name)) threading.Thread.__init__(self, name=name) self.leftFork = leftFork self.rightFork = rightFork def run(self): print...
31.563636
107
0.700461
73b5eea70fc1c246c918f082281e29adfbb7c36f
41,501
py
Python
SCRAPE/Lib/site-packages/twisted/names/test/test_client.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/names/test/test_client.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/names/test/test_client.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.names.client}. """ import errno from zope.interface.verify import verifyClass, verifyObject from twisted.internet import defer from twisted.internet.error import CannotListenError, ConnectionRefusedError from twist...
34.157202
85
0.627503
73b5f611f61134e005c4803e99abc13e43bcd149
5,483
py
Python
transmanager/migrations/0001_initial.py
APSL/transmanager
79157085840008e146b264521681913090197ed1
[ "MIT" ]
18
2016-06-01T15:47:43.000Z
2018-07-10T22:04:21.000Z
transmanager/migrations/0001_initial.py
APSL/transmanager
79157085840008e146b264521681913090197ed1
[ "MIT" ]
13
2016-06-21T15:19:30.000Z
2021-06-10T19:21:39.000Z
transmanager/migrations/0001_initial.py
APSL/transmanager
79157085840008e146b264521681913090197ed1
[ "MIT" ]
1
2017-02-10T07:40:50.000Z
2017-02-10T07:40:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
54.83
186
0.611527
73b607afe3b9744011febb8db97395fbdc98e968
4,312
py
Python
source/utils/fear.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
source/utils/fear.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
source/utils/fear.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
''' A set of utilities to maniuplate files on the fear cluster. @authors: James Robert Lloyd (jrl44@cam.ac.uk) David Duvenaud (dkd23@cam.ac.uk) Roger Grosse (rgrosse@mit.edu) ''' import pysftp import config import re # TODO: Make this into a class. def connect(): return pysftp.Connection('f...
28.939597
106
0.58859
73b65972eadb3202a6c2ecd8ca01c328879656a4
3,463
py
Python
draguilator/draguilator.py
robsonzagrejr/draguilator
3379f79250dc78f88b14fb6a819372eed4caf970
[ "MIT" ]
null
null
null
draguilator/draguilator.py
robsonzagrejr/draguilator
3379f79250dc78f88b14fb6a819372eed4caf970
[ "MIT" ]
null
null
null
draguilator/draguilator.py
robsonzagrejr/draguilator
3379f79250dc78f88b14fb6a819372eed4caf970
[ "MIT" ]
null
null
null
""" Implementation of a Compiler for INE5426 - UFSC Authors: Mateus Favarin Costa (18100539) Robson Zagre Junior (18102721) Wesly Carmesini Ataide (18100547) """ from sys import argv from draguilexer import lexer from draguitax import parser def make_token_text(tokens): text_output = '' last_po...
30.646018
89
0.623737
73b670eafcd8ddd6935340899bf324c56d092096
3,572
py
Python
papers/none2021_ecrad/views/variables_range.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_ecrad/views/variables_range.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
papers/none2021_ecrad/views/variables_range.py
anton-pershin/restools
eb141f0989617db796d106de1b0824161ccaa0aa
[ "MIT" ]
null
null
null
import os import sys sys.path.append(os.getcwd()) import pickle import json import numpy as np import matplotlib import matplotlib.pyplot as plt import restools from papers.none2021_ecrad.data import Summary, ReducedPrecisionVersion from papers.none2021_ecrad.extensions import VariableData, collect_variable_data, plo...
52.529412
237
0.755599
73b676c9695cb32d14445f3baa953df2b5b78e7e
19,702
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_server_azure_ad_administrators_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_server_azure_ad_administrators_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_server_azure_ad_administrators_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
47.820388
214
0.682113
73b67a89e2f73c2a584457d13e93255416db862b
12,269
py
Python
onpolicy/runner/shared/smac_runner.py
hijkzzz/noisy-mappo
6d18189b2ce9984b4d5d2b2834997e26de7f5973
[ "MIT" ]
16
2021-07-09T13:14:11.000Z
2022-03-14T11:33:43.000Z
onpolicy/runner/shared/smac_runner.py
hijkzzz/noisy-mappo
6d18189b2ce9984b4d5d2b2834997e26de7f5973
[ "MIT" ]
1
2021-12-04T14:05:34.000Z
2022-01-07T05:36:20.000Z
onpolicy/runner/shared/smac_runner.py
hijkzzz/noisy-mappo
6d18189b2ce9984b4d5d2b2834997e26de7f5973
[ "MIT" ]
1
2022-01-07T04:58:14.000Z
2022-01-07T04:58:14.000Z
import time import wandb import numpy as np from functools import reduce import torch from onpolicy.runner.shared.base_runner import Runner def _t2n(x): return x.detach().cpu().numpy() class SMACRunner(Runner): """Runner class to perform training, evaluation. and data collection for SMAC. See parent class for...
50.282787
167
0.562475
73b6a2f3db134ce9e827f14601fecd2e1695c677
2,119
py
Python
src/test/tests/hybrid/sil.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/sil.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/sil.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: sil.py # # Tests: mesh - 3D curvilinear,multi-domain,ghost zones replicated. # plots - mat subset, domain subset # # Defect ID: none # # Programmer: Hank Childs # Date: ...
23.808989
78
0.652194
73b6bee55a7054c7e25fe85611099fada580f5b7
810
py
Python
src/python/octmps_output.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
18
2018-03-12T01:15:47.000Z
2021-08-09T15:20:56.000Z
src/python/octmps_output.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
5
2019-03-18T05:49:44.000Z
2021-07-02T08:14:05.000Z
src/python/octmps_output.py
SiavashMT/OCT-MPS
1fe8a8c25063ef3cee8b96128f20d040ac613ba7
[ "MIT" ]
7
2019-04-01T02:47:50.000Z
2021-11-15T07:59:57.000Z
from __future__ import absolute_import, division, print_function, unicode_literals import csv import numpy as np def parse_OCTMPS_output_file(file_name): def parse_row(): with open(file_name, 'r') as f: reader = csv.reader(f) for row in reader: parsed_row = list(ma...
32.4
89
0.666667
73b6d9825bd3d60f6c8e389a888e756f7df56287
5,269
py
Python
aptitudetech_private/tasks.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
null
null
null
aptitudetech_private/tasks.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
null
null
null
aptitudetech_private/tasks.py
CloudGround/aptitudetech_private
d4d150226bd33ea0c76086264286ae7cae52457f
[ "MIT" ]
1
2019-05-17T00:04:05.000Z
2019-05-17T00:04:05.000Z
#-*- coding: utf-8 -*- import frappe import boto3 import boto3.session import rows import json import zipfile import tempfile import sqlite3 from io import BytesIO from frappe import _ from frappe.utils import cint, flt, today, getdate, get_first_day, add_to_date try: from frappe.utils import file_manager with_file_...
31.933333
139
0.72974
73b718382218d523288ab9832159dedc5b5fa242
405
py
Python
appyters/Patient_Cohorts_RNASeq_Viewer/fields/RadioField.py
shui02/appyter-catalog
dfa15946d151daeb7d7b1bc9af9e48428474f012
[ "CC0-1.0" ]
null
null
null
appyters/Patient_Cohorts_RNASeq_Viewer/fields/RadioField.py
shui02/appyter-catalog
dfa15946d151daeb7d7b1bc9af9e48428474f012
[ "CC0-1.0" ]
11
2020-04-15T22:47:17.000Z
2020-05-28T16:34:16.000Z
appyters/Patient_Cohorts_RNASeq_Viewer/fields/RadioField.py
shui02/appyter-catalog
dfa15946d151daeb7d7b1bc9af9e48428474f012
[ "CC0-1.0" ]
1
2020-05-14T20:25:32.000Z
2020-05-14T20:25:32.000Z
from appyter.fields import Field class RadioField(Field): def __init__(self, **kwargs): # if we wanted to inject something/edit the math here, we could do it this way: # choices = [ {**choice, "math": "Hello"} for choice in kwargs["choices"] ] # kwargs = {**kwargs, "choices": choices} super()._...
33.75
83
0.654321
73b71e4c6d555a2e48fe7d51188780e91fcb2e54
2,115
py
Python
WebexTeams/ChatBox/webex_operations_sdk.py
kraluc/DevCore
f1631e996e1ba2a5f47911d8680ec04bf18ab4ec
[ "MIT" ]
null
null
null
WebexTeams/ChatBox/webex_operations_sdk.py
kraluc/DevCore
f1631e996e1ba2a5f47911d8680ec04bf18ab4ec
[ "MIT" ]
8
2021-04-06T18:26:36.000Z
2021-06-02T04:15:34.000Z
WebexTeams/ChatBox/webex_operations_sdk.py
kraluc/DevCore
f1631e996e1ba2a5f47911d8680ec04bf18ab4ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Webex_operations_sdk.py # # v1.0 # Vincent Ricci # # This is an attempt to rewrite Webex_operations.py using the webexteamssdk # [quickstart](https://webexteamssdk.readthedocs.io/en/latest/user/quickstart.html) # # * webexteamssdk defaults to pulling your Webex Teams access tok...
30.214286
94
0.663357
73b739cf1847373901ea38f028a8bdba3fe4559d
414
py
Python
tools/perf/profile_creators/__init__.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
tools/perf/profile_creators/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
tools/perf/profile_creators/__init__.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.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. """Generators for Chrome profiles for testing purposes.""" import os import sys sys.path.insert(1, os.path.abspath(os.path.join( __file__, '..', '..'))) ...
27.6
72
0.753623
73b73f3da449a09361ef66d3bc79cf992a2be5b9
1,264
py
Python
helix/run_match.py
ckrivacic/helix_matcher
e1acb518117faf7de9a91270f86d78e066eea903
[ "MIT" ]
2
2021-04-26T15:14:08.000Z
2021-06-07T10:56:37.000Z
helix/run_match.py
ckrivacic/helix_matcher
e1acb518117faf7de9a91270f86d78e066eea903
[ "MIT" ]
null
null
null
helix/run_match.py
ckrivacic/helix_matcher
e1acb518117faf7de9a91270f86d78e066eea903
[ "MIT" ]
null
null
null
''' When submitting a parent directory for matching on the cluster, this script figures out which sub-directory to use and runs the command. ''' import sys, os, glob import yaml from utils import run_command def main(): folders = glob.glob(sys.argv[1] + '/*/cluster_representatives/*turn/') folders = sorted(fol...
28.727273
74
0.594146
73b75dd3b9110c676d310490f9835584ef44fc97
5,014
py
Python
contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_thrift_gen_integration.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_thrift_gen_integration.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/go/tests/python/pants_test/contrib/go/tasks/test_go_thrift_gen_integration.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, division, print_function, unicode_literals import os from contextlib import contextmanager from textwrap import dedent from pants.b...
36.333333
100
0.602314
73b774f97d5ad8acbb944b6d21d6c6f5de6c1e40
1,347
py
Python
experiments/figures_from_results/boxplot_psnr_noise.py
bmalezieux/plipy
35d17cad908219013fa43d81c4aeb6bb46ce9384
[ "MIT" ]
2
2021-07-15T04:51:20.000Z
2022-01-01T14:20:59.000Z
experiments/figures_from_results/boxplot_psnr_noise.py
bmalezieux/plipy
35d17cad908219013fa43d81c4aeb6bb46ce9384
[ "MIT" ]
null
null
null
experiments/figures_from_results/boxplot_psnr_noise.py
bmalezieux/plipy
35d17cad908219013fa43d81c4aeb6bb46ce9384
[ "MIT" ]
null
null
null
import json import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import os from pathlib import Path try: os.mkdir("../figures") except OSError: pass RESULTS = Path(__file__).resolve().parents[1] / "results" FIGURES = Path(__file__).resolve().parents[1] / "figures" with open(str(RESULT...
24.053571
65
0.662212
73b78adef4b33f23c07494f93dd0d3a925a296ff
1,997
py
Python
autokeras/layer_utils.py
Jie-Yuan/autokeras
b1bfd16945a658d02847209e46a2ba8d72b456e1
[ "MIT" ]
null
null
null
autokeras/layer_utils.py
Jie-Yuan/autokeras
b1bfd16945a658d02847209e46a2ba8d72b456e1
[ "MIT" ]
null
null
null
autokeras/layer_utils.py
Jie-Yuan/autokeras
b1bfd16945a658d02847209e46a2ba8d72b456e1
[ "MIT" ]
null
null
null
import tensorflow as tf from sklearn import model_selection from tensorflow.python.util import nest from autokeras import const def get_global_average_pooling_layer(shape): return [tf.keras.layers.GlobalAveragePooling1D, tf.keras.layers.GlobalAveragePooling2D, tf.keras.layers.GlobalAverag...
30.257576
78
0.625438
73b791fddec6ed7fecbca36bed2d4a7c9c915649
409
py
Python
shellerate/egg_hunter.py
thesp0nge/shellerate
a81823bab979a06f4cf937ba24372fc61015ec0f
[ "MIT" ]
19
2019-05-24T13:40:13.000Z
2022-03-14T20:25:07.000Z
shellerate/egg_hunter.py
thesp0nge/shellerate
a81823bab979a06f4cf937ba24372fc61015ec0f
[ "MIT" ]
1
2019-11-11T20:25:52.000Z
2019-11-11T20:25:52.000Z
shellerate/egg_hunter.py
thesp0nge/shellerate
a81823bab979a06f4cf937ba24372fc61015ec0f
[ "MIT" ]
6
2019-07-20T16:08:23.000Z
2021-01-26T00:10:49.000Z
class EggHunter: def __init__(self, shellcode, egg): self.__shellcode = shellcode; self.__egg = egg; def generate(self): return self.__egg+self.__egg+self.__shellcode def hunter_code(self): return "\\x31\\xc9\\xf7\\xe1\\x66\\x81\\xca\\xff\\x0f\\x42\\x8d\\x5a\\x04\\x31\\xc0\\xb0\\x21\\xcd\\x80\\x...
34.083333
197
0.650367
73b7a30b0881adfc096ad92fbdaa986353eb8a8e
4,902
py
Python
neutronclient/tests/unit/test_http.py
teresa-ho/stx-python-neutronclient
35ea6c2c96cbf98755a82cb7c19138648552b778
[ "Apache-2.0" ]
null
null
null
neutronclient/tests/unit/test_http.py
teresa-ho/stx-python-neutronclient
35ea6c2c96cbf98755a82cb7c19138648552b778
[ "Apache-2.0" ]
2
2018-11-01T21:50:21.000Z
2018-11-13T21:40:09.000Z
neutronclient/tests/unit/test_http.py
teresa-ho/stx-python-neutronclient
35ea6c2c96cbf98755a82cb7c19138648552b778
[ "Apache-2.0" ]
3
2018-11-01T17:55:23.000Z
2018-11-23T19:16:06.000Z
# Copyright (C) 2013 OpenStack Foundation. # 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...
34.521127
79
0.677479
73b7acc4a7bad9ea210c51b937fa90c561bfbd0e
2,081
py
Python
Leetcode/medium/populating-next-right-pointers-in-each-node.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/populating-next-right-pointers-in-each-node.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/populating-next-right-pointers-in-each-node.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # POPULATING NEXT RIGHT POINTERS IN EACH NODE You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following definition: struct Node { int val; Node *left; Node *right; Node *next; } Populate each next pointer to point to i...
29.309859
282
0.595387
73b7b25ea0c2be5e88b54a4fb8d5269c994cde90
7,197
py
Python
test/mock.py
klinger/EsiPy
f51863034f933c15ec4c506a466576b1b966d5ef
[ "BSD-3-Clause" ]
null
null
null
test/mock.py
klinger/EsiPy
f51863034f933c15ec4c506a466576b1b966d5ef
[ "BSD-3-Clause" ]
null
null
null
test/mock.py
klinger/EsiPy
f51863034f933c15ec4c506a466576b1b966d5ef
[ "BSD-3-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- # pylint: skip-file from __future__ import absolute_import import datetime import httmock def make_expire_time_str(): """ Generate a date string for the Expires header RFC 7231 format (always GMT datetime) """ date = datetime.datetime.utcnow() date += dateti...
26.076087
70
0.520634
73b7beaba822d9002317ddb918fdfea4e3058a79
1,097
py
Python
examples/pbc/30-mo_integrals.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
examples/pbc/30-mo_integrals.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
examples/pbc/30-mo_integrals.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python ''' MO integrals in PBC code ''' import numpy from pyscf.pbc import gto, scf, tools cell = gto.M( a = numpy.eye(3)*3.5668, atom = '''C 0. 0. 0. C 0.8917 0.8917 0.8917 C 1.7834 1.7834 0. C 2.6751 2.6751 0....
23.847826
81
0.482224
73b7e8d0c289ff64f8ee519f135f1c2e4ec4cbff
11,846
py
Python
src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-batch/azure/cli/command_modules/batch/_validators.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
40.02027
100
0.650008
73b83bae8bece4cbebdb079b47b3774321178f73
1,219
py
Python
databuddy/utils/function_utils.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
databuddy/utils/function_utils.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
databuddy/utils/function_utils.py
SuryaSankar/databuddy
f65fb3c560bd93e0656003a41c7f65916f24bb8f
[ "MIT" ]
null
null
null
import multiprocessing from multiprocessing.dummy import Pool as ThreadPool def run_function_and_store_return_value( function=None, args=None, kwargs=None, return_queue=None): if args is None: args = [] if kwargs is None: kwargs = {} return_value = function(*args, **kwargs) if...
26.5
66
0.680066
73b844e9e5e0dba3c0b940ee255199cdd2845ffe
122,572
py
Python
zerver/models.py
networksneaker/zulip
fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e
[ "Apache-2.0" ]
null
null
null
zerver/models.py
networksneaker/zulip
fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e
[ "Apache-2.0" ]
null
null
null
zerver/models.py
networksneaker/zulip
fae365f8c7e2d6ee041024a22b6ba5a64cbffe4e
[ "Apache-2.0" ]
null
null
null
import datetime import re import sre_constants import time from collections import defaultdict from datetime import timedelta from typing import ( AbstractSet, Any, Callable, DefaultDict, Dict, Iterable, List, Optional, Sequence, Set, Tuple, TypeVar, Union, ) import ...
40.911883
119
0.702811
73b849015eb4299d0d1c3fda866f0dee12950982
361
py
Python
maskrcnn_benchmark/data/datasets/__init__.py
nicolasCruzW21/maskrcnn-Tracing
da648eb09f7034faa7b29a48543d777d05968d82
[ "MIT" ]
3
2020-06-10T04:37:01.000Z
2021-12-20T07:45:48.000Z
maskrcnn_benchmark/data/datasets/__init__.py
nicolasCruzW21/maskrcnn-Tracing
da648eb09f7034faa7b29a48543d777d05968d82
[ "MIT" ]
1
2020-06-17T09:05:31.000Z
2021-09-13T09:16:36.000Z
maskrcnn_benchmark/data/datasets/__init__.py
nicolasCruzW21/maskrcnn-Tracing
da648eb09f7034faa7b29a48543d777d05968d82
[ "MIT" ]
1
2020-07-06T05:47:12.000Z
2020-07-06T05:47:12.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .billetes import billetesDataset from .coco import COCODataset from .voc import PascalVOCDataset from .concat_dataset import ConcatDataset from .abstract import AbstractDataset from .cityscapes import CityScapesDataset __all__ = ["COCODataset...
32.818182
71
0.817175
73b84fdf0b65472f2912c141a1efdff067420d73
7,450
py
Python
OpenStack_CSEP/CTFd/utils.py
CaeserNieh/Cloud-Security-Exercise-Platform-with-OpenStack
d48d84ed87d7d86b1fbf218f1cec03a9d5b9573a
[ "Apache-2.0" ]
1
2019-04-10T02:43:48.000Z
2019-04-10T02:43:48.000Z
OpenStack_CSEP/CTFd/utils.py
CaeserNieh/Cloud-Security-Exercise-Platform-with-OpenStack
d48d84ed87d7d86b1fbf218f1cec03a9d5b9573a
[ "Apache-2.0" ]
null
null
null
OpenStack_CSEP/CTFd/utils.py
CaeserNieh/Cloud-Security-Exercise-Platform-with-OpenStack
d48d84ed87d7d86b1fbf218f1cec03a9d5b9573a
[ "Apache-2.0" ]
null
null
null
from CTFd.models import db, WrongKeys, Pages, Config from CTFd import mail from six.moves.urllib.parse import urlparse, urljoin from functools import wraps from flask import current_app as app, g, request, redirect, url_for, session, render_template from flask.ext.mail import Message from socket import inet_aton, ine...
26.140351
143
0.642953
73b896a372366b0958630b233162382da62e9b26
1,671
py
Python
test/knxip_tests/disconnect_request_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/disconnect_request_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
test/knxip_tests/disconnect_request_test.py
M-o-a-T/xknx
0cf07a01a44c76478d916884437f3f4769a4ddd5
[ "MIT" ]
null
null
null
"""Unit test for KNX/IP Disconnect objects.""" import asyncio import unittest from xknx import XKNX from xknx.exceptions import CouldNotParseKNXIP from xknx.knxip import HPAI, DisconnectRequest, KNXIPFrame, KNXIPServiceType class Test_KNXIP_DisconnectReq(unittest.TestCase): """Test class for KNX/IP Disconnect ob...
35.553191
76
0.675045
73b8a6ae42f817a8e5962b2988e659b40a1f457a
3,320
py
Python
test/integration/ggrc/models/test_relationship.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
test/integration/ggrc/models/test_relationship.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
test/integration/ggrc/models/test_relationship.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Module for integration tests for Relationship.""" import json import ddt from ggrc.models import all_models from integration.ggrc import TestCase from integration.ggrc import api_helper from integrati...
32.54902
78
0.658434
73b8c0f27a76c4d4a6d6112fd3b4f3fde2322e57
1,908
py
Python
pw_env_setup/py/pw_env_setup/cargo_setup/__init__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
43
2020-03-20T21:07:13.000Z
2021-11-23T17:34:02.000Z
pw_env_setup/py/pw_env_setup/cargo_setup/__init__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
2
2020-03-21T04:58:09.000Z
2021-04-09T10:29:05.000Z
pw_env_setup/py/pw_env_setup/cargo_setup/__init__.py
statropy/pigweed
8db1288a07ca5d220370a68ab824b0afd78efe1f
[ "Apache-2.0" ]
12
2020-03-21T01:02:26.000Z
2022-01-04T01:35:14.000Z
# Copyright 2020 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.071429
79
0.613732
73b8c8e37d4ae8122cc98cc46cf2f1a977d33a65
2,212
py
Python
data/transcoder_evaluation_gfg/python/SUM_FAI_AJ_PAIRS_ARRAY_N_INTEGERS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SUM_FAI_AJ_PAIRS_ARRAY_N_INTEGERS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SUM_FAI_AJ_PAIRS_ARRAY_N_INTEGERS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( a , n ) : cnt = dict ( ) ans = 0 pre_sum = 0 for i in range ( n ) : ans += ( i * a [ i ] ) ...
51.44186
206
0.444394
73b8cbebb1792dca7035e94d646c129bb3a9814a
104
py
Python
EasierSQLite/__init__.py
RefinedDev/EasierSQL
e6885a8d90aaa9e223c783ef5cdcc973f28cd350
[ "MIT" ]
11
2021-07-26T06:14:09.000Z
2022-02-01T05:45:29.000Z
EasierSQLite/__init__.py
RefinedDev/EasierSQL
e6885a8d90aaa9e223c783ef5cdcc973f28cd350
[ "MIT" ]
null
null
null
EasierSQLite/__init__.py
RefinedDev/EasierSQL
e6885a8d90aaa9e223c783ef5cdcc973f28cd350
[ "MIT" ]
null
null
null
""" Wrapper for SQLite. Created by RefinedDev Initialize the easySQL file. """ from .easySQL import *
14.857143
30
0.730769
73b8ce52f8bd25e1c698c9d5a84b894032a2b80d
43,482
py
Python
scripts/replace.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
scripts/replace.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
scripts/replace.py
ankitdobhal/pywikibot
d6328a486296c0e8452b9f5334d5467a2c77ec07
[ "MIT" ]
null
null
null
#!/usr/bin/python r""" This bot will make direct text replacements. It will retrieve information on which pages might need changes either from an XML dump or a text file, or only change a single page. These command line parameters can be used to specify which pages to work on: &params; Furthermore, the following co...
39.529091
79
0.592107
73b9251dee5701615ea98ae7ca0c74d8cdfd2b4f
28,499
py
Python
syft/frameworks/torch/hook/hook_args.py
Ankit-Dhankhar/PySyft
750bd2c3987a570ef1dc8554b933696d416724c7
[ "Apache-2.0" ]
1
2019-07-09T09:57:23.000Z
2019-07-09T09:57:23.000Z
syft/frameworks/torch/hook/hook_args.py
souravs17031999/PySyft
cd0a134288ab041884537b04eb65358c4d53a471
[ "Apache-2.0" ]
null
null
null
syft/frameworks/torch/hook/hook_args.py
souravs17031999/PySyft
cd0a134288ab041884537b04eb65358c4d53a471
[ "Apache-2.0" ]
1
2021-04-18T15:27:15.000Z
2021-04-18T15:27:15.000Z
from typing import Callable from typing import Union from typing import Tuple from typing import List import numpy as np import torch from syft.frameworks.torch.tensors.interpreters import AutogradTensor from syft.frameworks.torch.tensors.interpreters import TorchTensor from syft.frameworks.torch.tensors.interpreters...
36.120406
100
0.670585
73b95a1e9bfe1538dcce14e9d685ee926a6d228d
1,815
py
Python
day2.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
day2.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
day2.py
alexa-infra/advent-of-code-2018
f14e8c87b655c479097ae713572bb0260ec993fc
[ "MIT" ]
null
null
null
from itertools import combinations from collections import defaultdict def scan(text): d = defaultdict(int) for ch in text: d[ch] += 1 uniq = set(d.values()) if 2 in uniq and 3 in uniq: return 1 if 2 in uniq: return 2 if 3 in uniq: return 3 return 0 def solv...
20.393258
61
0.542149
73b992443dd2799626542040241bb13c7a36aaf3
5,122
py
Python
design/search_part.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
null
null
null
design/search_part.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
3
2015-09-21T21:50:45.000Z
2015-09-22T15:42:28.000Z
design/search_part.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
2
2020-03-28T01:33:51.000Z
2021-07-18T13:56:27.000Z
""" search_part.py realize the part search @author: Bowen """ from elasticsearch import Elasticsearch from design.models import parts, teams, team_parts, part_papers, paper import traceback def getPart(partName): """ find the part with part name @param partName: name of a part @type partName: str ...
29.436782
85
0.566966
73b99563c56afd1fff63d5d347f7b624bff5c9f4
3,611
py
Python
qtim_tools/qtim_preprocessing/signal.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
12
2017-03-29T18:17:24.000Z
2020-03-19T05:28:56.000Z
qtim_tools/qtim_preprocessing/signal.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
7
2017-03-08T21:06:01.000Z
2017-06-21T19:01:58.000Z
qtim_tools/qtim_preprocessing/signal.py
QTIM-Lab/qtim_tools
92bd15ec7a81c5eda70d11a015f74538f3c41e22
[ "Apache-2.0" ]
5
2017-03-02T09:08:21.000Z
2019-10-26T05:37:39.000Z
""" This module is a series of scripts relating to extracting signal from noise in medical imaging files. Blurring, PCA, other scripts (most likely using scikit) will be put here. """ from scipy.ndimage.filters import gaussian_filter import numpy as np import random def gaussian_blur(image_numpy=[], gaussian_...
34.721154
130
0.696483
73b9d74471e35cf4e853ef1a7d4a3350252bb5bc
2,474
py
Python
pycrust/auth.py
alertedsnake/pycrust
ceb5da9ff92b892adc9a3057afdfe84f3e529313
[ "MIT" ]
1
2019-03-25T05:33:30.000Z
2019-03-25T05:33:30.000Z
pycrust/auth.py
iwannaPython/pycrust
ceb5da9ff92b892adc9a3057afdfe84f3e529313
[ "MIT" ]
null
null
null
pycrust/auth.py
iwannaPython/pycrust
ceb5da9ff92b892adc9a3057afdfe84f3e529313
[ "MIT" ]
1
2019-03-25T05:33:11.000Z
2019-03-25T05:33:11.000Z
""" User authentication and authorization for CherryPy This code is based on the examples and discussion at http://tools.cherrypy.org/wiki/AuthenticationAndAccessRestrictions """ __author__ = 'Michael Stella <pycrust@thismetalsky.org>' import cherrypy from six.moves import urllib from pycrust import url def chec...
28.113636
80
0.60388
73b9f03832af866f27eb05802109b6b0b6e580ad
1,955
py
Python
appengine/monorail/framework/test/banned_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/framework/test/banned_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
7
2022-02-15T01:11:37.000Z
2022-03-02T12:46:13.000Z
appengine/monorail/framework/test/banned_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 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 or at # https://developers.google.com/open-source/licenses/bsd """Unittests for monorail.framework.banned.""" from __future__ import print_function from __fut...
33.135593
76
0.763171
73ba08975f5137deb10f53e20e60d4b3b30fa013
1,006
py
Python
client_code/uuid.py
jshaffstall/anvil-extras
521eec32a98cc038fea27379ff6c0ab024f31c7f
[ "MIT" ]
null
null
null
client_code/uuid.py
jshaffstall/anvil-extras
521eec32a98cc038fea27379ff6c0ab024f31c7f
[ "MIT" ]
null
null
null
client_code/uuid.py
jshaffstall/anvil-extras
521eec32a98cc038fea27379ff6c0ab024f31c7f
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # # Copyright (c) 2021 The Anvil Extras project team members listed at # https://github.com/anvilistas/anvil-extras/graphs/contributors # # This software is published at https://github.com/anvilistas/anvil-extras import anvil.js __version__ = "2.0.1" _js_uuid = anvil.js.import_from("ht...
22.355556
74
0.641153
73ba47afb2538ab0f37d2d0ef6f41ea45d3b910a
512
py
Python
runtests.py
aaronc-bixly/notifications
c93886397b98d832b85cbb442e19201a0889ba67
[ "MIT" ]
1
2015-08-03T07:40:34.000Z
2015-08-03T07:40:34.000Z
runtests.py
aaronc-bixly/notifications
c93886397b98d832b85cbb442e19201a0889ba67
[ "MIT" ]
null
null
null
runtests.py
aaronc-bixly/notifications
c93886397b98d832b85cbb442e19201a0889ba67
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import django from django.core.management import call_command from django.conf import settings from django.test.utils import get_runner def runtests(): os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings' django.setup() call_command("makemigrations") Test...
23.272727
59
0.738281
73ba6e3fff919323cfc512d38878361d7634aba3
3,680
py
Python
{{cookiecutter.project_shortname}}/setup.py
fenekku/cookiecutter-invenio-datamodel
d5a98b5dc3df97c7bea2efb5eb0cb38c6cd65bdc
[ "MIT" ]
null
null
null
{{cookiecutter.project_shortname}}/setup.py
fenekku/cookiecutter-invenio-datamodel
d5a98b5dc3df97c7bea2efb5eb0cb38c6cd65bdc
[ "MIT" ]
null
null
null
{{cookiecutter.project_shortname}}/setup.py
fenekku/cookiecutter-invenio-datamodel
d5a98b5dc3df97c7bea2efb5eb0cb38c6cd65bdc
[ "MIT" ]
null
null
null
{% include 'misc/header.py' %} """{{ cookiecutter.description }}""" import os from setuptools import find_packages, setup readme = open('README.rst').read() tests_require = [ 'check-manifest>=0.25', 'coverage>=4.0', 'isort>=4.3.3', 'pydocstyle>=1.0.0', 'pytest-cache>=1.0', 'pytest-cov>=1.8.0...
29.44
115
0.601902
73ba92386ff79c3226d84c519d2931ff03a45318
87
py
Python
pylib/pyinstaller/hooks/hook-gunicorn.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/pyinstaller/hooks/hook-gunicorn.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
null
null
null
pylib/pyinstaller/hooks/hook-gunicorn.py
xkmato/py77
9c44d8f8924f47a7331c29fd0287a4bb9416d316
[ "MIT" ]
2
2018-07-16T19:14:11.000Z
2020-10-15T08:48:32.000Z
print('gunicorn hook') hiddenimports = ['gunicorn.glogging', 'gunicorn.workers.sync']
21.75
62
0.747126
73bab30af23b9312dc03c1d22fbc1b0071b108dc
239
py
Python
pandaserver/test/killTaskJEDI.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
7
2015-03-30T14:15:35.000Z
2021-12-22T06:48:22.000Z
pandaserver/test/killTaskJEDI.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
16
2015-06-01T13:48:01.000Z
2022-02-08T15:03:32.000Z
pandaserver/test/killTaskJEDI.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
15
2015-03-02T08:57:35.000Z
2022-03-01T09:48:45.000Z
import optparse import pandaserver.userinterface.Client as Client aSrvID = None optP = optparse.OptionParser(conflict_handler="resolve") options,args = optP.parse_args() jediTaskID = args[0] s,o = Client.killTask(jediTaskID) print(o)
17.071429
56
0.782427
73baf53dfb0098db562999663736861d198d00b6
9,590
py
Python
tests/bitcoin/test_script.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
415
2016-06-10T00:46:55.000Z
2021-10-16T00:56:06.000Z
tests/bitcoin/test_script.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
25
2016-06-11T13:48:59.000Z
2021-01-05T11:19:30.000Z
tests/bitcoin/test_script.py
febuiles/two1-python
88704487dba7715f97a0980781d4c0efb2ea7fc4
[ "BSD-2-Clause-FreeBSD" ]
109
2016-06-11T05:17:05.000Z
2021-12-22T11:02:22.000Z
import pytest from two1.bitcoin.exceptions import ScriptParsingError from two1.bitcoin.script import Script from two1.bitcoin.txn import Transaction from two1.bitcoin.utils import bytes_to_str, pack_var_str def test_serialization(): scr = 'OP_ADD OP_IF OP_DUP OP_HASH160 0x68bf827a2fa3b31e53215e5dd19260d21fdf053e...
48.680203
738
0.782586
73bb03321fd8124d4212bb68ac2948c21c01d03f
498
py
Python
src/components/codepenembed/migrations/0007_auto_20161128_2058.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/components/codepenembed/migrations/0007_auto_20161128_2058.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
src/components/codepenembed/migrations/0007_auto_20161128_2058.py
svenvandescheur/svenv.nl-new
c448714853d96ad31d26c825d8b35c4890be40a1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2016-11-28 19:58 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('codepenembed', '0006_auto_20161128_2034'), ] operations = [ migrations.Alte...
23.714286
78
0.640562
73bb3d1ca2dc69b42cac81e7e8713b244d1b4e33
15,233
py
Python
python_modules/libraries/dagster-celery-k8s/dagster_celery_k8s/launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-celery-k8s/dagster_celery_k8s/launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-celery-k8s/dagster_celery_k8s/launcher.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import sys import kubernetes from dagster_k8s.job import ( DagsterK8sJobConfig, construct_dagster_k8s_job, get_job_name_from_run_id, get_user_defined_k8s_config, ) from dagster_k8s.utils import delete_job from dagster import DagsterInvariantViolationError, MetadataEntry, check from dagster.config.fiel...
39.361757
127
0.657389
73bb48b3ccf4149935dab28c98b634a29d1eea57
8,126
py
Python
examples/mach_tutorials/aero_opt/mphys_aero.py
kejacobson/mphys
72ff05a1c444461a9431470d32dcf2a7d51752eb
[ "Apache-2.0" ]
null
null
null
examples/mach_tutorials/aero_opt/mphys_aero.py
kejacobson/mphys
72ff05a1c444461a9431470d32dcf2a7d51752eb
[ "Apache-2.0" ]
null
null
null
examples/mach_tutorials/aero_opt/mphys_aero.py
kejacobson/mphys
72ff05a1c444461a9431470d32dcf2a7d51752eb
[ "Apache-2.0" ]
null
null
null
import numpy as np from mpi4py import MPI import openmdao.api as om from mphys.multipoint import Multipoint from mphys.solver_builders.mphys_adflow import ADflowBuilder from baseclasses import AeroProblem from mphys.scenario_aerodynamic import ScenarioAerodynamic from mphys.solver_builders.mphys_dvgeo import OM_DVGEOC...
38.880383
112
0.592789
73bb4a9eb3b781b1762e9679ff069b73b2c629ed
797
py
Python
Stackless/demo/counter.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
854
2017-09-11T16:42:28.000Z
2022-03-27T14:17:09.000Z
Stackless/demo/counter.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
164
2017-09-24T20:40:32.000Z
2021-10-30T01:35:05.000Z
Stackless/demo/counter.py
masamitsu-murase/stackless
677b36ffe5cb5a0f4b8d3abfa20982c8d82ffb92
[ "CNRI-Python-GPL-Compatible" ]
73
2017-09-13T18:07:48.000Z
2022-03-17T13:02:29.000Z
# a little example of tasklets and channels. # don't use this in production code, it is really nonsense :-) # We want to sort some random numbers using tasklets. # The idea is to create a bulk of tasklets which call schedule() # a number of times. When the count is at zero, the tasklet # send its result over a channel...
24.90625
72
0.685069
73bb720ab1156a8d501a06dfcfe3f26668cd39dc
2,511
py
Python
bin/csv2csvimport.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
1
2022-01-17T17:26:25.000Z
2022-01-17T17:26:25.000Z
bin/csv2csvimport.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
8
2020-02-12T13:26:05.000Z
2022-02-10T19:28:07.000Z
bin/csv2csvimport.py
slavdict/slavdict
893886b80de413cb2bb6c0af5adba9c55aa6a7af
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python import csv import os import sys from os.path import dirname from os.path import abspath sys.path.append(dirname(dirname(abspath(__file__)))) os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'slavdict.settings') import django django.setup() import slavdict.csv csvin = open(sys.argv[1]) csvout = ...
28.213483
69
0.593787
73bb9254654a2b7360ea2a0f5988ffb52f1ca1f9
682
py
Python
example/sparse_regression/poss_opt.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
1
2018-11-03T12:05:00.000Z
2018-11-03T12:05:00.000Z
example/sparse_regression/poss_opt.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
example/sparse_regression/poss_opt.py
HowardHu97/ZOOpt
01568e8e6b0e65ac310d362af2da5245ac375e53
[ "MIT" ]
null
null
null
""" An example of using POSS to optimize a subset selection problem. """ from sparse_mse import SparseMSE from zoopt import Objective, Parameter, ExpOpt from math import exp if __name__ == '__main__': # load data file mse = SparseMSE('sonar.arff') mse.set_sparsity(8) # setup objective # print(mse...
32.47619
117
0.702346
73bb9dd585c961b070758704a2034887bfcacdf2
655
py
Python
abc/abc249/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc249/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc249/c/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys import math from collections import defaultdict, deque, Counter sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() N, K = na() S = [] for _ in range(N): S.append(ns()) ...
19.848485
53
0.557252
73bbb534081b9fca92053ed4fa0520e6754bad72
6,247
py
Python
venv/Lib/site-packages/pyrogram/storage/sqlite_storage.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/storage/sqlite_storage.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/storage/sqlite_storage.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
27.888393
89
0.601729
73bbb704bdcda16ac6e7fc496ec62fa511bf943d
916
py
Python
app/entity_utils.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
5
2018-03-19T19:04:53.000Z
2021-02-19T16:44:04.000Z
app/entity_utils.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
6
2020-04-18T16:14:22.000Z
2021-08-14T09:23:16.000Z
app/entity_utils.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
1
2021-01-10T18:47:38.000Z
2021-01-10T18:47:38.000Z
from osm_db import Enum from .services import config def is_footway(road): return road.value_of_field("type") == Enum.with_name("RoadType").value_for_name("footway") def filter_important_roads(roads): if not config().navigation.try_avoid_sidewalks: return roads non_sidewalks = [r for r in...
36.64
123
0.668122
73bbe21625f3d124a710e33128ebac5de60c6f0a
2,332
py
Python
tests/chainer_tests/functions_tests/array_tests/test_expand_dims.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/array_tests/test_expand_dims.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
tests/chainer_tests/functions_tests/array_tests/test_expand_dims.py
kafi2016/chainer-kafi
6cc4228dc8c1ebd78d9f5347c1e848cc0b77c4d2
[ "MIT" ]
null
null
null
import unittest import numpy import chainer from chainer import cuda from chainer import functions from chainer import gradient_check from chainer import testing from chainer.testing import attr @testing.parameterize(*testing.product_dict( [ {'in_shape': (3, 2), 'out_shape': (1, 3, 2), 'axis': 0}, ...
31.945205
78
0.611063
73bc46f6a80767997978e36b672cdb2678ac38f2
1,563
py
Python
code/deploymenthandler/helpers/helper.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
8
2017-03-13T16:34:28.000Z
2021-11-16T11:35:56.000Z
code/deploymenthandler/helpers/helper.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
null
null
null
code/deploymenthandler/helpers/helper.py
superfluidity/RDCL3D
3c5717941bd4046aa1be178e9004db1dc1c469a0
[ "Apache-2.0" ]
3
2017-03-28T09:26:40.000Z
2020-12-08T14:16:12.000Z
import requests import logging logging.basicConfig(level=logging.DEBUG) log = logging.getLogger('helper.py') class Helper(): def __init__(self, agent): self.agent = agent pass def get_agent_status(self, args): log.debug("get status") url = self.agent['base_url'] + "/status" ...
32.5625
114
0.603327
73bc4872dd12d61fe1dd62eb1e0b76c275971b8f
1,960
py
Python
cbox/streams.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
164
2017-08-31T05:52:11.000Z
2021-11-25T05:41:46.000Z
cbox/streams.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
4
2017-11-27T16:08:46.000Z
2018-03-13T15:16:46.000Z
cbox/streams.py
shmuelamar/cbox
2d0cda5b3f61a55e530251430bf3d460dcd3732e
[ "MIT" ]
5
2017-09-19T06:12:32.000Z
2019-12-06T11:53:26.000Z
from os import linesep from . import utils LINES = 'lines' CHARS = 'chars' RAW = 'raw' EXIT_OK = 0 EXIT_ERROR = 2 __all__ = ( 'get_input_parser', 'get_output_parser', 'LINES', 'CHARS', 'EXIT_OK', 'EXIT_ERROR', ) def get_input_parser(input_type): return _input_mapping[input_type] def get_output_parse...
22.272727
73
0.667857
73bc5c41fd7ded07925546e6bda7e77d290dd880
2,208
py
Python
doc/source/conf.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
2
2020-03-17T15:51:19.000Z
2022-02-23T15:45:37.000Z
doc/source/conf.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
358
2020-03-02T20:06:38.000Z
2022-03-28T20:39:01.000Z
doc/source/conf.py
goodenou/decisionengine_modules
cf4311949d3c5fd991d1c5c4a6a190ba53a2eb71
[ "BSD-3-Clause" ]
34
2020-02-24T17:17:11.000Z
2022-01-13T21:50:11.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.955224
79
0.67029
73bc601fcf755f30c8ebd174ea4e55fd51644a00
2,586
py
Python
git_t5/utils/common.py
formermagic/git-t5
5ee27d1be72988986f03659bd79fc2f9680e5372
[ "MIT" ]
1
2021-07-05T18:40:35.000Z
2021-07-05T18:40:35.000Z
git_t5/utils/common.py
formermagic/git-t5
5ee27d1be72988986f03659bd79fc2f9680e5372
[ "MIT" ]
null
null
null
git_t5/utils/common.py
formermagic/git-t5
5ee27d1be72988986f03659bd79fc2f9680e5372
[ "MIT" ]
null
null
null
from collections import defaultdict from typing import Dict, List, Optional, Tuple, TypeVar import numpy as np import torch from git_t5.data import DataCollatorForT5MLM from transformers import PreTrainedTokenizerBase K = TypeVar("K") T = TypeVar("T") def stack_mappings(mappings: List[Dict[K, T]]) -> Dict[K, List[T...
34.48
90
0.696829
73bcb5bbdef108dcc4c5a415229ea4695640f57e
7,075
bzl
Python
cuda/private/cu_library_impl.bzl
narendasan/rules_cuda
c1ae89c8be3d59c18c9520de7bb9f14f1c72e967
[ "Apache-2.0" ]
5
2020-08-26T19:54:30.000Z
2021-05-05T02:55:32.000Z
cuda/private/cu_library_impl.bzl
narendasan/rules_cuda
c1ae89c8be3d59c18c9520de7bb9f14f1c72e967
[ "Apache-2.0" ]
null
null
null
cuda/private/cu_library_impl.bzl
narendasan/rules_cuda
c1ae89c8be3d59c18c9520de7bb9f14f1c72e967
[ "Apache-2.0" ]
2
2020-06-10T06:33:55.000Z
2021-02-10T13:00:42.000Z
########################################################################## # Copyright (c) 2020 Naren Dasan. All rights reserved. # Copyright (c) 2018-2019 NVIDIA Corporation. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with t...
41.863905
138
0.583322
73bcb8d23fd91246fe1a35fd69f1ed4975b47ee2
13,483
py
Python
alipay/aop/api/domain/AgentVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AgentVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AgentVO.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AgentChatInfo import AgentChatInfo from alipay.aop.api.domain.AgentHotlineInfo import AgentHotlineInfo from alipay.aop.api.domain.RoleId import RoleId class AgentVO(object): ...
33.7075
85
0.572721
73bcdfa95253d9f4d2ff48f8efed43bd31c7145c
987
py
Python
KoreanLipNet/lipnet/lipreading/helpers.py
khujay15/koreanLipNet
9db7524c7f3a577841cff88c7cd195e941c06fd6
[ "MIT" ]
1
2020-05-19T01:47:24.000Z
2020-05-19T01:47:24.000Z
KoreanLipNet/lipnet/lipreading/helpers.py
youda9/koreanLipNet
46e1304477b2bd275206559e21815d204a5d1a72
[ "MIT" ]
null
null
null
KoreanLipNet/lipnet/lipreading/helpers.py
youda9/koreanLipNet
46e1304477b2bd275206559e21815d204a5d1a72
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def text_to_labels(text): ret = [] for char in text: if char >= u'가' and char <= u'힣': ret.append(ord(char)-ord(u'가')) elif char == ' ': ret.append(11172) return ret def labels_to_text(labels): # 26 is space, 가 = 44032 / 힣 = 55203 te...
24.675
46
0.442756
73bcf155fe7fb1ec590c9e9042a57a443e6cce38
2,112
py
Python
data/level/level10222.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10222.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10222.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = {'level_index': 10222, 'move_count': '28', 'board_info': {(0, 8): {}, (0, 7): {}, (0, 6): {}, (0, 5): {}, (0, 4): {}, (1, 8): {}, (1, 7): {}, (1, 6): {}, (1, 5): {}, (1, 4): {}, (1, 3): {}, (1, 2): {}, (1, 1): {}, (1, 0): {'fall_point': (0, -1)}, (2, 8): {}, ...
100.571429
120
0.249527
73bcf1bb607fc10a3d1e99ffc415414a2303e49c
31,422
py
Python
models_search/diff_aug.py
Pragyanstha/SummerCamp2021
caa8bba64020ba52bdef2b23a7a54de93e93b8af
[ "MIT" ]
null
null
null
models_search/diff_aug.py
Pragyanstha/SummerCamp2021
caa8bba64020ba52bdef2b23a7a54de93e93b8af
[ "MIT" ]
null
null
null
models_search/diff_aug.py
Pragyanstha/SummerCamp2021
caa8bba64020ba52bdef2b23a7a54de93e93b8af
[ "MIT" ]
null
null
null
# Code Heavily borrowed from Differentiable Augmentation and StyleGAN-ADA import torch import torch.nn.functional as F import numpy as np import random from models_search.ada import * # from models_search import conv2d_gradfix import scipy.signal from torch_utils import persistence from torch_utils import misc from to...
52.633166
366
0.616733
73bcfe82a551817830791355ec19bba1ecd24c01
3,368
py
Python
rio_viz/compat.py
dzanaga/rio-viz
88ec2dec0d69c9d13e5485af7315cc7b56a25963
[ "MIT" ]
null
null
null
rio_viz/compat.py
dzanaga/rio-viz
88ec2dec0d69c9d13e5485af7315cc7b56a25963
[ "MIT" ]
null
null
null
rio_viz/compat.py
dzanaga/rio-viz
88ec2dec0d69c9d13e5485af7315cc7b56a25963
[ "MIT" ]
null
null
null
"""Compatibility layer. Create an AsyncBaseReader from a BaseReader subclass. """ from typing import Any, Coroutine, Dict, List, Tuple, Type import attr import morecantile from starlette.concurrency import run_in_threadpool from rio_tiler import constants from rio_tiler.io import AsyncBaseReader, BaseReader, COGRe...
35.829787
99
0.645487
73bd0fc94cc91f20cf69887eff38ce76b4a7754f
4,305
py
Python
reconstruction/experiment/utils_general.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
reconstruction/experiment/utils_general.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
15
2019-06-17T16:13:39.000Z
2022-02-27T05:23:59.000Z
reconstruction/experiment/utils_general.py
tecdatalab/biostructure
a30e907e83fa5bbfb934d951b7c663b622104fcc
[ "Apache-2.0" ]
null
null
null
import os import shutil import random from ast import literal_eval import numpy as np import pandas as pd from csv_modules.csv_writer import write_in_file from general_utils.download_utils import download_pdb from math import ceil from general_utils.pdb_utils import get_chains_pdb, get_cube_pdb, move_pdb_center, \ g...
28.509934
88
0.678513
73bd1c7a1e6671eb365e590d1698dcef5d503c55
8,298
py
Python
esdl/processing/ESDLQuantityAndUnits.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
esdl/processing/ESDLQuantityAndUnits.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
14
2020-09-30T21:16:46.000Z
2021-11-08T18:54:34.000Z
esdl/processing/ESDLQuantityAndUnits.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
1
2020-09-17T12:48:57.000Z
2020-09-17T12:48:57.000Z
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Version 2...
32.414063
102
0.565678
73bd1f775f1fc4631196b6923d52f00882d3e8bd
843
py
Python
tests/constraints/test_faulting_stress_measurement.py
pnnl/SOSAT
610f99e0bb80f2f5e7836e7e3b6b816e029838bb
[ "BSD-3-Clause" ]
null
null
null
tests/constraints/test_faulting_stress_measurement.py
pnnl/SOSAT
610f99e0bb80f2f5e7836e7e3b6b816e029838bb
[ "BSD-3-Clause" ]
1
2021-03-22T18:59:05.000Z
2021-03-22T18:59:05.000Z
tests/constraints/test_faulting_stress_measurement.py
pnnl/SOSAT
610f99e0bb80f2f5e7836e7e3b6b816e029838bb
[ "BSD-3-Clause" ]
null
null
null
import pytest from scipy.stats import uniform import numpy as np import matplotlib.pyplot as plt from SOSAT import StressState from SOSAT.constraints import StressMeasurement from SOSAT.constraints import FaultConstraint # depth in meters depth = 1228.3 # density in kg/m^3 avg_overburden_density = 2580.0 # pore press...
26.34375
67
0.737841
73bd2339d4ce0b66ae350fc66615b346fec27c47
1,017
py
Python
tests/test_Histogram.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
null
null
null
tests/test_Histogram.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
null
null
null
tests/test_Histogram.py
gitter-badger/play-chess-with-a-webcam
16cd9d30d1c0e118f98532ebd19c4b4c1621c837
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # part of https://github.com/WolfgangFahl/play-chess-with-a-webcam from pcwawc.PlotLib import PlotLib, PlotType from pcwawc.Environment4Test import Environment4Test from pcwawc.WebApp import WebApp from pcwawc.webchesscam import WebChessCamArgs import cv2 testEnv = Environment4Test() def test_Histog...
30.818182
126
0.737463
73bd8166d35d08633b2070d0bf95cba1fb8ba835
3,980
py
Python
tools/odrive/version.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
null
null
null
tools/odrive/version.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
null
null
null
tools/odrive/version.py
rowanG077/ODrive
431bf9116408691ec631f8286507f627e57b06d2
[ "MIT" ]
1
2021-11-09T22:33:33.000Z
2021-11-09T22:33:33.000Z
import re import subprocess import os import sys import platform def version_str_to_tuple(version_string): """ Converts a version string to a tuple of the form (major, minor, revision, prerelease) Example: "fw-v0.3.6-23" => (0, 3, 6, True) If version_string does not match the pattern above, this...
39.8
134
0.651759
73bd97e96a5c563929168b03110b0b47de8f2751
1,654
py
Python
extract_complete_CDS.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
2
2018-12-05T07:43:39.000Z
2018-12-05T07:43:42.000Z
extract_complete_CDS.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
extract_complete_CDS.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
import re import os import sys from Bio import Seq from Bio import SeqIO from Bio import SeqUtils import numpy as np import pandas as pd import cairi from multiprocessing import Pool if __name__ == "__main__": path = os.path.join(os.path.expanduser('~'),'GENOMES_BACTER_RELEASE69/genbank') # dbx = SeqIO.index...
29.535714
114
0.672914