hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a24e5af148e6e7349744b7b9f2538aef9d3388a
326
py
Python
JellyBot/components/navbar/header.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
5
2020-08-26T20:12:00.000Z
2020-12-11T16:39:22.000Z
JellyBot/components/navbar/header.py
RaenonX/Jelly-Bot
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
234
2019-12-14T03:45:19.000Z
2020-08-26T18:55:19.000Z
JellyBot/components/navbar/header.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
2
2019-10-23T15:21:15.000Z
2020-05-22T09:35:55.000Z
from ._base import NavBaseItem class NavHeader(NavBaseItem): def __init__(self, parent, label: str): super().__init__(parent) self._label = label @property def label(self) -> str: return self._label def to_html(self): return f'<h6 class="dropdown-header">{self.label}<...
21.733333
63
0.631902
4a24e65d9678a98521ca8c45f547ed3d92c6eceb
3,035
py
Python
parsyfiles/plugins_optional/support_for_attrs.py
smarie/python-simple-file-collection-parsing-framework
344b37e1151e8d4e7c2ee49ae09d6568715ae64e
[ "BSD-3-Clause" ]
null
null
null
parsyfiles/plugins_optional/support_for_attrs.py
smarie/python-simple-file-collection-parsing-framework
344b37e1151e8d4e7c2ee49ae09d6568715ae64e
[ "BSD-3-Clause" ]
null
null
null
parsyfiles/plugins_optional/support_for_attrs.py
smarie/python-simple-file-collection-parsing-framework
344b37e1151e8d4e7c2ee49ae09d6568715ae64e
[ "BSD-3-Clause" ]
null
null
null
import attr from attr import fields, NOTHING from attr.validators import _OptionalValidator, _InstanceOfValidator def _guess_type_from_validator(validator): """ Utility method to return the declared type of an attribute or None. It handles _OptionalValidator and _AndValidator in order to unpack the valida...
28.632075
120
0.674794
4a24e69fcecf0973b361e7354cb5f16c5e86e0b9
16,468
py
Python
venv/lib/python3.5/site-packages/flask_testing/utils.py
JonathanVaughan/project
8f0a84345588017b96b6724efb07af7441cf6844
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/flask_testing/utils.py
JonathanVaughan/project
8f0a84345588017b96b6724efb07af7441cf6844
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/flask_testing/utils.py
JonathanVaughan/project
8f0a84345588017b96b6724efb07af7441cf6844
[ "MIT" ]
1
2021-04-11T05:23:48.000Z
2021-04-11T05:23:48.000Z
# -*- coding: utf-8 -*- """ flask_testing.utils ~~~~~~~~~~~~~~~~~~~ Flask unittest integration. :copyright: (c) 2010 by Dan Jacob. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import, with_statement import gc import multiprocessing import socket import time tr...
29.779385
118
0.628249
4a24e78d17cb717b05364ce2c66c4fcd0efca07d
2,937
py
Python
examples/archive/max_distance_from_time.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
8
2020-03-29T01:44:16.000Z
2022-03-26T23:15:34.000Z
examples/archive/max_distance_from_time.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
60
2020-02-08T22:07:16.000Z
2022-03-26T23:51:55.000Z
examples/archive/max_distance_from_time.py
BillMakwae/Simulation
8d0ec274643f23bc0e78c96e50508b60791c11d2
[ "MIT" ]
1
2021-10-20T20:07:06.000Z
2021-10-20T20:07:06.000Z
import simulation import datetime """ Description: Given an input time, determine the largest distance the car can travel in that time. [time -> distance] Note: this example assumes constant speed throughout """ # Time parameters tick = 1 # Inputs simulation_duration = int(60 * 60 * 9) # 9 hours # Simulation cons...
34.964286
117
0.701396
4a24e7c39d2d3cf6ec0555ca66a8fa00e0faceb5
1,620
py
Python
pymatgen/core/helper.py
materialsproject/workshop-2017
893da316ecb77fece2a9937ffa604b57c0938e0a
[ "BSD-3-Clause-LBNL" ]
21
2017-07-25T17:38:55.000Z
2022-01-17T09:20:26.000Z
pymatgen/core/helper.py
materialsproject/workshop-2017
893da316ecb77fece2a9937ffa604b57c0938e0a
[ "BSD-3-Clause-LBNL" ]
1
2017-07-25T23:29:35.000Z
2017-07-25T23:29:35.000Z
pymatgen/core/helper.py
materialsproject/workshop-2017
893da316ecb77fece2a9937ffa604b57c0938e0a
[ "BSD-3-Clause-LBNL" ]
22
2017-07-25T22:42:33.000Z
2022-02-24T12:41:18.000Z
from pymatgen import vis from monty.serialization import loadfn import matplotlib as mpl mpl.use("TkAgg") import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import os, itertools, re colors = loadfn(os.path.join(os.path.dirname(vis.__file__), "ElementColorSchemes.yaml")) color_di...
38.571429
88
0.633333
4a24e809049aebb4595d4d4e2e79b92b47f0932e
3,005
py
Python
uob_utils.py
TeamworkNUS/uob_voice_to_text_proj
dce143572b041d54463a04a19fa0fda97eff1361
[ "Unlicense" ]
null
null
null
uob_utils.py
TeamworkNUS/uob_voice_to_text_proj
dce143572b041d54463a04a19fa0fda97eff1361
[ "Unlicense" ]
null
null
null
uob_utils.py
TeamworkNUS/uob_voice_to_text_proj
dce143572b041d54463a04a19fa0fda97eff1361
[ "Unlicense" ]
4
2022-03-07T09:49:49.000Z
2022-03-09T06:59:19.000Z
import json import os from typing import Any, Optional from pydub import AudioSegment import wave import filetype # to check file type def check_file_type(audioname, audiopath): audiofile = os.path.join(audiopath, audioname) kind = filetype.guess(audiofile) if kind is None: print('Cannot guess file...
31.968085
198
0.686522
4a24e891e0c49cb6fe6b24b3bb8a34afbdf3838c
25,982
py
Python
stencilflow/stencil/intel_fpga.py
spcl/stencilflow
28bb88e7f4251f29aecc266663bc780023ed2549
[ "BSD-3-Clause" ]
12
2020-06-05T09:27:41.000Z
2021-11-22T04:29:55.000Z
stencilflow/stencil/intel_fpga.py
spcl/stencilflow
28bb88e7f4251f29aecc266663bc780023ed2549
[ "BSD-3-Clause" ]
1
2021-09-11T14:42:50.000Z
2021-09-15T12:33:34.000Z
stencilflow/stencil/intel_fpga.py
spcl/stencilflow
28bb88e7f4251f29aecc266663bc780023ed2549
[ "BSD-3-Clause" ]
5
2020-09-29T11:35:32.000Z
2021-09-26T03:31:25.000Z
import ast import astunparse import collections import functools import itertools import operator import re import dace import numpy as np from .subscript_converter import SubscriptConverter from ._common import JUNK_VAL, dim_to_abs_val, make_iterators @dace.library.expansion class ExpandStencilIntelFPGA(dace.librar...
47.326047
80
0.50739
4a24e979607bb713cd05fc1b119ce53eef18f604
4,682
py
Python
homeassistant/components/deluge/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
6
2020-07-18T16:33:25.000Z
2021-09-26T09:52:04.000Z
homeassistant/components/deluge/sensor.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/deluge/sensor.py
klauern/home-assistant-core
c18ba6aec0627e6afb6442c678edb5ff2bb17db6
[ "Apache-2.0" ]
5
2020-03-29T00:29:13.000Z
2021-09-06T20:58:40.000Z
"""Support for monitoring the Deluge BitTorrent client API.""" import logging from deluge_client import DelugeRPCClient, FailedToReconnectException import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_HOST, CONF_MONITORED_VARIABLES, CO...
31.422819
80
0.618966
4a24ea186e9967618d4d5543ceeb82aa5e761f9f
2,265
py
Python
ginga/misc/Future.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2015-01-05T14:46:14.000Z
2022-03-23T04:10:54.000Z
ginga/misc/Future.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
858
2015-01-17T01:55:12.000Z
2022-03-08T20:20:31.000Z
ginga/misc/Future.py
kyraikeda/ginga
e0ce979de4a87e12ba7a90eec0517a0be05d14bc
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
60
2015-01-14T21:59:07.000Z
2022-02-13T03:38:49.000Z
# # Future.py -- implementation of a computation placeholder object # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # # TODO: python finally has something like this. Use it instead? # import threading from . import Callback class TimeoutError(Exception): ...
25.738636
76
0.623841
4a24ebc9ca59f2c6871eceff2454a8931d5214f2
15,147
py
Python
lib/datasets/json_dataset_evaluator.py
hp-zhengzy/detectron
b6cc9e2d243f43dacfa7329fb8920076727d9ece
[ "Apache-2.0" ]
null
null
null
lib/datasets/json_dataset_evaluator.py
hp-zhengzy/detectron
b6cc9e2d243f43dacfa7329fb8920076727d9ece
[ "Apache-2.0" ]
null
null
null
lib/datasets/json_dataset_evaluator.py
hp-zhengzy/detectron
b6cc9e2d243f43dacfa7329fb8920076727d9ece
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
35.0625
80
0.618076
4a24eea48c207ee6db0142a26cbf6b883121d36b
4,770
py
Python
tests.py
nicorellius/password-generator
15fff8583f070f1d5ef41524f8776c8c97bf99db
[ "MIT" ]
1
2017-06-11T14:29:54.000Z
2017-06-11T14:29:54.000Z
tests.py
nicorellius/password-generator
15fff8583f070f1d5ef41524f8776c8c97bf99db
[ "MIT" ]
null
null
null
tests.py
nicorellius/password-generator
15fff8583f070f1d5ef41524f8776c8c97bf99db
[ "MIT" ]
null
null
null
""" Write some tests! """ import pytest from click.testing import CliRunner from scripts.generate import generate_secret from scripts.generate import ( _validate_count, _roll_dice, _concatenate_remainder, _prepare_chunks, _chunks ) import config from utils import get_roc # All tests use these... runner = ...
23.15534
71
0.578826
4a24eee501abc6d0e1697fdbaf9bb26cb1d15319
5,420
py
Python
tensorflow/contrib/model_pruning/python/layers/layers_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/model_pruning/python/layers/layers_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/model_pruning/python/layers/layers_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
38.714286
81
0.684502
4a24ef2e858b4c420e0ab165bdcf7645e7a1697f
2,175
py
Python
tests/entry_point_test.py
elias-1/NiftyNet
05cd2ffbff5043d9a40b524a6d72f6bd5cd072d2
[ "Apache-2.0" ]
1
2018-02-24T12:43:53.000Z
2018-02-24T12:43:53.000Z
tests/entry_point_test.py
elias-1/NiftyNet
05cd2ffbff5043d9a40b524a6d72f6bd5cd072d2
[ "Apache-2.0" ]
null
null
null
tests/entry_point_test.py
elias-1/NiftyNet
05cd2ffbff5043d9a40b524a6d72f6bd5cd072d2
[ "Apache-2.0" ]
1
2018-02-24T12:43:40.000Z
2018-02-24T12:43:40.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function import os import sys import tensorflow as tf import net_autoencoder import net_gan import net_regress import net_run import net_segment class EntryPointTest(tf.test.TestCase): def test_wrong_app(self): sys.argv = ['', 'train...
30.633803
77
0.551724
4a24f0c63e218f563222e8f8a9b5c7688f728ba8
1,209
py
Python
code/run_models.py
mcallaghan/cc-topography
0a48cc7ef19013076aceba7195a9375e499cbf6e
[ "MIT" ]
5
2020-01-28T13:09:21.000Z
2022-01-12T15:43:02.000Z
code/run_models.py
xueke-li/cc-topography
0a48cc7ef19013076aceba7195a9375e499cbf6e
[ "MIT" ]
null
null
null
code/run_models.py
xueke-li/cc-topography
0a48cc7ef19013076aceba7195a9375e499cbf6e
[ "MIT" ]
7
2020-01-27T17:43:33.000Z
2022-02-20T11:46:16.000Z
import sys, os, django sys.path.append('/home/galm/software/django/tmv/BasicBrowser/') os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BasicBrowser.settings") django.setup() from scoping.models import * from tmv_app.models import * from tmv_app.tasks import * sw = set([]) sw.add('elsevier') sw.add('rights') sw.add...
25.1875
72
0.490488
4a24f214d80f0b166d48e52b9f23a5187b33e525
228
py
Python
accounts/apps.py
ccollado12/Price-Comparison-Group1-BE-1
b257e963ce946303efe6a640fd6d23039d39e34f
[ "MIT" ]
1
2021-11-09T11:20:45.000Z
2021-11-09T11:20:45.000Z
accounts/apps.py
ccollado12/Price-Comparison-Group1-BE-1
b257e963ce946303efe6a640fd6d23039d39e34f
[ "MIT" ]
1
2021-07-22T02:30:03.000Z
2021-07-22T02:30:03.000Z
accounts/apps.py
ccollado12/Price-Comparison-Group1-BE-1
b257e963ce946303efe6a640fd6d23039d39e34f
[ "MIT" ]
4
2021-07-15T14:35:47.000Z
2021-08-14T18:07:14.000Z
from django.apps import AppConfig class AccountsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'accounts' # Use created signals def ready(self): import accounts.signals
20.727273
56
0.714912
4a24f41c6440042630371ecb46583ce87fe572bc
197
py
Python
car/factories/brand.py
stefangeorg/town-car
81ca81eed8912911527c3cb6dc521d000482b0fd
[ "Apache-2.0" ]
null
null
null
car/factories/brand.py
stefangeorg/town-car
81ca81eed8912911527c3cb6dc521d000482b0fd
[ "Apache-2.0" ]
null
null
null
car/factories/brand.py
stefangeorg/town-car
81ca81eed8912911527c3cb6dc521d000482b0fd
[ "Apache-2.0" ]
null
null
null
import factory from car.models import Brand class BrandFactory(factory.django.DjangoModelFactory): name = factory.Sequence(lambda n: "Model %03d" % n) class Meta: model = Brand
17.909091
55
0.705584
4a24f4279472d48c30df8429861ca338b4fa36ca
15,094
py
Python
src/main/python/lib/default/reconnect.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/lib/default/reconnect.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
src/main/python/lib/default/reconnect.py
emilybache/texttest-runner
2d5c42b8d37699a2cbcb8f19af7c271d6ad1024a
[ "MIT" ]
null
null
null
import os, shutil, plugins, operator, logging, time, datetime from glob import glob from itertools import groupby # Trawl around for a suitable dir to reconnect to if we haven't been told one # A tangle of side-effects: we find the run directory when asked for the extra versions, # (so we can provide further ones acc...
46.443077
135
0.59792
4a24f56e1fb3731a1be2f5e878c6b82a8cddc520
2,799
py
Python
lale/lib/rasl/_folds_for_monoid.py
Ingkarat/lale
faded6f80790629cfe216f72f1ceb1fb4f6c70bb
[ "Apache-2.0" ]
null
null
null
lale/lib/rasl/_folds_for_monoid.py
Ingkarat/lale
faded6f80790629cfe216f72f1ceb1fb4f6c70bb
[ "Apache-2.0" ]
null
null
null
lale/lib/rasl/_folds_for_monoid.py
Ingkarat/lale
faded6f80790629cfe216f72f1ceb1fb4f6c70bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.350649
79
0.689532
4a24f716918cb6215cfc9b7bd23b6225776eedac
38
py
Python
test/movie_test.py
cck325/free-style-project
f09073b0e15bad4e7326803e73306698e09e6fa8
[ "MIT" ]
null
null
null
test/movie_test.py
cck325/free-style-project
f09073b0e15bad4e7326803e73306698e09e6fa8
[ "MIT" ]
null
null
null
test/movie_test.py
cck325/free-style-project
f09073b0e15bad4e7326803e73306698e09e6fa8
[ "MIT" ]
null
null
null
from move import now def test_now()
7.6
20
0.736842
4a24f86cdc2e6e90fedd411d159a3556cef0d220
3,191
py
Python
tests/contrib/decorators/test_decorators.py
yhzqb/kedro
619d7f0ccb51895d3bb43d30e3dee9d4d0cebcab
[ "Apache-2.0" ]
1
2021-11-19T05:36:47.000Z
2021-11-19T05:36:47.000Z
tests/contrib/decorators/test_decorators.py
yhzqb/kedro
619d7f0ccb51895d3bb43d30e3dee9d4d0cebcab
[ "Apache-2.0" ]
null
null
null
tests/contrib/decorators/test_decorators.py
yhzqb/kedro
619d7f0ccb51895d3bb43d30e3dee9d4d0cebcab
[ "Apache-2.0" ]
1
2021-11-19T05:36:49.000Z
2021-11-19T05:36:49.000Z
# Copyright 2018-2019 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS"...
35.065934
77
0.699154
4a24f8cd6acb87c053dffb04f638b8ce5b85d92c
7,334
py
Python
tests/upgrades/test_upgrades.py
martriay/cairo-contracts
6835b57a599f9dc1c2b9648a6ae4c6041bc4a5cc
[ "MIT" ]
12
2022-03-23T18:47:13.000Z
2022-03-26T15:14:36.000Z
tests/upgrades/test_upgrades.py
martriay/cairo-contracts
6835b57a599f9dc1c2b9648a6ae4c6041bc4a5cc
[ "MIT" ]
null
null
null
tests/upgrades/test_upgrades.py
martriay/cairo-contracts
6835b57a599f9dc1c2b9648a6ae4c6041bc4a5cc
[ "MIT" ]
null
null
null
import pytest import asyncio from starkware.starknet.testing.starknet import Starknet from utils import ( Signer, assert_revert, assert_event_emitted, get_contract_def, cached_contract ) # random value VALUE_1 = 123 VALUE_2 = 987 signer = Signer(123456789987654321) @pytest.fixture(scope='module') def event_loo...
26.099644
82
0.665394
4a24f9a1563d6252902ec3c44c24d90d680eed64
8,345
py
Python
test/functional/feature_proxy.py
merelcoin/merelcoin
088b1f9f653363238aafc41d4218a3cd0d7ad968
[ "MIT" ]
null
null
null
test/functional/feature_proxy.py
merelcoin/merelcoin
088b1f9f653363238aafc41d4218a3cd0d7ad968
[ "MIT" ]
null
null
null
test/functional/feature_proxy.py
merelcoin/merelcoin
088b1f9f653363238aafc41d4218a3cd0d7ad968
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test merelcoind with different proxy configuration. Test plan: - Start merelcoind's with different pro...
41.311881
121
0.626123
4a24fbe2dd700a9378c18f31d3c8ca69a55b7ca0
1,911
py
Python
pdfmajor/interpreter/commands/state/PDFGraphicState/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
23
2019-01-13T23:32:24.000Z
2021-07-08T04:29:15.000Z
pdfmajor/interpreter/commands/state/PDFGraphicState/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
3
2019-08-09T18:42:01.000Z
2019-12-13T15:43:24.000Z
pdfmajor/interpreter/commands/state/PDFGraphicState/__init__.py
asosnovsky/pdfmajor
7e24c64b5b4fdc84c12b2f78dcaab0e1aa07f4ad
[ "MIT" ]
2
2020-01-09T11:18:20.000Z
2020-03-24T06:02:30.000Z
from .PDFColor import PDFColor, PDFColorSpace from .PDFColorSpace import PREDEFINED_COLORSPACE class PDFGraphicState(object): def __init__(self): self.linewidth = 0 self.linecap = None self.linejoin = None self.miterlimit = None self.dash = None self.intent = None ...
34.745455
75
0.579801
4a24fc8cc508928081a834186aa743c80cfd6c9f
864
py
Python
bluesky_queueserver/__init__.py
dmgav/bluesky-queueserver
75b941bb1764f135ac492985b5bb79f673121dec
[ "BSD-3-Clause" ]
8
2020-01-29T23:11:09.000Z
2022-03-31T14:14:21.000Z
bluesky_queueserver/__init__.py
dmgav/bluesky-queueserver
75b941bb1764f135ac492985b5bb79f673121dec
[ "BSD-3-Clause" ]
134
2020-09-01T22:02:39.000Z
2022-03-30T17:56:59.000Z
bluesky_queueserver/__init__.py
dmgav/bluesky-queueserver
75b941bb1764f135ac492985b5bb79f673121dec
[ "BSD-3-Clause" ]
14
2020-09-02T20:36:36.000Z
2021-08-06T16:59:08.000Z
from ._version import get_versions __version__ = get_versions()["version"] del get_versions from .manager.comms import ZMQCommSendAsync, ZMQCommSendThreads, CommTimeoutError # noqa: E402, F401 from .manager.annotation_decorator import parameter_annotation_decorator # noqa: E402, F401 from .manager.output_streaming ...
50.823529
105
0.820602
4a24fcbb76135a2179b0b04df9a43deb48a09ac2
22,729
py
Python
code/client/munkilib/keychain.py
backwardn/munki
f1b5162841475a9486983faabff22504e14c06ae
[ "Apache-2.0" ]
1
2020-12-17T19:52:42.000Z
2020-12-17T19:52:42.000Z
code/client/munkilib/keychain.py
backwardn/munki
f1b5162841475a9486983faabff22504e14c06ae
[ "Apache-2.0" ]
null
null
null
code/client/munkilib/keychain.py
backwardn/munki
f1b5162841475a9486983faabff22504e14c06ae
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # # Copyright 2014-2020 Greg Neagle. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
38.393581
79
0.63276
4a24fd88ed68405ef7c2fcbe7ba28fab7905b762
9,234
py
Python
mitmproxy/proxy/layer.py
timgates42/mitmproxy
b0a258f236d495efa8f874374dabdb60d5ee3a62
[ "MIT" ]
null
null
null
mitmproxy/proxy/layer.py
timgates42/mitmproxy
b0a258f236d495efa8f874374dabdb60d5ee3a62
[ "MIT" ]
18
2020-12-28T20:12:26.000Z
2022-03-15T20:44:40.000Z
mitmproxy/proxy/layer.py
timgates42/mitmproxy
b0a258f236d495efa8f874374dabdb60d5ee3a62
[ "MIT" ]
null
null
null
""" Base class for protocol layers. """ import collections import textwrap from abc import abstractmethod from typing import Optional, List, ClassVar, Deque, NamedTuple, Generator, Any, TypeVar from mitmproxy.proxy import commands, events from mitmproxy.proxy.commands import Command, Hook from mitmproxy.proxy.context ...
37.844262
115
0.627897
4a24fe5ce29ebcfb7242f3f39f17e2a209a2ec74
19,475
py
Python
detectron2/layers/deform_conv.py
sm047/detectron2
1036cce320ce0f2adbce7f143566462d3222bd5a
[ "Apache-2.0" ]
5
2020-06-16T11:31:22.000Z
2021-11-08T03:07:47.000Z
detectron2/layers/deform_conv.py
fangchengji/detectron2
1036cce320ce0f2adbce7f143566462d3222bd5a
[ "Apache-2.0" ]
null
null
null
detectron2/layers/deform_conv.py
fangchengji/detectron2
1036cce320ce0f2adbce7f143566462d3222bd5a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import math from functools import lru_cache import torch from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from detectron2 import _C from .wrap...
32.952623
99
0.533248
4a24fedd3f7b0acd3a9708b2fcb6f8b8fba6c72d
81,609
py
Python
src/transformers/modeling_utils.py
katarinaslama/transformers-1
a5a8eeb772b185b0746f3ce9be6ae43181d2ca71
[ "Apache-2.0" ]
3
2020-11-11T14:29:18.000Z
2021-03-07T14:42:33.000Z
src/transformers/modeling_utils.py
katarinaslama/transformers-1
a5a8eeb772b185b0746f3ce9be6ae43181d2ca71
[ "Apache-2.0" ]
1
2021-09-15T09:20:01.000Z
2022-03-02T17:16:01.000Z
src/transformers/modeling_utils.py
katarinaslama/transformers-1
a5a8eeb772b185b0746f3ce9be6ae43181d2ca71
[ "Apache-2.0" ]
1
2020-11-11T14:29:22.000Z
2020-11-11T14:29:22.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors, Facebook AI Research authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the L...
48.375222
197
0.628105
4a2500eda82325c1ec5344b9d75fa4b96252becd
1,306
py
Python
jorldy/config/icm_ppo/super_mario_bros.py
Kyushik/JORLDY
6a24a2195e5e87ade157ee53f631af2221f0a188
[ "Apache-2.0" ]
300
2021-11-03T07:06:34.000Z
2022-03-24T02:23:56.000Z
jorldy/config/icm_ppo/super_mario_bros.py
Kyushik/JORLDY
6a24a2195e5e87ade157ee53f631af2221f0a188
[ "Apache-2.0" ]
37
2021-11-04T04:31:07.000Z
2022-03-30T01:40:49.000Z
jorldy/config/icm_ppo/super_mario_bros.py
Kyushik/JORLDY
6a24a2195e5e87ade157ee53f631af2221f0a188
[ "Apache-2.0" ]
45
2021-11-03T08:05:56.000Z
2022-03-24T08:35:05.000Z
### ICM PPO Super Mario Bros Config ### env = { "name": "super_mario_bros", "render": False, "gray_img": True, "img_width": 84, "img_height": 84, "stack_frame": 4, "no_op": True, "skip_frame": 4, "reward_clip": True, "episodic_life": True, } agent = { "name": "icm_ppo", ...
21.064516
60
0.569678
4a2500fc7f57081d8b12a4f49d5fff1d33311e02
7,202
py
Python
dao/ERC20Initializer.py
caleb-berry/dao
8898e85eca5e052eb7545b9a41862048c1d9932f
[ "Apache-2.0" ]
9
2021-12-18T16:48:36.000Z
2022-02-15T17:54:07.000Z
dao/ERC20Initializer.py
caleb-berry/dao
8898e85eca5e052eb7545b9a41862048c1d9932f
[ "Apache-2.0" ]
20
2021-12-16T13:47:42.000Z
2022-03-17T17:39:49.000Z
dao/ERC20Initializer.py
bugout-dev/dao
d6e089d32ecd54a5bfd3b31f98e582528b201f15
[ "Apache-2.0" ]
null
null
null
# Code generated by moonworm : https://github.com/bugout-dev/moonworm # Moonworm version : 0.1.14 import argparse import json import os from pathlib import Path from typing import Any, Dict, List, Optional, Union from brownie import Contract, network, project from brownie.network.contract import ContractContainer fro...
34.132701
110
0.701611
4a250214e0a1d9d5bdec4bf3d75be27517fa9e33
530
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/kikter-34297
c00388be0a9a1fa83c441d3dc94b4c9f88eaeb88
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/kikter-34297
c00388be0a9a1fa83c441d3dc94b4c9f88eaeb88
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/kikter-34297
c00388be0a9a1fa83c441d3dc94b4c9f88eaeb88
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "kikter-34297.botics.co" site_params = { "name": "kikter", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_create(def...
20.384615
61
0.65283
4a25026959c078c3ac209b1a8245de320efc3aea
7,456
py
Python
tests/components/motion_blinds/test_config_flow.py
dlintott/core
a6c83cc46a34084fdc4c0e7221b6ba493f82cbac
[ "Apache-2.0" ]
1
2021-01-27T08:47:19.000Z
2021-01-27T08:47:19.000Z
tests/components/motion_blinds/test_config_flow.py
dlintott/core
a6c83cc46a34084fdc4c0e7221b6ba493f82cbac
[ "Apache-2.0" ]
36
2021-02-08T08:20:27.000Z
2022-03-31T06:06:05.000Z
tests/components/motion_blinds/test_config_flow.py
dlintott/core
a6c83cc46a34084fdc4c0e7221b6ba493f82cbac
[ "Apache-2.0" ]
1
2021-01-01T02:35:17.000Z
2021-01-01T02:35:17.000Z
"""Test the Motion Blinds config flow.""" import socket import pytest from homeassistant import config_entries from homeassistant.components.motion_blinds.config_flow import DEFAULT_GATEWAY_NAME from homeassistant.components.motion_blinds.const import DOMAIN from homeassistant.const import CONF_API_KEY, CONF_HOST fr...
29.943775
86
0.635461
4a2502ab4483fab98f449c34a0ee6f02b9ba8ab1
3,534
py
Python
pyvizio/api/pair.py
jezzab/pyvizio
8086f9e5aac49d1d99ade02684ca35c05e03a7eb
[ "MIT" ]
72
2017-08-08T19:32:12.000Z
2022-03-18T03:18:41.000Z
pyvizio/api/pair.py
raman325/pyvizio
9cf45fcc9b409caf223a38d8f79c775742ab4127
[ "MIT" ]
48
2017-09-16T16:37:54.000Z
2022-01-23T20:43:42.000Z
pyvizio/api/pair.py
ConnectionMaster/pyvizio
0fe4558557917509d3da3bb24f9221f15ba901ce
[ "MIT" ]
42
2017-09-04T22:59:21.000Z
2022-03-18T03:18:30.000Z
"""Vizio SmartCast API commands and class for pairing.""" from typing import Any, Dict, Union from pyvizio.api._protocol import ENDPOINT, PairingResponseKey, ResponseKey from pyvizio.api.base import CommandBase from pyvizio.helpers import dict_get_case_insensitive class PairCommandBase(CommandBase): """Base pai...
34.990099
83
0.685342
4a2503be6992977277d49b6e3836794b00eff7b1
10,438
py
Python
comicapi/comicinfoxml.py
OzzieIsaacs/comicapi
59e7830f62c5f6e42aea16d171d336814dca826f
[ "Apache-2.0" ]
2
2022-01-22T19:17:11.000Z
2022-03-16T20:19:20.000Z
comicapi/comicinfoxml.py
OzzieIsaacs/comicapi
59e7830f62c5f6e42aea16d171d336814dca826f
[ "Apache-2.0" ]
null
null
null
comicapi/comicinfoxml.py
OzzieIsaacs/comicapi
59e7830f62c5f6e42aea16d171d336814dca826f
[ "Apache-2.0" ]
1
2021-08-02T07:07:01.000Z
2021-08-02T07:07:01.000Z
""" A python class to encapsulate ComicRack's ComicInfo.xml data Copyright 2012-2014 Anthony Beville 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...
37.014184
95
0.603372
4a2503e4ce2f4db46b32a5ac3f91beb31c971221
6,261
py
Python
clean_fac_staff_data.py
code-ape/SocialJusticeDataProcessing
7535fe9d510e44b0eb08067b6c526f987917a0f8
[ "Apache-2.0" ]
null
null
null
clean_fac_staff_data.py
code-ape/SocialJusticeDataProcessing
7535fe9d510e44b0eb08067b6c526f987917a0f8
[ "Apache-2.0" ]
null
null
null
clean_fac_staff_data.py
code-ape/SocialJusticeDataProcessing
7535fe9d510e44b0eb08067b6c526f987917a0f8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import csv, json import os import traceback import settings import tools diverse_matcher = { "Very Diverse": 3, "Moderately Diverse": 2, "Slightly Diverse": 1, "Not Diverse": 0 } importance_matcher = { "Very Important": 3, "Moderately Important": 2, "Slightly Important": ...
35.174157
93
0.598467
4a2503e61a636e8f8bcb04a5ab77cb9812bff9ca
6,689
py
Python
huskar_api/models/auth/team.py
mowangdk/huskar
7692fbc5672a5ae6e2a33616c493466a7137f8cd
[ "MIT" ]
59
2019-10-31T10:50:10.000Z
2021-11-26T04:32:25.000Z
huskar_api/models/auth/team.py
mowangdk/huskar
7692fbc5672a5ae6e2a33616c493466a7137f8cd
[ "MIT" ]
5
2019-10-31T10:37:30.000Z
2020-03-02T06:45:46.000Z
huskar_api/models/auth/team.py
mowangdk/huskar
7692fbc5672a5ae6e2a33616c493466a7137f8cd
[ "MIT" ]
9
2019-10-31T10:35:00.000Z
2019-12-01T14:13:58.000Z
from __future__ import absolute_import import logging from sqlalchemy import Column, Integer, Unicode, UniqueConstraint from sqlalchemy.dialects.mysql import TINYINT from sqlalchemy.exc import IntegrityError # TODO Do not use this base exception in future from huskar_api.service.exc import HuskarApiException from hus...
31.257009
76
0.630588
4a2504187fce9e06f3d156d71a6a17ce9a0c4ea0
5,808
py
Python
cool_netstat.py
kilbouri/cool-netstat
bf35ffc8d343cbc88fed834d856fed6beb66600b
[ "Unlicense" ]
null
null
null
cool_netstat.py
kilbouri/cool-netstat
bf35ffc8d343cbc88fed834d856fed6beb66600b
[ "Unlicense" ]
null
null
null
cool_netstat.py
kilbouri/cool-netstat
bf35ffc8d343cbc88fed834d856fed6beb66600b
[ "Unlicense" ]
null
null
null
''' Configuration ''' interval = 10 # number of minutes between completion of a test and starting a new one outfile = "results.txt" # the path/file to output results in show_res = False # show result after each test? ''' Dependencies: speedtest pip3 install speedtest-cli ''' ''' Program...
25.928571
96
0.634298
4a25049fb5b6031c0db1d5cdf12f97fb219dae07
2,937
py
Python
check_jenkins_job_buildable.py
stdevel/nagios-plugins
5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
check_jenkins_job_buildable.py
stdevel/nagios-plugins
5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
check_jenkins_job_buildable.py
stdevel/nagios-plugins
5ea0e186fa6fdd0e70681c7fed02c6d46d50bbb5
[ "IBM-pibs", "Apache-1.1" ]
null
null
null
#!/usr/bin/env python # vim:ts=4:sts=4:sw=4:et # # Author: Hari Sekhon # Date: 2017-06-22 22:29:37 +0200 (Thu, 22 Jun 2017) # # https://github.com/harisekhon/nagios-plugins # # License: see accompanying Hari Sekhon LICENSE file # # If you're using my code you're welcome to connect with me on LinkedIn # and optio...
29.079208
84
0.642492
4a25049ff96c819bf75953ad0505149aa6263666
2,705
py
Python
malaya_speech/utils/char.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
null
null
null
malaya_speech/utils/char.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
null
null
null
malaya_speech/utils/char.py
dtx525942103/malaya-speech
212c4e890d0cbcbbca0037c89a698b68b05db393
[ "MIT" ]
1
2021-08-19T02:34:41.000Z
2021-08-19T02:34:41.000Z
import six from typing import List PAD = '<PAD>' EOS = '<EOS>' RESERVED_TOKENS = [PAD, EOS] NUM_RESERVED_TOKENS = len(RESERVED_TOKENS) PAD_ID = RESERVED_TOKENS.index(PAD) EOS_ID = RESERVED_TOKENS.index(EOS) VOCAB_SIZE = 256 BLANK = 0 def strip_ids(ids, ids_to_strip): """Strip ids_to_strip from the end ids.""" ...
24.816514
95
0.6
4a2504dcc154ee18bdb32d4b4601266999cb63b0
17,798
py
Python
redtubeapi/utils.py
Mattlk13/RedTubeAPI
842c2251188c165a47026d169aa7d3e808666fcf
[ "MIT" ]
null
null
null
redtubeapi/utils.py
Mattlk13/RedTubeAPI
842c2251188c165a47026d169aa7d3e808666fcf
[ "MIT" ]
null
null
null
redtubeapi/utils.py
Mattlk13/RedTubeAPI
842c2251188c165a47026d169aa7d3e808666fcf
[ "MIT" ]
null
null
null
#!/usr/bin/env # -*- coding: utf-8 -*- # author=Kristen # date = 8/8/16 import sys, os from collections import Counter, OrderedDict, MutableSet,namedtuple import logging import datetime import re from logging import FileHandler as _FileHandler from requests import get import feedparser from kgerringrc import * from o...
32.537477
166
0.670356
4a2505434fb9ec672dc75d7f5328d5d0141ca5b9
1,851
py
Python
src/deployer/plugins/echo.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
2
2018-08-30T14:14:13.000Z
2022-03-24T15:19:29.000Z
src/deployer/plugins/echo.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
null
null
null
src/deployer/plugins/echo.py
jbenden/deployer
b036fa3030f99ed0730bb3770cf7e01c58c257f1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Joseph Benden <joe@benden.us> # # 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...
25.708333
74
0.653701
4a250616ae55bbb9cadc79db09f445fc985389d4
8,446
py
Python
docs/conf.py
AjanShrestha/rentomatic
30f42a4f349bd1a2d4303dbc4eee4f4066b9c634
[ "MIT" ]
null
null
null
docs/conf.py
AjanShrestha/rentomatic
30f42a4f349bd1a2d4303dbc4eee4f4066b9c634
[ "MIT" ]
null
null
null
docs/conf.py
AjanShrestha/rentomatic
30f42a4f349bd1a2d4303dbc4eee4f4066b9c634
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # rentomatic documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # 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 # ...
30.601449
76
0.716552
4a2506c873018a3f4274f4d860b8cda748ec373c
158
py
Python
scripts/portal/gold_boss_gate.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
9
2021-04-26T11:59:29.000Z
2021-12-20T13:15:27.000Z
scripts/portal/gold_boss_gate.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
null
null
null
scripts/portal/gold_boss_gate.py
Snewmy/swordie
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
[ "MIT" ]
6
2021-07-14T06:32:05.000Z
2022-02-06T02:32:56.000Z
# 252020000 - to gold boss # idk if this is the correct portal progression but i couldn't find another way to link everything together sm.warp(252030000, 5)
31.6
107
0.772152
4a2506db2c71f143d623b0584d66060be9f68943
1,806
py
Python
ace/label.py
jflournoy/ACE
b28a4eddfb31cd758df38f48d170e970618e16da
[ "MIT" ]
20
2015-01-16T19:39:51.000Z
2022-02-22T19:50:46.000Z
ace/label.py
jflournoy/ACE
b28a4eddfb31cd758df38f48d170e970618e16da
[ "MIT" ]
2
2015-10-15T19:34:57.000Z
2017-02-21T22:11:21.000Z
ace/label.py
jflournoy/ACE
b28a4eddfb31cd758df38f48d170e970618e16da
[ "MIT" ]
12
2015-05-08T20:06:26.000Z
2020-05-05T09:34:00.000Z
# from nltk import * import re from collections import Counter from database import Article from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer import pandas as pd def extract_ngram_features(db, tfidf=True, save=None, vocabulary=None, require_activations=True, **kwargs): ''' Takes text fr...
41.045455
107
0.717608
4a2506ef05b670b2319cbdba9aa52f26f52decd6
1,856
py
Python
tts/espeak.py
javatechs/controller
caf99feb15b85f369f3d929847563be3f391757f
[ "Apache-2.0" ]
null
null
null
tts/espeak.py
javatechs/controller
caf99feb15b85f369f3d929847563be3f391757f
[ "Apache-2.0" ]
null
null
null
tts/espeak.py
javatechs/controller
caf99feb15b85f369f3d929847563be3f391757f
[ "Apache-2.0" ]
1
2020-09-07T22:04:17.000Z
2020-09-07T22:04:17.000Z
import os import tempfile import uuid import logging log = logging.getLogger('RemoTV.tts.espeak') tempDir = None male = None voice_number = None hw_num = None espeak_path = None def setup(robot_config): global tempDir global male global voice_number global hw_num global espeak_path male = ro...
29.460317
121
0.626078
4a25082298efebb554c3b878070d1dbf07ee8b41
5,100
py
Python
FreeCAD_geometry_generation/racetrack_tapered_cavity.py
alunmorgan/EM_CAD_frontend
9bed7842444129b2c962d2870b9e06782a8999c4
[ "Apache-2.0" ]
2
2020-08-09T19:43:08.000Z
2020-10-10T01:31:30.000Z
FreeCAD_geometry_generation/racetrack_tapered_cavity.py
alunmorgan/EM_CAD_frontend
9bed7842444129b2c962d2870b9e06782a8999c4
[ "Apache-2.0" ]
3
2019-08-15T19:36:21.000Z
2022-01-19T03:28:57.000Z
FreeCAD_geometry_generation/racetrack_tapered_cavity.py
alunmorgan/EM_CAD_frontend
9bed7842444129b2c962d2870b9e06782a8999c4
[ "Apache-2.0" ]
null
null
null
from freecad_elements import make_beampipe, make_racetrack_aperture, make_circular_aperture,\ make_taper, ModelException, parameter_sweep, base_model from sys import argv import os # baseline model parameters INPUT_PARAMETERS = {'racetrack_height': 10e-3, 'racetrack_width': 40e-3, 'racetrack_length': 80e-3, ...
65.384615
161
0.646275
4a250860c2bee2736db0d8cbb33a31524eb3c35f
3,965
py
Python
tests/test_clblas.py
SarckFour/purecl
72429ff03d224ea8a2665610e1c579cf59d1af53
[ "BSD-2-Clause-FreeBSD" ]
9
2016-07-22T13:33:30.000Z
2022-03-18T11:31:19.000Z
tests/test_clblas.py
SarckFour/purecl
72429ff03d224ea8a2665610e1c579cf59d1af53
[ "BSD-2-Clause-FreeBSD" ]
3
2016-01-03T06:50:23.000Z
2017-07-28T02:57:36.000Z
tests/test_clblas.py
SarckFour/purecl
72429ff03d224ea8a2665610e1c579cf59d1af53
[ "BSD-2-Clause-FreeBSD" ]
9
2015-08-05T12:13:46.000Z
2021-04-15T01:03:40.000Z
""" Copyright (c) 2014, Samsung Electronics Co.,Ltd. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and...
38.872549
79
0.700631
4a250966e8b5afb68d4c15439c392e443329d1c4
328
py
Python
dms_importer/config/docs.py
deepeshgarg007/dms_importer
bc21d2e89b80214a62d2b80ed613965b1260840a
[ "MIT" ]
null
null
null
dms_importer/config/docs.py
deepeshgarg007/dms_importer
bc21d2e89b80214a62d2b80ed613965b1260840a
[ "MIT" ]
null
null
null
dms_importer/config/docs.py
deepeshgarg007/dms_importer
bc21d2e89b80214a62d2b80ed613965b1260840a
[ "MIT" ]
null
null
null
""" Configuration for docs """ # source_link = "https://github.com/[org_name]/dms_importer" # docs_base_url = "https://[org_name].github.io/dms_importer" # headline = "App that does everything" # sub_heading = "Yes, you got that right the first time, everything" def get_context(context): context.brand_html = "Dms Im...
27.333333
68
0.731707
4a2509da2465fb6d4450ffb2f6598fb16874eba1
16,184
py
Python
sqlite3ct/test/regression.py
bhuztez/sqlite3ct
df8888bdbff0ee5c6830e2ed9681c5f70245ed51
[ "Zlib" ]
1
2020-07-02T14:47:46.000Z
2020-07-02T14:47:46.000Z
sqlite3ct/test/regression.py
bhuztez/sqlite3ct
df8888bdbff0ee5c6830e2ed9681c5f70245ed51
[ "Zlib" ]
null
null
null
sqlite3ct/test/regression.py
bhuztez/sqlite3ct
df8888bdbff0ee5c6830e2ed9681c5f70245ed51
[ "Zlib" ]
null
null
null
# pysqlite2/test/regression.py: pysqlite regression tests # # Copyright (C) 2006-2010 Gerhard Häring <gh@ghaering.de> # # This file is part of pysqlite. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages # arising from the use o...
36.698413
98
0.608873
4a250a1924e20872b7aae983ee58db03555f8dd1
3,740
py
Python
subset.py
ajyl/KEMP
d71d34e3fb1d636db7f2cf40f6a3aa0040681389
[ "MIT" ]
null
null
null
subset.py
ajyl/KEMP
d71d34e3fb1d636db7f2cf40f6a3aa0040681389
[ "MIT" ]
null
null
null
subset.py
ajyl/KEMP
d71d34e3fb1d636db7f2cf40f6a3aa0040681389
[ "MIT" ]
null
null
null
""" Subset """ import os import ast from collections import defaultdict from constants import KEMP_HOME KEMP_FILEPATH = os.path.join(KEMP_HOME, "result/KEMP/KEMP.txt") def load_data(filepath): """ Load data """ with open(filepath, "r") as file_p: data = file_p.readlines() emotion = None...
26.714286
63
0.517647
4a250b363f8e5f5bb61e0480c78ab305ef88b28f
1,499
py
Python
library/setup.py
philwil/ads1015-python
47c0effd311f1a9f2aff9b282bc8ca60e237e53a
[ "MIT" ]
5
2020-01-28T15:09:49.000Z
2022-02-07T12:44:06.000Z
library/setup.py
philwil/ads1015-python
47c0effd311f1a9f2aff9b282bc8ca60e237e53a
[ "MIT" ]
14
2019-07-07T17:36:18.000Z
2022-01-13T12:51:52.000Z
library/setup.py
philwil/ads1015-python
47c0effd311f1a9f2aff9b282bc8ca60e237e53a
[ "MIT" ]
4
2020-02-24T14:58:22.000Z
2021-10-31T02:01:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2016 Pimoroni Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
40.513514
96
0.781855
4a250b8d1295dfd5b7f8b99a0521da59c2bbfe0d
233
py
Python
Greedy/1758.py
esdx245/algorithms
39dd06c9277f30bfdce594a86ce71f52e28e5dc8
[ "MIT" ]
null
null
null
Greedy/1758.py
esdx245/algorithms
39dd06c9277f30bfdce594a86ce71f52e28e5dc8
[ "MIT" ]
null
null
null
Greedy/1758.py
esdx245/algorithms
39dd06c9277f30bfdce594a86ce71f52e28e5dc8
[ "MIT" ]
null
null
null
n = int(input()) lista = [] result = 0 for _ in range(n): lista.append(int(input())) lista.sort(reverse = 1) for i in range(n): temp = lista[i] - i if temp > 0: result += temp temp = 0 else: temp = 0 print(result)
16.642857
28
0.575107
4a250cd84636f48e240f1e71686132eb9ec8eda0
10,473
py
Python
geemap/utils.py
XianranZ/geemap
d2c5489b24bbb9aa1e4238a3700c0411d75cb27c
[ "MIT" ]
null
null
null
geemap/utils.py
XianranZ/geemap
d2c5489b24bbb9aa1e4238a3700c0411d75cb27c
[ "MIT" ]
null
null
null
geemap/utils.py
XianranZ/geemap
d2c5489b24bbb9aa1e4238a3700c0411d75cb27c
[ "MIT" ]
null
null
null
import ee try: ee.Initialize() except Exception as e: ee.Authenticate() ee.Initialize() # Compute area in square meters def vec_area(f): # Compute area in square meters. Convert to hectares. areaSqm = f.area() # A new property called 'area' will be set on each feature. return f.set({'ar...
31.262687
107
0.636589
4a250f96a14ce5573c44cfb00553490a6b521924
9,818
py
Python
plugins/login.py
Mehmetbaba06/Instagram-Bot
09eb2ff455ae5378d8ec41f6706e12915a05f94e
[ "MIT" ]
null
null
null
plugins/login.py
Mehmetbaba06/Instagram-Bot
09eb2ff455ae5378d8ec41f6706e12915a05f94e
[ "MIT" ]
null
null
null
plugins/login.py
Mehmetbaba06/Instagram-Bot
09eb2ff455ae5378d8ec41f6706e12915a05f94e
[ "MIT" ]
null
null
null
#MIT License #Copyright (c) 2021 subinps #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, dis...
49.585859
452
0.650336
4a250fe633e2420d23eb46a6ad48858b05e613c2
77
py
Python
torch_rl/torch_rl/algos/__init__.py
RobertSamoilescu/RL_CarRacing
c1b4c3bed00fd1630e68f32a02798034df57c73a
[ "MIT" ]
39
2019-10-30T08:59:35.000Z
2022-03-18T01:28:01.000Z
torch_rl/torch_rl/algos/__init__.py
RobertSamoilescu/RL_CarRacing
c1b4c3bed00fd1630e68f32a02798034df57c73a
[ "MIT" ]
10
2019-12-29T17:10:40.000Z
2021-07-03T09:32:22.000Z
torch_rl/torch_rl/algos/__init__.py
RobertSamoilescu/RL_CarRacing
c1b4c3bed00fd1630e68f32a02798034df57c73a
[ "MIT" ]
12
2020-01-19T09:31:29.000Z
2022-02-08T01:30:08.000Z
from torch_rl.algos.a2c import A2CAlgo from torch_rl.algos.ppo import PPOAlgo
38.5
38
0.857143
4a2510e4b7eedd3aa5f3ae3d52c040474e7df9fb
11,649
py
Python
angr/storage/memory_mixins/__init__.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/storage/memory_mixins/__init__.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
angr/storage/memory_mixins/__init__.py
BA7JCM/angr
187a713c35759d998d93dfc5280630976d42d717
[ "BSD-2-Clause" ]
null
null
null
# pylint:disable=abstract-method from typing import Iterable, Tuple, Dict, Any, Optional import claripy from ...state_plugins.plugin import SimStatePlugin from ...errors import SimMemoryError class MemoryMixin(SimStatePlugin): SUPPORTS_CONCRETE_LOAD = False def __init__(self, memory_id=None, endness='Iend...
30.981383
118
0.697227
4a2511be2292a757afbc1029baeffad1ffe2f3f9
174
py
Python
prob16.py
davidkartchner/project_euler
1f24bf115c460e00319da5f80777cd054d003165
[ "MIT" ]
null
null
null
prob16.py
davidkartchner/project_euler
1f24bf115c460e00319da5f80777cd054d003165
[ "MIT" ]
null
null
null
prob16.py
davidkartchner/project_euler
1f24bf115c460e00319da5f80777cd054d003165
[ "MIT" ]
null
null
null
""" David Kartchner Project Euler Problem 16 May 11, 2016 """ big_string = str(2**1000) digit_list = [int(i) for i in big_string] digit_sum = sum(digit_list) print digit_sum
17.4
41
0.735632
4a2514dd02fdcbf50f7d010b2ddebdb7f26ae8ca
30,649
py
Python
sdk/python/pulumi_azure_native/web/get_web_app_slot.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/get_web_app_slot.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/web/get_web_app_slot.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
45.271787
1,108
0.687004
4a2514edd295622b075522bd9581988c6f41697b
13,682
py
Python
yolov5/models/yolo.py
Jeensh/adaptive-cruise-control
911b55a0c83d47c6eba557a662d5513b89206d91
[ "MIT" ]
12
2021-06-15T01:45:07.000Z
2022-03-29T12:01:37.000Z
models/yolo.py
shashank524/patent_analysis
bd3fde329797ea8b823749ea556b222fb7594fd3
[ "MIT" ]
null
null
null
models/yolo.py
shashank524/patent_analysis
bd3fde329797ea8b823749ea556b222fb7594fd3
[ "MIT" ]
6
2021-07-12T08:27:47.000Z
2022-03-19T14:45:29.000Z
"""YOLOv5-specific modules Usage: $ python path/to/models/yolo.py --cfg yolov5s.yaml """ import argparse import logging import sys from copy import deepcopy from pathlib import Path FILE = Path(__file__).absolute() sys.path.append(FILE.parents[1].as_posix()) # add yolov5/ to path from models.common import * fr...
43.993569
119
0.542538
4a2515ea951a190080b861d68cea716b6885cbeb
19,093
py
Python
code/dataset/transform.py
luozm/frog
ce29cdaddba5ecf78cc66bce1bfc64b301b706ca
[ "MIT" ]
null
null
null
code/dataset/transform.py
luozm/frog
ce29cdaddba5ecf78cc66bce1bfc64b301b706ca
[ "MIT" ]
null
null
null
code/dataset/transform.py
luozm/frog
ce29cdaddba5ecf78cc66bce1bfc64b301b706ca
[ "MIT" ]
null
null
null
""" Transformations for both images and masks. """ import os import cv2 import math import random import skimage import skimage.morphology from PIL import Image import numpy as np # for debug def dummy_transform(image): print('\tdummy_transform') return image # ----------------------------------------------...
36.788054
152
0.555596
4a251719926ebad3e6c081d334b27dba4c23974f
4,803
py
Python
tools/download_fuchsia_sdk.py
kofj/engine
e17ee4a5fff8a13626a9a7786b7e2534aba51df0
[ "BSD-3-Clause" ]
null
null
null
tools/download_fuchsia_sdk.py
kofj/engine
e17ee4a5fff8a13626a9a7786b7e2534aba51df0
[ "BSD-3-Clause" ]
null
null
null
tools/download_fuchsia_sdk.py
kofj/engine
e17ee4a5fff8a13626a9a7786b7e2534aba51df0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2013 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # The return code of this script will always be 0, even if there is an error, # unless the --fail-loudly flag is passed. import argpa...
26.245902
98
0.684989
4a2518ce4917592c21b3be2f9d2140f32bc2fa13
2,859
py
Python
migrations/versions/08e57c6490ee_.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
null
null
null
migrations/versions/08e57c6490ee_.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
null
null
null
migrations/versions/08e57c6490ee_.py
amoskipz/pitch
477599a56958bc677e22764d7e0cc14d34510e8c
[ "Unlicense", "MIT" ]
null
null
null
"""empty message Revision ID: 08e57c6490ee Revises: Create Date: 2021-03-08 12:35:15.305897 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '08e57c6490ee' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
36.653846
76
0.663519
4a251a114c81a5c658ae15c6d7aaba91f6981539
10,524
py
Python
qrf/qrf_cdf.py
RLstat/deep-conditional-distribution-regression
66e56bd90225f9959d00b633837285cb8b7cbf35
[ "Apache-2.0" ]
6
2020-09-13T20:16:35.000Z
2021-09-15T06:13:31.000Z
qrf/qrf_cdf.py
RLstat/deep-conditional-distribution-regression
66e56bd90225f9959d00b633837285cb8b7cbf35
[ "Apache-2.0" ]
null
null
null
qrf/qrf_cdf.py
RLstat/deep-conditional-distribution-regression
66e56bd90225f9959d00b633837285cb8b7cbf35
[ "Apache-2.0" ]
3
2019-05-06T06:45:04.000Z
2021-04-26T03:52:12.000Z
# -*- coding: utf-8 -*- """ Created on Sat Feb 9 11:36:03 2019 @author: RLstat """ import numpy as np import pandas as pd import matplotlib.pyplot as plt from skgarden import RandomForestQuantileRegressor from dcdr.utils import (evaluate_crps, evaluate_monotonicity, evaluate_quantile_loss, evaluate_rmse, evaluate_co...
37.319149
125
0.528981
4a251a73f29ae5e8da6221d9d91e6789969e9dcf
253
py
Python
lisa/features/__init__.py
KsenijaS/lisa
f09291a088c81de40e57bc4e37e9348220a87417
[ "MIT" ]
1
2021-06-17T13:02:44.000Z
2021-06-17T13:02:44.000Z
lisa/features/__init__.py
KsenijaS/lisa
f09291a088c81de40e57bc4e37e9348220a87417
[ "MIT" ]
null
null
null
lisa/features/__init__.py
KsenijaS/lisa
f09291a088c81de40e57bc4e37e9348220a87417
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from .gpu import Gpu from .serial_console import SerialConsole from .sriov import Sriov from .startstop import StartStop __all__ = ["Gpu", "SerialConsole", "Sriov", "StartStop"]
25.3
56
0.766798
4a251be34511c1b4f2e8866f78b9e10c6c3cadb0
3,990
py
Python
tools/pytorch2onnx.py
dyhan0920/mmdetection
adc65ffc3e78c4dfd5f9c693210b69140c3f9a56
[ "Apache-2.0" ]
38
2020-11-03T14:45:49.000Z
2022-03-19T01:14:49.000Z
tools/pytorch2onnx.py
13952522076/mmdet0
7c914eceda1e61bd7aea78d9db924ead1c582daa
[ "Apache-2.0" ]
8
2021-02-05T07:30:39.000Z
2022-03-16T06:45:46.000Z
tools/pytorch2onnx.py
13952522076/mmdet0
7c914eceda1e61bd7aea78d9db924ead1c582daa
[ "Apache-2.0" ]
9
2020-11-10T16:29:15.000Z
2021-06-07T08:00:38.000Z
import argparse import io import mmcv import onnx import torch from mmcv.ops import RoIAlign, RoIPool from mmcv.runner import load_checkpoint from onnx import optimizer from torch.onnx import OperatorExportTypes from mmdet.models import build_detector def export_onnx_model(model, inputs, passes): """Trace and e...
31.92
76
0.646115
4a251cb5868c668b353aed5a150dcca6742005f7
460
py
Python
user.py
fuaad001/password-locker
4cae9f14f4ca646898b4cc76690b3500750de5e2
[ "MIT" ]
null
null
null
user.py
fuaad001/password-locker
4cae9f14f4ca646898b4cc76690b3500750de5e2
[ "MIT" ]
null
null
null
user.py
fuaad001/password-locker
4cae9f14f4ca646898b4cc76690b3500750de5e2
[ "MIT" ]
null
null
null
class User: """ Class that generates new instances of users """ user_list = [] def __init__(self, user_name, password): ''' __init__ method that defines properties for our users objects. ''' self.user_name = user_name self.password = password def creat...
20.909091
70
0.591304
4a251e70b17c01a72e1dd1bf5fa3daa003b2fd91
561
py
Python
Anil/sixth.py
tf153/Connect-Bud
99489f0494c7a7eb7a4586a8d33f9e261f93419e
[ "MIT" ]
null
null
null
Anil/sixth.py
tf153/Connect-Bud
99489f0494c7a7eb7a4586a8d33f9e261f93419e
[ "MIT" ]
null
null
null
Anil/sixth.py
tf153/Connect-Bud
99489f0494c7a7eb7a4586a8d33f9e261f93419e
[ "MIT" ]
null
null
null
c1=50 c2=20 print(c1+c2) print(c1-c2) print(c1*c2) print(c1/c2) print(c1%c2) print("---------------") c1=c1+30 c2+=40 print(c1) print(c2) print("-------------") c1-=10 c2*=20 print(c1) print(c2) print("-------------") c1/=7 print(c1) c1%=3 print(c1) print("-------------") c3=50 print(c3//5) c3//=10 print(c3) prin...
11
29
0.493761
4a251e94b4f0952acb6ae0d030351cdaeb53b9e8
1,097
py
Python
sofi/ui/basicblock.py
screamingskulls/sofi
1d75bc97683151864f8a4cafb59ef8e50de63ee4
[ "MIT" ]
402
2016-04-05T23:11:07.000Z
2022-02-22T21:10:49.000Z
sofi/ui/basicblock.py
screamingskulls/sofi
1d75bc97683151864f8a4cafb59ef8e50de63ee4
[ "MIT" ]
87
2016-03-31T00:09:39.000Z
2021-02-22T04:49:25.000Z
sofi/ui/basicblock.py
screamingskulls/sofi
1d75bc97683151864f8a4cafb59ef8e50de63ee4
[ "MIT" ]
54
2016-03-31T00:10:33.000Z
2021-06-23T21:38:36.000Z
from .element import Element class BasicBlock(Element): """Implements <pre> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(sel...
23.847826
79
0.511395
4a251eb35e43cc2ca3a014243ba4202984d870d1
2,960
py
Python
pokedex.py
trlucasr/pokedex
9afb6d6ee413d9840aa0e43a8685bfbdafcd4020
[ "MIT" ]
null
null
null
pokedex.py
trlucasr/pokedex
9afb6d6ee413d9840aa0e43a8685bfbdafcd4020
[ "MIT" ]
null
null
null
pokedex.py
trlucasr/pokedex
9afb6d6ee413d9840aa0e43a8685bfbdafcd4020
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, session, flash, url_for app = Flask(__name__) app.secret_key = 'flask' class Pokemon: def __init__(self, nome, especie, tipo): self.nome = nome self.especie = especie self.tipo = tipo class Treinadora: def __init__(self, id,...
34.418605
101
0.671959
4a251f3038bd15ebaf503f0cc92bbdb5567bc535
737
py
Python
agsconfig/services/jpip_server_extension.py
DavidWhittingham/agsconfig
c0ac6c37e5e49f87d2812220d756aef118c08024
[ "BSD-3-Clause" ]
1
2019-05-17T01:44:41.000Z
2019-05-17T01:44:41.000Z
agsconfig/services/jpip_server_extension.py
DavidWhittingham/agsconfig
c0ac6c37e5e49f87d2812220d756aef118c08024
[ "BSD-3-Clause" ]
2
2019-04-09T02:01:26.000Z
2019-06-25T05:27:11.000Z
agsconfig/services/jpip_server_extension.py
DavidWhittingham/agsconfig
c0ac6c37e5e49f87d2812220d756aef118c08024
[ "BSD-3-Clause" ]
2
2019-03-21T04:58:18.000Z
2019-09-09T23:00:48.000Z
"""This module contains the jpip Server extension class""" # Python 2/3 compatibility # pylint: disable=wildcard-import,unused-wildcard-import,wrong-import-order,wrong-import-position from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins.disabled import * from future...
38.789474
97
0.800543
4a251f7c95a035b4bc1bce0fc0a2b5387d19b634
16,145
py
Python
test/functional/mempool_accept.py
Zachinquarantine/bitcoindx
1a106a5ed6e6bfd0432368e71bdd2ca342afe6f9
[ "MIT" ]
1
2022-01-25T15:50:11.000Z
2022-01-25T15:50:11.000Z
test/functional/mempool_accept.py
Zachinquarantine/bitcoindx
1a106a5ed6e6bfd0432368e71bdd2ca342afe6f9
[ "MIT" ]
3
2021-12-31T16:41:15.000Z
2022-01-23T12:22:46.000Z
test/functional/mempool_accept.py
Zachinquarantine/bitcoindx
1a106a5ed6e6bfd0432368e71bdd2ca342afe6f9
[ "MIT" ]
2
2022-01-15T15:52:28.000Z
2022-01-22T00:37:46.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The BitcoinDX Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool acceptance of raw transactions.""" from decimal import Decimal import math from test_f...
46.393678
147
0.623599
4a2521866f35e621ccfdd067a898cbce77063711
9,377
py
Python
debug_tools/test_volsdf_algo.py
YangChenye/neurecon
972e810ec252cfd16f630b1de6d2802d1b8de59a
[ "MIT" ]
432
2021-09-08T07:38:36.000Z
2022-03-30T08:35:14.000Z
debug_tools/test_volsdf_algo.py
ashawkey/neurecon
972e810ec252cfd16f630b1de6d2802d1b8de59a
[ "MIT" ]
7
2021-09-16T03:08:58.000Z
2022-03-08T01:46:50.000Z
debug_tools/test_volsdf_algo.py
ashawkey/neurecon
972e810ec252cfd16f630b1de6d2802d1b8de59a
[ "MIT" ]
43
2021-09-08T07:43:39.000Z
2022-03-28T12:18:31.000Z
from models.frameworks import get_model from models.frameworks.volsdf import error_bound, sdf_to_sigma from utils import io_util, rend_util import torch import numpy as np import matplotlib.pyplot as plt import argparse parser = argparse.ArgumentParser() parser.add_argument("--load_pt", type=str, default=None) parse...
34.222628
119
0.580783
4a2522001b01921f369b2d45c3b3ffc6715c8d9c
7,713
py
Python
custom_components/shelly/binary_sensor.py
cetex/ShellyForHASS
7d722e738e7b283a0944c6f64bf598518112533f
[ "MIT" ]
541
2019-05-25T10:48:19.000Z
2022-03-25T07:38:09.000Z
custom_components/shelly/binary_sensor.py
cetex/ShellyForHASS
7d722e738e7b283a0944c6f64bf598518112533f
[ "MIT" ]
579
2019-05-25T15:37:48.000Z
2022-03-31T19:37:41.000Z
custom_components/shelly/binary_sensor.py
cetex/ShellyForHASS
7d722e738e7b283a0944c6f64bf598518112533f
[ "MIT" ]
125
2019-05-29T15:00:50.000Z
2022-03-31T02:50:08.000Z
""" Shelly platform for the sensor component. For more details about this platform, please refer to the documentation https://home-assistant.io/components/shelly/ """ import logging import time from threading import Timer from homeassistant.util import slugify from homeassistant.helpers.dispatcher import a...
33.38961
81
0.599767
4a252244456ae8a40bacff74c63ab9f432e78833
823
py
Python
functional_tests/test_layout_and_styling.py
gajimenezmaggiora/gus-django
cbfcd3109c1b8b3c9192020968e0e42e18364ebe
[ "MIT" ]
null
null
null
functional_tests/test_layout_and_styling.py
gajimenezmaggiora/gus-django
cbfcd3109c1b8b3c9192020968e0e42e18364ebe
[ "MIT" ]
null
null
null
functional_tests/test_layout_and_styling.py
gajimenezmaggiora/gus-django
cbfcd3109c1b8b3c9192020968e0e42e18364ebe
[ "MIT" ]
null
null
null
from .base import FunctionalTest class LayoutAndStylingTest(FunctionalTest): def test_layout_and_styling(self): # Edith goes to the home page self.browser.get(self.server_url) self.browser.set_window_size(1024, 768) # She notices the input box is nicely centered inputb...
30.481481
64
0.592953
4a2522f8d2d12d0295749f0b52e2c6f1291959c7
1,742
py
Python
desktop/core/ext-py/django-nose-1.4.5/testapp/tests.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/django-nose-1.4.5/testapp/tests.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/django-nose-1.4.5/testapp/tests.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
"""Django model tests.""" from datetime import datetime from django.test import TestCase from testapp.models import Question, Choice class NoDatabaseTestCase(TestCase): """Tests that don't read or write to the database.""" def test_question_str(self): """Test Question.__str__ method.""" que...
34.156863
79
0.665901
4a252330bcb4745491c4f46df7a32afdb94b7928
24,492
py
Python
electrum_dsv/plugins/coldcard/coldcard.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
electrum_dsv/plugins/coldcard/coldcard.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
electrum_dsv/plugins/coldcard/coldcard.py
mboyd1/electrum-dsv
1f8e26e6f6a50827fd83dfe018c5916fadde10c1
[ "MIT" ]
null
null
null
# # Coldcard Electrum plugin main code. # # import os, time, io import traceback from typing import TYPE_CHECKING, Optional import struct from electrum_dsv import bip32 from electrum_dsv.bip32 import BIP32Node, InvalidMasterKeyVersionBytes from electrum_dsv.i18n import _ from electrum_dsv.plugin import Device, hook, r...
38.031056
133
0.621591
4a2524653fa4c95c4b1c1d98c2b2572aa54c6668
69,092
py
Python
reflred/steps.py
krzywon/reductus
cc5c42ac619bf6150b7f07bde02a689affa910a1
[ "Unlicense" ]
null
null
null
reflred/steps.py
krzywon/reductus
cc5c42ac619bf6150b7f07bde02a689affa910a1
[ "Unlicense" ]
null
null
null
reflred/steps.py
krzywon/reductus
cc5c42ac619bf6150b7f07bde02a689affa910a1
[ "Unlicense" ]
null
null
null
# This program is public domain import os import numpy as np from copy import copy from dataflow.automod import cache, nocache, module # TODO: maybe bring back formula to show the math of each step # TODO: what about polarized data? @module def nop(data): """ No operation. **Inputs** data (refldata...
33.736328
205
0.678776
4a2525ae8706f36fdc033866a349e07912666da3
1,281
py
Python
preprocess/load_data/data_loader.py
Doarakko/awesomebook
650aa3833fb3110ad1c1ed804530617196e4989a
[ "BSD-3-Clause" ]
123
2018-04-08T10:35:22.000Z
2022-02-17T14:13:43.000Z
preprocess/load_data/data_loader.py
Doarakko/awesomebook
650aa3833fb3110ad1c1ed804530617196e4989a
[ "BSD-3-Clause" ]
null
null
null
preprocess/load_data/data_loader.py
Doarakko/awesomebook
650aa3833fb3110ad1c1ed804530617196e4989a
[ "BSD-3-Clause" ]
116
2018-04-17T06:31:16.000Z
2022-03-18T12:08:15.000Z
import pandas as pd import os def load_hotel_reserve(): customer_tb = pd.read_csv(os.path.dirname(__file__)+'/../../data/customer.csv') hotel_tb = pd.read_csv(os.path.dirname(__file__) + '/../../data/hotel.csv') reserve_tb = pd.read_csv(os.path.dirname(__file__) + '/../../data/reserve.csv') return customer_tb...
29.113636
102
0.706479
4a2527d480a35b364d2acdfe133f4bbf72eea545
18,097
py
Python
demeter/model.py
shemic/demeter
01f91aac43c325c48001dda86af17da43fb8d6fe
[ "MIT" ]
1
2017-12-05T08:17:53.000Z
2017-12-05T08:17:53.000Z
demeter/model.py
shemic/demeter
01f91aac43c325c48001dda86af17da43fb8d6fe
[ "MIT" ]
null
null
null
demeter/model.py
shemic/demeter
01f91aac43c325c48001dda86af17da43fb8d6fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ demeter name:model.py author:rabin """ import os import uuid import short_url import json import traceback import re import math import datetime from demeter.core import * class Model(object): __table__ = '' __comment__ = '' def __init__(self, type, db, config): self.db = db...
24.323925
210
0.608333
4a2527e4c3f4f06e72c2d3b3d594040739f717c7
1,932
py
Python
bin/abi2fasta.py
dytk2134/genomic_data_processing
c22ad51f67fd6563d40ec749a95725fc11bcf19e
[ "MIT" ]
null
null
null
bin/abi2fasta.py
dytk2134/genomic_data_processing
c22ad51f67fd6563d40ec749a95725fc11bcf19e
[ "MIT" ]
null
null
null
bin/abi2fasta.py
dytk2134/genomic_data_processing
c22ad51f67fd6563d40ec749a95725fc11bcf19e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Contributed by Li-Mei Chiang <dytk2134 [at] gmail [dot] com> (2020) import os import sys import logging from Bio import SeqIO __version__ = '1.0.0' # logger logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) if not logger.handlers: lh = logging.StreamHandler(...
33.310345
115
0.641304
4a25281ed2190927b0a11504bc18ceb15dee38c0
300
py
Python
isimip_data/download/viewsets.py
ISI-MIP/isimip-data
a0e4772362cc60db91e7689ec397840dcaaacddb
[ "MIT" ]
3
2020-02-10T10:13:17.000Z
2021-12-21T09:10:50.000Z
isimip_data/download/viewsets.py
ISI-MIP/isimip-data
a0e4772362cc60db91e7689ec397840dcaaacddb
[ "MIT" ]
17
2020-02-10T16:09:12.000Z
2021-07-02T09:03:37.000Z
isimip_data/download/viewsets.py
ISI-MIP/isimip-data
a0e4772362cc60db91e7689ec397840dcaaacddb
[ "MIT" ]
null
null
null
from rest_framework.mixins import ListModelMixin from rest_framework.viewsets import GenericViewSet from .constants import COUNTRIES from .serializers import CountrySerializer class CountryViewSet(ListModelMixin, GenericViewSet): serializer_class = CountrySerializer queryset = COUNTRIES
25
53
0.843333
4a25286a91f3878ec1fbe919ad84dcca09ee49e9
594
py
Python
tests/test_open.py
GitBib/asstosrt
1e671a9d7339dba3567ceeba37239469775f68d3
[ "Apache-2.0" ]
null
null
null
tests/test_open.py
GitBib/asstosrt
1e671a9d7339dba3567ceeba37239469775f68d3
[ "Apache-2.0" ]
null
null
null
tests/test_open.py
GitBib/asstosrt
1e671a9d7339dba3567ceeba37239469775f68d3
[ "Apache-2.0" ]
null
null
null
from pathlib import Path import pytest from pyasstosrt import Subtitle def test_open(): path = 'tests/sub.ass' sub = Subtitle(path) assert sub def test_open_use_pathlib(): path = Path('tests/sub.ass') sub = Subtitle(path) assert sub def test_open_use_object(): file = open('tests/sub....
17.470588
42
0.675084
4a2528abdbbd943137e5fd547b3bbbe0474d4310
3,384
py
Python
fabric_mb/message_bus/messages/extend_reservation_avro.py
fabric-testbed/MessageBus
2f44f1adca9cfe1551116d4b2d9484c4aa94a2aa
[ "MIT" ]
null
null
null
fabric_mb/message_bus/messages/extend_reservation_avro.py
fabric-testbed/MessageBus
2f44f1adca9cfe1551116d4b2d9484c4aa94a2aa
[ "MIT" ]
null
null
null
fabric_mb/message_bus/messages/extend_reservation_avro.py
fabric-testbed/MessageBus
2f44f1adca9cfe1551116d4b2d9484c4aa94a2aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
40.285714
116
0.690307
4a2528c993c6e1826fed9a7a1940a9ea576d4a85
409
py
Python
mongo/venv/Scripts/pip3.7-script.py
AnastasiaYiChen/Python
13b1ce38b6f0e7b83c72c825ca24523c08d4e489
[ "CNRI-Python" ]
null
null
null
mongo/venv/Scripts/pip3.7-script.py
AnastasiaYiChen/Python
13b1ce38b6f0e7b83c72c825ca24523c08d4e489
[ "CNRI-Python" ]
null
null
null
mongo/venv/Scripts/pip3.7-script.py
AnastasiaYiChen/Python
13b1ce38b6f0e7b83c72c825ca24523c08d4e489
[ "CNRI-Python" ]
null
null
null
#!C:\git\w0443276\PROG1700\mongo\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) ...
31.461538
70
0.662592
4a2529040553172fb55e66794275d0e43e7cc416
5,745
py
Python
Q Learning Discretization Tile Coding/Q_Learning_with_Tile_Coding_for_Continuous_RL.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
2
2020-01-29T20:49:29.000Z
2020-03-27T21:45:12.000Z
Q Learning Discretization Tile Coding/Q_Learning_with_Tile_Coding_for_Continuous_RL.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
null
null
null
Q Learning Discretization Tile Coding/Q_Learning_with_Tile_Coding_for_Continuous_RL.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 24 20:43:09 2019 @author: elif.ayvali """ import sys import gym import pandas as pd import numpy as np import matplotlib.collections as mc import matplotlib.pyplot as plt from helpers import create_uniform_grid,discretize,visualize_samples,\ create_tilings,create_tiling_...
38.046358
123
0.63168
4a2529b225600e591cf6c8b93048d658f5d5fa6b
14,752
py
Python
dvc/state.py
kss682/dvc
550cd28028cb872f83c5482d7bffbc9852e33da6
[ "Apache-2.0" ]
1
2019-09-02T00:28:11.000Z
2019-09-02T00:28:11.000Z
dvc/state.py
kss682/dvc
550cd28028cb872f83c5482d7bffbc9852e33da6
[ "Apache-2.0" ]
null
null
null
dvc/state.py
kss682/dvc
550cd28028cb872f83c5482d7bffbc9852e33da6
[ "Apache-2.0" ]
1
2019-09-02T00:29:40.000Z
2019-09-02T00:29:40.000Z
"""Manages state database used for checksum caching.""" from __future__ import unicode_literals import os import sqlite3 import logging from dvc.config import Config from dvc.utils import remove, current_timestamp, relpath, to_chunks from dvc.exceptions import DvcException from dvc.utils.fs import get_mtime_and_size...
30.991597
79
0.57016
4a2529c3d2076f65ff853b389c32c1f2201cf644
4,571
py
Python
test/Fortran/FORTRAN.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
test/Fortran/FORTRAN.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
test/Fortran/FORTRAN.py
bdbaddog/scons-gh-migrate
c76589c83ec00650a2d07dce79fc6dc5ca6465fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
31.095238
73
0.661781
4a2529e172c55034bf5f5c1dbb6aecad2867b00f
1,287
py
Python
2020/d18/d18.py
adam-blinzler/advent_of_code_2020
a9681c04e1618090913411c24d3872cd97fc6ec9
[ "MIT" ]
null
null
null
2020/d18/d18.py
adam-blinzler/advent_of_code_2020
a9681c04e1618090913411c24d3872cd97fc6ec9
[ "MIT" ]
null
null
null
2020/d18/d18.py
adam-blinzler/advent_of_code_2020
a9681c04e1618090913411c24d3872cd97fc6ec9
[ "MIT" ]
null
null
null
def run_calc(total, operation, number): if operation == '': total = number elif operation == '+': total += number elif operation == '*': total *= number else: print("FAILUE: Invalid operation") return total def solve_calc(line): calc = 0 op = '' no_calc =...
25.74
64
0.43512
4a252a4fa97cf450b05dab733c1378e7112b7eed
19,098
py
Python
fantasyopt/optimizer/dfs.py
lynshi/fantasy-optimizer
d24d79ffc7220e85255219973dcbcf416292a2df
[ "MIT" ]
null
null
null
fantasyopt/optimizer/dfs.py
lynshi/fantasy-optimizer
d24d79ffc7220e85255219973dcbcf416292a2df
[ "MIT" ]
null
null
null
fantasyopt/optimizer/dfs.py
lynshi/fantasy-optimizer
d24d79ffc7220e85255219973dcbcf416292a2df
[ "MIT" ]
null
null
null
import json import pulp from fantasyopt.optimizer.exceptions import OptimizerException from fantasyopt.player import Player class DfsOptimizer: UTILITY_CONSTRAINT = 'utility_constraint' IP_STATUS = 'ip_solve_status' LINEUP_SALARY = 'lineup_cost' LINEUP_POINTS = 'lineup_points' LINEUP_PLAYERS = '...
44.004608
87
0.594198
4a252a5ed70467fa88ca94455f3bc12068b92194
610
py
Python
task2/train.py
RainEggplant/traffic-sign-classification
413d9229576d50e25031868229a1397b7b6e763d
[ "MIT" ]
null
null
null
task2/train.py
RainEggplant/traffic-sign-classification
413d9229576d50e25031868229a1397b7b6e763d
[ "MIT" ]
null
null
null
task2/train.py
RainEggplant/traffic-sign-classification
413d9229576d50e25031868229a1397b7b6e763d
[ "MIT" ]
null
null
null
from argparse import ArgumentParser from pytorch_lightning import Trainer from stn_cnn import StnCnn def main(args): model = StnCnn(args) trainer = Trainer.from_argparse_args(args) trainer.fit(model) if __name__ == '__main__': parser = ArgumentParser() # add PROGRAM level args # parser.add_...
22.592593
71
0.721311
4a252b113c55bf722325a7812537c3b4f2c1ab8d
1,691
py
Python
code/maciek_code/Hamming_extended.py
mholowko/Solaris
25f65e72667f1e92e0d5c26bc9cbe159a6a15ace
[ "Apache-2.0" ]
null
null
null
code/maciek_code/Hamming_extended.py
mholowko/Solaris
25f65e72667f1e92e0d5c26bc9cbe159a6a15ace
[ "Apache-2.0" ]
null
null
null
code/maciek_code/Hamming_extended.py
mholowko/Solaris
25f65e72667f1e92e0d5c26bc9cbe159a6a15ace
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 10:00:48 2021 @author: hol428 """ # -*- coding: utf-8 -*- """ Created on Wed Feb 10 10:16:38 2021 @author: hol428 """ from scipy.spatial.distance import hamming import pandas as pd import matplotlib.pyplot as plt import numpy as np import seaborn as sns def separat...
23.486111
97
0.627439
4a252c3895ec3e40d7310e8dad0b40c1ca5b50b3
1,665
py
Python
modulo/conf/settings_class.py
Exanis/modulo
6b1c17b4cdb4100055e521a7e8f6fdd69d1c9f08
[ "MIT" ]
null
null
null
modulo/conf/settings_class.py
Exanis/modulo
6b1c17b4cdb4100055e521a7e8f6fdd69d1c9f08
[ "MIT" ]
null
null
null
modulo/conf/settings_class.py
Exanis/modulo
6b1c17b4cdb4100055e521a7e8f6fdd69d1c9f08
[ "MIT" ]
null
null
null
from os import environ from tempfile import gettempdir() from typing import Any, Optional from importlib import import_module from .exceptions import MissingConfigurationException, MissingConfigurationKeyException from .env import env_bool, env_list, env_str from modulo.session.backend import File DEFAULT_SETTINGS = {...
37.840909
199
0.663063
4a252c6db93f398fd30a64d99060e32d22fc17b1
2,575
py
Python
ip-memo/tests/unit/test_handler.py
rosolovskiy/ip-memo-lambda
8e9de8b70d202fbbd8a6ee1c0299aa6a75104d05
[ "Apache-2.0" ]
null
null
null
ip-memo/tests/unit/test_handler.py
rosolovskiy/ip-memo-lambda
8e9de8b70d202fbbd8a6ee1c0299aa6a75104d05
[ "Apache-2.0" ]
null
null
null
ip-memo/tests/unit/test_handler.py
rosolovskiy/ip-memo-lambda
8e9de8b70d202fbbd8a6ee1c0299aa6a75104d05
[ "Apache-2.0" ]
null
null
null
import json import pytest from ip_memo import app @pytest.fixture() def apigw_event(): """ Generates API GW Event""" return { "body": '{ "test": "body"}', "resource": "/{proxy+}", "requestContext": { "resourceId": "123456", "apiId": "1234567890", ...
34.797297
99
0.515728
4a252cde6cd9c1ac1d1a5292e2447b2dcde98862
11,413
py
Python
pandaserver/server/panda.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
1
2019-08-30T13:47:51.000Z
2019-08-30T13:47:51.000Z
pandaserver/server/panda.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
pandaserver/server/panda.py
mkycanopus/panda-server
0f7c36800c033fada8bbde53dceaab98770b6df2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """ entry point """ import datetime import traceback import types # config file from config import panda_config # initialize cx_Oracle using dummy connection from taskbuffer.Initializer import initializer initializer.init() # initialzie TaskBuffer from taskbuffer.TaskBuffer import taskBuffer tas...
50.277533
129
0.634014
4a252d074a34f116ccb5de75b663c01cbf4014dd
3,257
py
Python
Backend/project/views.py
divSivasankaran/BioSecure
0bd1494da2a3c7463809ea4d8a6957170e449503
[ "Unlicense" ]
3
2019-09-19T12:36:07.000Z
2020-09-21T02:09:21.000Z
Backend/project/views.py
div1090/BioSecure
0bd1494da2a3c7463809ea4d8a6957170e449503
[ "Unlicense" ]
null
null
null
Backend/project/views.py
div1090/BioSecure
0bd1494da2a3c7463809ea4d8a6957170e449503
[ "Unlicense" ]
2
2019-07-08T11:58:34.000Z
2020-12-13T13:10:29.000Z
# -*- coding: utf-8 -*- """ Created on Wed Aug 23 15:48:21 2017 @author: divya """ from flask import jsonify from flask import request, render_template from flask import abort, make_response from PIL import Image from scipy.spatial import distance import numpy as np import io import os from .import app from . import...
26.056
98
0.63494
4a252dbfe52b29810de92aee140d2618ecc9b1bf
838
py
Python
heuristics/opponentdistance_heuristic.py
TeamJumpstart/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
10
2021-04-18T17:54:02.000Z
2021-07-26T19:58:41.000Z
heuristics/opponentdistance_heuristic.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-21T15:13:41.000Z
2021-04-21T15:13:41.000Z
heuristics/opponentdistance_heuristic.py
DiddiZ/InformatiCup2021
a4d07992f772d3a1e9ef715fa8e9ce2234cd47a4
[ "MIT" ]
1
2021-04-20T09:42:50.000Z
2021-04-20T09:42:50.000Z
import numpy as np from heuristics.heuristic import Heuristic class OpponentDistanceHeuristic(Heuristic): """Computes the distance sum to all players up to a threshold.""" def __init__(self, dist_threshold=16): """Initialize OpponentDistanceHeuristic.""" self.dist_threshold = dist_threshold ...
34.916667
115
0.661098
4a252dc2f707ab536c65c08bd3ec27c5049a0ee9
36,565
py
Python
gs_quant/test/timeseries/test_measures_reports.py
webclinic017/gs-quant
ebb8ee5e1d954ab362aa567293906ce51818cfa8
[ "Apache-2.0" ]
null
null
null
gs_quant/test/timeseries/test_measures_reports.py
webclinic017/gs-quant
ebb8ee5e1d954ab362aa567293906ce51818cfa8
[ "Apache-2.0" ]
null
null
null
gs_quant/test/timeseries/test_measures_reports.py
webclinic017/gs-quant
ebb8ee5e1d954ab362aa567293906ce51818cfa8
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 Goldman Sachs. 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 di...
36.934343
118
0.617011
4a252e69a870d22d7b4d6220d6bc4c2a57053958
36,447
py
Python
apigpio_fork/apigpio.py
magnusnordlander/silvia-pi
3b927f73f8c8608a17f1f0e6458d06eff0f1d09a
[ "MIT" ]
16
2020-06-09T22:34:18.000Z
2021-02-09T15:31:16.000Z
apigpio_fork/apigpio.py
magnusnordlander/silvia-pi
3b927f73f8c8608a17f1f0e6458d06eff0f1d09a
[ "MIT" ]
null
null
null
apigpio_fork/apigpio.py
magnusnordlander/silvia-pi
3b927f73f8c8608a17f1f0e6458d06eff0f1d09a
[ "MIT" ]
1
2020-09-03T15:21:15.000Z
2020-09-03T15:21:15.000Z
import asyncio import socket import struct import sys import functools from .ctes import * exceptions = True # pigpio command numbers _PI_CMD_MODES = 0 _PI_CMD_MODEG = 1 _PI_CMD_PUD = 2 _PI_CMD_READ = 3 _PI_CMD_WRITE = 4 _PI_CMD_PWM = 5 _PI_CMD_PRS = 6 _PI_CMD_PFS = 7 _PI_CMD_SERVO = 8 _PI_CMD_WDOG = 9 _PI_CMD_BR1 = ...
31.12468
118
0.601257
4a252e7ad3a5302fd540eac89093d6b1d1cb09c3
3,459
py
Python
install/app_store/tk-multi-publish/v0.10.7/python/tk_multi_publish/ui/publish_progress_form.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-publish/v0.10.7/python/tk_multi_publish/ui/publish_progress_form.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
null
null
null
install/app_store/tk-multi-publish/v0.10.7/python/tk_multi_publish/ui/publish_progress_form.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
1
2020-02-15T10:42:56.000Z
2020-02-15T10:42:56.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'publish_progress_form.ui' # # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from tank.platform.qt import QtCore, QtGui class Ui_PublishProgressForm(object): def setupUi(self...
52.409091
141
0.740966
4a2530028727febb561176eec21ca810e97f7674
81,111
py
Python
syncplay/ui/GuiConfiguration.py
nipkownix/syncplay
5b93aeb20e80d3c208a766583363e87ea61ee85b
[ "Apache-2.0" ]
null
null
null
syncplay/ui/GuiConfiguration.py
nipkownix/syncplay
5b93aeb20e80d3c208a766583363e87ea61ee85b
[ "Apache-2.0" ]
null
null
null
syncplay/ui/GuiConfiguration.py
nipkownix/syncplay
5b93aeb20e80d3c208a766583363e87ea61ee85b
[ "Apache-2.0" ]
1
2022-01-15T19:24:48.000Z
2022-01-15T19:24:48.000Z
import os import sys import threading from datetime import datetime from syncplay import constants from syncplay import utils from syncplay.messages import getMessage, getLanguages, setLanguage, getInitialLanguage from syncplay.players.playerFactory import PlayerFactory from syncplay.utils import isBSD, isLinux, isMa...
53.858566
204
0.699375