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
98174e3c40cbda4f3e826c48296a0aa353cb0d60
44,258
py
Python
src/django_ixpmgr/v3/models.py
20c/django-ixpmgr
bd0d6bad4ac49bc8be87905565b89012dd21c58e
[ "Apache-2.0" ]
1
2016-06-17T00:55:21.000Z
2016-06-17T00:55:21.000Z
src/django_ixpmgr/v3/models.py
20c/django-ixpmgr
bd0d6bad4ac49bc8be87905565b89012dd21c58e
[ "Apache-2.0" ]
4
2020-09-03T16:21:40.000Z
2020-09-13T04:20:21.000Z
src/django_ixpmgr/v3/models.py
20c/django-ixpmgr
bd0d6bad4ac49bc8be87905565b89012dd21c58e
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.contrib.auth.models import UserManager from django.core import validators from django.db import models from django.utils.translation import ugettext_lazy as _ from django_extensions.db.fields import ModificationDateTimeField, Creatio...
39.410508
117
0.707465
94e785a3e065620796448a60502f01a1c08f8b72
709
py
Python
gunicorn.config.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
1
2021-11-13T15:47:23.000Z
2021-11-13T15:47:23.000Z
gunicorn.config.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
1
2021-07-24T16:25:18.000Z
2021-07-24T16:25:18.000Z
gunicorn.config.py
avoajaugochukwu/posthog
7e7fd42b0542ebc4734aedb926df11d462e3dd4f
[ "MIT" ]
4
2021-02-16T20:39:01.000Z
2022-03-19T17:00:05.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- loglevel = "error" def on_starting(server): print( """ \x1b[1;34m""" + r""" _____ _ _ _ | __ \ | | | | | | | |__) |__ ___| |_| |__| | ___ __ _ | ___/ _ \/ __| __| __ |/ _ \ / _` | | | | (_) \_...
24.448276
84
0.390691
2ea08f6d3662fdc03d856d5b0fa1bdc64cf87cae
626
py
Python
mame/source/default.py
retro16/openelec-games
a90402aba599b90dd8b75d23599ecb4a1c045a97
[ "MIT" ]
1
2016-07-12T01:44:41.000Z
2016-07-12T01:44:41.000Z
mame/source/default.py
retro16/openelec-games
a90402aba599b90dd8b75d23599ecb4a1c045a97
[ "MIT" ]
null
null
null
mame/source/default.py
retro16/openelec-games
a90402aba599b90dd8b75d23599ecb4a1c045a97
[ "MIT" ]
null
null
null
""" Plugin for Launching MAME """ # -*- coding: UTF-8 -*- # main imports import sys import os # plugin constants __plugin__ = "MAME" __author__ = "Retro16" __url__ = "http://www.mamedev.org/" __git_url__ = "https://github.com/retro16/openelec-games" __credits__ = "" __version__ = "4.1.0" if ( __name__ == "__mai...
21.586207
90
0.667732
21710685934ad0292182207494dab00403d2f462
3,807
py
Python
batch_requests/utils.py
tomaszn/django-batch-requests
f782bf75e6ebb330c02d6dfea12943ad9d5fbc38
[ "MIT" ]
null
null
null
batch_requests/utils.py
tomaszn/django-batch-requests
f782bf75e6ebb330c02d6dfea12943ad9d5fbc38
[ "MIT" ]
null
null
null
batch_requests/utils.py
tomaszn/django-batch-requests
f782bf75e6ebb330c02d6dfea12943ad9d5fbc38
[ "MIT" ]
null
null
null
''' @author: Rahul Tanwani @summary: Holds all the utilities functions required to support batch_requests. ''' from django.test.client import RequestFactory, FakePayload from batch_requests.settings import br_settings as _settings class BatchRequestFactory(RequestFactory): ''' Extend the RequestFactory ...
34.297297
94
0.643289
86c05a77bc9c53489ba71a9f896791c483bde51b
4,813
py
Python
cdd/doctrans.py
offscale/cdd-python
535018ec31fa086b5e79832499f26c6f129daaac
[ "Apache-2.0", "MIT" ]
4
2021-05-28T14:50:58.000Z
2022-03-01T23:22:14.000Z
cdd/doctrans.py
offscale/cdd-python
535018ec31fa086b5e79832499f26c6f129daaac
[ "Apache-2.0", "MIT" ]
1
2021-02-19T04:13:38.000Z
2021-02-19T04:13:38.000Z
cdd/doctrans.py
offscale/cdd-python
535018ec31fa086b5e79832499f26c6f129daaac
[ "Apache-2.0", "MIT" ]
null
null
null
""" Helper to traverse the AST of the input file, extract the docstring out, parse and format to intended style, and emit """ from ast import ( AsyncFunctionDef, ClassDef, Constant, Expr, FunctionDef, Str, fix_missing_locations, walk, ) from collections import deque from copy import dee...
35.389706
119
0.643466
4c5ebec54be232db1a11716d286dd885c576f2e3
4,450
py
Python
test/functional/rpc_signrawtransaction.py
ComputerCraftr/pivx-gui
79c13d9dcaf48dfb11400f0bc5733aaa7c83cee9
[ "MIT" ]
null
null
null
test/functional/rpc_signrawtransaction.py
ComputerCraftr/pivx-gui
79c13d9dcaf48dfb11400f0bc5733aaa7c83cee9
[ "MIT" ]
null
null
null
test/functional/rpc_signrawtransaction.py
ComputerCraftr/pivx-gui
79c13d9dcaf48dfb11400f0bc5733aaa7c83cee9
[ "MIT" ]
1
2021-01-23T04:15:52.000Z
2021-01-23T04:15:52.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test transaction signing using the signrawtransaction RPC.""" from test_framework.test_framework impor...
42.380952
118
0.678202
4354f708fad9ffc177aec175cd7f9af2137b315f
3,846
py
Python
rllab/rllab/envs/mujoco/task_param.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
27
2020-06-17T11:40:17.000Z
2021-11-16T07:39:33.000Z
rllab/rllab/envs/mujoco/task_param.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
3
2020-06-19T07:01:48.000Z
2020-06-19T07:14:57.000Z
rllab/rllab/envs/mujoco/task_param.py
LinZichuan/AdMRL
50a22d4d480e99125cc91cc65dfcc0df4a883ac6
[ "MIT" ]
5
2020-11-19T01:11:24.000Z
2021-12-24T09:03:56.000Z
import math import numpy as np from rllab.envs.base import Step from rllab.envs.mujoco.half_cheetah_env import HalfCheetahEnv from rllab.misc.overrides import overrides import tensorflow as tf from baselines.common.tf_util import normc_initializer from lunzi.nn.parameter import Parameter from lunzi import nn from slbo...
39.244898
123
0.600364
9165b7d957d95c2c167efa10539da9cd4f3d0774
265
py
Python
run/signals.py
SharifAIChallenge/AIC-GameRunner
025c2987b8c288b6e136e6621b99190a7f2ed21d
[ "MIT" ]
null
null
null
run/signals.py
SharifAIChallenge/AIC-GameRunner
025c2987b8c288b6e136e6621b99190a7f2ed21d
[ "MIT" ]
18
2017-01-13T14:27:46.000Z
2018-02-25T00:29:34.000Z
run/signals.py
SharifAIChallenge/AIC-GameRunner
025c2987b8c288b6e136e6621b99190a7f2ed21d
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from run.models import Run from run.tasks import schedule_run_execution @receiver(post_save, sender=Run) def run_handler(instance, **kwargs): schedule_run_execution(instance)
26.5
46
0.822642
fd23dc370135fb791ddbfa2d21b1afa28819159d
475
py
Python
corehq/apps/userhack/migrations/0001_change_max_length.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/userhack/migrations/0001_change_max_length.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
1
2022-03-12T01:03:25.000Z
2022-03-12T01:03:25.000Z
corehq/apps/userhack/migrations/0001_change_max_length.py
johan--/commcare-hq
86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators def forwards_func(apps, schema_editor): schema_editor.execute("ALTER TABLE auth_user ALTER COLUMN username TYPE character varying(128)") class Migration(migrations.Migration): ...
21.590909
100
0.68
9c937a795a324557467cfd2b814fc0709ea4120d
2,028
py
Python
test/test_model.py
PetrSpacek/angrylikegame-python-pyqt5
2ddc73fb5b4398117c3a83593632408b4b44e246
[ "MIT" ]
2
2020-01-17T10:43:13.000Z
2021-11-21T14:56:53.000Z
test/test_model.py
PetrSpacek/angrylikegame-python-pyqt5
2ddc73fb5b4398117c3a83593632408b4b44e246
[ "MIT" ]
null
null
null
test/test_model.py
PetrSpacek/angrylikegame-python-pyqt5
2ddc73fb5b4398117c3a83593632408b4b44e246
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock from model.command import CannonShoot, CannonMoveDown from model.game_model import GameModel from utils.geometry import Rectangle def test_command_processing(qtbot, tmpdir): m = GameModel() m.set_game_area(Rectangle(0, 0, 600, 600)) cannon_orig_pos = m.cannon.get_posit...
35.578947
73
0.725838
cd0c268dc5f18b25e4e5fbb91985b1f9c6089f4f
243
py
Python
application/flask_math/calculation/common/NEWTON_METHOD.py
kouki-0926/Flask-Math
29787e8a5f6e5dc26cf1b8aff7e74dcd597ea9a9
[ "MIT" ]
null
null
null
application/flask_math/calculation/common/NEWTON_METHOD.py
kouki-0926/Flask-Math
29787e8a5f6e5dc26cf1b8aff7e74dcd597ea9a9
[ "MIT" ]
2
2020-04-16T17:15:10.000Z
2020-04-17T17:26:38.000Z
application/flask_math/calculation/common/NEWTON_METHOD.py
kouki-0926/Flask-Math
29787e8a5f6e5dc26cf1b8aff7e74dcd597ea9a9
[ "MIT" ]
null
null
null
def NEWTON_METHOD(number): number = float(number) ε = 10**-10 num_old = number num_new = number/2 while abs(1-num_old/num_new) > ε: num_old = num_new num_new = (num_old+number/num_old)/2 return num_new
22.090909
44
0.617284
25089ec27c012cc76dec325c3f6a89eb966f3e01
4,018
py
Python
pyEBAtest101.py
kellykellogs/py-ECB-CA-2014
1fef36e59e1c03f4ab92d52cf35893d848db3b74
[ "MIT" ]
1
2020-08-11T21:51:18.000Z
2020-08-11T21:51:18.000Z
pyEBAtest101.py
kellykellogs/py-ECB-CA-2014
1fef36e59e1c03f4ab92d52cf35893d848db3b74
[ "MIT" ]
null
null
null
pyEBAtest101.py
kellykellogs/py-ECB-CA-2014
1fef36e59e1c03f4ab92d52cf35893d848db3b74
[ "MIT" ]
4
2018-08-21T18:02:58.000Z
2020-09-23T01:56:33.000Z
# -*- coding: utf-8 -*- """ Created on Sun Nov 02 19:33:28 2014 @author: Kelly """ from EBA_ST_2014 import * import re def natural_sort(l): convert = lambda text: int(text) if text.isdigit() else text.lower() alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ] return sorte...
28.097902
127
0.459184
2cce770c20e8967b04bcc8bd4f90338311a1efae
342
py
Python
qiang00_before_project/qiang01_view_and_route/q07_session.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
qiang00_before_project/qiang01_view_and_route/q07_session.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
qiang00_before_project/qiang01_view_and_route/q07_session.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
from flask import Flask, session, redirect, url_for, request app = Flask(__name__) app.secret_key = 'rewfdfsfef' @app.route('/set_se') def set_se(): session['name'] = 'zhongruan' return redirect(url_for('index')) @app.route('/') def index(): res = session.get('name') return res if __name__ == "__...
17.1
60
0.652047
d95dcac084c6d8e045e1b36306665b908ddfc784
2,734
py
Python
huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/delete_policy_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
1
2021-11-03T07:54:50.000Z
2021-11-03T07:54:50.000Z
huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/delete_policy_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/delete_policy_request.py
wuchen-huawei/huaweicloud-sdk-python-v3
3683d703f4320edb2b8516f36f16d485cff08fc2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import pprint import re import six class DeletePolicyRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the valu...
24.854545
74
0.536211
c0816bcbc48dba402d3f6724858cee67da13c958
678
py
Python
edition/parsing/conf/main_conf_file_parser.py
Manu343726/biicode-common
91b32c6fd1e4a72ce5451183f1766d313cd0e420
[ "MIT" ]
17
2015-04-15T09:40:23.000Z
2017-05-17T20:34:49.000Z
edition/parsing/conf/main_conf_file_parser.py
Manu343726/biicode-common
91b32c6fd1e4a72ce5451183f1766d313cd0e420
[ "MIT" ]
2
2015-04-22T11:29:36.000Z
2018-09-25T09:31:09.000Z
edition/parsing/conf/main_conf_file_parser.py
bowlofstew/common
45e9ca902be7bbbdd73dafe3ab8957bc4a006020
[ "MIT" ]
22
2015-04-15T09:46:00.000Z
2020-09-29T17:03:31.000Z
from biicode.common.edition.parsing.conf.conf_file_parser import parse from collections import namedtuple def parse_mains_conf(text, line_number): mains = [] def path_line_parser(line): mains.append(EntryPointConfiguration.parse(line)) parse(text, path_line_parser, line_number) return mains ...
24.214286
73
0.651917
e7c109af74dbcd2c86a5f624bcb6b97e7beafd94
636
py
Python
Contests/2018-12-08 - Concours Tracs DGSE/notebooks/frame_finder.py
NicolasBizzozzero/Competitive-Programming
53ece89623b4aca542d096b2aff18be35b19da6d
[ "Unlicense" ]
2
2019-04-11T17:19:59.000Z
2019-04-23T12:07:38.000Z
Contests/2018-12-08 - Concours Tracs DGSE/notebooks/frame_finder.py
NicolasBi/Competitive-Programming
53ece89623b4aca542d096b2aff18be35b19da6d
[ "Unlicense" ]
null
null
null
Contests/2018-12-08 - Concours Tracs DGSE/notebooks/frame_finder.py
NicolasBi/Competitive-Programming
53ece89623b4aca542d096b2aff18be35b19da6d
[ "Unlicense" ]
null
null
null
import os import operator from typing import Dict PATH_DIR = "frames" def list_files_by_size(path_dir: str) -> Dict[str: int]: """ Compute the size in bytes of all files in a directory. Ignore all directories. Follows symbolic links. """ files = dict() for file in os.listdir(path_di...
25.44
63
0.644654
7421be61d07b676aa59e46fe2a5958a09c8d94be
1,602
py
Python
playground/tv/ContactHandler.py
mathee92/unirentalz
803c58628ebda002e2c127db11fbaddf181ef394
[ "MIT" ]
null
null
null
playground/tv/ContactHandler.py
mathee92/unirentalz
803c58628ebda002e2c127db11fbaddf181ef394
[ "MIT" ]
null
null
null
playground/tv/ContactHandler.py
mathee92/unirentalz
803c58628ebda002e2c127db11fbaddf181ef394
[ "MIT" ]
null
null
null
""" CLASS: ContactHandler.py FOR: This Class is responsible for handling Contact Us Page. CREATED: 21 December 2013 MODIFIED: 21 December 2013 LOGS: """ # Import Statements from BaseHandler import * import Cookies import EmailHandler # Terms Class class ContactHandler(BaseHandler): ...
31.411765
112
0.598627
cb218487cd7b4cb59438d6e73149911e187e1f49
76
py
Python
initpylib/templates_common/_PLEASE_PYPROJECT_NAME_/__init__.py
kirin123kirin/initpylib_capi
48442f10fbbbbd6d3caad2517a3cbccfe541ca37
[ "MIT" ]
null
null
null
initpylib/templates_common/_PLEASE_PYPROJECT_NAME_/__init__.py
kirin123kirin/initpylib_capi
48442f10fbbbbd6d3caad2517a3cbccfe541ca37
[ "MIT" ]
null
null
null
initpylib/templates_common/_PLEASE_PYPROJECT_NAME_/__init__.py
kirin123kirin/initpylib_capi
48442f10fbbbbd6d3caad2517a3cbccfe541ca37
[ "MIT" ]
null
null
null
from .__PLEASE_PYPROJECT_NAME_ import _PLEASE_PYPROJECT_NAME_ # noqa: F401
38
75
0.855263
a079db857a7c7dec3956ddb255cfdf75d1e557db
922
py
Python
setup.py
shah77pc/gradio
5bb8f0e7dc186608dee17b691731823f20ebc0c0
[ "Apache-2.0" ]
null
null
null
setup.py
shah77pc/gradio
5bb8f0e7dc186608dee17b691731823f20ebc0c0
[ "Apache-2.0" ]
55
2021-10-01T03:00:28.000Z
2021-12-28T03:23:04.000Z
setup.py
admariner/gradio
3b54b58332ccbf70a5f0a1f802812a9fafd5b7d6
[ "Apache-2.0" ]
null
null
null
try: from setuptools import setup except ImportError: from distutils.core import setup setup( name='gradio', version='2.7.0', include_package_data=True, description='Python library for easily interacting with trained machine learning models', author='Abubakar Abid, Ali Abid, Ali Abdalla, Da...
26.342857
93
0.597614
049e3221e667b9cef1a3847bb8efd1c33df6e23b
15,785
py
Python
tests/functional_tests/blockchain.py
sherkitty/main
2cbcb6597c0ff6b95c9fa9cd43b6815649ae1b64
[ "MIT" ]
1
2021-10-30T10:36:18.000Z
2021-10-30T10:36:18.000Z
tests/functional_tests/blockchain.py
sherkitty/main
2cbcb6597c0ff6b95c9fa9cd43b6815649ae1b64
[ "MIT" ]
null
null
null
tests/functional_tests/blockchain.py
sherkitty/main
2cbcb6597c0ff6b95c9fa9cd43b6815649ae1b64
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Sherkitty Project # # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are # permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice...
45.753623
189
0.663478
140656b70f35cd7155e7a17ace0bcc4d1dae238f
6,743
py
Python
electrum_pac/masternode_budget.py
PACCommunity/electrum-PAC
bde9018f026c950de16ddab96e4ef818ded52566
[ "MIT" ]
2
2018-05-12T19:55:42.000Z
2019-09-04T12:14:40.000Z
electrum_pac/masternode_budget.py
PACCommunity/electrum-PAC
bde9018f026c950de16ddab96e4ef818ded52566
[ "MIT" ]
null
null
null
electrum_pac/masternode_budget.py
PACCommunity/electrum-PAC
bde9018f026c950de16ddab96e4ef818ded52566
[ "MIT" ]
15
2018-04-02T11:21:43.000Z
2020-08-14T20:27:29.000Z
import time import string from . import bitcoin from . import ecc from .transaction import BCDataStream, Transaction from . import util from .util import bfh from .i18n import _ from . import constants BUDGET_PAYMENTS_CYCLE_BLOCKS = 50 if constants.net.TESTNET else 16616 SUBSIDY_HALVING_INTERVAL = 210240 safe_charac...
38.096045
113
0.641258
9baef9577e39d44cc501b8c442dca4c6956a01bb
2,878
py
Python
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709215556.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709215556.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
.history/my_classes/ScopesClosuresAndDecorators/GlobalLocalScopes_20210709215556.py
minefarmer/deep-Dive-1
b0675b853180c5b5781888266ea63a3793b8d855
[ "Unlicense" ]
null
null
null
""" Global and local Scopes Scopes and Namespaces When an object is assigned to a variable # a = 10 that variable points to some object and we say that the variable (name) is bound to that object That object can be accessed using that name in various parts of our code...
29.070707
102
0.620222
716da676ed21dc320ea59b2a85c70e5ffca07443
3,445
py
Python
arroyo/utils/retries.py
horpto/arroyo
53410f292ff7a26170c6feacee3a514541d0b4a8
[ "Apache-2.0" ]
11
2021-07-13T17:20:49.000Z
2022-03-25T05:46:59.000Z
arroyo/utils/retries.py
horpto/arroyo
53410f292ff7a26170c6feacee3a514541d0b4a8
[ "Apache-2.0" ]
12
2021-06-15T20:04:36.000Z
2022-03-31T23:43:30.000Z
arroyo/utils/retries.py
horpto/arroyo
53410f292ff7a26170c6feacee3a514541d0b4a8
[ "Apache-2.0" ]
1
2022-01-28T15:44:03.000Z
2022-01-28T15:44:03.000Z
from abc import abstractmethod from typing import Callable, Optional, Protocol, TypeVar, Union from arroyo.utils.clock import Clock, SystemClock T = TypeVar("T") class RetryPolicy(Protocol): """ The retry policy defines an interface for invoking a callable until it passes some sort of test -- typically,...
33.77451
87
0.661538
ad323f6b1360db347e392bfb8e607a0b639bf72c
15,747
py
Python
django_rq/views.py
martinsvoboda/django-rq
a6ebdd817108216886a4d4f350fcd916ffea08c1
[ "MIT" ]
null
null
null
django_rq/views.py
martinsvoboda/django-rq
a6ebdd817108216886a4d4f350fcd916ffea08c1
[ "MIT" ]
null
null
null
django_rq/views.py
martinsvoboda/django-rq
a6ebdd817108216886a4d4f350fcd916ffea08c1
[ "MIT" ]
null
null
null
from __future__ import division from math import ceil from django.contrib import admin, messages from django.contrib.admin.views.decorators import staff_member_required from django.http import Http404, JsonResponse from django.shortcuts import redirect, render from django.urls import reverse from django.views.decorat...
30.282692
141
0.648631
58ca434790681eadd540157ac270f8a3a353242b
70
py
Python
include/tclap-1.4.0-rc1/tests/test106.py
SpaceKatt/cpp-cli-poc
02ffefea2fc6e999fa2b27d08a8b3be6830b1b97
[ "BSL-1.0" ]
62
2021-09-21T18:58:02.000Z
2022-03-07T02:17:43.000Z
third_party/tclap-1.4.0-rc1/tests/test106.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
third_party/tclap-1.4.0-rc1/tests/test106.py
Vertexwahn/FlatlandRT
37d09fde38b25eff5f802200b43628efbd1e3198
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import simple_test simple_test.test("test38", [])
11.666667
30
0.714286
5794152d4e6b815420f8b0ef6a52918f7cb108e7
6,382
py
Python
rlpyt/ul/models/rl/sac_rl_models.py
nirbhayjm/rlpyt
a2741201bbf33f5408306198d220d90f8f7b7250
[ "MIT" ]
null
null
null
rlpyt/ul/models/rl/sac_rl_models.py
nirbhayjm/rlpyt
a2741201bbf33f5408306198d220d90f8f7b7250
[ "MIT" ]
null
null
null
rlpyt/ul/models/rl/sac_rl_models.py
nirbhayjm/rlpyt
a2741201bbf33f5408306198d220d90f8f7b7250
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from rlpyt.models.conv2d import Conv2dModel from rlpyt.models.mlp import MlpModel from rlpyt.utils.tensor import infer_leading_dims, restore_leading_dims def weight_init(m): """Custom weight init for Conv2D and Linear layers.""" if isinstance...
31.131707
84
0.598402
78c2ebb69c4d77ed3fdef80d8e3c786012c5a1af
3,008
py
Python
nfvbench/config_plugin.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
nfvbench/config_plugin.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
nfvbench/config_plugin.py
hashnfv/hashnfv-nfvbench
8da439b932537748d379c7bd3bdf560ef739b203
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2016 Cisco Systems, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
31.333333
97
0.683511
e210558e9dddbd6211a4ed583d9e66e5858ff5f7
16,958
py
Python
knoten/csm.py
acpaquette/knoten
8341585349d2040cd05026c38ab35d84126b143e
[ "Unlicense" ]
null
null
null
knoten/csm.py
acpaquette/knoten
8341585349d2040cd05026c38ab35d84126b143e
[ "Unlicense" ]
null
null
null
knoten/csm.py
acpaquette/knoten
8341585349d2040cd05026c38ab35d84126b143e
[ "Unlicense" ]
null
null
null
import datetime import json import os from csmapi import csmapi import jinja2 from gdal import ogr import numpy as np import pyproj import requests import scipy.stats from functools import singledispatch from plio.io.io_gdal import GeoDataset class NumpyEncoder(json.JSONEncoder): def default(self, obj): ...
33.646825
139
0.613752
6f8c87ba50afb7cdca21112a8517701ebf75636f
616
py
Python
opentech/apply/activity/templatetags/activity_tags.py
stdevteam/opentech.fund
6888dc5aa1a8c60f17629dff03877412275e08a5
[ "BSD-3-Clause" ]
null
null
null
opentech/apply/activity/templatetags/activity_tags.py
stdevteam/opentech.fund
6888dc5aa1a8c60f17629dff03877412275e08a5
[ "BSD-3-Clause" ]
null
null
null
opentech/apply/activity/templatetags/activity_tags.py
stdevteam/opentech.fund
6888dc5aa1a8c60f17629dff03877412275e08a5
[ "BSD-3-Clause" ]
null
null
null
from django import template from opentech.apply.determinations.models import Determination from opentech.apply.review.models import Review register = template.Library() @register.filter def display_author(activity, user): if user.is_applicant and isinstance(activity.related_object, Review): return 'Revi...
22
73
0.751623
9c9539d612b54d6497d25c1e1aa84c6d15523841
5,172
py
Python
ros/src/waypoint_updater/test_waypoint_updater.py
HiepTang/udacity-ros-car
c5472e637c75f0810b1cc7f27c41cff7e114b83c
[ "MIT" ]
1
2019-01-28T20:30:50.000Z
2019-01-28T20:30:50.000Z
ros/src/waypoint_updater/test_waypoint_updater.py
HiepTang/udacity-ros-car
c5472e637c75f0810b1cc7f27c41cff7e114b83c
[ "MIT" ]
14
2019-01-30T05:16:45.000Z
2019-03-04T11:16:50.000Z
ros/src/waypoint_updater/test_waypoint_updater.py
HiepTang/udacity-ros-car
c5472e637c75f0810b1cc7f27c41cff7e114b83c
[ "MIT" ]
5
2019-01-28T19:32:02.000Z
2019-02-23T21:25:31.000Z
#!/usr/bin/env python # ## in order to run tests first time follow the procedure below (despite how weird it is) # catkin_make # source devel/setup.bash # touch src/waypoint_updater/CMakeLists.txt # catkin_make run_tests # ## touch is used to trigger CMake execution once again after the first build and is required d...
38.029412
164
0.70263
a288342d14dac418a009f21b845d2a3d9dacdafc
8,026
py
Python
doc/workshops/source/conf.py
jodygarnett/geogig
ee4a94b28ecb65cc5822bd84b629ae6eaccefde6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
doc/workshops/source/conf.py
jodygarnett/geogig
ee4a94b28ecb65cc5822bd84b629ae6eaccefde6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
doc/workshops/source/conf.py
jodygarnett/geogig
ee4a94b28ecb65cc5822bd84b629ae6eaccefde6
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # GeoGig Workshop documentation build configuration file, created by # sphinx-quickstart on Wed Oct 23 08:54:29 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file....
32.759184
80
0.716422
cb10649701c1ec129b2917d6aa57a14240a6fe18
3,236
py
Python
profiles_project/settings.py
Omuza/profiles-rest-api
32e42e2aa0955236aa1abe7fc8f06f17521674b2
[ "MIT" ]
null
null
null
profiles_project/settings.py
Omuza/profiles-rest-api
32e42e2aa0955236aa1abe7fc8f06f17521674b2
[ "MIT" ]
null
null
null
profiles_project/settings.py
Omuza/profiles-rest-api
32e42e2aa0955236aa1abe7fc8f06f17521674b2
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.68254
91
0.700865
8b9c4ddf45e088a87d5b3cfa0cb0e033347eb811
18,780
py
Python
tests/test_pruning.py
ynahshan/distiller
556492a0a5434a6bcb21fb0301f8b68501ad2d21
[ "Apache-2.0" ]
null
null
null
tests/test_pruning.py
ynahshan/distiller
556492a0a5434a6bcb21fb0301f8b68501ad2d21
[ "Apache-2.0" ]
null
null
null
tests/test_pruning.py
ynahshan/distiller
556492a0a5434a6bcb21fb0301f8b68501ad2d21
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.271889
110
0.656124
c06aa220c60b84c4952d47c998b2cb074161c1ec
77,796
bzl
Python
tools/build/bazel/generate_workspace.bzl
tqrg-bot/onos
5b66ce0da32ce62d71868558b6229da190343676
[ "Apache-2.0" ]
null
null
null
tools/build/bazel/generate_workspace.bzl
tqrg-bot/onos
5b66ce0da32ce62d71868558b6229da190343676
[ "Apache-2.0" ]
null
null
null
tools/build/bazel/generate_workspace.bzl
tqrg-bot/onos
5b66ce0da32ce62d71868558b6229da190343676
[ "Apache-2.0" ]
null
null
null
# ***** This file was auto-generated at Mon, 2 Jul 2018 20:10:47 GMT. Do not edit this file manually. ***** # ***** Use onos-lib-gen ***** load("//tools/build/bazel:variables.bzl", "ONOS_GROUP_ID", "ONOS_VERSION") COMPILE = [ "@commons_configuration//jar", "@commons_logging//jar", "@commons_collections//j...
34.061296
227
0.639056
528fd47551d77fdd131a82b938004d526542877c
4,581
py
Python
tensor2tensor/utils/metrics_test.py
webdeveloper0012/Tensor2tensor
48bce065278eba461c8a2840e4132becbc822c7c
[ "Apache-2.0" ]
9
2019-11-21T02:48:21.000Z
2021-08-18T07:30:34.000Z
tensor2tensor/utils/metrics_test.py
webdeveloper0012/Tensor2tensor
48bce065278eba461c8a2840e4132becbc822c7c
[ "Apache-2.0" ]
4
2021-08-25T14:41:19.000Z
2022-02-09T23:28:01.000Z
tensor2tensor/utils/metrics_test.py
webdeveloper0012/Tensor2tensor
48bce065278eba461c8a2840e4132becbc822c7c
[ "Apache-2.0" ]
3
2021-04-27T08:01:32.000Z
2021-04-27T17:55:48.000Z
# coding=utf-8 # Copyright 2017 The Tensor2Tensor 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...
40.539823
74
0.669286
0061da872f8a2f3de50d8115b766a7f58f3ef2dd
11,281
py
Python
dags_archive/data_fusion_example.py
ggupta36/airflow-toolkit
383aa069a07bb0b2ca6d5fb722d0fa4fd1c949aa
[ "MIT" ]
56
2020-08-24T00:54:46.000Z
2022-03-31T20:18:08.000Z
dags_archive/data_fusion_example.py
ggupta36/airflow-toolkit
383aa069a07bb0b2ca6d5fb722d0fa4fd1c949aa
[ "MIT" ]
7
2020-08-24T23:45:53.000Z
2021-06-19T16:57:17.000Z
dags_archive/data_fusion_example.py
ggupta36/airflow-toolkit
383aa069a07bb0b2ca6d5fb722d0fa4fd1c949aa
[ "MIT" ]
16
2020-08-24T06:27:42.000Z
2021-08-21T00:25:09.000Z
# ############################################################################# # Imports # ############################################################################# import datetime from airflow import models from airflow.utils import dates import google.auth.transport.requests import json import time from airflow....
35.699367
152
0.538959
41f794c42f35354e97e675c8440255159f567fd0
52,188
py
Python
pycalib/calibration_methods.py
disiji/pycalib
e22ed16bf6cc09161904ee014f92cc52f17d7dbc
[ "MIT" ]
null
null
null
pycalib/calibration_methods.py
disiji/pycalib
e22ed16bf6cc09161904ee014f92cc52f17d7dbc
[ "MIT" ]
null
null
null
pycalib/calibration_methods.py
disiji/pycalib
e22ed16bf6cc09161904ee014f92cc52f17d7dbc
[ "MIT" ]
null
null
null
# Standard library imports import numpy as np import numpy.matlib import warnings import matplotlib.pyplot as plt # SciPy imports import scipy.stats import scipy.optimize import scipy.special import scipy.cluster.vq # Scikit learn imports import sklearn import sklearn.multiclass import sklearn.utils from sklearn.base...
39.327807
128
0.602533
ab5d16ad19f4f43b7d95cb6b801a697c4b376ba1
54
py
Python
doc/programming/parts/pythondb-sybase-testproc-result-set.py
laigor/sqlrelay-non-english-fixes-
7803f862ddbf88bca078c50d621c64c22fc0a405
[ "PHP-3.01", "CC-BY-3.0" ]
16
2018-04-23T09:58:33.000Z
2022-01-31T13:40:20.000Z
doc/programming/parts/pythondb-sybase-testproc-result-set.py
laigor/sqlrelay-non-english-fixes-
7803f862ddbf88bca078c50d621c64c22fc0a405
[ "PHP-3.01", "CC-BY-3.0" ]
null
null
null
doc/programming/parts/pythondb-sybase-testproc-result-set.py
laigor/sqlrelay-non-english-fixes-
7803f862ddbf88bca078c50d621c64c22fc0a405
[ "PHP-3.01", "CC-BY-3.0" ]
4
2020-12-23T12:17:54.000Z
2022-01-04T20:46:34.000Z
cur.execute('call exampleproc') result=cur.fetchall()
18
31
0.777778
36eb1acc9ed0eb4c1f2ffdafc8449e44d93fe0a7
6,062
py
Python
src/server.py
anisimovih/TCP-channel-bandwidth-meter
d5d1d5b779552392dec20ba60b9bbca18783466a
[ "MIT" ]
1
2019-08-02T08:08:18.000Z
2019-08-02T08:08:18.000Z
src/server.py
anisimovih/TCP-channel-bandwidth-meter
d5d1d5b779552392dec20ba60b9bbca18783466a
[ "MIT" ]
null
null
null
src/server.py
anisimovih/TCP-channel-bandwidth-meter
d5d1d5b779552392dec20ba60b9bbca18783466a
[ "MIT" ]
null
null
null
import socket import time import csv import numpy as np from src import global_variables from src.graph import Graph def connect_to_client(port, size, filename, graph): with open(filename, "w", newline='') as csv_file: writer = csv.writer(csv_file, delimiter=';') writer.writerow(["start_time", "...
36.518072
120
0.595348
ac3a9b104574f74ecf297d3466373fe39cd85f11
7,526
py
Python
locallibrary/settings.py
kevmgb/LibAppDjango
4d5aacb115f1c67b72e3931e561b027464e6bda0
[ "MIT" ]
null
null
null
locallibrary/settings.py
kevmgb/LibAppDjango
4d5aacb115f1c67b72e3931e561b027464e6bda0
[ "MIT" ]
null
null
null
locallibrary/settings.py
kevmgb/LibAppDjango
4d5aacb115f1c67b72e3931e561b027464e6bda0
[ "MIT" ]
2
2019-08-05T14:50:08.000Z
2019-08-19T18:13:54.000Z
""" Django settings for locallibrary project. Generated by 'django-admin startproject' using Django 2.2.3. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import ...
33.448889
205
0.726415
3205ae92f85bc57ae71f50518b0ecfd7a079d1f1
10,040
py
Python
test/functional/rpc_scantxoutset.py
Black-NET/erexcoin-source
f8db1067acf62dabbfb86a90e49410723875ccef
[ "MIT" ]
null
null
null
test/functional/rpc_scantxoutset.py
Black-NET/erexcoin-source
f8db1067acf62dabbfb86a90e49410723875ccef
[ "MIT" ]
null
null
null
test/functional/rpc_scantxoutset.py
Black-NET/erexcoin-source
f8db1067acf62dabbfb86a90e49410723875ccef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the scantxoutset rpc call.""" from test_framework.test_framework import ErexCoinTestFramework from test...
104.583333
250
0.741335
cdaf404026ffd6c486d91cd1fb030eae4dd1cd41
11,827
py
Python
custom_components/bosch_shc/sensor.py
tschamm/boschshc-hass
102f93f769cbd41eaddc5c095ad2e5c1cc807925
[ "Apache-2.0" ]
42
2020-01-08T13:43:49.000Z
2022-03-10T21:38:02.000Z
custom_components/bosch_shc/sensor.py
tschamm/boschshc-hass
102f93f769cbd41eaddc5c095ad2e5c1cc807925
[ "Apache-2.0" ]
46
2020-04-12T21:44:55.000Z
2022-03-23T07:18:39.000Z
custom_components/bosch_shc/sensor.py
tschamm/boschshc-hass
102f93f769cbd41eaddc5c095ad2e5c1cc807925
[ "Apache-2.0" ]
16
2020-04-12T11:57:16.000Z
2021-12-27T19:04:27.000Z
"""Platform for sensor integration.""" from boschshcpy import SHCSession, SHCDevice from homeassistant.components.sensor import SensorEntity from homeassistant.const import ( CONCENTRATION_PARTS_PER_MILLION, DEVICE_CLASS_ENERGY, DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_POWER, DEVICE_CLASS_TEMPE...
29.130542
82
0.587469
076d58a530e644d6e164473e73cf305284276023
1,011
py
Python
nitorch/cli/misc/chunk/cli.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
46
2020-07-31T10:14:05.000Z
2022-03-24T12:51:46.000Z
nitorch/cli/misc/chunk/cli.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
36
2020-10-06T19:01:38.000Z
2022-02-03T18:07:35.000Z
nitorch/cli/misc/chunk/cli.py
balbasty/nitorch
d30c3125a8a66ea1434f2b39ed03338afd9724b4
[ "MIT" ]
6
2021-01-05T14:59:05.000Z
2021-11-18T18:26:45.000Z
from nitorch.core.py import make_list from nitorch.cli.cli import commands from .main import chunk from .parser import parse, help, ParseError import sys def cli(args=None): f"""Command-line interface for `nichunk` {help} """ # Exceptions are dealt with here try: _cli(args) ...
25.275
87
0.664688
8b6ed1d8a2ab98c4c367cdd87d13295158d782bd
532
py
Python
plotly/validators/histogram2d/xbins/_size.py
paulamool/plotly.py
6121ac1f324e247e4e4b2964d65d7393377777c0
[ "MIT" ]
1
2020-08-26T03:30:36.000Z
2020-08-26T03:30:36.000Z
plotly/validators/histogram2d/xbins/_size.py
paulamool/plotly.py
6121ac1f324e247e4e4b2964d65d7393377777c0
[ "MIT" ]
1
2020-12-15T16:56:11.000Z
2020-12-15T16:56:11.000Z
plotly/validators/histogram2d/xbins/_size.py
skeptycal/plotly.py
2e5bf6e2f7c213295c405ece3e859f4d3f8030d1
[ "MIT" ]
1
2019-02-14T05:18:20.000Z
2019-02-14T05:18:20.000Z
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name='size', parent_name='histogram2d.xbins', **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_nam...
31.294118
76
0.62782
418080ab05249fa32a0cfff0920707c223a3f826
63,713
py
Python
test/integration/component/test_resource_limits.py
bvbharatk/cloud-stack
9acfc0307726204b444cc5e81abecb849eca23d9
[ "Apache-2.0" ]
2
2016-03-18T09:44:07.000Z
2019-01-12T06:52:08.000Z
test/integration/component/test_resource_limits.py
bvbharatk/cloud-stack
9acfc0307726204b444cc5e81abecb849eca23d9
[ "Apache-2.0" ]
1
2016-03-04T09:58:31.000Z
2016-03-08T17:31:56.000Z
test/integration/component/test_resource_limits.py
bvbharatk/cloud-stack
9acfc0307726204b444cc5e81abecb849eca23d9
[ "Apache-2.0" ]
1
2021-12-23T09:22:28.000Z
2021-12-23T09:22:28.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 u...
43.758929
128
0.430823
4a397ca13383e94c7dbd6a43378415a48f1477b2
4,278
py
Python
xfel/merging/application/filter/experiment_filter.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/merging/application/filter/experiment_filter.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
xfel/merging/application/filter/experiment_filter.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import print_function, division from xfel.merging.application.worker import worker from dials.array_family import flex from dxtbx.model.experiment_list import ExperimentList class experiment_filter(worker): '''Reject experiments based on various criteria''' def __repr__(self): return 'Filter e...
44.103093
127
0.770453
5eab3f85166b7a0ad4483121c5cd0d269406b6e7
8,246
py
Python
src/models/9-Model-Selection.py
kobiburkis/LendingClubAnalysis
2bb3a4a43bd4cc282afe800d15399c748a87443d
[ "BSD-3-Clause" ]
1
2019-03-30T17:36:00.000Z
2019-03-30T17:36:00.000Z
src/models/9-Model-Selection.py
NadavFeldman/Lending-Club-Issued-Loans-Analysis-
77a498abe0614996ddae232efba2f8711582c425
[ "BSD-3-Clause" ]
null
null
null
src/models/9-Model-Selection.py
NadavFeldman/Lending-Club-Issued-Loans-Analysis-
77a498abe0614996ddae232efba2f8711582c425
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # # Model Selection # In[66]: import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn import metrics from sklearn.linear_model import LogisticRegression from sklearn.naive_bayes import GaussianNB from sklearn import tree from sklearn.ensemble import RandomForestClassifie...
22.286486
191
0.690517
7a781ae33f083d4753ffe47f08487c167431b438
12,485
py
Python
sdk/python/pulumi_azure_native/servicebus/v20210601preview/disaster_recovery_config.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20210601preview/disaster_recovery_config.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20210601preview/disaster_recovery_config.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.235507
793
0.667761
5e056bce3bd7a4c2ca29cd50b314401c6c1f211e
556
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/AMD/transform_feedback3_lines_triangles.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/AMD/transform_feedback3_lines_triangles.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/AMD/transform_feedback3_lines_triangles.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''Autogenerated by xml_generate script, do not edit!''' from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GL import _types as _cs # End users want this... from OpenGL.raw.GL._types import * from OpenGL.raw.GL import _errors from OpenGL.constant import Constant as _C import...
34.75
137
0.785971
8fe2f292bdb79c9bff5b65279ff0e87f9bd6278d
6,771
py
Python
userbot/modules/misc.py
melvinvarghese/userbotmelvin
dce2c27b788841bcbc5f6e1e34acd539df4fa562
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/misc.py
melvinvarghese/userbotmelvin
dce2c27b788841bcbc5f6e1e34acd539df4fa562
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/misc.py
melvinvarghese/userbotmelvin
dce2c27b788841bcbc5f6e1e34acd539df4fa562
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # # You can find misc modules, which dont fit in anything xD """ Userbot module for other small commands. """ from rando...
31.347222
134
0.649387
432957cd183496eef9a0571e8034c7e1ef87dddb
706
py
Python
presidio-analyzer/tests/mocks/nlp_engine_mock.py
kubistika/presidio
4777d1759e9bddc45317d9b2689e6df9f75eec05
[ "MIT" ]
1,408
2019-05-07T07:01:40.000Z
2022-03-31T00:22:33.000Z
presidio-analyzer/tests/mocks/nlp_engine_mock.py
kubistika/presidio
4777d1759e9bddc45317d9b2689e6df9f75eec05
[ "MIT" ]
351
2019-05-09T19:55:07.000Z
2022-03-31T08:54:04.000Z
presidio-analyzer/tests/mocks/nlp_engine_mock.py
kubistika/presidio
4777d1759e9bddc45317d9b2689e6df9f75eec05
[ "MIT" ]
275
2019-05-07T23:48:24.000Z
2022-03-31T12:38:30.000Z
from presidio_analyzer.nlp_engine import NlpEngine, NlpArtifacts class NlpEngineMock(NlpEngine): def __init__(self, stopwords=None, punct_words=None, nlp_artifacts=None): self.stopwords = stopwords if stopwords else [] self.punct_words = punct_words if punct_words else [] if nlp_artifacts ...
33.619048
77
0.677054
148cc7c75f507431a3d0e9c428d8293f18b6f004
1,103
py
Python
renku/service/cache/models/user.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
26
2018-06-04T15:21:50.000Z
2022-02-11T17:31:24.000Z
renku/service/cache/models/user.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
1,655
2018-05-17T22:07:50.000Z
2022-03-31T21:22:01.000Z
renku/service/cache/models/user.py
tcchrist/renku-python
47d2b5f36b74d0d3d435e3f78373e52361361139
[ "Apache-2.0" ]
19
2018-05-18T14:12:25.000Z
2022-03-30T19:51:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2020 - Swiss Data Science Center (SDSC) # A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and # Eidgenössische Technische Hochschule Zürich (ETHZ). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compli...
33.424242
75
0.740707
a33f5466ce43719b2af914a039b2459f6c4516af
12,122
py
Python
testnumpy.py
drtjc/3DOXO
7ef41f50fb6407438f11dd430c024a5fae32511e
[ "MIT" ]
null
null
null
testnumpy.py
drtjc/3DOXO
7ef41f50fb6407438f11dd430c024a5fae32511e
[ "MIT" ]
null
null
null
testnumpy.py
drtjc/3DOXO
7ef41f50fb6407438f11dd430c024a5fae32511e
[ "MIT" ]
null
null
null
""" ## TO DO hypercube -> lines -> cells """ import numpy as np import itertools as it from scipy.special import comb from collections import defaultdict # imports for type annotations from typing import List, Callable, Union, Iterable, Tuple, Any, DefaultDict from pprint import pprint import helper as hp def num_li...
29
104
0.562118
fed0dd96b816c919a1ad8ed5b995ec36e2705f87
6,915
py
Python
tests/test_pandas.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
264
2015-02-20T11:11:51.000Z
2022-03-28T06:44:00.000Z
tests/test_pandas.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
106
2015-06-22T19:31:27.000Z
2022-03-25T17:21:42.000Z
tests/test_pandas.py
lmacaya/oddt
bfbf9ea99768b556684dc99c6ac87a9f16b16f80
[ "BSD-3-Clause" ]
106
2015-06-23T22:10:55.000Z
2022-01-21T05:02:32.000Z
import os from tempfile import NamedTemporaryFile from numpy.testing import assert_array_equal import pandas as pd import oddt import oddt.pandas as opd test_data_dir = os.path.dirname(os.path.abspath(__file__)) input_fname = os.path.join(test_data_dir, 'data/dude/xiap/actives_docked.sdf') def test_classes(): ...
34.748744
136
0.610557
62834ad2795a0ed96f50e22ede57ed1c056cfbd6
320
py
Python
x_5_1.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
x_5_1.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
1
2021-11-13T08:03:04.000Z
2021-11-13T08:03:04.000Z
x_5_1.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
# x_5_1 # # 「きじ」のデータを「HP: 1100」で作成してください class OnitaijiMember: def __init__(self, name, hit_points): self.name = name self.hit_points = hit_points momotaro = OnitaijiMember('桃太郎', 1800) inu = OnitaijiMember('いぬ', 1300) saru = OnitaijiMember('さる', 1400) print(momotaro.name) print(inu.hit_points)
18.823529
41
0.69375
29bba89da07c9bf6a5056054b1c2a19697a0b051
513
py
Python
app/__init__.py
KittyWitty2019/wolfit_v2
46cdd233f234819e5538a1fed7e4eb33f4da8ca8
[ "MIT" ]
2
2019-10-09T21:20:17.000Z
2019-11-12T20:17:29.000Z
app/__init__.py
KittyWitty2019/wolfit_v2
46cdd233f234819e5538a1fed7e4eb33f4da8ca8
[ "MIT" ]
3
2021-03-23T17:53:29.000Z
2021-06-16T12:43:57.000Z
app/__init__.py
jalmquist18/wou-cs-wolfit
1a085e11720064cd7bc231ab7ada7900b9a1cd21
[ "MIT" ]
8
2018-10-01T04:27:23.000Z
2022-03-11T04:39:23.000Z
import os import config from flask import Flask from flask_bootstrap import Bootstrap from flask_login import LoginManager from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config.from_object(config.Config) app.config.from_envvar('WOLFIT_SETTINGS') app.config['S...
19
71
0.808967
ad3f0296d0acf16032c393d47ef77a11c73abd3f
7,989
py
Python
2018A7PS0116G_SUSMIT.py
SusmitWani/CS-F407-3CNF-Solver
33f02b6790f79bffe0c185fbbc43a555c8c2c769
[ "MIT" ]
null
null
null
2018A7PS0116G_SUSMIT.py
SusmitWani/CS-F407-3CNF-Solver
33f02b6790f79bffe0c185fbbc43a555c8c2c769
[ "MIT" ]
null
null
null
2018A7PS0116G_SUSMIT.py
SusmitWani/CS-F407-3CNF-Solver
33f02b6790f79bffe0c185fbbc43a555c8c2c769
[ "MIT" ]
null
null
null
from CNF_Creator import * import numpy as np import time import random # Generates a random assignment def generate_assignment(n=50): assignment = [] for i in range(n): num = random.random() assignment.append(True if num >= 0.5 else False) return assignment # Generates the population for...
35.665179
103
0.596445
c5522540cdc869f89673ed3b7cc13a1f763bbae5
1,484
py
Python
reviewboard/extensions/management/commands/list-extensions.py
pombredanne/reviewboard
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
[ "MIT" ]
null
null
null
reviewboard/extensions/management/commands/list-extensions.py
pombredanne/reviewboard
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
[ "MIT" ]
null
null
null
reviewboard/extensions/management/commands/list-extensions.py
pombredanne/reviewboard
15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d
[ "MIT" ]
null
null
null
"""Management command for listing extensions.""" from django.utils.translation import ugettext as _ from djblets.extensions.models import RegisteredExtension from djblets.util.compat.django.core.management.base import BaseCommand class Command(BaseCommand): """Management command for listing extensions.""" h...
30.285714
71
0.592318
5cf7a6e264eb764f50876e9e2dc5acfef0dad811
14,121
py
Python
src/python/pants/backend/jvm/tasks/coverage/cobertura.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2020-08-26T03:30:31.000Z
2020-08-26T03:30:31.000Z
src/python/pants/backend/jvm/tasks/coverage/cobertura.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
1
2019-07-29T16:58:21.000Z
2019-07-29T16:58:21.000Z
src/python/pants/backend/jvm/tasks/coverage/cobertura.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import functools import os import shutil from collections import defaultdict from twitter.common.collections import OrderedSet from pants.backend.jvm.tasks.classpath_util import Classpat...
48.030612
102
0.660506
05b9f8b56cecd079d3c658772354d5d521c912ca
105,449
py
Python
src/azure-cli/azure/cli/command_modules/appservice/_help.py
philipfalkner/azure-cli
f85edded4c55a0f88841956e0f49d0bef8247efc
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/appservice/_help.py
philipfalkner/azure-cli
f85edded4c55a0f88841956e0f49d0bef8247efc
[ "MIT" ]
null
null
null
src/azure-cli/azure/cli/command_modules/appservice/_help.py
philipfalkner/azure-cli
f85edded4c55a0f88841956e0f49d0bef8247efc
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
40.448408
318
0.736536
eb73b5a22d830e79302593842e426d111d5c589a
2,181
py
Python
pyTD/__init__.py
kevmartian/pyTD
ea8f374a0c9eddf5a46233f5946e68a67c181009
[ "MIT" ]
16
2018-10-25T06:03:56.000Z
2021-06-14T03:53:01.000Z
pyTD/__init__.py
td-ameritrade/pyTD
28099664c8a3b6b7e60f62f5e5c120f01e3530af
[ "MIT" ]
5
2018-11-11T19:34:25.000Z
2021-01-16T03:39:45.000Z
pyTD/__init__.py
td-ameritrade/pyTD
28099664c8a3b6b7e60f62f5e5c120f01e3530af
[ "MIT" ]
14
2019-03-12T04:16:40.000Z
2021-04-15T20:26:04.000Z
# MIT License # Copyright (c) 2018 Addison Lynch # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
35.177419
79
0.766162
80c3b27e7960b57c33e43381bc8c78acdb2836b5
1,120
py
Python
ulit/base_service.py
amanjeev/ulit
6ebfc61a4718a8e74f821ed43f7c5814f7dc18b2
[ "MIT" ]
4
2015-07-27T12:50:00.000Z
2017-08-15T01:47:36.000Z
ulit/base_service.py
amanjeev/ulit
6ebfc61a4718a8e74f821ed43f7c5814f7dc18b2
[ "MIT" ]
null
null
null
ulit/base_service.py
amanjeev/ulit
6ebfc61a4718a8e74f821ed43f7c5814f7dc18b2
[ "MIT" ]
null
null
null
"""Base class for service helpers""" __author__ = "Amanjeev Sethi" import logging class BaseService(object): @staticmethod def steps_to_execute(initial_language="", cascade_steps=[]): """construct the final steps to execute, checks whether the original language is the first and the last ite...
36.129032
111
0.6875
95f271c89f1f8a8624ae611b663a865753571175
9,713
py
Python
hive/server/condenser_api/get_state.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
78
2017-03-09T15:33:08.000Z
2022-03-30T06:01:19.000Z
hive/server/condenser_api/get_state.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
193
2017-04-25T19:39:20.000Z
2021-06-29T01:53:53.000Z
hive/server/condenser_api/get_state.py
hidraco/hivemind
92649f676d498b990f56879ba73f589e2057ab91
[ "MIT" ]
68
2017-05-07T17:31:08.000Z
2021-08-23T01:17:00.000Z
"""Routes then builds a get_state response object""" #pylint: disable=line-too-long,too-many-lines import logging from collections import OrderedDict import ujson as json from aiocache import cached from hive.utils.normalize import legacy_amount from hive.server.common.mutes import Mutes from hive.server.condenser_a...
31.433657
124
0.622465
c55252e3c85beb65f6e4953328fdef37dbfa646e
18,497
py
Python
pytype/tests/test_builtins4.py
google/pytype
b5a40b8afb497a2217fc366492b894c027383c83
[ "Apache-2.0" ]
3,882
2015-03-22T12:17:15.000Z
2022-03-31T17:13:20.000Z
pytype/tests/test_builtins4.py
google/pytype
b5a40b8afb497a2217fc366492b894c027383c83
[ "Apache-2.0" ]
638
2015-11-03T06:34:44.000Z
2022-03-31T23:41:48.000Z
pytype/tests/test_builtins4.py
google/pytype
b5a40b8afb497a2217fc366492b894c027383c83
[ "Apache-2.0" ]
301
2015-08-14T10:21:17.000Z
2022-03-08T11:03:40.000Z
"""Tests of builtins (in stubs/builtins/{version}/__builtins__.pytd).""" from pytype import file_utils from pytype.tests import test_base from pytype.tests import test_utils class MapTest(test_base.BaseTest): """Tests for builtin.map.""" def test_basic(self): ty = self.Infer(""" v = map(int, ("0",)) ...
25.303694
116
0.524031
e436e32a5c716509e4ceca4b78c4685ee34c224c
14,375
py
Python
wildlifelicensing/apps/main/views.py
IndrayaniJadhav/ledger
54e2d844f3efd923066ec9d7e5ee8fa7faad3e77
[ "Apache-2.0" ]
null
null
null
wildlifelicensing/apps/main/views.py
IndrayaniJadhav/ledger
54e2d844f3efd923066ec9d7e5ee8fa7faad3e77
[ "Apache-2.0" ]
1
2018-09-20T03:17:03.000Z
2018-09-20T03:17:03.000Z
wildlifelicensing/apps/main/views.py
IndrayaniJadhav/ledger
54e2d844f3efd923066ec9d7e5ee8fa7faad3e77
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib import messages from django.core.urlresolvers import reverse_lazy, reverse from django.db.models import Q from django.http import HttpResponse, JsonResponse from django.shortcuts import render, redirect, get_object_or_404 from django.views.ge...
43.038922
241
0.646887
92130bb72cee07136f4bb33e60bcadc5fed02df8
2,143
py
Python
utz/context.py
ryan-williams/jupyter-rc
362d9d758498de317976006ce7dfc65e2bce2c57
[ "MIT" ]
null
null
null
utz/context.py
ryan-williams/jupyter-rc
362d9d758498de317976006ce7dfc65e2bce2c57
[ "MIT" ]
2
2020-11-18T15:36:35.000Z
2021-06-25T18:21:32.000Z
utz/context.py
runsascoded/utz
362d9d758498de317976006ce7dfc65e2bce2c57
[ "MIT" ]
1
2020-06-10T23:14:00.000Z
2020-06-10T23:14:00.000Z
#!/usr/bin/env python # # Context Manager utilities # General/Common imports: from contextlib import AbstractContextManager, contextmanager, suppress # ## `nullcontext` # Define `nullcontext` in a cross-version way: try: # Python ≥3.7 from contextlib import nullcontext except ImportError: # Python <3.7...
25.511905
104
0.614559
3c468cabf3c25f784b8de14a3e4827550e6d4aa5
4,776
py
Python
neutronclient/neutron/v2_0/lb/v2/l7rule.py
slawqo/python-neutronclient
ee08644c5f2424a40c70010dcf0fa2ad84809bfc
[ "Apache-2.0" ]
120
2015-01-07T00:38:58.000Z
2021-12-26T13:05:53.000Z
neutronclient/neutron/v2_0/lb/v2/l7rule.py
slawqo/python-neutronclient
ee08644c5f2424a40c70010dcf0fa2ad84809bfc
[ "Apache-2.0" ]
1
2021-08-11T18:42:30.000Z
2021-08-11T22:25:21.000Z
neutronclient/neutron/v2_0/lb/v2/l7rule.py
slawqo/python-neutronclient
ee08644c5f2424a40c70010dcf0fa2ad84809bfc
[ "Apache-2.0" ]
153
2015-01-05T16:50:50.000Z
2021-09-13T12:01:23.000Z
# Copyright 2016 Radware LTD. # 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 a...
32.053691
78
0.652429
ed576a83a3246414067fe78562c5d05669e1ee11
2,397
py
Python
torchaudio/utils/sox_utils.py
vivekkumar7089/audio
0ea6d10d3cd5cd66b0831e218ac18f6b7d8cab3c
[ "BSD-2-Clause" ]
1
2021-03-16T08:09:20.000Z
2021-03-16T08:09:20.000Z
torchaudio/utils/sox_utils.py
vivekkumar7089/audio
0ea6d10d3cd5cd66b0831e218ac18f6b7d8cab3c
[ "BSD-2-Clause" ]
6
2020-09-22T22:19:09.000Z
2021-06-21T17:37:32.000Z
torchaudio/utils/sox_utils.py
vivekkumar7089/audio
0ea6d10d3cd5cd66b0831e218ac18f6b7d8cab3c
[ "BSD-2-Clause" ]
1
2021-06-16T21:28:57.000Z
2021-06-16T21:28:57.000Z
from typing import List, Dict import torch from torchaudio._internal import module_utils as _mod_utils @_mod_utils.requires_sox() def set_seed(seed: int): """Set libsox's PRNG Args: seed (int): seed value. valid range is int32. See Also: http://sox.sourceforge.net/sox.html """ t...
25.774194
101
0.67501
04e40ee065283437c64ecf479411a62369e7cf74
2,503
py
Python
data/p4VQE/R4/benchmark/startQiskit_noisy391.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy391.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy391.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.505495
118
0.634439
a8ec7dd9cdb4712b923b4d84665896ad7171e613
793
py
Python
CC1002-IntroduccionProgramacion/saludoFunciones.py
jcrucesdeveloper/ProgramacionUChile
af01e6efa885fae6923e9b27c895cc91275c5101
[ "MIT" ]
2
2020-09-02T00:35:33.000Z
2020-09-02T02:33:40.000Z
CC1002-IntroduccionProgramacion/saludoFunciones.py
jcrucesdeveloper/ProgramacionUChile
af01e6efa885fae6923e9b27c895cc91275c5101
[ "MIT" ]
null
null
null
CC1002-IntroduccionProgramacion/saludoFunciones.py
jcrucesdeveloper/ProgramacionUChile
af01e6efa885fae6923e9b27c895cc91275c5101
[ "MIT" ]
null
null
null
# buenosDias: int -> bool # Recibe una hora del dia y dice si corresponde a la manana o no (entre 1 <= x <12) # Ej: buenosDias(12) devuelve False def buenosDias(hora): if hora >= 1 and hora < 12: return True else: return False # tests assert buenosDias(1) == True assert buenosDias(12) == False ...
26.433333
83
0.679697
42966e99163e535d16d81938ac4e04622b703aa1
887
py
Python
hyperparameter_tuning/optimize.py
shruacha1234/autotune
1950e50e2297b47244e2d957a6176c606076d0ad
[ "Apache-2.0" ]
null
null
null
hyperparameter_tuning/optimize.py
shruacha1234/autotune
1950e50e2297b47244e2d957a6176c606076d0ad
[ "Apache-2.0" ]
null
null
null
hyperparameter_tuning/optimize.py
shruacha1234/autotune
1950e50e2297b47244e2d957a6176c606076d0ad
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2020, 2021 Red Hat, IBM Corporation and others. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
27.71875
72
0.754228
7b9141abcea7cc939ecf374ac2683b54cb3ccf58
10,766
py
Python
pybind/slxos/v16r_1_00b/routing_system/ipv6/router/ospf/bfd/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/ipv6/router/ospf/bfd/__init__.py
shivharis/pybind
4e1c6d54b9fd722ccec25546ba2413d79ce337e6
[ "Apache-2.0" ]
null
null
null
pybind/slxos/v16r_1_00b/routing_system/ipv6/router/ospf/bfd/__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...
65.646341
713
0.736299
e68fb4bf22998d1f139b032daa5754ad79e479b8
1,148
py
Python
runway/templates/k8s-cfn-repo/k8s-workers.cfn/local_lookups/bootstrap_value.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/templates/k8s-cfn-repo/k8s-workers.cfn/local_lookups/bootstrap_value.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/templates/k8s-cfn-repo/k8s-workers.cfn/local_lookups/bootstrap_value.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Helper functions for bootstrap actions.""" import botocore def bootstrap_value(value, context, **kwargs): """Return the bootstrap value on creation, otherwise the post_bootstrap. Format of value: <stack>::<bootstrap value>::<post_bootstrap_value> """ try: sta...
31.027027
76
0.641115
f0b96a0715f4269f686f43c122dd72816dc14908
470
py
Python
gym_minigrid/envs/__init__.py
naziah28/gym-minigrid
8ebcf2840da5ebf728e083ed293b92fb38b9cebc
[ "Apache-2.0" ]
null
null
null
gym_minigrid/envs/__init__.py
naziah28/gym-minigrid
8ebcf2840da5ebf728e083ed293b92fb38b9cebc
[ "Apache-2.0" ]
null
null
null
gym_minigrid/envs/__init__.py
naziah28/gym-minigrid
8ebcf2840da5ebf728e083ed293b92fb38b9cebc
[ "Apache-2.0" ]
null
null
null
from gym_minigrid.envs.empty import * from gym_minigrid.envs.multiroom import * from gym_minigrid.envs.fetch import * from gym_minigrid.envs.gotoobject import * from gym_minigrid.envs.gotodoor import * from gym_minigrid.envs.putnear import * from gym_minigrid.envs.playground_v0 import * from gym_minigrid.envs.obstructe...
42.727273
48
0.838298
bae3b4cef699d48c6c0924ed32cf77a2ba7a7634
13,051
py
Python
NKProject-IBEA/src/CMOP5.py
NKanazawa/IterativeNK
6580c0128159dab58f8d967e0023254f4e3e9808
[ "MIT" ]
null
null
null
NKProject-IBEA/src/CMOP5.py
NKanazawa/IterativeNK
6580c0128159dab58f8d967e0023254f4e3e9808
[ "MIT" ]
null
null
null
NKProject-IBEA/src/CMOP5.py
NKanazawa/IterativeNK
6580c0128159dab58f8d967e0023254f4e3e9808
[ "MIT" ]
null
null
null
import array import sys import random import json import subprocess import pandas import numpy import scipy import matplotlib.pyplot as plt import matplotlib.ticker as ticker from math import sqrt from deap import algorithms from deap import base from deap import benchmarks from deap.benchmarks.tools import hypervol...
38.842262
200
0.588997
2aec1604db6476b20d629c1c7625e15fd2833cfb
798
py
Python
terrabot/packets/packet025.py
JuanPotato/terrabot
fc503d0cf0a6bae2c70240dc4012b9d864c9006a
[ "MIT" ]
1
2021-01-22T14:36:17.000Z
2021-01-22T14:36:17.000Z
terrabot/packets/packet025.py
lvm/terrabot
1875c23180b4bd4a40db2f970130e030198d775b
[ "MIT" ]
null
null
null
terrabot/packets/packet025.py
lvm/terrabot
1875c23180b4bd4a40db2f970130e030198d775b
[ "MIT" ]
2
2020-06-11T13:18:20.000Z
2021-11-19T19:59:44.000Z
from . import packet from terrabot.util.streamer import Streamer from terrabot.events.events import Events class Packet25Parser(object): def parse(self, world, player, data, ev_man): streamer = Streamer(data) streamer.next_byte() # Skip packet id id = streamer.next_byte() color = ...
31.92
82
0.657895
b423baffca6ee150169b06146abf026389ee5e4c
35,195
py
Python
manimpp/scene/graph_scene.py
yudhastyawan/manimpp
5bcfa7ba24e368a72f55a3c69364521843b9766d
[ "MIT" ]
null
null
null
manimpp/scene/graph_scene.py
yudhastyawan/manimpp
5bcfa7ba24e368a72f55a3c69364521843b9766d
[ "MIT" ]
null
null
null
manimpp/scene/graph_scene.py
yudhastyawan/manimpp
5bcfa7ba24e368a72f55a3c69364521843b9766d
[ "MIT" ]
null
null
null
import itertools as it from manimpp.animation.creation import Write, DrawBorderThenFill, ShowCreation from manimpp.animation.transform import Transform from manimpp.animation.update import UpdateFromAlphaFunc from manimpp.constants import * from manimpp.mobject.functions import ParametricFunction from manimpp.mobject....
33.140301
105
0.573888
4eb12e399a596f361ddeaa030848d4e7ac58457a
167
py
Python
hostproject/agendjang/admin.py
Guilouf/AgenDjang
bc6c0afcf3f8b71b4bac9a4477294329a729faeb
[ "Apache-2.0" ]
null
null
null
hostproject/agendjang/admin.py
Guilouf/AgenDjang
bc6c0afcf3f8b71b4bac9a4477294329a729faeb
[ "Apache-2.0" ]
24
2017-11-19T16:42:19.000Z
2021-12-28T14:41:23.000Z
hostproject/agendjang/admin.py
Guilouf/AgenDjang
bc6c0afcf3f8b71b4bac9a4477294329a729faeb
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from agendjang import models admin.site.register(models.Task) admin.site.register(models.Tag) admin.site.register(models.DateRange)
20.875
37
0.826347
9258c1e78fdba6a62c5d41f1faeda60c8046c43e
4,506
py
Python
google/cloud/security/privateca_v1beta1/__init__.py
FrodoTheTrue/python-security-private-ca
170f9be92448278064fd58f2a9302ca2f8c43b04
[ "Apache-2.0" ]
3
2021-10-07T01:59:57.000Z
2022-01-24T12:20:36.000Z
google/cloud/security/privateca_v1beta1/__init__.py
FrodoTheTrue/python-security-private-ca
170f9be92448278064fd58f2a9302ca2f8c43b04
[ "Apache-2.0" ]
51
2020-10-02T21:56:32.000Z
2022-03-10T15:22:11.000Z
google/cloud/security/privateca_v1beta1/__init__.py
FrodoTheTrue/python-security-private-ca
170f9be92448278064fd58f2a9302ca2f8c43b04
[ "Apache-2.0" ]
7
2020-10-02T21:44:35.000Z
2022-01-29T08:13:26.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
40.594595
85
0.825344
2a9a030979a987dc36e4aa426c33a6b4a982a300
195
py
Python
parametersConfig.py
fossabot/pythonhack-2016
59840ad1e8d9b0365994dd08ccf483854353f1a5
[ "Apache-2.0" ]
2
2017-04-07T09:44:17.000Z
2020-01-12T22:20:42.000Z
parametersConfig.py
fossabot/pythonhack-2016
59840ad1e8d9b0365994dd08ccf483854353f1a5
[ "Apache-2.0" ]
null
null
null
parametersConfig.py
fossabot/pythonhack-2016
59840ad1e8d9b0365994dd08ccf483854353f1a5
[ "Apache-2.0" ]
2
2016-10-09T10:47:48.000Z
2018-12-16T17:18:23.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Configuración PostgreSQL host = 'localhost' bbdd = 'pythonHack' tablaBBDD = 'cardAnalytics' usuario = 'postgres' password = '' # Establece la password
21.666667
37
0.697436
d85cf0a25cf520ae8e8ff78cc1f19857b881c367
1,158
py
Python
administration/src/views/core_views.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
null
null
null
administration/src/views/core_views.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
1
2019-05-13T16:19:36.000Z
2019-05-19T11:21:22.000Z
administration/src/views/core_views.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
null
null
null
from .. import app from ..services.service_manager import ServiceManager from ..services.storage_manager import StorageManager from ..services.serializers import JSONSerializer as jserial from flask import jsonify, request, Response, send_file service_manager = ServiceManager() ServiceManager.start_db(drop_create=Fals...
29.692308
78
0.693437
127682b231ff74811fa29f7b175de04b84a19f7c
10,314
py
Python
TreeDistance/domvrt/test_tree.py
CoffeeIO/DOM-based-VRT
c73dd8ca161e4bbb0eac1560b79a98a42c0a0e98
[ "BSD-3-Clause" ]
null
null
null
TreeDistance/domvrt/test_tree.py
CoffeeIO/DOM-based-VRT
c73dd8ca161e4bbb0eac1560b79a98a42c0a0e98
[ "BSD-3-Clause" ]
null
null
null
TreeDistance/domvrt/test_tree.py
CoffeeIO/DOM-based-VRT
c73dd8ca161e4bbb0eac1560b79a98a42c0a0e98
[ "BSD-3-Clause" ]
null
null
null
# Standard python import json, random, collections, os, requests, time, signal # Dependencies # This package from domvrt.parser_mapping import ParserMapping from domvrt.html_tree import HtmlTree from domvrt.node_tree import NodeTree from domvrt.test_tree_generator import TestTreeGenerator from domvrt.test_tree_resource...
31.735385
138
0.612953
34e1e1f4290292a23532455b149611cc3c3b750c
560
py
Python
doc/sphinxext/flow.py
nordme/mnefun
c24630ba853df6bd0c200a7c52a216d34c0b05aa
[ "BSD-3-Clause" ]
7
2015-06-11T23:21:00.000Z
2022-03-24T18:16:18.000Z
doc/sphinxext/flow.py
nordme/mnefun
c24630ba853df6bd0c200a7c52a216d34c0b05aa
[ "BSD-3-Clause" ]
253
2015-05-21T17:05:16.000Z
2022-02-08T22:39:16.000Z
doc/sphinxext/flow.py
nordme/mnefun
c24630ba853df6bd0c200a7c52a216d34c0b05aa
[ "BSD-3-Clause" ]
23
2015-05-15T21:59:14.000Z
2021-04-29T23:14:10.000Z
import os.path as op from sphinx.util import logging, console from mnefun._flow import _create_flowchart logger = logging.getLogger(__name__) def setup(app): """Setup extension.""" app.connect('builder-inited', run) return {'parallel_read_safe': True, 'parallel_write_safe': True, '...
28
70
0.673214
b1c5ba38a9f071efb1e80e18cb966e873ee4d9ad
5,999
py
Python
docs/source/conf.py
wolfv/midicontrols
48cbaa0858fc5b5dfb8e5a52a32ba4c1fadd2e66
[ "BSD-3-Clause" ]
27
2018-12-27T11:48:32.000Z
2021-12-01T22:48:46.000Z
docs/source/conf.py
wolfv/midicontrols
48cbaa0858fc5b5dfb8e5a52a32ba4c1fadd2e66
[ "BSD-3-Clause" ]
13
2018-12-26T23:56:49.000Z
2022-02-12T10:52:57.000Z
docs/source/conf.py
wolfv/midicontrols
48cbaa0858fc5b5dfb8e5a52a32ba4c1fadd2e66
[ "BSD-3-Clause" ]
9
2019-01-30T15:58:10.000Z
2021-06-13T12:49:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # ipymidicontrols documentation build configuration file # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a...
29.995
82
0.693616
e31f5f66e7e7d014bb8d82e3c5f0626e00b8880f
2,891
py
Python
art/art_T1218.005-8.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218.005-8.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
null
null
null
art/art_T1218.005-8.py
blackbotinc/artic2-atomics
83f6ae1269c23f29b361a974455011df80c61945
[ "Apache-2.0" ]
1
2022-03-31T11:07:56.000Z
2022-03-31T11:07:56.000Z
from blackbot.core.utils import get_path_in_package from blackbot.core.wss.atomic import Atomic from terminaltables import SingleTable import os import json class Atomic(Atomic): def __init__(self): self.name = 'DefenseEvasion/T1218.005-8' self.controller_type = '' self.external_id = 'T1218...
37.545455
104
0.511934
b7a1b690f9ca30a4ba022297f17af6a57a4cfd24
79,522
py
Python
discord/guild.py
mitsuno3/discord.py
59aa1a0e5f785116f2d21204e755071c38daccca
[ "MIT" ]
null
null
null
discord/guild.py
mitsuno3/discord.py
59aa1a0e5f785116f2d21204e755071c38daccca
[ "MIT" ]
null
null
null
discord/guild.py
mitsuno3/discord.py
59aa1a0e5f785116f2d21204e755071c38daccca
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
34.365601
141
0.597835
45442241da41992a757a682bbcde88bf37dd766c
29
py
Python
src/algebra/__init__.py
numpydb/NumPyDB
470d32b9226dab8c864309f33e12b252f1fae95b
[ "MIT" ]
null
null
null
src/algebra/__init__.py
numpydb/NumPyDB
470d32b9226dab8c864309f33e12b252f1fae95b
[ "MIT" ]
1
2020-09-01T06:14:48.000Z
2020-09-01T06:14:48.000Z
src/algebra/__init__.py
vecdb/vecdb
470d32b9226dab8c864309f33e12b252f1fae95b
[ "MIT" ]
null
null
null
from .algebra import Algebra
14.5
28
0.827586
6dc3cb0f2b6150bb26d0376a324ce0236545aaf7
691
py
Python
tkinterserver.py
Hassan0072/CP_HS99
365ecd119e19fcf2c69ccaef42b278a1a9256741
[ "MIT" ]
null
null
null
tkinterserver.py
Hassan0072/CP_HS99
365ecd119e19fcf2c69ccaef42b278a1a9256741
[ "MIT" ]
3
2019-05-05T16:30:58.000Z
2019-05-11T00:23:02.000Z
tkinterserver.py
Hassan0072/CP_HS99
365ecd119e19fcf2c69ccaef42b278a1a9256741
[ "MIT" ]
1
2019-04-21T18:46:01.000Z
2019-04-21T18:46:01.000Z
from tkinter import * root = Tk() topFrame= Frame(root) topFrame.pack() bottomFrame = Frame(root) bottomFrame.pack(side=BOTTOM) # label_1=Label(root, text="IP") # label_2=Label(root, text="Port") # entry_1=Entry(root) # entry_2=Entry(root) # label_1.grid(row=0) # label_2.grid(row=1) # entry_1.grid(row=0,column=1) ...
20.939394
56
0.713459
f923dd11797e87a9f7ea1efda26994b25215bf4b
270
py
Python
tests/artificial/transf_Logit/trend_ConstantTrend/cycle_7/ar_12/test_artificial_1024_Logit_ConstantTrend_7_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Logit/trend_ConstantTrend/cycle_7/ar_12/test_artificial_1024_Logit_ConstantTrend_7_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Logit/trend_ConstantTrend/cycle_7/ar_12/test_artificial_1024_Logit_ConstantTrend_7_12_0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 0, ar_order = 12);
38.571429
165
0.733333
c693b02159d5ef31abcd4f53a77e94b7c5845264
477
py
Python
setup.py
terentjew-alexey/untwiner
6018f55db60752f5e31a349944e6728824055eb3
[ "Apache-2.0" ]
null
null
null
setup.py
terentjew-alexey/untwiner
6018f55db60752f5e31a349944e6728824055eb3
[ "Apache-2.0" ]
null
null
null
setup.py
terentjew-alexey/untwiner
6018f55db60752f5e31a349944e6728824055eb3
[ "Apache-2.0" ]
1
2020-11-25T12:36:51.000Z
2020-11-25T12:36:51.000Z
#!/usr/bin/env python from setuptools import setup setup( name='untwiner', version='0.1.0', description='Python package for navigating the stories ' 'created in the Twine 2 program.', url='https://github.com/terentjew-alexey/untwiner', license='Apache 2.0', author='Aleksey Ter...
22.714286
60
0.631027
f8924a14af710df4ea0ba2d02dc1794e04af4c74
1,016
py
Python
asdf/commands/tests/test_remove_hdu.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
asdf/commands/tests/test_remove_hdu.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
asdf/commands/tests/test_remove_hdu.py
larrybradley/asdf
b1e0fe6ab7aa319d5939ec2aa78d23822abf6bd4
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- import os import numpy as np import pytest astropy = pytest.importorskip('astropy') from astropy.io import fits from asdf.fits_embed import AsdfInFits from .. import remove_hdu def test_remove_hdu(tmpdir): hdulist = fits....
21.617021
63
0.627953
7b7cc246ccab82ec0a16f34422491ebc22faba13
778
py
Python
Chapter12/example4.py
DeeMATT/AdvancedPythonProgramming
97091dae4f177fd2c06b20265be2aedf9d1c41e7
[ "MIT" ]
66
2018-11-21T02:07:16.000Z
2021-11-08T13:13:31.000Z
Chapter12/example4.py
DeeMATT/AdvancedPythonProgramming
97091dae4f177fd2c06b20265be2aedf9d1c41e7
[ "MIT" ]
2
2020-03-11T19:56:39.000Z
2021-11-15T14:07:05.000Z
Chapter12/example4.py
DeeMATT/AdvancedPythonProgramming
97091dae4f177fd2c06b20265be2aedf9d1c41e7
[ "MIT" ]
58
2018-11-03T14:06:10.000Z
2022-03-17T14:06:55.000Z
# ch05/example4.py import threading import requests import time class MyThread(threading.Thread): def __init__(self, url): threading.Thread.__init__(self) self.url = url self.result = None def run(self): res = requests.get(self.url) self.result = f'{self.url}: {res.tex...
19.948718
50
0.627249
806e1ebd22c56c7d0ea7675aa48673d8b42fb749
4,698
py
Python
tablestore/retry.py
leafcoder/aliyun-tablestore-python-sdk
2d76999c2eb466a9a570da2a9187b4d3b6ed1092
[ "MIT" ]
68
2016-05-20T11:22:57.000Z
2022-02-18T16:18:22.000Z
tablestore/retry.py
leafcoder/aliyun-tablestore-python-sdk
2d76999c2eb466a9a570da2a9187b4d3b6ed1092
[ "MIT" ]
30
2016-06-02T10:13:31.000Z
2022-01-04T04:15:47.000Z
tablestore/retry.py
leafcoder/aliyun-tablestore-python-sdk
2d76999c2eb466a9a570da2a9187b4d3b6ed1092
[ "MIT" ]
50
2016-06-03T06:37:03.000Z
2022-03-31T07:24:08.000Z
# -*- coding: utf8 -*- import random import math class RetryPolicy(object): """ ```RetryPolicy```是重试策略的接口,包含2个未实现的方法和它们的参数列表。要实现一个重试策略, 继承这个类并实现它的2个方法。 """ def should_retry(self, retry_times, exception, api_name): raise NotImplementedError() def get_retry_delay(self, retry_times, exce...
28.646341
125
0.663474
cdaf26f2c74efe59feee2d6ee8d25e9ec951ef8d
2,955
py
Python
gooch_maf_tools/commands/analysis/split_maf_with_counts.py
kotoroshinoto/TCGA_MAF_Analysis
48e9293015d47ee0f97ea9707896798b84f14feb
[ "Unlicense" ]
null
null
null
gooch_maf_tools/commands/analysis/split_maf_with_counts.py
kotoroshinoto/TCGA_MAF_Analysis
48e9293015d47ee0f97ea9707896798b84f14feb
[ "Unlicense" ]
2
2017-03-15T17:55:43.000Z
2017-03-15T17:57:50.000Z
gooch_maf_tools/commands/analysis/split_maf_with_counts.py
kotoroshinoto/TCGA_MAF_Analysis
48e9293015d47ee0f97ea9707896798b84f14feb
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import click import os import sys from gooch_maf_tools.formats import MAF from gooch_maf_tools.util.MAFSampleCountsList import MAFSampleCountsList __author__ = 'mgooch' def generate_file_handles(maf, bounds, prefix=None): handles = list() for i in range(len(bounds)): bounds[i] = int(bounds...
35.60241
103
0.691709
d604e45e283f26ec0fca231f8dfc363cd8f7fa03
3,447
py
Python
PYTHON/Condition Expressions/if-else-demo-2.py
YakazaSTG/Python-Basics
35cbc9a7b30dd985922bb288d67a1cf10d4da40c
[ "MIT" ]
null
null
null
PYTHON/Condition Expressions/if-else-demo-2.py
YakazaSTG/Python-Basics
35cbc9a7b30dd985922bb288d67a1cf10d4da40c
[ "MIT" ]
null
null
null
PYTHON/Condition Expressions/if-else-demo-2.py
YakazaSTG/Python-Basics
35cbc9a7b30dd985922bb288d67a1cf10d4da40c
[ "MIT" ]
null
null
null
''' 1- Girilen bir sayının 0-100 arasında olup olmadığını kontrol ediniz. sayi = float(input('sayı: ')) if (sayi > 0) and (sayi<=100): print('sayı 0-100 arasında.') else: print('sayı 0-100 arasında değildir.') ''' ''' 2- Girilen bir sayının pozitif çift sayı olup olmadığını kontrol ediniz. s...
25.917293
122
0.62141
702e255a07c0e1c500d6e3c2a7302b51cf876e20
933
py
Python
jcasts/shared/decorators.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
13
2021-09-17T07:41:00.000Z
2022-02-10T10:00:48.000Z
jcasts/shared/decorators.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
167
2021-07-17T09:41:38.000Z
2021-08-31T06:03:34.000Z
jcasts/shared/decorators.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
null
null
null
from __future__ import annotations import functools from typing import Callable from django.conf import settings from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.views import redirect_to_login from django.core.exceptions import PermissionDenied from django.http import HttpRequest, HttpRes...
30.096774
71
0.709539
8cdd7dcdb86df635f912010df31f833de5304327
968
py
Python
adv/w_elisanne.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/w_elisanne.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/w_elisanne.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.a import * def module(): return Wedding_Elisanne class Wedding_Elisanne(Adv): comment = '2in1' a1 = ('sp',0.08) a3 = ('bc',0.13) conf = {} conf['slots.a'] = The_Shining_Overlord()+United_by_One_Vision() conf['acl'] = """ `dragon.act("c3 s end"...
26.888889
102
0.606405
3d0ea05c943789105c0e36703bc2fc582941e61e
25,181
py
Python
test/functional/test_framework/test_node.py
funexcoin/funexcoin
149c9328f420e3cd711ee63b91f2d51308445da2
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
funexcoin/funexcoin
149c9328f420e3cd711ee63b91f2d51308445da2
[ "MIT" ]
null
null
null
test/functional/test_framework/test_node.py
funexcoin/funexcoin
149c9328f420e3cd711ee63b91f2d51308445da2
[ "MIT" ]
1
2020-09-15T08:52:14.000Z
2020-09-15T08:52:14.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Bitcoin Core Developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Class for funexcoind node under test""" import contextlib import decimal import errno from enum import...
43.19211
211
0.62706
b8b44e20f1ae2d37b9167098075481bc2c385812
479
py
Python
program1.py
Ndarrr07/labpy03
86a78e5036732cdb636a5a77bb443fec3dfa0699
[ "Xnet", "X11" ]
null
null
null
program1.py
Ndarrr07/labpy03
86a78e5036732cdb636a5a77bb443fec3dfa0699
[ "Xnet", "X11" ]
null
null
null
program1.py
Ndarrr07/labpy03
86a78e5036732cdb636a5a77bb443fec3dfa0699
[ "Xnet", "X11" ]
null
null
null
a = 100000000 for i in range(1, 9): if (i >= 1 and i <= 2): b = a * 0 print("Laba bulan ke -", i, " = ", b) if (i >= 3 and i <= 4): c = a * 0.1 print("Laba bulan ke -", i, " = ", c) if (i >= 5 and i <= 7): d = a * 0.5 print("Laba bulan ke -", i, " = ", d) ...
29.9375
45
0.354906
e6f3089b6e85a73a3b9cc33c21f9fa24bf5d5174
412
py
Python
gym/spaces/__init__.py
adarshsehgal/DeepLearning
5b7207d814b89ac63acf9dfd45847aa59f867714
[ "MIT" ]
4
2020-01-17T00:46:13.000Z
2021-12-20T09:09:16.000Z
gym_customize/python2/gym/spaces/__init__.py
KuangenZhang/hybrid-zero-RL-rabbit
1b67d4082e279205e676972932345c3e83227538
[ "MIT" ]
1
2019-11-12T22:27:12.000Z
2019-11-12T22:27:12.000Z
gym_customize/python2/gym/spaces/__init__.py
KuangenZhang/hybrid-zero-RL-rabbit
1b67d4082e279205e676972932345c3e83227538
[ "MIT" ]
3
2020-01-17T00:46:17.000Z
2020-07-20T09:48:11.000Z
from gym.spaces.box import Box from gym.spaces.discrete import Discrete from gym.spaces.multi_discrete import MultiDiscrete, DiscreteToMultiDiscrete, BoxToMultiDiscrete from gym.spaces.multi_binary import MultiBinary from gym.spaces.prng import seed from gym.spaces.tuple_space import Tuple __all__ = ["Box", "Discrete"...
45.777778
119
0.822816