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
742c415ea1f0cfbd6ae9da141fe3d2d3d69aa9b9
12,978
py
Python
tests/mmm/topology/router.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
1
2015-05-19T08:36:55.000Z
2015-05-19T08:36:55.000Z
tests/mmm/topology/router.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
tests/mmm/topology/router.py
duarten/midonet
c7a5aa352a8038bdc6a463c68abc47bb411a1e7c
[ "Apache-2.0" ]
null
null
null
# 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...
49.915385
79
0.366697
742c50254f60f02fd9518a2c88d46335b51f68c1
363
py
Python
tests/unimplemented/print_eval_order.py
ZYAZP/python2
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
1,062
2015-11-18T01:04:33.000Z
2022-03-29T07:13:30.000Z
tests/unimplemented/print_eval_order.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
26
2015-11-17T06:58:07.000Z
2022-01-15T18:11:16.000Z
tests/unimplemented/print_eval_order.py
ArrowSides/onelinerizer
7dc3b62eff51e1decb4a408122e77630fdc1687d
[ "MIT" ]
100
2015-11-17T09:01:22.000Z
2021-09-12T13:58:28.000Z
import sys def trace(msg, value): print msg return value print trace('print arg 0', 0), trace('print arg 1', 1), print trace('print arg 2', 2), trace('print arg 3', 3) print >>trace('print file 0', sys.stdout), trace('print arg 4', 4), trace('print arg 5', 5), print >>trace('print file 1', sys.stdout), trace(...
33
92
0.639118
742c668cdb3ca2bf1bd9d1bdf4afaae2db779320
1,122
py
Python
applications/user/views/check.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/user/views/check.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/user/views/check.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.core.validators import EmailValidator, ValidationError from mighty.views import CheckData from mighty.applications.user.choices import STATUS_PENDING from mighty.models import UserEmail, UserPhone from mighty.functions import make_searchable class UserEmailCheckView(CheckData): permission_classes = () ...
33
69
0.660428
742c79dcf0d961c0084a993993af3790ee0c3a78
4,886
py
Python
text_cnn.py
dasguptap/adversarial-text-perturbation
09b895e4da0171a8ba588a39aa3b28c5b4eb663a
[ "Apache-2.0" ]
1
2018-05-26T06:38:38.000Z
2018-05-26T06:38:38.000Z
text_cnn.py
pdasguptauno/adversarial-text-perturbation
09b895e4da0171a8ba588a39aa3b28c5b4eb663a
[ "Apache-2.0" ]
null
null
null
text_cnn.py
pdasguptauno/adversarial-text-perturbation
09b895e4da0171a8ba588a39aa3b28c5b4eb663a
[ "Apache-2.0" ]
2
2018-05-18T13:51:18.000Z
2018-09-17T05:56:33.000Z
######################################################### # CNN for text classification with calculation for gradient # of loss added # # Code source: https://github.com/dennybritz/cnn-text-classification-tf # File name: text_cnn.py ######################################################### ####################...
44.825688
124
0.559558
742ca436fe5aa31a93794335c8269461d1e451ab
4,322
py
Python
pcdet/models/detectors/second_fpn_nounet.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
8
2021-06-23T02:06:56.000Z
2022-03-18T08:34:32.000Z
pcdet/models/detectors/second_fpn_nounet.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
2
2021-07-17T11:19:14.000Z
2021-09-25T03:30:36.000Z
pcdet/models/detectors/second_fpn_nounet.py
zhangweichen2006/SRDAN_Open
47c1bd9d2369d8e486b18a7aea220af7324c9011
[ "Apache-2.0" ]
null
null
null
from .detector3d_template import Detector3DTemplate class SECONDFPNNOUNet(Detector3DTemplate): def __init__(self, model_cfg, num_class, dataset, nusc=False): super().__init__(model_cfg=model_cfg, num_class=num_class, dataset=dataset, nusc=nusc) self.module_list = self.build_networks() self...
42.792079
202
0.578899
742ca85a0942085bf5dd6ea4cfca26a30c4a49ec
7,367
py
Python
marqeta/resources/digital_wallet_tokens.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/resources/digital_wallet_tokens.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/resources/digital_wallet_tokens.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
'''DIGITALWALLETTOKENS RESOURCE WITH CRU PARAMETERS''' from marqeta.resources.collection import Collection from marqeta.response_models.digital_wallet_token import DigitalWalletToken from marqeta.response_models.digital_wallet_token_transition_response import DigitalWalletTokenTransitionResponse class DigitalWallet...
40.701657
113
0.623456
742caf47996ed366e8ee0abefe34276d3d48994d
29,271
py
Python
kuha/test/test_models.py
JohnJiangLA/kuha
e6ed93e71132a3637a80d47f16b4a1020961e688
[ "BSD-3-Clause" ]
4
2016-11-30T08:29:00.000Z
2021-04-16T15:21:22.000Z
kuha/test/test_models.py
JohnJiangLA/kuha
e6ed93e71132a3637a80d47f16b4a1020961e688
[ "BSD-3-Clause" ]
null
null
null
kuha/test/test_models.py
JohnJiangLA/kuha
e6ed93e71132a3637a80d47f16b4a1020961e688
[ "BSD-3-Clause" ]
3
2020-11-22T15:21:02.000Z
2021-05-16T11:09:48.000Z
# encoding: utf-8 import unittest from datetime import datetime, timedelta from lxml.etree import XMLSyntaxError import sqlalchemy as sa import sqlalchemy.exc as exc import sqlalchemy.orm as orm import mock from ..util import datestamp_now from .. import models from ..models import ( DBSession, ...
34.599291
76
0.555191
742cd3c4df3e5fdf10a09128709b2bf6dfe0a3c3
4,694
py
Python
sdks/python/appcenter_sdk/models/PrivateCreateStoreRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/appcenter_sdk/models/PrivateCreateStoreRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/appcenter_sdk/models/PrivateCreateStoreRequest.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ import pprint import re # noqa: F401 import six class PrivateCreateS...
27.450292
98
0.576481
742cf1a83ff31d0f6cc7ccddd2613a86200dea0f
15,305
py
Python
codes/block_definitions/utilities/operators_Augmentor_preprocessing.py
jasonzutty/ezCGP
ee44425e4835f9d7ca5651bbea3340cf9466840a
[ "MIT" ]
5
2019-01-18T20:33:54.000Z
2021-08-24T17:02:07.000Z
codes/block_definitions/utilities/operators_Augmentor_preprocessing.py
jasonzutty/ezCGP
ee44425e4835f9d7ca5651bbea3340cf9466840a
[ "MIT" ]
188
2019-01-22T21:56:42.000Z
2022-03-31T21:23:58.000Z
codes/block_definitions/utilities/operators_Augmentor_preprocessing.py
jasonzutty/ezCGP
ee44425e4835f9d7ca5651bbea3340cf9466840a
[ "MIT" ]
3
2019-01-27T04:32:50.000Z
2021-04-20T17:28:42.000Z
''' root/codes/block_definitions/utilities/operators... Overview: Here we are relying on the Augmentor module to handle the 'pipeline' of our data or image processing. Augmentor has a super simple way to do batching, and on top of that add in data preprocessing and augmentation. Here we assume that the input and outpu...
38.358396
160
0.646455
742cff816481c3d52fa0e9fb6daa4746e29fd22a
1,572
py
Python
build/scripts/configure_file.py
r1nadeg/04_catboost
6755bbbd1496540b92ded57eea1974f64bef87c5
[ "Apache-2.0" ]
33
2016-12-15T21:47:13.000Z
2020-10-27T23:53:59.000Z
build/scripts/configure_file.py
dsferz/machinelearning_yandex
8fde8314c5c70299ece8b8f00075ddfcd5e07ddf
[ "Apache-2.0" ]
null
null
null
build/scripts/configure_file.py
dsferz/machinelearning_yandex
8fde8314c5c70299ece8b8f00075ddfcd5e07ddf
[ "Apache-2.0" ]
14
2016-12-28T17:00:33.000Z
2022-01-16T20:15:27.000Z
#!/usr/bin/env python2.7 import sys import os.path cmakeDef01 = "#cmakedefine01" cmakeDef = "#cmakedefine" def replaceLine(l, varDict, define): words = l.split() if words: if words[0] == cmakeDef: sPos = l.find(cmakeDef) ePos = sPos + len(cmakeDef) l = l[:sPos] + ...
25.354839
82
0.494275
742d26942e112f46931e1cb2f9f30c98c71249ef
1,674
py
Python
examples/docs_snippets/docs_snippets/deploying/kubernetes/k8s_config_tag_job.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/deploying/kubernetes/k8s_config_tag_job.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
examples/docs_snippets/docs_snippets/deploying/kubernetes/k8s_config_tag_job.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
from dagster import job, op # fmt: off @op def my_op(context): context.log.info("running") # start_k8s_config @job( tags={ "dagster-k8s/config": { "container_config": { "resources": { "requests": {"cpu": "250m", "memory": "64Mi"}, "l...
32.192308
98
0.342891
742d50209987b3b50b7b8c68d52afc75e71c36fd
15,670
py
Python
desdeo_emo/EAs/IOPIS.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
1
2022-03-30T17:24:55.000Z
2022-03-30T17:24:55.000Z
desdeo_emo/EAs/IOPIS.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
null
null
null
desdeo_emo/EAs/IOPIS.py
bonskotti/desdeo-emo
6a607fa96478fd3c76394ac7b2dafdfd3c08eb2a
[ "MIT" ]
null
null
null
from typing import Dict, Union, List from desdeo_emo.EAs.BaseEA import eaError from desdeo_emo.EAs.BaseEA import BaseDecompositionEA, BaseEA from desdeo_emo.EAs.RVEA import RVEA from desdeo_emo.population.Population import Population from desdeo_emo.selection.IOPIS_APD import IOPIS_APD_Select from desdeo_emo.selection...
44.016854
88
0.661264
742d593cb5d164d31d66fc2c8e0c72a99b15f9f6
3,930
py
Python
viz/latent_widget.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
viz/latent_widget.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
viz/latent_widget.py
maua-maua-maua/nvGAN
edea24c58646780c9fb8ea942e49708ce9d62421
[ "MIT" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this sof...
49.125
155
0.573028
742d61cf23344fea7e4cc3659d97f67fe207eebe
10,370
py
Python
scripts/ldap/create_account_using_cipher.py
SeagateChaDeepak/cortx-s3server
2af49128d467187a7e566fa939f90d2e727d0c8f
[ "Apache-2.0" ]
null
null
null
scripts/ldap/create_account_using_cipher.py
SeagateChaDeepak/cortx-s3server
2af49128d467187a7e566fa939f90d2e727d0c8f
[ "Apache-2.0" ]
null
null
null
scripts/ldap/create_account_using_cipher.py
SeagateChaDeepak/cortx-s3server
2af49128d467187a7e566fa939f90d2e727d0c8f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates # # 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 # ...
34.451827
148
0.667888
742d8cf0a0a43fcff13dbd15225165d913f5411d
5,410
py
Python
src/morphforgeexamples/exset2_singlecell_simulations/singlecell_simulation090.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgeexamples/exset2_singlecell_simulations/singlecell_simulation090.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgeexamples/exset2_singlecell_simulations/singlecell_simulation090.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
42.936508
289
0.697043
742d96e9758e311a8eea0a1c3941a2c66fbdcf5a
37,827
py
Python
vision_transform_codes/training/sparse_coding.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/training/sparse_coding.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/training/sparse_coding.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
""" This implements sparse coding dictionary learning """ import time import torch from utils import plotting as plot_utils def train_dictionary(training_image_dataset, validation_image_dataset, init_dictionary, all_params): """ Train a sparse coding dictionary The inputs should vary in th...
49.447059
80
0.668517
742da4a05a79ec46574ea09f49686bcc7ac0a0d5
3,756
py
Python
intersight/models/hyperflex_feature_limit_external_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_feature_limit_external_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/hyperflex_feature_limit_external_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexFeatureLimitExternalRef(object): """ ...
25.04
85
0.559372
742dded8a74c1a69e947abfae9d5dc4fbf352605
8,574
py
Python
toontown/battle/BattleExperienceAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
1
2018-06-16T23:06:38.000Z
2018-06-16T23:06:38.000Z
toontown/battle/BattleExperienceAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/battle/BattleExperienceAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.directnotify import DirectNotifyGlobal import httplib from toontown.toonbase import ToontownBattleGlobals, ToontownGlobals from toontown.suit import SuitDNA import random BattleExperienceAINotify = DirectNotifyGlobal.directNotify.newCategory('BattleExprienceAI') def getSkillGained(toonSkillPtsGained, toon...
41.023923
180
0.599254
742ddfbb0935974b86c0184bffc4544c5d8397eb
24,349
py
Python
tests/clients/_archiveaccess/test_init.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/clients/_archiveaccess/test_init.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
tests/clients/_archiveaccess/test_init.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from requests import Response from tests.conftest import get_file_selection from tests.conftest import TEST_ACCEPTING_GUID from tests.conftest import TEST_BACKUP_SET_ID from tests.conftest import TEST_DESTINATION_GUID_1 from tests.conftest import TEST_DEVICE_GUID from tests.conftes...
39.020833
116
0.588156
742dfc08d5eee3d4790a0a0e8970ae67171427ea
622
py
Python
client/verta/verta/_swagger/_public/modeldb/model/ModeldbFindAllOutputs.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
835
2017-02-08T20:14:24.000Z
2020-03-12T17:37:49.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbFindAllOutputs.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
651
2019-04-18T12:55:07.000Z
2022-03-31T23:45:09.000Z
client/verta/verta/_swagger/_public/modeldb/model/ModeldbFindAllOutputs.py
CaptEmulation/modeldb
78b10aca553e386554f9740db63466b1cf013a1a
[ "Apache-2.0" ]
170
2017-02-13T14:49:22.000Z
2020-02-19T17:59:12.000Z
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT from verta._swagger.base_type import BaseType class ModeldbFindAllOutputs(BaseType): def __init__(self, items=None): required = { "items": False, } self.items = items for k, v in required.items(): if self[k] is None and v: raise ValueErr...
24.88
70
0.673633
742e0f51366add52bd5ebe156ac19295074b2e1e
5,068
py
Python
dags/oss_know/libs/github/init_profiles.py
ynang/airflow-jobs-1
857e9dfbc2444dc1d23dd2b0463fe89108f01b89
[ "Apache-2.0" ]
4
2022-01-24T11:27:39.000Z
2022-02-25T11:44:10.000Z
dags/oss_know/libs/github/init_profiles.py
linruoma/airflow-jobs-1
25d3996c6d11ee2d8f93ff2b73abcf83da986804
[ "Apache-2.0" ]
13
2021-12-17T12:14:11.000Z
2022-02-24T07:01:08.000Z
dags/oss_know/libs/github/init_profiles.py
linruoma/airflow-jobs-1
25d3996c6d11ee2d8f93ff2b73abcf83da986804
[ "Apache-2.0" ]
13
2022-01-19T09:30:03.000Z
2022-03-02T10:45:07.000Z
import itertools from loguru import logger from opensearchpy.helpers import scan as os_scan from oss_know.libs.base_dict.opensearch_index import OPENSEARCH_INDEX_GITHUB_COMMITS, \ OPENSEARCH_INDEX_GITHUB_ISSUES_TIMELINE from oss_know.libs.util.opensearch_api import OpensearchAPI from oss_know.libs.util.base import ...
46.495413
126
0.615036
742e0f87d937aa07bf14b7ad834c5cac68a16aef
1,175
py
Python
python/transpose_hpcp.py
rddunphy/MusicClassification
efa58e474d2ff68cc24a07dd19b61e4dbac93765
[ "MIT" ]
null
null
null
python/transpose_hpcp.py
rddunphy/MusicClassification
efa58e474d2ff68cc24a07dd19b61e4dbac93765
[ "MIT" ]
null
null
null
python/transpose_hpcp.py
rddunphy/MusicClassification
efa58e474d2ff68cc24a07dd19b61e4dbac93765
[ "MIT" ]
null
null
null
import os import pickle n_transpositions = 5 def _load(src_dir, file): path = os.path.join(src_dir, file) return pickle.load(open(path, 'rb')) def _save(data, out_dir, file, t): # Add transposition interval to file name file = file.split('.')[0] file += "+{:02d}.p".format(t) path = os.path....
26.111111
82
0.624681
742e28be1ce07924a6fc09a9ae5f94610df13d43
43
py
Python
Model_Output_Function.py
PoomarinPh/function-generator
fb634a93ca05dccac890a7e56b21b8feaf6853aa
[ "MIT" ]
null
null
null
Model_Output_Function.py
PoomarinPh/function-generator
fb634a93ca05dccac890a7e56b21b8feaf6853aa
[ "MIT" ]
null
null
null
Model_Output_Function.py
PoomarinPh/function-generator
fb634a93ca05dccac890a7e56b21b8feaf6853aa
[ "MIT" ]
null
null
null
def outputFunction(X,Y): return 2*X+3*Y
21.5
24
0.674419
742e476bfaad381d08ed63659263054ad2069351
19,412
py
Python
easyTCP2/Core/Decorators.py
dsal3389/easyTCP2
f595442c9e56e36cbc067df95675f4fa1f7b889f
[ "MIT" ]
1
2019-03-28T02:10:52.000Z
2019-03-28T02:10:52.000Z
easyTCP2/Core/Decorators.py
dsal3389/easyTCP2
f595442c9e56e36cbc067df95675f4fa1f7b889f
[ "MIT" ]
null
null
null
easyTCP2/Core/Decorators.py
dsal3389/easyTCP2
f595442c9e56e36cbc067df95675f4fa1f7b889f
[ "MIT" ]
null
null
null
import asyncio, logging from ..Exceptions import ClientExceptions logger = logging.getLogger("Decorator") class BASE_DECORATOR(object): def __init__(self, parent:object, *args, **kwargs): self.parent = parent self.args = args self.kwargs = kwargs def __call__(self, func...
34.913669
151
0.506079
742e73e6fc2ad8a85adffc37fdb8438c6557db2d
2,392
py
Python
mdrsl/rule_models/mids/model_fitting/mids_fitting_meta_data.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/rule_models/mids/model_fitting/mids_fitting_meta_data.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/rule_models/mids/model_fitting/mids_fitting_meta_data.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
from typing import List, Dict from mdrsl.utils.value_collection import ValueCollector from mdrsl.rule_models.mids.objective_function.mids_objective_function_abstract import AbstractMIDSObjectiveFunction from mdrsl.rule_models.mids.objective_function.mids_objective_function_parameters import ObjectiveFunctionParameter...
46.901961
126
0.802258
742e789733928b6bd2a727f3c69896b97b10fcad
9,421
py
Python
utils/new_version_mm/common/api.py
zengchen1024/developing_util
071ab31b3946eea0e1c982dc5f8b9a3e5231a5f9
[ "Apache-2.0" ]
null
null
null
utils/new_version_mm/common/api.py
zengchen1024/developing_util
071ab31b3946eea0e1c982dc5f8b9a3e5231a5f9
[ "Apache-2.0" ]
null
null
null
utils/new_version_mm/common/api.py
zengchen1024/developing_util
071ab31b3946eea0e1c982dc5f8b9a3e5231a5f9
[ "Apache-2.0" ]
1
2018-09-28T01:52:15.000Z
2018-09-28T01:52:15.000Z
import copy import re from preprocess import find_parameter from preprocess import find_struct from preprocess import preprocess from utils import (fetch_api, underscore) def _retrive_structs(key, all_models): s = all_models[key] r = {key: s} for p in s: dt = p["datatype"] if dt in all_...
28.810398
78
0.566607
742e87c402b0abff7e74ef0752fe7733477e4fd8
1,166
py
Python
python_legacy/others_src/pgu/examples/gui11.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
python_legacy/others_src/pgu/examples/gui11.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
python_legacy/others_src/pgu/examples/gui11.py
garred/only_fighters
55c3cc06884f3226d75a800e1ee79afd2c23aa8b
[ "CC-BY-3.0", "CC0-1.0" ]
null
null
null
import sys sys.path.insert(0, '..') import pygame from pygame.locals import * from pgu import gui _count = 1 # for added items def clear_list(arg): my_list.clear() my_list.resize() my_list.repaint() def remove_list_item(arg): v = my_list.value if v: item = v my_list.remove(ite...
17.402985
75
0.661235
742e9cffed3503526c88daa8ccb74981a8f05ff8
13,676
py
Python
client/tests/local_caching_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
client/tests/local_caching_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
client/tests/local_caching_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2018 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import hashlib import logging import os import sys import tempfile import unittest TEST_DIR = os.path.dirname(os.path.abspa...
35.522078
80
0.66964
742ea7ac889ff601551bf6abf65cffc750f9ca8a
16,066
py
Python
lib/paymentrequest.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
1
2017-02-21T17:52:54.000Z
2017-02-21T17:52:54.000Z
lib/paymentrequest.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
null
null
null
lib/paymentrequest.py
Andymeows/electrum-doge
e5e8c8e3e301cccb53de58445445e9e7fd0e9665
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2014 Thomas Voegtlin # # 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...
33.057613
145
0.62374
742eadc99532e0aa40cfe7f343bfd7c0dd927c37
5,233
py
Python
rally/plugins/openstack/scenarios/quotas/quotas.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/quotas/quotas.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/quotas/quotas.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Kylin Cloud # 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 ...
36.852113
79
0.656411
742eb3ab204a462014184386a84d235befcec0b9
10,669
py
Python
qiskit_acqua/ui/run/_mainview.py
silky/qiskit-acqua
580573d88b65a78494f085f1ed576cf1cbb2e481
[ "Apache-2.0" ]
1
2019-06-27T11:26:57.000Z
2019-06-27T11:26:57.000Z
qiskit_acqua/ui/run/_mainview.py
silky/qiskit-acqua
580573d88b65a78494f085f1ed576cf1cbb2e481
[ "Apache-2.0" ]
null
null
null
qiskit_acqua/ui/run/_mainview.py
silky/qiskit-acqua
580573d88b65a78494f085f1ed576cf1cbb2e481
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
44.26971
103
0.647765
742ec9106b29e061938778a5b30baf376d3f964b
8,218
py
Python
joj/horse/apis/problems.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
6
2020-12-28T07:05:52.000Z
2022-01-16T04:44:02.000Z
joj/horse/apis/problems.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
56
2021-02-02T02:21:52.000Z
2022-03-13T02:39:05.000Z
joj/horse/apis/problems.py
joint-online-judge/horse
ec08ecd0528f6a4fad3fa5f5932aef1495721437
[ "MIT" ]
3
2021-01-28T17:52:58.000Z
2021-12-17T17:42:42.000Z
from typing import List, Optional from uuid import UUID from celery import Celery from fastapi import BackgroundTasks, Depends from loguru import logger from sqlmodel.ext.asyncio.session import AsyncSession from joj.horse import models, schemas from joj.horse.schemas import Empty, StandardListResponse, StandardRespon...
40.284314
86
0.722317
742ecb02337ddfcd0190883308d3780524c5974d
6,153
py
Python
nba_ss_db/db/store.py
jsonchin/nba_stats_scraper_db_storage
33f33d89c5c76db9625f4973db8afdbbd7045263
[ "Apache-2.0" ]
4
2017-11-04T05:03:57.000Z
2022-01-30T13:24:15.000Z
nba_ss_db/db/store.py
jsonchin/nba_stats_scraper_db_storage
33f33d89c5c76db9625f4973db8afdbbd7045263
[ "Apache-2.0" ]
1
2021-06-01T22:05:19.000Z
2021-06-01T22:05:19.000Z
nba_ss_db/db/store.py
jsonchin/nba_stats_scraper_db_storage
33f33d89c5c76db9625f4973db8afdbbd7045263
[ "Apache-2.0" ]
2
2017-11-26T18:59:59.000Z
2018-07-05T18:05:09.000Z
""" Handles the creation of tables and storage into tables. """ from typing import List from .. import db, CONFIG from ..scrape.utils import is_proper_date_format, format_date PROTECTED_COL_NAMES = {'TO'} DATE_QUERY_PARAMS = {'GAME_DATE', 'DATE_TO'} def store_nba_response(data_name: str, nba_response, primary_keys=...
35.16
103
0.700796
742efd5d01c291649706f1711da242d5bf426f85
1,057
py
Python
Class Work/Debugging-Steps-Lab/exercise-1.py
Pondorasti/SPD-2.3
42728c1f2dfc371fb6bdf1ba008c5d41266f2fa8
[ "MIT" ]
null
null
null
Class Work/Debugging-Steps-Lab/exercise-1.py
Pondorasti/SPD-2.3
42728c1f2dfc371fb6bdf1ba008c5d41266f2fa8
[ "MIT" ]
null
null
null
Class Work/Debugging-Steps-Lab/exercise-1.py
Pondorasti/SPD-2.3
42728c1f2dfc371fb6bdf1ba008c5d41266f2fa8
[ "MIT" ]
null
null
null
""" Exercise 1 """ # PART 1: Gather Information # # TODO: Gather information about the source of the error and paste your findings here. E.g.: # - What is the expected vs. the actual output? # - What error message (if any) is there? # - What line number is causing the error? # - What can you deduce about the cause of ...
29.361111
93
0.681173
742f05b0d2d3118ece670b85d7641e000e6826c0
3,656
py
Python
tests/libs/datasets/statistical_areas_test.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
tests/libs/datasets/statistical_areas_test.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
tests/libs/datasets/statistical_areas_test.py
ConsultingMD/covid-data-model
f3d23f98eccca1ce33c7a11ab546e9aab5d0aa4d
[ "MIT" ]
null
null
null
import dataclasses import pytest import pandas as pd from covidactnow.datapublic.common_fields import CommonFields from libs.datasets import statistical_areas from libs.datasets.timeseries import MultiRegionDataset from libs.pipeline import Region from tests.dataset_utils_test import read_csv_and_index_fips_date fro...
39.311828
99
0.696663
742f5c174fb38d1323efefc60bb4b4c1e0b4c39c
107,142
py
Python
tests/test_closing.py
grubles/lightning
3a8dd72396c562095c3fcb0b731f21d320ee9598
[ "MIT" ]
null
null
null
tests/test_closing.py
grubles/lightning
3a8dd72396c562095c3fcb0b731f21d320ee9598
[ "MIT" ]
null
null
null
tests/test_closing.py
grubles/lightning
3a8dd72396c562095c3fcb0b731f21d320ee9598
[ "MIT" ]
null
null
null
from fixtures import * # noqa: F401,F403 from flaky import flaky from pyln.client import RpcError from shutil import copyfile from utils import ( only_one, sync_blockheight, wait_for, DEVELOPER, TIMEOUT, account_balance, first_channel_id, basic_fee ) import os import queue import pytest import re import threa...
41.836002
166
0.659732
742f5d9230fc6571a60a94a911b4a12239e7b0ab
2,478
py
Python
experiments/ashvin/vae/fixed3/pusher2d/vae_dense2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/pusher2d/vae_dense2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/vae/fixed3/pusher2d/vae_dense2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
from rlkit.envs.multitask.point2d import MultitaskImagePoint2DEnv from rlkit.envs.multitask.pusher2d import FullPusher2DEnv from rlkit.launchers.arglauncher import run_variants import rlkit.misc.hyperparameter as hyp from rlkit.torch.vae.relabeled_vae_experiment import experiment if __name__ == "__main__": # noin...
31.769231
73
0.596045
742f6e0de8db8a9e0eb684519f76d6c8b0bf6da1
719
py
Python
trac/upgrades/db6.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db6.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
trac/upgrades/db6.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2004-2013 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.com/license.html. # # This software consists ...
27.653846
67
0.671766
742f78647419e0e0d401c36aaa3a064db93e64d5
20,443
py
Python
extensions/mktplace/tests/integration/test_cp_scenarios.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
1
2019-03-18T13:31:11.000Z
2019-03-18T13:31:11.000Z
extensions/mktplace/tests/integration/test_cp_scenarios.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
extensions/mktplace/tests/integration/test_cp_scenarios.py
gabykyei/GC_BlockChain_T_Rec
b72cb483064852d0a60286943ff55233462fea08
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
44.92967
80
0.470723
742f89a161210446a60097d7ef2252703c31e491
2,887
py
Python
retrobiocat_web/app/biocatdb/routes/query_db/contributor_attribution.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/app/biocatdb/routes/query_db/contributor_attribution.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/app/biocatdb/routes/query_db/contributor_attribution.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from flask import render_template, jsonify, session, request, redirect, url_for from retrobiocat_web.app.biocatdb import bp import mongoengine as db from retrobiocat_web.app.biocatdb.functions import sequence_table from retrobiocat_web.mongo.models.biocatdb_models import EnzymeType, Paper, Sequence, Activity from retro...
45.109375
130
0.667821
742f9c5096994f7de9a770b52cea77efb3cd9c4a
929
py
Python
tests/api/conftest.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
tests/api/conftest.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
tests/api/conftest.py
tocororo/cuor
0202970f19b927562f34eb4367ea4f91e08e6706
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2020 UPR. # # CuOR is free software; you can redistribute it and/or modify it under the # terms of the MIT License; see LICENSE file for more details. """Pytest fixtures and plugins for the API application.""" from __future__ import absolute_import, print_function import tem...
25.108108
75
0.720129
742f9d6acd163b44e337567b5bca9119441b8613
2,777
py
Python
tests/models/validators/v1_3_3/jsd_07874a4c4c9aabd9.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_07874a4c4c9aabd9.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/models/validators/v1_3_3/jsd_07874a4c4c9aabd9.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Delete Port assignment for access point in SDA Fabric data model. Copyright (c) 2019 Cisco and/or its affiliates. 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 Soft...
32.670588
79
0.597767
742fb9a614d09fde24586278309eebb9162c4fec
1,966
py
Python
github/methods/activity/starring/list_user_starred_repositories.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:33:37.000Z
2022-03-16T21:33:37.000Z
github/methods/activity/starring/list_user_starred_repositories.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
null
null
null
github/methods/activity/starring/list_user_starred_repositories.py
appheap/PyGithub
2442a2512a708c6463f81d8398fd91090e134df1
[ "MIT" ]
1
2022-03-16T21:28:06.000Z
2022-03-16T21:28:06.000Z
from github.scaffold import Scaffold from github.types import Response from github.utils import utils class ListUserStarredRepositories(Scaffold): """ List repositories starred by a user """ def list_user_starred_repositories( self, *, username: str, so...
28.911765
133
0.517294
742fd55fb201483ef560f78a280b14e0a0c0726a
286
py
Python
torchblocks/metrics/base.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
1
2021-04-26T08:01:25.000Z
2021-04-26T08:01:25.000Z
torchblocks/metrics/base.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
torchblocks/metrics/base.py
deepframwork/TorchBlocks
35f6e1bb83d2b9b05ba914a21fd365cb26ac4a32
[ "MIT" ]
null
null
null
class Metric: def __init__(self): pass def update(self, outputs, target): raise NotImplementedError def value(self): raise NotImplementedError def name(self): raise NotImplementedError def reset(self): pass
17.875
39
0.583916
742ffd6f8ef683a9b4195d9f1ece2cf8edd1f2a7
475
py
Python
Python3/Books/Douson/chapter11/big_score.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter11/big_score.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
Python3/Books/Douson/chapter11/big_score.py
neon1ks/Study
5d40171cf3bf5e8d3a95539e91f5afec54d1daf3
[ "MIT" ]
null
null
null
# Big Score # Demonstrates displaying text on a graphics screen from livewires import games, color games.init(screen_width = 640, screen_height = 480, fps = 50) wall_image = games.load_image("wall.jpg", transparent = False) games.screen.background = wall_image score = games.Text(value = 1756521, ...
25
62
0.623158
7430056b37b8784dfa3cd0dd7b5ca51718a54939
6,232
py
Python
regression_code/storm/npfast/shift.py
sslivkoff/regression_code
1bc48489b55e456057c98b05b1cd290fa92ce0ff
[ "BSD-2-Clause" ]
null
null
null
regression_code/storm/npfast/shift.py
sslivkoff/regression_code
1bc48489b55e456057c98b05b1cd290fa92ce0ff
[ "BSD-2-Clause" ]
null
null
null
regression_code/storm/npfast/shift.py
sslivkoff/regression_code
1bc48489b55e456057c98b05b1cd290fa92ce0ff
[ "BSD-2-Clause" ]
null
null
null
"""shifting operations""" import multiprocessing import warnings import numpy as np try: import numexpr numexpr.set_num_threads(multiprocessing.cpu_count()) numexpr.set_vml_num_threads(multiprocessing.cpu_count()) except ImportError: warnings.warn('numexpr not detected, use `sudo pip install numexpr`...
29.535545
87
0.599166
74300a34c738ce330745c29219dbbb22d6ad0e80
4,180
py
Python
models/unsupervised/rapids_kmeans.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
194
2019-04-23T10:25:13.000Z
2022-03-29T04:19:28.000Z
models/unsupervised/rapids_kmeans.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
50
2019-06-24T20:17:51.000Z
2022-03-16T20:05:37.000Z
models/unsupervised/rapids_kmeans.py
h2oai/driverlessai-recipes
508663ed6bd1961925fcb29fde268493fe40e9e8
[ "Apache-2.0" ]
85
2019-03-27T12:26:43.000Z
2022-01-27T13:15:37.000Z
"""KMeans clustering using RAPIDS.ai""" import datatable as dt import numpy as np from h2oaicore.systemutils import ngpus_vis, IgnoreEntirelyError, config from h2oaicore.transformers import CustomTransformer from h2oaicore.metrics import CustomUnsupervisedScorer from h2oaicore.models import CustomUnsupervisedModel from...
39.433962
116
0.676077
743025023f280e87e3b8581710d4a67aa09ba115
8,009
py
Python
Demo/synthetic_demo_one.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
9
2020-11-20T17:43:36.000Z
2021-02-26T22:18:59.000Z
Demo/synthetic_demo_one.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2021-02-04T13:51:17.000Z
2021-02-04T23:56:07.000Z
Demo/synthetic_demo_one.py
ys7yoo/npglm
98cc040fff8a861e2d7e210fef049207f1714b2a
[ "MIT" ]
1
2020-11-22T19:36:35.000Z
2020-11-22T19:36:35.000Z
import torch import numpy as np import os from GLM.NPGLM import NPGLM from GLM.GLM_Model import GLM_Model_GP, GLM_Model_MAP, GP_Covariate, MAP_Covariate from Utils import utils def main(): expt = 'expt_supp' params_path = 'GLM/GLM_Params/params.json' os.chdir('..') # set up an npglm object npglm...
39.259804
117
0.435011
743031b0d406b10681a96042b6181dc153b5acfa
108
py
Python
src/utils/utils.py
Pin-y-Pon/cool-compiler-2021
c1f6b8b82e5885f336378580e0f2ef15a7b5259d
[ "MIT" ]
1
2022-02-22T04:02:10.000Z
2022-02-22T04:02:10.000Z
src/utils/utils.py
Pin-y-Pon/cool-compiler-2021
c1f6b8b82e5885f336378580e0f2ef15a7b5259d
[ "MIT" ]
null
null
null
src/utils/utils.py
Pin-y-Pon/cool-compiler-2021
c1f6b8b82e5885f336378580e0f2ef15a7b5259d
[ "MIT" ]
null
null
null
def find_column(text, pos): line_start = text.rfind('\n', 0, pos) + 1 return (pos - line_start) + 1
27
45
0.611111
74304857fbf1cfbfc452873c25469e2964d230db
4,207
py
Python
yardstick/benchmark/core/testcase.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/core/testcase.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/core/testcase.py
kkltcjk/kklt
5388eb439616a442dde496ef77ba6b71169369e0
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, ...
36.267241
79
0.564535
74305cf394ab6e2fcd9b6509281e781997b54b3b
7,978
py
Python
utils/duplicated_prodtypes.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
utils/duplicated_prodtypes.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
utils/duplicated_prodtypes.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
import sys import os import argparse import subprocess import jinja2 import yaml import ssg def _create_profile_cache(ssg_root): profile_cache = {} product_list = ['debian9', 'debian10', 'debian11', 'fedora', 'ol7', 'opensuse', 'rhel7', 'sle12', 'sle15', 'ubuntu1604', 'ubuntu1804', 'ubun...
30.219697
182
0.60015
743085a3937f0fcb0cc6a95cbe44b72d37517875
56,334
py
Python
commercialoperator/components/approvals/pdf.py
preranaandure/commercialoperator
235b3e4c7e444e62271433486d724fe345ed21a4
[ "Apache-2.0" ]
null
null
null
commercialoperator/components/approvals/pdf.py
preranaandure/commercialoperator
235b3e4c7e444e62271433486d724fe345ed21a4
[ "Apache-2.0" ]
null
null
null
commercialoperator/components/approvals/pdf.py
preranaandure/commercialoperator
235b3e4c7e444e62271433486d724fe345ed21a4
[ "Apache-2.0" ]
null
null
null
import os from io import BytesIO from datetime import date from reportlab.lib import enums from reportlab.lib.pagesizes import A4 from reportlab.platypus import BaseDocTemplate, PageTemplate, Frame, Paragraph, Spacer, Table, TableStyle, ListFlowable, \ KeepTogether, PageBreak, ListItem from reportlab.lib.styles im...
53.651429
483
0.676767
74308de7f53ba36abc5c0f4c6592fd5f1c6a33b7
3,545
py
Python
plotly/tests/test_optional/optional_utils.py
awesome-archive/plotly.py
0af4ef6abd0fe9907268d266304de630f94cda60
[ "MIT" ]
null
null
null
plotly/tests/test_optional/optional_utils.py
awesome-archive/plotly.py
0af4ef6abd0fe9907268d266304de630f94cda60
[ "MIT" ]
null
null
null
plotly/tests/test_optional/optional_utils.py
awesome-archive/plotly.py
0af4ef6abd0fe9907268d266304de630f94cda60
[ "MIT" ]
null
null
null
from __future__ import absolute_import import numpy as np from plotly.tests.utils import is_num_list from plotly.utils import get_by_path, node_generator # TODO: matplotlib-build-wip from plotly.tools import _matplotlylib_imported if _matplotlylib_imported: import matplotlib # Force matplotlib to not use any...
35.808081
79
0.539915
743090c50adac9028a5f936f53eb438a54505b52
25,707
py
Python
scout/adapter/mongo/variant.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/adapter/mongo/variant.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
scout/adapter/mongo/variant.py
bjhall/scout
ea772cf8d233223e0ec5271f61b95d3afcf719ad
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # stdlib modules import logging import re import pathlib import tempfile from datetime import datetime from pprint import pprint as pp # Third party modules import pymongo from cyvcf2 import VCF from intervaltree import IntervalTree # Local modules from scout.parse.variant.rank_score import ...
35.605263
96
0.563154
7430a2644fa77c311ef145de95454df51f950b90
3,424
py
Python
tests/auth/bluesky_test.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
1
2019-06-06T08:08:11.000Z
2019-06-06T08:08:11.000Z
tests/auth/bluesky_test.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
tests/auth/bluesky_test.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""test sirepo.bluesky :copyright: Copyright (c) 2018 Bivio Software, Inc. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function import pytest pytest.importorskip('srwl_bl') def test_auth_hash(monk...
30.035088
105
0.668516
7430dcdd308ae4e151b1378141cf11b34ee6ed55
14,233
py
Python
src/py42/services/users.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/services/users.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
src/py42/services/users.py
ryanvanasse/py42
4664c45d41c32f48323b552b7b11f885c055bff3
[ "MIT" ]
null
null
null
from py42 import settings from py42._compat import quote from py42.exceptions import Py42BadRequestError from py42.exceptions import Py42InternalServerError from py42.exceptions import Py42OrgNotFoundError from py42.exceptions import Py42UserAlreadyExistsError from py42.exceptions import Py42UsernameMustBeEmailError fr...
36.968831
127
0.606056
7430f16a862f334357e6365c29a40ebbb33960fa
5,833
py
Python
credoscript/models/atom.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
credoscript/models/atom.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
credoscript/models/atom.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
from sqlalchemy.orm import backref, relationship from sqlalchemy.sql.expression import or_ from sqlalchemy.ext.hybrid import hybrid_method from credoscript import Base, BaseQuery, schema from credoscript.mixins import PathMixin from credoscript.support.vector import Vector class Atom(Base, PathMixin): """ Rep...
29.0199
168
0.595577
7430f8d1875992d0fbde7f3094133ac716157231
489
py
Python
govini_site_crawler/dod/models/dod_result.py
crherman7/govini-site-crawler
c8ca026a3af241a2740ed77ed15889dbb3839d38
[ "MIT" ]
null
null
null
govini_site_crawler/dod/models/dod_result.py
crherman7/govini-site-crawler
c8ca026a3af241a2740ed77ed15889dbb3839d38
[ "MIT" ]
null
null
null
govini_site_crawler/dod/models/dod_result.py
crherman7/govini-site-crawler
c8ca026a3af241a2740ed77ed15889dbb3839d38
[ "MIT" ]
null
null
null
class DoDResult(object): def __init__(self, **kwargs): self.program_title = kwargs.get('program_title', None) self.agency = kwargs.get('agency', None) self.fiscal_year = kwargs.get('fiscal_year', None) self.budget_title = kwargs.get('budget_title', None) self.program_number ...
44.454545
76
0.674847
7430fb9bd287a7e2c7fac1fd453442d17a4f9ac5
3,269
py
Python
get_kernel_feature_area/npy2txt.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
get_kernel_feature_area/npy2txt.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
get_kernel_feature_area/npy2txt.py
Roxbili/kws-demo
7e0674f1407572fc8f148293b23fa20a5164bc5e
[ "Apache-2.0" ]
null
null
null
#-*- encoding: utf-8 -*- import numpy as np import os, sys # 设置信息全打印 np.set_printoptions(threshold=np.inf) log_dir = 'get_kernel_feature_area/log' layers_output_dir = os.path.join(log_dir, 'output') layers_input_dir = os.path.join(log_dir, 'input') layers_output_before_bias_dir = os.path.join(log_dir, 'output_before...
38.011628
150
0.636586
743103c8e490e588e168b8fb380f14e3bbff5a6a
3,890
py
Python
test/prim_test.py
KIodine/pygraph
68f0975cfc130fe6bfd8a36dd347efc57acc0799
[ "MIT" ]
null
null
null
test/prim_test.py
KIodine/pygraph
68f0975cfc130fe6bfd8a36dd347efc57acc0799
[ "MIT" ]
1
2021-03-30T04:03:33.000Z
2021-03-30T08:19:29.000Z
test/prim_test.py
KIodine/pygraph
68f0975cfc130fe6bfd8a36dd347efc57acc0799
[ "MIT" ]
1
2021-03-30T04:15:08.000Z
2021-03-30T04:15:08.000Z
import unittest from pygraph.prim import min_span_tree import pygraph class TestPrimMST(unittest.TestCase): def test_fixed(self): g = pygraph.Graph() # --- vertices g.AddVertex('a') g.AddVertex('b') g.AddVertex('c') g.AddVertex('d') g.AddVerte...
30.155039
80
0.505398
743136280d8f2b283784c54f5322280cfd18584a
4,757
py
Python
haystack/utils.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
1
2021-08-04T09:06:43.000Z
2021-08-04T09:06:43.000Z
haystack/utils.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
null
null
null
haystack/utils.py
fossabot/haystack
785b257fd33f7d092c4414415c5a2552db81fe51
[ "Apache-2.0" ]
1
2021-04-23T14:59:37.000Z
2021-04-23T14:59:37.000Z
import json from collections import defaultdict from itertools import islice import logging import pprint import pandas as pd from typing import Dict, Any, List from haystack.document_store.sql import DocumentORM import subprocess import time logger = logging.getLogger(__name__) def launch_es(): # Start an Elas...
32.806897
119
0.599748
7431401041ec268497b34f5cfb534f7319303ed9
3,894
py
Python
usos/web_driver.py
mkochanowski/USOSweb-automated
6888bf40425dd2d2a0816953e4dfaa18ad3597e1
[ "MIT" ]
8
2018-06-26T21:57:14.000Z
2020-08-09T20:52:59.000Z
usos/web_driver.py
mkochanowski/USOSweb-automated
6888bf40425dd2d2a0816953e4dfaa18ad3597e1
[ "MIT" ]
null
null
null
usos/web_driver.py
mkochanowski/USOSweb-automated
6888bf40425dd2d2a0816953e4dfaa18ad3597e1
[ "MIT" ]
1
2019-09-30T12:13:05.000Z
2019-09-30T12:13:05.000Z
import os import logging from selenium import webdriver from datetime import datetime logging = logging.getLogger(__name__) class SeleniumDriver: """Provides a layer of abstraction to obtain a preconfigured object of a Selenium-compatible web driver. :param headless: whether the driver ...
32.722689
74
0.608115
743144894b77253a9f4a1bb3db6f465332b3cd51
3,275
py
Python
androwarn/search/malicious_behaviours/device_settings.py
ririhedou/dr_droid
6d7dec891fa5a6f6773f9ca97f7cbf57d790b5ca
[ "Apache-2.0" ]
35
2016-10-14T14:02:14.000Z
2020-09-23T01:16:34.000Z
androwarn/search/malicious_behaviours/device_settings.py
ririhedou/dr_droid
6d7dec891fa5a6f6773f9ca97f7cbf57d790b5ca
[ "Apache-2.0" ]
5
2016-10-14T05:13:37.000Z
2017-09-25T18:14:51.000Z
androwarn/search/malicious_behaviours/device_settings.py
ririhedou/dr_droid
6d7dec891fa5a6f6773f9ca97f7cbf57d790b5ca
[ "Apache-2.0" ]
18
2016-10-14T14:02:16.000Z
2021-03-06T06:13:29.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of Androwarn. # # Copyright (C) 2012, Thomas Debize <tdebize at mail.com> # All rights reserved. # # Androwarn 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 Fr...
33.080808
189
0.747786
743167eefdb44a3b6eee6a2a040af8f38ef082fd
4,028
py
Python
alipay/aop/api/request/AlipayIserviceCcmAgentSchedulelogQueryRequest.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/request/AlipayIserviceCcmAgentSchedulelogQueryRequest.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/request/AlipayIserviceCcmAgentSchedulelogQueryRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayIserviceCcmAgentSchedulelogQueryModel import AlipayIserviceCcmAgentSchedulelogQueryModel class AlipayIserviceCcmAgentSchedulel...
27.77931
148
0.649454
74317afb03de327068764c4de542f81afc23f1cc
4,022
py
Python
alipay/aop/api/request/AlipayBusinessOrderOrderinfoHotelSyncRequest.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/request/AlipayBusinessOrderOrderinfoHotelSyncRequest.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/request/AlipayBusinessOrderOrderinfoHotelSyncRequest.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.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBusinessOrderOrderinfoHotelSyncModel import AlipayBusinessOrderOrderinfoHotelSyncModel class AlipayBusinessOrderOrderinfoHotel...
27.737931
148
0.648931
74317fa34c77795131c1a14d9bcfb96da709a684
16,419
py
Python
app/api/v1/resources/ussd_scripts.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
app/api/v1/resources/ussd_scripts.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
app/api/v1/resources/ussd_scripts.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" DRS healthcheck resource module. Copyright (c) 2018-2020 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: Redistrib...
41.357683
844
0.587673
7431873c6eaa0287b29f5cf970dbae728e4048a2
7,495
py
Python
example/train_universal_transformer.py
tonywenuon/keras_dialogue_generation_toolkit
75d82e7a281cd17a70bd9905fcebf2b906a6deec
[ "Apache-1.1" ]
22
2019-11-28T03:05:48.000Z
2021-08-04T07:40:03.000Z
example/train_universal_transformer.py
tonywenuon/keras_dialogue_generation_toolkit
75d82e7a281cd17a70bd9905fcebf2b906a6deec
[ "Apache-1.1" ]
4
2021-01-21T03:51:23.000Z
2022-02-10T05:05:17.000Z
example/train_universal_transformer.py
tonywenuon/keras_dialogue_generation_toolkit
75d82e7a281cd17a70bd9905fcebf2b906a6deec
[ "Apache-1.1" ]
2
2020-01-22T09:39:19.000Z
2021-04-05T10:04:36.000Z
import os, sys, time, math project_path = os.path.sep.join(os.path.abspath(__file__).split(os.path.sep)[:-2]) if project_path not in sys.path: sys.path.append(project_path) import tensorflow as tf import keras import argparse import numpy as np from keras.callbacks import ModelCheckpoint, EarlyStopping, LearningR...
42.106742
117
0.614543
74319184b6c0a3bb0bc1f085ce63226132638c4a
32,052
py
Python
tests/outlineCompiler_test.py
simoncozens/ufo2ft
910762498441c8480d6512f613146631de093dce
[ "MIT" ]
1
2015-11-03T07:49:22.000Z
2015-11-03T07:49:22.000Z
tests/outlineCompiler_test.py
simoncozens/ufo2ft
910762498441c8480d6512f613146631de093dce
[ "MIT" ]
null
null
null
tests/outlineCompiler_test.py
simoncozens/ufo2ft
910762498441c8480d6512f613146631de093dce
[ "MIT" ]
null
null
null
import logging import os import pytest from cu2qu.ufo import font_to_quadratic from fontTools.ttLib import TTFont from fontTools.ttLib.tables._g_l_y_f import USE_MY_METRICS from ufo2ft import ( compileInterpolatableOTFsFromDS, compileInterpolatableTTFs, compileInterpolatableTTFsFromDS, compileOTF, ...
32.474164
88
0.56218
74319f978cfd7a0d5e3a9fbaec6fc77d71d24a0e
272
py
Python
psy/client/ui.py
aharabara/psyduck
e9e8d0b6465d5232f3787dc3988f09916bb93e38
[ "MIT" ]
1
2018-09-22T10:52:03.000Z
2018-09-22T10:52:03.000Z
psy/client/ui.py
aharabara/psyduck
e9e8d0b6465d5232f3787dc3988f09916bb93e38
[ "MIT" ]
2
2018-10-20T19:15:54.000Z
2018-10-21T08:17:56.000Z
psy/client/ui.py
aharabara/psyduck
e9e8d0b6465d5232f3787dc3988f09916bb93e38
[ "MIT" ]
null
null
null
import npyscreen class MessagesHistory(npyscreen.BoxTitle): _contained_widget = npyscreen.Pager class Contacts(npyscreen.BoxTitle): _contained_widget = npyscreen.SelectOne class MessageBox(npyscreen.BoxTitle): _contained_widget = npyscreen.MultiLineEdit
19.428571
47
0.805147
7431c06cfc6c4a663dd16af08f2627a4c3af3f1f
913
py
Python
atom/nucleus/python/test/test_business_details_vo.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_business_details_vo.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/test/test_business_details_vo.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Hydrogen Nucleus API The Hydrogen Nucleus API # noqa: E501 OpenAPI spec version: 1.9.5 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import nucleus_api from nu...
22.268293
90
0.711939
7431f67e654094bf5ffa18679422795e2f8d570d
3,624
py
Python
vcspull/cli.py
gitter-badger/vcspull
9584c6d40fca8e9f36970894ce620a891723d9b5
[ "MIT" ]
null
null
null
vcspull/cli.py
gitter-badger/vcspull
9584c6d40fca8e9f36970894ce620a891723d9b5
[ "MIT" ]
null
null
null
vcspull/cli.py
gitter-badger/vcspull
9584c6d40fca8e9f36970894ce620a891723d9b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """CLI utilities for vcspull. vcspull.cli ~~~~~~~~~~~ """ from __future__ import absolute_import, print_function import logging import sys import click from libvcs.shortcuts import create_repo_from_pip_url from .__about__ import __version__ from .cli_defaultgroup import DefaultGroup from ....
27.044776
84
0.661976
743223010f04997e28ab22510e875f31b2602dfd
202
py
Python
bittorrent/controller/handler/interested.py
zealous-hunter/BitTorrrent_Peer
cdc8b9fa3ef97ade9ea92d20396ec6195d8ff9b8
[ "MIT" ]
null
null
null
bittorrent/controller/handler/interested.py
zealous-hunter/BitTorrrent_Peer
cdc8b9fa3ef97ade9ea92d20396ec6195d8ff9b8
[ "MIT" ]
null
null
null
bittorrent/controller/handler/interested.py
zealous-hunter/BitTorrrent_Peer
cdc8b9fa3ef97ade9ea92d20396ec6195d8ff9b8
[ "MIT" ]
null
null
null
from .base import Handler from bittorrent.protocol.message import Unchoke class InterestedHandler(Handler): def messageReceived(self, message:Unchoke, protocol): protocol.interested = True
28.857143
57
0.782178
74323c3c7bcdb7b0adc3e0c5bf35281dddbc6f4c
38
py
Python
poold/environment/__init__.py
geflaspohler/poold
4ddd085597b85e8c737b2f904f504437f728513b
[ "MIT" ]
7
2021-08-02T15:31:01.000Z
2022-02-11T14:36:46.000Z
poold/environment/__init__.py
geflaspohler/poold
4ddd085597b85e8c737b2f904f504437f728513b
[ "MIT" ]
null
null
null
poold/environment/__init__.py
geflaspohler/poold
4ddd085597b85e8c737b2f904f504437f728513b
[ "MIT" ]
1
2021-07-15T23:05:02.000Z
2021-07-15T23:05:02.000Z
from .environment import Environment
19
37
0.842105
74324cad97565eb86ef76bf2854f9087ced0d953
21,419
py
Python
pef/imports/pefdocs.py
ardhendugarai/security-tools
ba2f9dff1a271642b69a854a86d5b4d9466b0f94
[ "MIT" ]
1
2019-06-13T13:43:22.000Z
2019-06-13T13:43:22.000Z
pef/imports/pefdocs.py
ardhendugarai/security-tools
ba2f9dff1a271642b69a854a86d5b4d9466b0f94
[ "MIT" ]
null
null
null
pef/imports/pefdocs.py
ardhendugarai/security-tools
ba2f9dff1a271642b69a854a86d5b4d9466b0f94
[ "MIT" ]
null
null
null
# Reference(S) for pef.py # doc dipslayed: # 1st element - description # 2nd element - syntax # 3rd element - possible vulnerability classes exploitableFunctionsDesc = { "system()": [ "Allows to execute system command passed as an argument", "system ( string $command [, int &$return_var ] ) : strin...
44.345756
269
0.596713
74324e44c41ffb53de34a7c1e4a35a0d19dd7da7
3,302
py
Python
hyperbolic-rs/rudders/models/complex.py
LeoLaugier/recommendation-rudders
159d9433885cfe8e324709a51dccde2243db1182
[ "Apache-2.0" ]
9
2020-05-04T08:12:50.000Z
2021-06-06T20:37:53.000Z
hyperbolic-rs/rudders/models/complex.py
LeoLaugier/recommendation-rudders
159d9433885cfe8e324709a51dccde2243db1182
[ "Apache-2.0" ]
4
2020-07-02T11:17:48.000Z
2021-06-25T12:21:14.000Z
hyperbolic-rs/rudders/models/complex.py
LeoLaugier/recommendation-rudders
159d9433885cfe8e324709a51dccde2243db1182
[ "Apache-2.0" ]
5
2020-10-01T19:58:29.000Z
2021-07-16T02:59:23.000Z
# Copyright 2017 The Rudders Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
44.621622
117
0.674743
74326ac018f8ed31ea18fc36fda09f4565566237
19,871
py
Python
portal/libs/whoosh/searching.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
8
2020-12-15T17:11:08.000Z
2021-12-13T22:08:33.000Z
portal/libs/whoosh/searching.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
28
2020-12-15T17:34:03.000Z
2022-02-01T04:09:10.000Z
portal/libs/whoosh/searching.py
Artis-Physis/utopia-cms
5cb8d941d0b2df53fddc566a52e9d3baee4a007e
[ "BSD-3-Clause" ]
7
2020-12-15T19:59:17.000Z
2021-11-24T16:47:06.000Z
#=============================================================================== # Copyright 2007 Matt Chaput # # 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...
39.50497
98
0.584269
74327fc0daa7566fd1c074358aea453c2d27d244
802
py
Python
main_script.py
kousokujin/keras-resnet
9b94f423ec3325ecbb76fa7af31688089b8c3332
[ "MIT" ]
null
null
null
main_script.py
kousokujin/keras-resnet
9b94f423ec3325ecbb76fa7af31688089b8c3332
[ "MIT" ]
null
null
null
main_script.py
kousokujin/keras-resnet
9b94f423ec3325ecbb76fa7af31688089b8c3332
[ "MIT" ]
null
null
null
import numpy as np import sklearn.metrics as metrics import json import os from model_module import ModelBuilder from ResNetTester_cls import ResNetTester,make,check_run from Datasets import (cifer10_datasets,cifer100_datasets,mnist_dataset) global_name = "20191021" relu_option = False epochs = 2 split = 1.0 batch_s...
24.30303
71
0.736908
7432b50104fb7c515e5ef439109726d66576ddce
9,475
py
Python
skgstat/binning.py
rhugonnet/scikit-gstat
a142ca13aa3b048c46613d1247396c80c32a8145
[ "MIT" ]
null
null
null
skgstat/binning.py
rhugonnet/scikit-gstat
a142ca13aa3b048c46613d1247396c80c32a8145
[ "MIT" ]
null
null
null
skgstat/binning.py
rhugonnet/scikit-gstat
a142ca13aa3b048c46613d1247396c80c32a8145
[ "MIT" ]
null
null
null
import numpy as np from sklearn.cluster import KMeans, AgglomerativeClustering from scipy.optimize import minimize, OptimizeWarning from skgstat.util import shannon_entropy def even_width_lags(distances, n, maxlag): """Even lag edges Calculate the lag edges for a given amount of bins using the same lag ...
31.167763
91
0.655726
7432c9dfa67703f33012704f219d654a230b8e23
2,545
py
Python
savu/data/data_structures/data_types/map_3dto4d_h5.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/data/data_structures/data_types/map_3dto4d_h5.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/data/data_structures/data_types/map_3dto4d_h5.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source 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 applicable law or agreed t...
34.391892
83
0.652652
7432e4bb49d4568865573f1b50e46095c56f6984
232
py
Python
setup.py
epg-apg/lfs-checkdigit-api
17ca1480e76e2d902f7a712b4f5bc1cf419fcb86
[ "MIT" ]
null
null
null
setup.py
epg-apg/lfs-checkdigit-api
17ca1480e76e2d902f7a712b4f5bc1cf419fcb86
[ "MIT" ]
null
null
null
setup.py
epg-apg/lfs-checkdigit-api
17ca1480e76e2d902f7a712b4f5bc1cf419fcb86
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='lfscheckdigitapi', version='1.0.0', packages=find_packages(), include_package_data=True, zip_safe=False, install_requires=[ 'flask', ], )
17.846154
43
0.655172
7432f33f2e12c6db414eb98e5286ce427a130659
1,042
py
Python
lbutils/lbutils/model_utils.py
akashphaniteja/Bio-BERT
b714a9bd9d67c8f9be6c0c58dd19709cd78542d5
[ "CC0-1.0" ]
null
null
null
lbutils/lbutils/model_utils.py
akashphaniteja/Bio-BERT
b714a9bd9d67c8f9be6c0c58dd19709cd78542d5
[ "CC0-1.0" ]
null
null
null
lbutils/lbutils/model_utils.py
akashphaniteja/Bio-BERT
b714a9bd9d67c8f9be6c0c58dd19709cd78542d5
[ "CC0-1.0" ]
null
null
null
import json import numpy as np import pandas as pd from collections import defaultdict from lbutils.data_utils import dtypes def process_jsonl(json_file): """ Converts model output to dataframe Parameters ---------- json_file : str model output json file Returns ------- d...
24.809524
71
0.574856
74330108580065ec52ba8a6a4587292fa54239e8
4,357
py
Python
Meadow/mig_av/mig_av/meadow_parser_funcs.py
nulib/nul-rdc-scripts
ed76576335950d0c4c46c68e103ac42613d30441
[ "MIT" ]
null
null
null
Meadow/mig_av/mig_av/meadow_parser_funcs.py
nulib/nul-rdc-scripts
ed76576335950d0c4c46c68e103ac42613d30441
[ "MIT" ]
7
2021-07-08T15:51:47.000Z
2022-03-25T22:05:04.000Z
Meadow/mig_av/mig_av/meadow_parser_funcs.py
nulib/nul-rdc-scripts
ed76576335950d0c4c46c68e103ac42613d30441
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re def get_label(role_dict, filename, inventory_label): #run through each key in role_dict #if it matches on extension, it should be removed and passed to the next check label = None for i in role_dict: if not label: if role_dict[i]['type'] == 'extensi...
38.219298
91
0.593528
74331660f2e834423ff5dcfc930ff6b6d3a41969
4,626
py
Python
powerapi/database/file_db.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/file_db.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/file_db.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
31.04698
80
0.659101
743373583cbbb4bfeaca69442e3e7c530be03c63
1,356
py
Python
doc/base_dsdevs.py
MISTCARRYYOU/PythonPDEVS
53cad29832b3c489ab037bdc487affcbf1e3f408
[ "Apache-2.0" ]
1
2018-09-19T14:42:28.000Z
2018-09-19T14:42:28.000Z
doc/base_dsdevs.py
MISTCARRYYOU/PythonPDEVS
53cad29832b3c489ab037bdc487affcbf1e3f408
[ "Apache-2.0" ]
null
null
null
doc/base_dsdevs.py
MISTCARRYYOU/PythonPDEVS
53cad29832b3c489ab037bdc487affcbf1e3f408
[ "Apache-2.0" ]
1
2021-01-14T12:21:35.000Z
2021-01-14T12:21:35.000Z
from pypdevs.DEVS import AtomicDEVS, CoupledDEVS from pypdevs.simulator import Simulator class Root(CoupledDEVS): def __init__(self): CoupledDEVS.__init__(self, "Root") self.models = [] # First model self.models.append(self.addSubModel(Generator())) # Second model se...
29.478261
72
0.643068
7433a49eb81bb3f752206cd30b1e675e09070da5
562
py
Python
botx/models/status.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
13
2021-01-21T12:43:10.000Z
2022-03-23T11:11:59.000Z
botx/models/status.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
259
2020-02-26T08:51:03.000Z
2022-03-23T11:08:36.000Z
botx/models/status.py
ExpressApp/pybotx
97c8b1ce5d45a05567ed01d545cb43174a2dcbb9
[ "MIT" ]
5
2019-12-02T16:19:22.000Z
2021-11-22T20:33:34.000Z
"""Module of model for status recipient.""" from typing import Optional from uuid import UUID from botx import ChatTypes from botx.models.base import BotXBaseModel class StatusRecipient(BotXBaseModel): """Model of recipients in status request.""" #: bot that request status bot_id: UUID #: user that...
19.37931
48
0.69395
7433d933b97e7e42632363dee29d19ca5049006a
27,667
py
Python
sleap/nn/architectures/encoder_decoder.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/nn/architectures/encoder_decoder.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
sleap/nn/architectures/encoder_decoder.py
preeti98/sleap
203c3a03c0c54f8dab242611d9a8d24595e98081
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Generic encoder-decoder fully convolutional backbones. This module contains building blocks for creating encoder-decoder architectures of general form. The encoder branch of the network forms the initial multi-scale feature extraction via repeated blocks of convolutions and pooling steps. The decoder branch is th...
40.806785
88
0.626089
7433e3805a601a7f74d3c19746dcba45990f2c96
2,648
py
Python
fedml_core/distributed/communication/message.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
fedml_core/distributed/communication/message.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
fedml_core/distributed/communication/message.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
import json import sys class Message(object): MSG_ARG_KEY_OPERATION = "operation" MSG_ARG_KEY_TYPE = "msg_type" MSG_ARG_KEY_SENDER = "sender" MSG_ARG_KEY_RECEIVER = "receiver" MSG_OPERATION_SEND = "send" MSG_OPERATION_RECEIVE = "receive" MSG_OPERATION_BROADCAST = "broadcast" MSG_OPER...
30.436782
75
0.690332
7433f2b3411079bf5c801733dba927b68cc23dd1
3,034
py
Python
contrib/go/tests/python/pants_test/contrib/go/subsystems/test_go_distribution.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/go/tests/python/pants_test/contrib/go/subsystems/test_go_distribution.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/go/tests/python/pants_test/contrib/go/subsystems/test_go_distribution.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 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 import unittest from pants.util.contextutil import environment_as from pants.u...
42.732394
100
0.723467
7433fcbfcf257128a00080c3e41755cec1865c1a
2,923
py
Python
deepdefacer/defacer_utils.py
josai/DeepDeface
b879cd84b6f6316c25de71b67eef85c6fe036276
[ "MIT" ]
null
null
null
deepdefacer/defacer_utils.py
josai/DeepDeface
b879cd84b6f6316c25de71b67eef85c6fe036276
[ "MIT" ]
null
null
null
deepdefacer/defacer_utils.py
josai/DeepDeface
b879cd84b6f6316c25de71b67eef85c6fe036276
[ "MIT" ]
null
null
null
import numpy as np import nibabel as nib try: from keras import backend as K from keras.models import * from tensorflow.python.client import device_lib except: print('---------------------------------------------------------------------------------------------------------------------------------------'...
35.216867
148
0.577489
74341c6ba26ce4d90290951998fae3dace56d644
9,669
py
Python
lib/matplotlib/tests/test_rcparams.py
yuvallanger/matplotlib
e0020d318a9a9685594c6bff4631f74599321459
[ "MIT", "BSD-3-Clause" ]
8
2017-04-11T08:55:30.000Z
2022-03-25T04:31:26.000Z
lib/matplotlib/tests/test_rcparams.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/tests/test_rcparams.py
epgauss/matplotlib
c9898ea9a30c67c579ab27cd61b68e2abae0fb0e
[ "MIT", "BSD-3-Clause" ]
14
2015-10-05T04:15:46.000Z
2020-06-11T18:06:02.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import io import os import sys import warnings import matplotlib as mpl from matplotlib.tests import assert_str_equal from matplotlib.testing.decorators import cleanup, knownfailureif from nose.too...
36.486792
95
0.550729
74342e9ac646166384a26e174974de9cbb998b1c
8,349
py
Python
django/db/backends/postgresql_psycopg2/base.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
django/db/backends/postgresql_psycopg2/base.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
django/db/backends/postgresql_psycopg2/base.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
""" PostgreSQL database backend for Django. Requires psycopg 2: http://initd.org/projects/psycopg2 """ import sys from django.db import utils from django.db.backends import * from django.db.backends.signals import connection_created from django.db.backends.postgresql_psycopg2.operations import DatabaseOperations from...
38.474654
105
0.653132
74343d07c739a9a1934cd81ccaceacc1864c9e28
751
py
Python
learn_vocab.py
travisbrady/word2phrase
1bf3eec8e4c1df0cceb693b2efeb102cd3b9b3cc
[ "Apache-2.0" ]
97
2015-01-24T21:55:34.000Z
2021-12-17T16:47:30.000Z
learn_vocab.py
ogulcangok/word2phrase
a51cdbb76ffd51b690ef640e00a37ff5e70a9ab1
[ "Apache-2.0" ]
null
null
null
learn_vocab.py
ogulcangok/word2phrase
a51cdbb76ffd51b690ef640e00a37ff5e70a9ab1
[ "Apache-2.0" ]
21
2015-10-19T00:12:23.000Z
2021-03-22T17:06:05.000Z
''' Quick script to learn the vocab and dump it out as a file File format is strange and non-standard SORRY Format: First row = train_words : Long All other rows = {"w": "word", "c": 123} ''' from sys import stdin, argv from collections import Counter from json import dumps MAX_VOCAB = 10000000 def main(): ...
22.757576
62
0.619174
74344950faedeb545b45034ea4e217d24c88e81f
180
py
Python
path_unitest.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
3
2021-07-03T17:27:44.000Z
2021-09-26T20:48:19.000Z
path_unitest.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
null
null
null
path_unitest.py
sillybun/pyctlib
d4c8b191fd270923ad73924760847f2bdbdd9116
[ "MIT" ]
1
2022-03-08T08:54:03.000Z
2022-03-08T08:54:03.000Z
import sys import os from sys import getsizeof sys.path.append(os.path.abspath(".")) import pyctlib from zytlib.filemanager import path p = path(".") t = p / "Log" / "test.log"
15
37
0.7
743455cec7597d9ea30547bebfad0f128ce7a887
13,942
py
Python
packages/main/src/RPA/Archive.py
FormulatedAutomation/rpaframework
7704d20540fe5ada0c10bd48605afb5d4697b497
[ "Apache-2.0" ]
null
null
null
packages/main/src/RPA/Archive.py
FormulatedAutomation/rpaframework
7704d20540fe5ada0c10bd48605afb5d4697b497
[ "Apache-2.0" ]
null
null
null
packages/main/src/RPA/Archive.py
FormulatedAutomation/rpaframework
7704d20540fe5ada0c10bd48605afb5d4697b497
[ "Apache-2.0" ]
1
2021-02-11T21:00:11.000Z
2021-02-11T21:00:11.000Z
from datetime import datetime from fnmatch import fnmatch import logging import os import os.path from pathlib import Path import tarfile from typing import Any import zipfile def convert_date(timestamp): if isinstance(timestamp, tuple): d = datetime( year=timestamp[0], month=times...
37.579515
107
0.579616
74346e1ee67211c73cd97d6c0c42da3fb6fddab7
611
py
Python
test/unittests/test_CNumPerv.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
null
null
null
test/unittests/test_CNumPerv.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
6
2018-07-24T22:46:28.000Z
2018-07-29T19:13:09.000Z
test/unittests/test_CNumPerv.py
mudkipmaster/gwlf-e
9e058445537dd32d1916f76c4b73ca64261771cd
[ "Apache-2.0" ]
1
2018-07-24T18:22:01.000Z
2018-07-24T18:22:01.000Z
import numpy as np from VariableUnittest import VariableUnitTest from gwlfe.MultiUse_Fxns.Runoff import CNumPerv class TestCNumPerv(VariableUnitTest): # @skip("not ready") def test_CNumPerv(self): z = self.z np.testing.assert_array_almost_equal( CNumPerv.CNumPerv_f(z.NYrs, z.Days...
35.941176
117
0.631751
7434a2ddde4d0fbe677f0d24590efd319990e98d
499
py
Python
office365/sharepoint/userprofiles/userProfilePropertiesForUser.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/userprofiles/userProfilePropertiesForUser.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
office365/sharepoint/userprofiles/userProfilePropertiesForUser.py
wreiner/Office365-REST-Python-Client
476bbce4f5928a140b4f5d33475d0ac9b0783530
[ "MIT" ]
null
null
null
from office365.runtime.client_object import ClientObject from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation class UserProfilePropertiesForUser(ClientObject): def __init__(self, context, account_name, property_names): params = { "accountName": account_na...
35.642857
119
0.763527
7434aee9c5f9317ec796338ce78e99eb7ec95d0d
6,992
py
Python
python/tvm/arith.py
Coderx7/incubator-tvm
88d0f5cceb7f7cc481b6b9724368e816aa71dffd
[ "Apache-2.0" ]
1
2020-04-17T07:11:59.000Z
2020-04-17T07:11:59.000Z
python/tvm/arith.py
Coderx7/incubator-tvm
88d0f5cceb7f7cc481b6b9724368e816aa71dffd
[ "Apache-2.0" ]
null
null
null
python/tvm/arith.py
Coderx7/incubator-tvm
88d0f5cceb7f7cc481b6b9724368e816aa71dffd
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
26.687023
80
0.601974
7434c7b33e1bcffac8c39de23b7c26a99d96afa3
1,205
py
Python
utils/viz_bin.py
alvinwan/background-agnostic-finger-detection
54ba3fb68d27f250cf856e459258bf44c98e5290
[ "MIT" ]
13
2018-03-12T06:30:24.000Z
2021-12-31T06:40:14.000Z
utils/viz_bin.py
alvinwan/background-agnostic-finger-detection
54ba3fb68d27f250cf856e459258bf44c98e5290
[ "MIT" ]
1
2021-10-12T23:10:21.000Z
2021-10-12T23:10:21.000Z
utils/viz_bin.py
alvinwan/background-agnostic-finger-detection
54ba3fb68d27f250cf856e459258bf44c98e5290
[ "MIT" ]
3
2019-05-21T05:54:28.000Z
2021-12-31T06:40:15.000Z
from train import IndexFingerBinDataset from train import get_index_finger_bin_predictor from train import bin_to_position import numpy as np import torch import cv2 GREEN = (0, 255, 0) RED = (0, 0, 255) predictor = get_index_finger_bin_predictor() testset = IndexFingerBinDataset('data/X_test.npy', 'data/Y_test.npy')...
29.390244
85
0.684647
7434d1090cf9077d0cdb85ae97b077f1729ccccb
27,769
py
Python
QUANTAXIS/QAData/QADataStruct.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2018-12-10T13:11:22.000Z
2018-12-10T13:11:22.000Z
QUANTAXIS/QAData/QADataStruct.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
null
null
null
QUANTAXIS/QAData/QADataStruct.py
simplezhang57/QUANTAXIS
0fab23ee3cc4048a30b5eed3c311a5c9cdce8110
[ "MIT" ]
1
2021-03-15T15:29:05.000Z
2021-03-15T15:29:05.000Z
# coding:utf-8 # # The MIT License (MIT) # # Copyright (c) 2016-2018 yutiansut/QUANTAXIS # # 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 th...
26.446667
191
0.576974
7434d32757926d010a482c3b4a390d944beb6f20
189
py
Python
ceacoest/kalman/__init__.py
dimasad/ceacoest
4a5eb946e118145d054cac785cc8b4d834c28192
[ "MIT" ]
3
2018-12-12T21:11:30.000Z
2020-08-03T02:26:03.000Z
ceacoest/kalman/__init__.py
dimasad/ceacoest
4a5eb946e118145d054cac785cc8b4d834c28192
[ "MIT" ]
null
null
null
ceacoest/kalman/__init__.py
dimasad/ceacoest
4a5eb946e118145d054cac785cc8b4d834c28192
[ "MIT" ]
2
2018-12-03T14:34:10.000Z
2021-08-17T17:04:12.000Z
"""Kalman filtering / smoothing package.""" from . import base from . import unscented from . import extended DTUnscentedFilter = unscented.DTFilter DTExtendedFilter = extended.DTFilter
18.9
43
0.783069