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
9384ad93497b727d5494ced188d060997575e6e3
6,189
py
Python
create_and_validate_acm_cert/ACM.py
dylburger/create-and-validate-acm-certificate
d2778478f53098c5b1b3fa48db3e3744f78d2079
[ "MIT" ]
19
2018-04-18T13:01:55.000Z
2021-09-01T04:57:45.000Z
create_and_validate_acm_cert/ACM.py
dylburger/create-and-validate-acm-certificate
d2778478f53098c5b1b3fa48db3e3744f78d2079
[ "MIT" ]
11
2018-06-05T23:18:28.000Z
2020-02-18T22:47:15.000Z
create_and_validate_acm_cert/ACM.py
dylburger/create-and-validate-acm-certificate
d2778478f53098c5b1b3fa48db3e3744f78d2079
[ "MIT" ]
15
2018-06-01T04:45:51.000Z
2021-07-07T08:15:55.000Z
import boto3 from botocore.config import Config import tldextract from . import aws_helpers import time class DNSValidatedACMCertClient(): def __init__(self, domain, profile='default', region='us-east-1', session=None, acm_client=None, route_53_client=None): self.session = session or boto3.Session(profil...
41.536913
123
0.642915
9384b694d6a4a495c6a4228f0149c210c0dbb2ac
7,610
py
Python
iss.py
jkube38/iss-locator
6e2ab3b9815d537d68bc95709514017356461593
[ "MIT" ]
null
null
null
iss.py
jkube38/iss-locator
6e2ab3b9815d537d68bc95709514017356461593
[ "MIT" ]
null
null
null
iss.py
jkube38/iss-locator
6e2ab3b9815d537d68bc95709514017356461593
[ "MIT" ]
null
null
null
#!/usr/bin/env python '''The ISS program Tracks the ISS and astronauts in space in real time also provides gui for visual tracking of the ISS and specific times the ISS will pass over specific destinations supplied by the user.''' __author__ = '''Jordan Kubista with help from request docs, python turtle ...
33.672566
80
0.640079
9384b99ac60922f595b113dd6daeb8c7448ba927
3,586
py
Python
config_custom_ruleset_lambda_fucntions/ec2_vpc_public_subnet.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
3
2019-09-02T14:24:49.000Z
2022-02-23T16:22:12.000Z
config_custom_ruleset_lambda_fucntions/ec2_vpc_public_subnet.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
null
null
null
config_custom_ruleset_lambda_fucntions/ec2_vpc_public_subnet.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
1
2019-10-14T19:38:48.000Z
2019-10-14T19:38:48.000Z
# Description: Check that no EC2 Instances are in Public Subnet # # Trigger Type: Change Triggered # Scope of Changes: EC2:Instance # Accepted Parameters: None # Your Lambda function execution role will need to have a policy that provides the appropriate # permissions. Here is a policy that you can consider. You sho...
34.480769
111
0.570831
9384cd1431aef7ba261b6c2b7d50ede360b5952b
12,662
py
Python
salt/cli/salt.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/cli/salt.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/cli/salt.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Import python libs from __future__ import absolute_import, print_function import os import sys # Import Salt libs import salt.utils.job from salt.ext.six import string_types from salt.utils import parsers, print_cli from salt.exceptions import ( SaltClientError, SaltInvocatio...
38.138554
106
0.488627
9384f5758b8236a02bf60958417c697a847a283f
7,639
py
Python
h2o-py/tests/testdir_algos/stackedensemble/pyunit_stackedensemble_regression.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/stackedensemble/pyunit_stackedensemble_regression.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
h2o-py/tests/testdir_algos/stackedensemble/pyunit_stackedensemble_regression.py
My-Technical-Architect/h2o-3
d383802fb7f9c3ec9c72b7869fe636059a333d88
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import h2o import sys sys.path.insert(1,"../../../") # allow us to run this standalone from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator from h2o.estimators.random_forest import H2ORandomForestEstimator from h2o.estimators.deeplearning impo...
48.348101
207
0.720382
9384fc4af650698ae9eb761672c4c46ebc0b5959
8,964
py
Python
docs/conf.py
schubergphilis/hashivaultlib
8273ba9e21fda2f50a95f6215833ad7d355b3f47
[ "MIT" ]
2
2019-03-28T09:33:21.000Z
2019-09-11T06:00:08.000Z
docs/conf.py
schubergphilis/hashivaultlib
8273ba9e21fda2f50a95f6215833ad7d355b3f47
[ "MIT" ]
6
2020-03-24T16:25:22.000Z
2021-06-08T09:04:31.000Z
docs/conf.py
schubergphilis/hashivaultlib
8273ba9e21fda2f50a95f6215833ad7d355b3f47
[ "MIT" ]
2
2019-05-22T10:15:35.000Z
2021-06-04T09:02:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # hashivaultlib documentation build configuration file, created by # sphinx-quickstart # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
30.804124
78
0.712628
93850b8dd65e33ce9f36a979ee508110a7a8ddaa
69
py
Python
models/__init__.py
anyuecq25/MVCNN_ContrastiveCenterLoss
a30e51b350ff766d681aa7cc06f84fc43fe0b961
[ "MIT" ]
1
2022-03-14T16:19:54.000Z
2022-03-14T16:19:54.000Z
models/__init__.py
anyuecq25/MVCNN_ContrastiveCenterLoss
a30e51b350ff766d681aa7cc06f84fc43fe0b961
[ "MIT" ]
null
null
null
models/__init__.py
anyuecq25/MVCNN_ContrastiveCenterLoss
a30e51b350ff766d681aa7cc06f84fc43fe0b961
[ "MIT" ]
null
null
null
from .model_utils import * from .MVCNN import MVCNN, BaseFeatureNet
17.25
40
0.797101
93854809329521d41b862e0200c7bad3e22aee5e
2,588
py
Python
solutions_automation/dashboard_solutions/monitoring.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
13
2020-09-02T09:05:08.000Z
2022-03-12T02:43:24.000Z
solutions_automation/dashboard_solutions/monitoring.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
1,998
2020-06-15T11:46:10.000Z
2022-03-24T22:12:41.000Z
solutions_automation/dashboard_solutions/monitoring.py
threefoldtech/js-sdk
811f783ac34a60225175bab2d806802a87b9d5c7
[ "Apache-2.0" ]
8
2020-09-29T06:50:35.000Z
2021-06-14T03:30:52.000Z
from jumpscale.packages.tfgrid_solutions.chats.monitoring import MonitoringDeploy from solutions_automation.utils.gedispatch import GedisChatBotPatch class MonitoringAutomated(GedisChatBotPatch, MonitoringDeploy): NAME_MESSAGE = "Please enter a name for your workload (Can be used to prepare domain for you and nee...
47.054545
144
0.693586
938599dda486e86fe54c2ea85aa40cf31d5eaa0f
2,725
py
Python
qnarre/prep/metric/glue.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/metric/glue.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/metric/glue.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 applicable l...
30.965909
98
0.540917
9385eaeb7d4af5df2c386ee37876eeb5d94bd468
337
py
Python
abc/110/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/110/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/110/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N, M, A, B = map(int, input().split()) X = list(map(int, input().split())) Y = list(map(int, input().split())) for z in range(A+1, B+1): flag = True for x in X: if z <= x: flag = False for y in Y: if z > y: flag = False if flag: print("No War") ex...
21.0625
38
0.454006
938630cfd02f10b80d5761f1b2bea52961c43856
1,339
py
Python
examples/obsolete_legacy/dualagent.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:01:51.000Z
2022-03-31T14:01:51.000Z
examples/obsolete_legacy/dualagent.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
null
null
null
examples/obsolete_legacy/dualagent.py
dasec/ForTrace
b8187522a2c83fb661e5a1a5f403da8f40a31ead
[ "MIT" ]
1
2022-03-31T14:02:30.000Z
2022-03-31T14:02:30.000Z
#!/usr/bin/env python # This file is part of fortrace - http://fortrace.fbi.h-da.de # See the file 'docs/LICENSE' for copying permission. # This will run both the guest-agent and bot-agent. from __future__ import absolute_import import time import logging import platform from fortrace.core.agent import Agent from fo...
26.78
109
0.744586
9386655019cc9536ae306c6f37f9fc474cf98b89
888
py
Python
cloudmesh/vm/command/vm.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
cloudmesh/vm/command/vm.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
cloudmesh/vm/command/vm.py
swsachith/cm
d99837917f0dafe60c25829cf78ae77bbe02bd85
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from cloudmesh.shell.command import command from cloudmesh.shell.command import PluginCommand # from cloudmesh.vm.api.manager import Manager class VmCommand(PluginCommand): # noinspection PyUnusedLocal @command def do_vm(self, args, arguments): """ :...
21.142857
58
0.560811
938665888d54b3559ef9c9cb34c06189ed4cffb5
2,852
py
Python
smolDM/commands.py
andreheringer/smolDM
6486048293a0f1dda71ce3d88f361cb9c3a524d5
[ "MIT" ]
4
2020-04-01T01:11:49.000Z
2021-04-14T11:42:01.000Z
smolDM/commands.py
andreheringer/smolDM
6486048293a0f1dda71ce3d88f361cb9c3a524d5
[ "MIT" ]
6
2020-04-22T20:56:25.000Z
2020-04-22T20:56:27.000Z
smolDM/commands.py
andreheringer/crael
6486048293a0f1dda71ce3d88f361cb9c3a524d5
[ "MIT" ]
null
null
null
""" This module implements the central command handling object. :copywrite: Andre Heringer 2018 :license: MIT, see license for details """ import re from loguru import logger from typing import List, Tuple, Optional def build_command_pattern(command: str) -> re.Pattern: """Build regex pattern based on Crael comm...
27.161905
85
0.685133
93867918ae4f11c76d533b8f023b5114f1189872
7,649
py
Python
src/datasets/mosi.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
6
2020-08-03T03:13:25.000Z
2022-02-11T08:32:10.000Z
src/datasets/mosi.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
1
2020-09-08T16:10:38.000Z
2020-09-08T16:10:38.000Z
src/datasets/mosi.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
2
2020-08-03T21:37:21.000Z
2021-03-26T02:19:17.000Z
import numpy as np import os import torch from torch.utils.data import Dataset from utils import * from .utils import make_classes_counts class MOSI(Dataset): data_name = 'MOSI' label_modes = ['binary','five','seven','regression'] supported_feature_names = {'covarep':'COVAREP','opensmile':'OpenSmile-emobas...
54.248227
189
0.60217
9386948a1f45221770a76531f062900e46e45f84
2,321
py
Python
selsum/models/sum.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
34
2021-09-10T17:10:10.000Z
2022-03-28T05:12:07.000Z
selsum/models/sum.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
null
null
null
selsum/models/sum.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
3
2021-11-20T08:21:19.000Z
2022-03-28T05:12:14.000Z
from fairseq.models import register_model, register_model_architecture from fairseq.models.transformer import TransformerModel, \ TransformerDecoder as Decoder from selsum.modules.sum_encoder import SumEncoder from fairseq.modules.transformer_sentence_encoder import init_bert_params from fairseq.models.bart.model i...
36.265625
76
0.709177
9386ada8e612fd3f2ffb814bdf0308d399ae2614
2,120
py
Python
src/stk/molecular/topology_graphs/topology_graph/optimizers/utilities.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
21
2018-04-12T16:25:24.000Z
2022-02-14T23:05:43.000Z
src/stk/molecular/topology_graphs/topology_graph/optimizers/utilities.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
8
2019-03-19T12:36:36.000Z
2020-11-11T12:46:00.000Z
src/stk/molecular/topology_graphs/topology_graph/optimizers/utilities.py
stevenkbennett/stk
a8311fa6110adc0ea593a24d9a0c064597b1b174
[ "MIT" ]
5
2018-08-07T13:00:16.000Z
2021-11-01T00:55:10.000Z
""" Optimizer Utilities =================== This module defines utilities for optimizers. """ from collections import defaultdict import mchammer as mch def get_mch_bonds(state): """ Yield the bonds of the :mod:`MCHammer` molecule. Parameters ---------- state : :class:`.ConstructionState` ...
24.090909
71
0.614623
9386d33131005f3d6b7d63ddd8c641183be82d3b
5,129
py
Python
redash/query_runner/mongodb.py
joeysim/redash
141dbc9e706899df9b82898fc7f355c2d9ce56b1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/query_runner/mongodb.py
joeysim/redash
141dbc9e706899df9b82898fc7f355c2d9ce56b1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
redash/query_runner/mongodb.py
joeysim/redash
141dbc9e706899df9b82898fc7f355c2d9ce56b1
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
import json import datetime import logging import re import time from redash.utils import JSONEncoder from redash.query_runner import * logger = logging.getLogger(__name__) try: import pymongo from bson.objectid import ObjectId enabled = True except ImportError: logger.warning("Missing dependencies....
28.814607
146
0.542211
9386d59cf0783d33e63aa772fb29679b76b2b883
1,347
py
Python
tests/core/txpool-module/test_txpool_inspect.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/core/txpool-module/test_txpool_inspect.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
tests/core/txpool-module/test_txpool_inspect.py
shinnng/platon.py
3197fac3839896290210da04dd0d45f0bdc731ce
[ "MIT" ]
null
null
null
import random from platon._utils.threads import ( Timeout, ) def test_txpool_inspect(web3_empty): web3 = web3_empty web3.node.miner.stop() with Timeout(60) as timeout: while web3.platon.hashrate or web3.platon.mining: timeout.sleep(random.random()) txn_1_hash = web3.platon....
28.659574
72
0.708241
9386e7c7925a32a5736bebbdc5d8654041b97de5
1,919
py
Python
setup.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
null
null
null
setup.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
7
2019-03-20T23:36:11.000Z
2021-12-13T19:49:02.000Z
setup.py
rubyvanrooyen/meerkat-backend-interface
3e4e6e6dfe99edb5998c08987ab50f6e0a014bc2
[ "MIT" ]
3
2019-03-20T23:35:10.000Z
2019-04-17T23:27:54.000Z
import setuptools requires = [ 'backports-abc==0.5', 'backports.ssl-match-hostname==3.5.0.1', 'certifi==2018.4.16', 'chardet==3.0.4', 'cmd2==0.8.7', 'contextlib2==0.5.5', 'docker==3.4.0', 'docker-pycreds==0.3.0', 'docopt==0.6.2', 'enum34==1.1.6', 'future==0.16.0', 'futur...
23.691358
65
0.543512
9386e9e153c87f423f36a74d4bf740d0c1d7e3ed
261
py
Python
migrations/20141023-venues.py
kylewm/redwind
7ad807b5ab2dd74a8d470dbea9dd4baf5567d9c6
[ "BSD-2-Clause" ]
35
2015-01-08T03:26:39.000Z
2020-09-16T00:42:17.000Z
migrations/20141023-venues.py
thedod/redwind
4a0f21164078d97b3569064d9f482c8b2ccf2008
[ "BSD-2-Clause" ]
47
2015-01-05T23:22:08.000Z
2021-02-02T21:43:26.000Z
migrations/20141023-venues.py
thedod/redwind
4a0f21164078d97b3569064d9f482c8b2ccf2008
[ "BSD-2-Clause" ]
10
2015-02-20T00:51:37.000Z
2022-01-11T10:59:32.000Z
from redwind import db from redwind.models import Venue db.create_all() db.engine.execute( 'ALTER TABLE location ADD COLUMN venue_id INTEGER REFERENCES venue(id)') db.engine.execute( 'ALTER TABLE post ADD COLUMN venue_id INTEGER REFERENCES venue(id)')
29
76
0.777778
9386ffca4a45f1e3b7f65bb6e0cbe493017a656f
4,418
py
Python
post/compute_roc.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
37
2015-04-08T15:11:51.000Z
2022-01-05T19:32:58.000Z
post/compute_roc.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
2
2016-03-08T02:39:58.000Z
2017-03-29T08:51:08.000Z
post/compute_roc.py
slinderman/theano_pyglm
c7fc11069dfe91b0eb7c96b8464fcd0f57442952
[ "MIT" ]
10
2015-02-25T21:47:50.000Z
2020-03-06T00:21:48.000Z
""" Compute an roc curve for synthetic data with ground truth """ import os import cPickle import numpy as np from sklearn.metrics import roc_curve import matplotlib from pyglm.plotting.roc import plot_roc_curve from population import Population from models.model_factory import make_model matplotlib.use('Agg') ...
32.485294
97
0.655274
9387085445a3a342a2003e244b54697794308008
12,784
py
Python
openmc_plasma_source/tokamak_source.py
fusion-energy/openmc-plasma-source
15c2194c1f386bf60514dde6797545f6615a1605
[ "MIT" ]
9
2021-09-22T13:30:32.000Z
2022-03-31T14:52:50.000Z
openmc_plasma_source/tokamak_source.py
fusion-energy/openmc-plasma-source
15c2194c1f386bf60514dde6797545f6615a1605
[ "MIT" ]
46
2021-09-22T09:41:40.000Z
2022-03-23T09:48:37.000Z
openmc_plasma_source/tokamak_source.py
fusion-energy/openmc-plasma-source
15c2194c1f386bf60514dde6797545f6615a1605
[ "MIT" ]
6
2021-09-23T10:32:41.000Z
2022-01-24T10:17:40.000Z
import openmc import numpy as np from typing import Tuple from param import Parameterized, Number, Integer, Range, ListSelector class TokamakSource(Parameterized): """Plasma neutron source sampling. This class greatly relies on models described in [1] [1] : Fausser et al, 'Tokamak D-T neutron source mode...
37.710914
87
0.611937
9387342307d6bd7a9d0c75a2ac7fc53cc0f3a982
660
py
Python
preprocessing/utils/io.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
34
2021-09-10T17:10:10.000Z
2022-03-28T05:12:07.000Z
preprocessing/utils/io.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
null
null
null
preprocessing/utils/io.py
abrazinskas/SelSum
6ed0e282cf854db7095196732e62ef8662c0daa6
[ "MIT" ]
3
2021-11-20T08:21:19.000Z
2022-03-28T05:12:14.000Z
from shared_lib.utils.constants.general import TRAIN_PART, VAL_PART, TEST_PART from shared_lib.utils.helpers.io import read_data import os def read_fairseq_data(data_folder_path): """Reads the partition data. Returns a dictionary with (src, tgt) tuples.""" coll = dict() for part_name in [TRAIN_PART, VAL_P...
41.25
80
0.715152
93876738609284b6b508a51ca748234af41c40b6
3,986
py
Python
alipay/aop/api/request/AlipayOpenPublicCrowdInnerQueryRequest.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/AlipayOpenPublicCrowdInnerQueryRequest.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/AlipayOpenPublicCrowdInnerQueryRequest.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.AlipayOpenPublicCrowdInnerQueryModel import AlipayOpenPublicCrowdInnerQueryModel class AlipayOpenPublicCrowdInnerQueryRequest(object...
27.489655
148
0.64576
93877eb289747857bff855d354d85d96f655d62b
61,607
py
Python
tests/data.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
39
2021-12-14T11:05:25.000Z
2022-03-31T18:50:58.000Z
tests/data.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
17
2022-01-04T14:32:26.000Z
2022-03-29T14:01:36.000Z
tests/data.py
deepdoctection/deepdoctection
7e0d7396e5ef8bf8109904e09c5d4ee56cb5a036
[ "Apache-2.0" ]
4
2022-01-11T16:40:17.000Z
2022-03-30T02:09:55.000Z
# -*- coding: utf-8 -*- # File: data.py # Copyright 2021 Dr. Janis Meyer. 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-...
41.542144
116
0.502784
9387a392b38592c75c4e2397fc6ca87a966b17ec
1,660
py
Python
tests/h/schemas/forms/accounts/edit_profile_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
tests/h/schemas/forms/accounts/edit_profile_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
4
2020-03-24T17:38:24.000Z
2022-03-02T05:45:01.000Z
tests/h/schemas/forms/accounts/edit_profile_test.py
Manuelinux/kubeh
a549f0d1c09619843290f9b78bce7668ed90853a
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import colander import pytest from h.schemas.forms.accounts import EditProfileSchema pytestmark = pytest.mark.usefixtures("pyramid_config") class TestEditProfileSchema: def test_accepts_valid_input(self, pyramid_csrf_request): schema = Edi...
34.583333
79
0.673494
9387ae465b090520d143e2d0ae02e7a6da88c19c
551
py
Python
sivtools/utilities/logging.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
6
2018-09-14T16:18:00.000Z
2022-03-27T19:50:31.000Z
sivtools/utilities/logging.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
11
2018-01-31T14:18:54.000Z
2020-06-09T00:46:45.000Z
sivtools/utilities/logging.py
alysivji/sivtools
570dba15e9669bc4e20e7dffc60fb2c70443456f
[ "MIT" ]
null
null
null
import logging DEFAULT_FORMAT_STRING = "[%(levelname)s] %(name)s:%(lineno)s (%(asctime)s) %(message)s" def siv_logger( name="app", *, format_str=DEFAULT_FORMAT_STRING, level=logging.DEBUG, handler=logging.StreamHandler ): """ Wrapper for Standard Library logger with sane defaults """...
19.678571
87
0.673321
9387c143e1b1d2aa0b339c699ee11a8a2bdfd979
416
py
Python
tests/issue_00003/conftest.py
Xowap/nsre
ae2adc4eb49bf0c60ec9cba020f729ad74ed65c5
[ "WTFPL" ]
1
2020-05-31T18:57:23.000Z
2020-05-31T18:57:23.000Z
tests/issue_00003/conftest.py
Xowap/nsre
ae2adc4eb49bf0c60ec9cba020f729ad74ed65c5
[ "WTFPL" ]
5
2019-07-26T11:23:12.000Z
2020-05-31T19:32:37.000Z
tests/issue_00003/conftest.py
Xowap/nsre
ae2adc4eb49bf0c60ec9cba020f729ad74ed65c5
[ "WTFPL" ]
1
2020-06-03T06:37:51.000Z
2020-06-03T06:37:51.000Z
from pytest import fixture from nsre.ast import * from nsre.matchers import Eq @fixture(name="a") def make_a(): return Eq("a") @fixture(name="b") def make_b(): return Eq("b") @fixture(name="c") def make_c(): return Eq("c") @fixture(name="fa") def make_fa(a): return Final(a) @fixture(name="fb"...
11.885714
28
0.629808
9387ce677bc58afcc402f695105283cfb8ecddad
41,941
py
Python
google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
3
2021-03-29T19:21:08.000Z
2021-12-31T09:30:11.000Z
google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py
glaswasser/python-vision
706c314a86b8f35c313bb3e907ae84317dca1a0b
[ "Apache-2.0" ]
3
2021-09-08T03:19:56.000Z
2022-03-12T00:58:03.000Z
google/cloud/vision_v1/services/product_search/transports/grpc_asyncio.py
baronrustamov/python-vision
236a5676459abaa3f0b7d991977dc712259a3176
[ "Apache-2.0" ]
1
2021-03-30T05:02:53.000Z
2021-03-30T05:02:53.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
42.151759
114
0.644858
9387e526f4615b280ad7186883cd83905b1c743e
5,920
py
Python
primehub/utils/display.py
InfuseAI/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
10
2021-09-13T23:14:22.000Z
2022-02-06T06:07:40.000Z
primehub/utils/display.py
KellenJohn/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
4
2021-08-10T03:10:27.000Z
2021-12-16T02:11:50.000Z
primehub/utils/display.py
KellenJohn/primehub-python-sdk
edbdbcb3e41f0c99e4542245de1345a64f509fb4
[ "Apache-2.0" ]
1
2021-12-21T11:59:51.000Z
2021-12-21T11:59:51.000Z
import json from types import GeneratorType from typing import Any, TextIO, Union, Dict, List from tabulate import tabulate from primehub import create_logger from abc import ABCMeta, abstractmethod logger = create_logger('display') CUSTOMIZED_COLUMNS: Dict[str, List[tuple]] = { 'primehub.jobs.list': [ ...
29.452736
108
0.545439
9387e54503639604aea30c2f1722f983657c1344
9,279
py
Python
korona/html/root/global_attributes.py
bharadwajyarlagadda/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
2
2016-10-11T03:57:30.000Z
2018-01-19T20:13:47.000Z
korona/html/root/global_attributes.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
16
2016-08-19T04:08:45.000Z
2016-09-27T03:26:39.000Z
korona/html/root/global_attributes.py
iskodirajga/korona
ee4662b6a29907495e31ed2581dc5484bb03eadc
[ "MIT" ]
1
2016-10-11T03:57:33.000Z
2016-10-11T03:57:33.000Z
# -*- coding: utf-8 -*- from ...exceptions import AttributeValueError, TagAttributeError from ...lib.utils import ( validate_string_attribute, validate_boolean_attribute, validate_number_attribute, validate_attribute_values ) from ...templates.html.global_attributes import global_attributes GLOBAL_ATT...
39.485106
79
0.567087
93880a8629f82d33175d6ae66f11cace622ecdc6
6,329
py
Python
doc/conf.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
1
2015-11-05T05:09:27.000Z
2015-11-05T05:09:27.000Z
doc/conf.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
doc/conf.py
cajun-code/satchless
068b26046c3af63268f8eecd6e33da2bbb78b8d1
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # satchless documentation build configuration file, created by # sphinx-quickstart on Mon Nov 8 12:30:14 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
32.45641
80
0.723653
93880d724c745f47c4c2ee5b7240a05b81a37cce
1,765
py
Python
experiments/murtaza/multiworld/skew_fit/pick_and_place/generate_uniform_dataset.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/murtaza/multiworld/skew_fit/pick_and_place/generate_uniform_dataset.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/murtaza/multiworld/skew_fit/pick_and_place/generate_uniform_dataset.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import os.path as osp import numpy as np from multiworld.core.image_env import ImageEnv, unormalize_image from multiworld.envs.mujoco.sawyer_xyz.sawyer_pick_and_place import get_image_presampled_goals from rlkit.misc.asset_loader import load_local_or_remote_file def generate_uniform_dataset_pick_and_place( env...
30.964912
95
0.67932
938812771134cd38180a07fdc37562c31a59a3af
2,167
py
Python
purpleair/scripts/purpleair.py
btoulson/balena-sense
683ead64d1ddbe725ec3649dc289cc61c7151d76
[ "Apache-2.0" ]
null
null
null
purpleair/scripts/purpleair.py
btoulson/balena-sense
683ead64d1ddbe725ec3649dc289cc61c7151d76
[ "Apache-2.0" ]
null
null
null
purpleair/scripts/purpleair.py
btoulson/balena-sense
683ead64d1ddbe725ec3649dc289cc61c7151d76
[ "Apache-2.0" ]
null
null
null
# This script detects for the presence of either a BME680 sensor on the I2C bus or a Sense HAT # The BME680 includes sensors for temperature, humidity, pressure and gas content # The Sense HAT does not have a gas sensor, and so air quality is approximated using temperature and humidity only. import sys import time imp...
30.957143
115
0.63221
93881bbe6a8336e0f56ece27b0cee835f5662867
487
py
Python
reach/wsgi.py
nityaoberoi/reach
78444afdf49baad702ebb09f3e72379763cbc709
[ "MIT" ]
null
null
null
reach/wsgi.py
nityaoberoi/reach
78444afdf49baad702ebb09f3e72379763cbc709
[ "MIT" ]
3
2015-04-29T22:56:50.000Z
2015-06-15T17:56:54.000Z
reach/wsgi.py
joedoublej/reach
78444afdf49baad702ebb09f3e72379763cbc709
[ "MIT" ]
null
null
null
""" WSGI config for {{ project_name }} project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE",'reach.settings') from django....
30.4375
78
0.800821
93885e0d150a52ad345301b8bcf22ac1d91fb8c4
10,440
py
Python
drone_demo.py
uci-iasl/SeReMAS
0dc2ffee4b078a87efae831185d099b032539769
[ "MIT" ]
1
2021-12-03T21:58:47.000Z
2021-12-03T21:58:47.000Z
drone_demo.py
uci-iasl/SeReMAS
0dc2ffee4b078a87efae831185d099b032539769
[ "MIT" ]
null
null
null
drone_demo.py
uci-iasl/SeReMAS
0dc2ffee4b078a87efae831185d099b032539769
[ "MIT" ]
2
2021-07-31T13:52:44.000Z
2021-09-07T02:21:47.000Z
import time from queue import LifoQueue as Queue import data_types from blocks_v3_3 import Logger, ImageProducer, ConsumeImageProduceFeatDet, ConsumeFeatProduceAction, ConsumeAction, Advertizer, TegraLogger, NetLogger from config_v3_2 import * import dronekit # from vehicle_class_file import MyVehicle from FakeDrone im...
40.30888
193
0.621264
93889e172e1b1e304e620433abe551ca5a75acfc
1,168
py
Python
var/spack/repos/builtin/packages/py-pycairo/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/py-pycairo/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2021-01-08T22:23:53.000Z
2022-03-30T11:08:17.000Z
var/spack/repos/builtin/packages/py-pycairo/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import os class PyPycairo(PythonPackage): """Pycairo is a set of Python bindings for the cairo g...
37.677419
96
0.685788
9388ac35bd96daf91b23df8edce052ec5c367ce4
233
py
Python
django_productline/features/djpladmin/urls.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
5
2015-06-16T17:36:33.000Z
2017-10-17T19:22:59.000Z
django_productline/features/djpladmin/urls.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
8
2016-03-14T09:02:13.000Z
2017-11-16T16:00:31.000Z
django_productline/features/djpladmin/urls.py
henzk/django-productline
24ff156924c1a8c07b99cbb8a1de0a42b8d81f60
[ "MIT" ]
17
2015-08-04T18:45:18.000Z
2017-11-16T14:52:46.000Z
def refine_get_urls(original): def get_urls(): from django.contrib import admin from .admin_urls import get_admin_urls admin.autodiscover() return original() + get_admin_urls() return get_urls
29.125
46
0.678112
9389278c0d0b688ec85b3022db380d6a294bb56d
304
py
Python
tolqc-api/app/main/schema/assembly_metrics.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/schema/assembly_metrics.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/schema/assembly_metrics.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from main.model import TolqcAssemblyMetrics from .base import BaseSchema, setup_schema @setup_schema class AssemblyMetricsSchema(BaseSchema): class Meta(BaseSchema.BaseMeta): model = TolqcAssemblyMetrics
23.384615
51
0.792763
93892f6b1ce5674ab02298254b954fc39c0ae456
10,656
py
Python
src/resnet152_keras.py
photom/histopathologic_cancer_detection
6240710d14ce197d780efc30a1acb4c8c2b2d05e
[ "Apache-2.0" ]
null
null
null
src/resnet152_keras.py
photom/histopathologic_cancer_detection
6240710d14ce197d780efc30a1acb4c8c2b2d05e
[ "Apache-2.0" ]
null
null
null
src/resnet152_keras.py
photom/histopathologic_cancer_detection
6240710d14ce197d780efc30a1acb4c8c2b2d05e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # https://gist.github.com/mvoelk/ef4fc7fb905be7191cc2beb1421da37c import cv2 import numpy as np import copy from keras.layers import Input, Dense, Conv2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Flatten, Activation, add from keras.optimizers import SGD from keras.layers.normalization imp...
42.454183
118
0.652402
938948f72c2c1474e9bfdd121b057fd53cc7e736
9,806
py
Python
data/level/level44.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level44.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level44.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 44, 'move_count': 24, 'board_info': { (0, 0): { 'base': (2, 1), 'cover': (64, 2), 'fall_point': (0, -1), 'next': (0, 1), 'prev': (0, -1) }, (0, 1): { 'base': (1, 1), 'cover': (...
23.072941
47
0.192739
93896b2d6959f564feb32e44127d9a6e1956dc22
4,339
py
Python
src/python/pants/core/goals/style_request.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
null
null
null
src/python/pants/core/goals/style_request.py
xyzst/pants
d6a357fe67ee7e8e1aefeae625e107f5609f1717
[ "Apache-2.0" ]
6
2022-01-25T15:49:26.000Z
2022-02-09T11:21:13.000Z
src/python/pants/core/goals/style_request.py
thejcannon/pants
7c24f42cb78cc462b63698cef736eda7a85c40e0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import logging import os.path from abc import ABCMeta from dataclasses import dataclass from typing import Any, Callable, ClassVar, Generic, Iterable, S...
34.712
98
0.677806
93898e8b42dfe969d035eaa8147c5e455bda7b38
4,625
py
Python
source/remediation_runbooks/scripts/test/test_enablecloudtrailtocloudwatchlogging.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
129
2020-08-11T18:18:50.000Z
2021-10-04T20:00:35.000Z
source/remediation_runbooks/scripts/test/test_enablecloudtrailtocloudwatchlogging.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
39
2020-08-11T18:07:58.000Z
2021-10-15T16:26:24.000Z
source/remediation_runbooks/scripts/test/test_enablecloudtrailtocloudwatchlogging.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
35
2020-08-15T04:57:27.000Z
2021-09-21T06:23:17.000Z
#!/usr/bin/python ############################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License"). Y...
34.259259
115
0.546162
9389bc3a1817ec82450c64faf80382576717aa85
4,821
py
Python
tf2_gnn/utils/polynomial_warmup_and_decay_schedule.py
ktaebum/tf2-gnn
4eb6bf367623fef28c937b632e3caa83288de206
[ "MIT" ]
381
2020-02-26T19:25:25.000Z
2022-03-25T05:35:37.000Z
tf2_gnn/utils/polynomial_warmup_and_decay_schedule.py
Fatead/tf2-gnn-code
8e27ecda0d2242f6be23854a25f43f7379db6f86
[ "MIT" ]
25
2020-02-26T17:32:57.000Z
2022-02-21T12:07:51.000Z
tf2_gnn/utils/polynomial_warmup_and_decay_schedule.py
Fatead/tf2-gnn-code
8e27ecda0d2242f6be23854a25f43f7379db6f86
[ "MIT" ]
74
2020-02-27T13:57:01.000Z
2021-12-02T14:35:10.000Z
from typing import Union import tensorflow as tf class PolynomialWarmupAndDecaySchedule( tf.keras.optimizers.schedules.LearningRateSchedule ): """A LearningRateSchedule that uses a polynomial warmup and decay schedule.""" def __init__( self, learning_rate: Union[tf.Tensor, float], ...
43.044643
92
0.613773
9389f648294c457175d884f84fc02cd706dbce4d
4,444
py
Python
pretraining/datasets.py
manhhv87/densenet_bottleneck
fd08eb88514dacaff1bcec8bc52a77ea56ab72c7
[ "MIT" ]
null
null
null
pretraining/datasets.py
manhhv87/densenet_bottleneck
fd08eb88514dacaff1bcec8bc52a77ea56ab72c7
[ "MIT" ]
null
null
null
pretraining/datasets.py
manhhv87/densenet_bottleneck
fd08eb88514dacaff1bcec8bc52a77ea56ab72c7
[ "MIT" ]
null
null
null
import tensorflow as tf from transplant.datasets import icentia11k # note: arguments in the generators are casted to base types due to serialization in the tf.data.Dataset.from_generator def rhythm_dataset(db_dir, patient_ids, frame_size, normalize=True, unzipped=False, samples_per_patient=1): dataset...
56.253165
127
0.623312
938a3f737fd0c6489ae42ee6b9f5de58709d5efe
1,615
py
Python
tests/test_yaml.py
amigcamel/ji.py
3c6b1e62c455a12ac69c5169afa5b2277b46c4bc
[ "MIT" ]
15
2018-10-12T03:42:11.000Z
2020-11-18T14:34:53.000Z
tests/test_yaml.py
amigcamel/ji.py
3c6b1e62c455a12ac69c5169afa5b2277b46c4bc
[ "MIT" ]
5
2018-10-12T06:46:00.000Z
2021-03-25T22:15:31.000Z
tests/test_yaml.py
amigcamel/ji.py
3c6b1e62c455a12ac69c5169afa5b2277b46c4bc
[ "MIT" ]
null
null
null
"""Test quizzes in data/*.yml.""" from itertools import chain from os.path import join, dirname, abspath import os import yaml import pytest from jipy.quiz import QUIZ_DICT quizzes = list(chain.from_iterable(QUIZ_DICT.values())) def test_duplicate_keys(): """Test if yaml object contains duplicate keys.""" ...
30.471698
76
0.636533
938a729bb52f0450b6f01151f5ec6ee4d817c1c6
3,092
py
Python
tradition/tracking/tracking.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
3
2018-10-16T09:36:12.000Z
2019-04-15T03:12:49.000Z
tradition/tracking/tracking.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
tradition/tracking/tracking.py
huachao2017/goodsdl
3616d53b90696a97a5d56a064e2a14d484b821d7
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 # import imutils from skimage.measure import compare_ssim import time import logging logger = logging.getLogger("detect") def compare_same(img_path1,img_path2, score_thresh_1=.95, score_thresh_2=.9): score, image1, image2, diff, thresh = _compare(img_path1,img_path2) if score > sc...
35.953488
89
0.585705
938af6de0eff67516cecc51caebf5f0cc96c0023
30
py
Python
graphene_ai/__init__.py
graphene-ai/python-graphene-ai
957bd8cf45b70901bdc3c91e377c6def6c41e3a3
[ "MIT" ]
null
null
null
graphene_ai/__init__.py
graphene-ai/python-graphene-ai
957bd8cf45b70901bdc3c91e377c6def6c41e3a3
[ "MIT" ]
1
2021-06-02T00:54:43.000Z
2021-06-02T00:54:43.000Z
graphene_ai/__init__.py
graphene-ai/python-graphene-ai
957bd8cf45b70901bdc3c91e377c6def6c41e3a3
[ "MIT" ]
null
null
null
from .graphene import Graphene
30
30
0.866667
938b4ad75f47df32569dd95635bb1d0c7d31de60
5,161
py
Python
datacube_zarr/utils/chunk.py
opendatacube/datacube-zarr
1c05a0c92d81b4235d75bbb01adcb2da9ae8013b
[ "Apache-2.0" ]
null
null
null
datacube_zarr/utils/chunk.py
opendatacube/datacube-zarr
1c05a0c92d81b4235d75bbb01adcb2da9ae8013b
[ "Apache-2.0" ]
null
null
null
datacube_zarr/utils/chunk.py
opendatacube/datacube-zarr
1c05a0c92d81b4235d75bbb01adcb2da9ae8013b
[ "Apache-2.0" ]
null
null
null
"""Functions for determining appropriate chunking for zarr storage.""" import logging from typing import Dict, Hashable, Mapping, Optional, Sequence, Union import numpy as np import xarray as xr logger = logging.getLogger(__name__) # Defaults for calculating chunk sizes ZARR_TARGET_CHUNK_SIZE_MB = 20.0 DEFAULT_COM...
38.804511
90
0.656268
938b4fd559c03d37541fbfe3deeb0080e693ad4a
982
py
Python
audio/transforms.py
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
3
2020-11-07T18:12:50.000Z
2021-06-11T22:56:09.000Z
audio/transforms.py
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
audio/transforms.py
eth-sri/transformation-smoothing
12a653e881a6d61c5c63a3e16d58292435486cbd
[ "Apache-2.0" ]
null
null
null
import io import soundfile as sf import librosa def round(y, sr): bo = io.BytesIO() bo.name = "foo.wav" sf.write(bo, y, sr, 'PCM_16') bo.seek(0) y, sr = librosa.load(bo, sr=None) return y, sr def scale_volume(data, sr, f, do_round=True): """ Parameters ---------- data : actua...
18.884615
63
0.565173
938b6311508fe433b2a2f4415ab7de52bc7616f5
4,648
py
Python
packnet_sfm/networks/layers/resnet/resnet_encoder.py
pdell-kitware/packnet-sfm
6f6b1c849486535b649fefc2109fc7c91ae96b85
[ "MIT" ]
null
null
null
packnet_sfm/networks/layers/resnet/resnet_encoder.py
pdell-kitware/packnet-sfm
6f6b1c849486535b649fefc2109fc7c91ae96b85
[ "MIT" ]
null
null
null
packnet_sfm/networks/layers/resnet/resnet_encoder.py
pdell-kitware/packnet-sfm
6f6b1c849486535b649fefc2109fc7c91ae96b85
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. # Adapted from monodepth2 # https://github.com/nianticlabs/monodepth2/blob/master/networks/resnet_encoder.py from __future__ import absolute_import, division, print_function import numpy as np import torch import torch.nn as nn import torchvision.mod...
40.068966
92
0.616394
938b6ac4c16e477e96e44b3e7655080f7947ab40
43,395
py
Python
scipy/special/add_newdocs.py
disqus/scipy
2619f0ca030b2bcf630ddd9a33f48c588cf4fcea
[ "BSD-3-Clause" ]
null
null
null
scipy/special/add_newdocs.py
disqus/scipy
2619f0ca030b2bcf630ddd9a33f48c588cf4fcea
[ "BSD-3-Clause" ]
null
null
null
scipy/special/add_newdocs.py
disqus/scipy
2619f0ca030b2bcf630ddd9a33f48c588cf4fcea
[ "BSD-3-Clause" ]
null
null
null
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
28.719391
170
0.624358
938bc09f59a5286a6e75ac13eabd80b8ce6eeb2e
3,686
py
Python
tests/components/dynalite/test_bridge.py
marioedani/homeassistant-core
2bc5db857ec6aa605ea7ff363654db2109f7cec4
[ "Apache-2.0" ]
7
2019-02-07T14:14:12.000Z
2019-07-28T06:56:10.000Z
tests/components/dynalite/test_bridge.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
6
2021-02-08T20:54:31.000Z
2022-03-12T00:50:43.000Z
tests/components/dynalite/test_bridge.py
tomachristian/core
71c8fcee20c55536b33c3ee774c76c1795f37cd2
[ "Apache-2.0" ]
2
2020-04-19T13:35:24.000Z
2020-04-19T13:35:51.000Z
"""Test Dynalite bridge.""" from asynctest import CoroutineMock, Mock, patch from dynalite_devices_lib.const import CONF_ALL from homeassistant.components import dynalite from homeassistant.helpers.dispatcher import async_dispatcher_connect from tests.common import MockConfigEntry async def test_update_device(hass...
36.86
84
0.71541
938bd270751d02e45f73db414d51e5bef7bb20d6
193
py
Python
terrascript/dmsnitch/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/dmsnitch/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/dmsnitch/d.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/dmsnitch/d.py # Automatically generated by tools/makecode.py () import warnings warnings.warn( "using the 'legacy layout' is deprecated", DeprecationWarning, stacklevel=2 )
21.444444
79
0.766839
938be5c1d5684812b1bf78b9db7ecda67d926741
3,218
py
Python
pdbdb/management/commands/pdbfiles2pdbdb.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
pdbdb/management/commands/pdbfiles2pdbdb.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
2
2021-03-10T17:08:59.000Z
2021-09-29T17:40:48.000Z
pdbdb/management/commands/pdbfiles2pdbdb.py
sndg-arg/covid19-web
fe809c87563a00bbec53c3646338d571fdde6a69
[ "MIT" ]
null
null
null
import os from django.core.management.base import BaseCommand, CommandError from tqdm import tqdm from pdbdb.io.PDB2SQL import PDB2SQL from pdbdb.models import PDB from SNDG.Structure.PDBs import PDBs from datetime import datetime from SNDG.WebServices.PDBsWS import PDBsWS def iterpdbs(pdbs_dir, pdb_extention=".ent"...
40.225
129
0.588875
938bf019e96c3372e8ff452e2689b21317631876
551
py
Python
highscores/lle.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
highscores/lle.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
highscores/lle.py
graatje/highscoresbot
26207b8191ed6c9a3d7ecd49fea482e6d3603c36
[ "MIT" ]
null
null
null
from highscores.highscore import Highscore class Lle(Highscore): def __init__(self): LAYOUT = ["Rank", "Username", "Clan", "LLE"] LINK = r"https://pokemon-planet.com/topLLE.php" NAME = "lle" CREATEQUERY = "CREATE TABLE IF NOT EXISTS lle(rank INTEGER PRIMARY KEY, username TEXT, cl...
32.411765
109
0.607985
938bff7284ad8c68da770726981c7ccca4a109c8
5,352
py
Python
tweetf0rm/process/user_relationship_crawler.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
1
2015-02-16T11:08:35.000Z
2015-02-16T11:08:35.000Z
tweetf0rm/process/user_relationship_crawler.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
null
null
null
tweetf0rm/process/user_relationship_crawler.py
maruthiprithivi/tweetf0rm
f59e57495afda05032d41b161b5aed74f2bc4dfe
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # import logging logger = logging.getLogger(__name__) from .crawler_process import CrawlerProcess from tweetf0rm.twitterapi.users import User from tweetf0rm.handler import create_handler from tweetf0rm.handler.crawl_user_relationship_command_handler import CrawlUserRelationsh...
27.875
122
0.654148
938c17e872875b2e3cd6c1fb3ad565d0d5022ebd
1,006
py
Python
tests2/receivers.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests2/receivers.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests2/receivers.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from django.dispatch import receiver from bridger import buttons as bt from bridger.signals.instance_buttons import add_additional_resource, add_instance_button from tests.serializers import RelatedModelTestSerializer from tests.viewsets import RelatedModelTestModelViewSet @receiver(add_instance_button, sender=Relat...
47.904762
126
0.810139
938c5a11fb72a6d57d04912755521560709bec71
792
py
Python
scripts/load_file_rwx.py
PimmyTrousers/idawilli
b66020f9404a1b1dfb6ec5dc146086b659a81160
[ "Apache-2.0" ]
null
null
null
scripts/load_file_rwx.py
PimmyTrousers/idawilli
b66020f9404a1b1dfb6ec5dc146086b659a81160
[ "Apache-2.0" ]
null
null
null
scripts/load_file_rwx.py
PimmyTrousers/idawilli
b66020f9404a1b1dfb6ec5dc146086b659a81160
[ "Apache-2.0" ]
null
null
null
import idc import ida_kernwin import idawilli import idawilli.dbg # removeme import ida_idaapi ida_idaapi.require('idawilli') ida_idaapi.require('idawilli.dbg') def main(): path = ida_kernwin.ask_file(False, "*", "file to load") if not path: return with open(path, "rb") as f: bu...
21.405405
59
0.593434
938c8b3a27b3ac5d237bad70147024431cc3a3b2
3,923
py
Python
fil_finder/io_funcs.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
28
2015-07-10T15:47:22.000Z
2022-01-25T10:18:33.000Z
fil_finder/io_funcs.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
50
2015-05-07T21:20:08.000Z
2022-02-23T02:06:56.000Z
fil_finder/io_funcs.py
e-koch/fil_finder
aa03e4e7b7f443d6d9dbd127a46a18eb67680499
[ "MIT" ]
14
2015-07-13T10:26:44.000Z
2021-11-25T08:23:21.000Z
# Licensed under an MIT open source license - see LICENSE from astropy.io.fits import PrimaryHDU from astropy.utils.decorators import format_doc import numpy as np import astropy.units as u import re import warnings try: from spectral_cube import Projection, Slice SPECTRALCUBE_INSTALL = True except ImportErro...
29.946565
160
0.596737
938c8d6dc30512b3318d55559dd53762f9c050f4
2,237
py
Python
examples/ScanNet/generate_online_mask.py
c6376315qqso/occuseg
ae7a2d9f0927dec515acf445f0bdd6d28510e915
[ "BSD-3-Clause" ]
null
null
null
examples/ScanNet/generate_online_mask.py
c6376315qqso/occuseg
ae7a2d9f0927dec515acf445f0bdd6d28510e915
[ "BSD-3-Clause" ]
null
null
null
examples/ScanNet/generate_online_mask.py
c6376315qqso/occuseg
ae7a2d9f0927dec515acf445f0bdd6d28510e915
[ "BSD-3-Clause" ]
null
null
null
import os from numpy.lib.twodim_base import mask_indices import torch import numpy as np import glob FAR_PLANE = 3 NEAR_PLANE = 0.1 def work(name): if not os.path.exists(os.path.join(name, 'online_masks')): os.mkdir(os.path.join(name, 'online_masks')) data3d = torch.load(os.path.join(name, name + '_i...
41.425926
159
0.591864
938c9587436b63d2253d9744e2b83809a9b5218a
528
py
Python
hello_nlp/plugins.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
77
2020-10-01T15:34:27.000Z
2022-03-04T18:38:41.000Z
hello_nlp/plugins.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
8
2020-10-02T12:14:50.000Z
2020-12-27T08:51:41.000Z
hello_nlp/plugins.py
danicc097/hello-nlp
c60ee0db7af382ee7d72ca5d7bb1f7e3153cbb5c
[ "MIT" ]
12
2020-10-01T18:45:40.000Z
2022-03-15T05:56:58.000Z
import imp import os MainModule = "__init__" def get_plugins(root): plugins = [] candidates = os.listdir(root) filename = MainModule + ".py" for i in candidates: location = os.path.join(root, i) if not os.path.isdir(location) or not filename in os.listdir(location): continu...
26.4
79
0.645833
938ccb0272a23f05ab79bca1092a6db60c89b239
5,682
py
Python
test/features/steps/transformer_steps.py
codewarrior2000/molecular-data-provider
820b7db35cf6578f13671caaade2d48811447822
[ "MIT" ]
null
null
null
test/features/steps/transformer_steps.py
codewarrior2000/molecular-data-provider
820b7db35cf6578f13671caaade2d48811447822
[ "MIT" ]
null
null
null
test/features/steps/transformer_steps.py
codewarrior2000/molecular-data-provider
820b7db35cf6578f13671caaade2d48811447822
[ "MIT" ]
null
null
null
from behave import given, when, then from contextlib import closing import requests import jsonpath_rw import json @given('a transformer at "{url}"') def step_impl(context, url): """ Given a base URL of a transformer """ context.transformer_url = url @given('the transformer') def step_impl(context):...
29.28866
93
0.63974
938cd2353cfb214118a614aa36cc898a8c333234
173
py
Python
tests/runtests.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
7
2018-04-03T15:19:36.000Z
2021-03-11T14:19:51.000Z
tests/runtests.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
null
null
null
tests/runtests.py
robla/jsonwidget-python
a397ce3873e6aed357d294a88749412b2d732ebb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import nose def main(): """run the test suite""" usage = "usage: %prog [options] file" nose.run() if __name__ == "__main__": main()
14.416667
41
0.583815
938cd835a9cb689986f2d556eab04f85be250bf1
8,649
py
Python
atom/nucleus/python/nucleus_api/models/page_account.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/page_account.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
atom/nucleus/python/nucleus_api/models/page_account.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 """ import pprint import re # noqa: F401 import six from nucleus_api.configuration i...
26.051205
194
0.570933
938cfaca7f818b8e74d4491458f0cb927232896c
378
py
Python
binarysearch.io/sort_by_parity.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
2
2020-06-25T21:10:32.000Z
2020-12-10T06:53:45.000Z
binarysearch.io/sort_by_parity.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
null
null
null
binarysearch.io/sort_by_parity.py
mishrakeshav/Competitive-Programming
b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2
[ "MIT" ]
3
2020-05-15T14:17:09.000Z
2021-07-25T13:18:20.000Z
""" Given a list of strings lst and a list of integers p, reorder lst so that every lst[i] gets placed to p[i]. Bonus: can you do it with O(1) space? """ class Solution: def solve(self, lst, p): # Write your code here sorted_arr = [x for _,x in sorted(zip(p,lst))] return s...
21
54
0.526455
938d28ace56728f65e5440b598b4a1f5eb9e1950
1,704
py
Python
src/server/app/fetchers/super.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
src/server/app/fetchers/super.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
src/server/app/fetchers/super.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
from classes.parsers import SuperParser from classes.models import SuperAuction from sqlalchemy import select from sqlalchemy.orm import Session, subqueryload import contextlib, time class SuperFetcher: db_session: Session super_parser: SuperParser _last_list_scan: float = 0 def super_auction(self...
32.769231
95
0.573357
938d348ff000473bfd015504eb69d893ed7690f4
1,258
py
Python
production/pygsl-0.9.5/examples/wavelet2.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
null
null
null
production/pygsl-0.9.5/examples/wavelet2.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
null
null
null
production/pygsl-0.9.5/examples/wavelet2.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2018-10-02T06:18:07.000Z
2018-10-02T06:18:07.000Z
#!/usr/bin/env python # # Example for a wavelet analysis # Authors: Fernando Vargas, Pierre Schnizer # Date: October 2006 # # To use the same numerical array package as pygsl. # I only use it here, so not to import a package not installed on the user # side. Normaly I directly import the array package I use for all...
31.45
77
0.701113
938d350529b5efe53eaad122dfd7055be7cfbdc8
6,176
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_04_01/operations/_usages_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.900662
146
0.66386
938d4850cd1d307ad11bb7065e6dda858b0abf2e
156
py
Python
authors/apps/notification/test/test_data.py
andela/ah-backend-prime
0708463d4565a4977a5a5dcb839f1dfed52fdc90
[ "BSD-3-Clause" ]
1
2019-09-19T14:30:05.000Z
2019-09-19T14:30:05.000Z
authors/apps/notification/test/test_data.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
22
2019-03-25T16:10:53.000Z
2022-03-11T23:44:21.000Z
authors/apps/notification/test/test_data.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
6
2019-03-25T09:39:39.000Z
2021-03-11T23:54:12.000Z
VALID_USER_DATA_2 = { "user": { "username": "anyatibrian", "email": "brian.anyat@andela.com", "password": "Password@123" } }
22.285714
42
0.532051
938d5180d031818f791d4e8e81abc1b5c8c84c46
4,567
py
Python
ninecms/tests/tests_content_i18n.py
Wtower/django-ninecms
e500010fb11f06c8dfe8d8c9c4d2aab0b15bc127
[ "BSD-3-Clause" ]
49
2015-11-17T16:18:02.000Z
2021-12-10T15:01:03.000Z
ninecms/tests/tests_content_i18n.py
Wtower/django-ninecms
e500010fb11f06c8dfe8d8c9c4d2aab0b15bc127
[ "BSD-3-Clause" ]
39
2015-11-18T12:20:14.000Z
2022-01-19T10:47:19.000Z
ninecms/tests/tests_content_i18n.py
Wtower/django-ninecms
e500010fb11f06c8dfe8d8c9c4d2aab0b15bc127
[ "BSD-3-Clause" ]
9
2016-04-07T12:12:05.000Z
2021-02-04T15:42:02.000Z
""" Tests declaration for Nine CMS All tests assume settings.LANGUAGE_CODE is defined """ __author__ = 'George Karakostas' __copyright__ = 'Copyright 2015, George Karakostas' __licence__ = 'BSD-3' __email__ = 'gkarak@9-dev.com' from django.test import TestCase from django.core.urlresolvers import reverse from django....
45.217822
117
0.667178
938d62529fe1a5a8d3777a74d6f077df96c6b9b6
1,384
py
Python
klaws/ecs.py
cxz/klaws
7f072e46a5f7d263b7e059d21591f776c4c7991b
[ "MIT" ]
null
null
null
klaws/ecs.py
cxz/klaws
7f072e46a5f7d263b7e059d21591f776c4c7991b
[ "MIT" ]
null
null
null
klaws/ecs.py
cxz/klaws
7f072e46a5f7d263b7e059d21591f776c4c7991b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- from datetime import datetime import boto3 import urllib.request import os import json from operator import itemgetter from pprint import pprint ecs = boto3.client('ecs', region_name='us-east-1') #need botocore 1.4.37 and boto 1.4.0 for task iam roles. def run_task(c...
30.086957
89
0.653179
938d74d6aa5105c6c90b32eb256d74d8522e6464
1,528
py
Python
var/spack/repos/builtin/packages/netcdf-cxx4/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/netcdf-cxx4/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/netcdf-cxx4/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class NetcdfCxx4(AutotoolsPackage): """C++ interface for NetCDF4""" homepage = "https://www...
33.955556
99
0.683246
938d7cd9f2f38c9f9c1b696efb20edebd2cb517f
6,617
py
Python
alipay/aop/api/domain/AlipayOpenMiniInnerbaseinfoModifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOpenMiniInnerbaseinfoModifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOpenMiniInnerbaseinfoModifyModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniInnerbaseinfoModifyModel(object): def __init__(self): self._app_alias_name = None self._app_category_ids = None self._app_desc = None self._app_engli...
32.121359
83
0.599516
938d868f1862ca3484a84e5abe5486274418f3f7
42
py
Python
playground/step2/config.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/config.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
playground/step2/config.py
jhson989/jhML
eb8b76d3b47df858e82cd971bb32794e12de4747
[ "Apache-2.0" ]
null
null
null
class Config: enable_backprop = True
10.5
26
0.714286
938d9a2568045ec6f83829329781dd1e08dae328
89
py
Python
microfreshener/core/refiner/__init__.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
microfreshener/core/refiner/__init__.py
di-unipi-socc/micro-tosca
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
3
2019-05-07T07:33:49.000Z
2019-05-15T14:02:51.000Z
microfreshener/core/refiner/__init__.py
di-unipi-socc/microFreshener-core
5d5c9361b34eeabaed8955ddc62282607672bd81
[ "MIT" ]
null
null
null
from .kubernetesrefiner import KubernetesRefiner from .istiorefiner import IstioRefiner
22.25
48
0.876404
938dad3e87d42da5e1eea915af56539ca65d4610
3,093
py
Python
physiossl/transforms/functional.py
larryshaw0079/PhysioLearn
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
2
2021-12-11T15:17:47.000Z
2021-12-27T07:39:31.000Z
physiossl/transforms/functional.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
physiossl/transforms/functional.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
""" @Time : 2021/10/14 11:50 @File : functional.py @Software: PyCharm @Desc : """ import numpy as np import torch from scipy.interpolate import interp1d def __random_curve(length, sigma=0.2, knots=4): xx = np.arange(0, length, (length - 1) / (knots + 1)) yy = np.random.normal(loc=1.0, scale=sigma, s...
28.906542
95
0.621726
938dbbc7f4609b9c8adb5a3da2d5b52380c4ce1b
1,320
py
Python
sirepo/template/elegant_common.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
1
2019-06-06T08:08:11.000Z
2019-06-06T08:08:11.000Z
sirepo/template/elegant_common.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
sirepo/template/elegant_common.py
yeeon/sirepo
081595df256d40fbc7959614689d64ad2bc745d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- u"""Common values for elegant :copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern.pkdebug import pkdp, pkdc, pkdlog from sirepo.template imp...
28.085106
108
0.684848
938dd402b716805303119d8839e3aa64981bc1d8
40,525
py
Python
lib/spack/spack/test/conftest.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
lib/spack/spack/test/conftest.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
lib/spack/spack/test/conftest.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import collections import contextlib import errno import inspect import itertools import json import os import os.path imp...
31.512442
79
0.666922
938de20f5560db8bd7ed951aacee03886be74992
21,379
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/_network_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/_network_management_client.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_04_01/aio/_network_management_client.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 ...
76.62724
1,615
0.815801
938df8f368a6b0c137cdca4fbca58956103d735a
179
py
Python
src/core/__init__.py
kjhall01/xcast
17edfd8c79c5163b004800170bbcf21302e8c792
[ "MIT" ]
11
2021-11-01T21:38:17.000Z
2022-03-30T11:46:32.000Z
src/core/__init__.py
kjhall01/xcast
17edfd8c79c5163b004800170bbcf21302e8c792
[ "MIT" ]
7
2021-10-30T16:55:47.000Z
2021-12-04T18:51:50.000Z
src/core/__init__.py
kjhall01/xcast
17edfd8c79c5163b004800170bbcf21302e8c792
[ "MIT" ]
1
2021-11-18T10:35:29.000Z
2021-11-18T10:35:29.000Z
from .utilities import check_all, guess_coords, check_xyt_compatibility, shape from .progressbar import ProgressBar from .visualization import * from .chunking import align_chunks
44.75
78
0.854749
938e3254eabb33212c39a526d6e021120062b944
1,037
py
Python
media/views.py
mateusz800/blog
a4083a85fb045124cd78ac59895c3bd9afb559dd
[ "MIT" ]
null
null
null
media/views.py
mateusz800/blog
a4083a85fb045124cd78ac59895c3bd9afb559dd
[ "MIT" ]
6
2021-03-19T11:06:32.000Z
2021-04-12T13:11:26.000Z
media/views.py
mateusz800/stories
a4083a85fb045124cd78ac59895c3bd9afb559dd
[ "MIT" ]
null
null
null
from django.shortcuts import get_object_or_404, render from rest_framework.decorators import api_view from rest_framework.response import Response from rest_framework.status import HTTP_201_CREATED, HTTP_400_BAD_REQUEST from django.contrib.auth.models import User from .models import Photo from .serializers import Phot...
33.451613
88
0.75892
938e32e7e14d56482b4b0cab7303b75c6975c189
19,595
py
Python
alipay/aop/api/domain/ZmContractDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ZmContractDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ZmContractDetail.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.BccEventDetail import BccEventDetail from alipay.aop.api.domain.BccSubjectDetail import BccSubjectDetail class ZmContractDetail(object): def __init__(self): self._can...
36.971698
97
0.624088
938e5dcc144ac710f55168f8a11d7ad9224c305f
5,252
py
Python
experiments/vitchyr/disentanglement/why_is_final_agent_position_bad/exp3_smaller_discount.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/disentanglement/why_is_final_agent_position_bad/exp3_smaller_discount.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/disentanglement/why_is_final_agent_position_bad/exp3_smaller_discount.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import torch.nn.functional as F import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.disentanglement.contextual_encoder_distance_launcher import ( encoder_goal_conditioned_sac_experiment ) from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( ...
29.840909
94
0.536367
938ec1d524405785bb67e5147292d6c0b8fb8412
4,514
py
Python
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/app/flags.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/googlecloudsdk/command_lib/app/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/.install/.backup/lib/googlecloudsdk/command_lib/app/flags.py
KaranToor/MA450
c98b58aeb0994e011df960163541e9379ae7ea06
[ "Apache-2.0" ]
1
2020-07-25T12:09:01.000Z
2020-07-25T12:09:01.000Z
# Copyright 2014 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...
32.014184
80
0.738813
938ec297e6bdbf8559fc50ee2b3f1e5d77050905
392
py
Python
twitter_game/posts/migrations/0005_userprofile_karma.py
ztaylor2/django-twitter-game
f58677ec22ef95d87d28fd784b13af635e5338bc
[ "MIT" ]
null
null
null
twitter_game/posts/migrations/0005_userprofile_karma.py
ztaylor2/django-twitter-game
f58677ec22ef95d87d28fd784b13af635e5338bc
[ "MIT" ]
null
null
null
twitter_game/posts/migrations/0005_userprofile_karma.py
ztaylor2/django-twitter-game
f58677ec22ef95d87d28fd784b13af635e5338bc
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-05-25 06:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0004_auto_20180525_0609'), ] operations = [ migrations.AddField( model_name='userprofile', name='karma', ...
20.631579
56
0.604592
938ec35c2047b490d4e8a02cee2f568015f9a9d2
216
py
Python
data/global-configuration/packs/system/collectors/collector_timezone.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
32
2017-08-29T08:57:16.000Z
2021-04-21T08:53:04.000Z
data/global-configuration/packs/system/collectors/collector_timezone.py
naparuba/opsbro
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
108
2017-09-04T19:59:28.000Z
2022-03-31T08:12:07.000Z
data/global-configuration/packs/system/collectors/collector_timezone.py
naparuba/kunai
98618a002cd47250d21e7b877a24448fc95fec80
[ "MIT" ]
8
2015-02-03T12:30:53.000Z
2017-07-29T19:43:54.000Z
import time from opsbro.collector import Collector class Timezone(Collector): def launch(self): self.logger.debug('getTimezone: starting') res = {'timezone': time.tzname[1]} return res
19.636364
50
0.666667
938ec4a3a3bdac489dfa9366e7191abec8d51e02
4,546
py
Python
rlkit/core/rl_algorithm.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
rlkit/core/rl_algorithm.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
rlkit/core/rl_algorithm.py
vincentlui/unsupervised-goal-conditioned-rl
4f2e6938e072cb52f8ee779a939fe7bf6a980d45
[ "MIT" ]
null
null
null
import abc from collections import OrderedDict import gtimer as gt from rlkit.core import logger, eval_util from rlkit.data_management.replay_buffer import ReplayBuffer from rlkit.samplers.data_collector import DataCollector def _get_epoch_timings(): times_itrs = gt.get_times().stamps.itrs times = OrderedDi...
30.92517
79
0.599208
938ed5563f02504971325b64758e597d53e16921
2,082
py
Python
flexget/tests/test_manipulate.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/tests/test_manipulate.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_manipulate.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin class TestManipulate(object): config = """ tasks: test_1: mock: - {title: 'abc FOO'} manipulate: - ti...
29.742857
92
0.507685
938edaf972e5217bfe6b49278bae7d33c4a2d343
34,334
py
Python
textc.py
coltekin/germeval2020task1
8f045b8ddba17e7071c1f94f78f9667fb00e1850
[ "MIT" ]
null
null
null
textc.py
coltekin/germeval2020task1
8f045b8ddba17e7071c1f94f78f9667fb00e1850
[ "MIT" ]
null
null
null
textc.py
coltekin/germeval2020task1
8f045b8ddba17e7071c1f94f78f9667fb00e1850
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Base class(es) for text classifiers. The file defines some of the common classes/functions as well as the interface (including a command line interface). """ import sys, os, time, csv, re, itertools, random, json import gzip from hashlib import md5 import numpy as np from collections import...
40.776722
89
0.538096
938f04eeca1dc226d7c5da669a9839d3157bc784
254
py
Python
web-component/python/admin_api/api/__init__.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
web-component/python/admin_api/api/__init__.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
web-component/python/admin_api/api/__init__.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # flake8: noqa # import apis into api package from admin_api.api.auto_generate_app_token_api import AutoGenerateAppTokenApi from admin_api.api.card_api import CardApi from admin_api.api.client_api import ClientApi
31.75
77
0.862205
938f1a858fd15fffdf4a870c4045562cca17a52d
3,203
py
Python
ui/gfx/vector_icons/aggregate_vector_icons.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
ui/gfx/vector_icons/aggregate_vector_icons.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
ui/gfx/vector_icons/aggregate_vector_icons.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import fileinput import glob import optparse import os import textwrap # TODO(brettw) bug 535386: This should not take a directory as an input, but # rathe...
35.197802
77
0.660318
938f278c1ada543224e86042f7033a8cf8898bb6
2,644
py
Python
src/ConvertPackage/ConvertFile.py
Rishabh4275/manga_downloader
0e89fddc8d07d810f836c0cf6682a822666a9544
[ "MIT" ]
214
2015-01-03T00:46:43.000Z
2021-03-23T07:32:00.000Z
src/ConvertPackage/ConvertFile.py
Rishabh4275/manga_downloader
0e89fddc8d07d810f836c0cf6682a822666a9544
[ "MIT" ]
42
2015-01-24T00:07:06.000Z
2020-06-22T18:41:00.000Z
src/ConvertPackage/ConvertFile.py
Rishabh4275/manga_downloader
0e89fddc8d07d810f836c0cf6682a822666a9544
[ "MIT" ]
74
2015-01-21T10:30:48.000Z
2021-01-30T03:35:17.000Z
#!/usr/bin/env python import os, zipfile import imghdr import shutil from book import Book from convert import BookConvert class convertFile(): def __init__(self): pass @staticmethod def convert(outputMgr, filePath, outDir, Device, verbose): kindleDir = 'images' if Device == 'Kindle 5' else 'Pictures' ...
24.71028
92
0.670197
938f3188d6f4808d4bf0e32388fec1bb3e01cc94
2,811
py
Python
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error_data.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error_data.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/secure_value_error_data.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.310345
109
0.612238
938f358e266d53a573469873fff1e500e021a215
10,692
py
Python
Allura/allura/tasks/mail_tasks.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
1
2019-03-17T04:16:15.000Z
2019-03-17T04:16:15.000Z
Allura/allura/tasks/mail_tasks.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "Apache-2.0" ]
null
null
null
Allura/allura/tasks/mail_tasks.py
DalavanCloud/allura
a25329caed9e6d136a1004c33372e0632a16e352
[ "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 (t...
38.88
117
0.604751
938f91a11d61005921286b7940f3318f871febcf
1,679
py
Python
src/preprocessing/equalize_seq_length.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
6
2020-08-03T03:13:25.000Z
2022-02-11T08:32:10.000Z
src/preprocessing/equalize_seq_length.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
1
2020-09-08T16:10:38.000Z
2020-09-08T16:10:38.000Z
src/preprocessing/equalize_seq_length.py
dem123456789/Speech-Emotion-Recognition-with-Dual-Sequence-LSTM-Architecture
a072cb940201bbcdb2d0f4d0dfa1dde478fa4464
[ "MIT" ]
2
2020-08-03T21:37:21.000Z
2021-03-26T02:19:17.000Z
import pickle import numpy as np import librosa import pandas as pd from raw_audio_create_dict import split_data dict_path = '/scratch/speech/raw_audio_dataset/raw_audio_full.pkl' file = open(dict_path, 'rb') data = pickle.load(file) audio_path = '/scratch/speech/raw_audio_dataset/audio_paths_labels_updated.csv' df =...
35.723404
114
0.740322
938f939d3b08d4c6d59af0a5e3fdf0f4eba3f886
2,024
py
Python
tests/common/test_run/ascend/asinh_grad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/common/test_run/ascend/asinh_grad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/common/test_run/ascend/asinh_grad_run.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2020-2021 Huawei Technologies Co., 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 agre...
36.142857
74
0.709486
938fa14b34d3f1b9a02aeb363fc75217336ae381
238
py
Python
pkgcore/ebuild/__init__.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/ebuild/__init__.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/ebuild/__init__.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2005 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD """ gentoo ebuild support """ # XXX force this import to break a cycle. # breaking the cycle will occur, it just takes a bit of work... import pkgcore.ebuild.atom
21.636364
63
0.731092
938fedffad5e3ab1cc4face63a593dc91fee361b
8,997
py
Python
botorch-modes/rf/modes-b/pure-ngp-nei.py
tu-dortmund-ls12-rt/MODES-public
65fce061de6713bee6343c6514afa3760fe1c1d4
[ "MIT" ]
null
null
null
botorch-modes/rf/modes-b/pure-ngp-nei.py
tu-dortmund-ls12-rt/MODES-public
65fce061de6713bee6343c6514afa3760fe1c1d4
[ "MIT" ]
null
null
null
botorch-modes/rf/modes-b/pure-ngp-nei.py
tu-dortmund-ls12-rt/MODES-public
65fce061de6713bee6343c6514afa3760fe1c1d4
[ "MIT" ]
1
2022-02-11T12:21:01.000Z
2022-02-11T12:21:01.000Z
import torch import os import csv import sys from botorch import fit_gpytorch_model from botorch.acquisition.monte_carlo import qExpectedImprovement, qNoisyExpectedImprovement from botorch.acquisition.analytic import ExpectedImprovement, NoisyExpectedImprovement from botorch.sampling.samplers import SobolQMCNormalSampl...
34.471264
159
0.64088
9390274dc45babeb2d7b6da2c7da0677870a23f5
1,703
py
Python
MQL4/Python/OTMql427/ZmqArguments.py
lionelyoung/OTMql4Zmq
3297bda2b04407acf28164ea0fcc57090d45ad23
[ "MIT" ]
97
2015-04-07T07:45:37.000Z
2021-11-14T17:39:42.000Z
MQL4/Python/OTMql427/ZmqArguments.py
Roledenez/OTMql4Zmq
130bab038b4a3fa3d1dd1b40004fa480734c2698
[ "MIT" ]
21
2015-04-02T17:41:05.000Z
2017-07-18T15:04:42.000Z
MQL4/Python/OTMql427/ZmqArguments.py
Roledenez/OTMql4Zmq
130bab038b4a3fa3d1dd1b40004fa480734c2698
[ "MIT" ]
47
2015-04-07T07:46:06.000Z
2021-07-12T08:52:05.000Z
# -*-mode: python; py-indent-offset: 4; indent-tabs-mode: nil; encoding: utf-8-dos; coding: utf-8 -*- """ This file declares oParseOptions in a separate file so that the arguments parsing can be uniform between applications that use it. """ from argparse import ArgumentParser def oParseOptions(sUsage): """ ...
43.666667
101
0.540223