hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
113e530a45b13fe1f2e094349e6bebfb8b5e53dd
15,137
py
Python
autoprocess/utils/misc.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
autoprocess/utils/misc.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
autoprocess/utils/misc.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
import functools import gzip import json import math import os import pwd import shutil import msgpack import numpy import msgpack_numpy from prettytable import PrettyTable # Physical Constants _h = 4.13566733e-15 # eV.s _c = 299792458e10 # A/s # direction vector of kappa axis on 08B1-1 when omega is at 0.0 deg K...
29.109615
96
0.595561
3cdd63016e996d35b1f0238a5f40aca79f14b29c
1,082
py
Python
conans/__init__.py
deadash/conan
6c0a71ebe0f1b3d00701d9138a5905673921eb11
[ "MIT" ]
null
null
null
conans/__init__.py
deadash/conan
6c0a71ebe0f1b3d00701d9138a5905673921eb11
[ "MIT" ]
null
null
null
conans/__init__.py
deadash/conan
6c0a71ebe0f1b3d00701d9138a5905673921eb11
[ "MIT" ]
null
null
null
from conans.client.build.autotools_environment import AutoToolsBuildEnvironment from conans.client.build.cmake import CMake from conans.client.build.meson import Meson from conans.client.build.msbuild import MSBuild from conans.client.build.visual_environment import VisualStudioBuildEnvironment from conans.client.run_e...
45.083333
97
0.832717
0ed5250582572f28bb8fdef80cd4931bdef26d6c
618
py
Python
importer/migrations/0014_auto_20180924_1943.py
juliecentofanti172/juliecentofanti.github.io
446ea8522b9f4a6709124ebb6e0f675acf7fe205
[ "CC0-1.0" ]
134
2018-05-23T14:00:29.000Z
2022-03-10T15:47:53.000Z
importer/migrations/0014_auto_20180924_1943.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
1,104
2018-05-22T20:18:22.000Z
2022-03-31T17:28:40.000Z
importer/migrations/0014_auto_20180924_1943.py
ptrourke/concordia
56ff364dbf38cb8a763df489479821fe43b76d69
[ "CC0-1.0" ]
32
2018-05-22T20:22:38.000Z
2021-12-21T14:11:44.000Z
# Generated by Django 2.0.8 on 2018-09-24 19:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("concordia", "0024_auto_20180924_1529"), ("importer", "0013_auto_20180924_1318"), ] operations = [ migrations.AlterUniqueTogether( ...
24.72
64
0.566343
2f70314373eeb8eca2616cdd468a55e871bd5ee7
2,861
py
Python
tasks.py
singingwolfboy/invoke
ccd2bae21a94ceef93cba34441cf575d4ddb7ff9
[ "BSD-2-Clause" ]
null
null
null
tasks.py
singingwolfboy/invoke
ccd2bae21a94ceef93cba34441cf575d4ddb7ff9
[ "BSD-2-Clause" ]
null
null
null
tasks.py
singingwolfboy/invoke
ccd2bae21a94ceef93cba34441cf575d4ddb7ff9
[ "BSD-2-Clause" ]
null
null
null
import sys import time from invocations.docs import docs, www from invocations.testing import test, coverage from invocations.packaging import vendorize, release from invoke import ctask as task, Collection, Context @task(help=test.help) def integration(c, module=None, runner=None, opts=None): """ Run the i...
30.115789
78
0.642083
aa60771a13307580966a143228982d3c29d00bff
1,350
py
Python
siml/networks/pyg/gin.py
ricosjp/siml
8fc07d798cdedd77622c16221ee44a575d36bad0
[ "Apache-2.0" ]
11
2020-12-28T16:22:33.000Z
2021-11-14T17:09:27.000Z
siml/networks/pyg/gin.py
ricosjp/siml
8fc07d798cdedd77622c16221ee44a575d36bad0
[ "Apache-2.0" ]
null
null
null
siml/networks/pyg/gin.py
ricosjp/siml
8fc07d798cdedd77622c16221ee44a575d36bad0
[ "Apache-2.0" ]
2
2021-04-28T09:41:47.000Z
2021-07-01T21:18:51.000Z
import torch import torch_geometric from . import abstract_pyg_gcn from .. import identity from .. import mlp from ... import setting class GIN(abstract_pyg_gcn.AbstractPyGGCN): """Graph Isomorphism Network based on https://arxiv.org/abs/1810.00826 .""" def __init__(self, block_setting): super().__...
34.615385
79
0.674815
a4be16d899ce61fb742b295fba400967bcbdc207
55,340
py
Python
igramscraper/instagram.py
sczerniawski/instagram-scraper
1f85474182667edc1ce530fd63b985ae8997ce04
[ "MIT" ]
null
null
null
igramscraper/instagram.py
sczerniawski/instagram-scraper
1f85474182667edc1ce530fd63b985ae8997ce04
[ "MIT" ]
null
null
null
igramscraper/instagram.py
sczerniawski/instagram-scraper
1f85474182667edc1ce530fd63b985ae8997ce04
[ "MIT" ]
null
null
null
import time import requests import re import json import hashlib import os from slugify import slugify import random from .session_manager import CookieSessionManager from .exception.instagram_auth_exception import InstagramAuthException from .exception.instagram_exception import InstagramException from .exception.inst...
34.914826
139
0.55627
c9a0c8250ccb513ff9db05ca3a4e4354d19d5cca
869
py
Python
a2ml/api/auger/a2ml.py
gitter-badger/a2ml
1d9ef6657645b61c64090284ed8fadb1a68b932c
[ "Apache-2.0" ]
2
2020-04-09T16:59:22.000Z
2020-04-09T17:01:10.000Z
a2ml/api/auger/a2ml.py
arita37/a2ml
3e92bede2c2ef6e63be74560cc6b904d3ec9d931
[ "Apache-2.0" ]
null
null
null
a2ml/api/auger/a2ml.py
arita37/a2ml
3e92bede2c2ef6e63be74560cc6b904d3ec9d931
[ "Apache-2.0" ]
null
null
null
from a2ml.api.auger.model import AugerModel from a2ml.api.auger.dataset import AugerDataset from a2ml.api.auger.experiment import AugerExperiment class AugerA2ML(object): """Auger A2ML implementation.""" def __init__(self, ctx): super(AugerA2ML, self).__init__() self.ctx = ctx def import_...
28.966667
73
0.686997
d659e68cfcf05a923d53159a475c96ec6a324eca
1,035
py
Python
src/pywink/devices/types.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
78
2017-08-19T03:46:13.000Z
2020-02-19T04:29:45.000Z
src/pywink/devices/types.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
5
2017-08-21T16:33:08.000Z
2018-06-21T18:37:18.000Z
src/pywink/devices/types.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
13
2017-08-19T16:46:08.000Z
2018-11-05T23:11:34.000Z
""" These are all the devices we currently support. """ LIGHT_BULB = 'light_bulb' BINARY_SWITCH = 'binary_switch' SENSOR_POD = 'sensor_pod' LOCK = 'lock' EGGTRAY = 'eggtray' GARAGE_DOOR = 'garage_door' POWERSTRIP = 'powerstrip' SHADE = 'shade' SIREN = 'siren' KEY = 'key' PIGGY_BANK = 'piggy_bank' SMOKE_DETECTOR = 'smo...
27.236842
81
0.672464
97acb3d7a73364f96b82348b0c2346850cef3867
251
py
Python
honda/honda/doctype/supplier/supplier.py
umapulkurte/honda
1c2ac3fb177e04bad7df8cdcbffcbd376591dc76
[ "MIT" ]
null
null
null
honda/honda/doctype/supplier/supplier.py
umapulkurte/honda
1c2ac3fb177e04bad7df8cdcbffcbd376591dc76
[ "MIT" ]
null
null
null
honda/honda/doctype/supplier/supplier.py
umapulkurte/honda
1c2ac3fb177e04bad7df8cdcbffcbd376591dc76
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Wayzon and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class Supplier(Document): pass
22.818182
49
0.776892
7785d70fcd21a59d4a0b7f842173c96513f3157f
11,174
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/scatter/_textfont.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/scatter/_textfont.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/scatter/_textfont.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scatter" _path_str = "scatter.textfont" _valid_props = {"color", "colorsrc", "family", "fa...
33.758308
82
0.557186
3d3febad416c678088daf5d8889290e773722a23
1,059
py
Python
tests/test_models/test_base_model.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
1,884
2020-07-09T18:53:43.000Z
2022-03-31T12:06:18.000Z
tests/test_models/test_base_model.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
622
2020-07-09T18:52:27.000Z
2022-03-31T14:41:09.000Z
tests/test_models/test_base_model.py
Jian137/mmediting-1
e1ac6c93441ec96696d0b530f040b91b809015b6
[ "Apache-2.0" ]
361
2020-07-09T19:21:47.000Z
2022-03-31T09:58:27.000Z
# Copyright (c) OpenMMLab. All rights reserved. import unittest from unittest.mock import patch import pytest import torch from mmedit.models import BaseModel class TestBaseModel(unittest.TestCase): @patch.multiple(BaseModel, __abstractmethods__=set()) def test_parse_losses(self): self.base_model =...
30.257143
72
0.644004
b21e385938d0b40830e7ecc917d77c7ec77f1fe5
4,909
py
Python
examples/native_contacts_and_free_energy_of_folding/helical_contacts_fixed_tolerance/Q_vs_T_helical_fixed_tolerance.py
shirtsgroup/cg_openmm
f71dbd7393c83386a73c4cee4b059bd17a56f12a
[ "MIT" ]
8
2020-05-26T23:07:13.000Z
2021-12-20T21:42:22.000Z
examples/native_contacts_and_free_energy_of_folding/helical_contacts_fixed_tolerance/Q_vs_T_helical_fixed_tolerance.py
shirtsgroup/cg_openmm
f71dbd7393c83386a73c4cee4b059bd17a56f12a
[ "MIT" ]
122
2019-11-01T18:39:32.000Z
2022-03-21T19:55:54.000Z
examples/native_contacts_and_free_energy_of_folding/helical_contacts_fixed_tolerance/Q_vs_T_helical_fixed_tolerance.py
shirtsgroup/cg_openmm
f71dbd7393c83386a73c4cee4b059bd17a56f12a
[ "MIT" ]
5
2019-10-04T14:25:16.000Z
2021-04-09T05:45:48.000Z
import os import pickle import time from cg_openmm.parameters.free_energy import * from cg_openmm.parameters.secondary_structure import * from simtk import unit # Using a helical backbone native contact scheme with fixed native contact tolerance, # calculate native contact fraction and free energy of folding...
36.634328
105
0.73131
653a539f8f6965b29a8d488b1c704fa05fc12ccc
665
py
Python
manage.py
junydania/lostsalesapp
116fe3cf24106d172b4e75d38a2ab97f60168125
[ "MIT" ]
2
2020-10-11T13:49:36.000Z
2020-10-22T13:27:12.000Z
manage.py
heyrun/lostsales
95cc9c388838b8de26b534fd53ff9a836ccb6f11
[ "MIT" ]
null
null
null
manage.py
heyrun/lostsales
95cc9c388838b8de26b534fd53ff9a836ccb6f11
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lostsales.settings') try: from django.core.management import execute_from_command_line except Im...
28.913043
73
0.679699
ab405693bf86d46b1e3437bc2cf11a12593b2b78
1,086
py
Python
pyaestro/bases.py
FrankD412/pyaestro
fb5797fe260c4285b40667a1e82337824c30f0ff
[ "MIT" ]
2
2020-05-20T02:19:49.000Z
2020-09-13T03:30:38.000Z
pyaestro/bases.py
FrankD412/pyaestro
fb5797fe260c4285b40667a1e82337824c30f0ff
[ "MIT" ]
12
2020-09-24T03:43:00.000Z
2021-08-31T13:53:40.000Z
pyaestro/bases.py
FrankD412/pyaestro
fb5797fe260c4285b40667a1e82337824c30f0ff
[ "MIT" ]
1
2021-02-09T22:35:34.000Z
2021-02-09T22:35:34.000Z
"""Package-wide utility base classes that all submodules can use.""" from __future__ import annotations from abc import ABC, abstractmethod from typing import Dict, Type, TypeVar T = TypeVar("T", bound="Specifiable") class Serializable(ABC): """An abstract API denoting a class' ability to be serialized.""" ...
27.846154
78
0.677716
632f1f9847559cdd90e4454db97eb1ec28816217
1,955
py
Python
wcics/server/routes/admin/news_create.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
wcics/server/routes/admin/news_create.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
6
2019-12-06T18:06:28.000Z
2021-12-01T20:19:05.000Z
wcics/server/routes/admin/news_create.py
CS-Center/CS-Center
3cd09f29d214406e6618fc67b9faf59a18f3f11b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from wcics import app, db, md from wcics.auth.manage_user import assert_login, organization_page, user from wcics.database.models import News, NewsAuthors, Users, Organizations, OrganizationUsers from wcics.database.models.roles import NewsRoles from wcics.database.utils import db_commit fro...
33.135593
128
0.715601
7326e602a4d4f1732af092db550378eeb996fa19
9,681
bzl
Python
tools/osx/xcode_configure.bzl
juhalindfors/bazel-patches
d915827cd9db2fd5e81abda9cc3c63b2fe4663f7
[ "Apache-2.0" ]
null
null
null
tools/osx/xcode_configure.bzl
juhalindfors/bazel-patches
d915827cd9db2fd5e81abda9cc3c63b2fe4663f7
[ "Apache-2.0" ]
null
null
null
tools/osx/xcode_configure.bzl
juhalindfors/bazel-patches
d915827cd9db2fd5e81abda9cc3c63b2fe4663f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
41.549356
104
0.700754
44e1829e2412a7e7dd1d780c6240e8f47abcdd83
4,625
py
Python
tests/test_db_user_collection_perms.py
rjw57/componentsdb
7e5fd96d3afbbcde09d2f7fba1d6c86975e41272
[ "MIT" ]
null
null
null
tests/test_db_user_collection_perms.py
rjw57/componentsdb
7e5fd96d3afbbcde09d2f7fba1d6c86975e41272
[ "MIT" ]
null
null
null
tests/test_db_user_collection_perms.py
rjw57/componentsdb
7e5fd96d3afbbcde09d2f7fba1d6c86975e41272
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name import pytest from componentsdb.model import ( Collection, User, UserCollectionPermission, Permission, ) @pytest.fixture def collections(mixer): return mixer.cycle(5).blend(Collection, name=mixer.FAKE) @pytest.fixture def users(mixer): return mixer.cycle(5).blend(U...
37
78
0.771676
25e89b1973b35e149814364f458a0c75267a185b
269
py
Python
z42/z42/web/boot/index.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
z42/z42/web/boot/index.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
z42/z42/web/boot/index.py
jumploop/collection_python
f66f18dc5ae50fce95679e0f4aee5e28b2543432
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 import _env from z42.web.mongo import mongo import sys APPNAME = sys.argv[1] __import__("zapp.%s.view._url"%APPNAME) for k,v in mongo._registered_documents.iteritems(): print "indexing", k v.generate_index(v._collection)
19.214286
51
0.736059
6143683a2ef845243e153f3136601f1d9aac409a
3,527
py
Python
prepare_data/loader.py
jimeffry/MTCNN-TF
4d41c5fd2dc13008d39b868aa2e921a7ff731e10
[ "MIT" ]
8
2018-08-15T11:07:03.000Z
2019-12-05T10:05:41.000Z
prepare_data/loader.py
jimeffry/MTCNN-TF
4d41c5fd2dc13008d39b868aa2e921a7ff731e10
[ "MIT" ]
2
2018-12-04T07:16:02.000Z
2019-11-04T09:42:03.000Z
prepare_data/loader.py
jimeffry/MTCNN-TF
4d41c5fd2dc13008d39b868aa2e921a7ff731e10
[ "MIT" ]
6
2018-08-07T01:09:12.000Z
2021-08-13T07:19:47.000Z
import numpy as np import minibatch import sys import cv2 sys.path.append("../") from train_models.MTCNN_config import config class TestLoader: #imdb image_path(list) def __init__(self, imdb, batch_size=1, shuffle=False): self.imdb = imdb self.batch_size = batch_size self.shuffle = shu...
26.125926
83
0.570456
24802cb0c932c4638c57f4d596209304495d2fda
889
py
Python
servicesAlert/function.py
afourdraine/AmbariMonitor
2ebab38ef200e25ff2c22ddd4803c84060b67457
[ "MIT" ]
1
2019-01-14T11:33:32.000Z
2019-01-14T11:33:32.000Z
servicesAlert/function.py
afourdraine/AmbariMonitor
2ebab38ef200e25ff2c22ddd4803c84060b67457
[ "MIT" ]
null
null
null
servicesAlert/function.py
afourdraine/AmbariMonitor
2ebab38ef200e25ff2c22ddd4803c84060b67457
[ "MIT" ]
null
null
null
import requests import json import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def getServicesAlert(nodeName, port, clusterName, auth_values, https, verify): if https == "n": url = "http://" + nodeName + ":" + port + "/api/v1/clusters/" + clusterName + "/alerts" eli...
26.147059
113
0.64342
592bf40a4d37562ea6612cd71ee9a8c3776fdf87
4,313
py
Python
trainer/srresnet_task.py
jason-zl190/sisr_medical
570d638a2e5a3301176af671d6b233deb507564f
[ "Apache-2.0" ]
1
2020-12-08T11:23:28.000Z
2020-12-08T11:23:28.000Z
trainer/srresnet_task.py
jason-zl190/sisr_ct
570d638a2e5a3301176af671d6b233deb507564f
[ "Apache-2.0" ]
null
null
null
trainer/srresnet_task.py
jason-zl190/sisr_ct
570d638a2e5a3301176af671d6b233deb507564f
[ "Apache-2.0" ]
1
2020-04-13T06:56:19.000Z
2020-04-13T06:56:19.000Z
""" Copyright Zisheng Liang 2019 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...
45.4
110
0.572687
050449ef9822feeac7bb72dfde0e3a025067a58b
6,603
py
Python
bindings/python/dbr_module/dbr.py
kant/data-broker
0a1efd3cf1fac2c5eb17c12279609c444fb34228
[ "Apache-2.0" ]
null
null
null
bindings/python/dbr_module/dbr.py
kant/data-broker
0a1efd3cf1fac2c5eb17c12279609c444fb34228
[ "Apache-2.0" ]
null
null
null
bindings/python/dbr_module/dbr.py
kant/data-broker
0a1efd3cf1fac2c5eb17c12279609c444fb34228
[ "Apache-2.0" ]
null
null
null
# # Copyright © 2018 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 agree...
42.6
126
0.802211
07331e15506ed33cd15a399ade517bed668cc9a6
68,233
py
Python
python/ccxt/async_support/delta.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
python/ccxt/async_support/delta.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
python/ccxt/async_support/delta.py
ChristianCoenen/ccxt
261e3549b4cfe9fa4ecf1a00feb0450337eab686
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import A...
43.295051
238
0.474653
f1eb9fadb1be11221aa72b1cef5457f6b96db7a7
38,520
py
Python
eggs/boto-2.27.0-py2.7.egg/boto/sqs/connection2.py
psnehal/MethylSig
5efad71e71ff2515feff2e49579c856ef9a1bbd8
[ "CC-BY-3.0" ]
1
2017-11-08T08:15:45.000Z
2017-11-08T08:15:45.000Z
eggs/boto-2.27.0-py2.7.egg/boto/sqs/connection2.py
psnehal/MethylSig
5efad71e71ff2515feff2e49579c856ef9a1bbd8
[ "CC-BY-3.0" ]
null
null
null
eggs/boto-2.27.0-py2.7.egg/boto/sqs/connection2.py
psnehal/MethylSig
5efad71e71ff2515feff2e49579c856ef9a1bbd8
[ "CC-BY-3.0" ]
4
2016-10-12T23:54:55.000Z
2020-07-25T23:28:25.000Z
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ...
44.326812
81
0.652518
56b854f387f4cabfaff693407133dbeba63b696b
1,716
py
Python
groot-backend/django/code/groot/models/room.py
ayushmantripathy9/We-Are-Groot
db919dbe24363d02ee08ea79520813e9dc9af174
[ "MIT" ]
null
null
null
groot-backend/django/code/groot/models/room.py
ayushmantripathy9/We-Are-Groot
db919dbe24363d02ee08ea79520813e9dc9af174
[ "MIT" ]
null
null
null
groot-backend/django/code/groot/models/room.py
ayushmantripathy9/We-Are-Groot
db919dbe24363d02ee08ea79520813e9dc9af174
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings class Room(models.Model): """ The Room Model. This would contain the rooms created by users for interaction. Attributes: - room_name : CharField - The name of the room - room_code : Fore...
24.514286
70
0.588578
da608ae174c2eca19a2e02bebbdb05fef6020444
15,920
py
Python
project/vin_fake_ocr/car_exam.py
zylo117/Mask_RCNN
c484f5fa9136ca68a4076833f99dd56bef8d5c7e
[ "MIT" ]
null
null
null
project/vin_fake_ocr/car_exam.py
zylo117/Mask_RCNN
c484f5fa9136ca68a4076833f99dd56bef8d5c7e
[ "MIT" ]
null
null
null
project/vin_fake_ocr/car_exam.py
zylo117/Mask_RCNN
c484f5fa9136ca68a4076833f99dd56bef8d5c7e
[ "MIT" ]
1
2020-11-19T01:35:22.000Z
2020-11-19T01:35:22.000Z
""" Mask R-CNN Train on the toy Balloon dataset and implement color splash effect. Copyright (c) 2018 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla ------------------------------------------------------------ Usage: import the module (see Jupyter notebooks for ex...
37.904762
96
0.58593
7f2ac45c2825e894a10e33bce3c049eeb4607735
7,436
py
Python
utils.py
carlos-bologna/kaggle_diabetic_retinopathy
6c283fa906a94652965999f29d13d2b866ba8e7c
[ "MIT" ]
null
null
null
utils.py
carlos-bologna/kaggle_diabetic_retinopathy
6c283fa906a94652965999f29d13d2b866ba8e7c
[ "MIT" ]
null
null
null
utils.py
carlos-bologna/kaggle_diabetic_retinopathy
6c283fa906a94652965999f29d13d2b866ba8e7c
[ "MIT" ]
null
null
null
import re import glob import os import sys import skimage import numpy as np import theano.tensor as T from sklearn.cross_validation import StratifiedShuffleSplit import string import lasagne as nn def padtosquare(im): w, l = im.shape if w < l: pad_size = (l - w) / 2.0 im_new = skimage.util...
33.345291
132
0.572754
eda82c3da8c1dd921bc4db8b173ca6777e22836c
344
py
Python
products/utilities.py
endonte/quotation2
ddb9bf2f98ea8b45c9c43f272e61bb85fb563613
[ "MIT" ]
null
null
null
products/utilities.py
endonte/quotation2
ddb9bf2f98ea8b45c9c43f272e61bb85fb563613
[ "MIT" ]
null
null
null
products/utilities.py
endonte/quotation2
ddb9bf2f98ea8b45c9c43f272e61bb85fb563613
[ "MIT" ]
null
null
null
from django.urls import reverse_lazy from jqgrid import JqGrid from .models import Product class ProductGrid(JqGrid): model = Product fields = ['id', 'product_name', 'category', 'uom'] url = reverse_lazy('grid_handler') caption = 'Product Grid' colmodel_overrides = { 'id': { 'editable':Fals...
26.461538
54
0.659884
17459b17e5209741d9ac469493e24478ee5ad2ed
27,350
py
Python
pyannote-parser-develop/tests/pyannote/metrics/diarization.py
cvossos2046/visual_speaker_diarization_svm_project
bdc57d893ad9c04145568310c068f9c3e2305cf8
[ "MIT" ]
null
null
null
pyannote-parser-develop/tests/pyannote/metrics/diarization.py
cvossos2046/visual_speaker_diarization_svm_project
bdc57d893ad9c04145568310c068f9c3e2305cf8
[ "MIT" ]
null
null
null
pyannote-parser-develop/tests/pyannote/metrics/diarization.py
cvossos2046/visual_speaker_diarization_svm_project
bdc57d893ad9c04145568310c068f9c3e2305cf8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # The MIT License (MIT) # Copyright (c) 2012-2019 CNRS # 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 limita...
36.515354
94
0.656782
42ec5735f838bdd5d0177a6c2c1e02839f96a634
1,524
py
Python
modules/player.py
ddealer/avacity-2.0
756b9877c6df2bdc8b1368dfd5fdf5ca96179516
[ "MIT" ]
1
2019-10-20T14:09:23.000Z
2019-10-20T14:09:23.000Z
modules/player.py
ddealer/avacity-2.0
756b9877c6df2bdc8b1368dfd5fdf5ca96179516
[ "MIT" ]
null
null
null
modules/player.py
ddealer/avacity-2.0
756b9877c6df2bdc8b1368dfd5fdf5ca96179516
[ "MIT" ]
null
null
null
from modules.base_module import Module from modules.location import gen_plr class_name = "Player" class Player(Module): prefix = "pl" def __init__(self, server): self.server = server self.commands = {"gid": self.players_by_id, "flw": self.follow, "gos": self.get_onlin...
32.425532
80
0.48622
1d738070529b26dbca264956935e34e4c7f99c65
354
py
Python
models/apps/game/unit/unit_stat/models.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
null
null
null
models/apps/game/unit/unit_stat/models.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
4
2021-03-19T02:37:45.000Z
2022-02-10T11:18:04.000Z
PMMH/apps/game/unit/unit_stat/models.py
metinberkkaratas/ProjectMagic-MightofHeroes
578697e637aba0f18b4f83762bf1c87fb20db2ee
[ "MIT" ]
1
2019-10-21T20:32:20.000Z
2019-10-21T20:32:20.000Z
from django.db import models class UnitStat(models.Model): vitality = models.IntegerField() strength = models.IntegerField() agility = models.IntegerField() stamina = models.IntegerField() intelligence = models.IntegerField() armor = models.IntegerField() damage = models.IntegerField() ...
29.5
40
0.717514
3e5d7a35df83ee80d9d37e28aeb3d1dd024f49cd
3,255
py
Python
scripts/delay_filter_run.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
10
2017-06-22T22:14:23.000Z
2022-03-08T17:33:45.000Z
scripts/delay_filter_run.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
610
2017-06-22T22:16:27.000Z
2022-03-31T16:11:34.000Z
scripts/delay_filter_run.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
8
2017-10-30T18:16:19.000Z
2021-04-01T09:20:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2019 the HERA Project # Licensed under the MIT License "Command-line drive script for hera_cal.delay_filter with baseline parallelization. Only performs filtering for DAYENU" from hera_cal import delay_filter import sys parser = delay_filter.delay_filter_argp...
50.076923
132
0.626114
9f71194ee91b096b1450eea2024e35caad021706
530
py
Python
src/account/models.py
masteritua/currency_exchange
9555e96fd66a72b1aee9d0d269e5d21fefe6bf9c
[ "MIT" ]
null
null
null
src/account/models.py
masteritua/currency_exchange
9555e96fd66a72b1aee9d0d269e5d21fefe6bf9c
[ "MIT" ]
11
2021-03-19T08:38:20.000Z
2022-03-12T00:18:51.000Z
src/account/models.py
masteritua/currency_exchange
9555e96fd66a72b1aee9d0d269e5d21fefe6bf9c
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractUser from uuid import uuid4 def avatar_path(instance, filename): return "/".join(["avatar", str(instance.id), str(uuid4()), filename]) class User(AbstractUser): avatar = models.ImageField(upload_to=avatar_path, null=True, blank=True,...
25.238095
90
0.739623
ef1037cf2adf7776d6f74879677fc35de3b0a69e
3,462
py
Python
modules/transformer_layer.py
NLPInBLCU/BiaffineDependencyParsing
40b133648c747957dacd59916add0403371fe680
[ "MIT" ]
67
2019-10-29T12:00:07.000Z
2022-02-16T10:18:19.000Z
module/transformer_layer.py
LiangsLi/Pytorch_Project_Template
d6779351cf3b2f3069f601b7c4d8508316e5ed83
[ "MIT" ]
8
2019-12-11T12:16:14.000Z
2021-09-03T11:03:30.000Z
module/transformer_layer.py
LiangsLi/Pytorch_Project_Template
d6779351cf3b2f3069f601b7c4d8508316e5ed83
[ "MIT" ]
17
2019-10-29T02:42:36.000Z
2021-11-01T05:09:31.000Z
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import torch import torch.nn as nn...
33.288462
80
0.621895
2d460abaffa52c27bc7279a00c9d6535e4d92508
3,686
py
Python
samples/publish_workbook.py
essentia-team/server-client-python
c9375204c581c5288fe4b6abc3c84fea41a887b5
[ "CC0-1.0", "MIT" ]
1
2019-10-24T02:00:52.000Z
2019-10-24T02:00:52.000Z
samples/publish_workbook.py
essentia-team/server-client-python
c9375204c581c5288fe4b6abc3c84fea41a887b5
[ "CC0-1.0", "MIT" ]
null
null
null
samples/publish_workbook.py
essentia-team/server-client-python
c9375204c581c5288fe4b6abc3c84fea41a887b5
[ "CC0-1.0", "MIT" ]
1
2022-03-29T23:19:43.000Z
2022-03-29T23:19:43.000Z
#### # This script demonstrates how to use the Tableau Server Client # to publish a workbook to a Tableau server. It will publish # a specified workbook to the 'default' project of the given server. # # Note: The REST API publish process cannot automatically include # extracts or other resources that the workbook uses....
42.860465
104
0.680955
51941609a90c550b100604bc4e24745647a17f7b
1,816
py
Python
lotto/downloader.py
rmayherr/eurojackpot
87ce9a73e074db1947c99c91ff3064528e9721a8
[ "MIT" ]
null
null
null
lotto/downloader.py
rmayherr/eurojackpot
87ce9a73e074db1947c99c91ff3064528e9721a8
[ "MIT" ]
null
null
null
lotto/downloader.py
rmayherr/eurojackpot
87ce9a73e074db1947c99c91ff3064528e9721a8
[ "MIT" ]
null
null
null
from configparser import ConfigParser import requests import os import sys from datetime import datetime def get_from_config(name): """Gain a specific value from config.txt """ cfg = ConfigParser() base_path = os.path.dirname(os.path.abspath(__file__)) cfg.read("/".join([base_path, 'config.txt'])) ...
35.607843
79
0.536894
a42a2c3dec66eb959a68c8ee4b709c5bc22c01b7
29,121
py
Python
Sticky-Notes/tests/test_inputs/checksForPossibleTitle.py
v2thegreat/sticky-notes
e79dd10b8fb88e0195ac1ca90d6b8dcb0f56e002
[ "Apache-2.0" ]
null
null
null
Sticky-Notes/tests/test_inputs/checksForPossibleTitle.py
v2thegreat/sticky-notes
e79dd10b8fb88e0195ac1ca90d6b8dcb0f56e002
[ "Apache-2.0" ]
null
null
null
Sticky-Notes/tests/test_inputs/checksForPossibleTitle.py
v2thegreat/sticky-notes
e79dd10b8fb88e0195ac1ca90d6b8dcb0f56e002
[ "Apache-2.0" ]
null
null
null
import random nouns = [ #Source: https://gist.github.com/bergantine/2390284 'people', 'history', 'way', 'art', 'world', 'information', 'map', 'two', 'family', 'government', 'health', 'system', 'computer', ...
18.560229
161
0.354555
ef2389fc1ad527a98937354b76b2803c89a71ade
13,785
py
Python
elegantrl/agents/AgentBase.py
XFFXFF/ElegantRL
d31d3a55f85d7301a028302bf56212a03f4ffb8c
[ "Apache-2.0" ]
1
2022-03-19T09:29:59.000Z
2022-03-19T09:29:59.000Z
elegantrl/agents/AgentBase.py
XFFXFF/ElegantRL
d31d3a55f85d7301a028302bf56212a03f4ffb8c
[ "Apache-2.0" ]
null
null
null
elegantrl/agents/AgentBase.py
XFFXFF/ElegantRL
d31d3a55f85d7301a028302bf56212a03f4ffb8c
[ "Apache-2.0" ]
null
null
null
import os from copy import deepcopy import numpy as np import numpy.random as rd import torch from torch.nn.utils import clip_grad_norm_ class AgentBase: # [ElegantRL.2021.11.11] def __init__( self, net_dim=256, state_dim=8, action_dim=2, reward_scale=1.0, gamma=0...
40.42522
111
0.615742
c281569fd7bd9996748769613fb40a317ffadf26
2,754
py
Python
game/Estructuras.py
GeinerGV/TS1_ProyectoFinal
b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d
[ "MIT" ]
null
null
null
game/Estructuras.py
GeinerGV/TS1_ProyectoFinal
b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d
[ "MIT" ]
null
null
null
game/Estructuras.py
GeinerGV/TS1_ProyectoFinal
b433a9b7a9bafe82186fa6b90b37fbbe35cbf12d
[ "MIT" ]
null
null
null
Fondos_de_escenas = ["#006CFF", "blue"] Estructuras_Escenarios = [ { "color": {"1": ("#00E8FF", "#00FFB9"), "-1": "#AB6000"} }, { "celdas":[ [["1-34"]], [(1,2,33,34)], [(1,2,33,34)], [(1,2,33,34),(24,25)], [(1,2,33,34)], ...
28.989474
112
0.309731
945730b39510f0268f163d7175cd7c244c0ec34a
9,050
py
Python
test/augmentation/test_augmentation_mix.py
EStorm21/kornia
b2bba7950d748ba0b8ce0cc68035a248799a1044
[ "ECL-2.0", "Apache-2.0" ]
4,894
2019-10-24T15:51:39.000Z
2022-03-30T22:58:33.000Z
test/augmentation/test_augmentation_mix.py
EStorm21/kornia
b2bba7950d748ba0b8ce0cc68035a248799a1044
[ "ECL-2.0", "Apache-2.0" ]
912
2019-10-24T16:08:42.000Z
2022-03-31T19:07:09.000Z
test/augmentation/test_augmentation_mix.py
EStorm21/kornia
b2bba7950d748ba0b8ce0cc68035a248799a1044
[ "ECL-2.0", "Apache-2.0" ]
557
2019-10-24T16:02:43.000Z
2022-03-28T07:33:33.000Z
import torch from kornia.augmentation import RandomCutMix, RandomMixUp from kornia.testing import assert_close class TestRandomMixUp: def test_smoke(self, device, dtype): f = RandomMixUp() repr = "RandomMixUp(lambda_val=None, p=1.0, p_batch=1.0, same_on_batch=False)" assert str(f) == repr...
37.708333
114
0.538564
6a0237b1c50faf7c7c35167396832ae7b1883850
204
py
Python
scratch.py
pxp920/Stat-Tracker
a50af101c186d09f6b6c12d48e34e1e4475e916b
[ "Apache-2.0" ]
null
null
null
scratch.py
pxp920/Stat-Tracker
a50af101c186d09f6b6c12d48e34e1e4475e916b
[ "Apache-2.0" ]
null
null
null
scratch.py
pxp920/Stat-Tracker
a50af101c186d09f6b6c12d48e34e1e4475e916b
[ "Apache-2.0" ]
null
null
null
import pandas as pd df = pd.read_csv("C:/Users/Panagiotis.Pantazis/Documents/Python Scripts/Stat Tracker/ScoreTracking.csv", header=0, encoding='ANSI') print(list(df)) print(df.loc(1))
25.5
114
0.696078
b7316dc04fc1daed528255d8dcbb0e7d4e7db6c6
1,403
py
Python
script.py
dariobaron/MAPD-A-fir-filter
0b5ab1134999909cc9350b2db847cabc90d8e3f2
[ "BSD-2-Clause" ]
null
null
null
script.py
dariobaron/MAPD-A-fir-filter
0b5ab1134999909cc9350b2db847cabc90d8e3f2
[ "BSD-2-Clause" ]
null
null
null
script.py
dariobaron/MAPD-A-fir-filter
0b5ab1134999909cc9350b2db847cabc90d8e3f2
[ "BSD-2-Clause" ]
null
null
null
import os import serial import numpy as np from numpy import log2 import time def computeQ(y,taps): M = max(max(np.abs(taps)),max(np.abs(y))) Q = log2(127) - log2(M) return Q def double_to_signed(a, Q): int_a = np.round(a*2**Q) signed = np.where(int_a >= 0, int_a, int_a + 256).astype(int) retu...
21.584615
89
0.617962
1f5c01a3ed17302edd5756d9ef6849c7a8c71ba2
951
py
Python
profiles_api/migrations/0002_auto_20200501_0658.py
ravikishorechitakani/profiles-rest-api
ef27db59fe034eb84f1cf1a53350c2e739ffef4c
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_auto_20200501_0658.py
ravikishorechitakani/profiles-rest-api
ef27db59fe034eb84f1cf1a53350c2e739ffef4c
[ "MIT" ]
5
2020-06-06T01:47:16.000Z
2021-06-10T20:06:55.000Z
profiles_api/migrations/0002_auto_20200501_0658.py
ravikishorechitakani/profiles-rest-api
ef27db59fe034eb84f1cf1a53350c2e739ffef4c
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-05-01 06:58 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.AlterField( ...
31.7
126
0.617245
84c46ea7c1049b4ac109044f0215ed5e4296681a
5,875
py
Python
Spyder/DecryptLogin_note/DecryptLogin_modules/core/sohu.py
Lightblues/10-playground
68e48be2f14897e70d0a37ba863246138cbb45d0
[ "Apache-2.0" ]
2,268
2019-03-02T16:17:17.000Z
2022-03-31T17:10:42.000Z
Spyder/DecryptLogin_note/DecryptLogin_modules/core/sohu.py
Lightblues/10-playground
68e48be2f14897e70d0a37ba863246138cbb45d0
[ "Apache-2.0" ]
68
2020-02-13T07:47:33.000Z
2022-03-29T13:48:52.000Z
Spyder/DecryptLogin_note/DecryptLogin_modules/core/sohu.py
Lightblues/10-playground
68e48be2f14897e70d0a37ba863246138cbb45d0
[ "Apache-2.0" ]
683
2019-03-05T14:18:44.000Z
2022-03-31T03:25:18.000Z
''' Function: 搜狐模拟登录 Author: Charles 微信公众号: Charles的皮卡丘 更新日期: 2020-10-29 ''' import time import requests from hashlib import md5 '''PC端登录搜狐''' class sohuPC(): is_callable = False def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value) self.info...
36.71875
163
0.587404
c0160d5ec70b1857522cde7f4cbd4865ef197073
10,508
py
Python
subforms/tests/test_subforms.py
urbanairship/django-subforms
87efa7526352f21acfb3f5902817b3763be36509
[ "Apache-2.0" ]
1
2019-09-09T00:20:55.000Z
2019-09-09T00:20:55.000Z
subforms/tests/test_subforms.py
urbanairship/django-subforms
87efa7526352f21acfb3f5902817b3763be36509
[ "Apache-2.0" ]
null
null
null
subforms/tests/test_subforms.py
urbanairship/django-subforms
87efa7526352f21acfb3f5902817b3763be36509
[ "Apache-2.0" ]
null
null
null
# (c) 2013 Urban Airship and Contributors import unittest from django import forms from subforms.decorators import ClassProperty from subforms.mapper import Mapper class SubFormWithMapping(forms.Form): fake_title = forms.CharField(required=False) fake_field = forms.CharField(required=False) form_to_mo...
34.228013
78
0.624286
324e3e12313c34f9d0627f201452a21ce364967a
1,508
py
Python
test.py
Pilpur/twitter-bot-fan
9609baac144c81080c337469e87bf70ffeae8f9f
[ "MIT" ]
null
null
null
test.py
Pilpur/twitter-bot-fan
9609baac144c81080c337469e87bf70ffeae8f9f
[ "MIT" ]
null
null
null
test.py
Pilpur/twitter-bot-fan
9609baac144c81080c337469e87bf70ffeae8f9f
[ "MIT" ]
1
2021-03-07T03:31:46.000Z
2021-03-07T03:31:46.000Z
# import random # with open ("daily_tweets.txt", "r") as daily_tweets_file: # daily_tweets = daily_tweets_file.readlines() # daily_tweets = [s.rstrip("\n") for s in daily_tweets] # random.shuffle(daily_tweets) # with open ("daily_tweets.txt", "w") as daily_tweets_file: # for item in daily_tweets: # ...
29.568627
100
0.619363
33f8700b11bc2b61891a9053e35ad402c7150fd7
4,382
py
Python
core/retry/api.py
1v1expert/SmartLighting
e5f4e39869cb7fa382dce6b2184d181b87fe79ef
[ "MIT" ]
null
null
null
core/retry/api.py
1v1expert/SmartLighting
e5f4e39869cb7fa382dce6b2184d181b87fe79ef
[ "MIT" ]
7
2020-06-05T21:53:37.000Z
2021-09-22T18:46:32.000Z
core/retry/api.py
1v1expert/SmartLighting
e5f4e39869cb7fa382dce6b2184d181b87fe79ef
[ "MIT" ]
null
null
null
import logging import random import time from functools import partial from .compat import decorator logging_logger = logging.getLogger(__name__) def __retry_internal(f, exceptions=Exception, tries=-1, delay=0, max_delay=None, backoff=1, jitter=0, logger=logging_logger): """ Executes ...
44.714286
118
0.657462
dbe8333dc2199ffa00bc2ec105445e3af7ab1bb6
39,921
py
Python
rpython/translator/c/node.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2016-07-06T23:30:20.000Z
2017-05-30T15:59:31.000Z
rpython/translator/c/node.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
null
null
null
rpython/translator/c/node.py
kantai/passe-pypy-taint-tracking
b60a3663f8fe89892dc182c8497aab97e2e75d69
[ "MIT" ]
2
2020-07-09T08:14:22.000Z
2021-01-15T18:01:25.000Z
from rpython.rtyper.lltypesystem.lltype import (Struct, Array, FixedSizeArray, FuncType, typeOf, GcStruct, GcArray, RttiStruct, ContainerType, parentlink, Ptr, Void, OpaqueType, Float, RuntimeTypeInfo, getRuntimeTypeInfo, Char, _subarray) from rpython.rtyper.lltypesystem import llmemory, llgroup from rpytho...
36.624771
95
0.567897
5c3537ec9b875bcc114b7f034c93eda3d518bee7
1,089
py
Python
dwetl/reader/mpf_file_reader.py
ThisIsNima/dwetl
12e06148929ec3ff5946345251c955cb4277d167
[ "Apache-2.0" ]
1
2021-04-08T11:58:51.000Z
2021-04-08T11:58:51.000Z
dwetl/reader/mpf_file_reader.py
tsboom/dwetl
b137b8ad3fa36fcabb6a0de33c23e1328b6e3a19
[ "Apache-2.0" ]
1
2019-12-17T16:41:25.000Z
2019-12-17T16:41:25.000Z
dwetl/reader/mpf_file_reader.py
ThisIsNima/dwetl
12e06148929ec3ff5946345251c955cb4277d167
[ "Apache-2.0" ]
3
2019-04-26T11:47:30.000Z
2022-03-05T06:11:57.000Z
import csv class MpfFileReader: """ Reads an "mpf" TSV file, returning a Dictionary of key/value pairs This implementation assumes that the first line in the file is a tab-separated list of the keys to use. """ def __init__(self, file_path): """ Constructs a new MpfFileReader....
29.432432
70
0.581267
6aac1cb32ce7977efc33f93beb1fd0745c63b7a7
1,314
py
Python
tests/functional/legacy_api/test_removed.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
3,103
2015-01-30T00:24:10.000Z
2022-03-31T23:21:39.000Z
tests/functional/legacy_api/test_removed.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
6,709
2015-01-05T01:23:20.000Z
2022-03-31T14:49:46.000Z
tests/functional/legacy_api/test_removed.py
fairhopeweb/warehouse
7d8ef742e8fe6b401190c28ce56761848041c89f
[ "Apache-2.0" ]
959
2015-01-12T22:22:40.000Z
2022-03-31T22:21:51.000Z
# 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 Li...
36.5
77
0.717656
bda5057116f8317f3660d28ca6bb9f850137443b
115
py
Python
tensorflow-check.py
srish28/tensorflow-windows-build-tutorial
78252dd769929b3154a8c9a39321694aee8c0269
[ "Apache-2.0" ]
6
2019-01-22T16:41:46.000Z
2021-04-08T17:28:47.000Z
tensorflow-check.py
srish28/tensorflow-windows-build-tutorial
78252dd769929b3154a8c9a39321694aee8c0269
[ "Apache-2.0" ]
1
2019-01-21T08:40:29.000Z
2020-03-15T11:40:57.000Z
tensorflow-check.py
srish28/tensorflow-windows-build-tutorial
78252dd769929b3154a8c9a39321694aee8c0269
[ "Apache-2.0" ]
57
2018-09-25T15:49:44.000Z
2021-08-16T12:48:26.000Z
import tensorflow as tf hello = tf.constant('Hello, TensorFlow!') session = tf.Session() print(session.run(hello))
23
41
0.747826
d912140d969ea76f785ebb01515978671be28c5b
6,960
py
Python
instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py
brett-bim/opentelemetry-python-contrib
22cc215c6cf1adddca6fa04d7d68b45bbe5b6bf3
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-11-30T09:54:59.000Z
2021-11-30T09:54:59.000Z
instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py
brett-bim/opentelemetry-python-contrib
22cc215c6cf1adddca6fa04d7d68b45bbe5b6bf3
[ "Apache-2.0", "BSD-3-Clause" ]
2
2021-09-05T07:58:39.000Z
2021-09-14T06:34:42.000Z
instrumentation/opentelemetry-instrumentation-starlette/src/opentelemetry/instrumentation/starlette/__init__.py
brett-bim/opentelemetry-python-contrib
22cc215c6cf1adddca6fa04d7d68b45bbe5b6bf3
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.219251
184
0.728161
c5860c414fff254820d54a870c5f629feb7997ca
4,100
py
Python
python/GafferSceneTest/ObjectToSceneTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneTest/ObjectToSceneTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
python/GafferSceneTest/ObjectToSceneTest.py
cwmartin/gaffer
1f8a0f75522105c9d5efefac6d55cb61c1038909
[ "BSD-3-Clause" ]
null
null
null
########################################################################## # # Copyright (c) 2012, John Haddon. All rights reserved. # Copyright (c) 2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that ...
41.836735
138
0.692195
cea54c128fcf69aea0223b6e35fd5792b5612759
2,707
py
Python
src/utils/split_dir.py
gregbugaj/marie-ai
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
4
2021-09-23T22:38:48.000Z
2022-01-19T12:03:02.000Z
src/utils/split_dir.py
gregbugaj/marie-icr
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
17
2021-12-22T16:37:21.000Z
2022-03-16T16:07:34.000Z
src/utils/split_dir.py
gregbugaj/marie-ai
f51a74f19ab5d7231c9f8a426284feff1671b974
[ "MIT" ]
null
null
null
import os from utils.utils import ensure_exists def split_dir(dir_src, dir_dest): import math import random import shutil print("dir_src : %s" % (dir_src)) print("dir_dest : %s" % (dir_dest)) # expecting two directories [image, masked] image_dir_src = os.path.join(dir_src, "image") ...
35.618421
81
0.708903
c19c59d1aaa452fa5c868884d5eaceb01848cd67
1,560
py
Python
kolibri/core/webpack/test/base.py
nucleogenesis/kolibri
7b653a28f014ed9d0f29d116e120d1a02eb62b4c
[ "MIT" ]
null
null
null
kolibri/core/webpack/test/base.py
nucleogenesis/kolibri
7b653a28f014ed9d0f29d116e120d1a02eb62b4c
[ "MIT" ]
null
null
null
kolibri/core/webpack/test/base.py
nucleogenesis/kolibri
7b653a28f014ed9d0f29d116e120d1a02eb62b4c
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import copy import json import tempfile from ..hooks import WebpackBundleHook TEST_STATS_FILE_DATA = { "status": "done", "chunks": { "untitled": [ { "name"...
30
112
0.689103
d2e25e90f8ac7ef8b70fd4768d4b51aed160aaa8
513
py
Python
mock_base/mock_messaging.py
SpinaNico/python-mock-base
2a53b54e9157160733a6e16a5ad7e6e129bd5c04
[ "MIT" ]
null
null
null
mock_base/mock_messaging.py
SpinaNico/python-mock-base
2a53b54e9157160733a6e16a5ad7e6e129bd5c04
[ "MIT" ]
null
null
null
mock_base/mock_messaging.py
SpinaNico/python-mock-base
2a53b54e9157160733a6e16a5ad7e6e129bd5c04
[ "MIT" ]
null
null
null
from . import get_mock_app, MockApp from ._messaging.messaging import Message, Notification def send(message: Message, dry_run=False, app: MockApp = None): if app is None: _a: MockApp = get_mock_app() if _a is None: raise Exception("default app not initialized ") _a.notify_list...
32.0625
71
0.649123
63777fdb7a5aec2a563b02c27135f72e42c2abe0
25,748
py
Python
2/code/circuit/full_circuit.py
mkeshita/6006psets_ng
f3cdbd978a2d8d4c5f3e419e75b3d8e166d94a17
[ "MIT" ]
1
2021-10-12T03:54:57.000Z
2021-10-12T03:54:57.000Z
2/code/circuit/full_circuit.py
mkeshita/6006psets_ng
f3cdbd978a2d8d4c5f3e419e75b3d8e166d94a17
[ "MIT" ]
null
null
null
2/code/circuit/full_circuit.py
mkeshita/6006psets_ng
f3cdbd978a2d8d4c5f3e419e75b3d8e166d94a17
[ "MIT" ]
2
2021-10-12T03:54:50.000Z
2022-03-29T15:32:15.000Z
#!/usr/bin/env python import heapq # Only used when QUEUE=lib import json # Used when TRACE=jsonp import os # Used to get the QUEUE and TRACE environment variables import re # Used when TRACE=jsonp import sys # Used to smooth over the range / xrange issue. # Python 3 doesn't have xrange, and range behav...
35.031293
92
0.569132
67674e789e708fff5f472823574d3accc6bb317a
264
py
Python
blaze/dispatch.py
quantopian-enterprise/blaze
6b686bed87993494b11676ed25e7b30f18ca2248
[ "BSD-3-Clause" ]
2,106
2015-08-20T11:53:30.000Z
2022-03-30T19:42:11.000Z
blaze/dispatch.py
quantopian-enterprise/blaze
6b686bed87993494b11676ed25e7b30f18ca2248
[ "BSD-3-Clause" ]
479
2015-08-20T06:09:38.000Z
2020-10-21T13:44:57.000Z
blaze/dispatch.py
quantopian-enterprise/blaze
6b686bed87993494b11676ed25e7b30f18ca2248
[ "BSD-3-Clause" ]
280
2015-08-20T08:42:01.000Z
2022-03-16T08:05:19.000Z
from __future__ import absolute_import, division, print_function from datashape.dispatch import namespace from multipledispatch import dispatch from functools import partial __all__ = 'dispatch', 'namespace' dispatch = partial(dispatch, namespace=namespace)
20.307692
64
0.825758
529fa3d2cccef04dc5d948a27faea82feb935051
816
py
Python
user/tests.py
vivianrdu/gfi-project
3d322e263a153f2f1eb624f8f4f33837d2af362c
[ "MIT" ]
1
2021-06-22T22:50:04.000Z
2021-06-22T22:50:04.000Z
user/tests.py
vivianrdu/gfi-project
3d322e263a153f2f1eb624f8f4f33837d2af362c
[ "MIT" ]
null
null
null
user/tests.py
vivianrdu/gfi-project
3d322e263a153f2f1eb624f8f4f33837d2af362c
[ "MIT" ]
1
2021-05-28T05:39:20.000Z
2021-05-28T05:39:20.000Z
from django.test import TestCase from django.contrib.auth.models import User from django.contrib.auth import SESSION_KEY # Create your tests here. class UserModelTests(TestCase): def setUp(self): # Every test needs a client. self.client = Client() self.credentials = { 'userna...
28.137931
72
0.63848
a6e3ee2b84cf44014ae798c51c949ba416a54a98
1,347
py
Python
proxyspiders/ipool/middlewares.py
seaify/ipool
fb12a8db260240d4ca51b065f4219fe9a58f93c4
[ "MIT" ]
27
2015-05-27T10:10:31.000Z
2021-11-16T12:44:35.000Z
proxyspiders/ipool/middlewares.py
seaify/ipool
fb12a8db260240d4ca51b065f4219fe9a58f93c4
[ "MIT" ]
14
2015-04-28T10:13:59.000Z
2015-06-02T07:19:38.000Z
proxyspiders/ipool/middlewares.py
seaify/ipool
fb12a8db260240d4ca51b065f4219fe9a58f93c4
[ "MIT" ]
15
2015-09-19T17:46:26.000Z
2019-11-08T15:11:16.000Z
from scrapy import log from scrapy.http import Request import random import time class InitRequest(object): def __init__(self, settings): self.proxy_dict = {} with open('books_spider/proxy.list') as fd: for x in fd: self.proxy_dict[x.strip()] = 100.0 self.proxy...
33.675
68
0.628805
4e4f6066370e464ab1e78fbf8943f1076749d79d
5,846
py
Python
airflow/contrib/auth/backends/google_auth.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
8
2017-04-20T16:15:44.000Z
2020-10-11T13:44:10.000Z
airflow/contrib/auth/backends/google_auth.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
219
2017-03-15T18:40:16.000Z
2022-02-28T22:52:43.000Z
airflow/contrib/auth/backends/google_auth.py
IGIT-CN/airflow
a6e5bcd59198afe5716813e84ebc4c59eade532c
[ "Apache-2.0" ]
3
2016-07-14T21:51:10.000Z
2020-10-12T13:26:36.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
30.768421
77
0.641977
93a51ffd5441e114f95221cbcc716a3380fe3c4f
185
py
Python
harshad_no.py
Akshara2820/Python_WhileLoop
d525b547bc8c8236cb2cd1881080ec4e6604fffc
[ "MIT" ]
1
2021-09-15T03:42:15.000Z
2021-09-15T03:42:15.000Z
harshad_no.py
Akshara2820/Python_WhileLoop
d525b547bc8c8236cb2cd1881080ec4e6604fffc
[ "MIT" ]
null
null
null
harshad_no.py
Akshara2820/Python_WhileLoop
d525b547bc8c8236cb2cd1881080ec4e6604fffc
[ "MIT" ]
null
null
null
num=int(input("enter no.")) sum=0 num1=num while num>0: rem=num%10 sum=sum+rem num//=10 if num1%sum==0: print("harshad no.",num1) else: print("not harshad no.",num1)
16.818182
33
0.610811
9b48ef99dc531e07244a4d31dcc140f38fd34092
616
py
Python
ebl/bibliography/domain/reference.py
ElectronicBabylonianLiterature/dictionary
5977a57314cf57f94f75cd12520f178b1d6a6555
[ "MIT" ]
4
2020-04-12T14:24:51.000Z
2020-10-15T15:48:15.000Z
ebl/bibliography/domain/reference.py
ElectronicBabylonianLiterature/dictionary
5977a57314cf57f94f75cd12520f178b1d6a6555
[ "MIT" ]
200
2019-12-04T09:53:20.000Z
2022-03-30T20:11:31.000Z
ebl/bibliography/domain/reference.py
ElectronicBabylonianLiterature/dictionary
5977a57314cf57f94f75cd12520f178b1d6a6555
[ "MIT" ]
1
2021-09-06T16:22:39.000Z
2021-09-06T16:22:39.000Z
from enum import Enum, auto from typing import NewType, Optional, Sequence import attr BibliographyId = NewType("BibliographyId", str) class ReferenceType(Enum): EDITION = auto() DISCUSSION = auto() COPY = auto() PHOTO = auto() TRANSLATION = auto() @attr.s(auto_attribs=True, frozen=True) class...
22
62
0.676948
023d94fdfca9ee90bbede6959eac50f0c017e7aa
6,579
py
Python
src/network.py
anthonywittemann/neural-networks-and-deep-learning-implementations
08eea066662f65264ac99711dfbedd8f5fde12b7
[ "Unlicense" ]
null
null
null
src/network.py
anthonywittemann/neural-networks-and-deep-learning-implementations
08eea066662f65264ac99711dfbedd8f5fde12b7
[ "Unlicense" ]
null
null
null
src/network.py
anthonywittemann/neural-networks-and-deep-learning-implementations
08eea066662f65264ac99711dfbedd8f5fde12b7
[ "Unlicense" ]
null
null
null
""" network.py ~~~~~~~~~~ A module to implement the stochastic gradient descent learning algorithm for a feedforward neural network. Gradients are calculated using backpropagation. Note that I have focused on making the code simple, easily readable, and easily modifiable. It is not optimized, and omits many...
44.452703
78
0.604651
8714757e73312c9de899806062da802daebaa3cc
4,428
py
Python
modules/setup.py
MrSpaar/Dpy-PolyBot
7eb46ddd6fc63f46365a2c7b1cf6eb623b30877d
[ "BSD-3-Clause" ]
1
2021-06-29T23:47:48.000Z
2021-06-29T23:47:48.000Z
modules/setup.py
MrSpaar/polybot
7eb46ddd6fc63f46365a2c7b1cf6eb623b30877d
[ "BSD-3-Clause" ]
null
null
null
modules/setup.py
MrSpaar/polybot
7eb46ddd6fc63f46365a2c7b1cf6eb623b30877d
[ "BSD-3-Clause" ]
1
2022-01-16T21:41:24.000Z
2022-01-16T21:41:24.000Z
from discord import Role, TextChannel, Embed, Guild, Member from discord.ext.commands import Context from discord.ext import commands from discord.utils import get from typing import Union from core.cls import Bot from os import listdir class SetupCommands(commands.Cog, name='Configuration', description='admin'): ...
44.727273
156
0.607724
f555a95cf8cc88b32120c07434fa96dce7ed8ac0
91
py
Python
openbook/apps.py
VisheshJain112/universe
699968263b632edee59d481c66756950c2054f0e
[ "MIT" ]
null
null
null
openbook/apps.py
VisheshJain112/universe
699968263b632edee59d481c66756950c2054f0e
[ "MIT" ]
null
null
null
openbook/apps.py
VisheshJain112/universe
699968263b632edee59d481c66756950c2054f0e
[ "MIT" ]
null
null
null
from django.apps import AppConfig class OpenbookConfig(AppConfig): name = 'openbook'
15.166667
33
0.758242
cc8b284b9740aa740c0040c03703475fd50309da
5,646
py
Python
homeassistant/components/notify/telegram.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
homeassistant/components/notify/telegram.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
homeassistant/components/notify/telegram.py
smilepc/Home-assistant
db3bfad0b5e0815ba1e255d4d646af7c99caef8b
[ "MIT" ]
null
null
null
""" Telegram platform for notify component. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/notify.telegram/ """ import io import logging import urllib import requests import voluptuous as vol import homeassistant.helpers.config_validation as cv from ho...
31.541899
78
0.611406
7da7cc5b87eb62202adf4b658706461fcda03fb6
25,084
py
Python
main.py
aerfalwl/xiaomisport
c50b183ba8122258aea4f43e31b280f424446ad4
[ "Apache-2.0" ]
null
null
null
main.py
aerfalwl/xiaomisport
c50b183ba8122258aea4f43e31b280f424446ad4
[ "Apache-2.0" ]
null
null
null
main.py
aerfalwl/xiaomisport
c50b183ba8122258aea4f43e31b280f424446ad4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf8 -*- # python >=3.8 import requests,time,re,json,random now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) headers = { 'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 9; MI 6 MIUI/20.6.18)' } #获取登录code def get_code(location): code_pattern = re.compile("(?<=access=).*?(?=...
75.554217
15,335
0.719981
c689adbe1bf89f016967df9dff654c75238b606f
977
py
Python
_lab/lab09/lab09_student_tests.py
ucsb-cs8/s20-ccs
38ab65bcbb427264cf7817c57a591c8892912331
[ "MIT" ]
null
null
null
_lab/lab09/lab09_student_tests.py
ucsb-cs8/s20-ccs
38ab65bcbb427264cf7817c57a591c8892912331
[ "MIT" ]
2
2020-02-26T14:40:50.000Z
2021-09-28T00:35:51.000Z
_lab/lab09/lab09_student_tests.py
ucsb-cs8/s20-ccs
38ab65bcbb427264cf7817c57a591c8892912331
[ "MIT" ]
null
null
null
# Student(s): (insert name here) # Make sure to read the comments for each function. import pytest ''' You will write your own test cases (3 - 5 tests per function). There's an example for each function to test: ''' #################### from lab09 import recursiveDigitSum def test_recursiveDigitSum_0(): ass...
23.829268
65
0.691914
0cf1b88b0884282fe09c5f8e528f2467260179ea
835
py
Python
sagemaker-serverless-huggingface-endpoint/app.py
philschmid/sample-huggingface-lambda-sagemaker-cdk
96a107b8f3f11a3f3d63071854214da8cbb000ad
[ "Apache-2.0" ]
null
null
null
sagemaker-serverless-huggingface-endpoint/app.py
philschmid/sample-huggingface-lambda-sagemaker-cdk
96a107b8f3f11a3f3d63071854214da8cbb000ad
[ "Apache-2.0" ]
null
null
null
sagemaker-serverless-huggingface-endpoint/app.py
philschmid/sample-huggingface-lambda-sagemaker-cdk
96a107b8f3f11a3f3d63071854214da8cbb000ad
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import os # For consistency with TypeScript code, `cdk` is the preferred import name for # the CDK's core module. The following line also imports it as `core` for use # with examples from the CDK Developer's Guide, which are in the process of # being updated to use `cdk`. You may delete this i...
37.954545
116
0.791617
54b001e50767bd7ffaec14084c60d2a01773ec83
43,039
py
Python
keras_preprocessing/image/image_data_generator.py
jnphilipp/keras-preprocessing
6f679b06d10d39edcb066142eec9e3bcd6d9de4b
[ "MIT" ]
null
null
null
keras_preprocessing/image/image_data_generator.py
jnphilipp/keras-preprocessing
6f679b06d10d39edcb066142eec9e3bcd6d9de4b
[ "MIT" ]
null
null
null
keras_preprocessing/image/image_data_generator.py
jnphilipp/keras-preprocessing
6f679b06d10d39edcb066142eec9e3bcd6d9de4b
[ "MIT" ]
null
null
null
"""Utilities for real-time data augmentation on image data. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings from six.moves import range import numpy as np try: import scipy # scipy.linalg cannot be accessed until explicitly impo...
44.278807
84
0.554056
fd8079ddab507b16654dc21bdab760fc31099b34
7,702
py
Python
octavia/api/v2/types/pool.py
sajuptpm/octavia
fde4ebe822072a79bb74497b504ca3f0a6a6518d
[ "Apache-2.0" ]
null
null
null
octavia/api/v2/types/pool.py
sajuptpm/octavia
fde4ebe822072a79bb74497b504ca3f0a6a6518d
[ "Apache-2.0" ]
null
null
null
octavia/api/v2/types/pool.py
sajuptpm/octavia
fde4ebe822072a79bb74497b504ca3f0a6a6518d
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Rackspace # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
39.497436
79
0.705531
edcf9aa28d1c3c3d5196c042058f5cf736bf2e88
309
py
Python
data/multilingual/Latn.MOS/Sun-ExtA_8/pdf_to_json_test_Latn.MOS_Sun-ExtA_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
1
2021-09-19T19:47:35.000Z
2021-09-19T19:47:35.000Z
data/multilingual/Latn.MOS/Sun-ExtA_8/pdf_to_json_test_Latn.MOS_Sun-ExtA_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
data/multilingual/Latn.MOS/Sun-ExtA_8/pdf_to_json_test_Latn.MOS_Sun-ExtA_8.py
antoinecarme/pdf_to_json_tests
d57a024fde862e698d916a1178f285883d7a3b2f
[ "BSD-3-Clause" ]
null
null
null
import pdf_to_json as p2j import json url = "file:data/multilingual/Latn.MOS/Sun-ExtA_8/udhr_Latn.MOS_Sun-ExtA_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
30.9
79
0.809061
5456007885cbaa89731c79da6ee855d1d0aac057
686
py
Python
bluebottle/activities/migrations/0022_activity_video_url.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/activities/migrations/0022_activity_video_url.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/activities/migrations/0022_activity_video_url.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.15 on 2020-05-20 12:16 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('activities', '0021_auto_20200415_1501'), ] operations = [ migrations.AddFi...
32.666667
278
0.666181
9c0f3e743d7313516cbae507595263813b495b92
480
py
Python
setup.py
mehta-lab/waveorder
9892c20955d3487778fd440a0d7f4f86334e7b8e
[ "Unlicense" ]
2
2020-12-19T02:55:09.000Z
2022-02-24T19:40:26.000Z
setup.py
mehta-lab/waveorder
9892c20955d3487778fd440a0d7f4f86334e7b8e
[ "Unlicense" ]
42
2021-01-20T22:34:14.000Z
2022-03-31T00:13:37.000Z
setup.py
mehta-lab/waveorder
9892c20955d3487778fd440a0d7f4f86334e7b8e
[ "Unlicense" ]
null
null
null
from setuptools import setup, find_packages setup( name = 'waveorder', version = '0.0.1', description = 'functions for reconstructing and visualizing phase and birefrigence', author = 'Li-Hao Yeh', author_email = 'lihao.yeh@czbiohub.org', ...
40
97
0.554167
2bcf27c9def145289c5fbe1e854d3ce8dd3422ec
3,699
py
Python
deepdanbooru/data/dataset_wrapper.py
fumiama/DeepDanbooru
17abe1ba7d656334006b8dc66d78fa0ece084d93
[ "MIT" ]
null
null
null
deepdanbooru/data/dataset_wrapper.py
fumiama/DeepDanbooru
17abe1ba7d656334006b8dc66d78fa0ece084d93
[ "MIT" ]
null
null
null
deepdanbooru/data/dataset_wrapper.py
fumiama/DeepDanbooru
17abe1ba7d656334006b8dc66d78fa0ece084d93
[ "MIT" ]
null
null
null
import random import numpy as np import tensorflow as tf import tensorflow_io as tfio import deepdanbooru as dd class DatasetWrapper: """ Wrapper class for data pipelining/augmentation. """ def __init__( self, inputs, tags, width, height, scale_range, rotation_range, shift_ra...
31.347458
86
0.583942
91e9b4ad06a129c5c51bcafa6c3895489cda88b9
36,773
py
Python
generate.py
joaor96/BLADE
6f0cd0e7e5fe8f7d200a63719ecb347987fd9a1e
[ "Apache-2.0" ]
5
2020-04-12T22:05:14.000Z
2021-09-29T08:52:05.000Z
generate.py
joaor96/RBM-tDBN
6f0cd0e7e5fe8f7d200a63719ecb347987fd9a1e
[ "Apache-2.0" ]
null
null
null
generate.py
joaor96/RBM-tDBN
6f0cd0e7e5fe8f7d200a63719ecb347987fd9a1e
[ "Apache-2.0" ]
1
2020-09-24T15:57:15.000Z
2020-09-24T15:57:15.000Z
# -*- coding: utf-8 -*- """ Created on Tue Oct 1 10:26:50 2019 @author: joaor """ import numpy as np import pandas as pd n_instances = 400 n_time_points = 5 def generate_binomial_1(n_instances,n_time_points): n_features=2 data = np.zeros([n_instances, n_features*n_time_points]) data[:,0] = np.random.bi...
47.387887
100
0.503141
866c5b3b07acc6def5733aa05b165a19a42e13ed
13,673
py
Python
atomate/vasp/builders/tasks_materials.py
srshivani/atomate
1e851d70a5f107736e3b9c6775e2e9e4a2de7a5d
[ "BSD-3-Clause-LBNL" ]
3
2021-08-02T09:19:20.000Z
2022-03-28T17:37:47.000Z
atomate/vasp/builders/tasks_materials.py
srshivani/atomate
1e851d70a5f107736e3b9c6775e2e9e4a2de7a5d
[ "BSD-3-Clause-LBNL" ]
4
2020-10-14T08:25:24.000Z
2020-10-16T01:05:12.000Z
atomate/vasp/builders/tasks_materials.py
srshivani/atomate
1e851d70a5f107736e3b9c6775e2e9e4a2de7a5d
[ "BSD-3-Clause-LBNL" ]
2
2020-09-23T13:10:00.000Z
2020-10-21T17:47:04.000Z
# coding: utf-8 import os from datetime import datetime from pymongo import ReturnDocument from tqdm import tqdm from atomate.utils.utils import get_mongolike, get_logger from atomate.vasp.builders.base import AbstractBuilder from atomate.vasp.builders.utils import dbid_to_str, dbid_to_int from atomate.utils.utils ...
46.506803
139
0.590653
cd15aca487428ee8a9d1e4a87af466017fc5bbf4
3,504
py
Python
hoomd/md/pytest/test_special_pair.py
USF-GT-Molecular-Modeling/hoomd-blue
2ba2f9e60b0320746d21aa8219bfc9df119c053f
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/pytest/test_special_pair.py
USF-GT-Molecular-Modeling/hoomd-blue
2ba2f9e60b0320746d21aa8219bfc9df119c053f
[ "BSD-3-Clause" ]
null
null
null
hoomd/md/pytest/test_special_pair.py
USF-GT-Molecular-Modeling/hoomd-blue
2ba2f9e60b0320746d21aa8219bfc9df119c053f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2009-2022 The Regents of the University of Michigan. # Part of HOOMD-blue, released under the BSD 3-Clause License. import hoomd import pytest import numpy R = 0.9 CHARGE = [-2.5, 2.5] # test parameters include the class, special pair params, r_cut, force, and # energy special_pair_test_parameters = ...
33.371429
80
0.589041
8400d66d6d86c9ddc800d5b67e30cfb2c7c70f55
366
py
Python
HASHING/Anagrams.py
rajansh87/Algorithms-Implementations
1f3dd1bc2decf10638fe0fdeeede47a650a9057b
[ "MIT" ]
1
2020-05-10T19:01:51.000Z
2020-05-10T19:01:51.000Z
HASHING/Anagrams.py
rajansh87/Algorithms-Implementations
1f3dd1bc2decf10638fe0fdeeede47a650a9057b
[ "MIT" ]
9
2021-03-17T18:10:18.000Z
2021-03-29T19:35:06.000Z
HASHING/Anagrams.py
rajansh87/Data-Structures-and-Algorithms-Implementations
0529079fbcd4d1a047210e9f2ff42c194c0818fe
[ "MIT" ]
null
null
null
arr=["cat","dog","god","tca"] dic={} count=[0]*27 ind=[] for i in range(len(arr)): for j in range(len(arr[i])): count[ord(arr[i][j])-97]+=1 #dic[i+1]=count if tuple(count) not in dic: dic[tuple(count)]=[i+1] else: dic[tuple(count)].append(i+1) count=[0]*27 ...
18.3
38
0.497268
34049a0328ca19438c54205b3ee1973ac2d5c205
785
py
Python
semana-02/lista-exercicio/lista-3/exercicio_8.py
larissajusten/ufsc-object-oriented-programming
839e6abcc20580ea1a47479232c3ed3cb0153e4b
[ "MIT" ]
6
2021-11-29T05:43:19.000Z
2022-03-15T21:54:54.000Z
semana-02/lista-exercicio/lista-3/exercicio_8.py
larissajusten/ufsc-object-oriented-programming
839e6abcc20580ea1a47479232c3ed3cb0153e4b
[ "MIT" ]
3
2021-11-21T03:44:03.000Z
2021-11-21T03:44:05.000Z
semana-02/lista-exercicio/lista-3/exercicio_8.py
larissajusten/ufsc-object-oriented-programming
839e6abcc20580ea1a47479232c3ed3cb0153e4b
[ "MIT" ]
null
null
null
""" Exercício 8. Crie uma classe MatrizEsparsa que pode ser construida das duas formas abaixo, e contenha métodos para mostrar a matriz no formato String e também no formato de dicionário. 1) receber uma dupla (tupla com 2 elementos) indicando quantas linhas e colunas tem a matriz, ...
46.176471
102
0.569427
195c0b7bfcf18e78a9ae8612acf4d19806b32de4
5,560
py
Python
.github/scripts/cover2cover.py
ocihangir/aws-greengrass-fleet-provisioning-by-claim
bb6773822edc31b93ee729f0e3c0fe7fa4a9a3d3
[ "Apache-2.0" ]
11
2020-12-15T18:23:51.000Z
2022-03-26T16:40:30.000Z
.github/scripts/cover2cover.py
ocihangir/aws-greengrass-fleet-provisioning-by-claim
bb6773822edc31b93ee729f0e3c0fe7fa4a9a3d3
[ "Apache-2.0" ]
50
2020-12-15T15:45:48.000Z
2022-03-29T19:44:50.000Z
.github/scripts/cover2cover.py
ocihangir/aws-greengrass-fleet-provisioning-by-claim
bb6773822edc31b93ee729f0e3c0fe7fa4a9a3d3
[ "Apache-2.0" ]
6
2020-12-16T20:14:34.000Z
2021-04-27T17:23:21.000Z
#!/usr/bin/env python # Copyright Amazon.com Inc. or its affiliates. # SPDX-License-Identifier: Apache-2.0 import sys import xml.etree.ElementTree as ET import re import os.path # branch-rate="0.0" complexity="0.0" line-rate="1.0" # branch="true" hits="1" number="86" def find_lines(j_package, filename): """Re...
34.320988
110
0.644784
b91c73c9f2adbd49a713a195525f34bb8e2380fb
1,146
py
Python
ciphers/transposition_cipher_encrypt_decrypt_file.py
NavpreetDevpuri/Python
7ef5ae66d777e8ed702993c6aa9270e0669cb0c6
[ "MIT" ]
145,614
2016-07-21T05:40:05.000Z
2022-03-31T22:17:22.000Z
ciphers/transposition_cipher_encrypt_decrypt_file.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
3,987
2016-07-28T17:31:25.000Z
2022-03-30T23:07:46.000Z
ciphers/transposition_cipher_encrypt_decrypt_file.py
Agha-Muqarib/Python
04f156a8973d6156a4357e0717d9eb0aa264d086
[ "MIT" ]
40,014
2016-07-26T15:14:41.000Z
2022-03-31T22:23:03.000Z
import os import sys import time from . import transposition_cipher as transCipher def main() -> None: inputFile = "Prehistoric Men.txt" outputFile = "Output.txt" key = int(input("Enter key: ")) mode = input("Encrypt/Decrypt [e/d]: ") if not os.path.exists(inputFile): print("File %s does...
27.285714
64
0.604712
cb823a94e9eecf708c23800c7927bd73c6937f93
972
py
Python
src/search/serializers/combined.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/search/serializers/combined.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/search/serializers/combined.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
from rest_framework import serializers from django.utils.html import strip_tags from search.serializers import ( PersonDocumentSerializer, HubDocumentSerializer, PaperDocumentSerializer, PostDocumentSerializer, ) class CombinedSerializer(serializers.BaseSerializer): index_serializers = { ...
27.771429
76
0.688272
66faa05e0ea9eb4f3e32d250cb773026187b34ce
2,728
py
Python
Python/CheckiO/Home/Pawn Brotherhood.py
bhupendpatil/Practice
9663b3f41e359787cbbd04aedb3db3c605c6ec8e
[ "MIT" ]
1
2020-12-23T06:22:29.000Z
2020-12-23T06:22:29.000Z
Python/CheckiO/Home/Pawn Brotherhood.py
bhupendpatil/Practice
9663b3f41e359787cbbd04aedb3db3c605c6ec8e
[ "MIT" ]
8
2020-06-18T19:32:39.000Z
2022-03-11T11:37:07.000Z
Python/CheckiO/Home/Pawn Brotherhood.py
bhupendpatil/Practice
9663b3f41e359787cbbd04aedb3db3c605c6ec8e
[ "MIT" ]
1
2021-01-19T00:16:34.000Z
2021-01-19T00:16:34.000Z
""" Almost everyone in the world knows about the ancient game Chess and has at least a basic understanding of its rules. It has various units with a wide range of movement patterns allowing for a huge number of possible different game positions (for example Number of possible chess games at the end of the n-th plies.) ...
34.974359
78
0.677786
1c2e3f6cda81575e2f211c0c19990a5adcb75fb9
2,608
py
Python
src/third_party/wiredtiger/test/suite/test_upgrade.py
hgGeorg/mongo
b5bea92504b2612f433b55e7b901f9ae276d11ec
[ "Apache-2.0" ]
1
2020-01-01T06:16:58.000Z
2020-01-01T06:16:58.000Z
src/third_party/wiredtiger/test/suite/test_upgrade.py
Man1029/CMONGO
c40380caa14e05509f46993aa8b8da966b09b0b5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/test/suite/test_upgrade.py
Man1029/CMONGO
c40380caa14e05509f46993aa8b8da966b09b0b5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Public Domain 2014-2016 MongoDB, Inc. # Public Domain 2008-2014 WiredTiger, Inc. # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compil...
36.222222
73
0.705521
0a042108a7cfc503a99198641738ac7b96a4d8e5
1,536
py
Python
GUI.py
Babar-Awan/CP19_05
5d852cc4bac724aba3acec6bcefc2e3a1d3b0a58
[ "MIT" ]
null
null
null
GUI.py
Babar-Awan/CP19_05
5d852cc4bac724aba3acec6bcefc2e3a1d3b0a58
[ "MIT" ]
null
null
null
GUI.py
Babar-Awan/CP19_05
5d852cc4bac724aba3acec6bcefc2e3a1d3b0a58
[ "MIT" ]
null
null
null
from tkinter import * root = Tk() root.geometry("1000x600") root.title("Face Detection In Real Time") def testing(): print("TESTING") def save(): print ("YOUR DATA IS SAVE") f1 = Frame(root, bg = "black", borderwidth = 1 , relief = GROOVE) f1.pack(side = TOP, fill="x") f2 = Frame(root, bg = "black", borderwid...
37.463415
162
0.610677
adb866e58b58cb14a0569bfa260224046f323049
4,589
py
Python
napari/utils/io.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
napari/utils/io.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
napari/utils/io.py
SaraLatif99/napari
b17235ee77d30e58492368a73d7c8d8189397fa4
[ "BSD-3-Clause" ]
null
null
null
import os from glob import glob from pathlib import Path import numpy as np from skimage import io from skimage.io.collection import alphanumeric_key from dask import delayed from dask import array as da def magic_imread(filenames, *, use_dask=None, stack=True): """Dispatch the appropriate reader given some fi...
32.778571
79
0.568969
130347d21271b025a1f9976bad75573c476c5a0c
51
py
Python
tests/naif_pds4_bundler/functional/__init__.py
NASA-PDS/naif-pds4-bundler
bd7207d157ec9cae60f42cb9ea387ac194b1671c
[ "Apache-2.0" ]
null
null
null
tests/naif_pds4_bundler/functional/__init__.py
NASA-PDS/naif-pds4-bundler
bd7207d157ec9cae60f42cb9ea387ac194b1671c
[ "Apache-2.0" ]
null
null
null
tests/naif_pds4_bundler/functional/__init__.py
NASA-PDS/naif-pds4-bundler
bd7207d157ec9cae60f42cb9ea387ac194b1671c
[ "Apache-2.0" ]
null
null
null
"""NAIF PDS4 Bundle Functional Tests Namespace."""
25.5
50
0.745098
b4e2198cc81da4801731a61be781984e21111e42
4,525
py
Python
npipes/triggers/sqs.py
praxik/nPipes
4edf8fa0d0467e3455941c46e960fdf3f43e2d31
[ "Apache-2.0" ]
null
null
null
npipes/triggers/sqs.py
praxik/nPipes
4edf8fa0d0467e3455941c46e960fdf3f43e2d31
[ "Apache-2.0" ]
null
null
null
npipes/triggers/sqs.py
praxik/nPipes
4edf8fa0d0467e3455941c46e960fdf3f43e2d31
[ "Apache-2.0" ]
null
null
null
# -*- mode: python;-*- from ..message.header import Message from ..outcome import Outcome, Success, Failure from ..message.header import Encoding, EncodingPlainText, EncodingGzB64, S3Asset, AssetSettings, Decompression, BodyInString, BodyInAsset from ..assethandlers.assets import randomName from ..assethandlers.s3util...
48.655914
137
0.621878
a64e4680a0cbeba652da09c0d4fb9a1524203da3
781
py
Python
x_com/evacuation_priorities.py
SashaNullptr/X-COM-UFO-Defense
9ae394c9c593428d072b51a5e1cedad47876a452
[ "MIT" ]
null
null
null
x_com/evacuation_priorities.py
SashaNullptr/X-COM-UFO-Defense
9ae394c9c593428d072b51a5e1cedad47876a452
[ "MIT" ]
null
null
null
x_com/evacuation_priorities.py
SashaNullptr/X-COM-UFO-Defense
9ae394c9c593428d072b51a5e1cedad47876a452
[ "MIT" ]
null
null
null
import psycopg2 from x_com import config def evac_priorties(): sightings_by_city_query = "SELECT city, COUNT(*) FROM ufo_data WHERE country LIKE \'us\' GROUP BY city ORDER BY COUNT(*) DESC;" sightings = [] try: params = config() conn = psycopg2.connect(**params) cur = conn.curso...
24.40625
131
0.597951
45482879576e9c88a0eabe1c0d9bdeabd68f4f53
5,780
py
Python
examples/test_slack.py
q0w/snug
a9de335b48d96190a2bfe5e606830c4a60cb5705
[ "MIT" ]
123
2018-01-23T17:29:29.000Z
2022-02-11T06:57:57.000Z
examples/test_slack.py
q0w/snug
a9de335b48d96190a2bfe5e606830c4a60cb5705
[ "MIT" ]
274
2018-01-25T07:17:55.000Z
2022-01-20T07:37:10.000Z
examples/test_slack.py
q0w/snug
a9de335b48d96190a2bfe5e606830c4a60cb5705
[ "MIT" ]
5
2017-11-26T21:31:12.000Z
2021-11-28T10:19:57.000Z
import json from pathlib import Path import aiohttp import pytest import slack import snug from gentools import sendreturn live = pytest.config.getoption('--live') CRED_PATH = Path('~/.snug/slack.json').expanduser() token = CRED_PATH.read_text().strip() @pytest.fixture(scope='module') async def exec(): async ...
26.759259
76
0.520761
ef92e34df321c4752b1147b9c0374a0ab069b226
26,874
py
Python
setup.py
zclimes/airflow
2fb68342b01da4cb5d79ac9e5c0f7687d74351f3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
setup.py
zclimes/airflow
2fb68342b01da4cb5d79ac9e5c0f7687d74351f3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
setup.py
zclimes/airflow
2fb68342b01da4cb5d79ac9e5c0f7687d74351f3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
31.176334
110
0.633214
2d14d8959f7d7cc52613f0ea50b222821d99a8bc
14,300
py
Python
pybind/nos/v7_1_0/rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/static/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/static/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/nos/v7_1_0/rbridge_id/router/router_bgp/address_family/ipv6/ipv6_unicast/af_ipv6_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/static/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
1
2021-11-05T22:15:42.000Z
2021-11-05T22:15:42.000Z
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
74.093264
637
0.741049
4c7dfe2d666362ce27671963362fdca70f2e3bd4
2,499
py
Python
conversations/callbacks/root_handler_callbacks.py
dattatreya303/round_robin_tasker
74b031322ef1ca59072486c5c7d0d98e59bc62c3
[ "MIT" ]
null
null
null
conversations/callbacks/root_handler_callbacks.py
dattatreya303/round_robin_tasker
74b031322ef1ca59072486c5c7d0d98e59bc62c3
[ "MIT" ]
4
2020-08-03T15:50:48.000Z
2020-11-01T06:05:38.000Z
conversations/callbacks/root_handler_callbacks.py
dattatreya303/round_robin_tasker
74b031322ef1ca59072486c5c7d0d98e59bc62c3
[ "MIT" ]
null
null
null
from typing import Dict from telegram import Update, MessageEntity from telegram.ext import CallbackContext, Handler from Constants import logger from conversations.commands import MainCommands from conversations.handlers import ADD_TASK_CONVERSATION_HANDLER, CHECK_TASK_CONVERSATION_HANDLER, \ LIST_TASKS_CONVERSA...
44.625
100
0.777911
258dccb3cc2a13f6837f6cf408790a8359537f99
293
py
Python
crys3d/command_line/HKLviewer.py
mphancock/cctbx_project
ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85
[ "BSD-3-Clause-LBNL" ]
null
null
null
crys3d/command_line/HKLviewer.py
mphancock/cctbx_project
ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85
[ "BSD-3-Clause-LBNL" ]
1
2020-05-26T17:46:17.000Z
2020-05-26T17:55:19.000Z
crys3d/command_line/HKLviewer.py
mphancock/cctbx_project
ec8a239c5bcee9c9b2d1c6c95dc3fff2580bbb85
[ "BSD-3-Clause-LBNL" ]
1
2021-03-26T12:52:30.000Z
2021-03-26T12:52:30.000Z
# LIBTBX_SET_DISPATCHER_NAME phenix.HKLviewer # LIBTBX_SET_DISPATCHER_NAME cctbx.HKLviewer # LIBTBX_SET_DISPATCHER_NAME phasertng.HKLviewer from __future__ import absolute_import, division, print_function from crys3d.hklview import HKLviewer if (__name__ == "__main__") : HKLviewer.run()
26.636364
64
0.832765
cd8a1c4bccfe16876b10eaff24b086348f9968a6
143
py
Python
tests/web_platform/css_flexbox_1/test_auto_margins.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
71
2015-04-13T09:44:14.000Z
2019-03-24T01:03:02.000Z
tests/web_platform/css_flexbox_1/test_auto_margins.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
35
2019-05-06T15:26:09.000Z
2022-03-28T06:30:33.000Z
tests/web_platform/css_flexbox_1/test_auto_margins.py
jonboland/colosseum
cbf974be54fd7f6fddbe7285704cfaf7a866c5c5
[ "BSD-3-Clause" ]
139
2015-05-30T18:37:43.000Z
2019-03-27T17:14:05.000Z
from tests.utils import W3CTestCase class TestAutoMargins(W3CTestCase): vars().update(W3CTestCase.find_tests(__file__, 'auto-margins-'))
23.833333
68
0.783217
85cd82ad6359f04307ad63f28f66595bd5121383
7,878
py
Python
hkm/tests/test_clean_unused_data.py
City-of-Helsinki/kuvaselaamo
3fa9b69e3f5496620852d8b138129d0069339fcd
[ "MIT" ]
1
2017-05-07T10:46:24.000Z
2017-05-07T10:46:24.000Z
hkm/tests/test_clean_unused_data.py
City-of-Helsinki/kuvaselaamo
3fa9b69e3f5496620852d8b138129d0069339fcd
[ "MIT" ]
60
2016-10-18T11:18:48.000Z
2022-02-13T20:04:18.000Z
hkm/tests/test_clean_unused_data.py
City-of-Helsinki/kuvaselaamo
3fa9b69e3f5496620852d8b138129d0069339fcd
[ "MIT" ]
9
2017-04-18T13:26:26.000Z
2020-02-13T20:05:13.000Z
import pytest from factories import FeedbackFactory, TmpImageFactory, ProductOrderFactory, UserFactory from hkm.models.models import Feedback, TmpImage, ProductOrder, UserProfile, User, Collection, Record from django.core.management import call_command from freezegun import freeze_time from datetime import datetime, ti...
36.304147
119
0.777101
c105e156ca9c4e0ed539f73c6429af7b15e31c6c
21,787
py
Python
tests/dbobject/test_privs.py
reedstrm/Pyrseas
1ca23a906718bca36c12763fde54f40053dc3f81
[ "BSD-3-Clause" ]
null
null
null
tests/dbobject/test_privs.py
reedstrm/Pyrseas
1ca23a906718bca36c12763fde54f40053dc3f81
[ "BSD-3-Clause" ]
null
null
null
tests/dbobject/test_privs.py
reedstrm/Pyrseas
1ca23a906718bca36c12763fde54f40053dc3f81
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test object privileges The majority of other tests exclude access privileges. These explicitly request it. In addition, the roles 'user1' and 'user2' are created if they don't exist. """ from pyrseas.testutils import DatabaseToMapTestCase from pyrseas.testutils import InputMapToSqlTestCas...
48.094923
79
0.542984
2be4fab8dcce45333d66ee0dd227bacbd1f4276a
74,817
py
Python
mac_easy_manager/mac_easy_manager.py
DallogFheir/mac-easy-manager
20531efa504e2b752a1aa6154a87169be501ddd4
[ "MIT" ]
null
null
null
mac_easy_manager/mac_easy_manager.py
DallogFheir/mac-easy-manager
20531efa504e2b752a1aa6154a87169be501ddd4
[ "MIT" ]
null
null
null
mac_easy_manager/mac_easy_manager.py
DallogFheir/mac-easy-manager
20531efa504e2b752a1aa6154a87169be501ddd4
[ "MIT" ]
null
null
null
from configparser import ConfigParser from copy import deepcopy from datetime import datetime import json from pathlib import Path from PIL import ImageTk import re import shutil import tkinter as tk from tkinter import ttk, messagebox import traceback #region EXCEPTION HANDLER # taken from here: https://mail.python.o...
43.803864
239
0.629122