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
218f3881f1c7e27f09cdb1652abf1e9751fae313
117
py
Python
jwt_apns_client/__init__.py
Mobelux/jwt_apns_client
1e6cc2e65a2e7134da61d391976b00fcb86d7015
[ "MIT" ]
2
2017-05-17T18:20:09.000Z
2017-09-18T12:04:56.000Z
jwt_apns_client/__init__.py
Mobelux/jwt_apns_client
1e6cc2e65a2e7134da61d391976b00fcb86d7015
[ "MIT" ]
1
2021-11-15T17:47:04.000Z
2021-11-15T17:47:04.000Z
jwt_apns_client/__init__.py
Mobelux/jwt_apns_client
1e6cc2e65a2e7134da61d391976b00fcb86d7015
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Justin Michalicek""" __email__ = 'justin@mobelux.com' __version__ = '0.1.0'
19.5
36
0.641026
218f3b662d20492b880d8048284d357ac4c49ab4
5,087
py
Python
gym-joinemio/gym_joinemio/envs/connect_four_env.py
shoomilas/joinemio
3a8f4901a9380963bf3bf70371f0e15a91748ba4
[ "MIT" ]
null
null
null
gym-joinemio/gym_joinemio/envs/connect_four_env.py
shoomilas/joinemio
3a8f4901a9380963bf3bf70371f0e15a91748ba4
[ "MIT" ]
null
null
null
gym-joinemio/gym_joinemio/envs/connect_four_env.py
shoomilas/joinemio
3a8f4901a9380963bf3bf70371f0e15a91748ba4
[ "MIT" ]
1
2021-04-30T09:28:06.000Z
2021-04-30T09:28:06.000Z
import gym import enum import logging as logging import numpy as np import random from collections import namedtuple, deque from gym_joinemio.envs.player import RandomPlayer from gym_joinemio.envs.board import Game, Board, GameState from gym_joinemio.envs.game_window import GameWindow from gym.spaces import Discrete,...
32.819355
120
0.626106
218f3e25dc10e59288ca902707926f0a28b73797
5,750
py
Python
ipyida/ida_qtconsole.py
strazzere/ipyida
12d023aae834cfa16480b16ea157878b552061f7
[ "BSD-2-Clause-FreeBSD" ]
2
2020-02-01T19:50:35.000Z
2021-08-04T16:41:12.000Z
ipyida/ida_qtconsole.py
strazzere/ipyida
12d023aae834cfa16480b16ea157878b552061f7
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
ipyida/ida_qtconsole.py
strazzere/ipyida
12d023aae834cfa16480b16ea157878b552061f7
[ "BSD-2-Clause-FreeBSD" ]
1
2018-12-30T10:01:26.000Z
2018-12-30T10:01:26.000Z
# -*- encoding: utf8 -*- # # This module integreate a qtconsole to the IDA GUI. # See README.adoc for more details. # # Copyright (c) 2015 Marc-Etienne M.Léveillé <leveille@eset.com> # See LICENSE file for redistribution. import idaapi def is_using_pyqt5(): if hasattr(idaapi, "get_kernel_version"): _ida_v...
39.115646
97
0.65513
218f4721a90499d3a3adf0b40ebad2db99726492
1,273
py
Python
rllib/agents/slateq/tests/test_slateq.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
rllib/agents/slateq/tests/test_slateq.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
rllib/agents/slateq/tests/test_slateq.py
naijoaix/ray
5a43b075bcc346fb95f1d30c85dbcb79a7fa5769
[ "Apache-2.0" ]
null
null
null
import unittest import ray import ray.rllib.agents.slateq as slateq from ray.rllib.examples.env.recommender_system_envs_with_recsim import ( InterestEvolutionRecSimEnv, ) from ray.rllib.utils.test_utils import ( check_compute_single_action, check_train_results, framework_iterator, ) class TestSlateQ(...
25.979592
77
0.651218
218f65a438fbf163c62e63d900445473e4cdf2ef
903
py
Python
allocation/constraints/composite.py
gabrielpereiram10/allocation
24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14
[ "MIT" ]
null
null
null
allocation/constraints/composite.py
gabrielpereiram10/allocation
24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14
[ "MIT" ]
null
null
null
allocation/constraints/composite.py
gabrielpereiram10/allocation
24bc33ca4b3377ebb02f9c4d2f6a878aa46bac14
[ "MIT" ]
null
null
null
from typing import List, NoReturn, Union from allocation.protocols.constraint import IConstraint from allocation.entities.formula import Formula from allocation.utils.big_formula import BigFormula class ConstraintComposite(IConstraint): _big_formula = BigFormula def __init__(self): self._constraints...
32.25
79
0.707641
218f70381146d84c7c2e78330611b4d902a15056
1,067
py
Python
tests/zypp_plugin.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/zypp_plugin.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
tests/zypp_plugin.py
cbosdo/salt-1
9084d662781f9c0944804ba087e652c2ddb730bf
[ "Apache-2.0" ]
null
null
null
''' Related to zypp_plugins_test.py module. ''' class Plugin(object): ''' Bogus module for Zypp Plugins tests. ''' def ack(self): ''' Acknowledge that the plugin had finished the transaction Returns: ''' def main(self): ''' Register plugin ...
16.415385
64
0.514527
218f7f45b38e07a4da2beb3c071de87c284b64c7
6,888
py
Python
ironic_inspector/plugins/base.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
ironic_inspector/plugins/base.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
ironic_inspector/plugins/base.py
NaohiroTamura/ironic-inspector
7b7fba72de46806ce84d6d4758a2343b52b0c96d
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the...
33.275362
79
0.662021
218f943ee7cde7f247b68335d3546dfbfecb105a
167
py
Python
core/events/actions.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
3
2017-10-28T11:28:38.000Z
2018-09-12T09:47:00.000Z
core/events/actions.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
core/events/actions.py
ChrisLR/BasicDungeonRL
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
[ "MIT" ]
null
null
null
from core.events.base import Event class Attacking(Event): name = "Attacking" __slots__ = "actor" def __init__(self, actor): self.actor = actor
16.7
34
0.652695
218f953b0a7b6f27354a7fce3b1bcdc4c121258a
4,021
py
Python
Core/Model/FirefoxModel/SQLite/__init__.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
Core/Model/FirefoxModel/SQLite/__init__.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
28
2021-06-20T17:39:00.000Z
2021-09-04T15:03:41.000Z
Core/Model/FirefoxModel/SQLite/__init__.py
UpBeatMan/Abschlussarbeit
e842df691bbfdf77cd1c41d9de00718166bb4e19
[ "MIT" ]
null
null
null
from importlib import import_module from Model.util import log_message class DataSourcesSQLite: def __init__(self, profile_path: str, cache_path: str): self.sources = {} source_names = [] # Create list of module names and handlers, that we need source_names.append( ["M...
36.889908
103
0.552599
218fa3b10acf60aec51f40d71e54f753c4f7c4c7
590
py
Python
snf/utils/convbackward/__init__.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
66
2020-11-17T12:06:52.000Z
2022-02-05T23:58:15.000Z
snf/utils/convbackward/__init__.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
1
2021-07-26T19:29:32.000Z
2021-07-27T16:23:03.000Z
snf/utils/convbackward/__init__.py
AnonICML/SelfNormalizingFlows
f924e786b83e4766241c6ece90b5195a3acc9e64
[ "MIT" ]
8
2020-11-17T17:42:51.000Z
2022-03-14T14:12:37.000Z
import os from pathlib import Path from torch.utils.cpp_extension import load # Note this requires GCC > 5.0 base_path = Path(os.path.dirname(os.path.realpath(__file__))) cpp_path = base_path / 'conv2d_backward.cpp' build_path = base_path / 'torch_cpp_extensions/' conv2d_backward = load(name="conv2d_backward", ...
31.052632
61
0.657627
218fd8cdd42af4fc9825d5deb56738fef9a2c160
3,365
py
Python
profiles_project/settings.py
rtkanan/profiles-rest-api
ce8c75de6db47c0e611865fc45dece8ddc49b3a6
[ "MIT" ]
null
null
null
profiles_project/settings.py
rtkanan/profiles-rest-api
ce8c75de6db47c0e611865fc45dece8ddc49b3a6
[ "MIT" ]
5
2021-03-19T11:55:59.000Z
2022-02-10T12:42:48.000Z
profiles_project/settings.py
rtkanan/profiles-rest-api
ce8c75de6db47c0e611865fc45dece8ddc49b3a6
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
26.085271
91
0.700446
218fdb9a6ad4304b8e5a7ac205aa0184385ff641
737
py
Python
app.py
gazwald/s3_static_site
feceb1dabb073a5bdaade78256f0dfd022d0635a
[ "BSD-2-Clause" ]
1
2020-04-27T09:14:30.000Z
2020-04-27T09:14:30.000Z
app.py
gazwald/s3_static_site
feceb1dabb073a5bdaade78256f0dfd022d0635a
[ "BSD-2-Clause" ]
null
null
null
app.py
gazwald/s3_static_site
feceb1dabb073a5bdaade78256f0dfd022d0635a
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import sys import yaml from aws_cdk import core from deploy.deploy_stack import DeployStack path1 = os.path.join(os.getcwd(), "..", "config.yml") path2 = os.path.join(os.getcwd(), "config.yml") if os.path.isfile(path1): config_path = path1 elif os.path.isfile(path2): config_...
23.03125
81
0.693351
218fdd1ff773a808293066ab3f46ca8cf5fb8180
2,533
py
Python
python/phonenumbers/data/region_TJ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_TJ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_TJ.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. TJ metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_TJ = PhoneMetadata(id='TJ', country_code=992, international_prefix='810', general_desc=PhoneNumberDesc(national_number_pattern='[3-59]\\d{8}', possible_number_pattern=...
105.541667
240
0.733518
21901d4ce2c66beb67da475900dce4599bd2a69f
233
py
Python
pyclopedia/p02_ref/p02_function/p02_default_value.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p02_ref/p02_function/p02_default_value.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
pyclopedia/p02_ref/p02_function/p02_default_value.py
MacHu-GWU/pyclopedia-project
c6ee156eb40bc5a4ac5f51aa735b6fd004cb68ee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ function parameter with default value (in case the param is not given). """ def add(a, increament=1): return a + increament if __name__ == "__main__": assert add(0) == 1
15.533333
71
0.626609
2190253d691203c8e447afd7e6c7f603ab96c9f0
23,665
py
Python
lib/model/faster_rcnn/shufflenet.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
lib/model/faster_rcnn/shufflenet.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
null
null
null
lib/model/faster_rcnn/shufflenet.py
fofore/new-4d2-8-16u2
4acffcc5763f77f202894ece9b39030a76a2e8ed
[ "MIT" ]
1
2019-07-31T01:41:11.000Z
2019-07-31T01:41:11.000Z
''' mode: Jie LI Kiktech waterljwant@gmail.com ''' import torch import torch.nn as nn import torch.nn.functional as F import math from model.faster_rcnn.faster_rcnn import _fasterRCNN import pdb input_size=[480, 640] width_mult = 1. # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # class Fr...
36.918877
122
0.568477
21902aee15776e1fb74d3e596b762354f6088194
4,690
py
Python
pypeit/core/wavecal/spectrographs/templ_p200_dbsp.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
107
2018-08-06T07:07:20.000Z
2022-02-28T14:33:42.000Z
pypeit/core/wavecal/spectrographs/templ_p200_dbsp.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
889
2018-07-26T12:14:33.000Z
2022-03-18T22:49:42.000Z
pypeit/core/wavecal/spectrographs/templ_p200_dbsp.py
brackham/PypeIt
8769f06ae8e8f18d3a55d12b01dd3dde50b98040
[ "BSD-3-Clause" ]
74
2018-09-25T17:03:07.000Z
2022-03-10T23:59:24.000Z
""" Generate the wavelength templates for P200/DBSP""" import os from pypeit.core.wavecal import templates ## # DBSP red arm ## # ############################## def p200_dbsp_red_1200_7100_d68(overwrite=False): # DBSPr 1200/7100 D68 binspec = 1 outroot = 'p200_dbsp_red_1200_7100_d68.fits' # ifiles ...
31.689189
77
0.648614
219038aa57b6c4ef23d60c8a38dbdea4627e0556
837
py
Python
app/main/forms.py
Kipkorir-Gideon/60secs-impression
2222d1e1db251ef1d1ae0aada476bd2aeedbf39d
[ "MIT" ]
null
null
null
app/main/forms.py
Kipkorir-Gideon/60secs-impression
2222d1e1db251ef1d1ae0aada476bd2aeedbf39d
[ "MIT" ]
null
null
null
app/main/forms.py
Kipkorir-Gideon/60secs-impression
2222d1e1db251ef1d1ae0aada476bd2aeedbf39d
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField,TextAreaField,SubmitField,SelectField from wtforms.validators import Required class PitchForm(FlaskForm): ''' Class to create a wtf form for creating a pitch ''' content = TextAreaField('Impress') submit = SubmitField('Submit') clas...
26.15625
71
0.700119
21904b2b2a81c34635acf66cbeff4cb849296650
1,581
py
Python
randlov1998/balance_sarsalambda_linfa_replacetrace_anneal_RewardPower8.py
chrisdembia/agent-bicycle
1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6
[ "MIT" ]
10
2015-07-07T05:14:15.000Z
2020-06-20T00:57:38.000Z
randlov1998/balance_sarsalambda_linfa_replacetrace_anneal_RewardPower8.py
chrisdembia/agent-bicycle
1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6
[ "MIT" ]
null
null
null
randlov1998/balance_sarsalambda_linfa_replacetrace_anneal_RewardPower8.py
chrisdembia/agent-bicycle
1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6
[ "MIT" ]
6
2015-07-07T05:14:16.000Z
2021-04-25T02:07:47.000Z
from pybrain.rl.agents.linearfa import LinearFA_Agent from pybrain.rl.experiments import EpisodicExperiment from environment import Environment from tasks import LinearFATileCoding3456BalanceTaskRewardPower8 from training import LinearFATraining from learners import SARSALambda_LinFA_ReplacingTraces task = LinearFATi...
41.605263
101
0.825427
21904b3421ed3cff47d0246f4d0b5659dcfde7c3
2,256
py
Python
validator/setup.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
1
2017-08-04T10:31:00.000Z
2017-08-04T10:31:00.000Z
validator/setup.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
validator/setup.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2016, 2017 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 ...
32.228571
85
0.635195
21904c112f7a93dd91f1c4164d5af036f9ed362a
417
py
Python
djcourses/profiles/models.py
CarlosMart626/meetup-gitlab-pipelines
f11dcc0446936a027042d2dd2386545d76c38408
[ "MIT" ]
1
2020-10-19T21:30:01.000Z
2020-10-19T21:30:01.000Z
djcourses/profiles/models.py
CarlosMart626/meetup-gitlab-pipelines
f11dcc0446936a027042d2dd2386545d76c38408
[ "MIT" ]
3
2020-06-06T01:58:32.000Z
2021-06-10T22:58:23.000Z
djcourses/profiles/models.py
CarlosMart626/meetup-gitlab-pipelines
f11dcc0446936a027042d2dd2386545d76c38408
[ "MIT" ]
2
2021-01-04T03:44:51.000Z
2021-08-19T07:49:35.000Z
from django.db import models from django.contrib.auth.models import User class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='profile') bio = models.TextField(max_length=500, blank=True) location = models.CharField(max_length=30, blank=True) birth_date...
32.076923
87
0.736211
21907c15b356639e05357c4d6b8805583a3a2e82
1,076
py
Python
scripts/parseGitrobSignatures.py
unk1nd0n3/bitbucket-creds-checker
5e13b65f606ef15f310086d896cf3caab80cdaee
[ "MIT" ]
14
2018-05-22T16:39:29.000Z
2022-03-09T09:47:11.000Z
scripts/parseGitrobSignatures.py
unk1nd0n3/bitbucket-creds-checker
5e13b65f606ef15f310086d896cf3caab80cdaee
[ "MIT" ]
2
2018-05-22T14:02:19.000Z
2020-06-16T05:40:34.000Z
scripts/parseGitrobSignatures.py
unk1nd0n3/bitbucket-creds-checker
5e13b65f606ef15f310086d896cf3caab80cdaee
[ "MIT" ]
3
2019-04-05T10:23:12.000Z
2020-12-30T14:12:18.000Z
# -*- coding: utf-8 -*- # __version__ = '0.2' import json def read_json_file(path): """ Func for store json formatted data to local file :param path: string :return: none """ try: return json.loads(open(path).read()) except IOError: print("File is missed. Please check") ...
21.959184
95
0.597584
2190a06081efab264c31334ec800f93467fcaab1
9,645
py
Python
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_verified_partners_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_verified_partners_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/operations/_verified_partners_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
40.020747
133
0.660757
2190a8e32ec0d7d04906880069b2468bd7f73a71
899
py
Python
tests/settings.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
2
2020-06-06T06:50:38.000Z
2022-02-03T08:54:28.000Z
tests/settings.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
5
2018-12-17T11:12:20.000Z
2020-11-27T10:28:51.000Z
tests/settings.py
lenarother/django-critical-css
15c12ea02f7ea049e59efba4d963c35f41f26d78
[ "MIT" ]
1
2021-08-19T06:02:44.000Z
2021-08-19T06:02:44.000Z
DEBUG = True SECRET_KEY = 'test' DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'}} MIDDLEWARE_CLASSES = [] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sites', 'django_rq', 'inline_static'...
22.475
94
0.69188
2190ab636362c5b28a6409364227fe6dc5959348
5,141
py
Python
docs/source/conf.py
JIC-CSB/dtoolsid
915d26fa4d35c7d3db92d1ac36ddd088d1766b1e
[ "MIT" ]
null
null
null
docs/source/conf.py
JIC-CSB/dtoolsid
915d26fa4d35c7d3db92d1ac36ddd088d1766b1e
[ "MIT" ]
null
null
null
docs/source/conf.py
JIC-CSB/dtoolsid
915d26fa4d35c7d3db92d1ac36ddd088d1766b1e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # 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. # # All configuration values have a default; values that are commented out # serve to show the default. # If extensi...
30.784431
79
0.683525
2190c652964276abbc5fb7287301785e542e9226
6,120
py
Python
oscar/lib/python2.7/site-packages/django/contrib/gis/feeds.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/feeds.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/contrib/gis/feeds.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.contrib.syndication.views import Feed as BaseFeed from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed class GeoFeedMixin(object): """ This mixin provides the necessary routines for SyndicationFeed subclasses to produce simple GeoRS...
42.206897
102
0.583824
2190c9f388f00cd9e8947fcf53051f46bdee72fa
2,057
py
Python
attic/tests/post-deployment/tests/smoke/test_SKB_17.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
null
null
null
attic/tests/post-deployment/tests/smoke/test_SKB_17.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
3
2019-10-25T13:38:56.000Z
2022-03-30T09:13:33.000Z
attic/tests/post-deployment/tests/smoke/test_SKB_17.py
ska-telescope/skampi
cd2f95bd56594888c8d0c3476824b438dfcfcf71
[ "BSD-3-Clause" ]
2
2019-11-04T09:59:06.000Z
2020-05-07T11:05:42.000Z
from typing import Iterator import pytest from tango import DeviceProxy,EventType # type: ignore from queue import Queue from assertpy import assert_that @pytest.fixture() def csp_master(): return DeviceProxy('mid_csp_cbf/sub_elt/master') @pytest.fixture() def central_node(): return DeviceProxy('ska_mid/tm_c...
36.732143
110
0.727759
2190dcace48b60e80d767db6dd0f35375f7048f1
5,652
py
Python
alipay/aop/api/domain/InsClaim.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/InsClaim.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/InsClaim.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.ClaimProgress import ClaimProgress class InsClaim(object): def __init__(self): self._biz_data = None self._claim_fee = None self._claim_no = None ...
32.67052
82
0.592357
2190e6e331ddb7c96f932aaa845fb50d49d372f7
766
py
Python
examples/example_write_pdb.py
dstrozzi/qnd
babe5169d746384cb74ef2e05afeedbee291b6ae
[ "BSD-3-Clause" ]
4
2020-04-13T17:25:50.000Z
2021-09-14T06:44:50.000Z
examples/example_write_pdb.py
dstrozzi/qnd
babe5169d746384cb74ef2e05afeedbee291b6ae
[ "BSD-3-Clause" ]
3
2020-04-14T00:00:48.000Z
2020-10-07T21:22:16.000Z
examples/example_write_pdb.py
dstrozzi/qnd
babe5169d746384cb74ef2e05afeedbee291b6ae
[ "BSD-3-Clause" ]
3
2020-04-13T00:55:04.000Z
2021-04-14T19:23:33.000Z
''' example_write_pdb.py demos how to write single values and multiple records into a family of pdb files. It writes to the current directory, so run it from one where you have permission to write. ''' import numpy as np from qnd.pdbf import openpdb with openpdb("foo000.pdb", "w") as f: # write a single value: ...
21.885714
90
0.629243
2191079977b5286ef15c72454cdd96f31cd532e5
21,171
py
Python
scrape/stack.py
DonIsaac/cmsc320-final
de9cf3a666a099ffbaf9303a32b418916f9d4d59
[ "MIT" ]
null
null
null
scrape/stack.py
DonIsaac/cmsc320-final
de9cf3a666a099ffbaf9303a32b418916f9d4d59
[ "MIT" ]
null
null
null
scrape/stack.py
DonIsaac/cmsc320-final
de9cf3a666a099ffbaf9303a32b418916f9d4d59
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from bs4.element import Tag import email.utils as eut import datetime from math import ceil from pymongo.database import Database from pymongo import UpdateOne import random import requests import requests_cache # https://requests-cache.readthedocs.io/en/stable/ import time from typing imp...
41.675197
143
0.570356
2191125a6f24809e76e798e735c2e7d6a15e4887
8,734
py
Python
echopype/echodata/echodata.py
ngkavin/echopype
2783abec6ea33412f50641500ab63943a19b5cd4
[ "Apache-2.0" ]
1
2020-06-20T20:50:24.000Z
2020-06-20T20:50:24.000Z
echopype/echodata/echodata.py
ngkavin/echopype
2783abec6ea33412f50641500ab63943a19b5cd4
[ "Apache-2.0" ]
3
2020-12-18T03:22:57.000Z
2021-08-12T21:04:44.000Z
echopype/echodata/echodata.py
ngkavin/echopype
2783abec6ea33412f50641500ab63943a19b5cd4
[ "Apache-2.0" ]
1
2020-11-13T22:35:55.000Z
2020-11-13T22:35:55.000Z
import uuid from collections import OrderedDict from html import escape from pathlib import Path import warnings import xarray as xr from zarr.errors import GroupNotFoundError from ..utils.repr import HtmlTemplate from .convention import _get_convention XARRAY_ENGINE_MAP = { ".nc": "netcdf4", ".zarr": "zarr"...
35.795082
108
0.580032
2191243131a3b68b9213b30a473202186f9bd080
12,044
py
Python
sdk/translation/azure-ai-translation-document/tests/test_list_translations_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/translation/azure-ai-translation-document/tests/test_list_translations_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/translation/azure-ai-translation-document/tests/test_list_translations_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest import pytz from datetime import datetime import functools from asynctestcase import AsyncDocumentTranslationTest from preparer import DocumentTranslation...
41.965157
196
0.704417
2191b43c3c272c60287b7e7759f21baee4011f5e
799
py
Python
Leetcode-Solutions/HashTable/242. Valid Anagram.py
sakshi13-m/StudentCodeSnippets
25e4f0322b51cad540b6481737976a2f6c4c0382
[ "MIT" ]
1
2020-09-30T21:46:28.000Z
2020-09-30T21:46:28.000Z
Leetcode-Solutions/HashTable/242. Valid Anagram.py
sakshi13-m/StudentCodeSnippets
25e4f0322b51cad540b6481737976a2f6c4c0382
[ "MIT" ]
2
2020-10-04T08:01:15.000Z
2020-10-15T12:21:39.000Z
Leetcode-Solutions/HashTable/242. Valid Anagram.py
sakshi13-m/StudentCodeSnippets
25e4f0322b51cad540b6481737976a2f6c4c0382
[ "MIT" ]
6
2020-09-30T20:53:24.000Z
2020-10-09T11:54:35.000Z
# Easy # https://leetcode.com/problems/valid-anagram/ # Time Complexity : O(n log n) using sorting # class Solution: # def isAnagram(self, s: str, t: str) -> bool: # return sorted(s) == sorted(t) # Time Complexity : O(n) # Space Complexity : O(n) class Solution: def isAnagram(self, s: str, ...
29.592593
65
0.520651
2191cc22fcdeb05f9672e9d166b0a92c78a68b0d
2,338
py
Python
alipay/aop/api/domain/EnrolledMerchantResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/EnrolledMerchantResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/EnrolledMerchantResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class EnrolledMerchantResult(object): def __init__(self): self._error_code = None self._error_msg = None self._merchant_id = None self._result = None @property ...
27.186047
73
0.578272
2191e881d0caf4f32c2bae706f96f639413a7d50
1,421
py
Python
Plug-and-play module/BorderAlignmentModule.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Plug-and-play module/BorderAlignmentModule.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Plug-and-play module/BorderAlignmentModule.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
# source: https://github.com/Megvii-BaseDetection/BorderDet/blob/master/cvpods/layers/border_align.py # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from cvpods import _C class _Bo...
32.295455
101
0.681914
2192019e6329e2a7a99017c51b90b70fdc48c516
734
py
Python
vyperlogix/tar/tarutils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
1
2020-09-29T01:36:33.000Z
2020-09-29T01:36:33.000Z
vyperlogix/tar/tarutils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
vyperlogix/tar/tarutils.py
raychorn/chrome_gui
f1fade70b61af12ee43c55c075aa9cfd32caa962
[ "CC0-1.0" ]
null
null
null
from vyperlogix.enum.Enum import Enum class TarCompressionTypes(Enum): none = 0 gz = 1 bz2 = 2 __valid_compression_types__ = [ TarCompressionTypes.gz, TarCompressionTypes.bz2 ] def tar_to_file_or_folder(source,dest,compression=TarCompressionTypes.none): import os import tarfile ...
26.214286
76
0.685286
219208e6bbd96893960cd65d7ee97c7faab5745d
6,878
py
Python
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/files/check_rabbitmq_queues.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
19
2016-04-22T10:00:08.000Z
2021-05-25T14:37:12.000Z
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/files/check_rabbitmq_queues.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
111
2021-10-01T18:18:17.000Z
2022-03-29T12:23:20.000Z
tests/unit/fake_data_root/rabbitmq/var/lib/juju/agents/unit-rabbitmq-server-0/charm/files/check_rabbitmq_queues.py
KellenRenshaw/hotsos
e3fc51ab7f8af606a5846a3486a7fda23d761583
[ "Apache-2.0" ]
24
2016-03-23T20:32:43.000Z
2021-12-14T20:06:20.000Z
#!/usr/bin/python3 # Copyright (C) 2011, 2012, 2014 Canonical # All Rights Reserved # Author: Liam Young, Jacek Nykis from collections import defaultdict from datetime import datetime, timedelta from fnmatch import fnmatchcase from itertools import chain import argparse import os import sys lsb_dict = {} with open(...
32.443396
79
0.56877
219245a430978566f4d3a378c5aa526bfcc4198c
3,284
py
Python
tests/integration/docusaurus/connecting_to_your_data/filesystem/pandas_yaml_example.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
2
2022-01-28T15:51:32.000Z
2022-02-02T05:07:58.000Z
tests/integration/docusaurus/connecting_to_your_data/filesystem/pandas_yaml_example.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
null
null
null
tests/integration/docusaurus/connecting_to_your_data/filesystem/pandas_yaml_example.py
UtahDave/great_expectations
99a54370f7ebeea5d95bca726200db01c7326d68
[ "Apache-2.0" ]
1
2021-10-08T01:24:50.000Z
2021-10-08T01:24:50.000Z
from ruamel import yaml import great_expectations as ge from great_expectations.core.batch import BatchRequest, RuntimeBatchRequest context = ge.get_context() datasource_yaml = f""" name: taxi_datasource class_name: Datasource module_name: great_expectations.datasource execution_engine: module_name: great_expectat...
37.318182
109
0.785323
219257d6fca672e61336064a10c639d6481bae26
11,153
py
Python
rootfs/api/tests/test_app_settings.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/api/tests/test_app_settings.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
rootfs/api/tests/test_app_settings.py
hanlucen/controller
2be591d44508bbca8058d3f856d10d425fa4f519
[ "MIT" ]
null
null
null
import requests_mock from django.core.cache import cache from django.contrib.auth.models import User from rest_framework.authtoken.models import Token from api.models import App from unittest import mock from scheduler import KubeException from api.tests import adapter, DryccTransactionTestCase @requests_mock.Mocke...
41.460967
94
0.602977
21925d7c0ed6858949316f6e37fed1a3d67ed996
5,067
py
Python
repalette/utils/transforms.py
danielgafni/repalette
9317fc4f164ef04500a47e37a5b0bd3917a82516
[ "Apache-2.0" ]
18
2021-05-04T15:26:59.000Z
2022-01-04T17:17:23.000Z
repalette/utils/transforms.py
danielgafni/repalette
9317fc4f164ef04500a47e37a5b0bd3917a82516
[ "Apache-2.0" ]
3
2020-11-07T14:45:28.000Z
2021-05-05T17:04:22.000Z
repalette/utils/transforms.py
danielgafni/repalette
9317fc4f164ef04500a47e37a5b0bd3917a82516
[ "Apache-2.0" ]
2
2021-05-04T15:54:31.000Z
2021-05-05T00:15:20.000Z
import numpy as np import torch from PIL import Image from skimage.color import hsv2rgb, lab2rgb, rgb2hsv, rgb2lab from torchvision.transforms import functional as TF from repalette.constants import A_RANGE, B_RANGE, L_RANGE class LABNormalizer: def __init__( self, old_range: torch.Tensor = None,...
30.709091
120
0.600947
2192d0c7667bdf52ebca1b7616b98f526b02a392
707
py
Python
example/example/spiders/javdb.py
hwpchn/ScapyPyppeteer
10dbbc1cf33c7d7d0ac25d6af42ea6bc819068b6
[ "MIT" ]
1
2021-04-28T15:37:26.000Z
2021-04-28T15:37:26.000Z
example/example/spiders/javdb.py
hwpchn/ScapyPyppeteer
10dbbc1cf33c7d7d0ac25d6af42ea6bc819068b6
[ "MIT" ]
null
null
null
example/example/spiders/javdb.py
hwpchn/ScapyPyppeteer
10dbbc1cf33c7d7d0ac25d6af42ea6bc819068b6
[ "MIT" ]
null
null
null
import scrapy from aroay_pyppeteer import PyppeteerRequest class JavdbSpider(scrapy.Spider): name = 'javdb' allowed_domains = ['d2pass.com'] def start_requests(self): yield PyppeteerRequest( url="https://www.d2pass.com/search?k=%E7%B9%B0%E3%82%8A%E8%BF%94%E3%81%97%E6%BF%83%E5%8E%9A%E...
35.35
267
0.630835
2192e1d4eced76c9abddafb290d777386f97c3c0
836
py
Python
tests/test_downloader.py
ahoho/congressional-record
292ae49d91e181b6fd607421dded02406a97d48c
[ "BSD-3-Clause" ]
1
2021-11-12T23:30:04.000Z
2021-11-12T23:30:04.000Z
tests/test_downloader.py
artemyk/congressional-record
6ebbcafb8b0e50ffc56dcb6089c243fd8961bfa9
[ "BSD-3-Clause" ]
null
null
null
tests/test_downloader.py
artemyk/congressional-record
6ebbcafb8b0e50ffc56dcb6089c243fd8961bfa9
[ "BSD-3-Clause" ]
null
null
null
import unittest from congressionalrecord.govinfo import cr_parser as cr from congressionalrecord.govinfo import downloader as dl import random import os from datetime import datetime,timedelta import json import re import logging logging.basicConfig(filename='tests.log', level=logging.DEBUG) class testDownloader(uni...
30.962963
85
0.748804
2193169459ac45bc2fb1dfbff3ec37e90def92d2
11,916
py
Python
tests/python/pants_test/engine/test_round_engine.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/test_round_engine.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/test_round_engine.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 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 itertools from pants.engine.round_engine import RoundEngine from pants.goal.goal ...
46.365759
96
0.704683
21934091d154cf2b24e12d85e6fde0fa3cabfb8d
91
py
Python
src/server/config/secrets_example.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
src/server/config/secrets_example.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
src/server/config/secrets_example.py
LiteralGenie/HvData
e4a8cac99c7443d7c6be41b4586b1d5a01e27a2b
[ "MIT" ]
null
null
null
class hv_session: authkey = b'key' ipb_member_id = '123' ipb_pass_hash = 'hash'
22.75
26
0.648352
219343696934b039937cc0188bfa739b00b5ef9a
7,815
py
Python
test.py
fultonb/caesar_cipher
40974f625fd0402a587dae83ec831629d522607a
[ "MIT" ]
null
null
null
test.py
fultonb/caesar_cipher
40974f625fd0402a587dae83ec831629d522607a
[ "MIT" ]
null
null
null
test.py
fultonb/caesar_cipher
40974f625fd0402a587dae83ec831629d522607a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """tests for cc_encode.py""" import os import random import re import string from subprocess import getstatusoutput, getoutput prg = './cc_encode.py' decode = '-d' lower_case = '-l' fox = './inputs/fox.txt' encoded_fox = './inputs/encoded_fox.txt' encoded_fox_lc = './inputs/encoded_fox_lower_ca...
27.229965
77
0.528599
219349fa26358cf12f1bbdbd7594c97da1f47409
9,002
py
Python
expts/helpers/density_model_layer_statistics.py
jayaram-r/adversarial-detection
94fd0881a3eef179e66301629c9a5e348ce46bd1
[ "MIT" ]
12
2021-06-08T14:34:10.000Z
2022-03-27T08:01:00.000Z
expts/helpers/density_model_layer_statistics.py
adverML/adversarial-detection
0173b19a7352a2ec769f24a89d4e2cf8f4423514
[ "MIT" ]
6
2021-04-19T19:13:37.000Z
2022-02-15T17:50:31.000Z
expts/helpers/density_model_layer_statistics.py
adverML/adversarial-detection
0173b19a7352a2ec769f24a89d4e2cf8f4423514
[ "MIT" ]
6
2021-05-26T11:53:45.000Z
2022-02-23T22:39:33.000Z
""" Probability density models for the joint distribution of the test statistics from different layers of a DNN. The models can be made conditional on either the predicted class or the source class. We use a multivariate log-normal mixture as the parametric density model for the test statistics because they are usuall...
40.918182
116
0.638969
21936cddb9aa609a7f5c71342c1c118f998f0b77
8,124
py
Python
tests/dbobject/test_operclass.py
andreypopp/Pyrseas
5fadc91bfd1e3e430e8f53d434df18b9abea3cb0
[ "BSD-3-Clause" ]
1
2015-03-16T09:10:47.000Z
2015-03-16T09:10:47.000Z
tests/dbobject/test_operclass.py
andreypopp/Pyrseas
5fadc91bfd1e3e430e8f53d434df18b9abea3cb0
[ "BSD-3-Clause" ]
null
null
null
tests/dbobject/test_operclass.py
andreypopp/Pyrseas
5fadc91bfd1e3e430e8f53d434df18b9abea3cb0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test operator classes""" import unittest from pyrseas.testutils import DatabaseToMapTestCase from pyrseas.testutils import InputMapToSqlTestCase, fix_indent CREATE_TYPE_STMT = """ CREATE TYPE myint; CREATE FUNCTION myintin(cstring) RETURNS myint AS 'int4in' LANGUAGE internal; CREATE FUNCTI...
46.422857
79
0.586903
21936e739ae7dfd1792316093d7f66d947d4edf6
747
py
Python
squat/cli.py
binayr/SQUAT
76a3c0c417add3ee685b59fd75a1ff4a51b16182
[ "MIT" ]
null
null
null
squat/cli.py
binayr/SQUAT
76a3c0c417add3ee685b59fd75a1ff4a51b16182
[ "MIT" ]
null
null
null
squat/cli.py
binayr/SQUAT
76a3c0c417add3ee685b59fd75a1ff4a51b16182
[ "MIT" ]
null
null
null
import sys from arghandler import ArgumentHandler from argparse import RawDescriptionHelpFormatter try: from Classifier.classifier_cli import classifier_model_cli except: from squat.Classifier.classifier_cli import classifier_model_cli def main(args=sys.argv[1:]): # noqa pragma: no cover """Parse the a...
21.970588
68
0.705489
2193728cb95dfe50a24e6313f5d7fe33c53044d3
600
py
Python
dagtests/sanitycheck.py
jacksonloper/dagtests
37bd0c3c3a94a84bf3b6a27d4de45f4b8d3415ab
[ "MIT" ]
null
null
null
dagtests/sanitycheck.py
jacksonloper/dagtests
37bd0c3c3a94a84bf3b6a27d4de45f4b8d3415ab
[ "MIT" ]
null
null
null
dagtests/sanitycheck.py
jacksonloper/dagtests
37bd0c3c3a94a84bf3b6a27d4de45f4b8d3415ab
[ "MIT" ]
null
null
null
''' functions for making sure we're not screwing up ''' import networkx import numpy as np def sanity_check(adj_matrix,selections): ''' Checks that the selections are consistent with the adjacency matrix, i.e. that - if selections[v] and w is an ancestor of v, then selections[w]. ''' g = net...
25
70
0.708333
21938637987c74f539f62070867f57254f041b0e
3,020
py
Python
src/tools/data/hdfs_export/spark_examples/MatCntMin.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/data/hdfs_export/spark_examples/MatCntMin.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/data/hdfs_export/spark_examples/MatCntMin.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import sys, os from pyspark import SparkContext from pyspark import SparkConf KeyDigits = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ%#" def AsciiKeyToIndex(key, keybase=None): if key is None: return 0 kb = 0 if keybase: kb = AsciiKeyToIndex(keybase) addone = 0; ...
36.385542
174
0.592384
21938b8fea58c2b3dc65acdce60cc77161da4e04
1,492
py
Python
src/azure-cli-core/azure/cli/core/extensions/experimental.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2018-01-30T05:55:29.000Z
2018-01-30T05:55:29.000Z
src/azure-cli-core/azure/cli/core/extensions/experimental.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:25:36.000Z
2022-03-29T22:03:55.000Z
src/azure-cli-core/azure/cli/core/extensions/experimental.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2020-07-13T22:28:09.000Z
2020-07-13T22:28:09.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.263158
94
0.516086
21938b918233a74803eb56d72266e87dc703b6f9
1,853
py
Python
chapter2/oncodrivefm/setup.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
1
2015-12-22T00:53:18.000Z
2015-12-22T00:53:18.000Z
chapter2/oncodrivefm/setup.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
chapter2/oncodrivefm/setup.py
chris-zen/phd-thesis
1eefdff8e7ca1910304e27ae42551dc64496b101
[ "Unlicense" ]
null
null
null
""" OncodriveFM =========== OncodriveFM detects candidate cancer driver genes and pathways from catalogs of somatic mutations in a cohort of tumors by computing the bias towards the accumulation of functional mutations (FM bias). This novel approach avoids some known limitations of recurrence-based approaches, such as...
30.377049
108
0.726929
21939b2eb89ac1669f0828f37ba4ae3a790f57bc
93
py
Python
abc/049/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/049/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/049/B.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
H, W = map(int, input().split()) for i in range(H): C = input() print(C) print(C)
18.6
32
0.516129
21939c5323036a090c0bed78e9613687de8d3945
12,048
py
Python
online_classes.py
charlessutton/OLMAR
fb9e95083d4d7d568708d3025e2f23fd32271468
[ "MIT" ]
8
2016-12-04T15:42:43.000Z
2021-06-17T19:20:53.000Z
online_classes.py
charlessutton/OLMAR
fb9e95083d4d7d568708d3025e2f23fd32271468
[ "MIT" ]
null
null
null
online_classes.py
charlessutton/OLMAR
fb9e95083d4d7d568708d3025e2f23fd32271468
[ "MIT" ]
6
2018-09-12T12:06:27.000Z
2021-10-12T20:59:39.000Z
from universal.algo import Algo from universal import tools import numpy as np class OLRANDOM(Algo): PRICE_TYPE = 'raw' REPLACE_MISSING = True def __init__(self, window=5, eps=10): """ :param window: Lookback window. :param eps: Constraint on return for new weights on last price (...
28.617577
102
0.567065
2193a6c5272a6d9e217ccdc47dc6c95318930281
569
py
Python
observations/observations.py
sarahaguasvivas/open_ended_learning
f23394c026843abca675833b424ce4d8a59036f3
[ "MIT" ]
null
null
null
observations/observations.py
sarahaguasvivas/open_ended_learning
f23394c026843abca675833b424ce4d8a59036f3
[ "MIT" ]
1
2019-10-24T23:13:18.000Z
2019-10-24T23:13:18.000Z
observations/observations.py
sarahaguasvivas/open_ended_learning
f23394c026843abca675833b424ce4d8a59036f3
[ "MIT" ]
null
null
null
""" Observations: This class contains the simualted universe that the agent is going to experience. In the real world this will be an observation The reason this class is abstract is because we might want to stack together multiple different observations in the real world, so for e...
20.321429
39
0.685413
2193b63d847728f4e18928ed8dae7835b4965819
13,696
py
Python
plantsegtools/proofreading/proofread.py
hci-unihd/plant-seg-tools
38cef53940e9330e12e74c9ea98035814bde90fc
[ "MIT" ]
null
null
null
plantsegtools/proofreading/proofread.py
hci-unihd/plant-seg-tools
38cef53940e9330e12e74c9ea98035814bde90fc
[ "MIT" ]
null
null
null
plantsegtools/proofreading/proofread.py
hci-unihd/plant-seg-tools
38cef53940e9330e12e74c9ea98035814bde90fc
[ "MIT" ]
2
2021-04-24T16:29:22.000Z
2021-04-24T16:29:38.000Z
import os import napari import numpy as np from skimage.measure import label from skimage.segmentation import find_boundaries, watershed from skimage.filters import gaussian from plantsegtools.utils import create_h5, smart_load, load_h5, H5_FORMATS, relabel_segmentation from plantsegtools.postprocess.seg_nuclei_consis...
38.580282
118
0.623102
2193b8718261bb48ba1976e172d5ea05a30b4586
5,564
py
Python
feedback.py
TUD-RST/pyinduct_ackrep_example
21295c40d7fdee97651ebd60fce6a0c06fa02fdc
[ "BSD-3-Clause" ]
null
null
null
feedback.py
TUD-RST/pyinduct_ackrep_example
21295c40d7fdee97651ebd60fce6a0c06fa02fdc
[ "BSD-3-Clause" ]
null
null
null
feedback.py
TUD-RST/pyinduct_ackrep_example
21295c40d7fdee97651ebd60fce6a0c06fa02fdc
[ "BSD-3-Clause" ]
1
2021-07-14T09:14:48.000Z
2021-07-14T09:14:48.000Z
import numpy as np from scipy.integrate import quad from scipy.interpolate import interp1d from scipy.special import i1 import pyinduct as pi from pyinduct.core import integrate_function from simulation import ModalApproximation, FEMApproximation class AnalyticBacksteppingController(pi.SimulationInput): """ ...
40.028777
81
0.643781
2193b94a9fd9a1326f171f0bdff28a84536b737c
23,650
py
Python
armi/bookkeeping/historyTracker.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/bookkeeping/historyTracker.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
armi/bookkeeping/historyTracker.py
bsculac/armi
22399244a88e67fc09996981081f7d5aab7032b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, 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 or agreed to in writi...
36.440678
119
0.592939
2193ceb2984d13fe02ca7fa7e837f7d01b04075c
1,076
py
Python
applications/user/backends.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/user/backends.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/user/backends.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth.backends import ModelBackend from django.contrib.auth import get_user_model UserModel = get_user_model() class AuthBasicBackend(ModelBackend): def authenticate(self, request, username=None, password=None, **kwargs): field_type = kwargs.get('field_ty...
41.384615
82
0.638476
2193f643cf56a1fc0fa515e01c1510a23e37a1e2
3,182
py
Python
src/augraphy/augmentations/noisetexturize.py
faizan1041/augraphy
9ea0502516606f1bc73b4067b18955308b7c6332
[ "MIT" ]
null
null
null
src/augraphy/augmentations/noisetexturize.py
faizan1041/augraphy
9ea0502516606f1bc73b4067b18955308b7c6332
[ "MIT" ]
null
null
null
src/augraphy/augmentations/noisetexturize.py
faizan1041/augraphy
9ea0502516606f1bc73b4067b18955308b7c6332
[ "MIT" ]
null
null
null
import cv2 import numpy as np import random from augraphy.base.augmentation import Augmentation from augraphy.base.augmentationresult import AugmentationResult class NoiseTexturizeAugmentation(Augmentation): """Creates a random noise based texture pattern to emulate paper textures. Consequently applies noise ...
37.880952
130
0.631364
2194028266aa59d593e17d157f571576d02fd6b9
39,156
py
Python
test/test_datapipe.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
null
null
null
test/test_datapipe.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
null
null
null
test/test_datapipe.py
jkulhanek/torchdata
2e8b9f613a13c74b424651649f317c7b322131d6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import io import itertools import unittest import warnings from collections import defaultdict from typing imp...
44.647662
120
0.645827
21945e3c2e60de19a2017fb7f8ba7ff87c5d211c
771
py
Python
setup.py
lgwillmore/typemock
cbde9e8f1388785998b72ee8d0420f083eaeea7c
[ "MIT" ]
8
2019-06-11T12:16:06.000Z
2022-03-22T12:58:30.000Z
setup.py
lgwillmore/type-mock
cbde9e8f1388785998b72ee8d0420f083eaeea7c
[ "MIT" ]
7
2019-06-16T19:16:46.000Z
2020-12-08T20:44:02.000Z
setup.py
lgwillmore/type-mock
cbde9e8f1388785998b72ee8d0420f083eaeea7c
[ "MIT" ]
1
2020-02-10T18:24:40.000Z
2020-02-10T18:24:40.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="typemock", version="0.5.1-SNAPSHOT", author="Laurence Willmore", description="Type safe mocking", long_description=long_description, long_description_content_type="text/markdown", ...
28.555556
50
0.631647
219473d0ecfc557ff9add91b27726d25ac5da04d
6,265
py
Python
selfdrive/controls/lib/pid.py
seanchen5716/openpilot_088
c7947d22d1a5a021fa9424bc97cf75f064ae9ded
[ "MIT" ]
5
2021-08-06T12:14:43.000Z
2021-09-01T22:36:11.000Z
selfdrive/controls/lib/pid.py
seanchen5716/openpilot_088
c7947d22d1a5a021fa9424bc97cf75f064ae9ded
[ "MIT" ]
1
2021-08-24T11:49:24.000Z
2021-08-24T11:49:24.000Z
selfdrive/controls/lib/pid.py
seanchen5716/openpilot_088
c7947d22d1a5a021fa9424bc97cf75f064ae9ded
[ "MIT" ]
31
2021-08-06T13:21:44.000Z
2022-01-22T01:31:21.000Z
import numpy as np from common.numpy_fast import clip, interp from selfdrive.config import Conversions as CV def apply_deadzone(error, deadzone): if error > deadzone: error -= deadzone elif error < - deadzone: error += deadzone else: error = 0. return error class LatPIDController(): def __init_...
30.412621
146
0.653152
21947b9b7a79f1607a4ae7779221a91f248e9531
360
py
Python
examples/pluggable/hello_app/site.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/pluggable/hello_app/site.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
examples/pluggable/hello_app/site.py
pauleveritt/viewdom_wired
40d8f2f190a12bbd07ff957654626001a9f3a778
[ "MIT" ]
null
null
null
from dataclasses import dataclass from viewdom import html, VDOM from viewdom_wired import component from .plugins import greeting from .plugins.greeting import Greeting plugins = (greeting,) @component(for_=Greeting) @dataclass class SiteGreeting: name: str = 'Site' def __call__(self) -> VDOM: re...
18.947368
49
0.733333
2194b8716e82caa74ac9a9a0f0db3258a0d4fb49
2,399
py
Python
taskmanager/taskmanager.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
3
2016-02-20T00:47:52.000Z
2018-07-27T22:57:36.000Z
taskmanager/taskmanager.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
1
2016-07-29T07:19:01.000Z
2016-07-29T07:19:01.000Z
taskmanager/taskmanager.py
InWorldz/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
2
2018-04-09T18:15:18.000Z
2018-05-20T16:14:28.000Z
''' Created on Dec 30, 2013 Daemon that reads the maestroctl database and looks for tasks to execute it then executes tasks in a limited batch size @author: David Daeschler ''' import sys import os import logging from optparse import OptionParser from config import Configuration from TaskManagerServer import TaskMa...
32.863014
189
0.719466
2194bc60dd6b52c09a5410ff1582577ac4e02678
1,527
py
Python
generated/python/proto-google-cloud-monitoring-v3/setup.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/proto-google-cloud-monitoring-v3/setup.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/proto-google-cloud-monitoring-v3/setup.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
"""A setup module for the GRPC Stackdriver Monitoring API service. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ import setuptools from setuptools import setup, find_packages install_requires = [ 'googleapis-common-protos>=1.5.2, <2.0dev', 'oauth2client>...
29.941176
103
0.691552
2194c7e771a5c5cd1159e3585aa3f8e21ef45b4c
5,489
py
Python
sdk/keyvault/azure-keyvault-keys/samples/key_rotation.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/keyvault/azure-keyvault-keys/samples/key_rotation.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/keyvault/azure-keyvault-keys/samples/key_rotation.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import os from azure.identity import DefaultAzureCredential from azure.keyvault.keys import KeyClient, KeyRotationLifetimeAction, KeyRotationPolicy, KeyRotationPolicyAct...
54.346535
123
0.738021
2194c970d0afb399ab561d8d32cd2b5bc89b554b
6,651
py
Python
setup.py
d-michail/python-jheaps
65e1f4036b125dc065dc4398bf2eac0e95726f7a
[ "Apache-2.0" ]
null
null
null
setup.py
d-michail/python-jheaps
65e1f4036b125dc065dc4398bf2eac0e95726f7a
[ "Apache-2.0" ]
null
null
null
setup.py
d-michail/python-jheaps
65e1f4036b125dc065dc4398bf2eac0e95726f7a
[ "Apache-2.0" ]
null
null
null
import sys if sys.version_info < (3, 6): raise Exception('Building jheaps requires Python 3.6 or higher.') import os import codecs import setuptools from setuptools import setup from setuptools import Command from setuptools import Extension from setuptools.command.build_ext import build_ext from distutils.comman...
38.894737
129
0.625169
2194e98fd54cc9dd93261079bffaf2690f97a764
803
py
Python
src/services/explorer/exceptions.py
solomonricky/epic-awesome-gamer
a6ecff90a716bb145931bb4042f9510e68698694
[ "Apache-2.0" ]
null
null
null
src/services/explorer/exceptions.py
solomonricky/epic-awesome-gamer
a6ecff90a716bb145931bb4042f9510e68698694
[ "Apache-2.0" ]
null
null
null
src/services/explorer/exceptions.py
solomonricky/epic-awesome-gamer
a6ecff90a716bb145931bb4042f9510e68698694
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Time : 2022/1/17 15:20 # Author : QIN2DIM # Github : https://github.com/QIN2DIM # Description: from typing import Optional, Sequence class Explorer(Exception): def __init__(self, msg: Optional[str] = None, stacktrace: Optional[Sequence[str]] = None): self.msg = msg ...
27.689655
94
0.64259
21953c9d63295ef7f2f03f5a36455a4397f9ae23
2,234
py
Python
python/v2.6/create_campaign.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
null
null
null
python/v2.6/create_campaign.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
null
null
null
python/v2.6/create_campaign.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
29.786667
78
0.714414
21954bbd7aa6e68634088f97908ad4aaae2e2a16
1,885
py
Python
pymmbot/bot_settings.py
coinpit/pymmbot
88efc8b06b2e5f7d871e22e505998e8e44c73de6
[ "MIT" ]
7
2018-02-25T08:49:02.000Z
2019-11-18T00:43:04.000Z
pymmbot/bot_settings.py
coinpit/pymmbot
88efc8b06b2e5f7d871e22e505998e8e44c73de6
[ "MIT" ]
2
2017-08-15T18:05:38.000Z
2017-08-17T00:26:36.000Z
pymmbot/bot_settings.py
coinpit/pymmbot
88efc8b06b2e5f7d871e22e505998e8e44c73de6
[ "MIT" ]
3
2017-11-15T23:34:01.000Z
2020-11-26T16:47:20.000Z
# bitmex api key. This is sample. change with your bitmex api key and secret BITMEX_API_KEY = 'Ag-_DuBvWrO8IK-6FnGhldzR' BITMEX_API_SECRET = '_Dss0iITNH5-4QlCNYxqXQ7kA2ngSmhKX4tlRBdn4mmsR3_A' # coinpit api key. This is sample api key. copy api key content downloaded from coinpit. COINPIT_API_KEY = { "name" ...
48.333333
152
0.788329
219562327d47a34355acfd74df6d1124af4e1545
8,234
py
Python
mtgjson5/classes/mtgjson_card.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
mtgjson5/classes/mtgjson_card.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
mtgjson5/classes/mtgjson_card.py
kodabb/mtgjson
e81dcdac4aa1191152dfa95eaa89c85921a48bdc
[ "MIT" ]
null
null
null
""" MTGJSON Singular Card Object """ import json from typing import Any, Dict, List, Optional, Set from ..classes.mtgjson_foreign_data import MtgjsonForeignDataObject from ..classes.mtgjson_game_formats import MtgjsonGameFormatsObject from ..classes.mtgjson_identifiers import MtgjsonIdentifiersObject from ..classes.mt...
28.689895
85
0.613189
21957f5aa04cfa5bb276e72684bb1a07c9d05c13
1,085
py
Python
Task1/CategoryCount.py
njetty/Yelp-Review-Analysis
62af9f261734cebaa5c414bc3724a495a644c09d
[ "MIT" ]
null
null
null
Task1/CategoryCount.py
njetty/Yelp-Review-Analysis
62af9f261734cebaa5c414bc3724a495a644c09d
[ "MIT" ]
null
null
null
Task1/CategoryCount.py
njetty/Yelp-Review-Analysis
62af9f261734cebaa5c414bc3724a495a644c09d
[ "MIT" ]
null
null
null
#Author Naveen Jetty # Get the categories from the businessDict.pickle file import pickle from pprint import pprint from time import time import sys from collections import defaultdict class Business: def __init__(self, business_id, stars, name, categories): self.id = business_id self.stars = stars self.name = ...
26.463415
62
0.749309
21958086fb62d7d4e0bdd1639907c602edd2ce22
5,960
py
Python
networks/heart_disease/main.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2021-05-23T13:43:11.000Z
2021-05-23T13:43:11.000Z
networks/heart_disease/main.py
artemk1337/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
1
2020-02-14T02:12:11.000Z
2020-02-14T02:12:11.000Z
networks/heart_disease/main.py
artemkush1/neuro
c0dd8cac87f484cd008145c87c3bd77ba85acf05
[ "Apache-2.0" ]
null
null
null
import numpy as np from numpy import genfromtxt import os from sys import exit import keras import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense, Dropout from keras.metrics import Precision, Recall, AUC from keras.callbacks import ModelCheckpoint, TerminateOnNaN, ReduceLROn...
28.653846
117
0.543456
2195b86a78ef7dc325ec7b4b66c01f3421f46b10
2,023
py
Python
smartmin/management/tests.py
jaynandu/smartmin
b232e3a218b042e21b51c3ff028c6985d115cde0
[ "BSD-3-Clause" ]
null
null
null
smartmin/management/tests.py
jaynandu/smartmin
b232e3a218b042e21b51c3ff028c6985d115cde0
[ "BSD-3-Clause" ]
null
null
null
smartmin/management/tests.py
jaynandu/smartmin
b232e3a218b042e21b51c3ff028c6985d115cde0
[ "BSD-3-Clause" ]
null
null
null
from unittest.mock import patch, call from django.core.management import call_command from django.db.migrations import RunSQL, RunPython from django.test import TestCase from .commands.collect_sql import SqlType, SqlObjectOperation class MockMigration(object): def __init__(self, operations): self.operat...
36.781818
117
0.633218
2195c876683d35422c8eacbb1d1c42d68332b4fc
1,886
py
Python
linux/poolboy/funcs_bake.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/poolboy/funcs_bake.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
linux/poolboy/funcs_bake.py
petergyorgy/virtue
3b4dbfbdf9f5e121d9c9887d675fdd3065ecdd3b
[ "BSD-3-Clause" ]
null
null
null
import pprint import bakepool from traceback import print_exc from threading import Thread ''' bake_start_func params: bakeID: string | a unique id to use for the baked image ramsize: string | Just make it "4G", uses qemu, not kube conventions cpucount: string | qemu will be run with -smp <cpucount>. Th...
26.194444
167
0.711029
2195d3de896d74440a114f9da2100316c934fa0a
427
py
Python
backend/src/viasp/shared/defaults.py
glaserL/viasp
740cb13c9d71c76b9a702597083b5b75b5a5eafb
[ "MIT" ]
null
null
null
backend/src/viasp/shared/defaults.py
glaserL/viasp
740cb13c9d71c76b9a702597083b5b75b5a5eafb
[ "MIT" ]
9
2022-03-15T12:10:58.000Z
2022-03-23T19:33:51.000Z
backend/src/viasp/shared/defaults.py
glaserL/viasp
740cb13c9d71c76b9a702597083b5b75b5a5eafb
[ "MIT" ]
null
null
null
import pathlib DEFAULT_BACKEND_PROTOCOL = "http" DEFAULT_BACKEND_HOST = "localhost" DEFAULT_BACKEND_PORT = 5050 DEFAULT_BACKEND_URL = f"{DEFAULT_BACKEND_PROTOCOL}://{DEFAULT_BACKEND_HOST}:{DEFAULT_BACKEND_PORT}" SHARED_PATH = pathlib.Path(__file__).parent.resolve() GRAPH_PATH = SHARED_PATH / "viasp_graph_storage.json"...
38.818182
99
0.822014
2195d633ebd43dc57f24df2b82682dccad2ff2a9
348
py
Python
website/search/routes.py
cangkevin/asain-show-rss-website-wrapper
ca7953e2b764705d1a78c691e1920b2f632e6bc9
[ "MIT" ]
null
null
null
website/search/routes.py
cangkevin/asain-show-rss-website-wrapper
ca7953e2b764705d1a78c691e1920b2f632e6bc9
[ "MIT" ]
46
2018-12-16T02:38:34.000Z
2021-06-01T22:44:45.000Z
website/search/routes.py
cangkevin/asain-show-rss-website-wrapper
ca7953e2b764705d1a78c691e1920b2f632e6bc9
[ "MIT" ]
1
2019-01-06T04:13:51.000Z
2019-01-06T04:13:51.000Z
import logging from flask import request, jsonify from website.search import bp from website.search.client import query_index logger = logging.getLogger(__name__) @bp.route("/search") def search_shows(): query = request.args.get("q") logger.info("Search query: %s", query) response = query_index(query) ...
21.75
45
0.738506
2196169751a244f732ec87a44514d7e3f8109c2a
3,341
py
Python
savu/plugins/segmentation/evolving_contours/region_grow3D.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/segmentation/evolving_contours/region_grow3D.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/segmentation/evolving_contours/region_grow3D.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2019 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...
39.77381
110
0.668662
219639d6abcdbd7368d49430bca7443a28265fc4
8,201
py
Python
tests/unit-tests/common/test_config.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
tests/unit-tests/common/test_config.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
tests/unit-tests/common/test_config.py
TheDubliner/confluencebuilder
f92d63ae9949c52cf8639643073aacb249cacd62
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ :copyright: Copyright 2016-2020 Sphinx Confluence Builder Contributors (AUTHORS) :license: BSD-2-Clause (LICENSE) """ from contextlib import contextmanager from sphinxcontrib.confluencebuilder.builder import ConfluenceBuilder from sphinxcontrib.confluencebuilder.exceptions import Confluence...
42.273196
83
0.703329
2196490d3c62d3c1626e0a84c015a059c8097ede
155,796
py
Python
rummage/lib/gui/util/png.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
55
2015-02-15T08:17:55.000Z
2022-03-11T11:55:39.000Z
rummage/lib/gui/util/png.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
264
2015-01-29T20:27:40.000Z
2022-03-03T04:08:48.000Z
rummage/lib/gui/util/png.py
facelessuser/Rummage
74f0ce1b078eef40c3ba683dbc4638112f3b9bb7
[ "MIT" ]
12
2017-08-30T22:54:20.000Z
2022-03-21T01:05:50.000Z
#!/usr/bin/env python # $URL$ # $Rev$ # png.py - PNG encoder/decoder in pure Python # # Copyright (C) 2006 Johann C. Rocholl <johann@browsershots.org> # Portions Copyright (C) 2009 David Jones <drj@pobox.com> # And probably portions Copyright (C) 2006 Nicko van Someren <nicko@nicko.org> # # Original concept by Johann...
40.97738
117
0.643656
21964cd7e7f2d9b296fd1b502a7aa69585932812
19,434
py
Python
data_utils.py
cybertronai/transformer-xl
0ea3b8295695a15ca2454622070c330f88c9a179
[ "Apache-2.0" ]
133
2019-04-17T05:06:39.000Z
2022-03-24T03:43:56.000Z
data_utils.py
cybertronai/transformer-xl
0ea3b8295695a15ca2454622070c330f88c9a179
[ "Apache-2.0" ]
21
2019-05-01T03:54:10.000Z
2021-03-12T07:00:44.000Z
data_utils.py
cybertronai/transformer-xl
0ea3b8295695a15ca2454622070c330f88c9a179
[ "Apache-2.0" ]
18
2019-04-28T16:56:06.000Z
2021-04-01T05:52:41.000Z
"""Data loading utilities.""" import glob import os from typing import List, Generator, TypeVar, Optional, Sequence import natsort import numpy as np import portalocker import torch import globals as g from utils.vocabulary import OpenAIVocab, Vocab class LMOrderedIterator: def __init__(self, data, bsz: int, b...
41.261146
124
0.574148
219659963c5883a793451e80ddf812b7ac4f69a2
12,443
py
Python
larch/xafs/mback.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/xafs/mback.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
larch/xafs/mback.py
Bob620/xraylarch
f8d38e6122cc0e8c990b0f024db3b503a5fbf057
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ XAFS MBACK normalization algorithms. """ import numpy as np from scipy.special import erfc from lmfit import Parameter, Parameters, minimize from larch import Group, isgroup, parse_group_args from larch.math import index_of, index_nearest, remove_dups, remove_nans2 from larch.xray import ...
36.276968
94
0.583541
21965c854d47138712c878bb309bd4aa7d82ef0a
1,586
py
Python
lib/bh1750.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
2
2022-01-31T19:53:02.000Z
2022-02-28T13:11:01.000Z
lib/bh1750.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
null
null
null
lib/bh1750.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
1
2022-01-24T17:57:14.000Z
2022-01-24T17:57:14.000Z
import uasyncio as asyncio from utime import sleep_ms """Micropython BH1750 ambient light sensor driver.""" class BH1750(): PWR_OFF = 0x00 PWR_ON = 0x01 RESET = 0x07 # modes CONT_LOWRES = 0x13 CONT_HIRES_1 = 0x10 CONT_HIRES_2 = 0x11 ONCE_HIRES_1 = 0x20 ONCE_HIRES_2 = 0x21 ONC...
26.881356
69
0.590164
21965f255ffa9f5644f22068a40961f8ca75b5a3
891
py
Python
src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2018-01-30T05:55:29.000Z
2018-01-30T05:55:29.000Z
src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
38.73913
94
0.586981
21968a22d1186dd18c6431ada446a30cfec71a70
5,194
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_usage_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_03_01/aio/operations/_usage_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 ...
44.016949
134
0.666153
2196a9641dc0c94c0e353e18dfab722682c48288
494
py
Python
portals/wwits/groups/access/user_customers/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/access/user_customers/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
portals/wwits/groups/access/user_customers/models.py
jalanb/portals
7a5360b48547719d3fbe50790f08eaf5571148dd
[ "ADSL" ]
null
null
null
from dataclasses import dataclass from typing import List from portals.wwits.mixins import WWITSBaseMixin @dataclass class ParmModel: Version: str Env: str UserID: str Session: int Source: str RC: int ResultMsg: str @dataclass class UserCustomerModel(WWITSBaseMixin): Customer: str ...
15.935484
47
0.708502
2196d0422f9bad6d6eb99da3136818138e258f2a
3,212
py
Python
nova/api/openstack/compute/plugins/v3/multinic.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/plugins/v3/multinic.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/plugins/v3/multinic.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# Copyright 2011 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
34.537634
79
0.704857
2196da6a5d07ff030a0606057c1125c651382687
1,745
py
Python
data/level/level10224.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level10224.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level10224.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': 10224, 'move_count': '26', 'board_info': {(0, 8): {}, (0, 7): {}, (0, 6): {}, (0, 5): {}, (0, 4): {}, (0, 3): {'fall_point': (0, -1)}, (1, 8): {}, (1, 7): {}, (1, 6): {}, (1, 3): {}, (1, 1): {}, (1, 0): {'fall_point': (0, -1)}, (2, 8): {}, (2,...
102.647059
119
0.225788
21971b5f123f115e32d878f5293be743f645ba07
1,217
py
Python
device_model/migrations/0006_auto_20190604_1844.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
null
null
null
device_model/migrations/0006_auto_20190604_1844.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
6
2021-03-19T16:01:33.000Z
2022-03-12T00:54:23.000Z
device_model/migrations/0006_auto_20190604_1844.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-06-04 18:44 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('device_model', '0005_auto_20190604_1652'), ] operations = [ migrations.AddField( model_name='chip...
32.891892
148
0.620378
219739a6d5a3c7e2db3fc2018f6b45445a7f72e8
3,438
py
Python
var/spack/repos/builtin/packages/spfft/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/spfft/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/spfft/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 * class Spfft(CMakePackage, CudaPackage): """Sparse 3D FFT library with MPI, OpenMP, CUDA and ROC...
41.926829
96
0.65096
21977085d570363c873f109ab4e1ebb90f451ae5
5,101
py
Python
django_pgschemas/management/commands/cloneschema.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
85
2019-01-03T02:22:03.000Z
2022-03-09T23:15:56.000Z
django_pgschemas/management/commands/cloneschema.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
52
2019-02-12T21:04:43.000Z
2022-03-05T15:20:16.000Z
django_pgschemas/management/commands/cloneschema.py
ktowen/django-pgschemas
5487c82d7a44297e12b80ef899a9aee0b6879bc5
[ "MIT" ]
12
2019-01-31T02:36:06.000Z
2021-06-15T22:06:12.000Z
from distutils.util import strtobool from django.core.checks import Tags, run_checks from django.core.management.base import BaseCommand, CommandError from ...utils import clone_schema, get_domain_model, get_tenant_model class Command(BaseCommand): help = "Clones a schema" def _run_checks(self, **kwargs): ...
40.484127
115
0.546756
21978db64b4cb448ade55dba6bc7004dae0c5121
251
py
Python
manage.py
setsuna-/pasteque
ca38d1aa17aa768bb8112fe813b231d28a25a166
[ "MIT" ]
1
2021-08-28T09:57:38.000Z
2021-08-28T09:57:38.000Z
manage.py
setsuna-/pasteque
ca38d1aa17aa768bb8112fe813b231d28a25a166
[ "MIT" ]
null
null
null
manage.py
setsuna-/pasteque
ca38d1aa17aa768bb8112fe813b231d28a25a166
[ "MIT" ]
2
2018-05-06T22:17:09.000Z
2019-09-17T15:13:28.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webtools.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
22.818182
72
0.772908
2197a87e3efc145c4f4b5b34ee8bd897f2796467
3,593
py
Python
aiida_siesta/examples/workflows/example_bandgap.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
aiida_siesta/examples/workflows/example_bandgap.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
aiida_siesta/examples/workflows/example_bandgap.py
albgar/legacy_aiida_plugin
a375d357c88b30209bee9b341064f84a8ef244d6
[ "MIT" ]
null
null
null
#!/usr/bin/env runaiida #Not required by AiiDA import os.path as op import sys #AiiDA classes and functions from aiida.engine import submit from aiida.orm import load_code from aiida.orm import (Dict, StructureData, KpointsData) from aiida.tools import get_explicit_kpoints_path from aiida_siesta.data.psf import PsfDa...
26.036232
83
0.631227
2197c495d52af12626dd9e844a55d6f18a343b94
954
py
Python
ml-agents-envs/setup.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
ml-agents-envs/setup.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
ml-agents-envs/setup.py
vkakerbeck/ml-agents-dev
e3a52b5787af06c07fbd945e2ac37bb3bf07ce0c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from os import path here = path.abspath(path.dirname(__file__)) setup( name='mlagents_envs', version='0.8.1', description='Unity Machine Learning Agents Interface', url='https://github.com/Unity-Technologies/ml-agents', author='Unity Technologies', author_email='ML...
28.909091
87
0.618449
2197e752421eaeb90c55ee2eb07c6163e22ea1f6
5,044
py
Python
src/mic/microphone_stream.py
BrownsugarZeer/Multi_SSL
f0ce429d95680e4eb56d99f04a4bbccf33c27cc9
[ "MIT" ]
2
2022-02-06T16:49:35.000Z
2022-03-14T13:22:24.000Z
src/mic/microphone_stream.py
BrownsugarZeer/Multi_SSL
f0ce429d95680e4eb56d99f04a4bbccf33c27cc9
[ "MIT" ]
null
null
null
src/mic/microphone_stream.py
BrownsugarZeer/Multi_SSL
f0ce429d95680e4eb56d99f04a4bbccf33c27cc9
[ "MIT" ]
null
null
null
""" # Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. Modified to the latest version since some of the functions were deprecated. Original code repository: https://github.com/pytorch/audio/blob/master/examples/interactive_asr/vad.py#L38 """ import numpy as np import pyaudio import queue import...
35.77305
87
0.618358
21982a8e4ecc873036221f7ca48558d6dd008cd0
593
py
Python
hive/utils/system.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
78
2017-03-09T15:33:08.000Z
2022-03-30T06:01:19.000Z
hive/utils/system.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
193
2017-04-25T19:39:20.000Z
2021-06-29T01:53:53.000Z
hive/utils/system.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
68
2017-05-07T17:31:08.000Z
2021-08-23T01:17:00.000Z
"""System-specific utility methods""" import sys import resource USE_COLOR = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() def colorize(string, color='93', force=False): """Colorizes a string for stdout, if attached to terminal""" if not USE_COLOR and not force: return string return "\033...
31.210526
69
0.694772
219839938d4c522c22bae54d593bce8a6d90efce
1,623
py
Python
Analytics/resources/moving_sensors/update_tracker.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
4
2018-11-21T14:42:18.000Z
2020-05-11T10:52:59.000Z
Analytics/resources/moving_sensors/update_tracker.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
60
2018-11-21T15:11:59.000Z
2019-12-02T10:46:44.000Z
Analytics/resources/moving_sensors/update_tracker.py
thanosbnt/SharingCitiesDashboard
5d123691d1f25d0b85e20e4e8293266bf23c9f8a
[ "Apache-2.0" ]
7
2018-11-21T14:42:44.000Z
2019-11-28T16:24:14.000Z
import logging from http import HTTPStatus from flask import abort from flask_jwt_extended import jwt_required, get_jwt_claims from flask_restful import Resource from flask_restful import reqparse from models.pin_location_data import Tracker logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__...
30.622642
79
0.634011
21984584f67454be928b47805b605c5c4caa7deb
1,951
py
Python
test/test_authentication.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
null
null
null
test/test_authentication.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
null
null
null
test/test_authentication.py
bufferx/asyncmongo
c68ba72a79507e21f28c5525e1f6954cc68db4cf
[ "Apache-2.0" ]
null
null
null
import tornado.ioloop import time import logging import subprocess import test_shunt import asyncmongo TEST_TIMESTAMP = int(time.time()) class AuthenticationTest(test_shunt.MongoTest): def setUp(self): super(AuthenticationTest, self).setUp() logging.info('creating user') pipe = subprocess...
37.519231
155
0.595592
21985807c33822850b198548374a51d7d7fbb785
1,517
py
Python
nova/api/compute_req_id.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/api/compute_req_id.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
11
2017-06-19T01:28:55.000Z
2017-06-23T02:01:47.000Z
nova/api/compute_req_id.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (c) 2014 IBM Corp. # 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...
33.711111
78
0.74555
21985cba695edd456d9847c16626ae49517bb220
28,264
py
Python
src/emuvim/dcemulator/monitoring.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
src/emuvim/dcemulator/monitoring.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
src/emuvim/dcemulator/monitoring.py
StefanUPB/vim-emu
aacef8f694b996db8fea123024e9a91368f287d2
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2015 SONATA-NFV 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...
41.997028
191
0.586081