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
74e5a62b2321efa49a106b3020e86d5287946f0c
578
py
Python
pythonneat/neat/utils/Parameters.py
SananR/PythonNEAT
951615b89d8211a22e147bc03446bf597576a6fc
[ "MIT" ]
2
2020-06-08T19:39:45.000Z
2022-01-20T18:21:38.000Z
pythonneat/neat/utils/Parameters.py
SananR/PythonNEAT
951615b89d8211a22e147bc03446bf597576a6fc
[ "MIT" ]
null
null
null
pythonneat/neat/utils/Parameters.py
SananR/PythonNEAT
951615b89d8211a22e147bc03446bf597576a6fc
[ "MIT" ]
null
null
null
# SPECIATION COMPATABILITY_THRESHOLD = 3.0 EXCESS_IMPORTANCE = 1.0 DISJOINT_IMPORTANCE = 1.0 WEIGHT_DIFFERENCE_IMPORTANCE = 0.4 DELTA_NORMALIZATION_THRESHOLD = 20 SPECIES_STAGNATE_MIN_IMPROVEMENT = 0.1 SPECIES_STAGNATE_GEN_COUNT = 2 # EVOLUTION POPULATION_SIZE = 100 GENERATIONS = 1000 # MUTATION CONNECTION_MUTATE_PRO...
22.230769
40
0.83391
74e5fd63b1024a32579f078b68dca53794bb3c12
725
py
Python
aim/web/api/projects/project.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/web/api/projects/project.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/web/api/projects/project.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
import os from aim.sdk.repo import Repo from aim.web.utils import get_root_path class Project: _default_repo_path = None # for unit-tests @staticmethod def set_repo_path(path: str): Project._default_repo_path = path def __init__(self): root_path = get_root_path() repo_path ...
25
77
0.646897
74e602ea68781e3a6b22b2c629581862a19ef38e
837
py
Python
cloud_browser/urls.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
cloud_browser/urls.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
cloud_browser/urls.py
UrbanDaddy/django-cloud-browser
509cfee0da4a37409bd6f3aee3c9d85bd8cf0402
[ "MIT" ]
null
null
null
"""Cloud browser URLs.""" from django.conf.urls import patterns, url from django.views.generic.base import RedirectView from cloud_browser.app_settings import settings # pylint: disable=invalid-name urlpatterns = patterns( 'cloud_browser.views', url(r'^$', # pylint: disable=no-value-for-parameter ...
32.192308
79
0.658303
74e60b6f244a0844bdcb73acbadf8d4bcab2ee08
3,051
py
Python
tests/mdts/lib/port_group_port_test.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2015-05-19T08:36:55.000Z
2015-05-19T08:36:55.000Z
tests/mdts/lib/port_group_port_test.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mdts/lib/port_group_port_test.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2018-10-25T05:52:05.000Z
2018-10-25T05:52:05.000Z
# Copyright 2014 Midokura SARL # # 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...
38.620253
78
0.686332
74e61979849a0c1ccee9d16eb12c4c7280e2b847
7,878
py
Python
RELEASE_ScaleNet_minimal/maskrcnn_rui/roi_heads_rui/box_head/roi_box_feature_extractors.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
33
2020-08-27T09:06:19.000Z
2022-03-10T02:27:31.000Z
RELEASE_ScaleNet_minimal/maskrcnn_rui/roi_heads_rui/box_head/roi_box_feature_extractors.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
2
2020-12-28T04:41:55.000Z
2021-04-07T06:03:36.000Z
RELEASE_ScaleNet_minimal/maskrcnn_rui/roi_heads_rui/box_head/roi_box_feature_extractors.py
Jerrypiglet/scalenet
6a5db480e650d10d1e575e93b6cee366d1912c8a
[ "Adobe-2006", "Adobe-Glyph" ]
5
2020-12-22T03:02:35.000Z
2021-12-08T09:46:01.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from torch import nn from torch.nn import functional as F from maskrcnn_rui.modeling import registry from maskrcnn_rui.modeling.backbone import resnet from maskrcnn_rui.modeling.poolers import Pooler from maskrcnn_rui.modeling.make_la...
37.336493
96
0.662859
74e6223be8c4a6d9c4b0bc39464a911a90cd5b3d
3,344
py
Python
Stock_Screener/settings.py
lit26/Stock_Screener
8ae06f8d91de40e565379ccec545293a4670e951
[ "MIT" ]
5
2021-08-04T11:58:22.000Z
2022-02-11T09:44:16.000Z
Stock_Screener/settings.py
webclinic017/Stock_Screener-3
8ae06f8d91de40e565379ccec545293a4670e951
[ "MIT" ]
2
2021-08-04T14:59:59.000Z
2022-02-22T15:29:51.000Z
Stock_Screener/settings.py
webclinic017/Stock_Screener-3
8ae06f8d91de40e565379ccec545293a4670e951
[ "MIT" ]
3
2021-11-07T14:28:28.000Z
2022-02-20T18:59:22.000Z
""" Django settings for Stock_Screener project. Generated by 'django-admin startproject' using Django 3.2. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pa...
25.922481
91
0.701854
74e6264297d6863dd940b0da33d8b8aee859e259
3,321
py
Python
sqlserver/tests/test_sqlserver.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/test_sqlserver.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
sqlserver/tests/test_sqlserver.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
null
null
null
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import pytest from datadog_checks.sqlserver import SQLServer from datadog_checks.sqlserver.sqlserver import SQLConnectionError CHECK_NAME = 'sqlserver' EXPECTED_METRICS = [m[0] for m in SQLServer.METRICS] @py...
39.070588
114
0.680518
74e63bf11f4b5d753a9163dd1ed82b46700d0aa6
129
py
Python
cndarray/__init__.py
vvhitedog/ctypes_ndarray
89474c6bf0209ea21dd55f0c120d16f151fa5cbf
[ "MIT" ]
null
null
null
cndarray/__init__.py
vvhitedog/ctypes_ndarray
89474c6bf0209ea21dd55f0c120d16f151fa5cbf
[ "MIT" ]
null
null
null
cndarray/__init__.py
vvhitedog/ctypes_ndarray
89474c6bf0209ea21dd55f0c120d16f151fa5cbf
[ "MIT" ]
null
null
null
from pkg_resources import get_distribution __version__ = get_distribution('cndarray').version import os from ndarray import *
16.125
50
0.821705
74e650a1bd4269aca3034aa9974e941918fe116a
5,006
py
Python
data_loader/datasets/openbmi.py
High-East/BCI-ToolBox
57015ae5fd008e8636889b9afba49c64c3a35ff3
[ "MIT" ]
10
2022-01-09T02:35:54.000Z
2022-03-22T06:18:06.000Z
data_loader/datasets/openbmi.py
High-East/BCI-ToolBox
57015ae5fd008e8636889b9afba49c64c3a35ff3
[ "MIT" ]
null
null
null
data_loader/datasets/openbmi.py
High-East/BCI-ToolBox
57015ae5fd008e8636889b9afba49c64c3a35ff3
[ "MIT" ]
null
null
null
from typing import List, Union import numpy as np from mne.filter import resample from torch.utils.data import Dataset from braindecode.datasets.moabb import MOABBDataset from braindecode.datautil.preprocess import Preprocessor from braindecode.datautil.preprocess import preprocess from braindecode.datautil.preprocess ...
39.417323
154
0.607871
74e6726027d72e8ec39c8ac8079ebd99dcfad3de
3,722
py
Python
metafarmerx/controllers/protocols/alpha_homora_v2/alpha_homora_v2.py
0xsamsar/MetaFarmerX
62b5171c5f63355c69b7a3089c0ca7a56e8f7d9f
[ "MIT" ]
4
2022-02-13T01:30:34.000Z
2022-03-01T21:41:53.000Z
metafarmerx/controllers/protocols/alpha_homora_v2/alpha_homora_v2.py
0xsamsar/deltra-neutral-yield-farming
62b5171c5f63355c69b7a3089c0ca7a56e8f7d9f
[ "MIT" ]
null
null
null
metafarmerx/controllers/protocols/alpha_homora_v2/alpha_homora_v2.py
0xsamsar/deltra-neutral-yield-farming
62b5171c5f63355c69b7a3089c0ca7a56e8f7d9f
[ "MIT" ]
null
null
null
import sys from brownie import Contract, accounts, config, interface from scripts.config_manager import get_abi from .traderjoe_spell import TraderJoeSpell class AlphaHomoraV2(object): """ Controller for interacting with leveraged yield farms """ def __init__(self, _pos_id, _lp_pair, _account): ...
39.595745
124
0.562063
74e6883c0ea77f0280920d9e22d57a8a8c32fb29
4,762
py
Python
roi_data_layer/minibatch.py
ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch
9dd24947db318f6e404918d4758f1d824eea3748
[ "MIT" ]
26
2019-10-31T08:21:46.000Z
2022-03-11T13:58:43.000Z
roi_data_layer/minibatch.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
12
2019-11-07T09:12:50.000Z
2022-03-12T02:58:18.000Z
roi_data_layer/minibatch.py
moli1026/regrad
f66c38c00405b22cb746cc3f5c38d2b49f77d854
[ "MIT" ]
11
2019-10-30T08:44:47.000Z
2022-03-11T13:58:48.000Z
# -------------------------------------------------------- # Visual Detection: State-of-the-Art # Copyright: Hanbo Zhang # Licensed under The MIT License [see LICENSE for details] # Written by Hanbo Zhang # based on code from Jiasen Lu, Jianwei Yang, Ross Girshick # -----------------------------------------------------...
37.496063
116
0.639857
74e69cb2ebc3c42b06ee7fa1d689fe4fa547674d
496
py
Python
tests/test_local_sampling_benchmark.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
294
2017-10-10T19:01:04.000Z
2022-03-18T15:52:19.000Z
tests/test_local_sampling_benchmark.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
285
2017-10-20T09:27:21.000Z
2022-03-29T15:33:45.000Z
tests/test_local_sampling_benchmark.py
musicinmybrain/aws-xray-sdk-python
b8e59423f1891351ceb1a0bd585603e0cd46c74c
[ "Apache-2.0" ]
134
2017-10-11T13:55:17.000Z
2022-03-23T07:21:17.000Z
import json import pkgutil from pkg_resources import resource_filename # Faster def test_pkgutil_static_read(benchmark): def get_sampling_rule(): return json.loads(pkgutil.get_data(__name__, 'mock_sampling_rule.json')) benchmark(get_sampling_rule) # Slower def test_pkg_resources_static_read(benchmark)...
29.176471
80
0.762097
74e6d1aec21c6b8ae4217e18b92f0da2c35c87d4
16,763
py
Python
packages/python/pyfora/Connection.py
ufora/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
571
2015-11-05T20:07:07.000Z
2022-01-24T22:31:09.000Z
packages/python/pyfora/Connection.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
218
2015-11-05T20:37:55.000Z
2021-05-30T03:53:50.000Z
packages/python/pyfora/Connection.py
timgates42/ufora
04db96ab049b8499d6d6526445f4f9857f1b6c7e
[ "Apache-2.0", "CC0-1.0", "MIT", "BSL-1.0", "BSD-3-Clause" ]
40
2015-11-07T21:42:19.000Z
2021-05-23T03:48:19.000Z
# Copyright 2015 Ufora Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
35.742004
112
0.598222
74e6e2c3d9e2b7aa13155473de155118c767543b
7,624
py
Python
batchglm/models/base_glm/utils.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/models/base_glm/utils.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/models/base_glm/utils.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
from typing import Union try: import anndata except ImportError: anndata = None import xarray as xr import numpy as np import pandas as pd import patsy from .external import groupwise_solve_lm from .external import weighted_mean, weighted_variance def parse_design( data: Union[anndata.AnnData, xr.D...
34.654545
114
0.627623
74e6eb3229619da80332bda37d89bd36310d00cf
4,731
py
Python
libs/datasets/data_source.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
libs/datasets/data_source.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
libs/datasets/data_source.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
import pathlib from typing import List from typing import Optional from typing import Union import structlog from covidactnow.datapublic import common_df from covidactnow.datapublic.common_fields import CommonFields from covidactnow.datapublic.common_fields import PdFields from libs.datasets import taglib from libs.d...
40.784483
99
0.711055
74e73684ae69df73e8fdb0af2cad57f1d82646fc
2,822
py
Python
tests/cli/test_config.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
1
2022-03-10T18:24:53.000Z
2022-03-10T18:24:53.000Z
tests/cli/test_config.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
null
null
null
tests/cli/test_config.py
keppy/zenml
a2671d66201abfaf11894ef9010d7bb8619a63e7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) ZenML GmbH 2020. 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.275
73
0.763288
74e7417c6dc50dcc392e3c51e52f63cf28a19535
2,515
py
Python
hallo/test/modules/random/test_eight_ball.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/random/test_eight_ball.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/random/test_eight_ball.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from hallo.events import EventMessage from hallo.modules.random.eight_ball import EightBall def test_eightball(hallo_getter): test_hallo = hallo_getter({"random"}) all_responses = ( EightBall.RESPONSES_YES_TOTALLY + EightBall.RESPONSES_YES_PROBABLY + EightBall.RESPONSES_MAYBE +...
34.930556
91
0.662425
74e769010fd18d16c829014d4b36d7636047db5b
12,917
py
Python
legal-api/src/legal_api/reports/report.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
legal-api/src/legal_api/reports/report.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
legal-api/src/legal_api/reports/report.py
ochiu/lear
b4ef397ede4e4ffe5267ad84dd7eb887cfc05159
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agree...
46.464029
119
0.656112
74e78484b7552b3fd11ba26f52c0e0fa94f90f8e
6,351
py
Python
hyperts/experiment.py
oaksharks/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
null
null
null
hyperts/experiment.py
oaksharks/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
1
2021-12-08T02:08:58.000Z
2021-12-08T02:08:58.000Z
hyperts/experiment.py
newbei/HyperTS
cecb38f3ce3c8b0ff9ead82670447457f6de6c56
[ "Apache-2.0" ]
1
2021-12-07T01:32:44.000Z
2021-12-07T01:32:44.000Z
import copy import numpy as np import pandas as pd from hypernets.core import set_random_state from hypernets.experiment import StepNames from hypernets.experiment.compete import SteppedExperiment, ExperimentStep, EnsembleStep, FinalTrainStep from hypernets.tabular import get_tool_box from hypernets.tabular....
38.490909
116
0.657534
74e792bd0b19d4cc2dc275159719514189aafd99
7,926
py
Python
src/ensemble.py
chhwang/cmcl
57f41f4b166b8544c56580f9d32ee98b997e3f59
[ "Apache-2.0" ]
14
2017-07-26T12:31:42.000Z
2021-07-26T08:41:33.000Z
src/ensemble.py
chhwang/cmcl
57f41f4b166b8544c56580f9d32ee98b997e3f59
[ "Apache-2.0" ]
3
2017-07-22T08:28:57.000Z
2018-09-03T03:41:39.000Z
src/ensemble.py
chhwang/cmcl
57f41f4b166b8544c56580f9d32ee98b997e3f59
[ "Apache-2.0" ]
4
2017-07-10T05:16:36.000Z
2018-04-29T18:15:22.000Z
# Author: Kimin Lee (pokaxpoka@gmail.com), Changho Hwang (ch.hwang128@gmail.com) # GitHub: https://github.com/chhwang/cmcl # ============================================================================== from __future__ import print_function from datetime import datetime import tensorflow as tf import numpy as np impor...
37.742857
99
0.604719
74e7e8164ce448950cd55d4eddb6827f04ab43e4
549
py
Python
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_BL.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_BL.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/phonenumbers/shortdata/region_BL.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
"""Auto-generated file, do not edit by hand. BL metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_BL = PhoneMetadata(id='BL', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d', possible_length=(2,)), ...
61
105
0.772313
74e7eae65ef0082a116bac8ae5c86e698ec02a90
5,740
py
Python
ephypype/pipelines/ts_to_conmat.py
EtienneCmb/ephypype
fdc13efb79545f072585d1e180d03702efd9e326
[ "BSD-3-Clause" ]
null
null
null
ephypype/pipelines/ts_to_conmat.py
EtienneCmb/ephypype
fdc13efb79545f072585d1e180d03702efd9e326
[ "BSD-3-Clause" ]
1
2018-09-03T20:08:46.000Z
2018-09-03T21:00:55.000Z
ephypype/pipelines/ts_to_conmat.py
EtienneCmb/ephypype
fdc13efb79545f072585d1e180d03702efd9e326
[ "BSD-3-Clause" ]
null
null
null
"""Wraps spectral connectivity function of MNE, as plot_circular_connectivity. Author: David Meunier <david_meunier_79@hotmail.fr> """ import nipype.pipeline.engine as pe from nipype.interfaces.utility import IdentityInterface # ,Function from ephypype.interfaces.mne.spectral import SpectralConn, PlotSpectralConn fro...
37.272727
79
0.645993
74e80273f2b97556f9e1f29b60fcb880aeb4adb0
21,319
py
Python
HubblePi/viewer/HubblePi_Viewer_ui.py
scriptorron/hubblepi
402af74b537a40d0764b11d105aa8d3b0dd242f3
[ "MIT" ]
null
null
null
HubblePi/viewer/HubblePi_Viewer_ui.py
scriptorron/hubblepi
402af74b537a40d0764b11d105aa8d3b0dd242f3
[ "MIT" ]
null
null
null
HubblePi/viewer/HubblePi_Viewer_ui.py
scriptorron/hubblepi
402af74b537a40d0764b11d105aa8d3b0dd242f3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'HubblePi_Viewer_ui.ui' # # Created by: PyQt5 UI code generator 5.9.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): ...
64.996951
155
0.738309
74e803b81f69408ebf76ca9ca379810aa7f49618
245
py
Python
tests/async_mock.py
FindingJohnny/simplisafe-python
e660938c8280dd47d5a90c49a39f77bba27e8a30
[ "MIT" ]
20
2019-02-17T11:35:01.000Z
2022-03-24T12:49:20.000Z
tests/async_mock.py
FindingJohnny/simplisafe-python
e660938c8280dd47d5a90c49a39f77bba27e8a30
[ "MIT" ]
98
2017-07-02T21:26:51.000Z
2022-03-01T20:35:31.000Z
tests/async_mock.py
FindingJohnny/simplisafe-python
e660938c8280dd47d5a90c49a39f77bba27e8a30
[ "MIT" ]
11
2017-07-05T21:28:13.000Z
2021-10-03T21:49:57.000Z
"""Define async mocking that works for various Python versions.""" import sys if sys.version_info[:2] < (3, 8): from asynctest.mock import * # noqa AsyncMock = CoroutineMock # noqa: F405 else: from unittest.mock import * # noqa
24.5
66
0.681633
74e86a83642d5f9c00ae77583460c86565940554
1,253
py
Python
nova/conf/mks.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/mks.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/mks.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright 2016 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 requ...
30.560976
78
0.672785
74e8750485d94f2092918d2e0af2b6a125bad369
1,530
py
Python
src/password.py
marcoplaitano/interactive-fiction
9fcdf238c4748ab768ff89e4245990ca554fd136
[ "MIT" ]
null
null
null
src/password.py
marcoplaitano/interactive-fiction
9fcdf238c4748ab768ff89e4245990ca554fd136
[ "MIT" ]
null
null
null
src/password.py
marcoplaitano/interactive-fiction
9fcdf238c4748ab768ff89e4245990ca554fd136
[ "MIT" ]
null
null
null
""" File: password.py Brief: This file contains the definition of a Game's Password. Author: Marco Plaitano Date: 02 Feb 2022 INTERACTIVE FICTION A choice-based interactive fiction game implemented in Python. """ class GamePassword: """This class represents a password needed to complete an action in the gam...
28.867925
97
0.654902
74e878ca2e5a9c6d6900c36fa0457bc208ed4bd5
4,732
py
Python
gslib/tests/test_encryption_helper.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/tests/test_encryption_helper.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/tests/test_encryption_helper.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2015 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 require...
40.793103
78
0.721471
74e87ba11f36982bd218ee870cc2f0f57eb5ee6f
745
py
Python
stegline_modules/string_id.py
lucashowardmiller/stegline
73bc090cfa9d919ed9d8af2f47b5cf8768799c1d
[ "MIT" ]
null
null
null
stegline_modules/string_id.py
lucashowardmiller/stegline
73bc090cfa9d919ed9d8af2f47b5cf8768799c1d
[ "MIT" ]
1
2019-01-01T08:11:44.000Z
2019-01-01T08:11:44.000Z
stegline_modules/string_id.py
lucashowardmiller/stegline
73bc090cfa9d919ed9d8af2f47b5cf8768799c1d
[ "MIT" ]
null
null
null
import re from typing import List """Used to id common ctf strings""" # foo{bar} generic_flag_brackets = re.compile('.*{.*}') # SKY-STEG-1234 sky_flag_format = re.compile('[NCLSKYnclsky]{3}-[a-zA-Z]{4}-[0-9]{4}') # flag-foo flag_generic = re.compile('[FLAGflag]{4}-.*') def return_ctf_flags(strings: List) -> List: ...
31.041667
101
0.700671
74e880fbb852ac48ecde433bcbc0d54de2115b5d
23,502
py
Python
bilby/core/sampler/base_sampler.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/core/sampler/base_sampler.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/core/sampler/base_sampler.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
1
2021-09-17T10:15:41.000Z
2021-09-17T10:15:41.000Z
from __future__ import absolute_import import datetime import numpy as np from pandas import DataFrame from ..utils import logger, command_line_args, Counter from ..prior import Prior, PriorDict, DeltaFunction, Constraint from ..result import Result, read_in_result class Sampler(object): """ A sampler object to...
35.609091
112
0.614756
74e88b765339240fefd8b7cc29a96bd5e311aa2d
152,334
py
Python
tensorflow/python/ops/nn_ops.py
abhijithragav/tensorflow-on-shakthi
ac38821730efcc5f8b09e5b440f6e99419ed8548
[ "Apache-2.0" ]
2
2018-12-05T10:58:40.000Z
2019-01-24T11:36:01.000Z
tensorflow/python/ops/nn_ops.py
sjang42/tensorflow
3db3e972a33760ebe6662341d5f4320a906582f7
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/nn_ops.py
sjang42/tensorflow
3db3e972a33760ebe6662341d5f4320a906582f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.439076
98
0.667336
74e8c774eb8d02c0e6903fe62812aac1c6d935b1
3,749
py
Python
parrot_api/core/auth/jwt.py
perrystallings/parrot-api-core
c6b5464429da00173c80ad17d9faf248cadcc33d
[ "MIT" ]
null
null
null
parrot_api/core/auth/jwt.py
perrystallings/parrot-api-core
c6b5464429da00173c80ad17d9faf248cadcc33d
[ "MIT" ]
null
null
null
parrot_api/core/auth/jwt.py
perrystallings/parrot-api-core
c6b5464429da00173c80ad17d9faf248cadcc33d
[ "MIT" ]
null
null
null
def sign_token(payload: dict, signing_key: dict): from jose import jwt, constants headers = dict( typ='JWT', alg='RS256', kid=signing_key['kid'] ) signed_string = jwt.encode(claims=payload, headers=headers, algorithm=constants.ALGORITHMS.RS256, key=signing_key) return signed...
34.394495
118
0.525207
74e8d32cc5f4ed2dde57ee880d78e4f185fc4e8f
4,641
py
Python
batchglm/unit_test/glm_all/test_acc_analytic_glm_all.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/unit_test/glm_all/test_acc_analytic_glm_all.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
batchglm/unit_test/glm_all/test_acc_analytic_glm_all.py
SabrinaRichter/batchglm
2da429f895f7eb577a835da334f4ae146a9422ce
[ "BSD-3-Clause" ]
null
null
null
from typing import List import unittest import logging import batchglm.api as glm from batchglm.models.base_glm import _Estimator_GLM from .external import Test_AccuracyAnalytic_GLM, _Test_AccuracyAnalytic_GLM_Estim glm.setup_logging(verbosity="WARNING", stream="STDOUT") logger = logging.getLogger(__name__) class ...
33.15
115
0.656324
74e8da6cbd2a8d24ce5e32792ff87a00a495f975
145,217
py
Python
test34.py
jpra2/Presto2
71525a8dece2bcc4f16ff4a2120d7627e9ecd776
[ "CNRI-Python" ]
1
2018-12-09T05:31:38.000Z
2018-12-09T05:31:38.000Z
test34.py
jpra2/Presto2
71525a8dece2bcc4f16ff4a2120d7627e9ecd776
[ "CNRI-Python" ]
null
null
null
test34.py
jpra2/Presto2
71525a8dece2bcc4f16ff4a2120d7627e9ecd776
[ "CNRI-Python" ]
null
null
null
import numpy as np from pymoab import core from pymoab import types from pymoab import topo_util from PyTrilinos import Epetra, AztecOO, EpetraExt # , Amesos import time import math import os import shutil import random class MsClassic_mono: def __init__(self, ind = False): """ ind = True quando...
42.411507
158
0.539434
74e9101bf84878db18083c2b33e9e01989f6a074
10,370
py
Python
Main/Selenium_Framework.py
MohamedBengezi/ShopBot
f42323edc180935c7f463abfab560d425a4524b7
[ "MIT" ]
39
2019-02-07T18:47:37.000Z
2022-02-12T06:43:38.000Z
Main/Selenium_Framework.py
MohamedBengezi/ShopBot
f42323edc180935c7f463abfab560d425a4524b7
[ "MIT" ]
5
2019-08-12T12:18:16.000Z
2020-11-18T18:30:06.000Z
Main/Selenium_Framework.py
MohamedBengezi/ShopBot
f42323edc180935c7f463abfab560d425a4524b7
[ "MIT" ]
16
2019-11-27T21:25:07.000Z
2022-02-09T01:41:54.000Z
from selenium.webdriver.common.by import By from selenium.webdriver import ActionChains from traceback import print_stack from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions import * from Utilities import custom_l...
40.03861
87
0.556798
74e91373aa4c8fe81c125cec0369cc1c77b28963
54,800
py
Python
microgui/source/gui.py
JaiWillems/MicroGUI
e8c557eebf5bc08d927d0d0e06af150f2dab215a
[ "MIT" ]
null
null
null
microgui/source/gui.py
JaiWillems/MicroGUI
e8c557eebf5bc08d927d0d0e06af150f2dab215a
[ "MIT" ]
null
null
null
microgui/source/gui.py
JaiWillems/MicroGUI
e8c557eebf5bc08d927d0d0e06af150f2dab215a
[ "MIT" ]
null
null
null
"""Main GUI display. This module contains the `GUI` and `MyTableWidget` class' responsible for creating the main user interface with the FAR-IR Horizontal Microscope. """ from flir_camera_control import get_image from PyQt5.QtGui import QPixmap, QFont, QIcon from PyQt5.QtCore import QRectF, QTimer, Qt from PyQt5.QtW...
40.926064
174
0.605821
74e913f82b0757faa23c824f789cefa9f723108b
13,365
py
Python
backend/config_app/config_covid/config_app_global.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
1
2019-12-17T22:31:00.000Z
2019-12-17T22:31:00.000Z
backend/config_app/config_covid/config_app_global.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
10
2019-05-28T19:57:28.000Z
2021-06-01T23:46:00.000Z
backend/config_app/config_covid/config_app_global.py
co-demos/apiviz-backend
8a86b92dce728e81c1c935427b890da590edd720
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- from . import version, uuid_models default_global_config = [ ### - - - - - - - - - - - - - - - ### ### CONFIG PING CARTO ### LANGUAGES { "field" : "app_languages", "languages" : ["fr", "en", "es", "it"], "is_multi_lang" : True, "locale" : ...
67.84264
315
0.520988
74e91e959478d9f4f16ccee981e3039c03e60eb0
8,528
py
Python
repos/system_upgrade/el7toel8/libraries/dnfplugin.py
adka1408/leapp-repository
be5a9603b57f86c65d395ba6a02b860cacae0fb6
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/libraries/dnfplugin.py
adka1408/leapp-repository
be5a9603b57f86c65d395ba6a02b860cacae0fb6
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/el7toel8/libraries/dnfplugin.py
adka1408/leapp-repository
be5a9603b57f86c65d395ba6a02b860cacae0fb6
[ "Apache-2.0" ]
null
null
null
import contextlib import itertools import json import os import shutil from leapp.exceptions import StopActorExecutionError from leapp.libraries.common import guards, mounting, overlaygen, utils from leapp.libraries.stdlib import CalledProcessError, api, config DNF_PLUGIN_NAME = 'rhel_upgrade.py' DNF_PLUGIN_PATH = os...
41.398058
118
0.643996
74e957ce46cb2cccf6348bd0909074c86da3369e
13,920
py
Python
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_configurations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mysql/aio/operations/_configurations_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 ...
45.789474
221
0.675934
74e96bded62d62ecab50ef9c0347cb21c9294be0
784
py
Python
tests/pipe_proc_tests/fsh.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
150
2015-01-16T12:24:13.000Z
2022-03-03T18:01:18.000Z
tests/pipe_proc_tests/fsh.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
129
2015-01-13T04:58:56.000Z
2022-03-02T13:39:16.000Z
tests/pipe_proc_tests/fsh.py
genematx/nmrglue
8a24cf6cbd18451e552fc0673b84c42d1dcb69a2
[ "BSD-3-Clause" ]
88
2015-02-16T20:04:12.000Z
2022-03-10T06:50:30.000Z
#! /usr/bin/env python """ Create files for fsh unit test """ # import nmrglue.fileio.pipe as pipe # import nmrglue.process.pipe_proc as p # the first three tests will fail because MIN/MAX values are off a little # d, a = pipe.read("1D_freq_real.dat") # d, a = p.fsh(d, a, dir="ls", pts=1) # pipe.write("fsh1.glue", d,...
32.666667
73
0.647959
74e9a5026fb065cd81f39a38a80f605991d76c75
16,756
py
Python
mi/idk/result_set.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/idk/result_set.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/idk/result_set.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ @file coi-services/mi/idk/result_set.py @author Bill French @brief Read a result set file and use the data to verify data particles. Usage: from mi.core.log import log rs = ResultSet(result_set_file_path) if not rs.verify(particles): log.info("Particle verified") else: log.error("P...
38.967442
117
0.650454
74e9a5b6becef3279d7bfa208715a87cd08b25d4
2,211
py
Python
nova/conf/conductor.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/conductor.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/conf/conductor.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright (c) 2010 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 ...
30.708333
78
0.688376
74e9cda74525b2f1331a06dc042855aaf75d7ccc
962
py
Python
args/terms_per_context.py
nicolay-r/are-networks-experiments
3831bfda75fae1d3a336fc808af2b671df0efb45
[ "MIT" ]
2
2021-06-30T18:58:32.000Z
2021-12-01T07:02:32.000Z
args/terms_per_context.py
nicolay-r/are-networks-experiments
3831bfda75fae1d3a336fc808af2b671df0efb45
[ "MIT" ]
16
2020-10-20T20:22:27.000Z
2021-02-21T11:46:07.000Z
args/terms_per_context.py
nicolay-r/are-networks-experiments
3831bfda75fae1d3a336fc808af2b671df0efb45
[ "MIT" ]
null
null
null
from args.base import BaseArg from args.default import TERMS_PER_CONTEXT class TermsPerContextArg(BaseArg): default = TERMS_PER_CONTEXT def __init__(self): pass @staticmethod def read_argument(args): return args.terms_per_context @staticmethod def add_argument(parser): ...
35.62963
104
0.56237
74e9d39b03f58bb4ee73e0620025536eb1126ebf
13,751
py
Python
tests/test_operations.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
1
2021-04-07T06:20:55.000Z
2021-04-07T06:20:55.000Z
tests/test_operations.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
null
null
null
tests/test_operations.py
pji/pjinoise
3967d69fa57be1136cdeb8f4a5d187ee455fa783
[ "MIT" ]
null
null
null
""" test_operations ~~~~~~~~~~~~~~~ Unit tests for the pjinoise.operations module. """ import unittest as ut from typing import Callable, List import numpy as np from pjinoise import operations as op # Utility functions. def run_test(operation: Callable, amount: float = 1.0) -> List[int]: a = np.array([ ...
32.897129
71
0.449131
74e9e4d32a3ce076d5849a6e1ce01c34a58d85a9
1,030
py
Python
axonius_api_client/api/system/settings_gui.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/api/system/settings_gui.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/api/system/settings_gui.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """API for working with System Settings -> GUI Settings.""" from .. import json_api from ..api_endpoints import ApiEndpoints from .settings_mixins import SettingsMixins class SettingsGui(SettingsMixins): """API for working with System Settings -> GUI Settings.""" TITLE: str = "GUI Set...
38.148148
89
0.715534
74e9e8435792c32b19779f5f5c6b9bc253d3ce8a
479
py
Python
src/wsgi.py
acbilson/chaos-auth
8cc533bed224e407a9bd1aea464e63f32dd29549
[ "MIT" ]
null
null
null
src/wsgi.py
acbilson/chaos-auth
8cc533bed224e407a9bd1aea464e63f32dd29549
[ "MIT" ]
null
null
null
src/wsgi.py
acbilson/chaos-auth
8cc533bed224e407a9bd1aea464e63f32dd29549
[ "MIT" ]
null
null
null
from urllib.parse import urlparse from application import create_app app = create_app() env = app.config['FLASK_ENV'] local = app.config['LOCAL'] remote = app.config['REMOTE'] local_url = urlparse(local) host, port = local_url.netloc.split(':') app.logger.info(f"Flask app running in {env} at {local}") app.logger.in...
21.772727
57
0.661795
74e9f0942e1c996b1d3b0950fa5377bd2d5d9d63
8,201
py
Python
wheelchair/api/connection.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
3
2020-06-17T07:59:08.000Z
2020-07-05T08:59:11.000Z
wheelchair/api/connection.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
null
null
null
wheelchair/api/connection.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
null
null
null
# Copyright (C) 2019-2021 by Vd. # This file is part of Wheelchair, the async CouchDB connector. # Wheelchair is released under the MIT License (see LICENSE). import json import logging from typing import Optional, List, Dict, Union from urllib.parse import urlsplit, urljoin, quote, urlencode from aiohttp import Cli...
34.457983
117
0.614925
74ea0abd77e0f838c6afc38b5ed45e9aa840be79
4,940
py
Python
interactive_desired_goal.py
keshaviyengar/rl-baselines-zoo
6e39f5c7c6c2d30873297308ed064551bffaa52d
[ "MIT" ]
null
null
null
interactive_desired_goal.py
keshaviyengar/rl-baselines-zoo
6e39f5c7c6c2d30873297308ed064551bffaa52d
[ "MIT" ]
null
null
null
interactive_desired_goal.py
keshaviyengar/rl-baselines-zoo
6e39f5c7c6c2d30873297308ed064551bffaa52d
[ "MIT" ]
null
null
null
import rospy from interactive_markers.interactive_marker_server import * from visualization_msgs.msg import * from geometry_msgs.msg import Point, Pose # This script is to create a 6-dof interactive marker to be used to indicate a user's desired pose. # Later on can be changed to be used with an omni. class Desire...
34.788732
100
0.672672
74ea24f3432c8fc69612da769b8ee7ffc07b3b94
3,296
py
Python
experiments/steven/disentanglement/pointmass/disentanglement.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/disentanglement/pointmass/disentanglement.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/disentanglement/pointmass/disentanglement.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import os.path as osp import multiworld.envs.mujoco as mwmj import torch.nn.functional as F import rlkit.misc.hyperparameter as hyp from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.experiments.disentanglement.state_launcher import \ disentangled_her_twin_sac_experiment_v2 from multiworl...
31.692308
72
0.582828
74ea521c0f8bda8bf2ba26ad6cae3b9660508f9b
632
py
Python
src/dvc_objects/transfer.py
iterative/dvc-objects
dc54090092e5b726234899f83faf3bac99908f1a
[ "Apache-2.0" ]
null
null
null
src/dvc_objects/transfer.py
iterative/dvc-objects
dc54090092e5b726234899f83faf3bac99908f1a
[ "Apache-2.0" ]
9
2021-12-13T07:37:21.000Z
2022-03-28T22:16:25.000Z
src/dvc_objects/transfer.py
iterative/dvc-objects
dc54090092e5b726234899f83faf3bac99908f1a
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING, Set if TYPE_CHECKING: from .db import ObjectDB def transfer( src: "ObjectDB", dest: "ObjectDB", oids: Set["str"], jobs: int = None ) -> Set["str"]: src_exists = set(src.oids_exist(oids, jobs=jobs)) src_missing = oids - src_exists dest_exists = set(dest.oids_exis...
24.307692
73
0.658228
74ea8dceb948e2c5181556bb7b0e9a68fb190fde
3,064
py
Python
refinery/bnpy/bnpy-dev/tests/allocmodel/admix/TestGlobalStickbreakOptimizer.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
103
2015-01-13T00:48:14.000Z
2021-11-08T10:53:22.000Z
refinery/bnpy/bnpy-dev/tests/allocmodel/admix/TestGlobalStickbreakOptimizer.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
7
2015-02-21T04:03:40.000Z
2021-08-23T20:24:54.000Z
refinery/bnpy/bnpy-dev/tests/allocmodel/admix/TestGlobalStickbreakOptimizer.py
csa0001/Refinery
0d5de8fc3d680a2c79bd0e9384b506229787c74f
[ "MIT" ]
27
2015-01-23T00:54:31.000Z
2020-12-30T14:30:50.000Z
''' Unit tests for GlobalStickbreakOptimizer.py Test Strategy: We examine models with K=2, K=10, and K=128 We start with a known v / beta, and generate the "observed data": group-level probs Pi For each model we verify that both, 1) the neglobprob objective function provided by GSO.py has (more or less) a minim...
29.180952
86
0.584856
74ea91d1ad1a549cbd4695b1879095261f1b493c
9,652
py
Python
src/train.py
fractal2k/Handwriting-Synthesis
a12567697e893319b4f33423c7791a4c2978af7f
[ "MIT" ]
null
null
null
src/train.py
fractal2k/Handwriting-Synthesis
a12567697e893319b4f33423c7791a4c2978af7f
[ "MIT" ]
null
null
null
src/train.py
fractal2k/Handwriting-Synthesis
a12567697e893319b4f33423c7791a4c2978af7f
[ "MIT" ]
null
null
null
import sys import config import models import torch import pickle import argparse import numpy as np import torchvision from tqdm import tqdm import torch.nn as nn import torch.optim as optim from dataset import get_dataloader from inference import inference # from lookahead import Lookahead # from augment import Dif...
33.397924
112
0.581019
74ea9a5027980e4cfeff6e680655662c97229004
292
py
Python
examples/objects/tetrahedron.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
4
2021-01-22T23:49:52.000Z
2022-03-04T06:01:18.000Z
examples/objects/tetrahedron.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
50
2020-08-14T22:24:36.000Z
2022-03-18T20:41:12.000Z
examples/objects/tetrahedron.py
DaAwesomeP/ARENA-py
876a6b0c6800d7c2b1a592fd5f25529b9c140efc
[ "BSD-3-Clause" ]
10
2019-10-28T20:15:18.000Z
2021-06-29T18:02:06.000Z
from arena import * scene = Scene(host="arenaxr.org", scene="example") @scene.run_once def make_tet(): my_tet = Tetrahedron( object_id="my_tet", position=(0,2,-3), scale=(2,2,2), color=(255,100,255), ) scene.add_object(my_tet) scene.run_tasks()
18.25
50
0.599315
74ea9b740340747f44cdb8ad17a9577fe436224c
5,128
py
Python
cinderclient/v3/group_types.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/v3/group_types.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
cinderclient/v3/group_types.py
deepanshhu/python-cinderclient
2c0f74c708fd09c5ae813255aaa671073f2fe250
[ "Apache-1.1" ]
null
null
null
# Copyright (c) 2016 EMC Corporation # # 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 wr...
30.891566
78
0.591069
74eaf1a3ae33f34e0d68b9d4d007e47430afaa19
24,806
py
Python
GrblDevice.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
GrblDevice.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
GrblDevice.py
jaredly/meerk40t
446427e29104cb89fd2ee17ad824fc801d44afe0
[ "MIT" ]
null
null
null
from Kernel import Device, Interpreter, INTERPRETER_STATE_PROGRAM from Kernel import Module, Pipe from LaserCommandConstants import * from svgelements import * MILS_PER_MM = 39.3701 """ GRBL device is a stub device. Serving as a placeholder. """ class GrblDevice(Device): """ """ def __...
38.458915
111
0.436386
74eb56ea30feec2fba947181eea6503a0b86e647
288
py
Python
test/test_pritoni.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
null
null
null
test/test_pritoni.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
null
null
null
test/test_pritoni.py
MingzheWu418/plastering
322531e934c3acf2ecc8f520b37a6d255b9959c2
[ "MIT" ]
null
null
null
from plastering.inferencers.quiver import DummyPritoni import rdflib ebu3b_ttl = '../groundtruth/ebu3b_brick.ttl' ebu3b_g = rdflib.Graph() ebu3b_g.parse(ebu3b_ttl, format='turtle') pritoni = DummyPritoni(ebu3b_ttl, 'ebu3b', []) pritoni.update_prior(ebu3b_g) pred = pritoni.predict()
20.571429
54
0.774306
74eb6f54cb1a86027b45c49bed91595e617438a9
2,251
py
Python
vnpy/data/tdx/refill_tdx_future_bars.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
vnpy/data/tdx/refill_tdx_future_bars.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
vnpy/data/tdx/refill_tdx_future_bars.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
# flake8: noqa """ 下载通达信指数合约1分钟bar => vnpy项目目录/bar_data/ """ import os import sys import json from collections import OrderedDict import pandas as pd vnpy_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..')) if vnpy_root not in sys.path: sys.path.append(vnpy_root) os.environ["VNPY_TES...
27.45122
112
0.638827
74eba5f03f3e42ae45fade5dbf5aabeb97e6150e
79,331
py
Python
driver/f5/oslbaasv1driver/drivers/plugin_driver.py
Sinan828/oslbaasv1_for_cmcc
52318460b704ed5f08491b482b47aae61bf166ca
[ "Apache-2.0" ]
null
null
null
driver/f5/oslbaasv1driver/drivers/plugin_driver.py
Sinan828/oslbaasv1_for_cmcc
52318460b704ed5f08491b482b47aae61bf166ca
[ "Apache-2.0" ]
null
null
null
driver/f5/oslbaasv1driver/drivers/plugin_driver.py
Sinan828/oslbaasv1_for_cmcc
52318460b704ed5f08491b482b47aae61bf166ca
[ "Apache-2.0" ]
null
null
null
""" F5 LBaaS Driver """ # Copyright 2014 F5 Networks 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 l...
40.516343
79
0.548398
74ebda9c9f33f5004464211e3ccd437c745442c7
6,939
py
Python
mll_calc/full_ll_calc.py
opotowsky/like-me-fuel
34b533550e8e97ad14dde93da5dde9aa87988ab1
[ "MIT" ]
null
null
null
mll_calc/full_ll_calc.py
opotowsky/like-me-fuel
34b533550e8e97ad14dde93da5dde9aa87988ab1
[ "MIT" ]
null
null
null
mll_calc/full_ll_calc.py
opotowsky/like-me-fuel
34b533550e8e97ad14dde93da5dde9aa87988ab1
[ "MIT" ]
1
2022-01-25T04:13:01.000Z
2022-01-25T04:13:01.000Z
#! /usr/bin/env python3 import sys import pickle import argparse import numpy as np import pandas as pd import scipy.stats as stats def like_calc(y_sim, y_mes, std): """ Given a simulated entry with uncertainty and a test entry, calculates the likelihood that they are the same. Parameters --...
33.521739
126
0.653841
74ec24a323a0b2b3c86881f2a6bf5de188036a85
1,009
py
Python
maquinaria/taskapp/celery.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/taskapp/celery.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
maquinaria/taskapp/celery.py
CFredy9/Maquinaria
7b55d2e882702b62cdbb11f9684ab54d9b485199
[ "MIT" ]
null
null
null
"""Celery app config.""" import os from celery import Celery from django.apps import apps, AppConfig from django.conf import settings if not settings.configured: # set the default Django settings module for the 'celery' program. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') # prag...
29.676471
96
0.739346
74ecbfbf6b3ebd55b38697fabbed9e7bef868a7f
4,618
py
Python
Common/TechIndicators/RsiIndicator.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/TechIndicators/RsiIndicator.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/TechIndicators/RsiIndicator.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
import matplotlib.cm as cm import matplotlib.pyplot as plt from pandas import DataFrame, Series from Common.StockOptions.Yahoo.YahooStockOption import YahooStockOption from Common.TechIndicators.AbstractTechIndicator import AbstractTechIndicator class RsiIndicator(AbstractTechIndicator): _data: DataFrame = DataF...
48.610526
136
0.620615
74eccab3051f95197c1e80904e964476c8c45cff
728
py
Python
tests/derivate/function_derivate_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
23
2015-01-21T01:39:11.000Z
2019-08-27T09:43:39.000Z
tests/derivate/function_derivate_test.py
cenkbircanoglu/similarityPy
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
1
2021-07-24T19:55:47.000Z
2021-07-24T19:55:47.000Z
tests/derivate/function_derivate_test.py
cenkbircanoglu/clustering
0a97fbf43e58e65e8d9eed30eecff00bcd47f093
[ "MIT" ]
6
2015-03-23T16:58:18.000Z
2019-03-12T06:31:56.000Z
from unittest import TestCase from similarityPy.derivate.function_derivate import FunctionDerivate from tests import test_logger __author__ = 'cenk' class FunctionDerivateTest(TestCase): def setUp(self): pass def test_algorithm(self): test_logger.debug("FunctionDerivateTest - test_algorith...
22.75
73
0.652473
74ed0b27670858ebccc32e9fa075f735bc4390a9
347
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/accounts/tests/test_models.py
camlog/django-naqsh
1e55fae417b877b9017acf54d534c8c8e9c3d9cb
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/accounts/tests/test_models.py
camlog/django-naqsh
1e55fae417b877b9017acf54d534c8c8e9c3d9cb
[ "BSD-3-Clause" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/accounts/tests/test_models.py
camlog/django-naqsh
1e55fae417b877b9017acf54d534c8c8e9c3d9cb
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase from django.db.models.signals import post_save import factory from .factories import UserFactory class TestUser(TestCase): @factory.django.mute_signals(post_save) def test__str__(self): self.assertEqual( UserFactory(email="user1@exaple.com").__str__(), "u...
23.133333
79
0.720461
74ed0d7d36be170d5dd6bf94b8aeddd6b18efa43
3,833
py
Python
google-cloud-sdk/.install/.backup/lib/surface/compute/routers/update_bgp_peer.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2017-11-29T18:52:27.000Z
2017-11-29T18:52:27.000Z
google-cloud-sdk/.install/.backup/lib/surface/compute/routers/update_bgp_peer.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/surface/compute/routers/update_bgp_peer.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2015 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...
28.604478
79
0.652231
74ed1da0d4409adfc69a1259b38b2f3a3aecb6d5
17,526
py
Python
nbp/neighbours.py
machism0/non-bonded-periodic
30a6a10cae7487f88451db78319f66cf145bcba5
[ "MIT" ]
null
null
null
nbp/neighbours.py
machism0/non-bonded-periodic
30a6a10cae7487f88451db78319f66cf145bcba5
[ "MIT" ]
6
2017-12-18T12:48:52.000Z
2018-02-22T08:38:53.000Z
nbp/neighbours.py
machism0/non-bonded-periodic
30a6a10cae7487f88451db78319f66cf145bcba5
[ "MIT" ]
3
2017-12-11T16:11:15.000Z
2018-04-22T23:16:14.000Z
import numpy as np import math import collections def periodic_particles_stay_in_box(pos_arr, length): return pos_arr - np.floor(pos_arr / length) * length def periodic_wrap_corner(dist_arr, length, verbose=False): """For a box with lower left vertex at the origin.""" if verbose: print(dist_arr)...
38.350109
94
0.591692
74ed3908e38e058296b65c5e299818aa579444c6
5,211
py
Python
labkey/server_context.py
LabKey/labkey-api-python
c0954785759ac3153a1d1c6a685b085f36fa9288
[ "Apache-2.0" ]
16
2016-04-06T00:15:55.000Z
2022-02-16T16:20:10.000Z
labkey/server_context.py
LabKey/labkey-api-python
c0954785759ac3153a1d1c6a685b085f36fa9288
[ "Apache-2.0" ]
21
2016-03-15T20:10:31.000Z
2021-02-26T22:37:59.000Z
labkey/server_context.py
LabKey/labkey-api-python
c0954785759ac3153a1d1c6a685b085f36fa9288
[ "Apache-2.0" ]
16
2015-11-07T03:05:50.000Z
2021-10-09T15:36:26.000Z
from labkey.utils import json_dumps import requests from requests.exceptions import RequestException from labkey.exceptions import ( RequestError, RequestAuthorizationError, QueryNotFoundError, ServerContextError, ServerNotFoundError, ) API_KEY_TOKEN = "apikey" CSRF_TOKEN = "X-LABKEY-CSRF" def ha...
33.191083
100
0.576473
74ed5d3d3dec424e5cb6719e7358b8ea587c77c0
5,303
py
Python
utils.py
HaoRanLyu/RCF-pytorch
a0414ebbb5f83540808bdd7eb7866953eda3b587
[ "MIT" ]
513
2018-09-11T13:02:06.000Z
2022-03-20T13:19:11.000Z
utils.py
HaoRanLyu/RCF-pytorch
a0414ebbb5f83540808bdd7eb7866953eda3b587
[ "MIT" ]
55
2018-09-19T03:05:07.000Z
2022-03-02T01:53:03.000Z
utils.py
HaoRanLyu/RCF-pytorch
a0414ebbb5f83540808bdd7eb7866953eda3b587
[ "MIT" ]
150
2018-09-13T06:59:10.000Z
2022-03-31T02:09:02.000Z
import os, sys import torch import torch.nn as nn import torch.nn.functional as F import torchvision.models as models import torch.autograd.variable as Variable import numpy as np import scipy.io as sio from os.path import join as pjoin #from skimage.transform import resize #from models import HiFi1Edge import skimage....
29.137363
90
0.576278
74ed6d002d9773e8fc0e27c8256d0cd2e66639cf
89
py
Python
arc/utils/__init__.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/utils/__init__.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
arc/utils/__init__.py
amarkpayne/ARC
fcc3bc0050f50a81c02192f72aaa31ea47d29818
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # encoding: utf-8 import arc.utils.scale import arc.utils.delete
14.833333
23
0.752809
74ed6e1134a25c8e33b384ac642936fb1a4721c8
1,163
py
Python
setup.py
jiahuei/sparse-image-captioning
c36317c87746312cc0b1121fa587ea6a51f37138
[ "BSD-3-Clause" ]
12
2021-03-06T13:33:51.000Z
2022-03-09T06:38:14.000Z
setup.py
jiahuei/sparse-image-captioning
c36317c87746312cc0b1121fa587ea6a51f37138
[ "BSD-3-Clause" ]
null
null
null
setup.py
jiahuei/sparse-image-captioning
c36317c87746312cc0b1121fa587ea6a51f37138
[ "BSD-3-Clause" ]
1
2022-02-05T08:04:23.000Z
2022-02-05T08:04:23.000Z
import os import pkg_resources from setuptools import setup CURR_DIR = os.path.dirname(os.path.realpath(__file__)) def read_requirements_file(path): with open(path, "r") as f: return [_ for _ in f.readlines() if _[:1].isidentifier()] if __name__ == "__main__": package = "sparse_caption" require...
35.242424
93
0.687016
74ed906c27077d06f894680c6fd9d6abdbc4652f
15
py
Python
btd6_memory_info/generated/System/Net/Dns/dns.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Net/Dns/dns.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/System/Net/Dns/dns.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Dns: pass
15
15
0.8
74edb37cfd4c06786f59b534ee8970dad923398f
3,514
py
Python
modules/apertium_wiki.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
7
2018-10-29T18:01:47.000Z
2022-01-21T04:13:46.000Z
modules/apertium_wiki.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
225
2018-03-08T10:41:50.000Z
2021-11-01T19:51:17.000Z
modules/apertium_wiki.py
apertium/phenny
77f302bac05e50cd7d19bc5cc2737bb98fec0cc7
[ "EFL-2.0" ]
44
2018-03-19T15:30:15.000Z
2020-07-29T08:47:45.000Z
#!/usr/bin/env python """ apertium_wiki.py - Phenny Wikipedia Module """ from tools import truncate import datetime as dt import wiki import web endpoints = { 'api': 'https://wiki.apertium.org/api.php?action=query&list=search&srlimit=1&format=json&srsearch={0}', 'url': 'https://wiki.apertium.org/wiki/{0}',...
31.945455
145
0.605293
74edbc6416ef32423d654992125badca512312cd
2,351
py
Python
migrations1/versions/99a732c31bb8_initial_migration.py
nimowairimu/flask-week-3-
00876bbbc5816e0fbb3f3d3556bc0c5ee76be28f
[ "MIT" ]
null
null
null
migrations1/versions/99a732c31bb8_initial_migration.py
nimowairimu/flask-week-3-
00876bbbc5816e0fbb3f3d3556bc0c5ee76be28f
[ "MIT" ]
null
null
null
migrations1/versions/99a732c31bb8_initial_migration.py
nimowairimu/flask-week-3-
00876bbbc5816e0fbb3f3d3556bc0c5ee76be28f
[ "MIT" ]
null
null
null
"""Initial Migration Revision ID: 99a732c31bb8 Revises: 58e3a8aec7c4 Create Date: 2021-03-02 23:40:15.582535 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '99a732c31bb8' down_revision = '58e3a8aec7c4' branch_labels = ...
37.31746
117
0.676308
74edbcf7892392104443a163af3e572872ea3276
2,000
py
Python
earlier-2020/plt/plt_sigmoid.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:09:33.000Z
2018-06-18T12:09:33.000Z
earlier-2020/plt/plt_sigmoid.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
null
null
null
earlier-2020/plt/plt_sigmoid.py
transcendentsky/py_tutorials
fed8e6c8d79f854a1cebcfd5c37297a163846208
[ "Apache-2.0" ]
1
2018-06-18T12:13:21.000Z
2018-06-18T12:13:21.000Z
import matplotlib.pyplot as plt # import matplotlib.numerix as nx import numpy as np def show_plot(times, epochs, data): # 折线图 Or Scatter plt.figure(figsize=(8, 5)) """ args: marker='o' ,'x', color= """ plt.plot(epochs, data[:, 0], color='red', label='0') plt.plot(epochs, data[:,...
25
119
0.6485
74edc4ed3b7742b0f55bc659ff30622435e4ca11
3,064
py
Python
languages/python/atom/config.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
null
null
null
languages/python/atom/config.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
3
2021-09-30T18:02:15.000Z
2022-02-26T12:22:50.000Z
languages/python/atom/config.py
fatash89/atom
12846c8a3f936ae6c83e7e7b1d2dbb896e63fe66
[ "Apache-2.0" ]
null
null
null
from enum import Enum LANG = "Python" ACK_TIMEOUT = 1000 RESPONSE_TIMEOUT = 1000 STREAM_LEN = 1024 MAX_BLOCK = 999999999999999999 DEFAULT_REDIS_PORT = 6379 DEFAULT_METRICS_PORT = 6380 HEALTHCHECK_RETRY_INTERVAL = 5 REDIS_PIPELINE_POOL_SIZE = 20 DEFAULT_REDIS_SOCKET = "/shared/redis.sock" DEFAULT_METRICS_SOCKET = "/sha...
25.966102
80
0.795366
74eddd837d542774d465db7fb0f443d90c996a66
1,368
py
Python
py/wiring_pi_stub.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
3
2016-10-13T20:47:13.000Z
2018-11-30T00:53:26.000Z
py/wiring_pi_stub.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
null
null
null
py/wiring_pi_stub.py
bradowen2011/lightshowpi
15713bdd64dd4e7be52abee3b1aac9286eebaf9a
[ "BSD-2-Clause" ]
8
2015-10-10T05:08:59.000Z
2021-01-31T15:57:27.000Z
import os class WiringPiStub: @classmethod def import_wiringpi2(cls, logger): is_pi = "raspberrypi" in os.uname() if is_pi: cls._is_stubbed = False logger.info("Raspberry Pi detected, enabling wiringpi2 library") import wiringpi2 return wiringpi2 ...
20.117647
78
0.58114
74eddfd6d24a50897f4b8d6f410d0fdbce8c9497
1,849
py
Python
utils.py
uclaml/Frank-Wolfe-AdvML
068cf243cb988c9bb192cba42355d30942aa795d
[ "Apache-2.0" ]
12
2018-12-03T05:47:47.000Z
2021-11-24T05:02:47.000Z
utils.py
uclaml/Frank-Wolfe-AdvML
068cf243cb988c9bb192cba42355d30942aa795d
[ "Apache-2.0" ]
null
null
null
utils.py
uclaml/Frank-Wolfe-AdvML
068cf243cb988c9bb192cba42355d30942aa795d
[ "Apache-2.0" ]
9
2018-12-17T01:19:09.000Z
2021-10-05T10:33:48.000Z
import sys import tensorflow as tf import numpy as np from six.moves import xrange # Epsilon Search Parameter def eps_search(ep, order): if(ep == 0.): if order == np.inf: step_size = 1e-3 eps = np.arange(1e-3,1e+0,step_size) elif order == 2: st...
28.446154
98
0.546782
74ede7b2b4fe803592c93dca1fa0fdc305e71fb4
2,000
py
Python
brian2/utils/filetools.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/utils/filetools.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
brian2/utils/filetools.py
achilleas-k/brian2
906563b6b1321585b082f79f74f1b4ab386347ec
[ "BSD-2-Clause" ]
null
null
null
''' File system tools ''' import os import sys from contextlib import contextmanager __all__ = ['ensure_directory', 'ensure_directory_of_file', 'in_directory', 'copy_directory'] def ensure_directory_of_file(f): ''' Ensures that a directory exists for filename to go in (creates if ...
27.777778
79
0.606
74edf69f2b637bcb7b96926fc95825fd7b814f9d
15,103
py
Python
spark/cs120_autograder_complete.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
spark/cs120_autograder_complete.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
spark/cs120_autograder_complete.py
BenjaminLiuPenrose/Berkeley-CS-100
84fe1633ddaa808ccbf0b5c9f55762e6766c1d3e
[ "BSD-2-Clause" ]
null
null
null
# Databricks notebook source exported at Tue, 21 Jun 2016 17:18:30 UTC # MAGIC %md # MAGIC <a rel="license" href="http://creativecommons.org/licenses/by-nc-nd/4.0/"> <img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-nd/4.0/88x31.png"/> </a> <br/> This work is license...
45.354354
409
0.723896
74edff125a1fd78fecc30bce41073d63359faa3f
8,188
py
Python
pims/ffmpeg_reader.py
tacaswell/pims
6bb8bdf2e53f99bcbaad9b228f148f6e06d5c299
[ "BSD-3-Clause" ]
null
null
null
pims/ffmpeg_reader.py
tacaswell/pims
6bb8bdf2e53f99bcbaad9b228f148f6e06d5c299
[ "BSD-3-Clause" ]
null
null
null
pims/ffmpeg_reader.py
tacaswell/pims
6bb8bdf2e53f99bcbaad9b228f148f6e06d5c299
[ "BSD-3-Clause" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2014 Zulko # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, mer...
32.621514
79
0.622863
74ee21fb0a466a411727cefb00a74cc038e353e4
2,475
py
Python
conekt/controllers/admin/views/expression_clusters.py
legumeinfo/CoNekT
709a4980cfa255cafd456b268e274db2b4b1f5fb
[ "MIT" ]
14
2018-08-20T03:07:21.000Z
2021-11-04T11:15:31.000Z
conekt/controllers/admin/views/expression_clusters.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
9
2018-07-17T15:30:47.000Z
2021-07-05T13:11:54.000Z
conekt/controllers/admin/views/expression_clusters.py
mutwil/CoNekT
f4a4496a87d14b15bcf587975b31a2edc24c6bf7
[ "MIT" ]
3
2019-08-05T09:16:34.000Z
2019-12-04T23:59:28.000Z
from flask import flash from flask_admin import expose from markupsafe import Markup from conekt.controllers.admin.views import MyModelView, AdminBaseView from conekt.forms.admin.add_coexpression_clusters import AddCoexpressionClustersForm from conekt.forms.admin.build_coexpression_clusters import BuildCoexpressionClu...
34.375
119
0.730505
74ee26c368ee060741698f5407a646675d803fc8
1,337
py
Python
final_project/machinetranslation/translator.py
chrischow/xzceb-flask_eng_fr
bb6c31e3d855ff75c7177b7fffe3adae425eba56
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
chrischow/xzceb-flask_eng_fr
bb6c31e3d855ff75c7177b7fffe3adae425eba56
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
chrischow/xzceb-flask_eng_fr
bb6c31e3d855ff75c7177b7fffe3adae425eba56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.6 """ This module contains functions for translating English and French for the Python Project for AI & Application Development Course. """ import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_d...
23.875
69
0.704562
74ee35619a8e4b25ed2c4375afaee69ef5390994
2,188
py
Python
main.py
zli117/Web-Scraper
328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7
[ "MIT" ]
1
2019-03-08T10:46:52.000Z
2019-03-08T10:46:52.000Z
main.py
zli117/Web-Scraper
328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7
[ "MIT" ]
null
null
null
main.py
zli117/Web-Scraper
328b5e4f6a0a6ccc665b61cc45b507ab8851a6d7
[ "MIT" ]
null
null
null
import argparse import logging import sys from typing import cast from tqdm import tqdm from scraper.graph.base_objects import Url from scraper.graph.graph import Graph from scraper.graph.shell import ShellRunner from scraper.spider.spider_runner import SpiderRunner COLORS = { 'WARNING': '\033[93m', 'DEBUG':...
31.257143
79
0.627057
74ee360eb3009c2fe8e2b65ed018128fdf7da44c
183
py
Python
wavetorch/core/__init__.py
NunoEdgarGFlowHub/wavetorch
e6171b69e66e16a2ba4c76869d4e0b15a3e9861f
[ "MIT" ]
1
2019-09-17T06:15:16.000Z
2019-09-17T06:15:16.000Z
wavetorch/core/__init__.py
NunoEdgarGFlowHub/wavetorch
e6171b69e66e16a2ba4c76869d4e0b15a3e9861f
[ "MIT" ]
null
null
null
wavetorch/core/__init__.py
NunoEdgarGFlowHub/wavetorch
e6171b69e66e16a2ba4c76869d4e0b15a3e9861f
[ "MIT" ]
null
null
null
from .cell import WaveCell, setup_src_coords, setup_probe_coords from .train import train from .utils import save_model, load_model, accuracy_onehot, calc_cm, set_dtype, window_data
36.6
91
0.836066
74ee57b952336e5d86ba72576b2c1c02e2f85ab4
2,637
py
Python
python/test/ngraph/test_normalization.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
python/test/ngraph/test_normalization.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
python/test/ngraph/test_normalization.py
GBuella/ngraph
ec935c0bafc5ba8c6940d9c9dcf45ddeac487513
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2020 Intel Corporation # # 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.apa...
41.203125
99
0.443307
74ee65d197b7543badddb5c7c31f13e0acf5f042
115
py
Python
slimmable/models/__init__.py
Zx55/pytorch-examples
fafbb3a2bcec8beeaf19628749abea47980db1bd
[ "MIT" ]
null
null
null
slimmable/models/__init__.py
Zx55/pytorch-examples
fafbb3a2bcec8beeaf19628749abea47980db1bd
[ "MIT" ]
null
null
null
slimmable/models/__init__.py
Zx55/pytorch-examples
fafbb3a2bcec8beeaf19628749abea47980db1bd
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from .us_mobilenet import us_mobilenet_v2 from .us_resnet import us_resnet18, us_resnet34
23
47
0.765217
74ee72d0c7985d68dda9edf336589f8d60f65298
976
py
Python
infertrade/utilities/simple_functions.py
holderfolyf/infertrade
db46d35244c01d595ae0fc5ad896101ec2a3fb57
[ "Apache-2.0" ]
null
null
null
infertrade/utilities/simple_functions.py
holderfolyf/infertrade
db46d35244c01d595ae0fc5ad896101ec2a3fb57
[ "Apache-2.0" ]
null
null
null
infertrade/utilities/simple_functions.py
holderfolyf/infertrade
db46d35244c01d595ae0fc5ad896101ec2a3fb57
[ "Apache-2.0" ]
null
null
null
""" Simple functions used across the package. Copyright 2021 InferStat Ltd 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 applic...
31.483871
72
0.740779
74ee8235736e2889bb5761124e255c5685bbda07
985
py
Python
scripts/data/data_list_loader.py
davrempe/predicting-physical-dynamics
b0abb385a7ac491e25d1df0b9a9a943621fc2d37
[ "MIT" ]
16
2020-02-29T06:44:16.000Z
2022-02-20T13:05:12.000Z
scripts/data/data_list_loader.py
davrempe/predicting-physical-dynamics
b0abb385a7ac491e25d1df0b9a9a943621fc2d37
[ "MIT" ]
6
2020-02-13T08:09:28.000Z
2022-02-09T23:35:55.000Z
scripts/data/data_list_loader.py
davrempe/predicting-physical-dynamics
b0abb385a7ac491e25d1df0b9a9a943621fc2d37
[ "MIT" ]
4
2020-04-22T09:46:55.000Z
2021-04-15T06:17:48.000Z
import os.path def load_data_list(path): ''' Parses the file in path and returns a list of the datasets in the file ''' if not os.path.isfile(path): print('Given data list is not a file!') return list_file = open(path, 'r') data_list = [x.split('\n')[0] for x in list_file.readlines()] ...
32.833333
82
0.655838
74ee912ef4abc6288ed539014663ca804317498c
143,390
py
Python
azure/multiapi/storage/v2015_04_05/blob/baseblobservice.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
3
2019-02-21T20:46:26.000Z
2021-06-22T15:35:52.000Z
azure/multiapi/storage/v2015_04_05/blob/baseblobservice.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
11
2017-10-05T18:20:40.000Z
2020-10-10T09:20:19.000Z
azure/multiapi/storage/v2015_04_05/blob/baseblobservice.py
xolve/azure-multiapi-storage-python
47509479427c879f18c554e451e838453d47c2bd
[ "MIT" ]
15
2017-10-02T18:48:20.000Z
2022-03-03T14:03:49.000Z
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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.apa...
50.649947
108
0.625385
74eea84c6c5682fb6c5f6ce838de604e91b49498
18,958
py
Python
pylint_protobuf/transform.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
25
2018-09-21T13:21:25.000Z
2021-12-30T06:00:57.000Z
pylint_protobuf/transform.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
48
2019-01-26T10:10:43.000Z
2021-07-27T02:23:19.000Z
pylint_protobuf/transform.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
12
2018-09-27T09:19:58.000Z
2021-02-12T17:17:07.000Z
from keyword import iskeyword from functools import lru_cache from typing import Any, List, Tuple, Set, Dict, Union, MutableMapping, Iterator import textwrap import astroid try: from google.protobuf.descriptor import ( Descriptor, EnumDescriptor, FieldDescriptor, ) except ImportError: ...
32.132203
121
0.643317
74eedd86347bfe19d663c62e1ea969c16fdf1450
8,340
py
Python
per_day_without_function.py
sangharshbyss/online_FIRs
564eeccf045f0a7462e859221c7b2d93b7331c89
[ "CC0-1.0" ]
null
null
null
per_day_without_function.py
sangharshbyss/online_FIRs
564eeccf045f0a7462e859221c7b2d93b7331c89
[ "CC0-1.0" ]
null
null
null
per_day_without_function.py
sangharshbyss/online_FIRs
564eeccf045f0a7462e859221c7b2d93b7331c89
[ "CC0-1.0" ]
null
null
null
""" wokring fine""" import os import time from contextlib import contextmanager import state_FIRs import pandas as pd from bs4 import BeautifulSoup as BS from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, TimeoutException from selenium.webdriver.common.action_chains import Ac...
42.55102
120
0.681655
74eedde01069d681cbe4da516f5401a5b8e20046
4,649
py
Python
kornia/color/hls.py
ananyamukh6/kornia
04307c26a9b4dc8d37f0b1a746c197609e98514c
[ "ECL-2.0", "Apache-2.0" ]
1
2021-07-27T06:59:04.000Z
2021-07-27T06:59:04.000Z
kornia/color/hls.py
ananyamukh6/kornia
04307c26a9b4dc8d37f0b1a746c197609e98514c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/color/hls.py
ananyamukh6/kornia
04307c26a9b4dc8d37f0b1a746c197609e98514c
[ "ECL-2.0", "Apache-2.0" ]
2
2020-01-08T17:11:34.000Z
2020-10-14T00:44:18.000Z
import torch import torch.nn as nn import cv2 import kornia from kornia.geometry import pi class HlsToRgb(nn.Module): r"""Convert image from HLS to Rgb The image data is assumed to be in the range of (0, 1). args: image (torch.Tensor): HLS image to be converted to RGB. returns: torch...
28.875776
106
0.534524
74eef0a2fc6101cb1fde46cd7b735aac1ae30ab8
1,295
py
Python
glue/qt/decorators.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
glue/qt/decorators.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
glue/qt/decorators.py
JudoWill/glue
7372b58d44f69107877fa87eeaf8209c0e4bfff2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function from functools import wraps import traceback from ..utils.qt import QMessageBoxPatched as QMessageBox def set_cursor(shape): """Set the Qt cursor for the duration of a function call, and unset :param shape: Cursor shape to set. """ def...
28.152174
73
0.576834
74ef33b4535dc87cfd433eb01b306776d2753a45
13,675
py
Python
pygld/api/heatcarrierfluids.py
cgq-qgc/pygld
f5cef90a6b9a4d60b5beca2428a9432fdb3c95d8
[ "MIT" ]
4
2018-04-05T18:03:07.000Z
2021-11-05T18:55:46.000Z
pygld/api/heatcarrierfluids.py
cgq-qgc/pygld
f5cef90a6b9a4d60b5beca2428a9432fdb3c95d8
[ "MIT" ]
8
2017-12-16T00:38:29.000Z
2018-07-15T04:53:35.000Z
pygld/api/heatcarrierfluids.py
cgq-qgc/pygld
f5cef90a6b9a4d60b5beca2428a9432fdb3c95d8
[ "MIT" ]
1
2021-11-05T18:55:45.000Z
2021-11-05T18:55:45.000Z
# -*- coding: utf-8 -*- # Copyright © 2017-2018 Jean-Sébastien Gosselin # https://github.com/jnsebgosselin/pygld # # This file is part of PyGLD. # Licensed under the terms of the MIT License. # ---- Standard imports import copy # ---- Third party imports import numpy as np from scipy import interpolate import os.p...
34.885204
79
0.615868
74ef3eea5d68849641668aacb50c531796d02122
13,851
py
Python
services/traction/acapy_client/model/indy_pres_spec.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/indy_pres_spec.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/indy_pres_spec.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
42.618462
167
0.585662
74ef524ef48f31522c39a121002773443fd3c769
236
py
Python
openlis/data/__init__.py
amorten/learned-index-structures
a698c97301c2617f4e7937dc0fe1dd9af0e59539
[ "MIT" ]
23
2018-03-17T22:12:50.000Z
2022-03-03T21:31:37.000Z
openlis/data/__init__.py
amorten/learned-index-structures
a698c97301c2617f4e7937dc0fe1dd9af0e59539
[ "MIT" ]
null
null
null
openlis/data/__init__.py
amorten/learned-index-structures
a698c97301c2617f4e7937dc0fe1dd9af0e59539
[ "MIT" ]
4
2018-10-23T07:49:43.000Z
2022-03-03T21:31:24.000Z
# __init__.py for data from .data_set import DataSet from .data_set import create_train_validate_data_sets from .data_set import generate_uniform_floats from .data_set import generate_normal_floats from .data_set import load_keys_npy
26.222222
53
0.860169
74ef938d650d2caabed2924d80f94e11de9f7cd2
5,335
py
Python
TerminalStory/Kay.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
TerminalStory/Kay.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
TerminalStory/Kay.py
TomlinsonJ03/4006CEM-Mini-Project
ac2ebcfa5793475d7bfb074034b5aa23cfd1858e
[ "CC0-1.0" ]
null
null
null
# Entering the kitchen def kitchen(): print(""" After much thought, I decide to take a chance and enter the kitchen; I hear that some people tend to hide valuables in some of the weirdest places. Sure, it was likely to waste time, but high rewards sometimes require a high risk! As I enter the kitche...
93.596491
557
0.738894
74efaa2a45c526d8726100dd98d9b67f5dc7a3b8
463
py
Python
examples/presentation/01_empty_circus.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
97
2018-01-15T19:29:31.000Z
2022-03-11T00:27:34.000Z
examples/presentation/01_empty_circus.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
10
2018-01-15T22:44:55.000Z
2022-02-18T09:44:10.000Z
examples/presentation/01_empty_circus.py
sathiscode/trumania
bcf21c4f9e1ff0fe03fd9cbe2dc367f0df033fbc
[ "Apache-2.0" ]
33
2018-01-15T19:34:23.000Z
2022-03-05T22:39:33.000Z
import logging import pandas as pd from trumania.core import circus import trumania.core.util_functions as util_functions util_functions.setup_logging() logging.info("building circus") example1 = circus.Circus( name="example1", master_seed=12345, start=pd.Timestamp("1 Jan 2017 00:00"), step_duration...
21.045455
53
0.74946
74efae062e70e31589c43c93c2495a07a15513a2
204
py
Python
src/graph_transpiler/webdnn/frontend/chainer/__init__.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/frontend/chainer/__init__.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/frontend/chainer/__init__.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from webdnn.frontend.chainer import converter from webdnn.frontend.chainer import functions from webdnn.frontend.chainer import util # alias from webdnn.frontend.chainer.converter import ChainerConverter
34
62
0.862745
74efee521d13c2764e37f0ee16aa72bdfa1c89f4
3,236
py
Python
gaphor/diagram/classes/tests/test_class.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/classes/tests/test_class.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/classes/tests/test_class.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
""" Test classes. """ from gaphas.canvas import instant_cairo_context from gaphor import UML from gaphor.tests.testcase import TestCase from gaphor.diagram.classes.klass import ClassItem def compartments(item): return item.shape.children[1:] class ClassTestCase(TestCase): def test_compartments(self): ...
31.115385
84
0.647095
74eff456e0b7694533ff9d425de0aef37230ce43
8,478
py
Python
tests/test_writer.py
shh-dlce/python-nexus
5e5ed8d53fe394f2685b3c87253e8f498c5a6191
[ "BSD-2-Clause" ]
1
2020-05-15T20:22:49.000Z
2020-05-15T20:22:49.000Z
tests/test_writer.py
shh-dlce/python-nexus
5e5ed8d53fe394f2685b3c87253e8f498c5a6191
[ "BSD-2-Clause" ]
9
2020-02-19T08:35:28.000Z
2020-05-11T11:30:13.000Z
tests/test_writer.py
shh-dlce/python-nexus
5e5ed8d53fe394f2685b3c87253e8f498c5a6191
[ "BSD-2-Clause" ]
null
null
null
import re import pathlib import pytest from nexus.writer import NexusWriter @pytest.fixture def writer(): data = { 'char1': {'French': 1, 'English': 2, 'Latin': 3}, 'char2': {'French': 4, 'English': 5, 'Latin': 6}, } res = NexusWriter() for char in data: for taxon, value in d...
32.235741
78
0.63883
74effb16e253063b45db98c2598c3ae8b90fdd92
5,467
py
Python
components/server/tests/external/model/test_actions.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
33
2016-01-20T07:35:48.000Z
2022-03-14T09:20:51.000Z
components/server/tests/external/model/test_actions.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
2,410
2016-01-22T18:13:01.000Z
2022-03-31T16:57:34.000Z
components/server/tests/external/model/test_actions.py
ICTU/quality-time
88d80ea30e35bd5f0bf5cce7cb43dc9f439e91f5
[ "Apache-2.0" ]
21
2016-01-16T11:49:23.000Z
2022-01-14T21:53:22.000Z
"""Unit tests for the model actions.""" import unittest from external.model.actions import copy_metric, copy_report, copy_source, copy_subject class CopySourceTest(unittest.TestCase): """Unit tests for the copy source action.""" def setUp(self): """Override to set up the data model and source unde...
42.053846
117
0.658862