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
f1a6184fa2d53d7b5baa96f74858af1bfa6bb07d
707
py
Python
example/complex_factories_sample/migrations/0003_hasautoslugexample.py
kaoslabsinc/django-building-blocks
b5f74121b4002e2b96b5addd6f2593c1a2cead98
[ "BSD-3-Clause" ]
1
2021-08-03T12:42:37.000Z
2021-08-03T12:42:37.000Z
example/complex_factories_sample/migrations/0003_hasautoslugexample.py
kaoslabsinc/django-building-blocks
b5f74121b4002e2b96b5addd6f2593c1a2cead98
[ "BSD-3-Clause" ]
4
2021-07-27T18:22:35.000Z
2021-08-06T21:55:39.000Z
example/complex_factories_sample/migrations/0003_hasautoslugexample.py
kaoslabsinc/django-building-blocks
b5f74121b4002e2b96b5addd6f2593c1a2cead98
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-27 00:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('complex_factories_sample', '0002_hasautocodegeneratefunctionexample'), ] operations = [ migrations.CreateModel( name='HasAutoSlu...
28.28
117
0.577086
ee4b91a0875fe093ad5e3948fb3edd18c322e9e8
19,293
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/18-sender_receiver_35.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/18-sender_receiver_35.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_timed_transition_system/18-sender_receiver_35.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet from collections import Iterable from math import log, ceil from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msa...
38.053254
89
0.579226
ba62ea267175dae4e3191a0bd55fee8d9e39dea7
15,301
py
Python
setup.py
phamlehuy53/mmcv
519b4ec028bdf2cc4ec32195fb78e6111774a004
[ "Apache-2.0" ]
1
2021-08-22T14:47:13.000Z
2021-08-22T14:47:13.000Z
setup.py
zsinba/mmcv
f31f1cdb8ee6671a512d6756d2f0dfd68d04272f
[ "Apache-2.0" ]
null
null
null
setup.py
zsinba/mmcv
f31f1cdb8ee6671a512d6756d2f0dfd68d04272f
[ "Apache-2.0" ]
1
2020-12-10T08:35:35.000Z
2020-12-10T08:35:35.000Z
import glob import os import platform import re from pkg_resources import DistributionNotFound, get_distribution from setuptools import find_packages, setup EXT_TYPE = '' try: import torch if torch.__version__ == 'parrots': from parrots.utils.build_extension import BuildExtension EXT_TYPE = 'pa...
39.639896
125
0.588785
ecf47c21389da8806ec1dc196d69d07887e5acf2
318
py
Python
Google/Google CodeJam Preparation/temp.py
EldiiarDzhunusov/Code
6b0708e4007233d3efdc74c09d09ee5bc377a45d
[ "MIT" ]
2
2020-10-12T06:50:03.000Z
2021-06-08T17:19:43.000Z
Google/Google CodeJam Preparation/temp.py
EldiiarDzhunusov/Code
6b0708e4007233d3efdc74c09d09ee5bc377a45d
[ "MIT" ]
null
null
null
Google/Google CodeJam Preparation/temp.py
EldiiarDzhunusov/Code
6b0708e4007233d3efdc74c09d09ee5bc377a45d
[ "MIT" ]
1
2020-12-22T16:44:50.000Z
2020-12-22T16:44:50.000Z
t= int(input("")) while t!=0: c=1 size = int(input("")) lydia = list(input("")) myroad=[] for i in range(len(lydia)): if lydia[i]=="E": myroad.append("S") else: myroad.append("E") print("Case #{}:".format(c),"".join(myroad)) c +=1 t -=1
19.875
48
0.433962
4bb73b7aaa5b7699ed617db6c7d9b0b3afb94442
4,988
py
Python
bilean/common/utils.py
lvdongbing/bilean
592f5fb53e3bceee35a01d0171905b282bc9a3db
[ "Apache-2.0" ]
2
2016-01-03T11:20:42.000Z
2016-01-06T06:41:51.000Z
bilean/common/utils.py
lvdongbing/bilean
592f5fb53e3bceee35a01d0171905b282bc9a3db
[ "Apache-2.0" ]
null
null
null
bilean/common/utils.py
lvdongbing/bilean
592f5fb53e3bceee35a01d0171905b282bc9a3db
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed unde...
31.56962
79
0.679631
ad98409ffd63e1c06ba579a91fcfd251d351303a
219
py
Python
aioalice/utils/json.py
mahenzon/aioalice
f87b2e24c42444b5cb274c95eff20555314ec4f6
[ "MIT" ]
33
2019-09-22T16:35:40.000Z
2022-03-24T11:24:05.000Z
aioalice/utils/json.py
mahenzon/aioalice
f87b2e24c42444b5cb274c95eff20555314ec4f6
[ "MIT" ]
7
2019-09-26T17:43:01.000Z
2021-02-24T21:08:48.000Z
aioalice/utils/json.py
mahenzon/aioalice
f87b2e24c42444b5cb274c95eff20555314ec4f6
[ "MIT" ]
11
2019-09-26T09:51:59.000Z
2022-03-14T16:14:12.000Z
try: import simplejson as json except ImportError: try: import rapidjson as json except ImportError: try: import ujson as json except ImportError: import json
19.909091
32
0.593607
2b88e21162f95e512abb40c2a44e9511c85c43db
1,027
py
Python
apps/markets3/migrations/0003_auto_20160802_1306.py
uktrade/enav-alpha
8d38f05763367ca6b6747203241f267612fd6e44
[ "MIT" ]
null
null
null
apps/markets3/migrations/0003_auto_20160802_1306.py
uktrade/enav-alpha
8d38f05763367ca6b6747203241f267612fd6e44
[ "MIT" ]
67
2016-07-11T12:57:58.000Z
2016-08-08T12:59:19.000Z
apps/markets3/migrations/0003_auto_20160802_1306.py
UKTradeInvestment/enav-alpha
8d38f05763367ca6b6747203241f267612fd6e44
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-02 13:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('markets3', '0002_market_platform_type'), ] operations = [ migrations.AddFiel...
31.121212
111
0.550146
642ca6d7b895cf09e78cd91aee64b6e8f60a9bdd
1,262
py
Python
plugins/digitalbitbox/qt.py
BTCPrivate/electrum-bitcoinprivate
d18dbd83353d006136bc986e143e19dbb954c36a
[ "MIT" ]
1
2021-04-02T20:35:15.000Z
2021-04-02T20:35:15.000Z
plugins/digitalbitbox/qt.py
ArdeshirV/electrum-bitcoinprivate
d18dbd83353d006136bc986e143e19dbb954c36a
[ "MIT" ]
null
null
null
plugins/digitalbitbox/qt.py
ArdeshirV/electrum-bitcoinprivate
d18dbd83353d006136bc986e143e19dbb954c36a
[ "MIT" ]
1
2021-04-06T18:34:31.000Z
2021-04-06T18:34:31.000Z
from functools import partial from ..hw_wallet.qt import QtHandlerBase, QtPluginBase from .digitalbitbox import DigitalBitboxPlugin from electrum_bitcoinprivate.i18n import _ from electrum_bitcoinprivate.plugins import hook from electrum_bitcoinprivate.wallet import Standard_Wallet class Plugin(DigitalBitboxPlugin,...
28.681818
91
0.693344
ae821e00f9cbe2cf504b6b2f1485e72948385fa2
20,108
py
Python
ebcli/operations/platform_version_ops.py
sdolenc/aws-elastic-beanstalk-cli
4167a38bd599a4433c62c1d3516b8836248a4171
[ "Apache-2.0" ]
110
2020-01-15T22:58:46.000Z
2022-03-27T20:47:33.000Z
ebcli/operations/platform_version_ops.py
QPC-database/aws-elastic-beanstalk-cli
87ad9d8bbe5e4e7cb01b1bd4392eda33cb1943f7
[ "Apache-2.0" ]
89
2020-01-15T23:18:34.000Z
2022-03-31T21:56:05.000Z
ebcli/operations/platform_version_ops.py
QPC-database/aws-elastic-beanstalk-cli
87ad9d8bbe5e4e7cb01b1bd4392eda33cb1943f7
[ "Apache-2.0" ]
50
2020-01-15T22:58:53.000Z
2022-02-11T17:39:28.000Z
# Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
31.517241
109
0.701562
20a6c985d526f34522849a1ac0510dc9b1aa909f
1,595
py
Python
tools/vscode-extension/server/tests/test_imports.py
orlandoojr1/wave
e86d0c87c6c67e510fb4e1fa571982ca0a09f33c
[ "Apache-2.0" ]
1
2022-03-02T21:54:36.000Z
2022-03-02T21:54:36.000Z
tools/vscode-extension/server/tests/test_imports.py
orlandoojr1/wave
e86d0c87c6c67e510fb4e1fa571982ca0a09f33c
[ "Apache-2.0" ]
null
null
null
tools/vscode-extension/server/tests/test_imports.py
orlandoojr1/wave
e86d0c87c6c67e510fb4e1fa571982ca0a09f33c
[ "Apache-2.0" ]
null
null
null
import os from server.lsp_server import did_save from server.parser import read_file from server.tests.utils import BaseTestCase, FakeSaveParams, root_uri class TestImportCompletions(BaseTestCase): def test_import_deps(self): self.assert_state('q.client.', doc_uri=os.path.join(root_uri, 'utils.py')) ...
43.108108
100
0.692163
3d60411b9169a34fe013df41882bae4d5b49762b
56,886
py
Python
drgpom/methods/biomarkers/neuron_biomarkers.py
oliverbritton/drg-pom
8a1455db7791b35501071070b4c74c5b83283dbf
[ "MIT" ]
1
2021-05-11T20:10:42.000Z
2021-05-11T20:10:42.000Z
drgpom/methods/biomarkers/neuron_biomarkers.py
oliverbritton/drg-pom
8a1455db7791b35501071070b4c74c5b83283dbf
[ "MIT" ]
null
null
null
drgpom/methods/biomarkers/neuron_biomarkers.py
oliverbritton/drg-pom
8a1455db7791b35501071070b4c74c5b83283dbf
[ "MIT" ]
null
null
null
# neuron_biomarkers.py # calculation of AP biomarkers from neuronal voltage traces import sys import numpy as np import pandas as pd from scipy import optimize from matplotlib import pyplot as plt from . import davidson_biomarkers as db from .. import simulation_helpers as sh from .. import analysis as an # Biomarke...
39.586639
302
0.628116
c40f60e0a299755f90374a3d9149113439d53a84
9,589
py
Python
netbox_onboarding/tests/test_views.py
hoanhan101/ntc-netbox-plugin-onboarding
09764a0ac68e948accbd9346ea0f1ae0af569e3d
[ "Apache-2.0" ]
null
null
null
netbox_onboarding/tests/test_views.py
hoanhan101/ntc-netbox-plugin-onboarding
09764a0ac68e948accbd9346ea0f1ae0af569e3d
[ "Apache-2.0" ]
null
null
null
netbox_onboarding/tests/test_views.py
hoanhan101/ntc-netbox-plugin-onboarding
09764a0ac68e948accbd9346ea0f1ae0af569e3d
[ "Apache-2.0" ]
null
null
null
"""Unit tests for netbox_onboarding views. (c) 2020 Network To Code 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 ...
41.691304
113
0.689957
0c946e23d9d9365b94324eeb63a27760eff8239c
1,609
py
Python
var/spack/repos/builtin/packages/espanso/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/espanso/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/espanso/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 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) from spack import * class Espanso(Package): """Cross-platform Text Expander written in Rust""" homepage = "https...
48.757576
104
0.778745
f97274119f9a359f25f3495d71e742f9f229fbe1
69
py
Python
routes/api_admin.py
ashhosts/kittenpanel
1463253f107262e97722ebb7d6bd939040d66c26
[ "MIT" ]
1
2021-08-30T11:53:59.000Z
2021-08-30T11:53:59.000Z
routes/api_admin.py
ashhosts/kittenpanel
1463253f107262e97722ebb7d6bd939040d66c26
[ "MIT" ]
null
null
null
routes/api_admin.py
ashhosts/kittenpanel
1463253f107262e97722ebb7d6bd939040d66c26
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter(prefix="/api/admin")
34.5
39
0.797101
18aed31fe65fa56bb74ee7808271b15da926ce29
4,661
py
Python
v2.5.7/toontown/minigame/TwoDSection.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/minigame/TwoDSection.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/minigame/TwoDSection.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from panda3d.core import * from direct.directnotify import DirectNotifyGlobal from direct.showbase.DirectObject import DirectObject from toontown.minigame import ToonBlitzGlobals from toontown.minigame import TwoDBlock from toontown.minigame import TwoDEnemyMgr from toontown.minigame import TwoDTreasureMgr from toontow...
36.700787
111
0.661017
52f4cde386c35bfd9ee3b632cfc39521dd7f177b
259
py
Python
manage_beta.py
damienlaine/djoro-server
7f167662732e6106aa6be8b1e835f6321a981dc6
[ "MIT" ]
null
null
null
manage_beta.py
damienlaine/djoro-server
7f167662732e6106aa6be8b1e835f6321a981dc6
[ "MIT" ]
3
2020-02-12T03:12:33.000Z
2021-06-10T21:59:04.000Z
manage_beta.py
damienlaine/djoro-server
7f167662732e6106aa6be8b1e835f6321a981dc6
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "djoro_server.settings_beta") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
25.9
81
0.783784
eb5219c12db6ce3577f19a7b047517b452000d1a
6,692
py
Python
OmniDB/OmniDB/settings.py
mapcoding-cn/omnidb-cn
f7cbd29b4cdbc68eb5c4c25c9703ac9448c54b0a
[ "MIT" ]
2
2022-03-28T06:26:53.000Z
2022-03-29T04:28:54.000Z
OmniDB/OmniDB/settings.py
mapcoding-cn/OmniDB
f7cbd29b4cdbc68eb5c4c25c9703ac9448c54b0a
[ "MIT" ]
null
null
null
OmniDB/OmniDB/settings.py
mapcoding-cn/OmniDB
f7cbd29b4cdbc68eb5c4c25c9703ac9448c54b0a
[ "MIT" ]
null
null
null
import os import sys import shutil import random import string import getpass from . import custom_settings #import ldap #import django_auth_ldap #import django_auth_ldap.config # Development Mode DEBUG = custom_settings.DEV_MODE DESKTOP_MODE = custom_settings.DESKTOP_MODE BASE_DIR = custom_settings.BASE_DIR HOME_DIR...
29.875
98
0.639719
7a71b4a62ca5c2b94bf6dddd55a086b19f0a37d8
242
py
Python
src/oscar/apps/wishlists/apps.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
src/oscar/apps/wishlists/apps.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
5
2021-05-28T19:38:28.000Z
2022-03-12T00:45:39.000Z
src/oscar/apps/wishlists/apps.py
Jean1508/ya-madoa
1ffb1d11e15bf33e4c3a09698675a4357e887eaa
[ "BSD-3-Clause" ]
null
null
null
from django.utils.translation import gettext_lazy as _ from oscar.core.application import OscarConfig class WishlistsConfig(OscarConfig): label = 'wishlists' name = 'oscar.apps.wishlists' verbose_name = _('Wishlists')
24.2
55
0.731405
03ce15e39cf7c42d2dff2639579cebb966e36851
3,529
py
Python
Machine_Learning/Feature_Tutorials/02-profiling-example/files/alexnet_zcu102/common/dputils.py
mkolod/Vitis-Tutorials
33d6cf9686398ef1179778dc0da163291c68b465
[ "Apache-2.0" ]
3
2020-10-29T15:00:30.000Z
2021-10-21T08:09:34.000Z
Machine_Learning/Feature_Tutorials/02-profiling-example/files/alexnet_zcu102/common/dputils.py
mkolod/Vitis-Tutorials
33d6cf9686398ef1179778dc0da163291c68b465
[ "Apache-2.0" ]
20
2020-10-31T03:19:03.000Z
2020-11-02T18:59:49.000Z
Machine_Learning/Feature_Tutorials/02-profiling-example/files/alexnet_zcu102/common/dputils.py
mkolod/Vitis-Tutorials
33d6cf9686398ef1179778dc0da163291c68b465
[ "Apache-2.0" ]
9
2020-10-14T02:04:10.000Z
2020-12-01T08:23:02.000Z
''' Copyright 2019 Xilinx Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
42.518072
103
0.665061
5343e380683f1555be794e3bf29dcad44a5421db
2,168
py
Python
WWV_utility2.py
rkayakr/ProcessPolt
6952b812f151f941b46592540e205770b8cfa38e
[ "CC0-1.0" ]
1
2021-11-17T12:41:00.000Z
2021-11-17T12:41:00.000Z
WWV_utility2.py
rkayakr/ProcessPolt
6952b812f151f941b46592540e205770b8cfa38e
[ "CC0-1.0" ]
null
null
null
WWV_utility2.py
rkayakr/ProcessPolt
6952b812f151f941b46592540e205770b8cfa38e
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ 20 February 2020 WWV utility file Routines and classes used in WWV file management and graphing David Kazdan, AD8Y John Gibbons, N8OBJ - mods to plot header 2/3/20 """ #%% utility function needed here to convert ISO time into decimal hours def time_string_to_decimals(time_string...
41.692308
159
0.649446
9ac04ed66f2122f3cdadca94f5f1e0b0bed2ad9d
18,810
py
Python
test/functional/test_framework/util.py
stamhe/bitcoin-abc
a1ba303c6b4f164ae94612e83b824e564405a96e
[ "MIT" ]
1
2022-01-09T22:29:10.000Z
2022-01-09T22:29:10.000Z
test/functional/test_framework/util.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
17
2021-08-06T21:27:41.000Z
2022-03-31T08:28:08.000Z
test/functional/test_framework/util.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-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. """Helpful routines for regression testing.""" import inspect import json import logging import os import...
34.833333
111
0.632483
96e2bfd7397f358bd9511ab0b3c963337f174c60
869
py
Python
setup.py
dchoruzy/django_admin_sticky_notes
3e2643dbbf1c405d82852281fd1398a7f02419b6
[ "MIT" ]
6
2021-09-08T04:45:21.000Z
2021-09-14T17:44:30.000Z
setup.py
dchoruzy/django_admin_sticky_notes
3e2643dbbf1c405d82852281fd1398a7f02419b6
[ "MIT" ]
null
null
null
setup.py
dchoruzy/django_admin_sticky_notes
3e2643dbbf1c405d82852281fd1398a7f02419b6
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r", encoding="utf-8") as fh: long_description = fh.read() setuptools.setup( name="django-admin-sticky-notes", version="1.0.0", author="Dariusz Choruzy", author_email="dariusz.choruzy@gmail.com", description="Django admin sticky notes", long_descrip...
32.185185
86
0.670886
3130f1a4242a80d0415cd24010fe42a0cc199485
1,607
py
Python
example/simple_example.py
jupiterbak/FAPSDemonstratorAPI
4a6f4f251a9836676577509b5cfe72ee3ffbb1d1
[ "MIT" ]
1
2018-11-25T20:58:13.000Z
2018-11-25T20:58:13.000Z
example/simple_example.py
jupiterbak/FAPSDemonstratorAPI
4a6f4f251a9836676577509b5cfe72ee3ffbb1d1
[ "MIT" ]
null
null
null
example/simple_example.py
jupiterbak/FAPSDemonstratorAPI
4a6f4f251a9836676577509b5cfe72ee3ffbb1d1
[ "MIT" ]
null
null
null
#!/usr/bin/python import pika from FAPSDemonstratorAPI import Command, CommandMode, ParameterMode, Program print('pika version: %s' % pika.__version__) if __name__ == '__main__': demonstrator_program = Program() if demonstrator_program.connect(): demonstrator_program.reset() d...
31.509804
76
0.439328
6f71e9e01ed5f23e0de0b75a0c70747bbc5a0316
26,028
py
Python
lte/gateway/python/magma/pipelined/service_manager.py
parthiban337/magma
51bc4c02aa7214821ebefcc94a201e9740730aa4
[ "BSD-3-Clause" ]
null
null
null
lte/gateway/python/magma/pipelined/service_manager.py
parthiban337/magma
51bc4c02aa7214821ebefcc94a201e9740730aa4
[ "BSD-3-Clause" ]
70
2021-05-31T08:39:40.000Z
2022-03-25T16:31:46.000Z
lte/gateway/python/magma/pipelined/service_manager.py
kkahrs/magma
73e666627dc28e0c492feab7321bb7d6dd433b09
[ "BSD-3-Clause" ]
1
2021-07-07T14:26:13.000Z
2021-07-07T14:26:13.000Z
#!/usr/bin/env python3 """ Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASI...
40.228748
103
0.653642
ef12ced7493df356515c5c25c59fc6157ba2d5a0
3,204
py
Python
lyrebird/mock/handlers/proxy_handler.py
Rena-Yuan/lyrebird
f350a080c38dcb2acd6be2ca960fa094be51f557
[ "MIT" ]
737
2019-02-20T06:51:50.000Z
2022-03-31T09:00:32.000Z
lyrebird/mock/handlers/proxy_handler.py
Rena-Yuan/lyrebird
f350a080c38dcb2acd6be2ca960fa094be51f557
[ "MIT" ]
203
2019-02-19T02:57:29.000Z
2022-03-30T11:11:32.000Z
lyrebird/mock/handlers/proxy_handler.py
Rena-Yuan/lyrebird
f350a080c38dcb2acd6be2ca960fa094be51f557
[ "MIT" ]
140
2019-02-18T03:32:50.000Z
2022-03-18T03:37:39.000Z
import urllib import requests from requests.packages import urllib3 from flask import Response, jsonify, stream_with_context from .. import context from lyrebird import application from lyrebird.log import get_logger from lyrebird.mock import lb_http_status from .duplicate_request_handler import DuplicateRequest import...
33.030928
131
0.598627
155864547f90034b4ab64b78b9798314af980ad8
30,516
py
Python
main.py
ajoaoff/mef_eline
a63869068e001c55c81235b83934ae29017a1796
[ "MIT" ]
null
null
null
main.py
ajoaoff/mef_eline
a63869068e001c55c81235b83934ae29017a1796
[ "MIT" ]
null
null
null
main.py
ajoaoff/mef_eline
a63869068e001c55c81235b83934ae29017a1796
[ "MIT" ]
null
null
null
"""Main module of kytos/mef_eline Kytos Network Application. NApp to provision circuits from user request. """ import time from threading import Lock from flask import jsonify, request from werkzeug.exceptions import (BadRequest, Conflict, Forbidden, MethodNotAllowed, NotFound, ...
36.502392
79
0.579696
d275a74df6afb0d4e12a36bf299515bddea1659d
70
py
Python
genie/models/__init__.py
epfl-dlab/GenIE
62ae6af936c9375c36d3d5ad60401bf579875bd9
[ "MIT" ]
8
2022-02-08T11:12:37.000Z
2022-03-16T08:27:50.000Z
genie/models/__init__.py
epfl-dlab/GenIE
62ae6af936c9375c36d3d5ad60401bf579875bd9
[ "MIT" ]
1
2022-03-07T07:36:24.000Z
2022-03-07T20:58:12.000Z
genie/models/__init__.py
epfl-dlab/GenIE
62ae6af936c9375c36d3d5ad60401bf579875bd9
[ "MIT" ]
7
2022-02-22T22:48:35.000Z
2022-03-18T05:18:30.000Z
from .genie_base_hf import GenieHF from .genie_base_pl import GeniePL
23.333333
34
0.857143
25f658c22b0a38bd7ad8abc2167719a2a704c363
156,169
py
Python
nuitka/nodes/AttributeNodesGenerated.py
roired/Nuitka
d240a14b4b00c03d60050b4ba67382fb09c7dba8
[ "Apache-2.0" ]
null
null
null
nuitka/nodes/AttributeNodesGenerated.py
roired/Nuitka
d240a14b4b00c03d60050b4ba67382fb09c7dba8
[ "Apache-2.0" ]
null
null
null
nuitka/nodes/AttributeNodesGenerated.py
roired/Nuitka
d240a14b4b00c03d60050b4ba67382fb09c7dba8
[ "Apache-2.0" ]
null
null
null
# Copyright 2021, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
31.780423
105
0.689983
131668a619ff05fe9716089c047193de98ccfc87
303
py
Python
python/ray/ml/__init__.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-06-19T02:23:43.000Z
2019-06-19T02:23:43.000Z
python/ray/ml/__init__.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
73
2021-09-25T07:11:39.000Z
2022-03-26T07:10:59.000Z
python/ray/ml/__init__.py
willfrey/ray
288a81b42ef0186ab4db33b30191614a7bdb69f6
[ "Apache-2.0" ]
1
2019-09-24T16:24:49.000Z
2019-09-24T16:24:49.000Z
from ray.ml.checkpoint import Checkpoint from ray.ml.config import RunConfig, ScalingConfig from ray.ml.preprocessor import Preprocessor from ray.ml.utils.datasets import train_test_split __all__ = [ "Checkpoint", "Preprocessor", "RunConfig", "ScalingConfig", "train_test_split", ]
23.307692
50
0.752475
4efb264d134e2bb6f62ac3ebc67f34abd4ed84d0
413
py
Python
plot/test.py
MCCCSunny/vnpy-edited
c9ef56d4b809bac1f083c213ca37f74a1f80b65e
[ "MIT" ]
null
null
null
plot/test.py
MCCCSunny/vnpy-edited
c9ef56d4b809bac1f083c213ca37f74a1f80b65e
[ "MIT" ]
null
null
null
plot/test.py
MCCCSunny/vnpy-edited
c9ef56d4b809bac1f083c213ca37f74a1f80b65e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 22 10:20:35 2017 @author: WCP """ import sys sys.path.append('C:\\Users\\WCP\\Desktop\\vnpy1.7.2_SC\\vnpy-master\\examples\\VnTrader\\temp') sys.path.append('C:\\Users\\WCP\\Desktop\\vnpy1.7.2_SC\\vnpy-master') import vnpy.trader.vtObject import shelve f=shelve.open('C:\...
29.5
110
0.702179
1877886c45ccb6a98c2ae46418bc5800a29bce5d
430
py
Python
tavastiaevents/urls.py
hamk-uas/TavastiaEventsOld
b808a1418ee89ba1e774c814364e5b55ea4f9a2c
[ "MIT" ]
null
null
null
tavastiaevents/urls.py
hamk-uas/TavastiaEventsOld
b808a1418ee89ba1e774c814364e5b55ea4f9a2c
[ "MIT" ]
null
null
null
tavastiaevents/urls.py
hamk-uas/TavastiaEventsOld
b808a1418ee89ba1e774c814364e5b55ea4f9a2c
[ "MIT" ]
null
null
null
from django.core.urlresolvers import reverse from django.conf.urls import url, include from django.views.generic import View from .views import message_event from django.views.generic import TemplateView app_name = 'tavastiaevents' urlpatterns = [ url(r'report/', message_event, name='message-event'), url(r'd...
28.666667
117
0.783721
0ec53ea5068181444a7deb7ec2d5a9e3f08b6bce
4,642
py
Python
csv/build_spm.py
miurahr/libgeotiff
d9c877b6a5f7aac46905e1665f95d8a0469140fa
[ "MIT" ]
null
null
null
csv/build_spm.py
miurahr/libgeotiff
d9c877b6a5f7aac46905e1665f95d8a0469140fa
[ "MIT" ]
null
null
null
csv/build_spm.py
miurahr/libgeotiff
d9c877b6a5f7aac46905e1665f95d8a0469140fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python #****************************************************************************** # $Id$ # # Project: GDAL # Purpose: Build stateplane.csv, relating USGS state plane numbers with # EPSG coordinate system, and some supporting info fields. # Author: Frank Warmerdam, warmerdam@pobox...
32.921986
79
0.592417
0acdbf1bdf3e63582a7971ed05ade77b5d07d2db
515
py
Python
app/migrations/versions/0169ae36e249_.py
adamw523/simple-flask-app
07ba4e796c0f89118dd3beafa3ce46c35f993f66
[ "MIT" ]
null
null
null
app/migrations/versions/0169ae36e249_.py
adamw523/simple-flask-app
07ba4e796c0f89118dd3beafa3ce46c35f993f66
[ "MIT" ]
null
null
null
app/migrations/versions/0169ae36e249_.py
adamw523/simple-flask-app
07ba4e796c0f89118dd3beafa3ce46c35f993f66
[ "MIT" ]
null
null
null
"""empty message Revision ID: 0169ae36e249 Revises: None Create Date: 2016-10-12 23:40:23.906003 """ # revision identifiers, used by Alembic. revision = '0169ae36e249' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): op.create_table( 'posts', sa.Column('id', sa...
19.074074
54
0.660194
b668f39e66b2a5668bd7a2b1eeb26783c06028f2
7,444
py
Python
examples/pipelines/osmfish_pipeline.py
haoxusci/starfish
d7bd856024c75f2ce41504406f2a663566c3814b
[ "MIT" ]
null
null
null
examples/pipelines/osmfish_pipeline.py
haoxusci/starfish
d7bd856024c75f2ce41504406f2a663566c3814b
[ "MIT" ]
null
null
null
examples/pipelines/osmfish_pipeline.py
haoxusci/starfish
d7bd856024c75f2ce41504406f2a663566c3814b
[ "MIT" ]
null
null
null
""" .. _osmfish_example: Reproduce published osmFISH results with starfish ================================================= osmFISH is an image based transcriptomics technique that can spatially resolve tens of RNA transcripts and their expression levels **in situ**. The protocol and data analysis are described in t...
41.355556
111
0.650591
c1fc6969b12543bced3597e18e724050c7e4b751
5,963
py
Python
heat/tests/generic_resource.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/tests/generic_resource.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
heat/tests/generic_resource.py
pshchelo/heat
6cf94a3ece89d77b839f61292e5f023c3f192c82
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
33.127778
79
0.64263
11e6f832124eb57fb7590c9b0a950c0d25329e70
5,011
py
Python
networking_cisco/apps/saf/server/services/firewall/native/drivers/phy_asa.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
1
2019-01-19T09:12:49.000Z
2019-01-19T09:12:49.000Z
networking_cisco/apps/saf/server/services/firewall/native/drivers/phy_asa.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
networking_cisco/apps/saf/server/services/firewall/native/drivers/phy_asa.py
Tehsmash/networking-cisco
fdbd79a832fe090f3c4c7bd7a4f0ec0c349d4d16
[ "Apache-2.0" ]
null
null
null
# 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.0 # # Unless requi...
40.41129
79
0.637398
e2b961a46a3ccd9750c1063b97dca5c8bb9cae52
25,035
py
Python
TrainingExtensions/tensorflow/test/python/test_cross_layer_equalization.py
Rohan-Chaudhury/aimet
1c38cac8cc0fd32dca40ce5e39940805d29f7a4a
[ "BSD-3-Clause" ]
945
2020-04-30T02:23:55.000Z
2022-03-31T08:44:32.000Z
TrainingExtensions/tensorflow/test/python/test_cross_layer_equalization.py
Rohan-Chaudhury/aimet
1c38cac8cc0fd32dca40ce5e39940805d29f7a4a
[ "BSD-3-Clause" ]
563
2020-05-01T03:07:22.000Z
2022-03-30T05:35:58.000Z
TrainingExtensions/tensorflow/test/python/test_cross_layer_equalization.py
Rohan-Chaudhury/aimet
1c38cac8cc0fd32dca40ce5e39940805d29f7a4a
[ "BSD-3-Clause" ]
186
2020-04-30T00:55:26.000Z
2022-03-30T09:54:51.000Z
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2019, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification,...
43.767483
121
0.669383
a3e649c36610eb6bf06a40cbc29a123ad064f0b4
21,968
py
Python
spark_fhir_schemas/r4/complex_types/observation_component.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/observation_component.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/observation_component.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import ( StructType, StructField, StringType, ArrayType, BooleanType, IntegerType, DataType, TimestampType, ) # This file is auto-generated by generate_schema so do not edit it manually # noinspection PyPep8Naming class O...
49.589165
104
0.559177
28594a0b7b1e5f0237dd7c52af6b6b97c95688c7
1,010
py
Python
setup.py
adw62/viridian_workflow
5215697e432e2504978186b121ab2b398ece02d7
[ "MIT" ]
null
null
null
setup.py
adw62/viridian_workflow
5215697e432e2504978186b121ab2b398ece02d7
[ "MIT" ]
null
null
null
setup.py
adw62/viridian_workflow
5215697e432e2504978186b121ab2b398ece02d7
[ "MIT" ]
null
null
null
import glob from setuptools import setup, find_packages from Cython.Build import cythonize with open("requirements.txt") as f: install_requires = [x.rstrip() for x in f] setup( name="viridian_workflow", version="0.3.4", description="FIXME", packages=find_packages(), package_data={"viridian_wor...
31.5625
82
0.672277
a4eded3812123bdb44bc2f004afe4f6aa7191de5
422
py
Python
abuseipdb/komand_abuseipdb/util/helper.py
emartin-merrill-r7/insightconnect-plugins
a589745dbcc9f01d3e601431e77ab7221a84c117
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
abuseipdb/komand_abuseipdb/util/helper.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
abuseipdb/komand_abuseipdb/util/helper.py
OSSSP/insightconnect-plugins
846758dab745170cf1a8c146211a8bea9592e8ff
[ "MIT" ]
null
null
null
from komand.exceptions import PluginException def get_json(response): json_ = response.json() if "errors" in json_: details = '' if len(json_['errors']) > 0 and 'details' in json_['errors'][0]: details = json_['errors'][0]["detail"] raise PluginException(cause='Received an...
28.133333
81
0.601896
d143c71acf4eea61af584ab605953eeaf9867e52
1,434
py
Python
zephyrus_sc2_parser/game/perception_action_cycle.py
dareonion/zephyrus-sc2-parser
0e31ac86e4546466eba44f37ed13ab2880fe5d39
[ "MIT" ]
null
null
null
zephyrus_sc2_parser/game/perception_action_cycle.py
dareonion/zephyrus-sc2-parser
0e31ac86e4546466eba44f37ed13ab2880fe5d39
[ "MIT" ]
null
null
null
zephyrus_sc2_parser/game/perception_action_cycle.py
dareonion/zephyrus-sc2-parser
0e31ac86e4546466eba44f37ed13ab2880fe5d39
[ "MIT" ]
null
null
null
class PerceptionActionCycle: def __init__(self, initial_camera_position, initial_gameloop): self.initial_camera_position = initial_camera_position self.initial_gameloop = initial_gameloop self.final_camera_position = None self.final_gameloop = None self.actions = [] s...
36.769231
71
0.644351
551229b82b58a26e8bb736115f25f59f56499229
5,659
py
Python
tests/test_provider_sql_ts.py
flzara/shaystack
6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce
[ "BSD-2-Clause" ]
9
2021-04-30T13:04:31.000Z
2022-01-11T14:11:53.000Z
tests/test_provider_sql_ts.py
flzara/shaystack
6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce
[ "BSD-2-Clause" ]
7
2021-03-19T07:31:22.000Z
2021-03-26T12:31:45.000Z
tests/test_provider_sql_ts.py
flzara/shaystack
6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce
[ "BSD-2-Clause" ]
5
2021-04-29T11:51:04.000Z
2022-02-22T21:10:19.000Z
import datetime import logging import os from typing import cast from unittest.mock import patch import pytz from nose.plugins.attrib import attr # noinspection PyProtectedMember from shaystack import Ref, Grid, Quantity, MARKER, REMOVE, Coordinate, NA, parse_date_range, XStr from shaystack.providers import get_provi...
40.71223
110
0.63209
6dd561598e4fc44fed4cd764acf9e5ef26618c40
3,243
py
Python
LEGOxGBA/gba_input.py
CoderBeanLiang/OhMyGenius
e0874490cae44c6c2a619f3d84dd313716000889
[ "CC0-1.0" ]
null
null
null
LEGOxGBA/gba_input.py
CoderBeanLiang/OhMyGenius
e0874490cae44c6c2a619f3d84dd313716000889
[ "CC0-1.0" ]
null
null
null
LEGOxGBA/gba_input.py
CoderBeanLiang/OhMyGenius
e0874490cae44c6c2a619f3d84dd313716000889
[ "CC0-1.0" ]
null
null
null
import RPi.GPIO as GPIO import uinput import time # Define GPIO BCM code # Should be related to your own GPIO wires btnLeft = 24 btnRight = 23 btnUp = 25 btnDown = 18 btnA = 26 btnB = 21 btnL = 22 btnR = 20 btnStart = 17 btnSelect = 27 # Button callback, param channel is BCM code defined above # GPIO state 'Low' me...
31.794118
72
0.728955
0b50548f3eab0f05b1ed36ab5db0bee7c6b0e063
5,430
py
Python
setup/categories/classifier_setup.py
aber-wgr/OD-test
1f0836dd7a1c5ede34caca1a3492e9e7c3023538
[ "MIT" ]
61
2018-09-14T02:48:01.000Z
2022-02-14T09:13:45.000Z
setup/categories/classifier_setup.py
ashafaei/OD-test
8252aace84e2ae1ab95067876985f62a1060aad6
[ "MIT" ]
3
2019-07-31T09:59:46.000Z
2020-04-16T21:55:16.000Z
setup/categories/classifier_setup.py
aber-wgr/OD-test
1f0836dd7a1c5ede34caca1a3492e9e7c3023538
[ "MIT" ]
12
2018-09-25T10:36:39.000Z
2022-03-28T18:09:00.000Z
from __future__ import print_function import os from termcolor import colored import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader import models as Models import global_vars as Global from utils.iterative_trainer import IterativeTrainer, IterativeTrainerConfig from ut...
41.450382
141
0.660589
661d666d96a8f21b888817e4ba1fcc3f6a192afd
13,758
py
Python
FWCore/Integration/test/testRunMergeTEST1_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
FWCore/Integration/test/testRunMergeTEST1_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
FWCore/Integration/test/testRunMergeTEST1_cfg.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
# This is the same as testRunMergeTEST except the noEventSort # option is set in the PoolSource, which changes the order # events are processed. Within a LuminosityBlock, they are # in entry order instead of event number order. The RunLumiEventAnalyzer # module checks this. import FWCore.ParameterSet.Config as cms ...
35.186701
80
0.496366
8630d53384ca87932be69f6f8ad4462f46f41a5a
4,575
py
Python
tournament_test.py
bschmoker/fireside
70c8d9b8c6c3bdc0b437ec68be0aa99f904e7598
[ "MIT" ]
1
2015-11-05T20:15:34.000Z
2015-11-05T20:15:34.000Z
tournament_test.py
bschmoker/fireside
70c8d9b8c6c3bdc0b437ec68be0aa99f904e7598
[ "MIT" ]
3
2015-08-30T19:55:11.000Z
2015-08-30T19:56:20.000Z
tournament_test.py
bschmoker/fireside
70c8d9b8c6c3bdc0b437ec68be0aa99f904e7598
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Test cases for tournament.py from tournament import * def testDeleteMatches(): deleteMatches() print "1. Old matches can be deleted." def testDelete(): deleteMatches() deletePlayers() print "2. Player records can be deleted." def testCount(): deleteMatches() d...
32.678571
81
0.65071
81c2effb53159158d85b3cc8df7a0fbb3acf75d3
2,498
py
Python
Python/Tic-Tac-Toe/Tic-tac-toe.py
AyushBilkhiwal/Hacktoberfest2020_
5f8155b0b8a950643c10b58b1c5ea3cbf007384f
[ "MIT" ]
null
null
null
Python/Tic-Tac-Toe/Tic-tac-toe.py
AyushBilkhiwal/Hacktoberfest2020_
5f8155b0b8a950643c10b58b1c5ea3cbf007384f
[ "MIT" ]
null
null
null
Python/Tic-Tac-Toe/Tic-tac-toe.py
AyushBilkhiwal/Hacktoberfest2020_
5f8155b0b8a950643c10b58b1c5ea3cbf007384f
[ "MIT" ]
null
null
null
""" @author: Arpit Somani """ # Import the required modules import numpy # Creating the platform, where we play the game. board = numpy.array([['_', '_', '_'], ['_', '_', '_'], ['_', '_', '_']]) # We have 2 symbols , as its a 2 player game p1s = 'X' p2s = 'O' # Checking for empty place in rows...
24.490196
116
0.527622
36510440ae397fde7f1b1b56e2c94615e39f81df
7,604
py
Python
readthedocs/core/views/serve.py
chirathr/readthedocs.org
4f1a5dc07fd9d55d4284fdb22deae735932b2ec9
[ "MIT" ]
1
2020-03-12T14:24:48.000Z
2020-03-12T14:24:48.000Z
readthedocs/core/views/serve.py
chirathr/readthedocs.org
4f1a5dc07fd9d55d4284fdb22deae735932b2ec9
[ "MIT" ]
1
2018-12-24T04:01:31.000Z
2018-12-24T04:01:31.000Z
readthedocs/core/views/serve.py
chirathr/readthedocs.org
4f1a5dc07fd9d55d4284fdb22deae735932b2ec9
[ "MIT" ]
6
2019-02-13T16:08:41.000Z
2020-03-12T14:17:14.000Z
# -*- coding: utf-8 -*- """ Doc serving from Python. In production there are two modes, * Serving from public symlinks in nginx (readthedocs.org & readthedocs.com) * Serving from private symlinks in Python (readthedocs.com only) In development, we have two modes: * Serving from public symlinks in Python * Serving fro...
34.880734
123
0.692136
4067c5c33136a3077df6e5eb986575b53a6927fd
316
py
Python
ThirdParty/Blizzard/Storm/Current/src/GenDef.py
alanoooaao/YDWE
fa9c6dc24d01f78919b5c8b2c69252291536424a
[ "Apache-2.0" ]
5
2019-01-22T02:35:35.000Z
2022-02-28T02:50:03.000Z
ThirdParty/Blizzard/Storm/Current/src/GenDef.py
shawwwn/YDWE
b83ffe041d9623409d9ffd951988e2b482d9cfc3
[ "Apache-2.0" ]
8
2016-10-19T00:04:05.000Z
2016-11-14T10:58:14.000Z
ThirdParty/Blizzard/Storm/Current/src/GenDef.py
shawwwn/YDWE
b83ffe041d9623409d9ffd951988e2b482d9cfc3
[ "Apache-2.0" ]
2
2016-11-14T11:39:37.000Z
2019-09-06T00:21:15.000Z
# coding: utf-8 # Python 3 scripts import os, sys, re rg = re.compile(r"\s*//\s+(\d+)\s+(\w+)") print('LIBRARY "Storm"') print('EXPORTS') with open("../include/BlizzardStorm.h", "r") as f: for line in f: mat = rg.match(line) if mat: print('\t{0}\t\t\t@{1}\tNONAME'.format(mat.group(2), mat.group(1)))
19.75
70
0.591772
af869d43f1291b05d190187cf1fb1a717a769211
7,021
py
Python
src/packages/database/database_manager.py
nathanctech/pipsqueak3
f5c038fcecb0f54a6a71f6000c13e683ae72920f
[ "BSD-3-Clause" ]
null
null
null
src/packages/database/database_manager.py
nathanctech/pipsqueak3
f5c038fcecb0f54a6a71f6000c13e683ae72920f
[ "BSD-3-Clause" ]
null
null
null
src/packages/database/database_manager.py
nathanctech/pipsqueak3
f5c038fcecb0f54a6a71f6000c13e683ae72920f
[ "BSD-3-Clause" ]
null
null
null
""" database_manager.py - allows connections to SQL databases. Provides postgreSQL connectivity for mechasqueak3. Copyright (c) 2018 The Fuel Rat Mischief, All rights reserved. Licensed under the BSD 3-Clause License. See LICENSE.md """ import typing import psycopg2 from loguru import logger from psycopg2 import sql, ...
36.952632
100
0.590514
8eab7851f5a8f96a4ecc4a5c6af7777d198e7a32
3,616
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/arrays/numbers.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/arrays/numbers.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/arrays/numbers.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
"""Numbers passed as array handling code for PyOpenGL """ REGISTRY_NAME = 'numbers' from OpenGL.raw.GL import _types from OpenGL.raw.GL.VERSION import GL_1_1 from OpenGL.arrays import formathandler import ctypes from OpenGL._bytes import long, integer_types class NumberHandler( formathandler.FormatHandler ): """A...
36.16
124
0.636892
754cefe05860bbb3fed4cc2f8d5f2e7d02435eb2
21,275
py
Python
cogs/moderation.py
cringshotadeer/snakebot
e24730dbf49ebdd2dadb7912d07e94a88e988491
[ "MIT" ]
null
null
null
cogs/moderation.py
cringshotadeer/snakebot
e24730dbf49ebdd2dadb7912d07e94a88e988491
[ "MIT" ]
null
null
null
cogs/moderation.py
cringshotadeer/snakebot
e24730dbf49ebdd2dadb7912d07e94a88e988491
[ "MIT" ]
null
null
null
import asyncio from discord.ext import commands, menus import discord import orjson class HistoryMenu(menus.ListPageSource): def __init__(self, data): super().__init__(data, per_page=10) async def format_page(self, menu, entries): embed = discord.Embed(color=discord.Color.blurple()) ...
32.38204
94
0.560423
3c548306372fe5f5cee470b6dc9c08324371c74f
11,338
py
Python
train.py
ky207/yolov4-tiny
204e5a07fb6dbbf11ab3165f57253ffcc5328df3
[ "MIT" ]
1
2022-02-21T01:34:56.000Z
2022-02-21T01:34:56.000Z
train.py
ky207/yolov4-tiny
204e5a07fb6dbbf11ab3165f57253ffcc5328df3
[ "MIT" ]
null
null
null
train.py
ky207/yolov4-tiny
204e5a07fb6dbbf11ab3165f57253ffcc5328df3
[ "MIT" ]
null
null
null
#-------------------------------------# # 对数据集进行训练 #-------------------------------------# import numpy as np import torch import torch.backends.cudnn as cudnn import torch.optim as optim from torch.utils.data import DataLoader from nets.yolo import YoloBody from nets.yolo_training import YOLOLoss, wei...
44.116732
138
0.500176
c63fa04c73b074bd4280094b17d2effa90dd9a8c
3,921
py
Python
test/functional/wallet_scriptaddress2.py
DrRayThe2nd/litecoin
961f9a36d55c52a5fe5f940a205fa9f7b45330b3
[ "MIT" ]
null
null
null
test/functional/wallet_scriptaddress2.py
DrRayThe2nd/litecoin
961f9a36d55c52a5fe5f940a205fa9f7b45330b3
[ "MIT" ]
null
null
null
test/functional/wallet_scriptaddress2.py
DrRayThe2nd/litecoin
961f9a36d55c52a5fe5f940a205fa9f7b45330b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 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 new Pittscoin multisig prefix functionality. # from test_framework.test_framework import Bitcoi...
40.010204
104
0.650344
0b10dbf0f445ba43d342e483e7d79686d75a3486
2,742
py
Python
tests/kafkatest/utils/util.py
ss10/kafka
bc5051565171cf65b4ed7dd4d9ef269d66a1021a
[ "Apache-2.0" ]
null
null
null
tests/kafkatest/utils/util.py
ss10/kafka
bc5051565171cf65b4ed7dd4d9ef269d66a1021a
[ "Apache-2.0" ]
null
null
null
tests/kafkatest/utils/util.py
ss10/kafka
bc5051565171cf65b4ed7dd4d9ef269d66a1021a
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Confluent Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
37.054054
102
0.677243
7417851690f6648356a4781e40d6b4ca4808e91d
34,242
py
Python
frappe/core/doctype/user/user.py
mojerro/frappe
0f434846bed87c02491aad0a3da631df382bfb3c
[ "MIT" ]
null
null
null
frappe/core/doctype/user/user.py
mojerro/frappe
0f434846bed87c02491aad0a3da631df382bfb3c
[ "MIT" ]
null
null
null
frappe/core/doctype/user/user.py
mojerro/frappe
0f434846bed87c02491aad0a3da631df382bfb3c
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals, print_function from bs4 import BeautifulSoup import frappe import frappe.share import frappe.defaults import frappe.permissions from frappe.model.document import Document from ...
32.487666
126
0.729017
74b28c20ded47fd1a6c9fe812cf2f8b4850a4578
3,094
py
Python
test/functional/getblocktemplate_longpoll.py
twairgroup/wondercoin
c075c2d0c1a4927d9f04d5100106e369a85128e5
[ "MIT" ]
1
2021-04-29T09:04:49.000Z
2021-04-29T09:04:49.000Z
test/functional/getblocktemplate_longpoll.py
twairgroup/wondercoin
c075c2d0c1a4927d9f04d5100106e369a85128e5
[ "MIT" ]
2
2021-06-08T21:50:46.000Z
2021-06-09T14:04:30.000Z
test/functional/getblocktemplate_longpoll.py
twairgroup/wondercoin
c075c2d0c1a4927d9f04d5100106e369a85128e5
[ "MIT" ]
1
2021-06-09T01:09:47.000Z
2021-06-09T01:09:47.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2016 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 longpolling with getblocktemplate.""" from test_framework.test_framework import WondercoinTestFra...
42.972222
112
0.682935
23ed797094023866f4c08ecdda4e47d80d676510
881
py
Python
test/token_utils.py
lumapps/endpoints-management-python
0408547e82de2a344ebb6b5600559f82e78c3980
[ "Apache-2.0" ]
22
2016-09-01T16:40:34.000Z
2020-12-13T14:54:18.000Z
test/token_utils.py
lumapps/endpoints-management-python
0408547e82de2a344ebb6b5600559f82e78c3980
[ "Apache-2.0" ]
69
2016-09-01T22:25:16.000Z
2020-10-20T07:44:10.000Z
test/token_utils.py
lumapps/endpoints-management-python
0408547e82de2a344ebb6b5600559f82e78c3980
[ "Apache-2.0" ]
20
2016-09-01T22:05:07.000Z
2022-03-13T02:26:59.000Z
# Copyright 2016 Google 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.0 # # Unless required by applicable law or agree...
35.24
74
0.763905
0759bc964a76f278f346f96fdfd4d7b43ce0d951
1,485
py
Python
bagpipe/exabgp/message/update/attribute/mprnlri.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
94
2015-01-05T17:15:21.000Z
2022-01-09T20:05:16.000Z
bagpipe/exabgp/message/update/attribute/mprnlri.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
18
2015-03-16T16:16:55.000Z
2017-03-27T11:22:38.000Z
bagpipe/exabgp/message/update/attribute/mprnlri.py
taheri0/MPLS-over-GRE
7d14b819d396b7779b02ea1150bcaf412cb6d36c
[ "Apache-2.0" ]
36
2015-03-13T02:30:15.000Z
2021-06-22T10:10:23.000Z
# encoding: utf-8 """ mprnlri.py Created by Thomas Mangin on 2009-11-05. Copyright (c) 2009-2012 Exa Networks. All rights reserved. Modified by Orange - 2014 """ from bagpipe.exabgp.structure.address import Address, SAFI #,AFI from bagpipe.exabgp.message.update.attribute import AttributeID,Flag,Attribute # =========...
28.557692
100
0.674074
9bfb219fb7c5ccdab033d4366c8fbe22ffe36b2e
4,987
py
Python
scrapy_redis/dupefilter.py
vanilla111/CQUPT_Spider
c404a398b5f84eba5215511b3eb5a80bcc8563dd
[ "MIT" ]
3
2020-01-06T00:29:53.000Z
2021-03-23T15:10:51.000Z
scrapy_redis/dupefilter.py
vanilla111/CQUPT_Spider
c404a398b5f84eba5215511b3eb5a80bcc8563dd
[ "MIT" ]
null
null
null
scrapy_redis/dupefilter.py
vanilla111/CQUPT_Spider
c404a398b5f84eba5215511b3eb5a80bcc8563dd
[ "MIT" ]
2
2019-08-01T07:11:41.000Z
2020-02-14T04:57:48.000Z
import logging import time from scrapy.dupefilters import BaseDupeFilter from scrapy.utils.request import request_fingerprint from . import defaults from .connection import get_redis_from_settings from .bloomfilter import BloomFilter logger = logging.getLogger(__name__) class RFPDupeFilter(BaseDupeFilter): ""...
29.862275
100
0.614798
794747a28490edd4f4f0299e6243b3d70b80e72d
12,168
py
Python
script.mrknow.urlresolver/lib/urlresolver9/lib/net.py
mrknow/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
105
2015-11-28T00:03:11.000Z
2021-05-05T20:47:42.000Z
script.mrknow.urlresolver/lib/urlresolver9/lib/net.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
918
2015-11-28T14:12:40.000Z
2022-03-23T20:24:49.000Z
script.mrknow.urlresolver/lib/urlresolver9/lib/net.py
rrosajp/filmkodi
0162cde9ae25ddbf4a69330948714833ff2f78c9
[ "Apache-2.0" ]
111
2015-12-01T14:06:10.000Z
2020-08-01T10:44:39.000Z
''' common XBMC Module Copyright (C) 2011 t0mm0 This program 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, either version 3 of the License, or (at your option) any later version. Th...
35.683284
187
0.585059
eb34f473dc1a474cde296645eb64cde5cd6a49af
1,801
py
Python
bakpack/main.py
pramasoul/bakpack
804652e008a2d1bb04a521d6025a4d73ac7511af
[ "MIT" ]
null
null
null
bakpack/main.py
pramasoul/bakpack
804652e008a2d1bb04a521d6025a4d73ac7511af
[ "MIT" ]
null
null
null
bakpack/main.py
pramasoul/bakpack
804652e008a2d1bb04a521d6025a4d73ac7511af
[ "MIT" ]
null
null
null
# from absl import app from absl import flags from absl import logging from collections import defaultdict import json from pathlib import Path from sys import stdout from .packer import binpack FLAGS = flags.FLAGS flags.DEFINE_integer("size", None, "How much a bin can hold", lower_bound=1) flags.DEFINE_string("out...
26.880597
76
0.642976
8f3897135e0873e20e04513d2e5d938e37ce5b7b
1,361
py
Python
weather/havesine.py
jawahar273/bm
0501210077c5435b27d04c96a2f85da453d63689
[ "MIT" ]
null
null
null
weather/havesine.py
jawahar273/bm
0501210077c5435b27d04c96a2f85da453d63689
[ "MIT" ]
218
2018-05-29T00:34:55.000Z
2021-06-10T18:40:26.000Z
weather/havesine.py
jawahar273/bm
0501210077c5435b27d04c96a2f85da453d63689
[ "MIT" ]
null
null
null
import math class Haversine: """ use the haversine class to calculate the distance between two lon/lat coordnate pairs. output distance available in kilometers, meters, miles, and feet. example usage: Haversine([lon1,lat1],[lon2,lat2]).feet Distance of the user's location and weather's stati...
32.404762
83
0.626745
f797f902bc87faffb58c58ad7ac27d0eff5369f4
2,863
py
Python
src/first_bot_email.py
dvntaka/hawaii_coronavirus_bot
091d8f4a1f9a75250973234f0ad82807bbf2e2ae
[ "MIT" ]
null
null
null
src/first_bot_email.py
dvntaka/hawaii_coronavirus_bot
091d8f4a1f9a75250973234f0ad82807bbf2e2ae
[ "MIT" ]
2
2021-05-26T22:24:23.000Z
2021-05-26T22:26:38.000Z
src/first_bot_email.py
dvntaka/hawaii_coronavirus_bot
091d8f4a1f9a75250973234f0ad82807bbf2e2ae
[ "MIT" ]
null
null
null
# Created follow a tutorial at: https://towardsdatascience.com/how-to-track-coronavirus-with-python-a5320b778c8e from datetime import date from urllib.request import Request, urlopen import pandas as pd import smtplib def get_data(): #req = Request('https://www.worldometers.info/coronavirus/#countries', headers=...
30.457447
113
0.630807
cbb1e0547b46c49dd575eedb41df8747748768a1
1,410
py
Python
eks_auth/aws/client.py
ElDiabloRojo/eks_auth
c87430d82b70698958cd75b710ccda8cfcbbbb96
[ "MIT" ]
1
2020-10-13T19:51:18.000Z
2020-10-13T19:51:18.000Z
eks_auth/aws/client.py
ElDiabloRojo/eks_auth
c87430d82b70698958cd75b710ccda8cfcbbbb96
[ "MIT" ]
537
2020-04-23T21:06:54.000Z
2022-03-31T17:42:17.000Z
eks_auth/aws/client.py
ElDiabloRojo/eks_auth
c87430d82b70698958cd75b710ccda8cfcbbbb96
[ "MIT" ]
null
null
null
import boto3 class AWSCLient: def __init__(self, service, access_key, secret_key, region, session_token=None): self.service = service self.access_key = access_key self.secret_access_key = secret_key self.session_token = session_token self.region = region def primary_cli...
29.375
84
0.623404
981da89342f0934b5191b93a28613d9cff40b493
1,525
py
Python
source/legacy/muc4_type_samples.py
Glaciohound/Schema_Induction
116df31a0a042ad4358d093f303b21a051ebdaad
[ "MIT" ]
null
null
null
source/legacy/muc4_type_samples.py
Glaciohound/Schema_Induction
116df31a0a042ad4358d093f303b21a051ebdaad
[ "MIT" ]
null
null
null
source/legacy/muc4_type_samples.py
Glaciohound/Schema_Induction
116df31a0a042ad4358d093f303b21a051ebdaad
[ "MIT" ]
null
null
null
import argparse import json from components.load_muc4 import load_muc4 from components.muc4_tools import \ extract_relevant_sentences, corpora_to_dict, all_types def get_args(): parser = argparse.ArgumentParser() parser.add_argument("--dir", default="data/muc34/TASK/CORPORA", type=str) parser.add_arg...
30.5
77
0.554754
b1a241155f8906edc4b80182a8ad94dc0542d621
5,867
py
Python
contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_bundle_integration.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
null
null
null
contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_bundle_integration.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
null
null
null
contrib/node/tests/python/pants_test/contrib/node/tasks/test_node_bundle_integration.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from conte...
39.911565
96
0.740583
3b269112fe4d005db7eb6627217b27c9c690f6b2
712
py
Python
telegram_bot/config.py
Carmo-sousa/telegram-bot
7a2f675bc3b5da65742851c1a2c4438f9e982745
[ "MIT" ]
null
null
null
telegram_bot/config.py
Carmo-sousa/telegram-bot
7a2f675bc3b5da65742851c1a2c4438f9e982745
[ "MIT" ]
null
null
null
telegram_bot/config.py
Carmo-sousa/telegram-bot
7a2f675bc3b5da65742851c1a2c4438f9e982745
[ "MIT" ]
null
null
null
import os import logging from dotenv import load_dotenv # Carrega as váriaveis de ambiente do projeto. load_dotenv() logging.basicConfig( format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO, ) class Config: # Nível de permição do projeto. # https://developers.google.co...
24.551724
80
0.695225
c6e1959a2fb2c84fcda3660890feafa3bb1eafda
8,298
py
Python
server/attender-mobile/lib/requests/packages/urllib3/connection.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
71
2015-05-15T08:27:25.000Z
2022-01-16T03:45:42.000Z
server/attender-mobile/lib/requests/packages/urllib3/connection.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
11
2015-10-26T22:47:32.000Z
2020-10-16T19:13:09.000Z
server/attender-mobile/lib/requests/packages/urllib3/connection.py
denbedilov/SIStore
da8e6f38170959efe756bafe2f83adcf1fbb14a4
[ "MIT" ]
27
2015-03-08T22:03:00.000Z
2021-07-27T05:19:37.000Z
import datetime import sys import socket from socket import timeout as SocketTimeout import warnings try: # Python 3 from http.client import HTTPConnection as _HTTPConnection, HTTPException except ImportError: from httplib import HTTPConnection as _HTTPConnection, HTTPException class DummyConnection(object)...
33.595142
99
0.639552
c1a1d7f8f4c2245347d7fbda04e2f20628a24f10
755
py
Python
test_program/test_fetchdata.py
YuhaoCheng/IoT-Project
26b4473c2366b00ba7606c6782de95fea250296b
[ "Apache-2.0" ]
7
2018-05-06T02:34:38.000Z
2020-11-07T14:52:50.000Z
test_program/test_fetchdata.py
YuhaoCheng/IoT-Project
26b4473c2366b00ba7606c6782de95fea250296b
[ "Apache-2.0" ]
null
null
null
test_program/test_fetchdata.py
YuhaoCheng/IoT-Project
26b4473c2366b00ba7606c6782de95fea250296b
[ "Apache-2.0" ]
1
2018-03-29T03:26:59.000Z
2018-03-29T03:26:59.000Z
import pymysql import json def handle_request(conn,json_str,day,time): db = pymysql.connect("172.17.118.89", "root", "123456", "pycom") cursor = db.cursor() cursor = db.cursor() sql = """select * from console_device""" reply = {"Messagetype":'result'} deviceList = [] gatewayId = json_str['Ga...
23.59375
68
0.602649
9ee251504285643e735c14711f277a462fc64e48
5,103
py
Python
groups/admin.py
FroshOU/manga
60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2
[ "MIT" ]
58
2019-03-04T09:22:42.000Z
2022-02-18T09:11:57.000Z
groups/admin.py
FroshOU/manga
60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2
[ "MIT" ]
21
2019-03-07T19:34:53.000Z
2021-12-19T12:46:40.000Z
groups/admin.py
FroshOU/manga
60ec24a007a7e9ebe0c152cf1f2a2aa0362f17f2
[ "MIT" ]
14
2019-06-06T09:53:13.000Z
2021-12-17T14:34:13.000Z
"""Admin models for the groups app.""" from typing import Optional from django.contrib import admin from django.db.models.functions import Lower # XXX: cannot be resolved under TYPE_CHECKING from django.forms.models import BaseInlineFormSet, ModelForm from django.forms.widgets import HiddenInput # XXX: cannot be reso...
33.794702
74
0.612777
5b1f033c6f806d5d2900afee9152b4093e38b7e8
28,840
py
Python
Lib/test/lock_tests.py
Himanshu-Lakhara/cpython
3b20d3454e8082e07dba93617793de5dc9237828
[ "PSF-2.0" ]
15
2015-04-14T00:33:13.000Z
2021-10-18T01:08:54.000Z
Lib/test/lock_tests.py
Himanshu-Lakhara/cpython
3b20d3454e8082e07dba93617793de5dc9237828
[ "PSF-2.0" ]
1
2019-10-06T22:32:10.000Z
2020-08-01T15:22:38.000Z
Lib/test/lock_tests.py
Himanshu-Lakhara/cpython
3b20d3454e8082e07dba93617793de5dc9237828
[ "PSF-2.0" ]
3
2015-04-23T11:12:32.000Z
2021-10-18T01:08:55.000Z
""" Various tests for synchronization primitives. """ import sys import time from _thread import start_new_thread, TIMEOUT_MAX import threading import unittest import weakref from test import support def _wait(): # A crude wait/yield function not relying on synchronization primitives. time.sleep(0.01) clas...
30.389884
84
0.551768
b8bbc5d9dc0f40879c40227455e339b700ea707c
16,386
py
Python
prody/proteins/localpdb.py
grandevelia/ProDy
7c725640a94c16543423c0756388998cb86a97ae
[ "MIT" ]
1
2017-10-01T18:52:08.000Z
2017-10-01T18:52:08.000Z
prody/proteins/localpdb.py
grandevelia/ProDy
7c725640a94c16543423c0756388998cb86a97ae
[ "MIT" ]
null
null
null
prody/proteins/localpdb.py
grandevelia/ProDy
7c725640a94c16543423c0756388998cb86a97ae
[ "MIT" ]
1
2021-10-03T06:10:45.000Z
2021-10-03T06:10:45.000Z
# -*- coding: utf-8 -*- """This module defines functions for handling local PDB folders.""" from glob import glob, iglob from os.path import sep as pathsep from os.path import abspath, isdir, isfile, join, split, splitext, normpath from prody import LOGGER, SETTINGS from prody.utilities import makePath, gunzip, relpa...
36.332594
84
0.554864
26ccb580be10a6d722cd5312c0ef793f30a2ba61
2,462
py
Python
Server_DL/main_dl.py
nhattruongpham/APS
46166236d34b32457b71d6ef52423bcbf71bc1e8
[ "MIT" ]
null
null
null
Server_DL/main_dl.py
nhattruongpham/APS
46166236d34b32457b71d6ef52423bcbf71bc1e8
[ "MIT" ]
null
null
null
Server_DL/main_dl.py
nhattruongpham/APS
46166236d34b32457b71d6ef52423bcbf71bc1e8
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #-*- coding: utf8 -*- from getImage import * from insert_db import * from mul_update_db_4 import * from select_db import * from mul_update_db_6 import * from getPlate import * from LCD import * from MFRC522 import * from myconnutils import * from license_plate_recognize import * import time import d...
38.46875
139
0.621852
3fea0257cb9a18df494daa646fb8fc0da6b8c77d
1,008
py
Python
skaben/shape/views.py
skaben/server_core
46ba0551459790dda75abc9cf0ff147fae6d62e8
[ "MIT" ]
null
null
null
skaben/shape/views.py
skaben/server_core
46ba0551459790dda75abc9cf0ff147fae6d62e8
[ "MIT" ]
12
2020-08-14T12:43:04.000Z
2021-09-01T00:22:26.000Z
skaben/shape/views.py
skaben/server_core
46ba0551459790dda75abc9cf0ff147fae6d62e8
[ "MIT" ]
null
null
null
from core.views import DynamicAuthMixin from rest_framework import status, viewsets from .models import AccessCode, MenuItem, Permission, WorkMode from .serializers import ( AccessCodeSerializer, MenuItemSerializer, PermissionSerializer, WorkModeSerializer, ) class AccessCodeViewSet(viewsets.ModelView...
29.647059
65
0.765873
65a8a0c9529b2e9777d5350a74cbfbac3f65b765
27,171
py
Python
tests/test_auto_sharding_bert.py
alpa-projects/alpa
2c54de2a8fa8a48c77069f4bad802f4e8fa6d126
[ "Apache-2.0" ]
114
2022-03-02T20:38:16.000Z
2022-03-31T20:41:50.000Z
tests/test_auto_sharding_bert.py
alpa-projects/alpa
2c54de2a8fa8a48c77069f4bad802f4e8fa6d126
[ "Apache-2.0" ]
6
2022-03-09T22:04:50.000Z
2022-03-30T17:53:15.000Z
tests/test_auto_sharding_bert.py
alpa-projects/alpa
2c54de2a8fa8a48c77069f4bad802f4e8fa6d126
[ "Apache-2.0" ]
5
2022-03-05T12:04:31.000Z
2022-03-31T03:55:42.000Z
"""Test auto sharding on transformer layers and bert models.""" import unittest import jax import jax.numpy as jnp import numpy as np from flax import optim, linen as nn from alpa import parallelize, ShardParallel, LocalPhysicalDeviceMesh, AutoShardingOption from alpa.model.bert_model import (BertConfig, FlaxBertLay...
41.673313
106
0.581208
22676eb943b62a7e6c4cad675d1021dd479e7e9b
786
py
Python
test/test_taxon_database.py
sckott/pytaxa
ea9f47dfbb3bf5bba53d82eb2bc7116051af87fb
[ "MIT" ]
9
2018-06-14T23:32:01.000Z
2019-09-29T00:42:59.000Z
test/test_taxon_database.py
sckott/pytaxa
ea9f47dfbb3bf5bba53d82eb2bc7116051af87fb
[ "MIT" ]
16
2018-06-26T21:43:30.000Z
2018-07-07T01:18:04.000Z
test/test_taxon_database.py
sckott/pytaxa
ea9f47dfbb3bf5bba53d82eb2bc7116051af87fb
[ "MIT" ]
1
2018-08-05T21:49:11.000Z
2018-08-05T21:49:11.000Z
"""Tests for taxon_database""" import os # from nose.tools import * import pytest from pytaxa import constructors as c def test_taxon_database(): "taxon_database - param: database" res = c.taxon_database('ncbi') assert dict == res.__class__ assert 4 == len(res) assert 'ncbi' == res['database'] def...
30.230769
63
0.63486
acbeb430dce160ba5bee96ad70fd8a69435019be
4,969
py
Python
pythonProject1/venv/Lib/site-packages/pydantic/error_wrappers.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
10
2020-06-11T23:20:03.000Z
2022-01-14T16:07:27.000Z
pythonProject1/venv/Lib/site-packages/pydantic/error_wrappers.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
2
2021-05-12T00:09:30.000Z
2022-02-14T01:36:14.000Z
pythonProject1/venv/Lib/site-packages/pydantic/error_wrappers.py
mjtomlinson/CNE330_Python_1_Final_Project
05020806860937ef37b9a0ad2e27de4897a606de
[ "CC0-1.0" ]
2
2020-06-22T09:46:57.000Z
2021-04-25T21:32:04.000Z
import json from typing import TYPE_CHECKING, Any, Dict, Generator, List, Optional, Sequence, Tuple, Type, Union from .json import pydantic_encoder from .utils import Representation if TYPE_CHECKING: from .main import BaseConfig # noqa: F401 from .types import ModelOrDc # noqa: F401 from .typing import ...
32.690789
113
0.630912
977b2d00b513c6629f2b2ceb3ad305d8dabbe239
3,241
py
Python
lib/surface/iot/devices/update.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
null
null
null
lib/surface/iot/devices/update.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/surface/iot/devices/update.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-24T18:47:35.000Z
2020-07-24T18:47:35.000Z
# -*- coding: utf-8 -*- # # Copyright 2017 Google LLC. 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...
35.615385
74
0.695773
fecaaf82e30984425cb558de36c37f9f02f3e2cf
659
py
Python
corpus/tests.py
agladman/betterbot
ecabd63022b9aa0a2f7104caff69a37ecfa98781
[ "MIT" ]
null
null
null
corpus/tests.py
agladman/betterbot
ecabd63022b9aa0a2f7104caff69a37ecfa98781
[ "MIT" ]
null
null
null
corpus/tests.py
agladman/betterbot
ecabd63022b9aa0a2f7104caff69a37ecfa98781
[ "MIT" ]
null
null
null
# from django.test import TestCase import unittest import unittest.mock as mock import markovify from .models import Sentence as Sen from betterbot.settings import TEXT_MODEL_JSON_FILE @unittest.skip('blocked') class SentenceTestCase(unittest.TestCase): """ can't create test db, old migration that was run w...
27.458333
76
0.746586
38a2463fdde84789b376972f458e8b05f0ac9080
1,545
py
Python
flex/loading/schema/__init__.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
160
2015-01-15T05:36:44.000Z
2021-08-04T00:43:54.000Z
flex/loading/schema/__init__.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
151
2015-01-20T16:45:36.000Z
2022-02-23T21:07:58.000Z
flex/loading/schema/__init__.py
maroux/flex
dfd7c6d79d065d7ce1b0c799e51e9bb5292612b2
[ "MIT" ]
90
2015-01-20T11:19:36.000Z
2021-08-03T08:58:18.000Z
from flex.constants import ( OBJECT, ) from flex.datastructures import ( ValidationDict, ) from flex.validation.common import ( generate_object_validator, ) from flex.loading.common.mimetypes import ( mimetype_validator, ) from .info import info_validator from .swagger import swagger_version_validator f...
28.611111
81
0.794175
264d3e14d545cd517b88673576f7787d3334300e
6,781
py
Python
src/app.py
luisarojas/temp-imm-policy
660adc750e1c3312627a4a24df246a8e2701081a
[ "MIT" ]
1
2021-05-12T12:48:55.000Z
2021-05-12T12:48:55.000Z
src/app.py
luisarojas/temp-imm-policy
660adc750e1c3312627a4a24df246a8e2701081a
[ "MIT" ]
null
null
null
src/app.py
luisarojas/temp-imm-policy
660adc750e1c3312627a4a24df246a8e2701081a
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from bs4 import BeautifulSoup from pathlib import Path from datetime import datetime, timedelta from email.message import E...
35.317708
209
0.630733
941f13501ea23a47f81d705fda6a5c9028d604fd
147
py
Python
ws-python/ex032.py
DerickSilva/Python
8e81c6fe403e3321f18d2767f0bdfc818b180fd2
[ "MIT" ]
null
null
null
ws-python/ex032.py
DerickSilva/Python
8e81c6fe403e3321f18d2767f0bdfc818b180fd2
[ "MIT" ]
null
null
null
ws-python/ex032.py
DerickSilva/Python
8e81c6fe403e3321f18d2767f0bdfc818b180fd2
[ "MIT" ]
null
null
null
ano = int(input('Que ano deseja analisar? ')) if ano % 4 == 0: print(f'O ano {ano} é Bissexto') else: print(f'O ano {ano} não é bissexto')
24.5
45
0.605442
ae4d0e249376ef73dd34edbd99d2989644d80bcd
11,983
py
Python
tests/mypy_test.py
andrewshadura/typeshed
bf2049ef18244b8b3024cd7a8cb28b7457dd4652
[ "Apache-2.0" ]
null
null
null
tests/mypy_test.py
andrewshadura/typeshed
bf2049ef18244b8b3024cd7a8cb28b7457dd4652
[ "Apache-2.0" ]
null
null
null
tests/mypy_test.py
andrewshadura/typeshed
bf2049ef18244b8b3024cd7a8cb28b7457dd4652
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Test runner for typeshed. Depends on mypy being installed. Approach: 1. Parse sys.argv 2. Compute appropriate arguments for mypy 3. Stuff those arguments into sys.argv 4. Run mypy.main('') 5. Repeat steps 2-4 for other mypy runs (e.g. --py2) """ import argparse import os import re import s...
34.632948
123
0.610365
d286a6569ef52a235d026ef23ec84b423b79a274
117
py
Python
tellurium/roadrunner/__init__.py
kirichoi/tellurium
77cf6e794600587741ebe209644a78051e0db1d5
[ "Apache-2.0" ]
73
2016-06-13T12:44:28.000Z
2021-12-31T14:44:39.000Z
tellurium/roadrunner/__init__.py
kirichoi/tellurium
77cf6e794600587741ebe209644a78051e0db1d5
[ "Apache-2.0" ]
461
2015-03-26T00:05:16.000Z
2022-03-16T17:24:35.000Z
tellurium/roadrunner/__init__.py
kirichoi/tellurium
77cf6e794600587741ebe209644a78051e0db1d5
[ "Apache-2.0" ]
30
2016-01-18T16:50:54.000Z
2021-07-06T09:29:53.000Z
from __future__ import print_function, division, absolute_import from .extended_roadrunner import ExtendedRoadRunner
39
64
0.888889
657ee7cd7ce0a451f1a19f1b73d966705677c5bf
19,372
py
Python
app/extension/confluence/extension_locust.py
frsCommunardo/dc-app-performance-toolkit
39eb794b329f53e4457eec9e54b9d927612bd810
[ "Apache-2.0" ]
null
null
null
app/extension/confluence/extension_locust.py
frsCommunardo/dc-app-performance-toolkit
39eb794b329f53e4457eec9e54b9d927612bd810
[ "Apache-2.0" ]
null
null
null
app/extension/confluence/extension_locust.py
frsCommunardo/dc-app-performance-toolkit
39eb794b329f53e4457eec9e54b9d927612bd810
[ "Apache-2.0" ]
null
null
null
import re import random from locustio.common_utils import confluence_measure, fetch_by_re, timestamp_int, \ TEXT_HEADERS, NO_TOKEN_HEADERS, JSON_HEADERS, RESOURCE_HEADERS, generate_random_string, init_logger, \ raise_if_login_failed from locustio.confluence.requests_params import confluence_datasets, Login, Vie...
59.790123
142
0.72326
02b045d2c6994f9aa4abdebc34d56d233a699284
3,246
py
Python
Sentiment scoring/old/ScoreSentiment_Rating.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
2
2021-05-27T12:43:20.000Z
2022-02-24T07:01:55.000Z
Sentiment scoring/old/ScoreSentiment_Rating.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
5
2021-03-19T08:52:22.000Z
2021-09-22T19:21:44.000Z
Sentiment scoring/old/ScoreSentiment_Rating.py
stancld/MSc-Project
31a57ed58a902fe998649b948c61e70ca78729a4
[ "MIT" ]
2
2020-09-29T03:27:38.000Z
2020-11-07T05:41:10.000Z
""" File: ScoreSentiment_Rating.py Author: Daniel Stancl Description: This file takes companies and reviews dataframe and generate columns with employee sentiment for companies in a given month/ over a given period etc. """ import pandas as pd class ScoreSentiment_Rating(object): def __init__(self, companies, rev...
31.514563
123
0.59273
72b14d4fcb5dfae7ae0a0e28c60b24f59ad27d84
35,489
py
Python
tensorflow/python/keras/initializers/initializers_v2.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
9
2019-06-05T06:48:07.000Z
2020-09-29T07:08:02.000Z
tensorflow/python/keras/initializers/initializers_v2.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
7
2021-11-10T20:21:23.000Z
2022-03-22T19:18:39.000Z
tensorflow/python/keras/initializers/initializers_v2.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
3
2019-06-28T02:28:27.000Z
2021-07-06T08:16:19.000Z
# Copyright 2020 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...
34.488824
162
0.690552
b6a72e359718d6a21b7fc28b4b4a0751e3e26821
4,561
py
Python
tensorflow_model_analysis/extractors/slice_key_extractor_test.py
yifanmai/model-analysis
ae11318876ac6233ded77ac30c8aacc94da691d3
[ "Apache-2.0" ]
2
2019-10-20T05:40:09.000Z
2019-10-31T17:25:51.000Z
tensorflow_model_analysis/extractors/slice_key_extractor_test.py
yifanmai/model-analysis
ae11318876ac6233ded77ac30c8aacc94da691d3
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/extractors/slice_key_extractor_test.py
yifanmai/model-analysis
ae11318876ac6233ded77ac30c8aacc94da691d3
[ "Apache-2.0" ]
1
2019-10-10T06:20:25.000Z
2019-10-10T06:20:25.000Z
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.578571
75
0.637799
60f3a7a9a73eed8afe761d313aba03759d8ba25d
4,423
py
Python
colour/difference/tests/test_cam02_ucs.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/difference/tests/test_cam02_ucs.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
colour/difference/tests/test_cam02_ucs.py
JGoldstone/colour
6829b363d5f0682bff0f4826995e7ceac189ff28
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Defines the unit tests for the :mod:`colour.difference.cam02_ucs` module. """ import numpy as np import unittest from itertools import permutations from colour.difference import ( delta_E_CAM02LCD, delta_E_CAM02SCD, delta_E_CAM02UCS, ) from colour.difference.cam02_ucs import de...
34.826772
79
0.597558
b98403697b502e8293de5c0c37092d0c9d538399
1,486
py
Python
mds/github.py
RMK0110/mds-provider
3bdb8e2a94c67b07e13763f1ede984feba944eaa
[ "MIT" ]
null
null
null
mds/github.py
RMK0110/mds-provider
3bdb8e2a94c67b07e13763f1ede984feba944eaa
[ "MIT" ]
1
2018-12-14T03:51:31.000Z
2018-12-14T03:51:31.000Z
mds/github.py
RMK0110/mds-provider
3bdb8e2a94c67b07e13763f1ede984feba944eaa
[ "MIT" ]
null
null
null
""" Data and helpers for MDS on GitHub. """ GITHUB = "https://github.com" GITHUB_RAW = "https://raw.githubusercontent.com" MDS_DEFAULT_REF = "master" MDS_ORG_NAME = "CityOfLosAngeles" MDS_REPO_NAME = "mobility-data-specification" MDS = (GITHUB, MDS_ORG_NAME, MDS_REPO_NAME) MDS_RAW = (GITHUB_RAW, MDS_ORG_NAME, MDS_R...
26.070175
81
0.641992
a833b0d86543d75c6c2003937cd22b52086e448e
603
py
Python
benchmarks/sqlite/cost-factors/launch-time/time_estimation.py
vschiavoni/unine-twine
312d770585ea88c13ef135ef467fee779494fd90
[ "Apache-2.0" ]
20
2021-04-05T20:05:57.000Z
2022-02-19T18:48:52.000Z
benchmarks/sqlite/cost-factors/launch-time/time_estimation.py
vschiavoni/unine-twine
312d770585ea88c13ef135ef467fee779494fd90
[ "Apache-2.0" ]
null
null
null
benchmarks/sqlite/cost-factors/launch-time/time_estimation.py
vschiavoni/unine-twine
312d770585ea88c13ef135ef467fee779494fd90
[ "Apache-2.0" ]
4
2021-02-22T14:52:21.000Z
2022-01-10T16:58:39.000Z
import time import pexpect import sys # Start the timer for measuring process time t_start = time.perf_counter() # Spawn a child process with the enclave analyzer = pexpect.spawn(" ".join(sys.argv[1:]), encoding='utf-8', timeout=None) # Wait until the enclave is ready to be measured analyzer.expect("Initialization d...
24.12
80
0.751244
d48f55e9ff6d76abaa8055ee3122ff9445f99cc7
38,346
py
Python
mne/tests/test_source_space.py
guiomar/mne-python
2d19800a07904cfe69c1ba290c3eaf712625c6ab
[ "BSD-3-Clause" ]
2
2020-05-11T13:34:36.000Z
2020-05-28T19:43:21.000Z
mne/tests/test_source_space.py
guiomar/mne-python
2d19800a07904cfe69c1ba290c3eaf712625c6ab
[ "BSD-3-Clause" ]
8
2018-03-03T19:59:16.000Z
2020-10-14T11:00:33.000Z
mne/tests/test_source_space.py
guiomar/mne-python
2d19800a07904cfe69c1ba290c3eaf712625c6ab
[ "BSD-3-Clause" ]
4
2017-08-14T18:03:22.000Z
2021-03-04T06:55:29.000Z
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # # License: BSD-3-Clause import os.path as op from shutil import copytree import pytest import scipy import numpy as np from numpy.testing import (assert_array_equal, assert_allclose, ...
41.011765
79
0.648699
afc71626c25d674b62980ce4631c1dfbc7b45e7c
318
py
Python
app/test.py
williamFalcon/docker-flask-nginx-uwsgi-miniconda-3.4
4608969c974a9a506b905a3f69d1df0570b1376f
[ "MIT" ]
4
2018-06-22T05:36:39.000Z
2021-12-26T15:39:51.000Z
app/test.py
williamFalcon/docker-flask-nginx-uwsgi-miniconda-3.4
4608969c974a9a506b905a3f69d1df0570b1376f
[ "MIT" ]
null
null
null
app/test.py
williamFalcon/docker-flask-nginx-uwsgi-miniconda-3.4
4608969c974a9a506b905a3f69d1df0570b1376f
[ "MIT" ]
3
2019-02-25T12:50:06.000Z
2019-10-25T16:45:14.000Z
import unittest from application import app class TestPost(unittest.TestCase): def test_post(self): self.test_app = app.test_client() response = self.test_app.get('/', content_type='html/text') self.assertEqual(response.status_code, 200) if __name__ == '__main__': unittest.main()
21.2
67
0.688679
cbbad0789d712cbf7b1deb2398438c2b41b7234f
7,335
py
Python
args.py
isamu-isozaki/hidden-networks
7dcb96a7de43b65ffde176d771f88b5ecedb84ab
[ "Apache-2.0" ]
null
null
null
args.py
isamu-isozaki/hidden-networks
7dcb96a7de43b65ffde176d771f88b5ecedb84ab
[ "Apache-2.0" ]
null
null
null
args.py
isamu-isozaki/hidden-networks
7dcb96a7de43b65ffde176d771f88b5ecedb84ab
[ "Apache-2.0" ]
null
null
null
import argparse import sys import yaml from configs import parser as _parser args = None def parse_arguments(): parser = argparse.ArgumentParser(description="PyTorch ImageNet Training") # General Config parser.add_argument( "--data", help="path to dataset base directory", default="/mnt/disk1/da...
28.652344
94
0.591411
cf8de8a0e73919dec44958a50d8da1fbd8487cc1
1,043
py
Python
app/core/migrations/0004_recipe.py
MortenTobiasNielsen/recipe-app-api
1bd1b7e8796f867a8c1773fbacfb5003ab2942d2
[ "MIT" ]
null
null
null
app/core/migrations/0004_recipe.py
MortenTobiasNielsen/recipe-app-api
1bd1b7e8796f867a8c1773fbacfb5003ab2942d2
[ "MIT" ]
null
null
null
app/core/migrations/0004_recipe.py
MortenTobiasNielsen/recipe-app-api
1bd1b7e8796f867a8c1773fbacfb5003ab2942d2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-12-13 13:38 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_ingredient'), ] operations = [ migrations.CreateModel( ...
35.965517
118
0.604027
2d64246d761db74873b590f0a4be9a67f35af981
735
py
Python
filesystemManager.py
noahlessard/folderManager
f76175eea3f1d76edee60230ff6e6a790d2412ed
[ "CC0-1.0" ]
null
null
null
filesystemManager.py
noahlessard/folderManager
f76175eea3f1d76edee60230ff6e6a790d2412ed
[ "CC0-1.0" ]
null
null
null
filesystemManager.py
noahlessard/folderManager
f76175eea3f1d76edee60230ff6e6a790d2412ed
[ "CC0-1.0" ]
null
null
null
import os from pathlib import Path import time while True: path = Path("C:/Users/Administrator/Desktop/Zack\'s New World/backups").rglob('*.zip') fileArray = [] nameArray = [] for name in path: fileArray.append(os.path.getmtime(name)) nameArray.append(name...
21.617647
91
0.529252
d5aeaf5b6ab7358d005d29e65bb9fc6a9247f441
546
py
Python
Face Reconstruction/Fast Few-shot Face alignment by Reconstruction/landmarks/lmconfig.py
swapnilgarg7/Face-X
fab21bf667fa7387b8e73e5a1d72fcba4fba2818
[ "MIT" ]
175
2020-10-02T13:42:50.000Z
2022-03-30T15:57:12.000Z
Face Reconstruction/Fast Few-shot Face alignment by Reconstruction/landmarks/lmconfig.py
swapnilgarg7/Face-X
fab21bf667fa7387b8e73e5a1d72fcba4fba2818
[ "MIT" ]
704
2020-09-30T10:44:13.000Z
2022-03-30T07:18:28.000Z
Face Reconstruction/Fast Few-shot Face alignment by Reconstruction/landmarks/lmconfig.py
swapnilgarg7/Face-X
fab21bf667fa7387b8e73e5a1d72fcba4fba2818
[ "MIT" ]
342
2020-10-02T14:04:49.000Z
2022-03-31T10:14:20.000Z
LANDMARK_TARGET = 'multi_channel' MIN_LANDMARK_CONF = 0.8 LANDMARK_OCULAR_NORM = 'outer' PREDICT_HEATMAP = True HEATMAP_SIZE = 128 LANDMARKS_6 = [36, 39, 42, 45, 48, 54] LANDMARKS_9 = [30, 36, 39, 42, 45, 48, 51, 54, 57] LANDMARKS_12 = [21, 22, 27, 30, 36, 39, 42, 45, 48, 51, 54, 57] LANDMARKS_19 = [0, 4, 8, 12, 16, ...
36.4
96
0.608059
f89b238506bec89cdc22b0e1f9818be98993b50c
6,361
py
Python
market_data.py
alex-bormotov/AXE-Bot-open
51b7bd768bc0f08ecc9ed81becbc806f41940ed1
[ "MIT" ]
18
2019-11-20T15:21:28.000Z
2021-12-19T22:21:28.000Z
market_data.py
alex-bormotov/AXE-Bot-open
51b7bd768bc0f08ecc9ed81becbc806f41940ed1
[ "MIT" ]
null
null
null
market_data.py
alex-bormotov/AXE-Bot-open
51b7bd768bc0f08ecc9ed81becbc806f41940ed1
[ "MIT" ]
6
2019-11-13T10:11:07.000Z
2021-12-03T01:03:34.000Z
import time import json import requests import pandas as pd import datetime as dt from time import sleep from notification import notificator from requests.adapters import HTTPAdapter from exchange import api_requests_frequency show_error = "YES" api_requests_frequency = api_requests_frequency() # GET PRICE FROM CRY...
35.143646
143
0.567521
af2d5bf91996788bd7279e96df8eea8ea1969a70
2,669
py
Python
meal_planner/recipes/forms.py
brandonw/meal_planner
63200e6987b2794313492bfd3153d68b762f9b84
[ "BSD-3-Clause" ]
1
2016-06-16T15:03:34.000Z
2016-06-16T15:03:34.000Z
meal_planner/recipes/forms.py
brandonw/meal_planner
63200e6987b2794313492bfd3153d68b762f9b84
[ "BSD-3-Clause" ]
null
null
null
meal_planner/recipes/forms.py
brandonw/meal_planner
63200e6987b2794313492bfd3153d68b762f9b84
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.core.urlresolvers import reverse from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout from crispy_forms.bootstrap import StrictButton from recipes.models import Recipe class RecipeHomeForm(forms.Form): NAME = 'name' RATING = 'rating' SOR...
28.698925
76
0.576995