hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
b399ee56bb344df4e4713b0aa7fd7ec58e6b5b22
3,910
py
Python
app/base/models.py
aleksandrmalinoko/CP_HC_Sharp_object
8dde212db0a8fe6851050e153b05aac06c2ed4e1
[ "MIT" ]
null
null
null
app/base/models.py
aleksandrmalinoko/CP_HC_Sharp_object
8dde212db0a8fe6851050e153b05aac06c2ed4e1
[ "MIT" ]
null
null
null
app/base/models.py
aleksandrmalinoko/CP_HC_Sharp_object
8dde212db0a8fe6851050e153b05aac06c2ed4e1
[ "MIT" ]
null
null
null
from bcrypt import gensalt, hashpw from flask_login import UserMixin from sqlalchemy import Binary, Column, Integer, String, Float from app import db, login_manager
34.910714
78
0.614834
b39aad18ae85ad0e752493635f0bdf886c49c270
855
py
Python
test/integration/base/test_update_title.py
waralex/Dash.jl
f0606e07d2479fd8b5be1da4a6a59656e24acfa3
[ "MIT" ]
409
2020-04-02T18:56:47.000Z
2022-03-31T20:28:51.000Z
test/integration/base/test_update_title.py
waralex/Dash.jl
f0606e07d2479fd8b5be1da4a6a59656e24acfa3
[ "MIT" ]
117
2020-04-03T16:19:28.000Z
2022-02-25T15:06:27.000Z
test/integration/base/test_update_title.py
waralex/Dash.jl
f0606e07d2479fd8b5be1da4a6a59656e24acfa3
[ "MIT" ]
35
2020-04-07T01:12:57.000Z
2022-02-16T16:28:22.000Z
import os import pathlib curr_path = pathlib.Path(__file__).parent.absolute()
24.428571
62
0.721637
b39cf0067207b03a906fd96bf3e3e66ca1663422
1,667
py
Python
spikeextractors/extractors/neoextractors/blackrockextractor.py
warnerwarner/spikeextractors
96a7294644c00f2b12375e0a91108071e2538144
[ "MIT" ]
null
null
null
spikeextractors/extractors/neoextractors/blackrockextractor.py
warnerwarner/spikeextractors
96a7294644c00f2b12375e0a91108071e2538144
[ "MIT" ]
null
null
null
spikeextractors/extractors/neoextractors/blackrockextractor.py
warnerwarner/spikeextractors
96a7294644c00f2b12375e0a91108071e2538144
[ "MIT" ]
null
null
null
from .neobaseextractor import NeoBaseRecordingExtractor, NeoBaseSortingExtractor from pathlib import Path from typing import Union, Optional try: import neo HAVE_NEO = True except ImportError: HAVE_NEO = False PathType = Union[str, Path]
29.767857
115
0.706659
b39d3d4f6099c75a0698dfa5f38128447ac918e3
2,220
py
Python
tests/test_buffer_reference.py
Infinidat/infi.instruct
69dfd8a35d17f8687581e838ea13e7554f7e5034
[ "BSD-3-Clause" ]
2
2015-01-12T21:16:06.000Z
2019-12-12T05:59:56.000Z
tests/test_buffer_reference.py
Infinidat/infi.instruct
69dfd8a35d17f8687581e838ea13e7554f7e5034
[ "BSD-3-Clause" ]
4
2015-02-24T09:18:00.000Z
2021-06-16T12:55:19.000Z
tests/test_buffer_reference.py
Infinidat/infi.instruct
69dfd8a35d17f8687581e838ea13e7554f7e5034
[ "BSD-3-Clause" ]
4
2015-01-07T12:37:54.000Z
2018-02-08T15:07:17.000Z
from infi.unittest import TestCase from infi.instruct.buffer.reference import (Context, GetAttrReference, FuncCallReference, ObjectReference, CyclicReferenceError)
33.636364
106
0.638288
b3a032ed592c9395acc528eda36249d66c3bcd76
619
py
Python
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
view_npy.py
ryx2/tools
cc223ae5ed41e0a35832282775bd49650f71a24e
[ "MIT" ]
null
null
null
import numpy as np import sys import matplotlib.pyplot as plt import argparse parser = argparse.ArgumentParser( description="terminal view a numpy file or image as np array") parser.add_argument("data", help=".npy file to be viewed or im.") parser.add_argument("--img", action='store_true', help="if an image.") arg...
25.791667
70
0.694669
b3a040b263764bdd245af66fac854a4ebf932955
1,042
py
Python
application/__init__.py
Sebex0/friendship-diary-backend-python
fc4567ce4aee65f87c173c2aec07db3a7674229e
[ "Apache-2.0" ]
null
null
null
application/__init__.py
Sebex0/friendship-diary-backend-python
fc4567ce4aee65f87c173c2aec07db3a7674229e
[ "Apache-2.0" ]
null
null
null
application/__init__.py
Sebex0/friendship-diary-backend-python
fc4567ce4aee65f87c173c2aec07db3a7674229e
[ "Apache-2.0" ]
null
null
null
"""Initialize app.""" from flask import Flask from flask_sqlalchemy import SQLAlchemy from config import Config import logging # Database variable db = SQLAlchemy()
26.05
59
0.698656
b3a0a3c081b26a35e696178f12c9ef77691dcafd
3,002
py
Python
conftest.py
ngalkina86/python_training_mantis
1a63c321e5d15e23218107a015e21cbdbf4e654c
[ "Apache-2.0" ]
null
null
null
conftest.py
ngalkina86/python_training_mantis
1a63c321e5d15e23218107a015e21cbdbf4e654c
[ "Apache-2.0" ]
null
null
null
conftest.py
ngalkina86/python_training_mantis
1a63c321e5d15e23218107a015e21cbdbf4e654c
[ "Apache-2.0" ]
null
null
null
import jsonpickle as jsonpickle import pytest from fixture.application import Application import json import os.path import importlib import ftputil fixture=None target=None def install_serever_configuration(host,username,password): with ftputil.FTPHost(host,username,password) as remote: if remote.path.i...
36.168675
113
0.689873
b3a1239b2d68b44e927595788e2fc43e5640af51
7,160
py
Python
recipes/Python/300019_Coroutines_in_Python/recipe-300019.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/300019_Coroutines_in_Python/recipe-300019.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/300019_Coroutines_in_Python/recipe-300019.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
""" A coroutine implementation in Python. Convert functions to iterator generators by replacing return <expression> with yield <expression> and function calls: f(*args, **kw) with for loops: for i in f(*args, **kw): pass # the function value is in i now. Unfortunately, you have to know which routine has been ...
26.518519
87
0.601257
b3a207ed26d2f91c204a97c15e81205d87670102
5,667
py
Python
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
23
2019-01-14T15:12:32.000Z
2022-03-31T12:23:34.000Z
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
11
2019-01-23T13:39:20.000Z
2020-04-17T13:25:27.000Z
mlaut/strategies/neural_networks.py
vishalbelsare/mlaut
a3bd4b2591c3144d100f413f6c4c2231392103e5
[ "BSD-3-Clause" ]
4
2019-01-07T20:46:40.000Z
2022-03-25T00:00:00.000Z
from mlaut.shared.static_variables import GRIDSEARCH_NUM_CV_FOLDS, GRIDSEARCH_CV_NUM_PARALLEL_JOBS from mlaut.shared.static_variables import VERBOSE from tensorflow.python.keras.models import Sequential, load_model, model_from_json from tensorflow.python.keras.layers import Dense, Activation, Dropout from tensorflow.p...
41.364964
158
0.636668
b3a5004165d6ada562d6358f71622d9f82b157f8
3,130
py
Python
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
2
2021-08-31T08:26:14.000Z
2022-03-28T11:28:56.000Z
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
1
2021-06-10T11:31:16.000Z
2021-11-21T16:12:57.000Z
src/rtfparse/parser.py
hanose/rtfparse
437bf2ef560a275427ae2e48416ec8c12331b370
[ "MIT" ]
2
2021-12-05T17:26:36.000Z
2022-03-31T13:58:33.000Z
#!/usr/bin/env python import io import re import logging import pathlib # Own modules from rtfparse import re_patterns from rtfparse import entities from rtfparse import utils # Typing from typing import Optional from typing import Union from rtfparse import config_loader # Setup logging logger = logging.getLogger(...
35.568182
172
0.594888
b3a78bb678c70aacc4fa4fb1b41422f20b1003ff
330
py
Python
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
cmssw/examples/MyAnalyzer/python/MyAnalyzer_cfg.py
guitargeek/PKGBUILDs
a71e887c838827bb876f3ad4badb66c2eda5f61c
[ "MIT" ]
null
null
null
import FWCore.ParameterSet.Config as cms process = cms.Process("MyAnalyzer") process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( "file:/home/jonas/PhD/022E2036-A2D9-E711-9A8C-0CC47A13D2A4.root" ) ) process.analyzer = cms.EDAnalyzer('MyAnalyzer') process.p = cms.Path(process....
23.571429
72
0.733333
b3a798145cf76d04c4f488bfafc0e3156fde2d5d
190
py
Python
test7.py
DogukanKundum/Classification-tweets
097935a990277f46ba9b3bf5a8455e10727a069a
[ "MIT" ]
1
2021-12-10T19:16:51.000Z
2021-12-10T19:16:51.000Z
test7.py
DogukanKundum/Classification-tweets
097935a990277f46ba9b3bf5a8455e10727a069a
[ "MIT" ]
null
null
null
test7.py
DogukanKundum/Classification-tweets
097935a990277f46ba9b3bf5a8455e10727a069a
[ "MIT" ]
1
2020-12-05T12:31:00.000Z
2020-12-05T12:31:00.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from textblob.classifiers import NaiveBayesClassifier with open('data/train.csv', 'r') as fp: cl = NaiveBayesClassifier(fp, format="json")
27.142857
53
0.7
b3a840e28d30bd9ab4482c1cf21eed740cbb25a5
4,513
py
Python
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
Math/matrix.py
TimHeiszwolf/Heis_Python_Tools
ffa35b80838673e272dc46a6fff5cafc76ecb239
[ "MIT" ]
null
null
null
# Methods for dealing with Matrices. Don't use these. Just use the numpy functions. def get_random_matrix(size = [5, 5], value_range = [-10, 10], type_of_value = int): """ A function which can generate many different types of random matrixes of whatever dimension is desired. """ if len(size)>1: ...
36.395161
211
0.581653
b3acb021cd22a119b718d7aceb7d3ebd579b063b
233
py
Python
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
3
2020-09-09T12:59:24.000Z
2021-10-14T13:45:11.000Z
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
null
null
null
python/tb6600/set-power.py
Heimkino-Praxis/screen-masking
024f0f84c524f897fc00d0c177b618b610a560b5
[ "MIT" ]
null
null
null
import stepper import sys if (len(sys.argv) != 2): print("missing parameter: 0|1"); sys.exit(); value = int(sys.argv[1]) stepper.setLock(0) stepper.setPower(value) if (value > 0): print("power on") else: print("power off")
12.263158
33
0.656652
b3aeb76ca7e4fa402a4ed55c1ccea1b2e20bd4c2
240
py
Python
v1/tests/test_endpoints/test_results/__init__.py
erayerdin/debisapi
eb8084b7c27236c86c620dde414037463996a91e
[ "Apache-2.0" ]
2
2019-06-18T18:17:04.000Z
2019-06-18T18:57:27.000Z
v1/tests/test_endpoints/test_results/__init__.py
erayerdin/debisapi
eb8084b7c27236c86c620dde414037463996a91e
[ "Apache-2.0" ]
6
2019-12-04T23:21:04.000Z
2021-04-08T19:18:34.000Z
v1/tests/test_endpoints/test_results/__init__.py
erayerdin/debisapi
eb8084b7c27236c86c620dde414037463996a91e
[ "Apache-2.0" ]
null
null
null
import pytest from v1.views.results import RESULTS_URL
24
59
0.8
b3afb92ad3d5cf4c9be12206dd9766b29950b95f
1,549
py
Python
tests/test_urls.py
eyllanesc/mkdocs-static-i18n
283f9a080603904a581370bdae01d517977c9b51
[ "MIT" ]
63
2021-02-08T14:04:02.000Z
2022-03-27T09:33:04.000Z
tests/test_urls.py
eyllanesc/mkdocs-static-i18n
283f9a080603904a581370bdae01d517977c9b51
[ "MIT" ]
84
2021-02-08T13:30:14.000Z
2022-03-31T07:13:05.000Z
tests/test_urls.py
eyllanesc/mkdocs-static-i18n
283f9a080603904a581370bdae01d517977c9b51
[ "MIT" ]
16
2021-03-08T02:04:38.000Z
2022-03-18T03:45:40.000Z
from mkdocs.structure.files import get_files
36.880952
82
0.692705
b3afea34374cd7ab693f16bdea1195e824d2afa9
10,880
py
Python
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
42
2019-09-01T08:59:35.000Z
2022-03-06T17:48:08.000Z
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
7
2019-09-01T08:33:16.000Z
2021-05-26T13:44:36.000Z
huawei/services/device_config.py
tuxuser/huawei-lpv2
38bf2fd7e5a21978ffacc4bc58923c7c2389c7ab
[ "MIT" ]
11
2019-09-01T03:43:50.000Z
2021-07-01T14:42:12.000Z
import enum from dataclasses import dataclass from datetime import datetime from logging import getLogger from typing import Tuple from ..protocol import ( AUTH_VERSION, Command, MismatchError, NONCE_LENGTH, PROTOCOL_VERSION, Packet, TLV, check_result, create_bonding_key, decode...
28.113695
116
0.636489
b3b29d9a1f0bfb0365245f5647a6528266304cb8
1,023
py
Python
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
14
2017-03-09T23:12:42.000Z
2022-01-13T11:15:11.000Z
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
1
2020-12-31T04:12:08.000Z
2021-05-08T05:20:56.000Z
2021/06-python-decorator/decorator_sample.py
tswast/code-snippets
f859a9f4c747326bff9456a4f1f6578453cad2db
[ "Apache-2.0" ]
8
2017-05-31T16:55:46.000Z
2020-12-29T22:00:32.000Z
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
23.25
74
0.68915
b3b2a1868f837830ffe9e3641a48352d008e79e3
246
py
Python
test/mp/mpTest.py
yunfeiqi/multiprocessingpy
d552b0930047312ce0df9aa324118cf28b3d71cd
[ "Apache-2.0" ]
3
2020-08-28T09:27:21.000Z
2020-11-11T07:51:18.000Z
test/mp/mpTest.py
yunfeiqi/multiprocessingpy
d552b0930047312ce0df9aa324118cf28b3d71cd
[ "Apache-2.0" ]
null
null
null
test/mp/mpTest.py
yunfeiqi/multiprocessingpy
d552b0930047312ce0df9aa324118cf28b3d71cd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @Description : The base class of Unit test @Time :2020/08/27 15:35:05 @Author :sam.qi @Version :1.0 ''' import unittest
18.923077
46
0.589431
b3b39c2289d1b79f44c6ce12edc0939c142807ba
8,742
py
Python
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
109
2015-01-19T11:17:11.000Z
2022-03-19T13:24:02.000Z
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
21
2015-04-17T11:19:57.000Z
2021-11-30T03:21:49.000Z
pysymoro/baseparams.py
songhongxiang/symoro
3db657778337e89c63d383789df5e4d2994bd542
[ "MIT" ]
50
2015-08-27T06:32:54.000Z
2022-03-16T03:35:13.000Z
# -*- coding: utf-8 -*- # This file is part of the OpenSYMORO project. Please see # https://github.com/symoro/symoro/blob/master/LICENCE for the licence. """ This module of SYMORO package contains function to compute the base inertial parameters. """ import sympy from sympy import Matrix from pysymoro.geometry i...
29.734694
78
0.549188
b3b3f504984baa95645af342529d6cb5c9aa7144
204
py
Python
docs/examples/tutorial/external/keyword_args_call.py
johannes-mueller/cython
b75af38ce5c309cd84c1835220932e53e9a9adb6
[ "Apache-2.0" ]
6,663
2015-01-02T06:06:43.000Z
2022-03-31T10:35:02.000Z
docs/examples/tutorial/external/keyword_args_call.py
johannes-mueller/cython
b75af38ce5c309cd84c1835220932e53e9a9adb6
[ "Apache-2.0" ]
3,094
2015-01-01T15:44:13.000Z
2022-03-31T19:49:57.000Z
docs/examples/tutorial/external/keyword_args_call.py
scoder/cython
ddaaa7b8bfe9885b7bed432cd0a5ab8191d112cd
[ "Apache-2.0" ]
1,425
2015-01-12T07:21:27.000Z
2022-03-30T14:10:40.000Z
from cython.cimports.strstr import strstr
25.5
67
0.740196
b3b4d14d3f330ee0c96bf4049e9687a82a51d0f3
7,543
py
Python
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
6
2020-12-13T19:08:51.000Z
2022-01-09T02:44:38.000Z
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
41
2020-11-11T15:08:13.000Z
2022-02-03T10:26:14.000Z
app/risks.py
allezalex/pyro-platform
0205ca4121aff1185580fb0e97a211336c22792a
[ "Apache-2.0" ]
3
2021-03-16T19:07:46.000Z
2022-01-18T19:12:44.000Z
# Copyright (C) 2021, Pyronear contributors. # This program is licensed under the Apache License version 2. # See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details. """ The following file is dedicated to the "Risk Score" view of the dashboard. Following a first section dedic...
46.276074
120
0.603208
b3b57743fc67237e5e0dfd141e3c95a3161e3a39
318
py
Python
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
lws_backend/api/routes/auth.py
AlexKLWS/lws_backend
a886073b1b0f6ab80d848fb4b6e8465de9d88317
[ "Unlicense" ]
null
null
null
from fastapi import APIRouter, Depends from lws_backend.api.dependencies.authorization import check_user_auth router = APIRouter()
21.2
70
0.757862
b3b5d9872af7cd4981466decde26abff958ca0d2
3,219
py
Python
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
2
2021-01-28T15:56:50.000Z
2021-03-02T06:27:09.000Z
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
website/bhamon_orchestra_website/job_controller.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
import logging import flask import bhamon_orchestra_website.helpers as helpers import bhamon_orchestra_website.service_client as service_client logger = logging.getLogger("JobController")
50.296875
176
0.751476
b3b83373cf5e4f901428414e382481adff631cd0
10,751
py
Python
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
3
2021-03-01T12:50:39.000Z
2021-09-06T13:53:00.000Z
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
null
null
null
resource_counter.py
ferragi/aws_resource_counter
dd0c8c61fd9e3c4cb0237310fa1a7a2c70b99a07
[ "Apache-2.0" ]
1
2021-03-01T12:51:21.000Z
2021-03-01T12:51:21.000Z
# -*- coding: utf-8 -*- import sys import boto3 from botocore.exceptions import ClientError import json from datetime import datetime CUSTOMER_FILE_NAME = "customer_assessment.yandeh.config.json" SERVICES_FILE_NAME = "services.config.json" customer_config = get_customer_config() service_config_file = o...
48.427928
199
0.594921
b3b925cabab1ae200166bc33a655ac51172cf43f
4,678
py
Python
btplotting-master/btplotting/helper/marker.py
fredryce/stocker
041fbe8348f7a035a607a214477cf423c4259171
[ "MIT" ]
null
null
null
btplotting-master/btplotting/helper/marker.py
fredryce/stocker
041fbe8348f7a035a607a214477cf423c4259171
[ "MIT" ]
null
null
null
btplotting-master/btplotting/helper/marker.py
fredryce/stocker
041fbe8348f7a035a607a214477cf423c4259171
[ "MIT" ]
null
null
null
''' Marker definition used to generate markers in bokeh using matplotlib notation ''' _mrk_fncs = { # '.' m00 point '.': ('dot', ['color'], {'size': 2}, {}), # ',' m01 pixel ',': ('dot', ['color'], {'size': 3}, {}), # 'o' m02 circle 'o': ('circle', ['color', 'size'], {}, {'size': -3}), # 'v...
38.344262
77
0.470286
b3b9455435505a5fb9a159f6a19ce96afc0246de
3,351
py
Python
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
dags/JL_proj_dag.py
jsleslie/sparkify-airflow-pipeline
fd6706e6a40f0fa6420c6d00e53c0734be24d86f
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta import os from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from operators import (StageToRedshiftOperator, LoadFactOperator, LoadDimensionOperator, DataQualityOperator) from helpers import SqlQueries # AWS_KEY = ...
29.394737
101
0.7359
b3b9f47ce9246c0dbf4929a2fc4048535c1ebffb
3,468
py
Python
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
null
null
null
datasets/leejaponic/__init__.py
LinguList/lexibank-data-old
7bf886597afa26863de8527dfd8529d9eb99fcd6
[ "Apache-2.0" ]
1
2018-10-19T11:58:00.000Z
2018-10-19T11:58:00.000Z
# coding: utf8 from __future__ import unicode_literals, print_function, division from clldutils.dsv import UnicodeReader from clldutils.misc import slug from pylexibank.util import xls2csv from pylexibank.lingpy_util import iter_alignments, segmentize from pylexibank.dataset import CldfDataset
33.346154
84
0.488466
b3ba0fda33af2a7a5f1c8515ebec272724efa551
2,891
bzl
Python
tools/rules/twister2_core.bzl
FreddieSun/twister2
4c0a8ef7c86413cf190883cb7e1d9164467979e8
[ "Apache-2.0" ]
null
null
null
tools/rules/twister2_core.bzl
FreddieSun/twister2
4c0a8ef7c86413cf190883cb7e1d9164467979e8
[ "Apache-2.0" ]
null
null
null
tools/rules/twister2_core.bzl
FreddieSun/twister2
4c0a8ef7c86413cf190883cb7e1d9164467979e8
[ "Apache-2.0" ]
null
null
null
# Utility macros for Twister2 core files
32.483146
73
0.690073
b3be443cdf964d3bbf6ca7a7ee7114e3f65cd9ab
3,051
py
Python
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
example.py
isanich/aiochannels
0f2fc1466ade008bf9c470b3e681412ddbb01a73
[ "MIT" ]
null
null
null
import asyncio from aiochannels import Channel, aenumerate loop = asyncio.get_event_loop() loop.run_until_complete(main())
40.68
113
0.707965
b3be6789804fb5752eb28306b4e6c26da559d325
1,004
py
Python
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
null
null
null
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
9
2020-01-17T14:16:08.000Z
2020-02-18T15:07:40.000Z
itembase/core/urls/vendor_item_urls.py
wedwardbeck/ibase
5647fa5aff6c1bdc99b6c93884ff0d5aef17d85b
[ "MIT" ]
null
null
null
from django.urls import path from itembase.core.views.item_views import UOMCreateView, UOMDeleteView, UOMDetailView, \ UOMListView, UOMUpdateView, VendorItemCreateView, VendorItemDeleteView, VendorItemDetailView, \ VendorItemListView, VendorItemUpdateView app_name = "vendor-items" urlpatterns = [ path("uo...
50.2
99
0.698207
b3bf3e2d74c3f94665d9f0eed90e59c4bcf6dcac
8,853
py
Python
bombbomb/models/curriculum_with_progress.py
bombbomb/bombbomb-python-openapi
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
[ "Apache-2.0" ]
null
null
null
bombbomb/models/curriculum_with_progress.py
bombbomb/bombbomb-python-openapi
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
[ "Apache-2.0" ]
null
null
null
bombbomb/models/curriculum_with_progress.py
bombbomb/bombbomb-python-openapi
d1623cb06e58fdc83b04603a589e9d30e7eb3fdf
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ BombBomb We make it easy to build relationships using simple videos. # noqa: E501 OpenAPI spec version: 2.0.831 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from bombbomb.models.curriculum_user_prog...
28.284345
163
0.597651
b3c1e9ab9358afaa83215e8fcdb31e334f3d7732
1,472
py
Python
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
1
2020-06-03T14:54:38.000Z
2020-06-03T14:54:38.000Z
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
null
null
null
exercises/utils/runner.py
rattletat/homework-server
abfac831ed45cc567a6a1610edee934200ffada7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 """ Runs the test suite and prints the results to standard output. It uses the given separator in the following way: <Separator> #Tests <Separator> #Succeeded Tests <Separator> First Error <Separator> First Failure <Separator> """ import sys import traceback import unittest if __name__ == "__...
21.647059
78
0.570652
b3c2b73fe38f754c4659eb26e8e250683d3cd22a
721
py
Python
visualize.py
jamqd/EE239AS
d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285
[ "MIT" ]
2
2020-08-24T08:09:39.000Z
2020-08-31T11:42:12.000Z
visualize.py
jamqd/EE239AS
d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285
[ "MIT" ]
null
null
null
visualize.py
jamqd/EE239AS
d1e45d8878ac61e0b6af38d6ce24b9d3a87fa285
[ "MIT" ]
null
null
null
# code to visualize from dqn import DQN from torch import load from run import collect_trajectories import argparse import gym if __name__ == "__main__": main()
30.041667
90
0.730929
b3c368e347b19b994c0f594074bd9213901ef162
1,135
py
Python
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
django-budget/config/urls.py
eliostvs/django-budget
c3b181e0dd259f14de6cb6f537508190e1344ec3
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf.urls import include, patterns, url from django.conf.urls.i18n import i18n_patterns from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^$', 'base.views.index', name='index'), url(r'^i18n/', ...
21.018519
62
0.592952
b3c39873bff99fe7e5298c28441bd0599d3f6194
5,433
py
Python
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
null
null
null
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
11
2019-07-10T16:27:32.000Z
2019-09-10T15:56:48.000Z
tests/fdb/test_fdb.py
GarrickHe/sonic-mgmt
74c2ac63ad948227ac90d7ab89205cff08cc9833
[ "Apache-2.0" ]
null
null
null
from ansible_host import AnsibleHost import pytest import ptf.testutils as testutils import time import itertools import logging import pprint DEFAULT_FDB_ETHERNET_TYPE = 0x1234 DUMMY_MAC_PREFIX = "02:11:22:33" DUMMY_MAC_COUNT = 10 FDB_POPULATE_SLEEP_TIMEOUT = 2 logger = logging.getLogger(__name__) def send_eth(p...
33.95625
109
0.677342
b3c5d34fe811208beb9d81269a32648ad7b7f5f4
125
py
Python
guest/runner.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
guest/runner.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
1
2020-01-19T01:19:57.000Z
2020-01-19T01:19:57.000Z
guest/runner.py
archerckk/PyTest
610dd89df8d70c096f4670ca11ed2f0ca3196ca5
[ "MIT" ]
null
null
null
import subprocess command='python G:\Pycharm_Project\PyTest\guest\manage.py runserver' subprocess.Popen(command,shell=True)
31.25
69
0.832
b3c645123a5d5abdbdd3c977c0733bf2d861e91a
1,677
py
Python
backend/rpc/handler/system/backup.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/rpc/handler/system/backup.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/rpc/handler/system/backup.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
from flask import request from rpc.gen.system.backup.services import TSystemBackupService from rpc.gen.user.user.types.ttypes import TUserRole from rpc.gen.system.backup.structs.ttypes import TBackupFile import db from models import models
41.925
92
0.754323
b3c7792d212a10cd3a3492a2b0a312b11bc2457f
4,916
py
Python
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
python/adso_odata_to_neo4j.py
fbelleau/sap2model
ecabfb8f3b514e5c2e23f5fc8594aa3415701ad3
[ "MIT" ]
null
null
null
# adso_odata_to_neo4j.py # from francois.belleau@saaq.gouv.qc.ca # create ADSO nodes in NEO4J using a CDS VIEW exposed as OData service from neo4j import GraphDatabase #pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org neo4j driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j",...
35.114286
345
0.718267
b3c875a221b839dc6e51b8ef33e2086e6f987b91
3,372
py
Python
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
kbsbot/compose_engine/compose_utils.py
astandre/cb-compose-engine-ms
ed4141f57dcb544743fd17fe62001d573ae1efc9
[ "MIT" ]
null
null
null
import re def clean_uri(uri): """ This method removes the url part of the URI in order to obtain just the property or class :param uri: An uri to be cleaned :return: The name of the property or the class """ if uri.find('#') != -1: special_char = '#' else: special_char =...
31.514019
105
0.590747
b3caa8de1b91faff3c68b14312d7d5c67b64d7d3
241
py
Python
homelabmanager/urls.py
vdloo/homelabmanager
052909d832f46ee2974b247d2e08a571cdc3af32
[ "MIT" ]
null
null
null
homelabmanager/urls.py
vdloo/homelabmanager
052909d832f46ee2974b247d2e08a571cdc3af32
[ "MIT" ]
null
null
null
homelabmanager/urls.py
vdloo/homelabmanager
052909d832f46ee2974b247d2e08a571cdc3af32
[ "MIT" ]
null
null
null
"""homelabmgr URL Configuration """ from django.contrib import admin from django.urls import path from resources import views urlpatterns = [ path('admin/', admin.site.urls), path('terraform/', views.terraform, name='terraform'), ]
21.909091
58
0.726141
b3cadd5bfa7e24c0eed1116844676bed9022fba5
1,008
py
Python
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
1
2021-02-16T10:47:39.000Z
2021-02-16T10:47:39.000Z
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
textscreen.py
MennoNij/DrivePy
2c5c5ed60b4704e656895fb0d2afc9fe3524696c
[ "MIT" ]
null
null
null
import time from pyglet.gl import * from pyglet import image from pyglet.window import key import globals import helpers
22.4
63
0.507937
b3cc8a8a3a90142b361a941d04d0660448e6bf61
2,490
py
Python
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
174
2018-02-09T05:37:42.000Z
2022-03-21T07:09:43.000Z
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
42
2018-03-15T06:51:16.000Z
2022-01-17T15:44:55.000Z
examples/classify_digits.py
mbaelde/sklearn-hierarchical-classification
f2cc1535b043e323a25fe0de5e26c04011dbfcb2
[ "Apache-2.0" ]
51
2018-03-21T17:13:11.000Z
2022-03-21T13:30:29.000Z
#!/usr/bin/env python """ Example of using the hierarchical classifier to classify (a subset of) the digits data set. Demonstrated some of the capabilities, e.g using a Pipeline as the base estimator, defining a non-trivial class hierarchy, etc. """ from sklearn import svm from sklearn.decomposition import TruncatedS...
28.295455
95
0.646988
b3cd53faa03dbdb3ca474c0efffa2b1d85860717
389
py
Python
app/notifier/src/config/email_notif.py
maticardenas/football_notifier_app
fa2866bb3977f9baf8940c9daf4a588b4e06d520
[ "MIT" ]
null
null
null
app/notifier/src/config/email_notif.py
maticardenas/football_notifier_app
fa2866bb3977f9baf8940c9daf4a588b4e06d520
[ "MIT" ]
null
null
null
app/notifier/src/config/email_notif.py
maticardenas/football_notifier_app
fa2866bb3977f9baf8940c9daf4a588b4e06d520
[ "MIT" ]
null
null
null
EMAIL_RECIPIENTS = { # "Ema": "ema_pra@hotmail.com", "Matas": "cardenasmatias.1990@gmail.com", # "David": "k1.dave@gmail.com", # "Fede": "fede_pra@hotmail.com", # "Fede": "fpradomacat@gmail.com", # "David": "departamentosvillasuiza@gmail.com" } # GMAIL SMTP_SERVER = "smtp.gmail.com" GMAIL_SEN...
24.3125
50
0.660668
b3d066a663fa6421da26fec7012ccc1194b1dd0d
2,336
py
Python
src/sprint_webserver/views/kjoreplan.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
null
null
null
src/sprint_webserver/views/kjoreplan.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
15
2021-01-11T19:42:39.000Z
2021-04-19T21:09:58.000Z
src/sprint_webserver/views/kjoreplan.py
langrenn-sprint/sprint-webserver
065a96d102a6658e5422ea6a0be5abde4b6558e1
[ "Apache-2.0" ]
null
null
null
"""Resource module for resultat view.""" import logging from aiohttp import web import aiohttp_jinja2 from sprint_webserver.services import ( InnstillingerService, KjoreplanService, KlasserService, )
32.444444
88
0.596318
b3d08b6173fb06e7337a906a8d5ddee5ba9c9915
823
py
Python
src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
2
2021-03-25T21:38:56.000Z
2021-11-15T17:46:45.000Z
src/command_modules/azure-cli-storage/tests/test_storage_table_scenarios.py
Visual-Studio-China/azure-cli-int
48c7c7f371a0ecc4ebfd4dcfdc72764beddf5c31
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
51.4375
94
0.562576
b3d0c3d583358469a62183dc3e94d74f4fb738b4
19,768
py
Python
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
null
null
null
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
null
null
null
botintegration/main.py
discord-autonomie/PreciousPlasticBot
d0934823d9ef4e9ea268047d100756ba95b0731f
[ "MIT" ]
2
2019-09-21T13:36:19.000Z
2019-10-25T16:28:54.000Z
import asyncio import discord import os import json import time from datetime import datetime from config import get_configuration departements = json.loads(open("departements.json").read()) regions = json.loads(open("regions.json").read()) class MyClient(discord.Client): intents = discord.Intents.default() ...
53.86376
285
0.610633
b3d1e5996b4f3cebb25c5674645c187829ed1fad
682
py
Python
I2C/rpi2.py
tlee753/serial-communications
48ab44e04e746a011c8b2ec284813932da913ad2
[ "MIT" ]
1
2021-11-25T23:49:49.000Z
2021-11-25T23:49:49.000Z
I2C/rpi2.py
tlee753/serial-communications
48ab44e04e746a011c8b2ec284813932da913ad2
[ "MIT" ]
null
null
null
I2C/rpi2.py
tlee753/serial-communications
48ab44e04e746a011c8b2ec284813932da913ad2
[ "MIT" ]
null
null
null
import smbus import time bus = smbus.SMBus(1) # instantiate bus slaveAddress = 0x04 # assign a slave address while True: # continuous loop var = input(Enter 1 9: ) # get user value to write if not var: # quick error check continue writeNumber(var) # write value print RPI: Hi Arduino, I sent ...
27.28
58
0.683284
b3d1fe94baad9d15458d5ff9000e994472945459
1,062
py
Python
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
3
2020-05-15T17:31:18.000Z
2021-05-05T09:21:24.000Z
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
null
null
null
setup.py
mtna/rds-python
961ea12fc70a35c8b979855c8f20a803a9d2f596
[ "Apache-2.0" ]
2
2020-06-04T09:01:35.000Z
2021-04-22T14:49:36.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="mtna-rds", version="0.2.16", author="Metadata Technology North America Inc.", author_email="mtna@mtna.us", description="A library to query the Rich Data Services API framework developed by...
36.62069
92
0.620527
b3d2235419fc31d01fc30b97c05efd22cbff2fce
1,186
py
Python
fun/fun.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
3
2015-11-20T14:30:53.000Z
2015-12-19T05:55:19.000Z
fun/fun.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
null
null
null
fun/fun.py
bpuderer/python-snippets27
8d51ff34c48bee1247575536d8ed506eafde8631
[ "MIT" ]
1
2016-01-05T20:54:49.000Z
2016-01-05T20:54:49.000Z
import re from collections import Counter def pair_sum_to_value(seq, value): """"test if any pair in sequence sum to value""" for i in xrange(len(seq)): for j in xrange(i+1, len(seq)): if seq[i]+seq[j] == value: return True return False if __name__ == "__main__": ...
23.254902
90
0.573356
b3d23a8be06cd80fb203d7396d62c84317f5095e
2,829
py
Python
plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.vstream/resources/lib/handler/jdownloaderHandler.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
#-*- coding: utf-8 -*- #Vstream https://github.com/Kodi-vStream/venom-xbmc-addons from resources.lib.gui.gui import cGui from resources.lib.handler.requestHandler import cRequestHandler from resources.lib.comaddon import addon, dialog, VSlog
29.164948
153
0.601273
b3d27837e9820ebf643eae5c98f8dd1c1c097ce3
1,086
py
Python
poop/hfdp/factory/pizzafm/pizza_test_drive.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
37
2020-12-27T00:13:07.000Z
2022-01-31T19:30:18.000Z
poop/hfdp/factory/pizzafm/pizza_test_drive.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
null
null
null
poop/hfdp/factory/pizzafm/pizza_test_drive.py
cassiobotaro/poop
fc218fbf638c50da8ea98dab7de26ad2a52e83f5
[ "MIT" ]
7
2020-12-26T22:33:47.000Z
2021-11-07T01:29:59.000Z
from poop.hfdp.factory.pizzafm.chicago_pizza_store import ChicagoPizzaStore from poop.hfdp.factory.pizzafm.ny_pizza_store import NYPizzaStore from poop.hfdp.factory.pizzafm.pizza import Pizza
32.909091
75
0.71547
b3d44334f4081aeeeede6f15c35ce6549bdd1126
292
py
Python
cache.py
AbelJoo/ZenTao-PMS-Auxiliary
c0e9347b07155a59ac0005ab82f8347deb0a26c2
[ "Apache-2.0" ]
36
2015-06-06T08:56:08.000Z
2022-02-07T16:22:57.000Z
cache.py
AbelJoo/ZenTao-PMS-Auxiliary
c0e9347b07155a59ac0005ab82f8347deb0a26c2
[ "Apache-2.0" ]
null
null
null
cache.py
AbelJoo/ZenTao-PMS-Auxiliary
c0e9347b07155a59ac0005ab82f8347deb0a26c2
[ "Apache-2.0" ]
10
2015-06-18T01:09:51.000Z
2019-10-22T00:03:41.000Z
#! /usr/bin/python # coding:utf-8 __val_dict = {}
20.857143
74
0.69863
b3d4939cf2842d4fe41db98de6a4249b7479e181
310
py
Python
nally/port_scanner/scanning_strategies/syn_scanning_strategy.py
FreibergVlad/port-scanner
432dd9a07cb5118f3a0722fe4908434c76191b3b
[ "MIT" ]
null
null
null
nally/port_scanner/scanning_strategies/syn_scanning_strategy.py
FreibergVlad/port-scanner
432dd9a07cb5118f3a0722fe4908434c76191b3b
[ "MIT" ]
null
null
null
nally/port_scanner/scanning_strategies/syn_scanning_strategy.py
FreibergVlad/port-scanner
432dd9a07cb5118f3a0722fe4908434c76191b3b
[ "MIT" ]
null
null
null
from nally.port_scanner.scanning_strategies.scanning_strategy import ScanningStrategy
25.833333
85
0.751613
b3d58035864fec3162d63e3f38f884692d40a888
13,575
py
Python
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
spectate/mvc/base.py
agoose77/spectate
a70d8e3fb8e9e3f053cb2a1c5a4c760df0d61cb3
[ "MIT" ]
null
null
null
# See End Of File For Licensing from inspect import signature from functools import wraps from typing import Union, Callable, Optional from contextlib import contextmanager from weakref import WeakValueDictionary from spectate.core import Watchable, watched, Immutable, MethodSpectator from .utils import members __a...
32.632212
88
0.604936
b3d5846570ce03c2556e5aaa5302e7d5bb7cfcf4
1,073
py
Python
flask_resql/apps/user/types.py
twocucao/flask-resql
6d5573293b04f2fa64411b5c85e36d377426b676
[ "MIT" ]
1
2020-12-09T14:54:38.000Z
2020-12-09T14:54:38.000Z
flask_resql/apps/user/types.py
twocucao/flask-resql
6d5573293b04f2fa64411b5c85e36d377426b676
[ "MIT" ]
null
null
null
flask_resql/apps/user/types.py
twocucao/flask-resql
6d5573293b04f2fa64411b5c85e36d377426b676
[ "MIT" ]
null
null
null
import datetime from enum import Enum from typing import List from flask_resql.resql import Serializer from flask_resql.resql.utils import transform_serializer_field
19.509091
69
0.696179
b3d6f611cefdd5cca14738de72d37008403c9a63
970
py
Python
fancy/config/option_preprocessing.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-17T04:47:52.000Z
2022-03-17T04:47:52.000Z
fancy/config/option_preprocessing.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
9
2021-12-01T08:01:52.000Z
2022-03-16T13:05:07.000Z
fancy/config/option_preprocessing.py
susautw/fancy-config
25a3bd51a40df071d00327640caa05b6288bd970
[ "MIT" ]
1
2022-03-07T09:29:06.000Z
2022-03-07T09:29:06.000Z
import warnings from pathlib import Path from typing import Any, List
25.526316
92
0.719588
b3d75d2890f7f5972e2fbf7529699f51b48bdb8b
1,803
py
Python
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
8
2018-12-09T18:10:16.000Z
2021-03-21T16:38:58.000Z
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
null
null
null
wk2/Crossmatching with k-d trees/05_space_trees.py
lokijota/datadrivenastronomymooc
175655e5c6450c091534299da6bce6f10a1a3627
[ "MIT" ]
5
2018-11-09T16:57:17.000Z
2020-04-15T09:11:33.000Z
import numpy as np import statistics import time from astropy.coordinates import SkyCoord from astropy import units as u # You can use this to test your function. # Any code inside this `if` statement will be ignored by the automarker. if __name__ == '__main__': # The example in the question cat1 = np.array([[180,...
31.086207
85
0.698835
b3d8e2f4f026c0e980617503190294abe9ae8511
997
py
Python
lynx/qt/tabs.py
DevGev/Lynx
11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07
[ "Unlicense" ]
9
2020-12-14T18:37:10.000Z
2021-06-18T08:06:18.000Z
lynx/qt/tabs.py
DevGev/Lynx
11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07
[ "Unlicense" ]
1
2021-07-15T09:07:45.000Z
2021-12-12T20:21:21.000Z
lynx/qt/tabs.py
DevGev/Lynx
11ceddf63ee5e863b89aa1ff56ba9edd1bfecb07
[ "Unlicense" ]
1
2021-03-18T22:01:01.000Z
2021-03-18T22:01:01.000Z
from PyQt5.QtWidgets import ( QTabWidget, )
25.564103
74
0.571715
b3d97ce2c5e214ea0d96fc151d9ce9c5473d5232
5,753
py
Python
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
code_generator/type_generators/cpp_extended_variant.py
SumuduLansakara/JsonToStruct
82d5ed613fc313dedeeada94679e0edbc0a5486a
[ "MIT" ]
null
null
null
from typing import Set from code_generator.line_buffer import LineBuffer, IndentedBlock from code_generator.type_generators.cpp_array_alias import CppArrayAlias from code_generator.type_generators.cpp_enum import CppEnum from code_generator.type_generators.cpp_extended_variant_utils.from_json_generator import FromJson...
42.301471
110
0.649226
b3da2e72ed59eb49c5853bcdb21f5237c0598cff
635
py
Python
hoodwatch/forms.py
kennedy-ben/My-Neighborhood
1f9df6e6d69a565c6fd545e8efd14c163e98abd7
[ "Unlicense" ]
1
2018-10-23T16:17:31.000Z
2018-10-23T16:17:31.000Z
hoodwatch/forms.py
kennedy-ben/My-Neighborhood
1f9df6e6d69a565c6fd545e8efd14c163e98abd7
[ "Unlicense" ]
5
2020-06-06T00:55:39.000Z
2021-09-08T01:46:30.000Z
hoodwatch/forms.py
kennedy-ben/My-Neighborhood
1f9df6e6d69a565c6fd545e8efd14c163e98abd7
[ "Unlicense" ]
3
2020-01-19T21:26:14.000Z
2020-11-04T08:37:38.000Z
from django import forms from .models import *
19.84375
48
0.612598
b3dac29fab9b30a15f3567e16ce2def62510c239
5,959
py
Python
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
2
2021-08-23T21:56:07.000Z
2022-01-20T13:52:19.000Z
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
src/main/apps/mlops/utils/model_loader.py
Nouvellie/django-tflite
1d08fdc8a2ec58886d7d2b8d40e7b3598613caca
[ "MIT" ]
null
null
null
import numpy as np import os from .file_loader import ( CatsvsdogsFileLoader, FashionMnistFileLoader, ImdbSentimentFileLoader, StackoverflowFileLoader, ) from .model_input import ModelInputGenerator from .output_decoder import OutputDecoder from .pipeline import Pipeline from .preprocessing import pipe...
35.260355
116
0.664205
b3de0447e00cc0a2285e58663644fe3c006386e1
2,206
py
Python
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
null
null
null
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
1
2021-06-02T16:55:33.000Z
2021-06-04T14:30:54.000Z
src/mdp/sokoban.py
pudumagico/RLASP
bce5b87404fdca60e983e4a187e734c49ac923fa
[ "MIT" ]
2
2021-03-22T14:46:49.000Z
2021-03-31T16:12:12.000Z
import os from typing import Set from . import MarkovDecisionProcedure
33.938462
96
0.550771
b3e045df8f99c15e93bf5205a4e184cde6cf770d
1,014
py
Python
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
1
2021-08-05T10:37:26.000Z
2021-08-05T10:37:26.000Z
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
null
null
null
create.py
haknkayaa/periodic-table
89d6251074f448b875d7a024897c8203342aaebf
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('elements.db') cur = conn.cursor() cur.execute('DROP TABLE IF EXISTS elements') cur.execute('CREATE TABLE elements (number INTEGER, atomic_weight FLOAT, element TEXT, symbol TEXT, mp FLOAT, bp FLOAT, density FLOAT, earth_crust FLOAT, discovered INTEGER, egroup INTEGER, ionization...
30.727273
308
0.649901
b3e0a169cb3b631c48d93e3f6d0c870c92bbcab5
12,454
py
Python
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
3
2021-06-20T17:46:32.000Z
2021-12-17T16:55:00.000Z
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
1
2022-01-13T01:41:00.000Z
2022-01-13T06:54:29.000Z
DRACO/visualization-scripts/compute_map.py
RahulSajnani/DRACO-Weakly-Supervised-Dense-Reconstruction-And-Canonicalization-of-Objects
d697905da990487589f88068c886a32d2ef57118
[ "MIT" ]
1
2021-09-14T06:17:55.000Z
2021-09-14T06:17:55.000Z
import open3d as o3d from open3d import * import numpy as np import sys, os import matplotlib.pyplot as plt import cv2 import torch import glob import copy import mathutils from PIL import Image from pytorch3d.loss import chamfer_distance from tk3dv.nocstools.aligning import estimateSimilarityUmeyama import math from ...
32.097938
165
0.599004
b3e10b13128ce93e6e6559d8e9d45993251f9fca
10,440
py
Python
chainer/functions/normalization/decorrelated_batch_normalization.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
2
2019-08-12T21:48:04.000Z
2020-08-27T18:04:20.000Z
chainer/functions/normalization/decorrelated_batch_normalization.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
null
null
null
chainer/functions/normalization/decorrelated_batch_normalization.py
zaltoprofen/chainer
3b03f9afc80fd67f65d5e0395ef199e9506b6ee1
[ "MIT" ]
2
2019-07-16T00:24:47.000Z
2021-02-26T10:27:27.000Z
from chainer import backend from chainer import function_node from chainer.utils import argument from chainer.utils import type_check def decorrelated_batch_normalization(x, **kwargs): """decorrelated_batch_normalization(x, *, groups=16, eps=2e-5, \ running_mean=None, running_projection=None, decay=0.9) ...
34.569536
79
0.597126
b3e19b135f9937b8127b504d9686651695c64d32
439
py
Python
Misc/Become_a_Python_Developer/1_Up and Running with Python/Ex_Files_UaR_Python/Exercise Files/Ch5/jsondata_start.py
specter01wj/LAB-Lynda
1915ada66f4498cdf15a0e2a068c938e325e9ba3
[ "MIT" ]
null
null
null
Misc/Become_a_Python_Developer/1_Up and Running with Python/Ex_Files_UaR_Python/Exercise Files/Ch5/jsondata_start.py
specter01wj/LAB-Lynda
1915ada66f4498cdf15a0e2a068c938e325e9ba3
[ "MIT" ]
8
2020-07-08T06:20:03.000Z
2022-03-02T10:05:06.000Z
Misc/Become_a_Python_Developer/1_Up and Running with Python/Ex_Files_UaR_Python/Exercise Files/Ch5/jsondata_start.py
specter01wj/LAB-Lynda
1915ada66f4498cdf15a0e2a068c938e325e9ba3
[ "MIT" ]
null
null
null
# # Example file for parsing and processing JSON # (For Python 3.x, be sure to use the ExampleSnippets3.txt file) if __name__ == "__main__": main()
27.4375
86
0.710706
b3e26905c8655f7860350646270ee6b0067c28cc
2,306
py
Python
test_env_flag.py
paulmelnikow/env-flag
be074534896af557f54caef4f8d1cf64228f3aee
[ "BSD-2-Clause" ]
null
null
null
test_env_flag.py
paulmelnikow/env-flag
be074534896af557f54caef4f8d1cf64228f3aee
[ "BSD-2-Clause" ]
7
2018-11-26T10:21:18.000Z
2019-04-03T10:37:15.000Z
test_env_flag.py
paulmelnikow/env-flag-fork
be074534896af557f54caef4f8d1cf64228f3aee
[ "BSD-2-Clause" ]
null
null
null
import os import unittest import uuid from env_flag import env_flag
37.803279
72
0.67693
b3e51e1c2ad25822aeffab799695aee3ded4fa23
5,857
py
Python
ml/app.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
1
2022-02-21T21:06:29.000Z
2022-02-21T21:06:29.000Z
ml/app.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
ml/app.py
necla-ml/ml
7ebd29382326e3958297607da7182c211865e7ff
[ "BSD-3-Clause" ]
null
null
null
import os, sys import subprocess from pathlib import Path import ml from ml import ( cuda, distributed as dist, multiprocessing as mp, random, utils, logging,)
44.371212
188
0.583575
b3e59a34da2419eebef779ae17ec337eb9356b63
2,497
py
Python
sopel-homedirectory/modules/lib/gettitle.py
kunwon1/subtitle-selenium
9af8c08d5f30cf0734a65cad79a6ac98a2647124
[ "MIT" ]
null
null
null
sopel-homedirectory/modules/lib/gettitle.py
kunwon1/subtitle-selenium
9af8c08d5f30cf0734a65cad79a6ac98a2647124
[ "MIT" ]
null
null
null
sopel-homedirectory/modules/lib/gettitle.py
kunwon1/subtitle-selenium
9af8c08d5f30cf0734a65cad79a6ac98a2647124
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from pyvirtualdisplay import Display import urllib3.exceptions import traceback import string import time import re prin...
30.82716
208
0.62515
b3e644d9272bdc05c07609d43e1cf04ff2a64a5c
769
py
Python
carpyncho/migrations/versions/19e8e023f5fb_remove_enum_from_tile.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
1
2016-02-16T11:10:52.000Z
2016-02-16T11:10:52.000Z
carpyncho/migrations/versions/19e8e023f5fb_remove_enum_from_tile.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
carpyncho/migrations/versions/19e8e023f5fb_remove_enum_from_tile.py
toros-astro/carpyncho3
27b00e7539e081c563f1a09c70fb255ac5e71583
[ "BSD-3-Clause" ]
null
null
null
"""remove enum from tile Revision ID: 19e8e023f5fb Revises: cf2e08638e84 Create Date: 2018-08-23 12:43:31.403270 """ # revision identifiers, used by Alembic. revision = '19e8e023f5fb' down_revision = 'cf2e08638e84' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa
24.806452
93
0.687906
b3e82e6427704394d5ce2adab66ff8b1f4025766
318
py
Python
chapter5/codes/execNeval.py
IPVL/Tanvin-PythonWorks
75a3140ac4fd426dae1b1aeb5a75893050547782
[ "MIT" ]
null
null
null
chapter5/codes/execNeval.py
IPVL/Tanvin-PythonWorks
75a3140ac4fd426dae1b1aeb5a75893050547782
[ "MIT" ]
null
null
null
chapter5/codes/execNeval.py
IPVL/Tanvin-PythonWorks
75a3140ac4fd426dae1b1aeb5a75893050547782
[ "MIT" ]
null
null
null
#! /usr/bin/env python # example of exec exec "print 'Hello, world!'" # another example from math import sqrt scope = {} exec 'sqrt = 1' in scope print "sqrt of 4:", sqrt(4) print "scope:", scope['sqrt'], '\n', "length of scope:", len(scope) # example of eval eval(raw_input("Enter an arithmetic expression: "))
21.2
67
0.663522
b3e8735b9aef83a1f9db395d7a755f61c90bb0cf
15,510
py
Python
gan_cifar_dist.py
jorgdv/fully_distributed_gans
c97597041e96409f8dd687b83b86c0379d9c83e7
[ "MIT" ]
null
null
null
gan_cifar_dist.py
jorgdv/fully_distributed_gans
c97597041e96409f8dd687b83b86c0379d9c83e7
[ "MIT" ]
null
null
null
gan_cifar_dist.py
jorgdv/fully_distributed_gans
c97597041e96409f8dd687b83b86c0379d9c83e7
[ "MIT" ]
null
null
null
import os, sys sys.path.append(os.getcwd()) import time import numpy as np import tensorflow as tf import tflib as lib import tflib.ops.linear import tflib.ops.conv2d import tflib.ops.batchnorm import tflib.ops.deconv2d import tflib.save_images import tflib.cifar10 import tflib.inception_score import tflib.plot # D...
38.678304
173
0.677627
b3e8a25b886e2dd3e93fc2e6fa0f2a2bcc470b21
2,224
py
Python
tests/test_wquantile.py
nailbiter/alex_python_toolbox
e9624db00f5dc3c1a83b87bc267eff1e3f96aea5
[ "MIT" ]
null
null
null
tests/test_wquantile.py
nailbiter/alex_python_toolbox
e9624db00f5dc3c1a83b87bc267eff1e3f96aea5
[ "MIT" ]
1
2021-11-15T23:18:39.000Z
2021-11-15T23:18:39.000Z
tests/test_wquantile.py
nailbiter/alex_python_toolbox
e9624db00f5dc3c1a83b87bc267eff1e3f96aea5
[ "MIT" ]
null
null
null
"""=============================================================================== FILE: tests/test_wquantile.py USAGE: (not intended to be directly executed) DESCRIPTION: OPTIONS: --- REQUIREMENTS: --- BUGS: --- NOTES: --- AUTHOR: Alex Leontiev (nailbiter@dtws-work.in) ORG...
37.694915
144
0.553507
b3e8e83d598e0044b9c4b657fe64a24013a98a83
83
py
Python
course_02_python_data_structures/week_1/strip.py
RicardoRodriguesCosta/python_for_everybody
59bf99061cae37a11ce0b4095610de26330e3193
[ "MIT" ]
null
null
null
course_02_python_data_structures/week_1/strip.py
RicardoRodriguesCosta/python_for_everybody
59bf99061cae37a11ce0b4095610de26330e3193
[ "MIT" ]
null
null
null
course_02_python_data_structures/week_1/strip.py
RicardoRodriguesCosta/python_for_everybody
59bf99061cae37a11ce0b4095610de26330e3193
[ "MIT" ]
null
null
null
text = "X-DSPAM-Confidence: 0.8475" print(float(text[text.find(" "):].strip()))
27.666667
43
0.626506
b3ec316bc0e478a432242fe7ae6a341c23dd44e3
636
py
Python
test/lesson-2/test_google.py
ihysk/test_framework_sandbox
e7445f89e4cd9dd1352642305e8ecfcf5e7b6856
[ "Apache-2.0" ]
null
null
null
test/lesson-2/test_google.py
ihysk/test_framework_sandbox
e7445f89e4cd9dd1352642305e8ecfcf5e7b6856
[ "Apache-2.0" ]
1
2018-12-17T13:04:09.000Z
2018-12-17T13:04:09.000Z
test/lesson-2/test_google.py
ihysk/test_framework_sandbox
e7445f89e4cd9dd1352642305e8ecfcf5e7b6856
[ "Apache-2.0" ]
null
null
null
import os from selenium import webdriver
27.652174
92
0.66195
b3ec35353b8eff70006af8db75c0b88f41a4a3f6
761
py
Python
video/api.py
perseu912/getporn
9f4c9f11e9f52cf5a9e973df17ee0c0797c232a7
[ "MIT" ]
null
null
null
video/api.py
perseu912/getporn
9f4c9f11e9f52cf5a9e973df17ee0c0797c232a7
[ "MIT" ]
null
null
null
video/api.py
perseu912/getporn
9f4c9f11e9f52cf5a9e973df17ee0c0797c232a7
[ "MIT" ]
null
null
null
import uvicorn from fastapi import FastAPI,Request from fastapi.encoders import jsonable_encoder from fastapi.responses import JSONResponse from fastapi.middleware.cors import CORSMiddleware from pydantic import BaseModel import asyncio from search_video_eporner import get_porn_div origins = ["*"] app = FastAPI() ...
21.742857
55
0.772668
b3ed1e109e8b2ec28f7a697722de818e6a4cde1f
912
py
Python
prepare.py
mukherjeeakash/GestureRecognizer
51c16c9b7c2d32fc6cdcc90bd251f7b131b9e821
[ "Apache-2.0" ]
null
null
null
prepare.py
mukherjeeakash/GestureRecognizer
51c16c9b7c2d32fc6cdcc90bd251f7b131b9e821
[ "Apache-2.0" ]
null
null
null
prepare.py
mukherjeeakash/GestureRecognizer
51c16c9b7c2d32fc6cdcc90bd251f7b131b9e821
[ "Apache-2.0" ]
null
null
null
path = 'C:\\Users\\akash\\Pictures\\Sign-Language-Digits-Dataset-master\\Dataset\\' import os from PIL import Image for i in range(3): for filename in os.listdir(path + str(i)): if filename != "": image_obj = Image.open(path + str(i) + "\\" + filename).convert('L') rotated_image = i...
50.666667
84
0.593202
b3edaf56efd71001fda07b90b8f93a95f2eb34f0
325
py
Python
services/web/server/tests/unit/isolated/scicrunch/conftest.py
elisabettai/osparc-simcore
ad7b6e05111b50fe95e49306a992170490a7247f
[ "MIT" ]
null
null
null
services/web/server/tests/unit/isolated/scicrunch/conftest.py
elisabettai/osparc-simcore
ad7b6e05111b50fe95e49306a992170490a7247f
[ "MIT" ]
1
2021-11-29T13:38:09.000Z
2021-11-29T13:38:09.000Z
services/web/server/tests/unit/isolated/scicrunch/conftest.py
mrnicegyu11/osparc-simcore
b6fa6c245dbfbc18cc74a387111a52de9b05d1f4
[ "MIT" ]
null
null
null
# pylint: disable=redefined-outer-name # pylint: disable=unused-argument # pylint: disable=unused-variable import pytest from simcore_service_webserver.scicrunch.settings import SciCrunchSettings
25
74
0.815385
b3efd49668e001d5d1b52c28738f089ab51d1a6d
677
py
Python
mooquant_history/history/api.py
bopo/mooquant_history
42238e5c17488f629215c3360cf77976c1fbf46f
[ "MIT" ]
1
2018-02-03T06:12:02.000Z
2018-02-03T06:12:02.000Z
mooquant_history/history/api.py
bopo/mooquant_history
42238e5c17488f629215c3360cf77976c1fbf46f
[ "MIT" ]
1
2021-03-25T21:56:53.000Z
2021-03-25T21:56:53.000Z
mooquant_history/history/api.py
bopo/mooquant_history
42238e5c17488f629215c3360cf77976c1fbf46f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .bundle import Day
26.038462
69
0.666174
b3f25d0874f1f41b96cf0db0cf82de3fe58fb7d7
4,409
py
Python
care/facility/summarisation/tests_summary.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
189
2020-03-17T17:18:58.000Z
2022-02-22T09:49:45.000Z
care/facility/summarisation/tests_summary.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
598
2020-03-19T21:22:09.000Z
2022-03-30T05:08:37.000Z
care/facility/summarisation/tests_summary.py
gigincg/care
07be6a7982b5c46a854e3435a52662f32800c8ae
[ "MIT" ]
159
2020-03-19T18:45:56.000Z
2022-03-17T13:23:12.000Z
from celery.decorators import periodic_task from celery.schedules import crontab from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone from django.utils.decorators import method_decorator from django.views.decorators.cache import cache_page from django_filters import rest_framework as ...
46.904255
110
0.714901
b3f3d3c7dae8148e36c4eac3b9fb3e6715a47347
2,173
py
Python
Monte Carlo Method Agent/gambler_env.py
yfe3/Intelligent-Systems
14c22e144e1a7f8625b2ff3f63e9c0545f946f69
[ "MIT" ]
null
null
null
Monte Carlo Method Agent/gambler_env.py
yfe3/Intelligent-Systems
14c22e144e1a7f8625b2ff3f63e9c0545f946f69
[ "MIT" ]
null
null
null
Monte Carlo Method Agent/gambler_env.py
yfe3/Intelligent-Systems
14c22e144e1a7f8625b2ff3f63e9c0545f946f69
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Author: Adam White, Mohammad M. Ajallooeian, Sina Ghiassian Purpose: Code for the Gambler's problem environment from the Sutton and Barto Reinforcement Learning: An Introduction Chapter 4. For use in the Reinforcement Learning course, Fall 2017, University of Alberta """ from utils ...
25.564706
100
0.653474
b3f4f51bfed517a2b9e0fc7d18b1bbd464343e24
39
py
Python
14_libraries_and_modules/chapter_14.py
fmfrancisco/chapters
34acc93e7a41490fe3c856e16927e50fdc370dee
[ "MIT" ]
null
null
null
14_libraries_and_modules/chapter_14.py
fmfrancisco/chapters
34acc93e7a41490fe3c856e16927e50fdc370dee
[ "MIT" ]
null
null
null
14_libraries_and_modules/chapter_14.py
fmfrancisco/chapters
34acc93e7a41490fe3c856e16927e50fdc370dee
[ "MIT" ]
null
null
null
import my_functions my_functions.foo()
13
19
0.846154
b3f8d6b9c7c673105416ad9c741ad2b778d84b31
23,272
py
Python
bdragon/cdragontoolbox/rads.py
headbangsmurf/CommunityDataDragon
cc3307280dbaf61b4a2cab4bc953edb192a077bb
[ "MIT" ]
3
2020-11-10T19:37:41.000Z
2022-03-18T11:37:15.000Z
bdragon/cdragontoolbox/rads.py
headbangsmurf/CommunityDataDragon
cc3307280dbaf61b4a2cab4bc953edb192a077bb
[ "MIT" ]
1
2020-11-30T00:46:44.000Z
2020-11-30T06:57:19.000Z
bdragon/cdragontoolbox/rads.py
headbangsmurf/CommunityDataDragon
cc3307280dbaf61b4a2cab4bc953edb192a077bb
[ "MIT" ]
null
null
null
import os import re import zlib from typing import List, Dict, Union, Optional, Generator, Iterable from collections import defaultdict import logging import requests from .data import Language from .tools import write_file_or_remove from .storage import ( BaseVersion, Storage, Patch, PatchElement, ...
36.419405
124
0.606179
b3fb508751b27387b839402708cd6c7d5ae12cf0
935
py
Python
venv/lib/python3.8/site-packages/arch/tests/bootstrap/test_block_length.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
1
2022-03-29T22:12:54.000Z
2022-03-29T22:12:54.000Z
venv/lib/python3.8/site-packages/arch/tests/bootstrap/test_block_length.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/arch/tests/bootstrap/test_block_length.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
null
null
null
import numpy as np from numpy.testing import assert_allclose import pandas as pd from arch.bootstrap.base import optimal_block_length
28.333333
58
0.610695
b3fc69ae17afb4191989d8ffd0210a58f43c6b8b
2,836
py
Python
articles/imp/genfigs/bulldozer_age_pdp_shap.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
54
2019-07-17T04:59:39.000Z
2022-03-18T15:25:00.000Z
articles/imp/genfigs/bulldozer_age_pdp_shap.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
5
2019-07-27T16:18:37.000Z
2020-12-02T20:16:49.000Z
articles/imp/genfigs/bulldozer_age_pdp_shap.py
parrt/stratx
c190ecc32ac7b8dd3f5532a5d5b0de34a3693a22
[ "MIT" ]
13
2019-08-08T22:17:50.000Z
2022-02-11T10:19:23.000Z
from support import * import numpy as np import pandas as pd import matplotlib.pyplot as plt import shap GREY = '#444443' n = 20_000 shap_test_size = 1000 X, y = load_bulldozer(n=50_000) # Most recent timeseries data is more relevant so get big recent chunk # then we can sample from that to get n X = X.iloc[-50_00...
31.511111
86
0.681946
b3fcf5aad0fcfa54b8364e5370aca5c9c0e1b4b8
640
py
Python
Scripts/Standalone/F-MarkComposites.py
twardoch/TypeRig
121838d98ed41160dbebf575d0a5623def0ce256
[ "BSD-3-Clause" ]
1
2020-07-11T06:18:49.000Z
2020-07-11T06:18:49.000Z
Scripts/Standalone/F-MarkComposites.py
twardoch/TypeRig
121838d98ed41160dbebf575d0a5623def0ce256
[ "BSD-3-Clause" ]
null
null
null
Scripts/Standalone/F-MarkComposites.py
twardoch/TypeRig
121838d98ed41160dbebf575d0a5623def0ce256
[ "BSD-3-Clause" ]
null
null
null
#FLM: Font: Mark Composites (Typerig) # VER : 1.0 # ---------------------------------------- # (C) Vassil Kateliev, 2019 (http://www.kateliev.com) # (C) Karandash Type Foundry (http://www.karandash.eu) #----------------------------------------- # www.typerig.com # No warranties. By using this you agree # that you use ...
24.615385
54
0.6
b3fd52b152656f94f2cb493a192011c38a0ebbef
1,246
py
Python
test.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
test.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
test.py
lvreynoso/Call-Routing-Project
8aeafe6c26d92ed93f32a0fc830bb53e339cb83a
[ "MIT" ]
null
null
null
import scenario1 import unittest cost = scenario1.findCost if __name__ == '__main__': unittest.main()
23.074074
54
0.611557
b3ff355a5eacb980fad90f46134634cc30a5653b
337
py
Python
FWCore/MessageService/python/test/Services_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
FWCore/MessageService/python/test/Services_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
FWCore/MessageService/python/test/Services_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from FWCore.Services.InitRootHandlers_cfi import * # Tell AdaptorConfig to suppress the statistics summary. We aren't actually using # that service and it's summary interferes with the MessageLogger summary. AdaptorConfig = cms.Service("AdaptorConfig", stats = cms.untrack...
33.7
82
0.79822
b6022010588b3820c23e8392cdf76aa7442c0b36
851
py
Python
testimgui.py
geehalel/pyvk
56737ee4547b3f12bf941dcda74305b739d09cbb
[ "MIT" ]
1
2022-01-09T19:02:00.000Z
2022-01-09T19:02:00.000Z
testimgui.py
geehalel/pyvk
56737ee4547b3f12bf941dcda74305b739d09cbb
[ "MIT" ]
null
null
null
testimgui.py
geehalel/pyvk
56737ee4547b3f12bf941dcda74305b739d09cbb
[ "MIT" ]
null
null
null
import imgui imgui.create_context() io=imgui.get_io() texWidth, texHeight, fontData = io.fonts.get_tex_data_as_rgba32() io.display_size = imgui.Vec2(100,200) imgui.new_frame() imgui.render() imgui.new_frame() imgui.begin('Vulkan Example', None, imgui.WINDOW_ALWAYS_AUTO_RESIZE | imgui.WINDOW_NO_RESIZE| imgui.WINDOW_N...
25.787879
115
0.768508
b6025c07a550e6b64ea088e2d2ae6f07c65add55
2,154
py
Python
congregation/dag/dag.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
3
2020-10-05T16:30:15.000Z
2021-01-22T13:38:02.000Z
congregation/dag/dag.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
null
null
null
congregation/dag/dag.py
CCD-HRI/congregation
a552856b03a64a4295792184107c4e529ca3f4ae
[ "MIT" ]
1
2021-02-19T12:40:57.000Z
2021-02-19T12:40:57.000Z
from congregation.dag.nodes import OpNode
28.342105
113
0.587744
b602707d9d2d61f75e1f77871a6e22ddd13d0a1e
8,940
py
Python
package_control/package_disabler_iterator.py
evandrocoan/package_control
bb17c851fa2dee0e564128ea4a499087f2d2ec45
[ "MIT" ]
2
2018-12-08T21:44:59.000Z
2021-11-27T05:14:02.000Z
package_control/package_disabler_iterator.py
evandrocoan/package_control
bb17c851fa2dee0e564128ea4a499087f2d2ec45
[ "MIT" ]
3
2018-02-09T04:14:30.000Z
2018-10-08T14:40:36.000Z
package_control/package_disabler_iterator.py
evandrocoan/package_control
bb17c851fa2dee0e564128ea4a499087f2d2ec45
[ "MIT" ]
null
null
null
import sublime import time import functools from .settings import run_on_main_thread from .package_disabler import PackageDisabler # How many packages to ignore and unignore in batch to fix the ignored packages bug error PACKAGES_COUNT_TO_IGNORE_AHEAD = 8 # The minimum time between multiple calls setting the `igno...
40.821918
150
0.702908
b60287dba0f3cf28c2ac28036e0f2be790cbf1ba
107
py
Python
src/pagnn/training/dcn_old/__init__.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
1
2022-01-16T12:06:13.000Z
2022-01-16T12:06:13.000Z
src/pagnn/training/dcn_old/__init__.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
null
null
null
src/pagnn/training/dcn_old/__init__.py
ostrokach/protein-adjacency-net
fd3ad0b9034eb61b0187752c1f38f7eed1a8f1dc
[ "MIT" ]
null
null
null
from .args import * from .stats import * from .utils import * from .generators import * from . import main
17.833333
25
0.728972
b60380395c1922c0bd45b30cccf4f2cff22d2c09
162
py
Python
PythonExercicios/ex027.py
VitorFRodrigues/Python-curso
af75ff4a7ca14bc7e67b4f3362af837d355b1746
[ "MIT" ]
null
null
null
PythonExercicios/ex027.py
VitorFRodrigues/Python-curso
af75ff4a7ca14bc7e67b4f3362af837d355b1746
[ "MIT" ]
null
null
null
PythonExercicios/ex027.py
VitorFRodrigues/Python-curso
af75ff4a7ca14bc7e67b4f3362af837d355b1746
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome completo: ')).strip() div_nome = nome.split() print('Primeiro = {}\nltimo = {}'.format(div_nome[0], div_nome[len(div_nome)-1]))
54
82
0.679012
b604094d04e2ada61d704b7d22545d0d6af8cd05
2,025
py
Python
keymaster/server/cli/manage_user.py
shiroyuki/spymaster
1efee54427378394ab04d0e53247eb38c28bc97c
[ "Apache-2.0" ]
null
null
null
keymaster/server/cli/manage_user.py
shiroyuki/spymaster
1efee54427378394ab04d0e53247eb38c28bc97c
[ "Apache-2.0" ]
null
null
null
keymaster/server/cli/manage_user.py
shiroyuki/spymaster
1efee54427378394ab04d0e53247eb38c28bc97c
[ "Apache-2.0" ]
null
null
null
from dataclasses import asdict from gallium import ICommand from imagination import container import yaml from keymaster.server.model.user import DefaultRole from keymaster.server.service.user_service import UserService
41.326531
120
0.57284
b604ba270987a772344b759fe236787c977a0500
798
py
Python
examples/lambda/kms.py
nathants/aws-util
7a8751eac4ad1ff8f99a8800ecb659c3b381d46e
[ "MIT" ]
null
null
null
examples/lambda/kms.py
nathants/aws-util
7a8751eac4ad1ff8f99a8800ecb659c3b381d46e
[ "MIT" ]
null
null
null
examples/lambda/kms.py
nathants/aws-util
7a8751eac4ad1ff8f99a8800ecb659c3b381d46e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # attr: concurrency 0 # attr: memory 128 # attr: timeout 60 # policy: AWSLambdaBasicExecutionRole import base64 import boto3 import os def main(event, context): """ >>> import shell, uuid >>> run = lambda *a, **kw: shell.run(*a, stream=True, **kw) >>> path = __file__ >>> u...
24.9375
122
0.605263
b604ed726ad0c27b4c9c8cb853054f3c1f6e34f0
1,125
py
Python
djenga/encryption/kms.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
6
2015-01-18T10:31:13.000Z
2019-06-14T17:39:58.000Z
djenga/encryption/kms.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
12
2015-05-03T06:58:00.000Z
2019-06-26T21:58:16.000Z
djenga/encryption/kms.py
2ps/djenga
85ac2c7b0b0e80b55aff43f027814d05b9b0532c
[ "BSD-3-Clause" ]
1
2018-04-27T20:36:29.000Z
2018-04-27T20:36:29.000Z
from .helpers import _as_bytes from .helpers import b64_str from .helpers import from_b64_str from .helpers import _get_client from .helpers import _prefix_alias
29.605263
79
0.691556
b6067da1a3d8144b0aacdb78ebe92f0d1ae4957c
3,275
py
Python
Testing/intersection_densityTEST.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
Testing/intersection_densityTEST.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
Testing/intersection_densityTEST.py
djconly85/PPA2_0_code
1d67934eb3bc3c7df16cdd5867639b92c9ea45eb
[ "MIT" ]
null
null
null
# -------------------------------- # Name: transit_svc_measure.py # Purpose: Get count of intersection density per acre # # # Author: Darren Conly # Last Updated: <date> # Updated by: <name> # Copyright: (c) SACOG # Python Version: 3.x # -------------------------------- import gc import sys import arcpy # import pp...
31.190476
140
0.643359
b6087e064a90f785236d3333479c904a48f6e73b
530
py
Python
expenses/urls.py
danngalann/myfinance-backend
c7a6d939c7f917c11e7374c1a48128a40acb983a
[ "MIT" ]
null
null
null
expenses/urls.py
danngalann/myfinance-backend
c7a6d939c7f917c11e7374c1a48128a40acb983a
[ "MIT" ]
null
null
null
expenses/urls.py
danngalann/myfinance-backend
c7a6d939c7f917c11e7374c1a48128a40acb983a
[ "MIT" ]
null
null
null
from django.urls import path from expenses.api.create import ExpenseCreateApi from expenses.api.list import ExpenseListApi, periodicities_list_api from expenses.api.update import ExpenseUpdateApi from expenses.api.delete import ExpenseDeleteApi urlpatterns = [ path('api', ExpenseListApi.as_view()), path('api/p...
37.857143
68
0.767925
b60cc9c298430cfb0532fa24f8e831ee7ebc2637
308
py
Python
utilities/extract-files.py
ukgamesfund/registry-blockchain
73b12a36b7af5df3235f1b91939b8fd59b213b9f
[ "MIT" ]
null
null
null
utilities/extract-files.py
ukgamesfund/registry-blockchain
73b12a36b7af5df3235f1b91939b8fd59b213b9f
[ "MIT" ]
null
null
null
utilities/extract-files.py
ukgamesfund/registry-blockchain
73b12a36b7af5df3235f1b91939b8fd59b213b9f
[ "MIT" ]
null
null
null
import json,os,sys filename = sys.argv[1] file_path = "../build/contracts/"+filename content = open(file_path, "r").read() object = json.loads(content) abi = json.dumps(object['abi'], indent=2) bin = object['unlinked_binary'][2:] open(filename+".abi","w").write(abi) open(filename+".bin","w").write(bin)
22
42
0.681818