hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
5c629102950de0908ab0512a2741f2b444ea39e8
12,653
py
Python
site-packages/osc_lib/tests/cli/test_parseractions.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/osc_lib/tests/cli/test_parseractions.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
site-packages/osc_lib/tests/cli/test_parseractions.py
hariza17/freezer_libraries
e0bd890eba5e7438976fb3b4d66c41c128bab790
[ "PSF-2.0" ]
null
null
null
# Copyright 2012-2013 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
29.494172
78
0.512606
f8cd39e556009aa435acb8857309b318c7a0e36c
2,369
py
Python
src/primaires/scripting/actions/interrompre.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/scripting/actions/interrompre.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/scripting/actions/interrompre.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2012 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # l...
40.152542
79
0.747573
b2de191335c4557c3479be2cfd98c0e0ebeeded3
2,124
py
Python
pypowerbi/import_class.py
brunompacheco/pypowerbi
647951b7b0127a83c98427b0d58e380dc622e3b8
[ "MIT" ]
null
null
null
pypowerbi/import_class.py
brunompacheco/pypowerbi
647951b7b0127a83c98427b0d58e380dc622e3b8
[ "MIT" ]
null
null
null
pypowerbi/import_class.py
brunompacheco/pypowerbi
647951b7b0127a83c98427b0d58e380dc622e3b8
[ "MIT" ]
null
null
null
# -*- coding: future_fstrings -*- from .dataset import Dataset from .report import Report class Import: # json keys id_key = 'id' name_key = 'name' created_timedate_key = 'createdDateTime' datasets_key = 'datasets' import_state_key = 'importState' reports_key = 'reports' updated_datet...
33.714286
101
0.673258
87ef3df3ce4e823c45042f9e8658d3a6423f98c0
8,582
py
Python
assopy/forms.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
assopy/forms.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
assopy/forms.py
zevaverbach/epcon
8352c030ee0d4197f559cdb58a54ee45c7a4471a
[ "BSD-2-Clause" ]
null
null
null
from django import forms from django.conf import settings as dsettings from django.utils.translation import ugettext as _ from assopy import models from assopy import settings from conference import models as cmodels import logging log = logging.getLogger('assopy.forms') # autostrip - http://djangosnippets.org/sni...
36.832618
135
0.557795
21c57f3283299ea716976a14b65ae63d5e4926ce
26,862
py
Python
djangobb_forum/migrations/0001_initial.py
dboczek/DjangoBB
80c42274839714f0cc6c4529ba1b44ae5e4e03c1
[ "BSD-3-Clause" ]
15
2015-02-26T13:59:30.000Z
2021-11-08T09:50:47.000Z
djangobb_forum/migrations/0001_initial.py
dboczek/DjangoBB
80c42274839714f0cc6c4529ba1b44ae5e4e03c1
[ "BSD-3-Clause" ]
52
2015-01-08T21:57:43.000Z
2021-03-25T07:39:20.000Z
djangobb_forum/migrations/0001_initial.py
dboczek/DjangoBB
80c42274839714f0cc6c4529ba1b44ae5e4e03c1
[ "BSD-3-Clause" ]
18
2015-01-20T00:11:28.000Z
2021-09-04T18:03:14.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Category' db.create_table('djangobb_forum_category', ( ('id', self.gf('django....
72.016086
187
0.597684
5fab3c8a29e9b481a9c96cefec36989f38582e2d
2,600
py
Python
test/connectivity/acts/framework/acts/signals.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/framework/acts/signals.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
null
null
null
test/connectivity/acts/framework/acts/signals.py
Keneral/atools
055e76621340c7dced125e9de56e2645b5e1cdfb
[ "Unlicense" ]
1
2018-02-24T19:13:01.000Z
2018-02-24T19:13:01.000Z
#!/usr/bin/env python3.4 # # Copyright 2016 - The Android Open Source Project # # 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 req...
32.911392
79
0.682308
28fd9c30761c9ec1c19d28fef061abe87cba3c94
206
py
Python
cogdl/loggers/base_logger.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
1,072
2019-08-02T05:46:21.000Z
2022-03-31T07:51:53.000Z
cogdl/loggers/base_logger.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
96
2019-08-05T17:27:22.000Z
2022-03-03T08:36:57.000Z
cogdl/loggers/base_logger.py
li-ziang/cogdl
60022d3334e3abae2d2a505e6e049a26acf10f39
[ "MIT" ]
299
2019-08-08T07:33:10.000Z
2022-03-31T09:30:07.000Z
class Logger: def __init__(self, log_path): self.log_path = log_path def start(self): pass def note(self, metrics, step=None): pass def finish(self): pass
15.846154
39
0.567961
86712c56c66b3441805ad088ef0b8c8ce0b28bc0
10,074
py
Python
src/MainPanel.py
DaniW42/Hector9000
b9161c71ae23f1671787298f8fae6c503b50d6e6
[ "MIT" ]
7
2019-07-22T10:09:59.000Z
2019-11-16T12:28:38.000Z
src/MainPanel.py
assgex/Hector9000
b9161c71ae23f1671787298f8fae6c503b50d6e6
[ "MIT" ]
null
null
null
src/MainPanel.py
assgex/Hector9000
b9161c71ae23f1671787298f8fae6c503b50d6e6
[ "MIT" ]
7
2019-07-22T19:56:17.000Z
2019-11-16T10:48:39.000Z
import time import json from kivy.core.text import Label from drinks import drink_list, ingredients from kivy.properties import StringProperty, ListProperty from kivy.uix.progressbar import ProgressBar from functools import partial from kivy.uix.label import Label from kivy.uix.boxlayout import BoxLayout from ...
34.737931
139
0.528588
59120d373ccf4335d60fb9ded6693a446f8df97a
442
py
Python
DjangoCRUD/venv/Scripts/pip3.7-script.py
Dawwie/Django
8c0382d5e44e125d9c5b52742f8dc07008e0b8b7
[ "MIT" ]
null
null
null
DjangoCRUD/venv/Scripts/pip3.7-script.py
Dawwie/Django
8c0382d5e44e125d9c5b52742f8dc07008e0b8b7
[ "MIT" ]
null
null
null
DjangoCRUD/venv/Scripts/pip3.7-script.py
Dawwie/Django
8c0382d5e44e125d9c5b52742f8dc07008e0b8b7
[ "MIT" ]
null
null
null
#!"E:\Pobrane\Programowanie\Pycharm 2018.3.4\Projects\DjangoCRUD\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.py...
34
89
0.674208
af60024a11b9bc4bbb464de703d547517d2906f0
5,176
py
Python
plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/plugin/raw/plugin.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/plugin/raw/plugin.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
plugins/holland.backup.mysql_lvm/holland/backup/mysql_lvm/plugin/raw/plugin.py
Alibloke/holland
e630b511a95ed8e36205e8300e632018918223ff
[ "BSD-3-Clause" ]
null
null
null
"""MySQL LVM snapshot backups""" import os import logging from holland.core.util.path import directory_size from holland.core.backup import BackupError from holland.lib.lvm import LogicalVolume, CallbackFailuresError, LVMCommandError, relpath, getmount from holland.lib.mysql.client import MySQLError from holland.lib.m...
34.738255
100
0.676198
604d14b1570f4a4b1b1d12c13fef9048767d1fba
84
py
Python
main.py
us-upal/The_Self_Taught_Programmer
1ccdd519a964c01ec1c892a22fd5b8c4cce2267f
[ "MIT" ]
null
null
null
main.py
us-upal/The_Self_Taught_Programmer
1ccdd519a964c01ec1c892a22fd5b8c4cce2267f
[ "MIT" ]
null
null
null
main.py
us-upal/The_Self_Taught_Programmer
1ccdd519a964c01ec1c892a22fd5b8c4cce2267f
[ "MIT" ]
null
null
null
print("hello world") for _ in range(10): print("hello world") #hello world *10
28
41
0.654762
6c3df2671a95387912ef92ea0bc0da5afe6d1312
7,656
py
Python
tests/python/topi/python/test_topi_math.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
tests/python/topi/python/test_topi_math.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
tests/python/topi/python/test_topi_math.py
shengxinhu/tvm
06c443e9959452c6da3a911fe0c11e08c5554477
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.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...
30.995951
100
0.583072
30521fbaa38774fdb0ed7cb902a10df1ad93eeac
2,833
py
Python
test/functional/wallet_zapwallettxes.py
BioA3/BioA3
a7ad7021121aaa468b11a9925972e315cea70f50
[ "MIT" ]
null
null
null
test/functional/wallet_zapwallettxes.py
BioA3/BioA3
a7ad7021121aaa468b11a9925972e315cea70f50
[ "MIT" ]
null
null
null
test/functional/wallet_zapwallettxes.py
BioA3/BioA3
a7ad7021121aaa468b11a9925972e315cea70f50
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the zapwallettxes functionality. - start two bioa3d nodes - create two transactions on node 0 - o...
39.901408
112
0.710201
d2c8effd068b1b2ba95997af01aa12a589157d2f
540
py
Python
rockstreet/artista/models.py
CeMenezesJunior/DevWebDjango
7b442411b6444f1c7c3c781ef8e5fdad73a476e0
[ "MIT" ]
null
null
null
rockstreet/artista/models.py
CeMenezesJunior/DevWebDjango
7b442411b6444f1c7c3c781ef8e5fdad73a476e0
[ "MIT" ]
null
null
null
rockstreet/artista/models.py
CeMenezesJunior/DevWebDjango
7b442411b6444f1c7c3c781ef8e5fdad73a476e0
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse class Artista(models.Model): nome = models.CharField(max_length=70, db_index=True, unique=True) descricao = models.CharField(max_length=100) imagem = models.CharField(max_length=100, blank=True) slug = models.SlugField(max_length=70) cl...
28.421053
72
0.696296
7db30ba28ce1598afe6c3a63c621d97ccd5e96f6
2,663
py
Python
astropy/io/misc/tests/test_pickle_helpers.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
3
2018-03-20T15:09:16.000Z
2021-05-27T11:17:33.000Z
astropy/io/misc/tests/test_pickle_helpers.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
astropy/io/misc/tests/test_pickle_helpers.py
REMeyer/astropy
28c49fb618538a01812e586cd07bccdf0591a6c6
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest from .. import fnpickle, fnunpickle from ....extern.six.moves import range def test_fnpickling_simple(tmpdir): """ Tests the `fnpickle` and `fnupickle` functions' basic operation by pickling and unpickling a string, using both...
24.431193
70
0.626361
7b3300e3157bb51fc605dcb61fda49d5f9e9378d
49,454
py
Python
src/full_node/full_node_api.py
nup002/chia-blockchain
93adb84f29c60bf06d30493c104be9329d7886dc
[ "Apache-2.0" ]
null
null
null
src/full_node/full_node_api.py
nup002/chia-blockchain
93adb84f29c60bf06d30493c104be9329d7886dc
[ "Apache-2.0" ]
null
null
null
src/full_node/full_node_api.py
nup002/chia-blockchain
93adb84f29c60bf06d30493c104be9329d7886dc
[ "Apache-2.0" ]
null
null
null
import asyncio import dataclasses import time import src.server.ws_connection as ws from typing import AsyncGenerator, List, Optional, Tuple, Callable, Dict from chiabip158 import PyBIP158 from blspy import G2Element, AugSchemeMPL from src.consensus.block_creation import create_unfinished_block from src.consensus.pot...
46.089469
120
0.641182
5d0b5298314e4d455126348b27873ae058700386
3,618
py
Python
python/tink/integration/gcpkms/_gcp_kms_aead_test.py
sgammon/tink
852e689f057794beb4784833d1af71c4a25920af
[ "Apache-2.0" ]
null
null
null
python/tink/integration/gcpkms/_gcp_kms_aead_test.py
sgammon/tink
852e689f057794beb4784833d1af71c4a25920af
[ "Apache-2.0" ]
null
null
null
python/tink/integration/gcpkms/_gcp_kms_aead_test.py
sgammon/tink
852e689f057794beb4784833d1af71c4a25920af
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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 agreed to in writing,...
38.084211
139
0.74848
54c6751d9c4902ab65bd45b764554dfb87a3ccc7
2,259
py
Python
github_comparison/settings.py
osama-mohamed/github_comparison_django
5cf13c0891e492ec2322d6cd813d2b50cab362d1
[ "MIT" ]
3
2018-05-02T20:37:11.000Z
2020-10-15T17:19:26.000Z
github_comparison/settings.py
osama-mohamed/github_comparison_django
5cf13c0891e492ec2322d6cd813d2b50cab362d1
[ "MIT" ]
1
2019-06-10T21:35:13.000Z
2019-06-10T21:35:13.000Z
github_comparison/settings.py
osama-mohamed/github_comparison_django
5cf13c0891e492ec2322d6cd813d2b50cab362d1
[ "MIT" ]
null
null
null
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'b#b94r&k^ek8f#=c3y&p=%0pv5h@vyhsrt_*8xm8p4z4eik34k' DEBUG = False ALLOWED_HOSTS = ['localhost'] INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.con...
25.1
91
0.653386
f5e9c2739af7a1ae8b2c52614e46816aeb558de3
4,344
py
Python
cifar10_train.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
cifar10_train.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
cifar10_train.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
# 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...
36.504202
80
0.645718
6058642bb2e5bb521e6a47ffad5125dcb052fb19
3,596
py
Python
gmane.py
rovelee/gmane
47d00d7ad5ce8b7c1fe472e3f7bcd642aee2c437
[ "MIT" ]
null
null
null
gmane.py
rovelee/gmane
47d00d7ad5ce8b7c1fe472e3f7bcd642aee2c437
[ "MIT" ]
null
null
null
gmane.py
rovelee/gmane
47d00d7ad5ce8b7c1fe472e3f7bcd642aee2c437
[ "MIT" ]
null
null
null
import re import sqlite3 import ssl import time from urllib.request import urlopen from gtools import parsemaildate # 数据测试网站域名 baseurl = 'http://mbox.dr-chuck.net/sakai.devel/' # 无视ssl认证错误 ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE # 连接数据库,如果不存在则在目录下创建一个 conn = sqli...
25.323944
94
0.555617
7ac63e86f253fc09da9092a43d2a4f568107587f
1,791
py
Python
administration/src/embedded/mfrc_service.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
null
null
null
administration/src/embedded/mfrc_service.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
1
2019-05-13T16:19:36.000Z
2019-05-19T11:21:22.000Z
administration/src/embedded/mfrc_service.py
shivamvku/flakrfid
559198d23907eea6e87f38fac1c5fb5c2b6fbca8
[ "MIT" ]
null
null
null
def load_src(name, fdir, fpath): import os, imp res_full_path = os.path.join( os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))), fdir, fpath) return imp.load_source(name, res_full_path) load_src("MFRC522", "rfid_python_lib", "MFRC522.py") import MFRC522 import time cla...
35.117647
119
0.546622
cde50345c13d57d925371087799b61ab1bb4b186
20,791
py
Python
src/onegov/winterthur/daycare.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/daycare.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/daycare.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import chameleon import textwrap import yaml from babel.numbers import format_decimal from cached_property import cached_property from collections import defaultdict from collections import OrderedDict from decimal import Decimal, localcontext from onegov.core.utils import Bunch from onegov.core.utils import normalize...
28.876389
79
0.547304
d54b5accf069f15dabd1388e391b4b8ccf41319e
24,131
py
Python
models/relu_not_concat.py
dishen12/RFB_aspp
d968ad3cca1ff048212bc2d0c179557edfd1241c
[ "MIT" ]
null
null
null
models/relu_not_concat.py
dishen12/RFB_aspp
d968ad3cca1ff048212bc2d0c179557edfd1241c
[ "MIT" ]
null
null
null
models/relu_not_concat.py
dishen12/RFB_aspp
d968ad3cca1ff048212bc2d0c179557edfd1241c
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from layers import * import torchvision.transforms as transforms import torchvision.models as models import torch.backends.cudnn as cudnn import os class BasicConv(nn.Module): def __init__(self, in_planes, out_p...
47.974155
154
0.583482
a0704cc67924ee3176fe445c007dcfedda0569d7
4,583
py
Python
yardstick/benchmark/runners/iteration.py
mythwm/yardstick-wm
319ced11df92456b42c80cfd6e53c66dbd22a746
[ "Apache-2.0" ]
1
2019-12-08T21:57:31.000Z
2019-12-08T21:57:31.000Z
yardstick/benchmark/runners/iteration.py
mythwm/yardstick-wm
319ced11df92456b42c80cfd6e53c66dbd22a746
[ "Apache-2.0" ]
null
null
null
yardstick/benchmark/runners/iteration.py
mythwm/yardstick-wm
319ced11df92456b42c80cfd6e53c66dbd22a746
[ "Apache-2.0" ]
null
null
null
# Copyright 2014: Mirantis 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 b...
31.826389
78
0.580624
13046201545d50b8d73d5fb76826c76a83d51425
2,363
py
Python
www/mf.py
MAGENTAFACES/MAGENTAFACES
96908a8233efbe2e7eaa9e4221928cd63035ad00
[ "MIT" ]
null
null
null
www/mf.py
MAGENTAFACES/MAGENTAFACES
96908a8233efbe2e7eaa9e4221928cd63035ad00
[ "MIT" ]
null
null
null
www/mf.py
MAGENTAFACES/MAGENTAFACES
96908a8233efbe2e7eaa9e4221928cd63035ad00
[ "MIT" ]
null
null
null
import os from jinja2 import Environment, FileSystemLoader from markdown import markdown from random import random from werkzeug.exceptions import HTTPException, NotFound from werkzeug.routing import Map, Rule from werkzeug.wrappers import Request, Response from werkzeug.wsgi import SharedDataMiddleware class MagentaF...
29.5375
97
0.703766
f67b41f7e7c050f6c19852a8d7fc25e955f3354a
460
py
Python
leetCode/algorithms/medium/flatten_nested_list_iterator.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
leetCode/algorithms/medium/flatten_nested_list_iterator.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
leetCode/algorithms/medium/flatten_nested_list_iterator.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
from collections import deque class NestedIterator(object): def __init__(self, nestedList): self.q = deque([]) self.processList(nestedList) def processList(self, ls): for e in ls: if e.isInteger(): self.q.append(e.getInteger()) else: ...
21.904762
45
0.56087
2d140b44032324330d071a467d267e5f9a15ed3c
24,945
py
Python
eosim/gui/visualize/vis2dframe.py
EarthObservationSimulator/eosim-gui
3067026f5f32be214e9ec2c4461a734ad25bb6a4
[ "Apache-2.0" ]
null
null
null
eosim/gui/visualize/vis2dframe.py
EarthObservationSimulator/eosim-gui
3067026f5f32be214e9ec2c4461a734ad25bb6a4
[ "Apache-2.0" ]
null
null
null
eosim/gui/visualize/vis2dframe.py
EarthObservationSimulator/eosim-gui
3067026f5f32be214e9ec2c4461a734ad25bb6a4
[ "Apache-2.0" ]
null
null
null
""" .. module:: vis2dframe :synopsis: *Module to handle visualization with X-Y plots.* The module contains the class ``Vis2DFrame`` to build the frame in which the user enters the plotting parameters. A time-interval of interest is to be specified, and the X, Y data corresponding to this time-interval shall be plot...
49.39604
206
0.636119
6eee5a86a178cbf54d0b8ca80443d611ab78f80f
11,832
py
Python
pywren/state.py
Pkanjan37/Lightweight_big_data_framework_serverless
4a1489429a71d488f449f9dffbeca85ead31db14
[ "Apache-2.0" ]
null
null
null
pywren/state.py
Pkanjan37/Lightweight_big_data_framework_serverless
4a1489429a71d488f449f9dffbeca85ead31db14
[ "Apache-2.0" ]
null
null
null
pywren/state.py
Pkanjan37/Lightweight_big_data_framework_serverless
4a1489429a71d488f449f9dffbeca85ead31db14
[ "Apache-2.0" ]
null
null
null
# # Copyright 2018 PyWren Team # # 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...
37.443038
141
0.61452
db8cb334a4c58b04bf31a26064c4ed311a5bde4e
3,140
py
Python
src/train.py
joelsjoyt/Animal-Classifier
dd4e93a5e50631a82dd2284dea18cb32d8927b82
[ "MIT" ]
4
2020-11-09T03:48:30.000Z
2021-07-12T23:54:45.000Z
src/train.py
joelsjoyt/Animal-Classifier
dd4e93a5e50631a82dd2284dea18cb32d8927b82
[ "MIT" ]
null
null
null
src/train.py
joelsjoyt/Animal-Classifier
dd4e93a5e50631a82dd2284dea18cb32d8927b82
[ "MIT" ]
null
null
null
import torch import copy from torch import nn, optim from torch.optim import lr_scheduler import time def train(dataloaders, dataset_sizes, model, device): def train_model(model, criterion, optimizer, scheduler, num_epochs=10): since = time.time() best_model_wts = copy.deepcopy(model.state_dict()...
35.681818
86
0.53121
37f9ff8bc26db8542a141dff508c61498bb0d17f
7,134
py
Python
src/datadog_api_client/v2/model/role_relationships.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v2/model/role_relationships.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
src/datadog_api_client/v2/model/role_relationships.py
rchenzheng/datadog-api-client-python
2e86ac098c6f0c7fdd90ed218224587c0f8eafef
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. import re # noqa: F401 import sys # noqa: F401 from datadog_api_client.v2.model_uti...
40.534091
108
0.59672
e2c841234a29fb6b2b0ca97b7d50bec9c98f2c8e
171
py
Python
sample_user_model/sample_user_model/routes.py
JSchatzman/sample_user_model
9a15b1940ab340c717aeab053f75ff66c183abbc
[ "MIT" ]
null
null
null
sample_user_model/sample_user_model/routes.py
JSchatzman/sample_user_model
9a15b1940ab340c717aeab053f75ff66c183abbc
[ "MIT" ]
null
null
null
sample_user_model/sample_user_model/routes.py
JSchatzman/sample_user_model
9a15b1940ab340c717aeab053f75ff66c183abbc
[ "MIT" ]
null
null
null
def includeme(config): config.add_static_view('static', 'static', cache_max_age=3600) config.add_route('home', '/') config.add_route('register', '/register')
28.5
66
0.690058
22f12f269dc7aabd06fe7da78fb8c701a8b9ff06
1,681
py
Python
test/test_user_api.py
MPW1412/kimai-python
7c89b0866b85fbc4b1092b30eca21f1be48db533
[ "MIT" ]
6
2019-12-19T16:01:58.000Z
2022-01-19T18:10:16.000Z
test/test_user_api.py
MPW1412/kimai-python
7c89b0866b85fbc4b1092b30eca21f1be48db533
[ "MIT" ]
4
2020-05-16T23:33:15.000Z
2021-07-06T20:53:32.000Z
test/test_user_api.py
MPW1412/kimai-python
7c89b0866b85fbc4b1092b30eca21f1be48db533
[ "MIT" ]
3
2020-05-16T23:14:13.000Z
2021-06-30T08:53:11.000Z
# coding: utf-8 """ Kimai 2 - API Docs JSON API for the Kimai 2 time-tracking software. Read more about its usage in the [API documentation](https://www.kimai.org/documentation/rest-api.html) and then download a [Swagger file](doc.json) for import e.g. in Postman. Be aware: it is not yet considered stable and...
24.014286
314
0.650208
122103829b1db813c327eb1e4aa94407c1218f89
3,450
py
Python
grr/test/grr_response_test/lib/api_helpers.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
grr/test/grr_response_test/lib/api_helpers.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
grr/test/grr_response_test/lib/api_helpers.py
BA7JCM/grr
c6f3b19e73e1d76a195d3c9a63e894ace6ea2508
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Helper API-client-based functions for self-contained tests.""" import time from typing import Tuple import requests from grr_api_client import api from grr_response_core import config from grr_response_core.lib import config_lib class Error(Exception): """Module-specific base error class...
29.487179
77
0.722029
91bc6586e6b2b8170f0592ddaad2568d3354ef3b
8,849
py
Python
tracking/TrackerEnvironment.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
8
2016-11-20T19:43:45.000Z
2020-12-09T04:58:05.000Z
tracking/TrackerEnvironment.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
45
2015-05-04T20:41:05.000Z
2017-07-17T12:04:13.000Z
tracking/TrackerEnvironment.py
jccaicedo/localization-agent
d280acf355307b74e68dca9ec80ab293f0d18642
[ "MIT" ]
9
2016-11-20T19:43:46.000Z
2020-09-01T21:01:54.000Z
__author__ = "Juan C. Caicedo, caicedo@illinois.edu" from pybrain.utilities import Named from pybrain.rl.environments.environment import Environment import BoxSearchState as bs import ConvNet as cn import random import numpy as np import json import utils as cu import libDetection as det import RLConfig as config ...
42.748792
171
0.666177
5320632097d6db84757136f5e591e5df0e7bb5f1
3,624
py
Python
tests/test_visitors/test_ast/test_naming/test_naming.py
nixphix/wemake-python-styleguide
95f16ff9394393444685391f957fdce04a6177d6
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_naming/test_naming.py
nixphix/wemake-python-styleguide
95f16ff9394393444685391f957fdce04a6177d6
[ "MIT" ]
null
null
null
tests/test_visitors/test_ast/test_naming/test_naming.py
nixphix/wemake-python-styleguide
95f16ff9394393444685391f957fdce04a6177d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.constants import VARIABLE_NAMES_BLACKLIST from wemake_python_styleguide.violations.naming import ( ConsecutiveUnderscoresInNameViolation, PrivateNameViolation, TooShortNameViolation, UnderscoredNumberNameViolation, WrongVariableNa...
25.342657
73
0.738687
7b3c549cf71f430d1e220ce54ae69ab8e0ae4c6d
369
py
Python
modules/visual_feature_refinement.py
codeboy5/cvpr20-scatter-text-recognizer
4bd6cfbd4d7f64ce11864514f6b6b0646267c285
[ "Apache-2.0" ]
63
2020-10-16T09:28:05.000Z
2022-03-27T15:52:16.000Z
modules/visual_feature_refinement.py
codeboy5/cvpr20-scatter-text-recognizer
4bd6cfbd4d7f64ce11864514f6b6b0646267c285
[ "Apache-2.0" ]
7
2020-09-18T03:31:05.000Z
2022-03-03T00:20:27.000Z
modules/visual_feature_refinement.py
codeboy5/cvpr20-scatter-text-recognizer
4bd6cfbd4d7f64ce11864514f6b6b0646267c285
[ "Apache-2.0" ]
8
2020-09-18T03:13:55.000Z
2022-02-27T13:34:33.000Z
import torch import torch.nn as nn class Refinement(nn.Module): def __init__(self, input_size, output_size): super(Refinement, self).__init__() self.iid = nn.Linear(input_size, input_size) self.decoder = nn.Linear(input_size, output_size) def forward(self, input): x = self.iid(in...
33.545455
57
0.653117
68e2a50b61ebabbea8046d574da99ea24f3147b2
1,309
py
Python
pype/plugins/blender/create/create_action.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/blender/create/create_action.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
pype/plugins/blender/create/create_action.py
tokejepsen/pype
8f2b2b631cc5d3ad93eeb5ad3bc6110d32466ed3
[ "MIT" ]
null
null
null
"""Create an animation asset.""" import bpy from avalon import api from avalon.blender import Creator, lib import pype.blender.plugin class CreateAction(Creator): """Action output for character rigs""" name = "actionMain" label = "Action" family = "action" icon = "male" def process(self): ...
31.926829
79
0.594347
0131760fe6f56c145398edf040ce388f908f65b2
1,513
py
Python
devt/generate_A1_SourceCode.py
mdstepha/SimIMA
f4ef42022a8503de3dd657c673e34598f29ae807
[ "MIT" ]
null
null
null
devt/generate_A1_SourceCode.py
mdstepha/SimIMA
f4ef42022a8503de3dd657c673e34598f29ae807
[ "MIT" ]
null
null
null
devt/generate_A1_SourceCode.py
mdstepha/SimIMA
f4ef42022a8503de3dd657c673e34598f29ae807
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 # This script creates file 'A1_SourceCode.tex' in current directory (for thesis writing) import os classes = os.listdir('../src/classes') classes = [x for x in classes if x.endswith('.m')] classes.sort() funns = os.listdir('../src/functions') + os.listdir('../src/functions/devt') funns ...
32.891304
143
0.656312
bf95387b6930a49fb7d5548f274fbcd4f4426c9d
4,963
py
Python
applications/RANSApplication/tests/test_RANSApplication_mpi.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
778
2017-01-27T16:29:17.000Z
2022-03-30T03:01:51.000Z
applications/RANSApplication/tests/test_RANSApplication_mpi.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
6,634
2017-01-15T22:56:13.000Z
2022-03-31T15:03:36.000Z
applications/RANSApplication/tests/test_RANSApplication_mpi.py
lkusch/Kratos
e8072d8e24ab6f312765185b19d439f01ab7b27b
[ "BSD-4-Clause" ]
224
2017-02-07T14:12:49.000Z
2022-03-06T23:09:34.000Z
# Importing the Kratos Library import KratosMultiphysics as KM if not KM.IsDistributedRun(): raise Exception("This test script can only be executed in MPI!") # Import Kratos "wrapper" for unittests import KratosMultiphysics.KratosUnittest as KratosUnittest # Import the tests or test_classes to create the suits ...
46.820755
134
0.786218
24e003b9a40db41e449ba30125d64451acb784a3
1,075
py
Python
backend/auth.py
tagboy07/cs498-Final
13cb3d2fd8785e5169bc756bc12f3cecddca4776
[ "MIT" ]
null
null
null
backend/auth.py
tagboy07/cs498-Final
13cb3d2fd8785e5169bc756bc12f3cecddca4776
[ "MIT" ]
null
null
null
backend/auth.py
tagboy07/cs498-Final
13cb3d2fd8785e5169bc756bc12f3cecddca4776
[ "MIT" ]
null
null
null
import ldap import sys from bottle import post, request, run # Connect to UIUC ActiveDirectory over StartTLS ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER) ldap.set_option(ldap.OPT_REFERRALS, 0) def login(): l = ldap.initialize("ldap://ad.uillinois.edu") l.set_option(ldap.OPT_REFERRALS, 0)...
29.054054
74
0.667907
dee5205fe92f111267c24401200767028e1eb64b
837
py
Python
packs/asserts/actions/object_key_number_equals.py
AnushkaKamerkar/st2tests
19988c079ac39963bce160c616cacdb7915038e8
[ "Apache-2.0" ]
4
2015-08-26T12:06:30.000Z
2017-11-04T16:15:07.000Z
packs/asserts/actions/object_key_number_equals.py
AnushkaKamerkar/st2tests
19988c079ac39963bce160c616cacdb7915038e8
[ "Apache-2.0" ]
90
2015-06-06T01:16:20.000Z
2021-10-30T12:10:39.000Z
packs/asserts/actions/object_key_number_equals.py
AnushkaKamerkar/st2tests
19988c079ac39963bce160c616cacdb7915038e8
[ "Apache-2.0" ]
14
2015-06-15T01:48:04.000Z
2022-01-06T03:23:45.000Z
import sys from st2actions.runners.pythonrunner import Action __all__ = [ 'AssertObjectKeyIntEquals' ] class AssertObjectKeyIntEquals(Action): def run(self, object, key, value): if not isinstance(object, dict): raise ValueError('object shoud be of type "dict".') if key not in obj...
33.48
97
0.591398
528943c7b0c216aceee95fa9ff5f7d73e56f8d6a
1,427
py
Python
core/migrations/0006_auto_20190421_1833.py
MakuZo/nutrigo
e50e10d497bcf9e01294565d42012d777f5c98d0
[ "MIT" ]
30
2019-03-28T18:01:58.000Z
2022-02-26T02:19:28.000Z
core/migrations/0006_auto_20190421_1833.py
MakuZo/nutrigo
e50e10d497bcf9e01294565d42012d777f5c98d0
[ "MIT" ]
8
2019-06-06T19:33:08.000Z
2022-02-10T13:10:34.000Z
core/migrations/0006_auto_20190421_1833.py
MakuZo/nutrigo
e50e10d497bcf9e01294565d42012d777f5c98d0
[ "MIT" ]
10
2019-04-04T19:19:28.000Z
2021-06-05T05:29:40.000Z
# Generated by Django 2.1.7 on 2019-04-21 16:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("core", "0005_foodnutrition")] operations = [ migrations.RenameField( model_name="foodweight", old_name="weight", new_name="value" ), ...
39.638889
76
0.650315
e895b2704b40fe4c08535dffa7787d4280f042fd
13,234
py
Python
server/ahj_app/tests/test_admin.py
reepoi/ahj-registry
d4498bccfe114b19acca4f931d29f30fbc65a803
[ "MIT" ]
null
null
null
server/ahj_app/tests/test_admin.py
reepoi/ahj-registry
d4498bccfe114b19acca4f931d29f30fbc65a803
[ "MIT" ]
null
null
null
server/ahj_app/tests/test_admin.py
reepoi/ahj-registry
d4498bccfe114b19acca4f931d29f30fbc65a803
[ "MIT" ]
null
null
null
from django.contrib.auth import hashers from django.http import QueryDict import ahj_app.admin.actions as admin_actions import ahj_app.admin.form as admin_form from django.utils import timezone from fixtures import * import pytest import datetime from ahj_app.models import AHJ, User, APIToken, AHJUserMaintains, Edit,...
37.490085
184
0.671301
9856b2314e979ad4ba4dcd46636e42a1351b7f99
24,654
py
Python
src/som/compiler/ast/parser.py
smarr/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
9
2015-02-03T23:24:23.000Z
2020-06-28T23:49:59.000Z
src/som/compiler/ast/parser.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
null
null
null
src/som/compiler/ast/parser.py
SOM-st/RTruffleSOM
1efc698577830ff3fcd1607e7155d9c6423e8804
[ "MIT" ]
2
2016-08-28T23:25:20.000Z
2016-08-30T16:49:50.000Z
from rpython.rlib.rbigint import rbigint from rpython.rlib.rstring import ParseStringOverflowError from rtruffle.source_section import SourceSection from ..parse_error import ParseError, ParseErrorSymList from ...interpreter.ast.nodes.block_node import BlockNode, BlockNodeWithContext from ...interpreter.ast.nodes.glob...
36.578635
114
0.608786
c365690a70ec83486147a8b1088f84d257cfa741
888
py
Python
tests/test_pylint.py
sea-kg/roadmapgen2d
9c707402c89e6f7a443284ea8e9275ffa9ab10fb
[ "MIT" ]
1
2021-05-25T18:46:15.000Z
2021-05-25T18:46:15.000Z
tests/test_pylint.py
sea-kg/roadmapgen2d
9c707402c89e6f7a443284ea8e9275ffa9ab10fb
[ "MIT" ]
7
2021-05-25T06:19:57.000Z
2021-05-27T03:04:56.000Z
tests/test_pylint.py
sea-kg/roadmapgen2d
9c707402c89e6f7a443284ea8e9275ffa9ab10fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Test server api leaks""" # Copyright (c) 2020 Evgenii Sopov <mrseakg@gmail.com> # pylint: disable=relative-beyond-top-level,wrong-import-position,import-error import os from subprocess import Popen,PIPE,STDOUT def test_pylint_library(): """ Test pylint library "...
29.6
78
0.609234
10da9bd3eaea1e2e851ed298018810388f8ca7fb
3,524
py
Python
source/intapi/views.py
mverleg/svsite
5c9dbcacf81020cf0c1960e337bdd33113acd597
[ "BSD-3-Clause" ]
null
null
null
source/intapi/views.py
mverleg/svsite
5c9dbcacf81020cf0c1960e337bdd33113acd597
[ "BSD-3-Clause" ]
142
2015-06-05T07:53:09.000Z
2020-03-31T18:37:07.000Z
source/intapi/views.py
mdilli/svsite
5c9dbcacf81020cf0c1960e337bdd33113acd597
[ "BSD-3-Clause" ]
null
null
null
from json import dumps from collections import OrderedDict from django.conf import settings from django.contrib.auth import authenticate, get_user_model from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from base.views import render_cms_special from member.models import Team d...
35.959184
103
0.745176
c9bb49cc7cc98186ee794cc20d3353327d510211
112
py
Python
readthedocs/builds/signals.py
gr2m/readthedocs.org
38e73cd73efb76461d28a5d9737731b7d7349297
[ "MIT" ]
1
2019-01-05T09:49:52.000Z
2019-01-05T09:49:52.000Z
readthedocs/builds/signals.py
himynamesdave/readthedocs.org
38e73cd73efb76461d28a5d9737731b7d7349297
[ "MIT" ]
null
null
null
readthedocs/builds/signals.py
himynamesdave/readthedocs.org
38e73cd73efb76461d28a5d9737731b7d7349297
[ "MIT" ]
1
2019-01-05T09:49:54.000Z
2019-01-05T09:49:54.000Z
"""Build signals""" import django.dispatch build_complete = django.dispatch.Signal(providing_args=['build'])
16
65
0.758929
024759a66f11aa1c7a72889c02dc189c270c559e
7,986
py
Python
qa/rpc-tests/txn_clone.py
otherdeniz/othercoin
611af232c0cd2025c4464c0444b650bc6c2444f6
[ "MIT" ]
null
null
null
qa/rpc-tests/txn_clone.py
otherdeniz/othercoin
611af232c0cd2025c4464c0444b650bc6c2444f6
[ "MIT" ]
null
null
null
qa/rpc-tests/txn_clone.py
otherdeniz/othercoin
611af232c0cd2025c4464c0444b650bc6c2444f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # Copyright (c) 2014-2015 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 proper accounting with an equivalent malleability clone # from test_framework.test_framework im...
48.108434
115
0.609191
18262cb6008bbf0c7cb73cf9e8ea28e9667ec828
509
py
Python
lib/steps/ImportProject.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
lib/steps/ImportProject.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
lib/steps/ImportProject.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
from .Step import Step class ImportProject(Step): def __init__(self): Step.__init__(self) self._projectFile = None def serialize(self, jsonData): self._projectFile = jsonData["project_file"] def run(self): from lib.ProjectBuilder import ProjectBuilder builder = Pro...
28.277778
56
0.646365
84020389b1d419e11037ac2e589f70408ba5da57
26,113
py
Python
keras_wrapper/utils.py
PRHLT/multimodal_keras_wrapper
0a088f36e5d4251ce465974f07d1a7f21b80203e
[ "MIT" ]
7
2018-04-08T03:06:24.000Z
2019-04-24T07:56:38.000Z
keras_wrapper/utils.py
PRHLT/multimodal_keras_wrapper
0a088f36e5d4251ce465974f07d1a7f21b80203e
[ "MIT" ]
null
null
null
keras_wrapper/utils.py
PRHLT/multimodal_keras_wrapper
0a088f36e5d4251ce465974f07d1a7f21b80203e
[ "MIT" ]
7
2017-12-04T09:06:35.000Z
2021-04-19T07:47:46.000Z
# -*- coding: utf-8 -*- import copy import sys from six import iteritems import numpy as np import logging logging.basicConfig(level=logging.INFO, format='[%(asctime)s] %(message)s', datefmt='%d/%m/%Y %H:%M:%S') logger = logging.getLogger(__name__) if sys.version_info.major == 2: from itertools import imap as map ...
39.745814
130
0.588443
9d57d560c7b9f4c6c832dde6698cab1565aa0fb1
829
py
Python
configloader/image/setup.py
SGeetansh/dffml
04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b
[ "MIT" ]
1
2019-03-11T17:24:17.000Z
2019-03-11T17:24:17.000Z
configloader/image/setup.py
SGeetansh/dffml
04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b
[ "MIT" ]
24
2020-05-20T23:29:57.000Z
2021-04-14T04:18:21.000Z
configloader/image/setup.py
SGeetansh/dffml
04647bdcadef2f7e7b59cdd8ac1e89f17ef1095b
[ "MIT" ]
1
2020-05-06T19:07:02.000Z
2020-05-06T19:07:02.000Z
import os import importlib.util from setuptools import setup # Boilerplate to load commonalities spec = importlib.util.spec_from_file_location( "setup_common", os.path.join(os.path.dirname(__file__), "setup_common.py") ) common = importlib.util.module_from_spec(spec) spec.loader.exec_module(common) common.KWARGS[...
30.703704
78
0.71532
1581b5edf184ae04f6cd66fd8365e2cb0c9587d4
2,946
py
Python
octopusapi/__init__.py
marcelocure/octopusapi
0d761b73460ae6ad761ba1479141322f078fd1b7
[ "MIT" ]
null
null
null
octopusapi/__init__.py
marcelocure/octopusapi
0d761b73460ae6ad761ba1479141322f078fd1b7
[ "MIT" ]
null
null
null
octopusapi/__init__.py
marcelocure/octopusapi
0d761b73460ae6ad761ba1479141322f078fd1b7
[ "MIT" ]
1
2016-02-26T19:28:08.000Z
2016-02-26T19:28:08.000Z
import metadata import json import config import logging from wsgiref import simple_server import falcon from middleware import AuthMiddleware, RequireJSON, JSONTranslator, StorageError, max_body __version__ = metadata.version __author__ = metadata.authors[0] __license__ = metadata.license __copyright__ = metadata.co...
28.601942
113
0.746096
52e08d231e314618d47a232ea302aa0d28587cc7
3,513
py
Python
tests/sim_norm.py
jschiavon/optispd
fb3f904a1f1099d31cbcaf27dfc63e5a9e77c9f5
[ "MIT" ]
null
null
null
tests/sim_norm.py
jschiavon/optispd
fb3f904a1f1099d31cbcaf27dfc63e5a9e77c9f5
[ "MIT" ]
null
null
null
tests/sim_norm.py
jschiavon/optispd
fb3f904a1f1099d31cbcaf27dfc63e5a9e77c9f5
[ "MIT" ]
null
null
null
import jax.numpy as jnp from jax import jit, random, grad from jax.scipy.special import logsumexp from jax.scipy.stats import multivariate_normal as mvn from jax.scipy.stats import norm from jax.ops import index_update, index from jax.config import config config.update('jax_enable_x64', True) from scipy.optimize impor...
30.284483
90
0.615998
4cb79754ef8fd992dd652fb7579469e249d73aa3
1,998
py
Python
app/backend/src/couchers/servicers/jail.py
a-ch-chu/couchers
a3f6d619854b94e7f1144807f60f50f81bfa38c9
[ "MIT" ]
null
null
null
app/backend/src/couchers/servicers/jail.py
a-ch-chu/couchers
a3f6d619854b94e7f1144807f60f50f81bfa38c9
[ "MIT" ]
null
null
null
app/backend/src/couchers/servicers/jail.py
a-ch-chu/couchers
a3f6d619854b94e7f1144807f60f50f81bfa38c9
[ "MIT" ]
null
null
null
import logging import grpc from couchers import errors from couchers.db import session_scope from couchers.models import User from couchers.utils import create_coordinate from pb import jail_pb2, jail_pb2_grpc logger = logging.getLogger(__name__) class Jail(jail_pb2_grpc.JailServicer): """ The Jail service...
29.382353
92
0.645145
915983776fa36363096ca91f25c8f88dedf7160e
23,710
py
Python
cinder/tests/unit/api/test_common.py
UbuntuEvangelist/cinder
cbb55074de48176cbaa3f31a5b1d595b8aad7aa8
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/api/test_common.py
UbuntuEvangelist/cinder
cbb55074de48176cbaa3f31a5b1d595b8aad7aa8
[ "Apache-2.0" ]
1
2021-03-21T11:38:29.000Z
2021-03-21T11:38:29.000Z
cinder/tests/unit/api/test_common.py
UbuntuEvangelist/cinder
cbb55074de48176cbaa3f31a5b1d595b8aad7aa8
[ "Apache-2.0" ]
15
2017-01-12T10:35:10.000Z
2019-04-19T08:22:10.000Z
# Copyright 2010 OpenStack Foundation # 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 requ...
41.378709
79
0.624926
526f85faefffb7a27b2a9d26caa193a6161572c1
731
py
Python
docs/conf.py
ewerybody/svg.charts
eb77a381f0721b3d59ae9461765ac9e9cffef586
[ "MIT" ]
null
null
null
docs/conf.py
ewerybody/svg.charts
eb77a381f0721b3d59ae9461765ac9e9cffef586
[ "MIT" ]
null
null
null
docs/conf.py
ewerybody/svg.charts
eb77a381f0721b3d59ae9461765ac9e9cffef586
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker'] master_doc = "index" link_files = { '../CHANGES.rst': dict( using=dict(GH='https://github.com'), replace=[ dict( pattern=r'(Issue #|\B#)(?P<issue>\d+)', ...
28.115385
78
0.44186
4abf42ec5755348ef4414f50a7e108aacf831343
101,692
py
Python
pysnmp/TIMETRA-LOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/TIMETRA-LOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/TIMETRA-LOG-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TIMETRA-LOG-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TIMETRA-LOG-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:09:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
149.108504
11,632
0.757149
a97bbb14468b7c51a0541d43c1777bf9b6413366
1,554
py
Python
cogdl/data/extract.py
YuHuang42/cogdl
36eafd4a2ced8a513643b99a3e63e9919c38717c
[ "MIT" ]
824
2020-11-30T14:38:07.000Z
2022-03-19T10:14:04.000Z
cogdl/data/extract.py
YuHuang42/cogdl
36eafd4a2ced8a513643b99a3e63e9919c38717c
[ "MIT" ]
38
2020-12-21T12:32:57.000Z
2022-01-31T02:32:05.000Z
cogdl/data/extract.py
YuHuang42/cogdl
36eafd4a2ced8a513643b99a3e63e9919c38717c
[ "MIT" ]
85
2020-12-21T05:16:09.000Z
2022-03-28T08:44:22.000Z
from __future__ import print_function import os.path as osp import tarfile import zipfile import bz2 import gzip def maybe_log(path, log=True): if log: print("Extracting", path) def extract_tar(path, folder, mode="r:gz", log=True): r"""Extracts a tar archive to a specific folder. Args: ...
27.75
79
0.606821
bfc9849842519e3c5e472c596fc1488e9aeb9663
363
py
Python
src/quakestats/core/q3toql/api.py
LaudateCorpus1/quakestats
d4e44d593e6c7334628d34b5ec648ade5976003e
[ "MIT" ]
21
2018-04-24T09:33:01.000Z
2022-03-05T10:53:45.000Z
src/quakestats/core/q3toql/api.py
brabiega/quakestats
1628720350a1e4e40ebebdb7988785663892f0be
[ "MIT" ]
42
2018-04-13T18:09:19.000Z
2021-08-05T20:23:22.000Z
src/quakestats/core/q3toql/api.py
LaudateCorpus1/quakestats
d4e44d593e6c7334628d34b5ec648ade5976003e
[ "MIT" ]
8
2018-06-12T18:07:39.000Z
2021-08-28T02:26:17.000Z
""" Base module for Q3 game parser """ import logging from quakestats.core.q3parser.parser import ( Q3Game, ) from quakestats.core.q3toql.transform import ( Q3toQL, QuakeGame, ) logger = logging.getLogger(__name__) class Q3toQLAPI(): def transform(self, q3game: Q3Game) -> QuakeGame: tf = Q3...
16.5
53
0.683196
c32a246c900b9c07ab2c10928db432e23a4f2f0a
6,200
py
Python
models/train_classifier.py
jcylim/Disaster_Response_Pipeline
0a43e5dfbb8c518e6c46916325ff354fcef593aa
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
models/train_classifier.py
jcylim/Disaster_Response_Pipeline
0a43e5dfbb8c518e6c46916325ff354fcef593aa
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
models/train_classifier.py
jcylim/Disaster_Response_Pipeline
0a43e5dfbb8c518e6c46916325ff354fcef593aa
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
import sys import pandas as pd from sqlalchemy import create_engine import pickle import nltk nltk.download(['punkt', 'wordnet', 'averaged_perceptron_tagger']) import re import numpy as np from nltk.tokenize import word_tokenize from nltk.stem import WordNetLemmatizer from sklearn.metrics import confusion_matrix, clas...
35.428571
173
0.667903
b1633fde1875dd106b72ce2096b2e4d263eb30c1
862
py
Python
chapter 8/sampleCode15.py
DTAIEB/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
15
2018-06-01T19:18:32.000Z
2021-11-28T03:31:35.000Z
chapter 8/sampleCode15.py
chshychen/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
1
2018-12-17T02:01:42.000Z
2018-12-17T02:01:42.000Z
chapter 8/sampleCode15.py
chshychen/Thoughtful-Data-Science
8b80e8f3e33b6fdc6672ecee1f27e0b983b28241
[ "Apache-2.0" ]
10
2018-09-23T02:45:45.000Z
2022-03-12T15:32:05.000Z
[[BaseSubApp]] def add_ticker_selection_markup(refresh_ids): def deco(fn): def wrap(self, *args, **kwargs): return """ <div class="row" style="text-align:center"> <div class="btn-group btn-group-toggle" style="border-bottom:2px solid #eeeeee" data-toggle="buttons"> {%for ticker, stat...
43.1
126
0.603248
1cc466a1e1aca20a8038dbf223996f90f76ca31b
1,011
py
Python
build/lib/tests/generic_test.py
eltoto1219/vltk
e84c0efe9062eb864604d96345f71483816340aa
[ "Apache-2.0" ]
null
null
null
build/lib/tests/generic_test.py
eltoto1219/vltk
e84c0efe9062eb864604d96345f71483816340aa
[ "Apache-2.0" ]
null
null
null
build/lib/tests/generic_test.py
eltoto1219/vltk
e84c0efe9062eb864604d96345f71483816340aa
[ "Apache-2.0" ]
null
null
null
import os import unittest from vltk import get_data TEST_PATH = os.path.dirname(os.path.realpath(__file__)) class TestGeneric(unittest.TestCase): # setup rando things like schema, etc # for tests, we will want to test each new method, plus a test extraction. The test extraction will have to be first # ...
20.22
120
0.694362
2bd2c11c953dc4b41de49912844b0de63987451e
292
py
Python
AD18-flask-admin-image-demo/app/extensions.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
3
2020-06-17T05:44:48.000Z
2021-09-11T02:49:38.000Z
AD18-flask-admin-image-demo/app/extensions.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
3
2021-06-08T20:57:03.000Z
2022-02-23T14:54:59.000Z
AD18-flask-admin-image-demo/app/extensions.py
AngelLiang/Flask-Demos
cf0a74885b873cb2583b3870ccdf3508d3af602e
[ "MIT" ]
6
2020-06-17T05:44:56.000Z
2022-03-29T12:53:05.000Z
from flask_sqlalchemy import SQLAlchemy from flask_admin import Admin db = SQLAlchemy() admin = Admin(template_mode='bootstrap3') def register_extensions(app): db.init_app(app) admin.init_app(app) from app.admin_ import register_modelviews register_modelviews(admin, app)
20.857143
46
0.773973
d3e555ab9178f9ec05d3921383f6b03a54441142
1,923
py
Python
setup.py
NJACKWinterOfCode/UltimateSecurityCam
9f288b90d94043060ea3e6f6617e20e35aefc9af
[ "MIT" ]
10
2018-11-22T20:04:39.000Z
2020-11-20T18:32:28.000Z
setup.py
NJACKWinterOfCode/UltimateSecurityCam
9f288b90d94043060ea3e6f6617e20e35aefc9af
[ "MIT" ]
53
2018-11-22T18:52:52.000Z
2019-01-10T11:39:24.000Z
setup.py
NJACKWinterOfCode/UltimateSecurityCam
9f288b90d94043060ea3e6f6617e20e35aefc9af
[ "MIT" ]
15
2018-11-23T18:15:43.000Z
2019-02-22T16:00:29.000Z
from setuptools import setup, find_packages from codecs import open from os import path dir_path = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(dir_path, 'README.md'), encoding='utf-8') as f: long_description = f.read() requirements = ['numpy', 'matplotli...
33.736842
123
0.720749
10e85378e0f3f94eabf1e635c769dead4c112b78
3,604
py
Python
bindings/python/ensmallen/datasets/string/desulfonatronospirathiodismutans.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/desulfonatronospirathiodismutans.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/desulfonatronospirathiodismutans.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Desulfonatronospira thiodismutans. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: prote...
33.37037
223
0.682575
50a9c3e0e6b13a425b6eb2fef51a235bd86c6e39
353
py
Python
tests/samples/hello-cython/setup.py
mlasch/scikit-build
664dd9c41cc54047d6d648b0466d525573da5a94
[ "MIT" ]
299
2015-10-19T22:45:08.000Z
2022-03-30T21:15:55.000Z
tests/samples/hello-cython/setup.py
mlasch/scikit-build
664dd9c41cc54047d6d648b0466d525573da5a94
[ "MIT" ]
588
2015-09-17T04:26:59.000Z
2022-03-29T14:51:54.000Z
tests/samples/hello-cython/setup.py
mlasch/scikit-build
664dd9c41cc54047d6d648b0466d525573da5a94
[ "MIT" ]
102
2015-10-19T22:45:13.000Z
2022-03-20T21:09:08.000Z
from skbuild import setup setup( name="hello-cython", version="1.2.3", description="a minimal example package (cython version)", author='The scikit-build team', license="MIT", packages=['hello_cython'], # The extra '/' was *only* added to check that scikit-build can handle it. package_d...
27.153846
78
0.660057
a0c4626c26ef18abd58bf146714cf77b54404470
13,460
py
Python
orca/modules/checkpointer.py
IBM/urcanet
ce3f41eba23c24506ea2cf9e77cd3898a4eafbaf
[ "Apache-2.0" ]
2
2020-03-21T19:09:24.000Z
2020-07-08T07:52:55.000Z
orca/modules/checkpointer.py
IBM/urcanet
ce3f41eba23c24506ea2cf9e77cd3898a4eafbaf
[ "Apache-2.0" ]
null
null
null
orca/modules/checkpointer.py
IBM/urcanet
ce3f41eba23c24506ea2cf9e77cd3898a4eafbaf
[ "Apache-2.0" ]
3
2020-03-21T19:12:16.000Z
2020-11-17T10:02:44.000Z
from typing import Dict, Optional, List, Tuple, Union, Iterable, Any, NamedTuple import logging import os import re import shutil import time import torch from allennlp.training.trainer import Trainer, TrainerPieces from allennlp.training.trainer_base import TrainerBase from allennlp.training.checkpointer import Che...
53.201581
108
0.614562
b2bd8daba547b4f1b3f7c006905ae2a828c5a5f4
479
py
Python
nomadgram/users/migrations/0007_auto_20180322_0216.py
zlyanz13/Yonwongram
a340f8ef215d3d8967e6977f89f46fbe2cc1a337
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0007_auto_20180322_0216.py
zlyanz13/Yonwongram
a340f8ef215d3d8967e6977f89f46fbe2cc1a337
[ "MIT" ]
null
null
null
nomadgram/users/migrations/0007_auto_20180322_0216.py
zlyanz13/Yonwongram
a340f8ef215d3d8967e6977f89f46fbe2cc1a337
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-21 17:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0006_auto_20180322_0118'), ] operations = [ migrations.AlterField( model_name='user', name='gender', ...
25.210526
147
0.597077
30e20ee779276b7cd765c7c160fab127f16d7df8
7,078
py
Python
cime/config/e3sm/tests.py
sarats/E3SM
d6b52862bd04daecdaa71aba23d4952ae16d4b90
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/config/e3sm/tests.py
sarats/E3SM
d6b52862bd04daecdaa71aba23d4952ae16d4b90
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
cime/config/e3sm/tests.py
sarats/E3SM
d6b52862bd04daecdaa71aba23d4952ae16d4b90
[ "FTL", "zlib-acknowledgement", "RSA-MD" ]
null
null
null
# Here are the tests belonging to e3sm suites. Format is # <test>.<grid>.<compset>. # suite_name -> (inherits_from, timelimit, [test [, mods[, machines]]]) # To elaborate, if no mods are needed, a string representing the testname is all that is needed. # If testmods are needed, a 2-ple must be provided (test, mods...
51.664234
110
0.476123
31b26e65fe4b3b964735058b017da9109e2f5ba5
9,982
py
Python
src/app_util/core.py
jnsougata/app_util
941421523d38973486321f26b38aa4735ca0a9b2
[ "MIT" ]
null
null
null
src/app_util/core.py
jnsougata/app_util
941421523d38973486321f26b38aa4735ca0a9b2
[ "MIT" ]
null
null
null
src/app_util/core.py
jnsougata/app_util
941421523d38973486321f26b38aa4735ca0a9b2
[ "MIT" ]
null
null
null
from __future__ import annotations import sys import discord from .errors import * from discord.ext import commands from discord.http import Route from .http_s import * from dataclasses import dataclass from .app import Overwrite, ApplicationCommandOrigin from typing import List, Optional, Union, Any, Dict from .enums ...
35.272085
116
0.623021
fef456260a8dbbe679342f52c5c663a9f52db585
4,500
py
Python
api/tests/connection_test.py
sthagen/facebook-pyre-check
cea188088c9632b10e0d0a658a8f1954f19413cd
[ "MIT" ]
null
null
null
api/tests/connection_test.py
sthagen/facebook-pyre-check
cea188088c9632b10e0d0a658a8f1954f19413cd
[ "MIT" ]
null
null
null
api/tests/connection_test.py
sthagen/facebook-pyre-check
cea188088c9632b10e0d0a658a8f1954f19413cd
[ "MIT" ]
null
null
null
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import subprocess import unittest from pathlib import Path from unittest.mock import call, MagicMock, patch from ..connection import PyreC...
33.834586
88
0.506444
8435b980d71886220bfaab308a4c2573102d5303
365
py
Python
Day_8/Day 8: Dictionaries and Maps.py
chmielak90/HackerRank
25aff18bb2a02a3af5c5e35f0a99fcac54b21ca2
[ "MIT" ]
null
null
null
Day_8/Day 8: Dictionaries and Maps.py
chmielak90/HackerRank
25aff18bb2a02a3af5c5e35f0a99fcac54b21ca2
[ "MIT" ]
null
null
null
Day_8/Day 8: Dictionaries and Maps.py
chmielak90/HackerRank
25aff18bb2a02a3af5c5e35f0a99fcac54b21ca2
[ "MIT" ]
null
null
null
n = int(input().strip()) phoneBook = {} for i in range(n): add_value = [str(arr_temp) for arr_temp in input().strip().split(' ')] phoneBook[add_value[0]] = add_value[1] for j in range(n): key_value = str(input().strip()) if key_value in phoneBook: print('{}={}'.format(key_value, phoneBook[key_...
28.076923
74
0.610959
8bdea8acb4beca1ca56596e53d19b0de0ee5163b
11,490
py
Python
code/python/QuotesAPIforDigitalPortals/v2/fds/sdk/QuotesAPIforDigitalPortals/model/basic_mic_operating_list_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/QuotesAPIforDigitalPortals/v2/fds/sdk/QuotesAPIforDigitalPortals/model/basic_mic_operating_list_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/QuotesAPIforDigitalPortals/v2/fds/sdk/QuotesAPIforDigitalPortals/model/basic_mic_operating_list_data.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.Q...
43.854962
125
0.581201
bfe589cead26bd0bf0f0780ea3af400ed4cc1848
3,088
py
Python
bbs/settings.py
forumPro/bbs
8e85d404ff483039128eb155012f552744cfcc7b
[ "MIT" ]
null
null
null
bbs/settings.py
forumPro/bbs
8e85d404ff483039128eb155012f552744cfcc7b
[ "MIT" ]
null
null
null
bbs/settings.py
forumPro/bbs
8e85d404ff483039128eb155012f552744cfcc7b
[ "MIT" ]
null
null
null
""" Django settings for bbs project. Generated by 'django-admin startproject' using Django 1.11.15. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os #...
25.520661
91
0.695596
88394a90cac88e400573dd749e0f10edffa14c2e
25,927
py
Python
src/fichier.py
Franckyi/Simulation-Telecom
e856b78bd1da487d52676fc97750be73858f3f30
[ "MIT" ]
null
null
null
src/fichier.py
Franckyi/Simulation-Telecom
e856b78bd1da487d52676fc97750be73858f3f30
[ "MIT" ]
null
null
null
src/fichier.py
Franckyi/Simulation-Telecom
e856b78bd1da487d52676fc97750be73858f3f30
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ Effectue des simulations depuis un fichier JSON """ import json import sys from pprint import pprint import affichage import canal import codage import echantillonnage import modulation import outils import sequence print print "############################" print "# ...
58.791383
120
0.705905
e00d5f56fd01113572f2015994ffceb4f789a39e
1,197
py
Python
chroma-manager/tests/unit/chroma_core/models/test_logmessage.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/unit/chroma_core/models/test_logmessage.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/unit/chroma_core/models/test_logmessage.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
from tests.unit.lib.iml_unit_test_case import IMLUnitTestCase from chroma_core.models import LogMessage, MessageClass class TestLogMessage(IMLUnitTestCase): def test_classification(self): ''' Test the classification code correctly classfies messages. ''' test_messages = {'Lustre:...
46.038462
101
0.614871
5bd3c83470fb679e53c5821d62ace5cf351b8da3
13,292
py
Python
airflow/providers/mongo/hooks/mongo.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
79
2021-10-15T07:32:27.000Z
2022-03-28T04:10:19.000Z
airflow/providers/mongo/hooks/mongo.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
153
2021-10-15T05:23:46.000Z
2022-02-23T06:07:10.000Z
airflow/providers/mongo/hooks/mongo.py
emilioego/airflow
3457c7847cd24413ff5b622e65c27d8370f94502
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
23
2021-10-15T02:36:37.000Z
2022-03-17T02:59:27.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...
38.416185
116
0.658968
4f494942e4ed4d3ecb4b8d367fe2e21983a1367c
563
py
Python
src/asana/logic.py
isabella232/SGTM
3793d78e99f89e5f73bac5c44f9d8a18cac75fbf
[ "MIT" ]
8
2020-12-05T00:13:03.000Z
2022-01-11T11:35:51.000Z
src/asana/logic.py
Asana/SGTM
0e9e236980ed68e80e021470da6374945bbac501
[ "MIT" ]
12
2020-12-14T18:21:21.000Z
2022-03-29T17:06:20.000Z
src/asana/logic.py
isabella232/SGTM
3793d78e99f89e5f73bac5c44f9d8a18cac75fbf
[ "MIT" ]
2
2021-06-27T09:32:55.000Z
2022-02-27T23:17:36.000Z
from src.github.models import PullRequest from src.github.helpers import pull_request_has_label from enum import Enum, unique from src.config import SGTM_FEATURE__AUTOCOMPLETE_ENABLED @unique class AutocompleteLabel(Enum): COMPLETE_ON_MERGE = "complete tasks on merge" def should_autocomplete_tasks_on_merge(pull...
26.809524
74
0.765542
c52982055e46a09e15971d5a665fb55324773f7e
3,185
py
Python
matching/matching_helpers.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
matching/matching_helpers.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
matching/matching_helpers.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
import numpy as np import math import copy import networkx as nx import re from classes import * #student matching, seat matching, max rank --> matrix def build_matrix(m_student,m_seat,maxrank): matrix = np.zeros((len(m_student),len(m_seat))) for i in range(0,len(m_student)): if (m_student[i] != -1)...
27.222222
65
0.523391
ee8505e793f92726c460c0232431ff7df319e427
1,022
py
Python
examples/BigBoy_refactor/players/RandomEnvPlayer.py
attraylor/poke-env
05eb57800c16229ec683762e628aacb0b6dd9cc3
[ "MIT" ]
4
2020-09-15T15:24:57.000Z
2021-03-02T19:48:24.000Z
examples/BigBoy_refactor/players/RandomEnvPlayer.py
attraylor/poke-env
05eb57800c16229ec683762e628aacb0b6dd9cc3
[ "MIT" ]
10
2021-11-01T10:20:30.000Z
2022-03-29T10:27:25.000Z
examples/BigBoy_refactor/players/RandomEnvPlayer.py
attraylor/poke-env
05eb57800c16229ec683762e628aacb0b6dd9cc3
[ "MIT" ]
1
2021-03-08T16:02:46.000Z
2021-03-08T16:02:46.000Z
from poke_env.player.env_player import ( Gen8EnvSinglePlayer, ) import numpy as np from poke_env.player_configuration import _create_player_configuration_from_player class RandomEnvPlayer(Gen8EnvSinglePlayer): def __init__(self, name, shortname, team, battle_format="gen8ou", log_level = 0, ...
28.388889
85
0.744618
2abb50d97df8a9f5cfd6bafbfd64969c078041b7
702
py
Python
keymint_keymake/exceptions.py
keymint/keymint_keymake
adc38e07ce5f16d6ba4b36294d7d2e8a361153f0
[ "Apache-2.0" ]
null
null
null
keymint_keymake/exceptions.py
keymint/keymint_keymake
adc38e07ce5f16d6ba4b36294d7d2e8a361153f0
[ "Apache-2.0" ]
null
null
null
keymint_keymake/exceptions.py
keymint/keymint_keymake
adc38e07ce5f16d6ba4b36294d7d2e8a361153f0
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Open Source Robotics Foundation, 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...
31.909091
74
0.764957
0ede495483f48b3ddd3c80d53494045b5ef84947
1,995
py
Python
postgresqleu/braintreepayment/management/commands/send_braintree_logreport.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
11
2020-08-20T11:16:02.000Z
2022-03-12T23:25:04.000Z
postgresqleu/braintreepayment/management/commands/send_braintree_logreport.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
71
2019-11-18T10:11:22.000Z
2022-03-27T16:12:57.000Z
postgresqleu/braintreepayment/management/commands/send_braintree_logreport.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
18
2019-11-18T09:56:31.000Z
2022-01-08T03:16:43.000Z
# This script sends out reports fo errors in the Braintree integration # as a summary email. # # Copyright (C) 2015-2019, PostgreSQL Europe # from django.core.management.base import BaseCommand from django.db import transaction from django.conf import settings from datetime import time from io import StringIO from po...
39.117647
138
0.673684
c92e1452faae360cf94c8dd80df8222ba4aea7fc
697
py
Python
tests/test_opioid.py
yoshavit/whynot
e33e56bae377b65fe87feac5c6246ae38f4586e8
[ "MIT" ]
376
2020-03-20T20:09:16.000Z
2022-03-29T09:53:33.000Z
tests/test_opioid.py
mrtzh/whynot
0668f0a0c1e80defec6e4678f85ed60f45226477
[ "MIT" ]
5
2020-04-20T10:19:34.000Z
2021-11-03T09:36:28.000Z
tests/test_opioid.py
mrtzh/whynot
0668f0a0c1e80defec6e4678f85ed60f45226477
[ "MIT" ]
41
2020-03-20T23:14:38.000Z
2022-03-09T06:02:01.000Z
"""Unit tests for opioid epidemic simulator.""" import whynot as wn def test_config(): """Ensure intervention update works as expected.""" intervention = wn.opioid.Intervention(time=2021, nonmedical_incidence=-0.12) config = wn.opioid.Config() assert config.nonmedical_incidence.intervention_val == 0.0...
38.722222
80
0.747489
7507c655db5646a26e79a14aaa043ab5cc9e561a
853
py
Python
tofino_test_builds/09_smaller_than_table.test/codegen.py
gycsaba96/P4RROT
aa10d2063d566450674e4798e6f713e49877a604
[ "MIT" ]
null
null
null
tofino_test_builds/09_smaller_than_table.test/codegen.py
gycsaba96/P4RROT
aa10d2063d566450674e4798e6f713e49877a604
[ "MIT" ]
null
null
null
tofino_test_builds/09_smaller_than_table.test/codegen.py
gycsaba96/P4RROT
aa10d2063d566450674e4798e6f713e49877a604
[ "MIT" ]
null
null
null
import sys sys.path.append('../../src/') from p4rrot.generator_tools import * from p4rrot.known_types import * from p4rrot.core.commands import * from p4rrot.tofino.commands import * UID.reset() fp = FlowProcessor( istruct=[('a',uint32_t),('b',uint32_t),('x',bool_t)], method='MODIFY' ) fp...
25.088235
82
0.645955
cdca50f24fb5f8be088c07ad5dc6ce10403a5512
4,151
py
Python
rbi2/inte5.py
spottedzebra/interpreter
b5b2a735d771fbfe2842e4c36176f2bc8c1761c3
[ "MIT" ]
2
2016-10-22T11:55:07.000Z
2020-07-23T20:56:15.000Z
rbi2/inte5.py
mwhit74/interpreter
b5b2a735d771fbfe2842e4c36176f2bc8c1761c3
[ "MIT" ]
null
null
null
rbi2/inte5.py
mwhit74/interpreter
b5b2a735d771fbfe2842e4c36176f2bc8c1761c3
[ "MIT" ]
null
null
null
import string import pdb from collections import namedtuple ADD, SUB, MUL, DIV, CHAR, NUM, EOF = ('ADD', 'SUB', 'MUL', 'DIV','CHAR', 'NUM', 'EOF') WHITESPACE = string.whitespace Token = namedtuple('Token',['token_type', 'token_value']) class Lexer(object): def __init__(self...
27.130719
68
0.528788
44a59b441b708b4af30b371f0a4e27ce7791b555
3,644
py
Python
src/leetcode_2058_find_the_minimum_and_maximum_number_of_nodes_between_critical_points.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_2058_find_the_minimum_and_maximum_number_of_nodes_between_critical_points.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
src/leetcode_2058_find_the_minimum_and_maximum_number_of_nodes_between_critical_points.py
sungho-joo/leetcode2github
ce7730ef40f6051df23681dd3c0e1e657abba620
[ "MIT" ]
null
null
null
# @l2g 2058 python3 # [2058] Find the Minimum and Maximum Number of Nodes Between Critical Points # Difficulty: Medium # https://leetcode.com/problems/find-the-minimum-and-maximum-number-of-nodes-between-critical-points # # A critical point in a linked list is defined as either a local maxima or a local minima. # A nod...
35.038462
179
0.662733
6a2878aad6455f4029f2ade2e73fa5bfc9dd1f88
37,511
py
Python
detectron2/detectron2/modeling/roi_heads/roi_heads.py
sean-zhuh/SA-AutoAug
cb9403fe01cbd30d8b14bca106fd771586f1b89f
[ "BSD-2-Clause" ]
100
2021-05-23T08:21:32.000Z
2022-03-31T17:47:56.000Z
detectron2/detectron2/modeling/roi_heads/roi_heads.py
sean-zhuh/SA-AutoAug
cb9403fe01cbd30d8b14bca106fd771586f1b89f
[ "BSD-2-Clause" ]
7
2021-05-26T08:45:14.000Z
2021-12-02T08:23:34.000Z
detectron2/detectron2/modeling/roi_heads/roi_heads.py
sean-zhuh/SA-AutoAug
cb9403fe01cbd30d8b14bca106fd771586f1b89f
[ "BSD-2-Clause" ]
11
2021-05-23T02:07:15.000Z
2022-02-28T13:14:45.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import inspect import logging import numpy as np from typing import Dict, List, Optional, Tuple import torch from torch import nn from detectron2.config import configurable from detectron2.layers import ShapeSpec, nonzero_tuple from detectron2.structures import Boxes,...
43.06659
100
0.640292
66be49f460c65065e6f7736da4876a7e889e97ba
1,864
py
Python
airflow/contrib/utils/log/task_handler_with_custom_formatter.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
3
2019-10-03T21:08:15.000Z
2019-10-04T00:24:40.000Z
airflow/contrib/utils/log/task_handler_with_custom_formatter.py
fxdmhtt/airflow
cf88f7bc7bbd3e9bf110e98f025759a96c130235
[ "Apache-2.0" ]
3
2020-03-08T15:43:38.000Z
2021-09-29T17:26:10.000Z
airflow/contrib/utils/log/task_handler_with_custom_formatter.py
upjohnc/airflow-upjohn-k8s
caadbc1618d73e054de99138b0892cea3a9327c4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
5
2017-06-19T19:55:47.000Z
2020-10-10T00:49:20.000Z
# -*- coding: utf-8 -*- # # 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 #...
37.28
103
0.725322
b6ed4cbd48447eb6f928c864598323f1c095ae62
3,987
py
Python
pkuseg/config.py
hcg2011/pkuseg-python
dcfbb4a5fcbd11d421c9ec76d71fed8633e7d9af
[ "MIT" ]
1
2019-01-22T10:15:13.000Z
2019-01-22T10:15:13.000Z
pkuseg/config.py
DavidAlphaFox/pkuseg-python
3975a94cccd9e8e635ca42689ef1d44e8f719c61
[ "MIT" ]
null
null
null
pkuseg/config.py
DavidAlphaFox/pkuseg-python
3975a94cccd9e8e635ca42689ef1d44e8f719c61
[ "MIT" ]
null
null
null
import os import tempfile class Config: lineEnd = "\n" biLineEnd = "\n\n" triLineEnd = "\n\n\n" undrln = "_" blank = " " tab = "\t" star = "*" slash = "/" comma = "," delimInFeature = "." B = "B" num = "0123456789.几二三四五六七八九十千万亿兆零1234567890%" letter = "ABCDEFGHIJKLMN...
34.669565
88
0.58766
8e3ea17e47c960b6309f11d30b0dde96efbee551
3,633
py
Python
third_party/blink/tools/blinkpy/common/read_checksum_from_png_unittest.py
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-10-18T02:33:40.000Z
2020-10-18T02:33:40.000Z
third_party/blink/tools/blinkpy/common/read_checksum_from_png_unittest.py
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
3
2021-05-17T16:28:52.000Z
2021-05-21T22:42:22.000Z
third_party/blink/tools/blinkpy/common/read_checksum_from_png_unittest.py
DamieFC/chromium
54ce2d3c77723697efd22cfdb02aea38f9dfa25c
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and th...
77.297872
886
0.744839
5714976b130aafe0af740890564805f211d3ac32
68
py
Python
railgun/http/__init__.py
c-goosen/asyncio-railgun
23a234d0810ae7dd3c69504232ea7b021ca7c82c
[ "MIT" ]
null
null
null
railgun/http/__init__.py
c-goosen/asyncio-railgun
23a234d0810ae7dd3c69504232ea7b021ca7c82c
[ "MIT" ]
null
null
null
railgun/http/__init__.py
c-goosen/asyncio-railgun
23a234d0810ae7dd3c69504232ea7b021ca7c82c
[ "MIT" ]
null
null
null
""" High level methods and wrappers for http calls with Railgun """
17
59
0.735294
55823c15515bd4b320f39730d09c35d0971db051
16,122
py
Python
docs/matplotlib_ext/docscrape_sphinx.py
nenkoru/okama
1e202bc801aea8adaf4c2ad033cd51af0c957df5
[ "MIT" ]
200
2015-02-12T16:56:28.000Z
2022-03-16T15:34:50.000Z
docs/matplotlib_ext/docscrape_sphinx.py
nenkoru/okama
1e202bc801aea8adaf4c2ad033cd51af0c957df5
[ "MIT" ]
330
2015-01-01T09:15:43.000Z
2022-03-30T22:48:26.000Z
docs/matplotlib_ext/docscrape_sphinx.py
nenkoru/okama
1e202bc801aea8adaf4c2ad033cd51af0c957df5
[ "MIT" ]
142
2015-01-21T01:05:14.000Z
2022-03-07T15:22:53.000Z
import re import inspect import textwrap import pydoc from collections.abc import Callable import os from jinja2 import FileSystemLoader from jinja2.sandbox import SandboxedEnvironment import sphinx from sphinx.jinja2glue import BuiltinTemplateLoader from .docscrape import NumpyDocString, FunctionDoc, ClassDoc, ObjDo...
36.475113
84
0.521337
2dc64f3baa4ea619626d517c95224591d00d6678
15,781
py
Python
gogamechen3/api/wsgi/game/entity/async.py
lolizeppelin/gogamechen3
4ff06f9042f1bb0cc22e1cc0b342967a829ae0f8
[ "MIT" ]
null
null
null
gogamechen3/api/wsgi/game/entity/async.py
lolizeppelin/gogamechen3
4ff06f9042f1bb0cc22e1cc0b342967a829ae0f8
[ "MIT" ]
null
null
null
gogamechen3/api/wsgi/game/entity/async.py
lolizeppelin/gogamechen3
4ff06f9042f1bb0cc22e1cc0b342967a829ae0f8
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import inspect import time import contextlib from collections import OrderedDict from sqlalchemy.sql import and_ from simpleutil.common.exceptions import InvalidArgument from simpleutil.log import log as logging from simpleutil.utils import jsonutils from simpleutil.utils import argutils from s...
48.112805
115
0.478804
4786d5539433e2087aac858d39f19bf2cb135ffe
5,371
py
Python
mrf_apps/mrf_size.py
rouault/mrf
8b757396c48709e2ac6fddd923631eebdc8acfd3
[ "Apache-2.0" ]
67
2015-04-13T12:37:59.000Z
2022-01-20T20:01:17.000Z
mrf_apps/mrf_size.py
rouault/mrf
8b757396c48709e2ac6fddd923631eebdc8acfd3
[ "Apache-2.0" ]
38
2016-01-20T20:12:15.000Z
2022-02-17T23:21:22.000Z
mrf_apps/mrf_size.py
rouault/mrf
8b757396c48709e2ac6fddd923631eebdc8acfd3
[ "Apache-2.0" ]
28
2015-04-30T04:14:32.000Z
2021-09-26T12:16:07.000Z
#!/usr/bin/env python3 # # 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 #...
34.876623
80
0.590207
1b0f0e52e8341fbfc1d15af9d3e9ef096f00ea3f
2,386
py
Python
quart/flask_patch/__init__.py
SmartManoj/quart
317562ea660edb7159efc20fa57b95223d408ea0
[ "MIT" ]
1
2020-08-09T19:45:14.000Z
2020-08-09T19:45:14.000Z
quart/flask_patch/__init__.py
SmartManoj/quart
317562ea660edb7159efc20fa57b95223d408ea0
[ "MIT" ]
null
null
null
quart/flask_patch/__init__.py
SmartManoj/quart
317562ea660edb7159efc20fa57b95223d408ea0
[ "MIT" ]
null
null
null
import quart.flask_patch.app import quart.flask_patch.globals # noqa: F401 import quart.views # noqa: F401 from quart.flask_patch._patch import patch_all patch_all() from flask.app import Flask # noqa: E402, I100 from flask.blueprints import Blueprint # noqa: E402 from flask.config import Config # noqa: E402 from...
47.72
96
0.766974
f923b7bfb02bd6c9ae311e8fce8428e15e8bc175
13,719
py
Python
ipyelk/nx/transformer.py
nrbgt/ipyelk
58d06d0290f5b27e942af9e6036a56143604097b
[ "BSD-3-Clause" ]
null
null
null
ipyelk/nx/transformer.py
nrbgt/ipyelk
58d06d0290f5b27e942af9e6036a56143604097b
[ "BSD-3-Clause" ]
null
null
null
ipyelk/nx/transformer.py
nrbgt/ipyelk
58d06d0290f5b27e942af9e6036a56143604097b
[ "BSD-3-Clause" ]
null
null
null
import logging from collections import defaultdict from functools import lru_cache from typing import Dict, Generator, Hashable, List, Optional, Tuple import networkx as nx import traitlets as T from ..app import ElkTransformer from ..diagram.elk_model import ElkExtendedEdge, ElkLabel, ElkNode, ElkPort from .factors ...
34.383459
87
0.557183
deedb64c1e7c05146b7c7fae0bc91b704bbf1952
4,338
py
Python
custom_components/edgeos/config_flow.py
kcleong/homeassistant-config
15b7bc75f5d1055d8620ced87eed9d563475296d
[ "MIT" ]
null
null
null
custom_components/edgeos/config_flow.py
kcleong/homeassistant-config
15b7bc75f5d1055d8620ced87eed9d563475296d
[ "MIT" ]
null
null
null
custom_components/edgeos/config_flow.py
kcleong/homeassistant-config
15b7bc75f5d1055d8620ced87eed9d563475296d
[ "MIT" ]
null
null
null
"""Config flow to configure domain.""" import logging from homeassistant import config_entries from homeassistant.config_entries import ConfigEntry from homeassistant.core import callback from .helpers.const import * from .managers.config_flow_manager import ConfigFlowManager from .models import AlreadyExistsError, L...
32.133333
95
0.643154
a5eab347bc0be08e5379aa3bf43b7caa6416e898
19,248
py
Python
test_autoarray/structures/grids/two_d/test_grid_2d_interpolate.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/structures/grids/two_d/test_grid_2d_interpolate.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
test_autoarray/structures/grids/two_d/test_grid_2d_interpolate.py
jonathanfrawley/PyAutoArray_copy
c21e8859bdb20737352147b9904797ac99985b73
[ "MIT" ]
null
null
null
import numpy as np import pytest import autoarray as aa from autoarray.mock.mock import ndarray_1d_from_grid, ndarray_2d_from_grid class TestObj: def test__blurring_grid_from_mask__compare_to_array_util(self): mask = np.array( [ [True, True, True, True, True, True...
37.230174
89
0.548576
14de8eea666ea2840e4e454c63203933119a4913
4,566
py
Python
examples/BenchmarkingExample.py
nolanstr/bingo_multi_stage
7a88c4f5c59268d0612664be5864765db2edad51
[ "Apache-2.0" ]
null
null
null
examples/BenchmarkingExample.py
nolanstr/bingo_multi_stage
7a88c4f5c59268d0612664be5864765db2edad51
[ "Apache-2.0" ]
null
null
null
examples/BenchmarkingExample.py
nolanstr/bingo_multi_stage
7a88c4f5c59268d0612664be5864765db2edad51
[ "Apache-2.0" ]
null
null
null
import numpy as np from bingo.symbolic_regression.benchmarking.benchmark_suite \ import BenchmarkSuite from bingo.symbolic_regression.benchmarking.benchmark_test \ import BenchmarkTest from bingo.symbolic_regression import ComponentGenerator, \ AGraphGenerator, \ ...
40.052632
81
0.680464
1d0f2bd744f5e95ec82f44dde28d058d147b667b
53
py
Python
python/television/registry.py
pztrick/django-television
5857200a0871702052827a5d603db7d60bca1406
[ "MIT" ]
1
2018-07-16T16:21:44.000Z
2018-07-16T16:21:44.000Z
python/television/registry.py
pztrick/django-television
5857200a0871702052827a5d603db7d60bca1406
[ "MIT" ]
4
2019-12-22T11:20:56.000Z
2021-06-10T19:38:46.000Z
python/television/registry.py
pztrick/django-television
5857200a0871702052827a5d603db7d60bca1406
[ "MIT" ]
null
null
null
LISTENERS = {} DEMULTIPLEXERS = [] EXTRA_ROUTES = []
13.25
19
0.660377