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
ff80adc369c47d43fabfa8cf7cbfcf649b9bfff8
8,538
py
Python
tests/test_modeling_tf_auto.py
theainerd/transformers
f7328de46dbeda4992a093a0501932bf0fc7b76f
[ "Apache-2.0" ]
34
2021-07-05T02:44:31.000Z
2022-03-28T14:39:57.000Z
tests/test_modeling_tf_auto.py
theainerd/transformers
f7328de46dbeda4992a093a0501932bf0fc7b76f
[ "Apache-2.0" ]
3
2021-07-22T15:49:44.000Z
2022-03-19T08:46:27.000Z
tests/test_modeling_tf_auto.py
theainerd/transformers
f7328de46dbeda4992a093a0501932bf0fc7b76f
[ "Apache-2.0" ]
6
2021-07-05T02:44:32.000Z
2022-02-14T10:10:13.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Team. 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 requir...
42.477612
118
0.715273
180eb60091293fb6ebc8ea2454a6d4ccf6e11be1
1,424
py
Python
pyprobml-master/examples/patsyCategoricalDemo.py
storopoli/Machine-Learning-Probalistic
f8617e7b81f4d6c71e72edc40ba11ac746794a95
[ "MIT" ]
1
2019-03-04T05:43:10.000Z
2019-03-04T05:43:10.000Z
Old/examples/patsyCategoricalDemo.py
tywang89/pyprobml
82cfdcb8daea653cda8f77e8737e585418476ca7
[ "MIT" ]
null
null
null
Old/examples/patsyCategoricalDemo.py
tywang89/pyprobml
82cfdcb8daea653cda8f77e8737e585418476ca7
[ "MIT" ]
null
null
null
from patsy import dmatrix, demo_data # demo of how patsy handles categorical variables # Patsy notation is described here #http://statsmode#ls.sourceforge.net/devel/example_formulas.html #http://patsy.readthedocs.org/en/latest/categorical-coding.html data = demo_data("a", nlevels=3) dmatrix("a", data) ''' DesignMatr...
20.342857
64
0.443118
dbc93155e9fd809ac724e91a8766b1c19d3b9c30
1,001
py
Python
webdriver/tests/bidi/browsing_context/get_tree/invalid.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
null
null
null
webdriver/tests/bidi/browsing_context/get_tree/invalid.py
BasixKOR/wpt
aa27d567c10dcdb2aea6884d5155dfaaa177a800
[ "BSD-3-Clause" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
webdriver/tests/bidi/browsing_context/get_tree/invalid.py
clopez/wpt
4ba8a4a1f41e166289c0a7feaa5665e1385e90f3
[ "BSD-3-Clause" ]
null
null
null
import pytest import webdriver.bidi.error as error pytestmark = pytest.mark.asyncio @pytest.mark.parametrize("value", [False, "foo", {}, []]) async def test_params_max_depth_invalid_type(bidi_session, value): with pytest.raises(error.InvalidArgumentException): await bidi_session.browsing_context.get_tree...
35.75
69
0.775225
818b1634563c001479063caf87731133dad76650
17,121
py
Python
test/test_shared.py
facebookresearch/mpcfp
cb29797aa4f2ce524dd584ecf47c863fd9f414a6
[ "MIT" ]
5
2020-11-18T23:55:17.000Z
2022-01-14T07:15:35.000Z
test/test_shared.py
facebookresearch/mpcfp
cb29797aa4f2ce524dd584ecf47c863fd9f414a6
[ "MIT" ]
null
null
null
test/test_shared.py
facebookresearch/mpcfp
cb29797aa4f2ce524dd584ecf47c863fd9f414a6
[ "MIT" ]
2
2021-11-06T14:06:13.000Z
2022-01-14T07:16:29.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # dependencies: import itertools import sys import torch import unittest import torch.distributed as dist import sys ...
40.667458
79
0.560423
450285912cca3d72570ee9f09bfd66185fd0d474
489
py
Python
data/scripts/templates/object/tangible/ship/crafted/repair/shared_repair_kit_weapon_capacitor.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/ship/crafted/repair/shared_repair_kit_weapon_capacitor.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/ship/crafted/repair/shared_repair_kit_weapon_capacitor.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/ship/crafted/repair/shared_repair_kit_weapon_capacitor.iff" result....
28.764706
95
0.746421
b74f76f4568c3bbc215c3c2468a8833040029c2c
511
py
Python
mlfinlab/bet_sizing/__init__.py
scibol/mlfinlab
3c80f269bc68b8cb9bcf863ceb3dc77fc14b6984
[ "BSD-3-Clause" ]
8
2020-04-19T08:09:34.000Z
2022-03-30T20:49:40.000Z
mlfinlab/bet_sizing/__init__.py
scibol/mlfinlab
3c80f269bc68b8cb9bcf863ceb3dc77fc14b6984
[ "BSD-3-Clause" ]
1
2019-07-24T17:52:30.000Z
2019-07-24T17:52:30.000Z
mlfinlab/bet_sizing/__init__.py
scibol/mlfinlab
3c80f269bc68b8cb9bcf863ceb3dc77fc14b6984
[ "BSD-3-Clause" ]
8
2020-08-09T02:25:04.000Z
2022-03-20T15:08:11.000Z
""" Functions derived from Chapter 10: Bet Sizing Only the highest-level user functions are included in the __init__ file. """ from mlfinlab.bet_sizing.bet_sizing import (bet_size_probability, bet_size_dynamic, bet_size_budget, bet_size_reserve, confirm_and_cast_to_df, get_c...
51.1
118
0.702544
5d50fbf53f1d59f1bfe6ce5e17de6e05982c38cf
1,794
py
Python
django_comments_xtd/management/commands/populate_xtdcomments.py
jgourmelen/django-comments-xtd
2cd6dd0e5ab253643b1d4f05264a207a9255f0b0
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/management/commands/populate_xtdcomments.py
jgourmelen/django-comments-xtd
2cd6dd0e5ab253643b1d4f05264a207a9255f0b0
[ "BSD-2-Clause" ]
1
2020-10-14T02:58:22.000Z
2020-10-14T02:58:22.000Z
django_comments_xtd/management/commands/populate_xtdcomments.py
jgourmelen/django-comments-xtd
2cd6dd0e5ab253643b1d4f05264a207a9255f0b0
[ "BSD-2-Clause" ]
null
null
null
import sys from django.db import connections from django.db.utils import ConnectionDoesNotExist, IntegrityError from django.core.management.base import BaseCommand from django_comments.models import Comment from django_comments_xtd.models import XtdComment __all__ = ['Command'] class Command(BaseCommand): he...
36.612245
77
0.557414
9a3aaadf8e98361d59e4c330e2878d055c06b628
165
py
Python
python/programme/5-average-of-numbers/average.py
yacine-zitouni/codinasion
7037234874fa18c900573a6e921f1119273bbfe5
[ "MIT" ]
null
null
null
python/programme/5-average-of-numbers/average.py
yacine-zitouni/codinasion
7037234874fa18c900573a6e921f1119273bbfe5
[ "MIT" ]
null
null
null
python/programme/5-average-of-numbers/average.py
yacine-zitouni/codinasion
7037234874fa18c900573a6e921f1119273bbfe5
[ "MIT" ]
null
null
null
# Write a Python programme to calculate the average of numbers. import statistics n = list(map(int, input("Input: ").split())) print('Output:', statistics.mean(n))
27.5
63
0.721212
68107dce840d3ce4db1baef915c0b5f71a034008
3,130
py
Python
displayingtime/settings.py
rmmo14/time_display
117ace5e381b1bc64435d8b0ba9460d531d2af46
[ "MIT" ]
null
null
null
displayingtime/settings.py
rmmo14/time_display
117ace5e381b1bc64435d8b0ba9460d531d2af46
[ "MIT" ]
null
null
null
displayingtime/settings.py
rmmo14/time_display
117ace5e381b1bc64435d8b0ba9460d531d2af46
[ "MIT" ]
null
null
null
""" Django settings for displayingtime 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/ """ import ...
25.655738
91
0.697764
e52aef7388d2e813d5c005a6416c13a2fcfde435
4,108
py
Python
addModels.py
kursatbakis/cmpe492project
bb882ac3febada05824e407e7d573a08b4232ee8
[ "MIT" ]
null
null
null
addModels.py
kursatbakis/cmpe492project
bb882ac3febada05824e407e7d573a08b4232ee8
[ "MIT" ]
null
null
null
addModels.py
kursatbakis/cmpe492project
bb882ac3febada05824e407e7d573a08b4232ee8
[ "MIT" ]
null
null
null
from scheduler.utils import get_db_collection import random def removeThreeBlockSlots(): collection = get_db_collection('time_slot') collection.delete_many({'length': 3}) def addSlots(): collection = get_db_collection('time_slot') collection.delete_many({}) days = ['MONDAY', 'TUESDAY', '...
41.494949
80
0.50073
043701a024bdab7614cdcaa1d50f8bcc0945028b
30,082
py
Python
toontown/toonbase/ToontownGlobals.py
MasterLoopyBM/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
1
2020-02-07T18:15:12.000Z
2020-02-07T18:15:12.000Z
toontown/toonbase/ToontownGlobals.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
null
null
null
toontown/toonbase/ToontownGlobals.py
TrueBlueDogemon/Toontown
ebed7fc3f2ef06a529cf02eda7ab46361aceef9d
[ "MIT" ]
2
2020-11-08T03:38:35.000Z
2021-09-02T07:03:47.000Z
import TTLocalizer from otp.otpbase.OTPGlobals import * from direct.showbase.PythonUtil import Enum, invertDict from pandac.PandaModules import BitMask32, Vec4 from toontown.estate import HouseGlobals MapHotkeyOn = 'alt' MapHotkeyOff = 'alt-up' MapHotkey = 'alt' AccountDatabaseChannelId = 4008 ToonDatabaseChannelId = 4...
17.581531
220
0.704275
8b5f5eaff8daad3dcb40a1a1a9ed661f477e06cc
253
py
Python
manage.py
leviplj/militar
1558a4909d86867058241595c77efd6a11cbae66
[ "MIT" ]
null
null
null
manage.py
leviplj/militar
1558a4909d86867058241595c77efd6a11cbae66
[ "MIT" ]
null
null
null
manage.py
leviplj/militar
1558a4909d86867058241595c77efd6a11cbae66
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aditamento.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23
74
0.774704
1658eab4bd63a5ecebe0cfaf5a2fffede1dd6d82
15,781
py
Python
tensorflow/python/kernel_tests/split_op_test.py
chenzhengda/tensorflow
8debb698097670458b5f21d728bc6f734a7b5a53
[ "Apache-2.0" ]
74
2020-07-06T17:11:39.000Z
2022-01-28T06:31:28.000Z
tensorflow/python/kernel_tests/split_op_test.py
chenzhengda/tensorflow
8debb698097670458b5f21d728bc6f734a7b5a53
[ "Apache-2.0" ]
9
2020-10-13T23:25:29.000Z
2022-02-10T06:54:48.000Z
tensorflow/python/kernel_tests/split_op_test.py
chenzhengda/tensorflow
8debb698097670458b5f21d728bc6f734a7b5a53
[ "Apache-2.0" ]
12
2020-07-08T07:27:17.000Z
2021-12-27T08:54:27.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.396594
80
0.673025
b363cac669558975725f1f4438e462bcb57a0fc1
1,811
py
Python
aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/AddSecurityGroupRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/AddSecurityGroupRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-ehpc/aliyunsdkehpc/request/v20180412/AddSecurityGroupRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.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...
36.22
74
0.770845
af47902753acaadd555731e6d584a5e083044f7e
303
py
Python
datamaps/admin.py
rochapps/django-datamaps
74d50077d31c79095122968bc3c2fde9628da69a
[ "BSD-2-Clause" ]
3
2016-07-13T17:19:12.000Z
2017-09-07T01:49:48.000Z
datamaps/admin.py
rochapps/django-datamaps
74d50077d31c79095122968bc3c2fde9628da69a
[ "BSD-2-Clause" ]
22
2015-09-20T14:00:16.000Z
2021-06-10T20:08:25.000Z
datamaps/admin.py
rochapps/django-datamaps
74d50077d31c79095122968bc3c2fde9628da69a
[ "BSD-2-Clause" ]
6
2015-12-14T21:05:01.000Z
2019-11-02T19:35:24.000Z
from django.contrib import admin from .models import Country, Scope class CountryAdmin(admin.ModelAdmin): list_display = ('name', 'scope', 'color', 'lat', 'lon', ) list_per_page = 10 search_fields = ["name", "code"] admin.site.register(Country, CountryAdmin) admin.site.register(Scope)
21.642857
61
0.706271
c2ac8bb71dde99d797db82cff33a8c8cafd5c35c
5,156
py
Python
bgx/families/settings/bgx_settings/processor/main.py
sparsov/DGT-Kawartha-demo
edfbc18f2c70e813805ec23c28fbc35bf7866ffc
[ "Apache-2.0" ]
null
null
null
bgx/families/settings/bgx_settings/processor/main.py
sparsov/DGT-Kawartha-demo
edfbc18f2c70e813805ec23c28fbc35bf7866ffc
[ "Apache-2.0" ]
10
2020-05-12T06:58:15.000Z
2022-02-26T23:59:35.000Z
bgx/families/settings/bgx_settings/processor/main.py
DGT-Network/DGT-Mississauga
52b5f1f4015db2aa7196e727a25b399de5fbf3c3
[ "Apache-2.0" ]
1
2021-01-12T21:38:01.000Z
2021-01-12T21:38:01.000Z
# Copyright 2017 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
31.439024
80
0.691234
2b19649b06249fd1a393927830b89b877a30bdd7
265
py
Python
disassemble.py
JHU-PL-Lab/representation-types
8805849eaa793692aada84c2c49fa227ed8c6387
[ "CC-BY-4.0" ]
null
null
null
disassemble.py
JHU-PL-Lab/representation-types
8805849eaa793692aada84c2c49fa227ed8c6387
[ "CC-BY-4.0" ]
null
null
null
disassemble.py
JHU-PL-Lab/representation-types
8805849eaa793692aada84c2c49fa227ed8c6387
[ "CC-BY-4.0" ]
null
null
null
import sys import importlib.util from dis import dis src_file = sys.argv[1] module_spec = importlib.util.spec_from_file_location("unknown.module", src_file) module = importlib.util.module_from_spec(module_spec) module_spec.loader.exec_module(module) dis(module)
22.083333
80
0.818868
9169f1de3c9221d2cbc054026129f2617571f0eb
664
py
Python
puskesmas_app/migrations/0012_auto_20180625_1500.py
kurniantoska/medicalwebapp_project
a2e36a44b598ad2989c207f950a89c02d987e00d
[ "BSD-3-Clause" ]
1
2019-10-22T02:12:49.000Z
2019-10-22T02:12:49.000Z
puskesmas_app/migrations/0012_auto_20180625_1500.py
kurniantoska/medicalwebapp_project
a2e36a44b598ad2989c207f950a89c02d987e00d
[ "BSD-3-Clause" ]
3
2020-06-05T18:30:35.000Z
2021-06-10T20:31:09.000Z
puskesmas_app/migrations/0012_auto_20180625_1500.py
kurniantoska/medicalwebapp_project
a2e36a44b598ad2989c207f950a89c02d987e00d
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-25 07:00 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('puskesmas_app', '0011_auto_20180625_1458'), ] operations = [ migrations.AlterField( ...
33.2
264
0.653614
7e287e9d8e1c08f66aedfdd5e3a6cb377ca3a4b5
993
py
Python
src/read_csv.py
jmarca/initial-solution
61766ef4dff6f1405fbaf9d13e271d13fda33ad7
[ "Apache-2.0" ]
6
2019-05-30T17:55:02.000Z
2021-03-17T11:45:38.000Z
src/read_csv.py
jmarca/initial-solution
61766ef4dff6f1405fbaf9d13e271d13fda33ad7
[ "Apache-2.0" ]
null
null
null
src/read_csv.py
jmarca/initial-solution
61766ef4dff6f1405fbaf9d13e271d13fda33ad7
[ "Apache-2.0" ]
7
2019-07-04T02:05:48.000Z
2021-03-17T11:47:32.000Z
"""Read in the problem configuration from CSV""" import pandas as pd import numpy as np import re def load_demand_from_csv(filename): """extract a usable data structure from a csv file Args: filename (str): the input csv file to read. will be read with pandas.read_csv(filename) Returns: a panda...
26.837838
95
0.703927
389407f598cb521f33869b2c89cff70a7d3468f5
10,253
py
Python
docs/conf.py
SimeonSimjanovski/RP2018-19
10d548a28ab5883666b9fdf9f838665c384d86a4
[ "MIT" ]
3
2018-05-03T05:08:56.000Z
2021-09-29T12:54:07.000Z
docs/conf.py
SimeonSimjanovski/RP2018-19
10d548a28ab5883666b9fdf9f838665c384d86a4
[ "MIT" ]
null
null
null
docs/conf.py
SimeonSimjanovski/RP2018-19
10d548a28ab5883666b9fdf9f838665c384d86a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # M-LOOP documentation build configuration file, created by # sphinx-quickstart on Wed Aug 24 11:34:47 2016. # # 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 # aut...
32.446203
95
0.721545
04f3b997adaf2352fc40cf3e349b0ef870b9c40d
278
py
Python
Modulo-01/ex028/ex028.py
Matheus-Henrique-Burey/Curso-de-Python
448aebaab96527affa1e45897a662bb0407c11c6
[ "MIT" ]
null
null
null
Modulo-01/ex028/ex028.py
Matheus-Henrique-Burey/Curso-de-Python
448aebaab96527affa1e45897a662bb0407c11c6
[ "MIT" ]
null
null
null
Modulo-01/ex028/ex028.py
Matheus-Henrique-Burey/Curso-de-Python
448aebaab96527affa1e45897a662bb0407c11c6
[ "MIT" ]
null
null
null
from random import randint pc = randint(0,5) print('-=' * 15) print('ESTOU PENSANDO EM UM NUMERO') print('-=' * 15) player = int(input('ADIVINHE QUAL É DE 0 A 5: ')) if pc == player: print('PARABENS VOCCE ACERTOU!!!!') else: print(f'GANHEI!! estava pensando em {pc}')
21.384615
49
0.636691
0c855c79de8ae4e9c43a787cc0bb617f54bafb0f
1,977
py
Python
qa/rpc-tests/reject-version-bit.py
stakecom/stakework
a2110b0ba6aa9638a18c2e7ae12f0f229e074f35
[ "MIT" ]
null
null
null
qa/rpc-tests/reject-version-bit.py
stakecom/stakework
a2110b0ba6aa9638a18c2e7ae12f0f229e074f35
[ "MIT" ]
null
null
null
qa/rpc-tests/reject-version-bit.py
stakecom/stakework
a2110b0ba6aa9638a18c2e7ae12f0f229e074f35
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The StakeWork Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test rejection of version bit votes # import time from test_framework.test_framework import StakeWorkTe...
39.54
102
0.661608
b227632317341b3858cd7ef733b82cbc84ce666b
1,217
py
Python
test/test_count_commander.py
MushroomPoet/percheron
e49d4bb416a98dff1f7137834232df67fe7065fb
[ "MIT" ]
null
null
null
test/test_count_commander.py
MushroomPoet/percheron
e49d4bb416a98dff1f7137834232df67fe7065fb
[ "MIT" ]
10
2022-03-30T12:49:39.000Z
2022-03-30T12:57:48.000Z
test/test_count_commander.py
MushroomPoet/percheron
e49d4bb416a98dff1f7137834232df67fe7065fb
[ "MIT" ]
null
null
null
import io from percheron.count_commander import CountCommander from percheron.library import Library PROGRAM = "percheron-test" def test_run_help(): cmds = "help\n.\n" assert CountCommander.HELP in _process_cmds(cmds) def test_multiple_cards(): cmds = "set iko\na\n.\n" assert "Multiple matches" in _p...
29.682927
69
0.709121
6bd649e1cac5a5ac7567d9c87dfe757143c34d57
263
py
Python
BackEnd/manage.py
Dataproces/Open4Citizens
239f971d1ed61a50ae565773e3ba8df308626065
[ "MIT" ]
null
null
null
BackEnd/manage.py
Dataproces/Open4Citizens
239f971d1ed61a50ae565773e3ba8df308626065
[ "MIT" ]
null
null
null
BackEnd/manage.py
Dataproces/Open4Citizens
239f971d1ed61a50ae565773e3ba8df308626065
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "O4CService.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.909091
75
0.745247
62c9047b17f3de4a99d016ce737c9ada518281d9
30,915
py
Python
pandas/tests/reshape/merge/test_join.py
the-nose-knows/pandas
dcf7137ccc81986091b6c76624855bb5c32185f7
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
80
2015-01-01T17:32:11.000Z
2022-01-24T07:17:47.000Z
pandas/tests/reshape/merge/test_join.py
stevenbw/pandas
9c0f6a8d703b6bee48918f2c5d16418a7ff736e3
[ "BSD-3-Clause" ]
1
2018-04-04T16:46:41.000Z
2018-04-04T16:46:41.000Z
pandas/tests/reshape/merge/test_join.py
stevenbw/pandas
9c0f6a8d703b6bee48918f2c5d16418a7ff736e3
[ "BSD-3-Clause" ]
28
2015-01-30T16:07:48.000Z
2022-02-11T18:41:13.000Z
# pylint: disable=E1103 import numpy as np from numpy.random import randn import pytest from pandas._libs import join as libjoin import pandas.compat as compat from pandas.compat import lrange import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series, concat, merge from pandas.tests.reshape.merge.t...
39.132911
79
0.523306
427443a77944837ca52068ef5b3ff19a520b852c
748
py
Python
core/middleware/ga.py
pascalopitz/microweb
b5c2c6351d814ebdee55f41505d9500404fd309a
[ "MIT" ]
11
2015-01-02T12:19:14.000Z
2019-09-25T13:31:09.000Z
core/middleware/ga.py
pascalopitz/microweb
b5c2c6351d814ebdee55f41505d9500404fd309a
[ "MIT" ]
17
2015-01-16T23:15:05.000Z
2020-06-05T16:58:49.000Z
core/middleware/ga.py
pascalopitz/microweb
b5c2c6351d814ebdee55f41505d9500404fd309a
[ "MIT" ]
7
2015-10-29T14:40:45.000Z
2021-06-03T10:44:55.000Z
from django.core import exceptions from django.conf import settings from pyga.requests import Tracker, Page, Session, Visitor class GAMiddleware(): def process_request(self, request): if settings.GA_ENABLED: ip = request.META["REMOTE_ADDR"] if request.META.has_key("CF-Connecting-I...
29.92
73
0.629679
f164636867e8d3bfbef25ea488ce744628b0f14b
58
py
Python
gsd/data/splits.py
pzelasko/gsd
c4f0e62ee01f982f284632dd725590a4198de8c7
[ "Apache-2.0" ]
null
null
null
gsd/data/splits.py
pzelasko/gsd
c4f0e62ee01f982f284632dd725590a4198de8c7
[ "Apache-2.0" ]
null
null
null
gsd/data/splits.py
pzelasko/gsd
c4f0e62ee01f982f284632dd725590a4198de8c7
[ "Apache-2.0" ]
null
null
null
# TODO: # - split # - combine # - subset # - copy # - map
8.285714
11
0.5
44d4de159d1ca14d8c5f1f5f28eaacb7ced0a366
2,888
py
Python
python/lsst/eotask_gen3/eoNonlinearityData.py
lsst-camera-dh/eotask-gen3
41e7de97c607c5a8b21c4f7164b3852e7d07359a
[ "BSD-3-Clause-LBNL" ]
null
null
null
python/lsst/eotask_gen3/eoNonlinearityData.py
lsst-camera-dh/eotask-gen3
41e7de97c607c5a8b21c4f7164b3852e7d07359a
[ "BSD-3-Clause-LBNL" ]
33
2021-04-23T17:43:34.000Z
2022-01-17T19:15:14.000Z
python/lsst/eotask_gen3/eoNonlinearityData.py
lsst-camera-dh/eotask-gen3
41e7de97c607c5a8b21c4f7164b3852e7d07359a
[ "BSD-3-Clause-LBNL" ]
null
null
null
# from lsst.ip.isr import IsrCalib from .eoCalibTable import EoCalibField, EoCalibTableSchema, EoCalibTable, EoCalibTableHandle from .eoCalib import EoCalibSchema, EoCalib, RegisterEoCalibSchema from .eoPlotUtils import EoPlotMethod, nullFigure __all__ = ["EoNonlinearityAmpRunData", "EoNonlinearityData"] ...
32.818182
92
0.72126
a4c4a33184b64f064937c05e6886f6910ed34363
2,910
py
Python
market_backend/apps/accounts/admin.py
muthukumar4999/market-backend
61ccdba3bd77af76d47e0907c3d7c0833320d381
[ "MIT" ]
null
null
null
market_backend/apps/accounts/admin.py
muthukumar4999/market-backend
61ccdba3bd77af76d47e0907c3d7c0833320d381
[ "MIT" ]
null
null
null
market_backend/apps/accounts/admin.py
muthukumar4999/market-backend
61ccdba3bd77af76d47e0907c3d7c0833320d381
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.utils.translation import ugettext_lazy as _ from .models import User, AuthUser, Category, SubCategory, Media, Product # , ConsumerProduct, OrderCart cla...
32.333333
107
0.648797
8ff7579e66394800fbae9efe43a62fc23ea1dae8
185
py
Python
microcosm/tests/test_api.py
Sinon/microcosm
e8bab13b19e873b9b097968feeb8c3cb84bca045
[ "Apache-2.0" ]
30
2016-04-05T18:37:57.000Z
2021-06-21T18:58:43.000Z
microcosm/tests/test_api.py
Sinon/microcosm
e8bab13b19e873b9b097968feeb8c3cb84bca045
[ "Apache-2.0" ]
24
2016-03-08T17:33:00.000Z
2020-04-26T06:55:48.000Z
microcosm/tests/test_api.py
Sinon/microcosm
e8bab13b19e873b9b097968feeb8c3cb84bca045
[ "Apache-2.0" ]
6
2016-12-19T22:39:20.000Z
2020-11-15T15:27:58.000Z
""" Test high-level api """ def test_api_imports(): """ Imports of the public API work. """ from microcosm.api import binding, create_object_graph, defaults # noqa
14.230769
76
0.648649
f51cfcb491d0e16973bca8b2ed2763b2e0a9448a
11,264
py
Python
src/rastervision/label_stores/classification_geojson_file_test.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
src/rastervision/label_stores/classification_geojson_file_test.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
src/rastervision/label_stores/classification_geojson_file_test.py
nholeman/raster-vision
f3e1e26c555feed6fa018183c3fa04d7858d91bd
[ "Apache-2.0" ]
null
null
null
import unittest import tempfile import os import json from shapely import geometry from shapely.strtree import STRtree from rastervision.label_stores.classification_geojson_file import ( ClassificationGeoJSONFile, infer_cell, infer_labels, read_labels, to_geojson) from rastervision.label_stores.utils import g...
36.690554
79
0.60396
42997b3bde48df7618855b8c6b149eaeb8ed0cc1
49,751
py
Python
gplearn/genetic.py
anshulrai/gplearn
01ca44026630f56cacce13e0b022488554e4a1fc
[ "BSD-3-Clause" ]
null
null
null
gplearn/genetic.py
anshulrai/gplearn
01ca44026630f56cacce13e0b022488554e4a1fc
[ "BSD-3-Clause" ]
null
null
null
gplearn/genetic.py
anshulrai/gplearn
01ca44026630f56cacce13e0b022488554e4a1fc
[ "BSD-3-Clause" ]
null
null
null
"""Genetic Programming in Python, with a scikit-learn inspired API The :mod:`gplearn.genetic` module implements Genetic Programming. These are supervised learning methods based on applying evolutionary operations on computer programs. """ # Author: Trevor Stephens <trevorstephens.com> # # License: BSD 3 clause impor...
43.488636
79
0.601897
3258e0a85be1ce1a7ce74d1e58b5ab2a9ffeca3e
11,544
py
Python
samples/openapi3/client/petstore/python/petstore_api/model/legs.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
1
2021-11-07T18:53:43.000Z
2021-11-07T18:53:43.000Z
samples/openapi3/client/petstore/python/petstore_api/model/legs.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
28
2021-04-07T07:38:36.000Z
2022-03-31T03:10:56.000Z
samples/openapi3/client/petstore/python/petstore_api/model/legs.py
JigarJoshi/openapi-generator
785535b8d6881b358463994823abbda2b26ff42e
[ "Apache-2.0" ]
2
2021-11-03T10:07:15.000Z
2021-12-17T13:00:53.000Z
""" OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ import re # noq...
42.441176
174
0.561071
41464cbcbc5bb63a1d1f78e77301003d4ad85ee9
2,533
py
Python
projects/oldProyects/workStress/configuration/defineOccupancy.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
1
2017-03-06T12:33:02.000Z
2017-03-06T12:33:02.000Z
projects/oldProyects/workStress/configuration/defineOccupancy.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
3
2017-04-26T08:57:35.000Z
2019-04-24T08:28:24.000Z
projects/oldProyects/workStress/configuration/defineOccupancy.py
GGP00/soba
c193f323f26eccf579a454b8bb4bec4e80644444
[ "MIT" ]
1
2019-01-20T17:39:00.000Z
2019-01-20T17:39:00.000Z
import random def init(): global occupancy_json #Store the occupancy occupancy_json = [] #Workers #Number of Occupants NWorkers = 10 #Define states: name (str), position: str or ditc statesWorkers = [ {'name':'leave', 'position': 'outBuilding'}, #initial state (the first) {'name':'working in my workpla...
37.25
181
0.630083
fd9f3a5b3230bea5967150f17199088ace78f4d8
23,898
py
Python
django/http/multipartparser.py
sublime1809/django
9a5fe5b29fd431431a53da63ad8825d878ee5878
[ "BSD-3-Clause" ]
1
2019-01-31T17:16:56.000Z
2019-01-31T17:16:56.000Z
django/http/multipartparser.py
rmutter/django
5d044339037be879a11b03fe8bd8c3ef1d520b1a
[ "BSD-3-Clause" ]
null
null
null
django/http/multipartparser.py
rmutter/django
5d044339037be879a11b03fe8bd8c3ef1d520b1a
[ "BSD-3-Clause" ]
null
null
null
""" Multi-part parsing for file uploads. Exposes one class, ``MultiPartParser``, which feeds chunks of uploaded data to file upload handlers for processing. """ from __future__ import unicode_literals import base64 import binascii import cgi import sys from django.conf import settings from django.core.exceptions imp...
35.721973
115
0.56557
859b2626c3a9beb21595997f25dad0c091677ebe
2,219
py
Python
losses.py
zitorelova/airbus-ship-detection
137270222dd7074bc6dcb8bd35e5011ac286c9bd
[ "MIT" ]
2
2020-03-31T14:18:18.000Z
2021-02-12T19:01:24.000Z
losses.py
zitorelova/airbus-ship-detection
137270222dd7074bc6dcb8bd35e5011ac286c9bd
[ "MIT" ]
null
null
null
losses.py
zitorelova/airbus-ship-detection
137270222dd7074bc6dcb8bd35e5011ac286c9bd
[ "MIT" ]
null
null
null
from inclusion import * def dice_loss(input, target): input = torch.sigmoid(input) smooth = 1.0 iflat = input.view(-1) tflat = target.view(-1) intersection = (iflat * tflat).sum() return ((2.0 * intersection + smooth) / (iflat.sum() + tflat.sum() + smooth)) class FocalLoss(nn.Module): ...
32.15942
104
0.581343
c1f774ff05a23eb51557df160386264f4c68cd57
3,482
py
Python
test/test_lookup_rotation.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:28.000Z
2020-11-06T01:09:28.000Z
test/test_lookup_rotation.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
null
null
null
test/test_lookup_rotation.py
Nick-Singstock/qiskit-aqua
8c2bc57b78dec447faec3adbc966471a3206c2ef
[ "Apache-2.0" ]
1
2020-11-06T01:09:43.000Z
2020-11-06T01:09:43.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM Corp. 2017 and later. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2....
39.123596
80
0.682079
7ea4220542cb45fc1cd4d49700549e3d3955ee46
992
py
Python
sitch/sitchlib/ocid_csv.py
codecuisine/feed_builder
d63f543bdb306a5e25ceaa346e3ba465e735731c
[ "Apache-2.0" ]
null
null
null
sitch/sitchlib/ocid_csv.py
codecuisine/feed_builder
d63f543bdb306a5e25ceaa346e3ba465e735731c
[ "Apache-2.0" ]
null
null
null
sitch/sitchlib/ocid_csv.py
codecuisine/feed_builder
d63f543bdb306a5e25ceaa346e3ba465e735731c
[ "Apache-2.0" ]
null
null
null
import csv import gzip class OcidCsv(object): """ This wraps the OpenCellID CSV dataset. """ def __init__(self, data_bundle): self.data_bundle = data_bundle def __iter__(self): with gzip.open(self.data_bundle, 'r') as bolus: consumer = csv.DictReader(bolus) for row...
30.060606
65
0.554435
2e24be13ed8e64362503ed23131b638f1cfa7d1b
3,978
py
Python
vigranumpy/examples/grid_graph_shortestpath.py
ThomasWalter/vigra
e92c892aae38c3977dc3f6400f46377b0cb61799
[ "MIT" ]
null
null
null
vigranumpy/examples/grid_graph_shortestpath.py
ThomasWalter/vigra
e92c892aae38c3977dc3f6400f46377b0cb61799
[ "MIT" ]
null
null
null
vigranumpy/examples/grid_graph_shortestpath.py
ThomasWalter/vigra
e92c892aae38c3977dc3f6400f46377b0cb61799
[ "MIT" ]
null
null
null
import vigra import vigra.graphs as vigraph import pylab import numpy np=numpy import sys import matplotlib import pylab as plt import math from matplotlib.widgets import Slider, Button, RadioButtons def makeWeights(gamma): global hessian,gradmag,gridGraph print "hessian",hessian.min(),hessian.max() print ...
26.344371
100
0.661639
c009465cb17fa9fc2d5aa18f09754b3b7e6d58a3
1,747
py
Python
sympy/solvers/tests/test_numeric.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
2
2015-05-11T12:26:38.000Z
2016-08-19T00:11:03.000Z
sympy/solvers/tests/test_numeric.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
sympy/solvers/tests/test_numeric.py
goodok/sympy
de84ed2139125a755ea7b6ba91d945d9fbbe5ed9
[ "BSD-3-Clause" ]
null
null
null
from sympy import Eq, Matrix, pi, sin, sqrt, Symbol from sympy.mpmath import mnorm, mpf from sympy.solvers import nsolve from sympy.utilities.lambdify import lambdify from sympy.utilities.pytest import raises def test_nsolve(): # onedimensional x = Symbol('x') assert nsolve(sin(x), 2) - pi.evalf() < 1e-15 ...
37.978261
90
0.543217
6d870364dcb64107caff92ceffbaef6264244e63
2,352
py
Python
homeassistant/components/device_tracker/bbox.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
37
2018-05-22T07:17:26.000Z
2022-03-03T13:14:46.000Z
homeassistant/components/device_tracker/bbox.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
125
2018-12-11T07:31:20.000Z
2021-07-27T08:20:03.000Z
homeassistant/components/device_tracker/bbox.py
robin13/home-assistant
4976569e304c23975d34ec88e2dfb94e84ab1f1c
[ "Apache-2.0" ]
8
2018-05-30T20:05:26.000Z
2021-02-19T14:17:05.000Z
""" Support for French FAI Bouygues Bbox routers. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/device_tracker.bbox/ """ from collections import namedtuple import logging from datetime import timedelta import homeassistant.util.dt as dt_util from homea...
28.337349
75
0.655612
e97258a9c3cf3c6a3199ed6280c6a1ddfab6ee1a
308
py
Python
my-project/app/main.py
athiranair2000/Log-Me
eb6cce52116beb20955a5f6d19eb2d510f663c8a
[ "MIT" ]
null
null
null
my-project/app/main.py
athiranair2000/Log-Me
eb6cce52116beb20955a5f6d19eb2d510f663c8a
[ "MIT" ]
1
2019-10-07T13:21:40.000Z
2019-10-07T13:42:56.000Z
my-project/app/main.py
athiranair2000/Log-Me
eb6cce52116beb20955a5f6d19eb2d510f663c8a
[ "MIT" ]
null
null
null
from flask import Blueprint from . import db main=Blueprint('main',__name__) @main.route('/') def index(): return render_template('index.html') @auth.route('/login') def index(): return render_template('login.html') @auth.route('/signup') def signup(): return render_template('SignUp.html')
17.111111
41
0.698052
63a7134e0ebbcc28b1cd1dcef523ea47918d7ff5
16,917
py
Python
git/cmd.py
bu-ist/GitPython
2fc864356ef1c4a9112dcefbae02a606df59840c
[ "BSD-3-Clause" ]
1
2017-03-03T05:42:29.000Z
2017-03-03T05:42:29.000Z
git/cmd.py
bu-ist/GitPython
2fc864356ef1c4a9112dcefbae02a606df59840c
[ "BSD-3-Clause" ]
null
null
null
git/cmd.py
bu-ist/GitPython
2fc864356ef1c4a9112dcefbae02a606df59840c
[ "BSD-3-Clause" ]
null
null
null
# cmd.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os, sys from util import ( LazyMixin, stream_copy ) from exc import GitCommandErr...
31.212177
105
0.693385
aa981dfa79733c3174c0ae5a76aab6557b73cc33
3,053
py
Python
src/explainer/metrics.py
saromanov/explainer
aaa5eeb0316802779891119ed80e946b1b1b39a6
[ "MIT" ]
null
null
null
src/explainer/metrics.py
saromanov/explainer
aaa5eeb0316802779891119ed80e946b1b1b39a6
[ "MIT" ]
null
null
null
src/explainer/metrics.py
saromanov/explainer
aaa5eeb0316802779891119ed80e946b1b1b39a6
[ "MIT" ]
null
null
null
from typing import List, Dict import pandas as pd from parse import Analyzer from task import Task from serializer import Serializer RawMetrics = List[Analyzer] Tasks = List[Task] class Metrics: ''' getting analyzer objects for cobstruct metrics output ''' def __init__(self, raw_metrics:RawMetrics...
32.136842
92
0.572224
6bad296316b09c7766e2b6d8aad090b445ad3925
2,433
py
Python
tests/tests.py
sanketsaurav/django-redis-ratelimit
4c901704dd59a7a6058c5b27b7490e0dc939c897
[ "MIT" ]
null
null
null
tests/tests.py
sanketsaurav/django-redis-ratelimit
4c901704dd59a7a6058c5b27b7490e0dc939c897
[ "MIT" ]
null
null
null
tests/tests.py
sanketsaurav/django-redis-ratelimit
4c901704dd59a7a6058c5b27b7490e0dc939c897
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.test import RequestFactory, TestCase from django.test.utils import override_settings from django.views import View from redis_ratelimit import ratelimit from redis_ratelimit.exceptions import RateLimited from redis_ratelimit.utils import parse_rate from redis_ratelimit.deco...
26.736264
63
0.58282
a9f3d24d64a2bee5e7fc574baf7724b0df8ff5e6
1,490
py
Python
algorithm/association_rules.py
Sirius207/Apriori-Algorithm
d299575c46ae4eee28ee5ccc3d9cadefbd21c8d3
[ "MIT" ]
5
2019-03-06T02:15:48.000Z
2021-10-01T20:01:34.000Z
algorithm/association_rules.py
Sirius207/Frequent-pattern-Algorithm
d299575c46ae4eee28ee5ccc3d9cadefbd21c8d3
[ "MIT" ]
null
null
null
algorithm/association_rules.py
Sirius207/Frequent-pattern-Algorithm
d299575c46ae4eee28ee5ccc3d9cadefbd21c8d3
[ "MIT" ]
null
null
null
# pattern format: apple-egg-pork def str_to_set(set_string): return set(set_string.split('-')) def find_subset_string(pattern): subset = find_subset(list(pattern)) # pop origin set subset.pop() return [ '-'.join(items) for items in subset if len(items) ] def find_sub...
27.090909
91
0.6
1090d06af511d0c369e841770251735d919f31a1
12,168
py
Python
cifar10_modelwb_defensewb_table1.py
swadeykgp/SymDNN
c489d3d313fe7b35f5a2747ed9705423f5492725
[ "MIT" ]
null
null
null
cifar10_modelwb_defensewb_table1.py
swadeykgp/SymDNN
c489d3d313fe7b35f5a2747ed9705423f5492725
[ "MIT" ]
null
null
null
cifar10_modelwb_defensewb_table1.py
swadeykgp/SymDNN
c489d3d313fe7b35f5a2747ed9705423f5492725
[ "MIT" ]
null
null
null
from __future__ import print_function import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import json import os import sys import time import warnings warnings.filterwarnings('ignore') import torchvision.utils from torchvision import models import torchattacks from torchat...
40.832215
208
0.655243
3057751eefd99124f474e8611465daf1a33b24f4
5,548
py
Python
examples/vds3.py
triumphyuan/idapython
081b988a03b88867786ad4131269db6930637a5b
[ "BSD-3-Clause" ]
25
2016-06-07T15:41:57.000Z
2021-12-17T11:03:42.000Z
examples/vds3.py
triumphyuan/idapython
081b988a03b88867786ad4131269db6930637a5b
[ "BSD-3-Clause" ]
1
2018-01-23T05:39:50.000Z
2018-01-23T05:39:50.000Z
examples/vds3.py
triumphyuan/idapython
081b988a03b88867786ad4131269db6930637a5b
[ "BSD-3-Clause" ]
30
2016-01-27T22:47:30.000Z
2022-03-11T19:56:59.000Z
""" Invert the then and else blocks of a cif_t. Author: EiNSTeiN_ <einstein@g3nius.org> This is a rewrite in Python of the vds3 example that comes with hexrays sdk. The main difference with the original C code is that when we create the inverted condition object, the newly created cexpr_t instance is given to the h...
27.60199
110
0.576424
b92643da0b06c09937b7e848c6190c92c44754f2
28,477
py
Python
pynitrokey/start/gnuk_token.py
fayrlight/pynitrokey
c6a93da7a811d34213746b60fab22affb3616a88
[ "Apache-2.0", "MIT" ]
15
2020-08-05T14:37:37.000Z
2022-02-20T13:47:41.000Z
pynitrokey/start/gnuk_token.py
fayrlight/pynitrokey
c6a93da7a811d34213746b60fab22affb3616a88
[ "Apache-2.0", "MIT" ]
153
2020-06-22T13:09:41.000Z
2022-03-31T10:25:14.000Z
pynitrokey/start/gnuk_token.py
fayrlight/pynitrokey
c6a93da7a811d34213746b60fab22affb3616a88
[ "Apache-2.0", "MIT" ]
4
2021-04-06T07:08:59.000Z
2022-02-14T14:26:38.000Z
""" gnuk_token.py - a library for Gnuk Token Copyright (C) 2011, 2012, 2013, 2015, 2017, 2018 Free Software Initiative of Japan Author: NIIBE Yutaka <gniibe@fsij.org> This file is a part of Gnuk, a GnuPG USB Token implementation. Gnuk is free software: you can redistribute it and/or modify it under the...
38.586721
104
0.535766
a5415919b334f2f7f1baaec17e5eefe8c34b8c25
1,054
py
Python
ibpy_native/error.py
Devtography/ibpy_native
e3e2a406a8db9bb338953be6dc195b8099379acb
[ "Apache-2.0" ]
6
2020-07-09T20:55:41.000Z
2022-01-22T15:43:29.000Z
ibpy_native/error.py
Devtography/ibpy_native
e3e2a406a8db9bb338953be6dc195b8099379acb
[ "Apache-2.0" ]
1
2021-02-28T13:37:43.000Z
2021-02-28T13:37:43.000Z
ibpy_native/error.py
Devtography/ibpy_native
e3e2a406a8db9bb338953be6dc195b8099379acb
[ "Apache-2.0" ]
5
2020-05-24T19:15:06.000Z
2022-01-22T15:43:35.000Z
"""Code implementation of error related stuffs.""" import enum from typing import Any class IBErrorCode(enum.IntEnum): """Error codes.""" # Error codes defined by IB DUPLICATE_TICKER_ID = 102 DUPLICATE_ORDER_ID = 103 INVALID_CONTRACT = 200 ORDER_REJECTED = 201 ORDER_MESSAGE = 399 NOT_CO...
26.35
63
0.63093
7e57b4a16efe3de48d7d2c19d3dc32d2faa1a9f8
997
py
Python
src/sentry/api/endpoints/organization_config_integrations.py
Ali-Tahir/sentry
aa7b306c5ea671ac002a3524982563679557cb31
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/endpoints/organization_config_integrations.py
Ali-Tahir/sentry
aa7b306c5ea671ac002a3524982563679557cb31
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/endpoints/organization_config_integrations.py
Ali-Tahir/sentry
aa7b306c5ea671ac002a3524982563679557cb31
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from rest_framework.response import Response from django.conf import settings from sentry import integrations, features from sentry.api.bases.organization import OrganizationEndpoint from sentry.api.serializers import serialize, IntegrationProviderSerializer class Organizatio...
31.15625
92
0.725176
5928d71b5ff638df0407f8aa232d6e7aa04460d4
4,817
py
Python
alarms/migrations/0001_initial.py
fcurella/clock-api
57c16e83cdb405feea268c6a03959207a12cb4d0
[ "MIT" ]
5
2020-05-26T20:03:44.000Z
2020-09-13T19:51:41.000Z
alarms/migrations/0001_initial.py
fcurella/clock-api
57c16e83cdb405feea268c6a03959207a12cb4d0
[ "MIT" ]
null
null
null
alarms/migrations/0001_initial.py
fcurella/clock-api
57c16e83cdb405feea268c6a03959207a12cb4d0
[ "MIT" ]
1
2021-11-20T01:34:45.000Z
2021-11-20T01:34:45.000Z
# Generated by Django 3.0.5 on 2020-05-26 15:58 import django.contrib.postgres.fields.jsonb from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import django_lifecycle.mixins import model_utils.fields import timezone_field.fields class Migration(migrations.Migration...
33.685315
81
0.419763
4829a9638f3663b158b09c061df56fccaf260551
66,193
py
Python
src/rosegraphics.py
LiChen2000/01-IntroductionToPython
cdb363d4d90f4800f0f9c38b33c50b49109a41a3
[ "MIT" ]
null
null
null
src/rosegraphics.py
LiChen2000/01-IntroductionToPython
cdb363d4d90f4800f0f9c38b33c50b49109a41a3
[ "MIT" ]
null
null
null
src/rosegraphics.py
LiChen2000/01-IntroductionToPython
cdb363d4d90f4800f0f9c38b33c50b49109a41a3
[ "MIT" ]
null
null
null
""" rosegraphics.py - a simple Graphics library for Python. Its key feature is: -- USING this library provides a simple introduction to USING objects. Other key features include: -- It has a rich set of classes, methods and instance variables. In addition to classes like Circles that are natural for studen...
31.884875
85
0.597344
f9f2114d4ca03eae96b5dce76803bfc217d40654
11,185
py
Python
plugin/hover.py
quangbuule/LSP
3137a455ed04f8809bd8e85941786fb25826d1ea
[ "MIT" ]
null
null
null
plugin/hover.py
quangbuule/LSP
3137a455ed04f8809bd8e85941786fb25826d1ea
[ "MIT" ]
null
null
null
plugin/hover.py
quangbuule/LSP
3137a455ed04f8809bd8e85941786fb25826d1ea
[ "MIT" ]
null
null
null
import mdpopups import sublime import sublime_plugin import webbrowser import os from html import escape from .code_actions import actions_manager, run_code_action_or_command from .code_actions import CodeActionOrCommand from .core.configurations import is_supported_syntax from .core.popups import popups from .core.pro...
42.528517
119
0.630755
4d1e5fc06539122ad7e47b936e473d1e4b92bc67
2,122
py
Python
src/server.py
sawshep/spit-legacy
9a2838aeef453e84a087df971970f513ee5df6bf
[ "MIT" ]
2
2020-03-24T23:32:25.000Z
2020-03-25T04:03:48.000Z
src/server.py
sawshep/spit-legacy
9a2838aeef453e84a087df971970f513ee5df6bf
[ "MIT" ]
1
2020-03-14T03:19:27.000Z
2020-04-01T19:33:33.000Z
src/server.py
sawshep/spit-legacy
9a2838aeef453e84a087df971970f513ee5df6bf
[ "MIT" ]
null
null
null
'''server.py This module holds the Server class, which is used to establish connection between 2 clients using TCP sockets.''' # From Python standard library import threading import pickle import socket # My modules import config import gamedata class Server: '''TCP socket server for game clients to connect to.'...
35.966102
109
0.604618
3f6fa63a08233d8ddb817c891f813882cf245e76
254
py
Python
setup.py
awans/k
9327d89d246855c3daa6d470304089e08a93df5f
[ "MIT" ]
4
2016-10-09T03:03:07.000Z
2020-07-03T09:25:16.000Z
setup.py
awans/k
9327d89d246855c3daa6d470304089e08a93df5f
[ "MIT" ]
null
null
null
setup.py
awans/k
9327d89d246855c3daa6d470304089e08a93df5f
[ "MIT" ]
1
2022-03-29T01:11:43.000Z
2022-03-29T01:11:43.000Z
from setuptools import setup setup( name="key", version="0.4", description="Short getters for python", url="https://github.com/awans/key", author="Andrew Wansley", author_email="andrew.wansley@gmail.com", license="MIT", packages=["k"] )
19.538462
42
0.685039
97d1757a9cefd59c24d8bef33d54543f0b1c0311
1,524
py
Python
setup.py
pituganov/telelog
b80ad94c77297eb8a0004bfd0f018ad3584fe32d
[ "MIT" ]
3
2019-08-27T12:35:52.000Z
2020-06-03T14:42:46.000Z
setup.py
pituganov/telelog
b80ad94c77297eb8a0004bfd0f018ad3584fe32d
[ "MIT" ]
null
null
null
setup.py
pituganov/telelog
b80ad94c77297eb8a0004bfd0f018ad3584fe32d
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages from os import path from io import open here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding=...
33.866667
78
0.656824
0e239ac5b5a90f5ef7e3933ebc2797e64439856b
553
py
Python
tests/test_points.py
annettekurian/python-taiga
5d5897fe3be01f06d434d649bc7dd7dc76fe28a1
[ "MIT" ]
null
null
null
tests/test_points.py
annettekurian/python-taiga
5d5897fe3be01f06d434d649bc7dd7dc76fe28a1
[ "MIT" ]
1
2018-05-27T11:37:47.000Z
2018-05-27T11:41:49.000Z
tests/test_points.py
annettekurian/python-taiga
5d5897fe3be01f06d434d649bc7dd7dc76fe28a1
[ "MIT" ]
null
null
null
import unittest from mock import patch from taiga.models import Point, Points from taiga.requestmaker import RequestMaker class TestPoints(unittest.TestCase): @patch('taiga.models.base.ListResource._new_resource') def test_create_point(self, mock_new_resource): rm = RequestMaker('/api/v1', 'fakehos...
29.105263
65
0.688969
4b91ed327f29db2328645585185d874ed4c29417
118,112
py
Python
OpenModal/gui/widgets/geometry.py
MonashSmartStructures/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
85
2016-12-04T10:34:08.000Z
2022-03-26T18:03:47.000Z
OpenModal/gui/widgets/geometry.py
MonashSmartStructures/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
55
2016-12-02T15:01:15.000Z
2022-01-07T11:10:26.000Z
OpenModal/gui/widgets/geometry.py
gusshmn/OpenModal
a76a258c420954eab4a8b4ef37b487616c9f6c62
[ "CNRI-Python" ]
51
2016-12-30T16:33:36.000Z
2021-11-13T11:05:34.000Z
# Copyright (C) 2014-2017 Matjaž Mršnik, Miha Pirnat, Janko Slavič, Blaž Starc (in alphabetic order) # # This file is part of OpenModal. # # OpenModal is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version...
41.574094
171
0.605129
ad94af299d5f7b25c6d8285732805a2ccf4a83b7
27,599
py
Python
tensorflow2/tf2cv/models/resnet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
2,649
2018-08-03T14:18:00.000Z
2022-03-31T08:08:17.000Z
tensorflow2/tf2cv/models/resnet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
95
2018-08-13T01:46:03.000Z
2022-03-13T08:38:14.000Z
tensorflow2/tf2cv/models/resnet.py
naviocean/imgclsmob
f2993d3ce73a2f7ddba05da3891defb08547d504
[ "MIT" ]
549
2018-08-06T08:09:22.000Z
2022-03-31T08:08:21.000Z
""" ResNet for ImageNet-1K, implemented in TensorFlow. Original paper: 'Deep Residual Learning for Image Recognition,' https://arxiv.org/abs/1512.03385. """ __all__ = ['ResNet', 'resnet10', 'resnet12', 'resnet14', 'resnetbc14b', 'resnet16', 'resnet18_wd4', 'resnet18_wd2', 'resnet18_w3d4', 'resnet18'...
33.947109
120
0.615022
db65c355a026c8a2c275b9c2fce52cd2c42396ca
13,306
py
Python
test/functional/feature_config_args.py
widecoin-project/widecoin
143b190a61f95a4b7d40c5da484cdde8f0c5ac3f
[ "MIT" ]
8
2021-04-17T16:11:50.000Z
2021-06-23T05:30:39.000Z
test/functional/feature_config_args.py
widecoin-project/widecoin
143b190a61f95a4b7d40c5da484cdde8f0c5ac3f
[ "MIT" ]
1
2021-04-18T11:57:59.000Z
2021-04-18T11:57:59.000Z
test/functional/feature_config_args.py
widecoin-project/widecoin
143b190a61f95a4b7d40c5da484cdde8f0c5ac3f
[ "MIT" ]
7
2021-04-17T16:04:12.000Z
2021-06-10T00:54:53.000Z
#!/usr/bin/env python3 # Copyright (c) 2017-2020 The Widecoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various command line arguments and configuration file parameters.""" import os import time from...
50.401515
207
0.640914
1efdc607fe8915a38a3ded1085c71d27ab0ee136
4,287
py
Python
webvtt/segmenter.py
gana-dimsum/webvtt-py
6818ab363b057b8d0928ce395683ea2e95e08dea
[ "MIT" ]
null
null
null
webvtt/segmenter.py
gana-dimsum/webvtt-py
6818ab363b057b8d0928ce395683ea2e95e08dea
[ "MIT" ]
null
null
null
webvtt/segmenter.py
gana-dimsum/webvtt-py
6818ab363b057b8d0928ce395683ea2e95e08dea
[ "MIT" ]
null
null
null
import os from math import ceil, floor from .errors import InvalidCaptionsError from .webvtt import WebVTT from .structures import Caption MPEGTS = 900000 SECONDS = 10 # default number of seconds per segment __all__ = ['WebVTTSegmenter'] class WebVTTSegmenter(object): """ Provides segmentat...
37.278261
109
0.598554
6d3947c863071783b04607f068bf0738e003639c
1,184
py
Python
Python/997.find-the-town-judge.py
Mo-Shakib/LeetCode
a3f1cfda648d9abf504e9d79697f1ca433c48460
[ "Apache-2.0" ]
1
2022-01-10T01:10:03.000Z
2022-01-10T01:10:03.000Z
Python/997.find-the-town-judge.py
Mo-Shakib/LeetCode
a3f1cfda648d9abf504e9d79697f1ca433c48460
[ "Apache-2.0" ]
3
2022-01-10T18:24:21.000Z
2022-01-10T22:38:38.000Z
Python/997.find-the-town-judge.py
Mo-Shakib/LeetCode
a3f1cfda648d9abf504e9d79697f1ca433c48460
[ "Apache-2.0" ]
2
2022-01-10T05:06:22.000Z
2022-01-14T06:20:09.000Z
# # @lc app=leetcode id=997 lang=python3 # # [997] Find the Town Judge # # @lc code=start class Solution: def findJudge(self, n: int, trust: List[List[int]]) -> int: trusted = {} # to store key value pairs # there is only one person and he does not trust himself if len(trust) == 0 and n == ...
29.6
161
0.513514
e056a25f4263cfc7aee896cca0e0254a88d89670
543
py
Python
edgelm/fairseq/model_parallel/modules/__init__.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
1
2021-11-07T00:30:05.000Z
2021-11-07T00:30:05.000Z
edgelm/fairseq/model_parallel/modules/__init__.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
edgelm/fairseq/model_parallel/modules/__init__.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """isort:skip_file""" from .multihead_attention import ModelParallelMultiheadAttention from .transformer_layer import ( ModelParal...
30.166667
66
0.767956
ecf905625038e4e26c1595fd7ee933f6ee73c483
1,569
py
Python
463.island-perimeter.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
463.island-perimeter.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
463.island-perimeter.py
Lonitch/hackerRank
84991b8340e725422bc47eec664532cc84a3447e
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=463 lang=python3 # # [463] Island Perimeter # # https://leetcode.com/problems/island-perimeter/description/ # # algorithms # Easy (62.13%) # Likes: 1346 # Dislikes: 95 # Total Accepted: 159.6K # Total Submissions: 255.9K # Testcase Example: '[[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]' # # ...
24.515625
79
0.583811
5a833ebd1c0d7a6e6405f9bbcb480edcd0445186
27,917
py
Python
samples/client/petstore/python-tornado/petstore_api/api_client.py
sensorario/openapi-generator
bf68e9b7d2d9a27fab481fe6bab3f57bc135b94c
[ "Apache-2.0" ]
1
2022-01-03T04:40:07.000Z
2022-01-03T04:40:07.000Z
samples/client/petstore/python-tornado/petstore_api/api_client.py
sensorario/openapi-generator
bf68e9b7d2d9a27fab481fe6bab3f57bc135b94c
[ "Apache-2.0" ]
28
2021-04-07T07:38:36.000Z
2022-03-31T03:10:56.000Z
samples/client/petstore/python-tornado/petstore_api/api_client.py
sensorario/openapi-generator
bf68e9b7d2d9a27fab481fe6bab3f57bc135b94c
[ "Apache-2.0" ]
2
2021-11-03T10:07:15.000Z
2021-12-17T13:00:53.000Z
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ f...
39.711238
174
0.557653
144ff40bec50ef1f05b013319b985a575aea9a2a
975
py
Python
setup.py
bernardosabatinilab/face-rhythm
ea4b5213827beecc174a0f510574d81346b2f07e
[ "MIT" ]
null
null
null
setup.py
bernardosabatinilab/face-rhythm
ea4b5213827beecc174a0f510574d81346b2f07e
[ "MIT" ]
null
null
null
setup.py
bernardosabatinilab/face-rhythm
ea4b5213827beecc174a0f510574d81346b2f07e
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='face_rhythm', packages=find_packages(), version='0.1.0', description="Project structure for Face Rhythms", author='Rich Hakim', license='MIT', install_requires=['numpy==1.18.3', 'torch', 'to...
30.46875
53
0.36
097de645e230633d82089907f67ba65b5ad79f5a
9,517
py
Python
tests/connection/test_fsm.py
workfloworchestrator/SuPA
75c34a446e7133ac3f9378810db749a7df2c21a3
[ "Apache-2.0" ]
null
null
null
tests/connection/test_fsm.py
workfloworchestrator/SuPA
75c34a446e7133ac3f9378810db749a7df2c21a3
[ "Apache-2.0" ]
6
2021-12-01T13:05:28.000Z
2022-03-07T12:40:10.000Z
tests/connection/test_fsm.py
workfloworchestrator/SuPA
75c34a446e7133ac3f9378810db749a7df2c21a3
[ "Apache-2.0" ]
null
null
null
from supa.connection.fsm import ( DataPlaneStateMachine, LifecycleStateMachine, ProvisionStateMachine, ReservationStateMachine, ) from supa.db.model import Reservation def test_reservation_state_machine() -> None: # noqa: D103 reservation = Reservation() rsm = ReservationStateMachine(reservat...
48.805128
103
0.794788
f2a6709b3d3ba733569487447a61fae1a53bb4ca
15,078
py
Python
data_generator_reptile.py
ryanbrand/mil
6524047febe35fa59c356794f1649946332c4e7f
[ "MIT" ]
null
null
null
data_generator_reptile.py
ryanbrand/mil
6524047febe35fa59c356794f1649946332c4e7f
[ "MIT" ]
null
null
null
data_generator_reptile.py
ryanbrand/mil
6524047febe35fa59c356794f1649946332c4e7f
[ "MIT" ]
null
null
null
""" Code for loading data and generating data batches during training """ from __future__ import division import copy import logging import os import glob import tempfile import pickle from datetime import datetime from collections import OrderedDict import numpy as np import random import tensorflow as tf from utils...
56.684211
161
0.592917
c2c88037441d01664804e288e92604a36ede263b
566
py
Python
microservices/w2/config_w2.py
nyancol/OpenPenguin
ac229f5b2ea65f32aec0d8dcdd4ac855b4e37d3e
[ "Apache-2.0" ]
5
2017-11-28T13:15:20.000Z
2017-12-09T23:14:04.000Z
microservices/w2/config_w2.py
nyancol/OpenPenguin
ac229f5b2ea65f32aec0d8dcdd4ac855b4e37d3e
[ "Apache-2.0" ]
9
2017-12-12T17:15:37.000Z
2018-01-30T14:43:36.000Z
microservices/w2/config.py
hp-cloud-lab1/cloud_native_app
a243d6dd75b99450874f661e42d62d14cca95683
[ "Apache-2.0" ]
15
2017-09-15T09:27:43.000Z
2018-12-18T11:05:53.000Z
# coding=utf-8 import configparser class Configuration(object): def __init__(self, configuration_file): self.config = configparser.ConfigParser(allow_no_value=True) self.config.read(configuration_file) def get_w2_rabbithost(self): return self.config.get("w2", "rabbithost") def ...
24.608696
68
0.687279
f13735da3b63929bfd8cf2d3c4ad3486f1ef4f98
2,395
py
Python
tests/test_rola.py
alanarteagav/musicWave
dd1cfdd2a799686f17e432a392aca46921db9ff0
[ "MIT" ]
null
null
null
tests/test_rola.py
alanarteagav/musicWave
dd1cfdd2a799686f17e432a392aca46921db9ff0
[ "MIT" ]
null
null
null
tests/test_rola.py
alanarteagav/musicWave
dd1cfdd2a799686f17e432a392aca46921db9ff0
[ "MIT" ]
null
null
null
from music_wave.rola import Rola import unittest class TestRola(unittest.TestCase): def setUp(self): self.rola_test = Rola(id = 0, performer_id = 0, album_id = 0, path = 'null', title = 'null', track = 0, year = 0, genre = 'null') def test_set_...
40.59322
86
0.658873
161ef85842d6e1f389ac2be9b1a689d3a3bdffd3
1,950
py
Python
public/scripts/python/test/Suite2/test29.py
jimb245/scriptremote
74853f6ac8a287c3a97068833f62d5c94707b092
[ "MIT" ]
null
null
null
public/scripts/python/test/Suite2/test29.py
jimb245/scriptremote
74853f6ac8a287c3a97068833f62d5c94707b092
[ "MIT" ]
null
null
null
public/scripts/python/test/Suite2/test29.py
jimb245/scriptremote
74853f6ac8a287c3a97068833f62d5c94707b092
[ "MIT" ]
null
null
null
# # Existing owned project, attempt to add job using wrong passphrase # import os import time import unittest import srutil import srio import credentials class Test(unittest.TestCase): def runTest(self): user = credentials.SRUSER token = credentials.SRTOKEN projName = 'TEST(suite2)-Projec...
25.657895
101
0.564615
4a3971bf2fe63c7bf1d00f4e3956f4e3d41cbcdf
18,778
py
Python
google/ads/googleads/v9/services/services/age_range_view_service/client.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/services/services/age_range_view_service/client.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v9/services/services/age_range_view_service/client.py
JakobSteixner/google-ads-python
df2b802cc7e78295a4ece21cc7ef3787cd35dab0
[ "Apache-2.0" ]
null
null
null
# -*- 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.733189
124
0.635478
1131ea744214a80679a167dbdd1083f43ae12fd0
769
py
Python
theory/16th_sprint/B.broke_me.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
theory/16th_sprint/B.broke_me.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
theory/16th_sprint/B.broke_me.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
import string import random def polynomial_hash(string, base=1000, module=123_987_123): my_hash = 0 string_len = len(string) for n, s in enumerate(string): my_hash += ord(s)*(base**(string_len-n-1)) return my_hash % module def string_generator(size=8, chars=string.ascii_lowercase): ret...
21.361111
61
0.628088
e2b9b638ddc798f14a0f110f5296206fe33052f6
875
py
Python
traffic_light_dl/workspace/raw_training_data/validate_records.py
hssavage/CarND-Capstone
2e1ddb8f06e2d1218b93841ee6bdc88e89a1bc4c
[ "MIT" ]
null
null
null
traffic_light_dl/workspace/raw_training_data/validate_records.py
hssavage/CarND-Capstone
2e1ddb8f06e2d1218b93841ee6bdc88e89a1bc4c
[ "MIT" ]
null
null
null
traffic_light_dl/workspace/raw_training_data/validate_records.py
hssavage/CarND-Capstone
2e1ddb8f06e2d1218b93841ee6bdc88e89a1bc4c
[ "MIT" ]
2
2018-03-14T17:33:09.000Z
2018-03-15T17:09:20.000Z
import tensorflow as tf def validate_dataset(filenames, reader_opts=None): """ Attempt to iterate over every record in the supplied iterable of TFRecord filenames :param filenames: iterable of filenames to read :param reader_opts: (optional) tf.python_io.TFRecordOptions to use when constructing the re...
35
117
0.677714
2df41b2677769790c00105d555785da977cc4744
2,593
py
Python
echome/identity/management/commands/createaccount.py
jasoncolburne/echome
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
[ "MIT" ]
2
2022-01-31T19:32:51.000Z
2022-01-31T22:42:13.000Z
echome/identity/management/commands/createaccount.py
jasoncolburne/echome
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
[ "MIT" ]
7
2021-04-04T01:15:53.000Z
2022-02-07T03:34:48.000Z
echome/identity/management/commands/createaccount.py
jasoncolburne/echome
a5ab87666ae859d1ca8e4902d5c441c0ce36547a
[ "MIT" ]
1
2022-02-01T11:34:50.000Z
2022-02-01T11:34:50.000Z
from django.core.management.base import BaseCommand, CommandError from django.core import exceptions from django.utils.text import capfirst from identity.models import Account class Command(BaseCommand): help = 'Create an echome account' # def add_arguments(self, parser): # parser.add_argument('poll_i...
36.013889
103
0.600077
a33eff045a2161cd59b6d7630833dbb2fa41b93b
24,953
py
Python
lib/spack/spack/directory_layout.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
lib/spack/spack/directory_layout.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2022-02-28T11:30:18.000Z
2022-03-23T19:34:56.000Z
lib/spack/spack/directory_layout.py
FJ-NaokiMatsumura/spack
7cfe626e21795f0a4bfe61f36ca1b48ffd2fc961
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import errno import glob import os import posixpath import re import shutil import tempfile from contextlib import context...
38.389231
86
0.612311
ecea476c087c84a4dbfcc648f1c3b73e24fa2397
1,203
py
Python
basetest/BaseTest/mail/MailUtils.py
jAchillus/pythontools
518d72a46dada6c62db94cd3d49e848f11129442
[ "Apache-2.0" ]
null
null
null
basetest/BaseTest/mail/MailUtils.py
jAchillus/pythontools
518d72a46dada6c62db94cd3d49e848f11129442
[ "Apache-2.0" ]
null
null
null
basetest/BaseTest/mail/MailUtils.py
jAchillus/pythontools
518d72a46dada6c62db94cd3d49e848f11129442
[ "Apache-2.0" ]
null
null
null
#D:\DevelopTools\Softs\64\Python\Python35 #coding=UTF-8 #-*-coding: UTF-8 -*- import smtplib import Mail class MailUtils: def sendMail(self, mail): try: server = smtplib.SMTP() server.connect(mail.getHost()) server.login(mail.getUser(),mail.getPWD()) print(...
32.513514
85
0.570241
18ec7956395d4c67583f46e471a6ef55c2172e9e
924
py
Python
python/cocos2d/actors.py
liushooter/OneDayOneCommit
87dc037fcb21c9cd91723c282d1b618bef3e0414
[ "MIT" ]
null
null
null
python/cocos2d/actors.py
liushooter/OneDayOneCommit
87dc037fcb21c9cd91723c282d1b618bef3e0414
[ "MIT" ]
null
null
null
python/cocos2d/actors.py
liushooter/OneDayOneCommit
87dc037fcb21c9cd91723c282d1b618bef3e0414
[ "MIT" ]
null
null
null
import cocos from cocos.text import Label from cocos import scene from cocos.layer import Layer from cocos.director import director from cocos.sprite import Sprite class Actors(Layer): def __init__(self): super(Actors, self).__init__() # Here is where the code starts to get different # In...
31.862069
107
0.699134
09e09592c65735e8b68d87e5094328f5c99f0421
675
py
Python
venv/bin/Patch Dock/patch_dock_get_results.py
lpreuett/ser499_bioinformatics
93fbed08a49851bb6cc484594fe2180b8a6bce1f
[ "MIT" ]
null
null
null
venv/bin/Patch Dock/patch_dock_get_results.py
lpreuett/ser499_bioinformatics
93fbed08a49851bb6cc484594fe2180b8a6bce1f
[ "MIT" ]
null
null
null
venv/bin/Patch Dock/patch_dock_get_results.py
lpreuett/ser499_bioinformatics
93fbed08a49851bb6cc484594fe2180b8a6bce1f
[ "MIT" ]
null
null
null
import scrapy import sys class BioSpider(scrapy.Spider): def __init__(self, *a, **kw): # get start URL url = kw.pop('link', []) if url: #print('link: {}'.format(url)) self.start_urls = [url] else: # exit if no start url print('Usage:...
21.774194
81
0.525926
446a5c77997b17b8ef0961eff19f05dfa76fb849
4,518
py
Python
pydoop/avrolib.py
timgates42/pydoop
438c92ed34e2d4f12db7cc1ea3a7ed094206c3a5
[ "Apache-2.0" ]
203
2015-01-02T05:52:49.000Z
2022-03-25T00:05:50.000Z
pydoop/avrolib.py
timgates42/pydoop
438c92ed34e2d4f12db7cc1ea3a7ed094206c3a5
[ "Apache-2.0" ]
209
2015-01-16T14:14:20.000Z
2022-01-20T16:19:24.000Z
pydoop/avrolib.py
timgates42/pydoop
438c92ed34e2d4f12db7cc1ea3a7ed094206c3a5
[ "Apache-2.0" ]
63
2015-01-29T08:44:25.000Z
2021-12-24T03:25:15.000Z
# BEGIN_COPYRIGHT # # Copyright 2009-2021 CRS4. # # 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 ...
29.723684
77
0.650509
9684868480242485f4241b41ea4ee0370af4684b
28,806
py
Python
tests/ignite/engine/test_engine.py
jkhenning/ignite
c3f80910fb39ee101f07afe21172754c01026927
[ "BSD-3-Clause" ]
1
2021-08-10T05:32:29.000Z
2021-08-10T05:32:29.000Z
tests/ignite/engine/test_engine.py
rishabhvarshney14/ignite
2485fd42c6ef4d3e97fd606a52f8c6e5d940357e
[ "BSD-3-Clause" ]
null
null
null
tests/ignite/engine/test_engine.py
rishabhvarshney14/ignite
2485fd42c6ef4d3e97fd606a52f8c6e5d940357e
[ "BSD-3-Clause" ]
null
null
null
import os import time from unittest.mock import MagicMock, Mock, call import numpy as np import pytest import torch import ignite.distributed as idist from ignite.engine import Engine, Events, State from ignite.engine.deterministic import keep_random_state from ignite.metrics import Average from tests.ignite.engine i...
30.710021
120
0.701278
1e62c6075e1a538d302950bb74ea101fc2dbb005
747
py
Python
dizoo/gfootball/envs/reward/gfootball_reward_runner.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
464
2021-07-08T07:26:33.000Z
2022-03-31T12:35:16.000Z
dizoo/gfootball/envs/reward/gfootball_reward_runner.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
177
2021-07-09T08:22:55.000Z
2022-03-31T07:35:22.000Z
dizoo/gfootball/envs/reward/gfootball_reward_runner.py
LuciusMos/DI-engine
b040b1c36afce038effec9eb483f625131573824
[ "Apache-2.0" ]
92
2021-07-08T12:16:37.000Z
2022-03-31T09:24:41.000Z
import copy import torch from ding.envs.common import EnvElementRunner from ding.envs.env.base_env import BaseEnv from .gfootball_reward import GfootballReward class GfootballRewardRunner(EnvElementRunner): def _init(self, cfg, *args, **kwargs) -> None: # set self._core and other state variable ...
26.678571
53
0.694779
9b7eef3c03ad5549e0b4196b28ac01c98fd1ddc0
7,433
py
Python
tests/test_queuing_context.py
hsim13372/pennylane
1fae4c3412d60e1a792836551d7071f0ffd0fae0
[ "Apache-2.0" ]
null
null
null
tests/test_queuing_context.py
hsim13372/pennylane
1fae4c3412d60e1a792836551d7071f0ffd0fae0
[ "Apache-2.0" ]
1
2020-04-15T07:30:31.000Z
2020-04-15T07:30:31.000Z
tests/test_queuing_context.py
hsim13372/pennylane
1fae4c3412d60e1a792836551d7071f0ffd0fae0
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2020 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
38.117949
106
0.692318
a169718fab92094995401d63290d2f07d1346b14
4,261
py
Python
Python/cameo/trackers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/cameo/trackers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
Python/cameo/trackers.py
abondar24/OpenCVBase
9b23e3b31304e77ad1135d90efb41e3dc069194a
[ "Apache-2.0" ]
null
null
null
import cv2 import rects import utils class Face(object): """Data on facial features: face, eyes, nose, mouth""" def __init__(self): self.face_rect = None self.left_eye_rect = None self.right_eye_rect = None self.nose_rect = None self.mouth_rect = None class FaceTrack...
35.214876
119
0.578503
d5bf5e165714d922b2d6763e1202b20e6be3b7ca
808
py
Python
28-KMP/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
28-KMP/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
28-KMP/solution.py
alfmunny/leetcode
e35d2164c7e6e66410309fe1667ceab5a7689bef
[ "MIT" ]
null
null
null
class Solution: def __init__(self, pat): self.pat = pat self.dp = [] self.KMP(self.pat) def KMP(self, pat): M = len(pat) self.dp = [[0] * 256 for _ in range(M)] self.dp[0][ord(pat[0])] = 1 X = 0 for j in range(1, M): for c in range(2...
21.837838
49
0.404703
6d7f49f8cda19c1f9ce2beffdaabfcf34f5ce6da
5,200
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_01_01/operations/_express_route_service_providers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_01_01/operations/_express_route_service_providers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_01_01/operations/_express_route_service_providers_operations.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
45.614035
135
0.664423
9263e5a3eabc4deb4ea72b57ac8b3b0070df5b2b
1,214
py
Python
ejercicio1.py/Animales.py
acasasaez/examen_Poo
65a421574f0656b34aecfcb40ec34b770a2c79b3
[ "Apache-2.0" ]
null
null
null
ejercicio1.py/Animales.py
acasasaez/examen_Poo
65a421574f0656b34aecfcb40ec34b770a2c79b3
[ "Apache-2.0" ]
null
null
null
ejercicio1.py/Animales.py
acasasaez/examen_Poo
65a421574f0656b34aecfcb40ec34b770a2c79b3
[ "Apache-2.0" ]
null
null
null
class Animal(): #Clase Animal def __init__(self,name): #Cuenta con el atributo name self.name=name #self.name toma el valor de name class Mamifero(Animal): #Mamífero hereda de la clase animal (métodos y atributos y no son vriados) def __init__(self,name): Animal.__init__(self,name) class Ovi...
48.56
199
0.737232
d53239e3550c15a1a0ede84e33b6222d8d46f620
12,851
py
Python
symphony/bdk/gen/agent_model/room_created_message.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
17
2018-09-06T09:58:18.000Z
2021-07-13T12:54:20.000Z
symphony/bdk/gen/agent_model/room_created_message.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
59
2018-11-21T15:17:57.000Z
2021-08-03T10:00:43.000Z
symphony/bdk/gen/agent_model/room_created_message.py
symphony-elias/symphony-bdk-python
0d1cd94a9982e3687ea52c49acdb5f942ecd9bec
[ "Apache-2.0" ]
37
2018-09-01T03:07:48.000Z
2021-07-06T10:21:50.000Z
""" Agent API This document refers to Symphony API calls to send and receive messages and content. They need the on-premise Agent installed to perform decryption/encryption of content. - sessionToken and keyManagerToken can be obtained by calling the authenticationAPI on the symphony back end and the key mana...
45.733096
1,241
0.610303
cb9ec92b950cbd439222f44750c21f2807729f6b
38,347
py
Python
sqa/weaksp/sempar/executors/wikitable_executor.py
WDZRMPCBIT/SCoRE
c426e58c253f5d97fc4ad0e0fea9606f70cff872
[ "MIT" ]
null
null
null
sqa/weaksp/sempar/executors/wikitable_executor.py
WDZRMPCBIT/SCoRE
c426e58c253f5d97fc4ad0e0fea9606f70cff872
[ "MIT" ]
null
null
null
sqa/weaksp/sempar/executors/wikitable_executor.py
WDZRMPCBIT/SCoRE
c426e58c253f5d97fc4ad0e0fea9606f70cff872
[ "MIT" ]
null
null
null
from typing import List, Dict, Tuple, Union, Any from collections import defaultdict import logging from allennlp.semparse import util as semparse_util from allennlp.semparse.worlds.world import ExecutionError from allennlp.semparse.contexts.table_question_knowledge_graph import MONTH_NUMBERS from allennlp.semp...
48.23522
108
0.612721
617579dd380a4caf539e1789a77a386aefb8127a
2,197
py
Python
error_fit.py
chamillj/SDN-data-with-LSTM
9dba368a5251872b1d2fef589520f137013112f8
[ "MIT" ]
null
null
null
error_fit.py
chamillj/SDN-data-with-LSTM
9dba368a5251872b1d2fef589520f137013112f8
[ "MIT" ]
null
null
null
error_fit.py
chamillj/SDN-data-with-LSTM
9dba368a5251872b1d2fef589520f137013112f8
[ "MIT" ]
2
2019-04-30T11:28:44.000Z
2022-02-17T08:43:08.000Z
from keras.models import load_model from data_import import analyse_data, prepare_data import numpy as np from lstm import build_lstm import h5py import matplotlib.pyplot as plt from scipy.stats import norm, multivariate_normal from sklearn.preprocessing import MinMaxScaler import pickle def generate_error(model, X, ...
29.293333
108
0.651798
f67fba486e0bfa01da3a2e662a00fff396056b20
3,661
py
Python
neurodsp/tests/sim/test_aperiodic.py
voytekresearch/neurodsp
a44845fb3638a5cc72b11eef340fb22e917c22e8
[ "MIT" ]
40
2017-06-21T08:56:04.000Z
2019-01-24T03:36:10.000Z
neurodsp/tests/sim/test_aperiodic.py
voytekresearch/neurodsp
a44845fb3638a5cc72b11eef340fb22e917c22e8
[ "MIT" ]
106
2017-06-21T01:01:48.000Z
2019-01-24T03:09:16.000Z
neurodsp/tests/sim/test_aperiodic.py
voytekresearch/neurodsp
a44845fb3638a5cc72b11eef340fb22e917c22e8
[ "MIT" ]
16
2017-06-20T18:58:16.000Z
2018-11-23T17:20:27.000Z
"""Tests for neurodsp.sim.aperiodic.""" import pytest import numpy as np from scipy.stats import skew, kurtosis from scipy.optimize import curve_fit from neurodsp.tests.settings import N_SECONDS, FS, EXP1, EXP2, KNEE, EPS from neurodsp.tests.tutils import check_sim_output, check_exponent from neurodsp.sim.aperiodic...
33.898148
99
0.671128
c4e279d09562a4bc3000c0977727c41b60d71bf0
13,805
py
Python
tests/templates/test_embeddings/test_qaoa_emb.py
doomhammerhell/pennylane
f147f22d8d99ba5891edd45a6a1f7dd679c8a23c
[ "Apache-2.0" ]
712
2020-07-29T03:46:52.000Z
2022-03-27T11:21:51.000Z
tests/templates/test_embeddings/test_qaoa_emb.py
doomhammerhell/pennylane
f147f22d8d99ba5891edd45a6a1f7dd679c8a23c
[ "Apache-2.0" ]
1,627
2020-07-28T13:07:58.000Z
2022-03-31T21:47:29.000Z
tests/templates/test_embeddings/test_qaoa_emb.py
doomhammerhell/pennylane
f147f22d8d99ba5891edd45a6a1f7dd679c8a23c
[ "Apache-2.0" ]
249
2020-07-29T03:26:18.000Z
2022-03-31T19:59:48.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
34.598997
100
0.601087
c154e2d220dde63638adee2f375c5e018fccff46
1,224
py
Python
pyfastq_reader/__init__.py
ahcm/pyfastq_reader
d65ff88f17b7515587909407fca620ad50a36fe5
[ "MIT" ]
1
2019-01-28T09:31:41.000Z
2019-01-28T09:31:41.000Z
pyfastq_reader/__init__.py
ahcm/pyfastq_reader
d65ff88f17b7515587909407fca620ad50a36fe5
[ "MIT" ]
null
null
null
pyfastq_reader/__init__.py
ahcm/pyfastq_reader
d65ff88f17b7515587909407fca620ad50a36fe5
[ "MIT" ]
1
2020-04-11T04:58:27.000Z
2020-04-11T04:58:27.000Z
#!/usr/bin/env python3 # MIT License see LICENSE # -- Andy Hauser <Andreas.Hauser@LMU.de> from __future__ import print_function import sys def fasta_reader(filename): return fasta_reader_fh(open(filename, 'r')) def fasta_reader_fh(infile): name = infile.readline().rstrip() while True: seq = "" for s in...
19.741935
50
0.564542
0f29cd8b96bf5e1b9eebe2569ef7cd27216418f4
904
py
Python
tests/asyncio/test_worker.py
grignards/sqlalchemy_aio
cbcc9e4503cd0183fa6d12db9ea812544867e1c3
[ "MIT" ]
321
2016-10-04T12:58:42.000Z
2022-01-19T13:47:53.000Z
tests/asyncio/test_worker.py
grignards/sqlalchemy_aio
cbcc9e4503cd0183fa6d12db9ea812544867e1c3
[ "MIT" ]
42
2017-07-10T17:41:51.000Z
2022-03-16T08:59:56.000Z
tests/asyncio/test_worker.py
grignards/sqlalchemy_aio
cbcc9e4503cd0183fa6d12db9ea812544867e1c3
[ "MIT" ]
25
2016-10-10T08:45:31.000Z
2021-08-04T05:44:37.000Z
import asyncio import pytest from sqlalchemy_aio import AlreadyQuit from sqlalchemy_aio.asyncio import AsyncioThreadWorker @pytest.mark.asyncio async def test_already_quit(): worker = AsyncioThreadWorker() await worker.quit() with pytest.raises(AlreadyQuit): await worker.run(lambda: None) w...
22.6
65
0.701327
13a037a5dcb50998cf07b29f3cb8f576ac9507f5
1,088
py
Python
setup.py
oshaughnessy/cdk-sam-lambda-rest
f499793a59618d0fb6df826ceb0dcebb4ac99db9
[ "MIT" ]
1
2021-08-13T15:52:49.000Z
2021-08-13T15:52:49.000Z
setup.py
oshaughnessy/cdk-sam-lambda-rest
f499793a59618d0fb6df826ceb0dcebb4ac99db9
[ "MIT" ]
null
null
null
setup.py
oshaughnessy/cdk-sam-lambda-rest
f499793a59618d0fb6df826ceb0dcebb4ac99db9
[ "MIT" ]
null
null
null
import setuptools with open("README.md") as fp: long_description = fp.read() setuptools.setup( name="cdk_sam_lambda_rest", version="0.0.1", description="An empty CDK Python app", long_description=long_description, long_description_content_type="text/markdown", author="author", pac...
23.148936
59
0.604779
2afc89eedac655f72de7cdc4badf3469a55e3218
23
py
Python
gfapy/line/group/path/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
44
2017-03-18T08:08:04.000Z
2021-11-10T16:11:15.000Z
gfapy/line/group/path/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
22
2017-04-04T21:20:31.000Z
2022-03-09T19:05:30.000Z
gfapy/line/group/path/__init__.py
ujjwalsh/gfapy
891ef3df695f20c67809e5a54549c876d90690b4
[ "ISC" ]
5
2017-07-07T02:56:56.000Z
2020-09-30T20:10:49.000Z
from .path import Path
11.5
22
0.782609
726c25aeb160808d2931dc704201428b040afac6
17,463
py
Python
python/ray/tune/tests/test_cluster.py
mikewlange/ray
48fdebf9569bef6f1259c100c719efad696b78e3
[ "Apache-2.0" ]
1
2019-12-09T03:10:57.000Z
2019-12-09T03:10:57.000Z
python/ray/tune/tests/test_cluster.py
anhuaxiang/ray
1a9948eef940e702aad07dac4d89db0113a7e3d4
[ "Apache-2.0" ]
null
null
null
python/ray/tune/tests/test_cluster.py
anhuaxiang/ray
1a9948eef940e702aad07dac4d89db0113a7e3d4
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import inspect import json import time import os import pytest import shutil import sys import ray from ray import tune from ray.rllib import _register_all from ray.cluster_utils import Cluster from ray.test_u...
29.008306
79
0.660826
2fba2a36d7b0c4093f5cabc19f0bcee33b09742e
59,693
py
Python
test/test_support.py
stefanor/pyexpat-cffi
b8d3353081d62b5cb7b97643d30eb39496b059b3
[ "PSF-2.0" ]
null
null
null
test/test_support.py
stefanor/pyexpat-cffi
b8d3353081d62b5cb7b97643d30eb39496b059b3
[ "PSF-2.0" ]
null
null
null
test/test_support.py
stefanor/pyexpat-cffi
b8d3353081d62b5cb7b97643d30eb39496b059b3
[ "PSF-2.0" ]
null
null
null
"""Supporting definitions for the Python regression tests.""" if __name__ != 'test.test_support': raise ImportError('test_support must be imported from the test package') import contextlib import errno import functools import gc import socket import sys import os import platform import shutil import warnings impo...
35.51041
95
0.616957
27c1e4e53b6c905f94952661db3d688f6885bdfb
4,909
py
Python
applications/timeflow/pages/epic_areas.py
dyvenia/timeflow
7852872f591fbdb88be19f7b41ebb226e805fbd9
[ "MIT" ]
3
2022-02-24T10:51:22.000Z
2022-03-27T08:54:35.000Z
applications/timeflow/pages/epic_areas.py
dyvenia/timeflow
7852872f591fbdb88be19f7b41ebb226e805fbd9
[ "MIT" ]
62
2022-02-15T09:52:52.000Z
2022-03-31T12:50:13.000Z
applications/timeflow/pages/epic_areas.py
dyvenia/timeflow
7852872f591fbdb88be19f7b41ebb226e805fbd9
[ "MIT" ]
4
2022-03-02T15:24:03.000Z
2022-03-30T10:59:38.000Z
from idom import html, use_state, component, event from uiflow.components.controls import ( activation_button, deactivation_button, submit_button, Button, ) from uiflow.components.input import Input, Selector2 from uiflow.components.layout import Row, Column, Container from uiflow.components.table impo...
29.572289
88
0.642086