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
7a647ff89aa7316a12058cb24cc43cff1b4dc0ec
458
py
Python
crossentropy_.py
zhoufengfan/crossentropy
b53f53ba01ffe2acf3c35ba0fb7ab8e201a5ac14
[ "MIT" ]
null
null
null
crossentropy_.py
zhoufengfan/crossentropy
b53f53ba01ffe2acf3c35ba0fb7ab8e201a5ac14
[ "MIT" ]
null
null
null
crossentropy_.py
zhoufengfan/crossentropy
b53f53ba01ffe2acf3c35ba0fb7ab8e201a5ac14
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F if __name__ == '__main__': t1 = torch.tensor([[1, 2]]).float() t3 = torch.tensor([1]) t2 = F.cross_entropy(input=t1, target=t3, reduction="mean") print("t2 is", t2) t1_softmaxed = F.softmax(t1, dim=1) minus_log_t1_softmaxed = -torch.log(t1_softmaxed)...
35.230769
71
0.69214
800ae062b123cbe5676f07ea4327e150b54a8b13
14,727
py
Python
qiskit/quantum_info/states/densitymatrix.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
2
2019-06-28T19:58:42.000Z
2019-07-26T05:04:02.000Z
qiskit/quantum_info/states/densitymatrix.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
null
null
null
qiskit/quantum_info/states/densitymatrix.py
EnriqueL8/qiskit-terra
08b801f1f8598c4e44680b4a75c232ed92db0262
[ "Apache-2.0" ]
1
2020-01-24T21:01:06.000Z
2020-01-24T21:01:06.000Z
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
38.85752
94
0.617505
dcfb10e4841bc8327701bae78b353e2342517d59
358
py
Python
lora_receiver.py
sbcshop1/Lora-HAT-for-Raspberry-Pi
253a02982393d419214916eaadb6eccbe7020d72
[ "MIT" ]
2
2022-01-26T14:03:13.000Z
2022-02-23T21:27:35.000Z
lora_receiver.py
sbcshop1/Lora-HAT-for-Raspberry-Pi
253a02982393d419214916eaadb6eccbe7020d72
[ "MIT" ]
2
2022-02-07T17:43:12.000Z
2022-03-29T12:31:59.000Z
lora_receiver.py
sbcshop1/Lora-HAT-for-Raspberry-Pi
253a02982393d419214916eaadb6eccbe7020d72
[ "MIT" ]
1
2022-03-29T12:36:03.000Z
2022-03-29T12:36:03.000Z
#receiver import serial import time lora = serial.Serial(port = '/dev/ttyS0', baudrate = 9600, parity = serial.PARITY_NONE, stopbits = serial.STOPBITS_ONE, bytesize = serial.EIGHTBITS, timeout = 1) while True: data_read = lora.readline()#read data from other lora data = data_read.decode("utf-8")#convert byte ...
27.538462
161
0.709497
f47d7c77c1a6a81f9f7aa9977ad9b6db65db3bbe
4,222
py
Python
setup.py
Mukesh23singh/aws-service-catalog-puppet
7d90f1533868e3ba14e3243a3d5d90ec9bca14e1
[ "Apache-2.0" ]
1
2020-05-23T06:32:38.000Z
2020-05-23T06:32:38.000Z
setup.py
Mukesh23singh/aws-service-catalog-puppet
7d90f1533868e3ba14e3243a3d5d90ec9bca14e1
[ "Apache-2.0" ]
8
2021-06-14T23:25:24.000Z
2021-09-09T15:02:55.000Z
setup.py
Mukesh23singh/aws-service-catalog-puppet
7d90f1533868e3ba14e3243a3d5d90ec9bca14e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup package_dir = \ {'': '.'} packages = \ ['servicecatalog_puppet', 'servicecatalog_puppet.commands', 'servicecatalog_puppet.template_builder', 'servicecatalog_puppet.template_builder.hub', 'servicecatalog_puppet.workflow', 'servicecatalog_puppet.workflow.apps', ...
54.128205
1,833
0.751303
300fef102127a5d14ec7ced1016af20628f141f5
15,338
py
Python
venv/lib/python2.7/site-packages/werkzeug/testsuite/urls.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
21,684
2015-01-01T03:42:20.000Z
2022-03-30T13:32:44.000Z
venv/lib/python2.7/site-packages/werkzeug/testsuite/urls.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
4,067
2015-01-01T00:04:51.000Z
2022-03-30T13:42:56.000Z
venv/lib/python2.7/site-packages/werkzeug/testsuite/urls.py
Christian-Castro/castro_odoo8
8247fdb20aa39e043b6fa0c4d0af509462ab3e00
[ "Unlicense" ]
1,901
2015-01-01T21:05:59.000Z
2022-03-21T08:14:25.000Z
# -*- coding: utf-8 -*- """ werkzeug.testsuite.urls ~~~~~~~~~~~~~~~~~~~~~~~ URL helper tests. :copyright: (c) 2014 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ import unittest from werkzeug.testsuite import WerkzeugTestCase from werkzeug.datastructures import OrderedMultiD...
47.486068
128
0.617877
7e425ed2cc71e7582ea83b9ba604aa13f4cc9f3e
3,111
py
Python
test/test_pipeline/components/feature_preprocessing/test_extra_trees_regression.py
tuggeluk/auto-sklearn
202918e5641701c696b995039d06bfec81973cc6
[ "BSD-3-Clause" ]
1
2017-08-13T13:57:40.000Z
2017-08-13T13:57:40.000Z
test/test_pipeline/components/feature_preprocessing/test_extra_trees_regression.py
chrinide/auto-sklearn
1c6af59ff61f1d0a3b54b16a35ffbc5d2d3828cd
[ "BSD-3-Clause" ]
null
null
null
test/test_pipeline/components/feature_preprocessing/test_extra_trees_regression.py
chrinide/auto-sklearn
1c6af59ff61f1d0a3b54b16a35ffbc5d2d3828cd
[ "BSD-3-Clause" ]
1
2019-06-18T15:40:37.000Z
2019-06-18T15:40:37.000Z
import unittest from sklearn.ensemble import ExtraTreesRegressor from autosklearn.pipeline.components.feature_preprocessing.\ extra_trees_preproc_for_regression import \ ExtraTreesPreprocessorRegression from autosklearn.pipeline.util import _test_preprocessing, \ PreprocessingTestCase, get_dataset import s...
49.380952
78
0.671488
977c2deb3e5aa3ed6f17d14e8a7f08031641ed4d
15,048
py
Python
main_test2.py
jaeseoko/CMU-Robot-Desin
0bbbdc8dbfb8c7758ec8aaae3fc9c1bd82721b19
[ "MIT" ]
1
2021-04-11T18:24:03.000Z
2021-04-11T18:24:03.000Z
main_test2.py
jaeseoko/CMU-Robot-Desin
0bbbdc8dbfb8c7758ec8aaae3fc9c1bd82721b19
[ "MIT" ]
null
null
null
main_test2.py
jaeseoko/CMU-Robot-Desin
0bbbdc8dbfb8c7758ec8aaae3fc9c1bd82721b19
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO from time import sleep import numpy as np import Encoder import threading import signal import sys import pybullet as p import argparse import time # import keyboard # For pybullet loading urdf to calculate inverse dynamics / Motor Params def saveTorque(myArray): # x = [['ABC', 123.45...
33.44
121
0.600545
7f14a4bfb12853a145bca214769886e13c9c902a
289
py
Python
molecule/default/tests/test_default.py
slated/ansible-python-roles
83b14ddbc4348dd8d55958b47c520fb46e97b641
[ "Apache-2.0" ]
null
null
null
molecule/default/tests/test_default.py
slated/ansible-python-roles
83b14ddbc4348dd8d55958b47c520fb46e97b641
[ "Apache-2.0" ]
null
null
null
molecule/default/tests/test_default.py
slated/ansible-python-roles
83b14ddbc4348dd8d55958b47c520fb46e97b641
[ "Apache-2.0" ]
null
null
null
import os import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') def test_python_3_is_installed(host): python_3 = host.package('python3.6') assert python_3.is_installed
22.230769
63
0.788927
1e13be2b603ac6483cfd751b7bff0c3d6980d540
93
py
Python
StreamApp/apps.py
felixfaisal/StreamApp
9ba93f7af389eef3d4334f2a04dca5ab84aa59e8
[ "MIT" ]
null
null
null
StreamApp/apps.py
felixfaisal/StreamApp
9ba93f7af389eef3d4334f2a04dca5ab84aa59e8
[ "MIT" ]
null
null
null
StreamApp/apps.py
felixfaisal/StreamApp
9ba93f7af389eef3d4334f2a04dca5ab84aa59e8
[ "MIT" ]
null
null
null
from django.apps import AppConfig class StreamappConfig(AppConfig): name = 'StreamApp'
15.5
33
0.763441
f3ccda420d7efceeb8aeaebd223b01396b24e1c2
1,714
py
Python
src/settings.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
9
2019-11-30T11:14:30.000Z
2022-03-14T09:41:57.000Z
src/settings.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-04-11T17:15:08.000Z
2021-04-11T17:15:08.000Z
src/settings.py
jjmartinez-taiger/libreCatastro
b40bfa375095411814b99ac839959418a83c3071
[ "MIT" ]
1
2021-08-07T12:15:43.000Z
2021-08-07T12:15:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from os import environ """ Dict settings file with config parameters""" root_path = os.path.dirname(os.path.abspath(__file__)) config = { "separator": "####", "elasticsearch-index": "cadaster", "elasticsearch-doc": "cadaster_doc", "error_log_fi...
47.611111
125
0.628355
6c1680d95dc512c40da6b5334ec0defc84460dd8
78
py
Python
version.py
shinji-s/scrapy-cluster
0153bf61f46068e61f76798147a850769a190b95
[ "MIT" ]
1,108
2015-04-15T16:02:26.000Z
2022-03-31T11:46:29.000Z
version.py
shinji-s/scrapy-cluster
0153bf61f46068e61f76798147a850769a190b95
[ "MIT" ]
246
2015-07-08T18:37:12.000Z
2021-06-28T14:33:51.000Z
version.py
shinji-s/scrapy-cluster
0153bf61f46068e61f76798147a850769a190b95
[ "MIT" ]
382
2015-04-20T07:16:05.000Z
2022-03-21T11:34:59.000Z
__version__ = '1.3.0' VERSION = tuple(int(x) for x in __version__.split('.'))
26
55
0.666667
d393c1b4e86c38ea4f527caaf28ca2a007899318
4,797
py
Python
Projects/PlantMaker/archive/20100520/src/order.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
2
2021-01-24T09:00:51.000Z
2022-01-23T20:52:17.000Z
Projects/PlantMaker/archive/20100520/src/order.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
6
2020-02-29T01:59:03.000Z
2022-02-15T10:25:40.000Z
Projects/PlantMaker/archive/20100520/src/order.py
fredmorcos/attic
0da3b94aa525df59ddc977c32cb71c243ffd0dbd
[ "Unlicense" ]
1
2019-03-22T14:41:21.000Z
2019-03-22T14:41:21.000Z
""" This module provides classes to build an OrderList for input to a plant, including the Order instances and their Recipe instances. """ from xml.dom import minidom class Recipe(object): """ This class provides a Recipe for an Order. It is a list (or dictionary) of tuples (str machineName, int timeAtMachine). "...
26.213115
76
0.682927
2ef50b30ecd92646fdd2872b0d0db5c492ad9ad2
18,993
py
Python
topfarm/constraint_components/boundary_component.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
4
2019-02-18T08:46:00.000Z
2021-01-28T06:35:52.000Z
topfarm/constraint_components/boundary_component.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
1
2019-11-26T12:12:12.000Z
2019-11-26T12:12:12.000Z
topfarm/constraint_components/boundary_component.py
DTUWindEnergy/TopFarm2
cba70b20431f7a828370447117fe2e7533edf7c2
[ "MIT" ]
8
2019-01-14T09:33:26.000Z
2021-06-30T11:56:03.000Z
import numpy as np from openmdao.api import ExplicitComponent from scipy.spatial import ConvexHull import sys # ============================================================================== # This module is deprecated use topfarm.constraint_components.boundary instead # ===============================================...
47.4825
161
0.584847
ce581d40b1007c6a495da34c895bbb381677a2f9
4,443
py
Python
infer.py
rowantseng/FUnIE-GAN-PyTorch
d2c8064c7827001de3f4b7e71ae5b4fa2eff040c
[ "MIT" ]
6
2021-07-27T09:03:41.000Z
2022-01-01T05:17:27.000Z
infer.py
rowantseng/FUnIE-GAN-PyTorch
d2c8064c7827001de3f4b7e71ae5b4fa2eff040c
[ "MIT" ]
null
null
null
infer.py
rowantseng/FUnIE-GAN-PyTorch
d2c8064c7827001de3f4b7e71ae5b4fa2eff040c
[ "MIT" ]
1
2020-08-25T23:17:06.000Z
2020-08-25T23:17:06.000Z
import argparse import os import time import numpy as np import torch from datasets import TestDataset, denorm from models import FUnIEGeneratorV1, FUnIEGeneratorV2, FUnIEUpGenerator from torchvision import transforms from utils import AverageMeter, ProgressMeter class Predictor(object): def __init__(self, mode...
37.974359
86
0.58429
408429d06772254e75b32a35b2b019e001519176
250
py
Python
if/python/c_func.py
yabaud/libharu
d84867ebf9f3de6afd661d2cdaff102457fbc371
[ "Zlib" ]
1,118
2015-01-09T10:40:33.000Z
2022-03-28T08:19:56.000Z
if/python/c_func.py
yabaud/libharu
d84867ebf9f3de6afd661d2cdaff102457fbc371
[ "Zlib" ]
174
2015-01-28T18:41:32.000Z
2022-03-31T16:51:05.000Z
if/python/c_func.py
yabaud/libharu
d84867ebf9f3de6afd661d2cdaff102457fbc371
[ "Zlib" ]
394
2015-01-23T17:06:52.000Z
2022-03-25T03:50:06.000Z
def printf(format, *optional): #print 'format="%s"' % format #print 'optional="%s"' % optional if len(optional)==1: optional=optional[0] if format.endswith('\n'): format=format[:-1] print format % optional
27.777778
38
0.572
e5d29e80d9b31d79f50b94aebdd80840d24e2b53
1,931
py
Python
utils2devops/aws/network_acl.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
2
2019-06-29T20:09:37.000Z
2020-12-09T22:38:57.000Z
utils2devops/aws/network_acl.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
null
null
null
utils2devops/aws/network_acl.py
alainivars/utils2devops
ff7deb2bc315d18b693d53ae6472da5163a3260e
[ "Apache-2.0" ]
null
null
null
import boto3 from utils2devops.aws import NetworkAcl, Gress """ Aws configuration iiles should be present: ~/.aws/credentials ~/.aws/config """ def list_network_acls( profile_name: str = 'terraform', region_name: str = 'us-east-1' ) -> [str]: """This function list all AWS network ACL how can a...
30.171875
72
0.570171
5b56e08726cbac0ee70886744d44ff7870b00685
10,276
py
Python
uncoverml/config.py
jesserobertson/uncover-ml
7e6506880c8e61d641fc7c0badb727b4540071e2
[ "Apache-2.0" ]
null
null
null
uncoverml/config.py
jesserobertson/uncover-ml
7e6506880c8e61d641fc7c0badb727b4540071e2
[ "Apache-2.0" ]
null
null
null
uncoverml/config.py
jesserobertson/uncover-ml
7e6506880c8e61d641fc7c0badb727b4540071e2
[ "Apache-2.0" ]
1
2019-04-05T23:08:29.000Z
2019-04-05T23:08:29.000Z
import logging from os import path from os import makedirs import glob import csv import yaml from uncoverml import transforms log = logging.getLogger(__name__) """The strings associated with each imputation option """ _imputers = {'mean': transforms.MeanImputer, 'gaus': transforms.GaussImputer, ...
38.343284
79
0.550701
077e5b6ead24a285f909ef118dd4027bbc170952
1,860
py
Python
iom/migrations/0009_auto_20150624_2348.py
acaciawater/iom
66ae7cb4134221ba03005b6e5d7b3f158dbc7550
[ "Apache-2.0" ]
null
null
null
iom/migrations/0009_auto_20150624_2348.py
acaciawater/iom
66ae7cb4134221ba03005b6e5d7b3f158dbc7550
[ "Apache-2.0" ]
null
null
null
iom/migrations/0009_auto_20150624_2348.py
acaciawater/iom
66ae7cb4134221ba03005b6e5d7b3f158dbc7550
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.core.validators class Migration(migrations.Migration): dependencies = [ ('iom', '0008_auto_20150624_2343'), ] operations = [ migrations.CreateModel( name='W...
35.09434
198
0.560753
6349bb8ec11698ce1d6144412289b36db22a8cb1
117
py
Python
exercicios-Python/teste-01.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/teste-01.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
exercicios-Python/teste-01.py
pedrosimoes-programmer/exercicios-python
150de037496d63d76086678d87425a8ccfc74573
[ "MIT" ]
null
null
null
nome = input('Qual é o seu nome? '); print('Bem-vindo(a), ' , nome , ' , estamos muito felizes de tê-lo(a) aqui!');
39
79
0.598291
ae350ce16ce8640385026ea4eb25c241df85315d
458
py
Python
reference_manual_test.py
clean-code-craft-tcq-2/well-named-in-py-SanjaySaatyaki
08b343a7b401f294d2b4e161212256d1e48666d3
[ "MIT" ]
null
null
null
reference_manual_test.py
clean-code-craft-tcq-2/well-named-in-py-SanjaySaatyaki
08b343a7b401f294d2b4e161212256d1e48666d3
[ "MIT" ]
null
null
null
reference_manual_test.py
clean-code-craft-tcq-2/well-named-in-py-SanjaySaatyaki
08b343a7b401f294d2b4e161212256d1e48666d3
[ "MIT" ]
null
null
null
import reference_manual as manual import even_count_color_generator as generator def test_get_all_color_codes(): contents = manual.get_all_color_codes() for content in contents: pairNumber = content.split(' ')[0].strip() color_code = content.split(' ')[1:-1] major_color, minor_color = g...
41.636364
88
0.727074
c5ae3a56e64e4529136d5912d32600637f06223a
417
py
Python
base/migrations/0006_profile_history.py
polarity-cf/arugo
530ea6092702916d63f36308d5a615d118b73850
[ "MIT" ]
34
2021-11-11T14:00:15.000Z
2022-03-16T12:30:04.000Z
base/migrations/0006_profile_history.py
polarity-cf/arugo
530ea6092702916d63f36308d5a615d118b73850
[ "MIT" ]
22
2021-11-11T23:18:14.000Z
2022-03-31T15:07:02.000Z
base/migrations/0006_profile_history.py
polarity-cf/arugo
530ea6092702916d63f36308d5a615d118b73850
[ "MIT" ]
1
2022-03-14T07:35:09.000Z
2022-03-14T07:35:09.000Z
# Generated by Django 3.2.9 on 2021-11-13 14:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('base', '0005_authquery_password'), ] operations = [ migrations.AddField( model_name='profile', name='h...
21.947368
67
0.568345
9d41f5985326b0ca644ae1ac193294d8f48089b0
561
py
Python
imagepy/menus/File/save_plg.py
pengguanjun/imagepy
d96ef98c2c3e93d368131fd2753bce164e1247cd
[ "BSD-4-Clause" ]
1
2020-08-17T04:18:35.000Z
2020-08-17T04:18:35.000Z
imagepy/menus/File/save_plg.py
pengguanjun/imagepy
d96ef98c2c3e93d368131fd2753bce164e1247cd
[ "BSD-4-Clause" ]
null
null
null
imagepy/menus/File/save_plg.py
pengguanjun/imagepy
d96ef98c2c3e93d368131fd2753bce164e1247cd
[ "BSD-4-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 5 03:19:13 2016 @author: yxl """ from imagepy.core.engine import dataio from sciapp import Source from imagepy.core.engine import Simple class SaveImage(dataio.ImageWriter): title = 'Save' def load(self, ips): self.filt = [i for i in sorted(Source.manager('writer')....
23.375
67
0.7041
287e1a99789c8046689388f0dbd48a3e8e433e73
48,530
py
Python
octodns/record/__init__.py
mamercad/octodns
9441a51168e7319749057dead758a14e97cde5a2
[ "MIT" ]
null
null
null
octodns/record/__init__.py
mamercad/octodns
9441a51168e7319749057dead758a14e97cde5a2
[ "MIT" ]
null
null
null
octodns/record/__init__.py
mamercad/octodns
9441a51168e7319749057dead758a14e97cde5a2
[ "MIT" ]
null
null
null
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from ipaddress import IPv4Address, IPv6Address from logging import getLogger import re from fqdn import FQDN from ..equality import EqualityTupleMixin from .geo import GeoCodes class Change(object): def __init__(se...
31.108974
79
0.524232
36bb21f9290fad17e6803256ee17637cf5b8dfaa
9,610
py
Python
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/j6_2ch_128mm_zoom.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/j6_2ch_128mm_zoom.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
null
null
null
data/external/repositories_2to3/267667/kaggle-heart-master/configurations/j6_2ch_128mm_zoom.py
Keesiu/meta-kaggle
87de739aba2399fd31072ee81b391f9b7a63f540
[ "MIT" ]
1
2019-12-04T08:23:33.000Z
2019-12-04T08:23:33.000Z
"""Single slice vgg with normalised scale. """ import functools import lasagne as nn import numpy as np import theano import theano.tensor as T import data_loader import deep_learning_layers import image_transform import layers import preprocess import postprocess import objectives import theano_print...
45.330189
176
0.704891
4c9e268276a48861549b3e7f0e4a2819d236d2cc
2,544
py
Python
contrib/demo/sharding/add-cluster.py
florkbr/kcp
33ba15f95927daeaf0239f6176e08becff0cae3d
[ "Apache-2.0" ]
1,189
2021-05-05T06:30:17.000Z
2022-03-30T13:14:08.000Z
contrib/demo/sharding/add-cluster.py
florkbr/kcp
33ba15f95927daeaf0239f6176e08becff0cae3d
[ "Apache-2.0" ]
509
2021-05-05T00:26:21.000Z
2022-03-31T16:56:19.000Z
contrib/demo/sharding/add-cluster.py
florkbr/kcp
33ba15f95927daeaf0239f6176e08becff0cae3d
[ "Apache-2.0" ]
154
2021-05-05T09:07:30.000Z
2022-03-24T14:01:48.000Z
#!/usr/bin/env python # Copyright 2021 The KCP Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
36.869565
91
0.66195
6c6a8189869f36e3bfce640cd4f57b77c660e204
2,774
py
Python
toolchain/riscv/Darwin/riscv64-unknown-elf/lib/rv32eac_zba_zbb/ilp32e/libstdc++.a-gdb.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
null
null
null
toolchain/riscv/Darwin/riscv64-unknown-elf/lib/rv32eac_zba_zbb/ilp32e/libstdc++.a-gdb.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
null
null
null
toolchain/riscv/Darwin/riscv64-unknown-elf/lib/rv32eac_zba_zbb/ilp32e/libstdc++.a-gdb.py
zhiqiang-hu/bl_iot_sdk
154ee677a8cc6a73e6a42a5ff12a8edc71e6d15d
[ "Apache-2.0" ]
null
null
null
# -*- python -*- # Copyright (C) 2009-2020 Free Software Foundation, Inc. # 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 versio...
44.741935
239
0.736482
f77a36d06e9e98739837765cc1a916d3ce670ff9
658
py
Python
services/document-manager/backend/app/constants.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
14
2019-09-23T18:02:27.000Z
2022-01-12T06:46:52.000Z
services/document-manager/backend/app/constants.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
715
2019-10-01T21:04:57.000Z
2022-03-31T21:31:20.000Z
services/document-manager/backend/app/constants.py
parc-jason/mds
8f181a429442208a061ed72065b71e6c2bd0f76f
[ "Apache-2.0" ]
9
2019-10-03T21:17:11.000Z
2021-09-02T23:26:39.000Z
# Cache Timeouts TIMEOUT_5_MINUTES = 300 TIMEOUT_60_MINUTES = 3600 TIMEOUT_24_HOURS = 86340 TIMEOUT_12_HOURS = 43140 # Cache keys def FILE_UPLOAD_SIZE(document_guid): return f'document-manager:{document_guid}:file-size' def FILE_UPLOAD_OFFSET(document_guid): return f'document-manager:{document_guid}:offset' def FILE_U...
41.125
89
0.779635
32a7dee2f97d5b7c0fd250ec086a7c10ab65b5d7
1,844
py
Python
lib/cherrypy/cherrypy/test/checkerdemo.py
MiCHiLU/google_appengine_sdk
3da9f20d7e65e26c4938d2c4054bc4f39cbc5522
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/cherrypy/cherrypy/test/checkerdemo.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/cherrypy/cherrypy/test/checkerdemo.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
162
2015-01-01T00:21:16.000Z
2022-02-23T02:36:04.000Z
"""Demonstration app for cherrypy.checker. This application is intentionally broken and badly designed. To demonstrate the output of the CherryPy Checker, simply execute this module. """ import os import cherrypy thisdir = os.path.dirname(os.path.abspath(__file__)) class Root: pass if __name__ == '__main__': ...
38.416667
71
0.5282
275d94efa66fd0d19f63059273aaee8563d1b58f
7,966
py
Python
homeassistant/components/elkm1/alarm_control_panel.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-10-19T15:07:32.000Z
2022-01-29T10:33:20.000Z
homeassistant/components/elkm1/alarm_control_panel.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
4
2021-02-08T21:05:14.000Z
2021-09-08T02:57:03.000Z
homeassistant/components/elkm1/alarm_control_panel.py
alemuro/home-assistant
9b1315d8e55f0ca906c4c8a1b2ae8c2ea511dc90
[ "Apache-2.0" ]
2
2019-01-21T05:49:23.000Z
2019-02-19T16:30:48.000Z
"""Each ElkM1 area will be created as a separate alarm_control_panel.""" import voluptuous as vol import homeassistant.components.alarm_control_panel as alarm from homeassistant.const import ( ATTR_CODE, ATTR_ENTITY_ID, STATE_ALARM_ARMED_AWAY, STATE_ALARM_ARMED_HOME, STATE_ALARM_ARMED_NIGHT, ST...
34.938596
86
0.663319
2c45407fb3b1121b90ed8f09adf6b950aae1beca
782
py
Python
tests/flows/test_sv.py
mfkiwl/siliconcompiler
49a16d9a07c526821afe1ce2f2d77394e439ca05
[ "Apache-2.0" ]
1
2022-01-19T01:12:43.000Z
2022-01-19T01:12:43.000Z
tests/flows/test_sv.py
mfkiwl/siliconcompiler
49a16d9a07c526821afe1ce2f2d77394e439ca05
[ "Apache-2.0" ]
null
null
null
tests/flows/test_sv.py
mfkiwl/siliconcompiler
49a16d9a07c526821afe1ce2f2d77394e439ca05
[ "Apache-2.0" ]
null
null
null
import siliconcompiler import os import pytest @pytest.mark.eda @pytest.mark.quick def test_sv(datadir): '''Test that we can successfully synthesize a SystemVerilog design using the asicflow. ''' design = 'prim_fifo_sync' chip = siliconcompiler.Chip(design=design) chip.add('source', os.path.j...
26.066667
80
0.662404
845665f1f68aa18a1d8352723f99a6b4ca8fa81b
22,727
py
Python
geotrek/trekking/serializers.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
null
null
null
geotrek/trekking/serializers.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
null
null
null
geotrek/trekking/serializers.py
pierreloicq/Geotrek-admin
00cd29f29843f2cc25e5a3c7372fcccf14956887
[ "BSD-2-Clause" ]
null
null
null
import copy import datetime import json import gpxpy.gpx from django.conf import settings from django.contrib.gis.db.models.functions import Transform from django.urls import reverse from django.utils import translation from django.utils.translation import get_language, ugettext_lazy as _ from django.utils.timezone im...
41.624542
149
0.659568
81a5449479574f681461a1b6e881ba84c4f53baa
4,615
py
Python
semeval_eval.py
jfarrugia-uom/hyperstar
896db10da2506e5144b99361dfb43609edf05012
[ "MIT" ]
null
null
null
semeval_eval.py
jfarrugia-uom/hyperstar
896db10da2506e5144b99361dfb43609edf05012
[ "MIT" ]
null
null
null
semeval_eval.py
jfarrugia-uom/hyperstar
896db10da2506e5144b99361dfb43609edf05012
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import numpy as np class HypernymEvaluation: def __init__(self, dataset): self.dataset = dataset def convert_hypernyms_to_one_line(self): #ordered_queries = sorted(list(set(self.dataset[0]))) ordered_queries = sorted(...
40.840708
116
0.582665
53478a031915d03ad1f0d4ee1f0352f1d48a497b
1,710
py
Python
fast_campus_craw_project/crawler/crawler/spiders/spider.py
Taebyoung/crawling_season_1
afbf2c7a1c94625f41e78bcac596db103bef1aaa
[ "MIT" ]
1
2019-12-13T06:06:14.000Z
2019-12-13T06:06:14.000Z
fast_campus_craw_project/crawler/crawler/spiders/spider.py
Taebyoung/crawling_season_1
afbf2c7a1c94625f41e78bcac596db103bef1aaa
[ "MIT" ]
null
null
null
fast_campus_craw_project/crawler/crawler/spiders/spider.py
Taebyoung/crawling_season_1
afbf2c7a1c94625f41e78bcac596db103bef1aaa
[ "MIT" ]
null
null
null
import scrapy import requests import json from crawler.items import CrawlerItem class Spider(scrapy.Spider): name = "KBO" def start_requests(self): year = ["2017", "2018", "2019"] month = ["03","04","05", "06", "07", "08", "09", "10"] team = ["SK", "HH", "WO", "HT", "SS", "LT", "OB", "...
48.857143
303
0.506433
dc6766ab00766cc2091f3b8dd67e6813a4fd8aef
5,890
py
Python
CookieTTS/utils/torchmoji/filter_utils.py
AstraliteHeart/cookietts
c871f5f7b5790656d5b57bcd9e63946a2da52f0f
[ "BSD-3-Clause" ]
25
2020-07-07T20:07:41.000Z
2021-12-17T11:27:36.000Z
CookieTTS/utils/torchmoji/filter_utils.py
AstraliteHeart/cookietts
c871f5f7b5790656d5b57bcd9e63946a2da52f0f
[ "BSD-3-Clause" ]
26
2020-07-04T00:06:25.000Z
2022-02-10T03:28:35.000Z
CookieTTS/utils/torchmoji/filter_utils.py
AstraliteHeart/cookietts
c871f5f7b5790656d5b57bcd9e63946a2da52f0f
[ "BSD-3-Clause" ]
11
2020-07-02T21:39:59.000Z
2022-01-17T22:09:46.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals import sys import re import string import emoji from itertools import groupby import numpy as np from CookieTTS.utils.torchmoji.tokenizer import RE_MENTION, RE_URL from CookieTTS.utils.torchmoji.global_variables import SPECIAL_T...
30.205128
114
0.615959
43348e3b2c545b50b18b1fe875ed23f49caec133
1,073
py
Python
ngraph/python/src/ngraph/exceptions.py
szabi-luxonis/openvino
c8dd831fc3ba68a256ab47edb4f6bf3cb5e804be
[ "Apache-2.0" ]
2
2020-11-18T14:14:06.000Z
2020-11-28T04:55:57.000Z
ngraph/python/src/ngraph/exceptions.py
szabi-luxonis/openvino
c8dd831fc3ba68a256ab47edb4f6bf3cb5e804be
[ "Apache-2.0" ]
30
2020-11-13T11:44:07.000Z
2022-02-21T13:03:16.000Z
ngraph/python/src/ngraph/exceptions.py
szabi-luxonis/openvino
c8dd831fc3ba68a256ab47edb4f6bf3cb5e804be
[ "Apache-2.0" ]
1
2020-12-18T15:47:45.000Z
2020-12-18T15:47:45.000Z
# ****************************************************************************** # Copyright 2017-2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
37
83
0.634669
f8ace892ae24814e4b82aa9e1fe62f7749e39978
1,212
py
Python
arduino/portable/sketchbook/libraries/RF24/pyRF24/setup.py
devshop2019/mixlyTest
bb92771aca2d5d801510658a70a13f4b548a43aa
[ "Apache-2.0" ]
118
2019-03-27T02:15:59.000Z
2022-03-18T16:42:42.000Z
arduino/portable/sketchbook/libraries/RF24/pyRF24/setup.py
devshop2019/mixlyTest
bb92771aca2d5d801510658a70a13f4b548a43aa
[ "Apache-2.0" ]
50
2015-02-27T13:21:05.000Z
2016-01-11T01:03:42.000Z
arduino/portable/sketchbook/libraries/RF24/pyRF24/setup.py
devshop2019/mixlyTest
bb92771aca2d5d801510658a70a13f4b548a43aa
[ "Apache-2.0" ]
58
2019-04-16T06:52:45.000Z
2022-03-08T01:57:08.000Z
#!/usr/bin/env python import os import sys import setuptools import crossunixccompiler version = '' def process_configparams(): global version with open('../Makefile.inc') as f: config_lines = f.read().splitlines() cflags = os.getenv("CFLAGS", "") for line in config_lines: identifi...
24.734694
65
0.567657
bbb008e64bca47867b41d28e9fdc9068bdb04574
2,546
py
Python
tests/integrationTests/tests/cpp_buggy_custom/__init__.py
muarachmann/Submitty
86cea3d3441419089b1a3058d01c663e6807294c
[ "BSD-3-Clause" ]
3
2020-07-27T16:23:09.000Z
2022-01-07T16:07:31.000Z
tests/integrationTests/tests/cpp_buggy_custom/__init__.py
muarachmann/Submitty
86cea3d3441419089b1a3058d01c663e6807294c
[ "BSD-3-Clause" ]
null
null
null
tests/integrationTests/tests/cpp_buggy_custom/__init__.py
muarachmann/Submitty
86cea3d3441419089b1a3058d01c663e6807294c
[ "BSD-3-Clause" ]
null
null
null
# Necessary imports. Provides library functions to ease writing tests. from lib import prebuild, testcase, SUBMITTY_INSTALL_DIR import subprocess import os import glob import shutil ############################################################################ # COPY THE ASSIGNMENT FROM THE SAMPLE ASSIGNMENTS DIRECTOR...
35.859155
107
0.597015
f9bd899f3f44eaf642db9bf4f32b4efcc534187a
313
py
Python
lab3/palindrome.py
Dovydas-Kr/dt211c-cloud-repo
cc1e40f68da5048d9ceeea1617dd08293e013ac0
[ "MIT" ]
null
null
null
lab3/palindrome.py
Dovydas-Kr/dt211c-cloud-repo
cc1e40f68da5048d9ceeea1617dd08293e013ac0
[ "MIT" ]
null
null
null
lab3/palindrome.py
Dovydas-Kr/dt211c-cloud-repo
cc1e40f68da5048d9ceeea1617dd08293e013ac0
[ "MIT" ]
null
null
null
# Program that checks if a string is palindrome. import string #Asks for input word = raw_input("Enter a string: ") #changes string to lover case word1 = word.lower() #reverses string word2 = reversed(word1) #Checks if strings are the same if list(word1) == list(word2): print("True") else: print("False")
20.866667
48
0.71885
b79db24da371797a985afbe7993ff2334ee38df9
271
py
Python
sources/controller/__init__.py
Groomsha/lan-map
1c30819470f43f8521e98eb75c70da23939f8f06
[ "Apache-2.0" ]
null
null
null
sources/controller/__init__.py
Groomsha/lan-map
1c30819470f43f8521e98eb75c70da23939f8f06
[ "Apache-2.0" ]
null
null
null
sources/controller/__init__.py
Groomsha/lan-map
1c30819470f43f8521e98eb75c70da23939f8f06
[ "Apache-2.0" ]
null
null
null
from .main_window.main_window_controller import * from .new_device_window.new_device_controller import * from .new_device_window.save_data_new_device import * from .new_device_window.button_new_device import * from .new_device_window.widgets_control_new_device import *
38.714286
59
0.867159
275949a93785cf146900b7939bde60a58e77e665
6,416
py
Python
danksales/danksales.py
OofChair/AndyCogs
0ccc6c3eba6f66051a9acf85fee765aae62c985b
[ "MIT" ]
8
2021-01-26T19:44:13.000Z
2021-08-03T00:11:39.000Z
danksales/danksales.py
OofChair/AndyCogs
0ccc6c3eba6f66051a9acf85fee765aae62c985b
[ "MIT" ]
6
2021-03-02T16:59:40.000Z
2021-07-21T06:26:00.000Z
danksales/danksales.py
OofChair/AndyCogs
0ccc6c3eba6f66051a9acf85fee765aae62c985b
[ "MIT" ]
6
2021-02-11T20:35:10.000Z
2021-08-07T07:40:17.000Z
import discord import re from datetime import datetime from redbot.core import commands, Config from redbot.core.bot import Red from typing import Optional SHOP_REGEX = r"\*\*__LIGHTNING SALE__\*\* \(resets in (?P<time>[0-9,]+)m\) :[a-zA-Z0-9_]{2,32}: \*\*(?P<item>.*[a-zA-Z0-9_]{2,32})\*\* ─ \[(?P<price>[0-9,]+)\] \...
38.419162
233
0.528834
742614aeaf8daad749d28551f1a159fb4f01f65a
12,273
py
Python
src/spec-2017/configs/run_spec.py
my569/gem5-resources
5788f1394a1894efec8e4784d37f473a743aa9f6
[ "MIT" ]
1
2022-01-04T03:41:23.000Z
2022-01-04T03:41:23.000Z
src/spec-2017/configs/run_spec.py
my569/gem5-resources
5788f1394a1894efec8e4784d37f473a743aa9f6
[ "MIT" ]
null
null
null
src/spec-2017/configs/run_spec.py
my569/gem5-resources
5788f1394a1894efec8e4784d37f473a743aa9f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019 The Regents of the University of California. # 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 copyr...
40.50495
152
0.638149
ba808e76debc5c887ce9cd7a6459a996d9fabca4
346
py
Python
lists_as_stacks_and_queues/exercise/04_fashion_boutique.py
Galchov/python-advanced
1961205415a634948f4a50cf6e60b630ee645ad5
[ "MIT" ]
null
null
null
lists_as_stacks_and_queues/exercise/04_fashion_boutique.py
Galchov/python-advanced
1961205415a634948f4a50cf6e60b630ee645ad5
[ "MIT" ]
null
null
null
lists_as_stacks_and_queues/exercise/04_fashion_boutique.py
Galchov/python-advanced
1961205415a634948f4a50cf6e60b630ee645ad5
[ "MIT" ]
null
null
null
clothes = [int(i) for i in input().split()] # List of clothes' values rack_capacity = int(input()) # The maximum capacity of one rack racks = 1 sum_clothes = 0 while clothes: value = clothes.pop() sum_clothes += value if sum_clothes > rack_capacity: sum_clothes = value ...
23.066667
81
0.615607
e9e72bd4bc1cc77dbbd1ce4b2f7792b483950551
1,540
py
Python
models/utils/video_record.py
kolbytn/alfred
ef6fd8d61ecc59e1b4c805fce1b1c595af8e1049
[ "MIT" ]
null
null
null
models/utils/video_record.py
kolbytn/alfred
ef6fd8d61ecc59e1b4c805fce1b1c595af8e1049
[ "MIT" ]
null
null
null
models/utils/video_record.py
kolbytn/alfred
ef6fd8d61ecc59e1b4c805fce1b1c595af8e1049
[ "MIT" ]
null
null
null
# video recorder helper class from datetime import datetime import cv2 class VideoRecord: def __init__(self, path, name, fps=5): """ param: path: video save path (str) name: video name (str) fps: frames per second (int) (default=5) example usage: ...
35
88
0.567532
cd85d835253ee4ee43536503ba66f164f1a360f9
4,438
py
Python
psltdsim/plot/BAALtest.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
psltdsim/plot/BAALtest.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
psltdsim/plot/BAALtest.py
thadhaines/PSLTDSim
1bc598f3733c1369c164f54249e5f7757e6bf466
[ "MIT" ]
null
null
null
def BAALtest(mirror, blkFlag=True, printFigs=False): """Meant to test adherence to BA ACE Limits.""" # simple visual test as of 12/30/19 import matplotlib.pyplot as plt import numpy as np import itertools mir = mirror xend = max(mir.r_t) mini = 1 # can be increased to scale width of pl...
29.390728
94
0.527715
3b403aed18cdab661d9edfd823bf74e9033f3ce8
1,027
py
Python
river/preprocessing/__init__.py
deepcharles/river
046e7334d24fb5e5d127473d5c6988c75875f658
[ "BSD-3-Clause" ]
1
2021-04-19T10:47:11.000Z
2021-04-19T10:47:11.000Z
river/preprocessing/__init__.py
henrygouk/river
744c87786d2bc87d7256f9c61b18dc10c9a2bb88
[ "BSD-3-Clause" ]
null
null
null
river/preprocessing/__init__.py
henrygouk/river
744c87786d2bc87d7256f9c61b18dc10c9a2bb88
[ "BSD-3-Clause" ]
1
2021-01-22T15:18:39.000Z
2021-01-22T15:18:39.000Z
"""Feature preprocessing. The purpose of this module is to modify an existing set of features so that they can be processed by a machine learning algorithm. This may be done by scaling numeric parts of the data or by one-hot encoding categorical features. The difference with the `feature_extraction` module is that the...
27.756757
98
0.767283
89469aa151aaa62d0d2f8fd553f158806c4a5636
1,723
py
Python
setup.py
nscherf/nighres
b4304a1ee7d878a0fa986f537b35ad9b65898bfe
[ "Apache-2.0" ]
null
null
null
setup.py
nscherf/nighres
b4304a1ee7d878a0fa986f537b35ad9b65898bfe
[ "Apache-2.0" ]
null
null
null
setup.py
nscherf/nighres
b4304a1ee7d878a0fa986f537b35ad9b65898bfe
[ "Apache-2.0" ]
1
2019-01-21T10:53:38.000Z
2019-01-21T10:53:38.000Z
from os import path from setuptools import setup, find_packages # from setuptools.command.develop import develop # from setuptools.command.install import install # from subprocess import check_call here = path.abspath(path.dirname(__file__)) build_script = path.join(here, "build.sh") with open('README.rst') as f: ...
33.134615
70
0.644806
4c5cf03289f9ca75ffb8335159a5bd49a4cfadf5
11,017
py
Python
devito/core/cpu.py
cha-tzi/devito
45b14b7625a21631bd026a0c77911bc46dad9ead
[ "MIT" ]
null
null
null
devito/core/cpu.py
cha-tzi/devito
45b14b7625a21631bd026a0c77911bc46dad9ead
[ "MIT" ]
3
2020-11-30T06:23:14.000Z
2022-03-07T19:02:27.000Z
devito/core/cpu.py
cha-tzi/devito
45b14b7625a21631bd026a0c77911bc46dad9ead
[ "MIT" ]
null
null
null
from functools import partial from devito.core.operator import OperatorCore from devito.exceptions import InvalidOperator from devito.passes.clusters import (Blocking, Lift, cire, cse, eliminate_arrays, extract_increments, factorize, fuse, optimize_pows) from devito.passes.iet impor...
32.026163
89
0.650177
13cdaa3738fef4f6828f0d535ebc92efae7979e0
1,054
py
Python
CodingInterview2/32_01_PrintTreeFromTopToBottom/print_tree_from_top_to_bottom.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
10
2020-07-06T11:00:58.000Z
2022-01-29T09:25:24.000Z
CodingInterview2/32_01_PrintTreeFromTopToBottom/print_tree_from_top_to_bottom.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
null
null
null
CodingInterview2/32_01_PrintTreeFromTopToBottom/print_tree_from_top_to_bottom.py
hscspring/TheAlgorithms-Python
5c2faea1d2d25a9a81a4786e053b0cc58ab46c6f
[ "MIT" ]
3
2020-07-13T06:39:23.000Z
2020-08-15T16:29:48.000Z
""" 面试题32(一):不分行从上往下打印二叉树 题目:从上往下打印出二叉树的每个结点,同一层的结点按照从左到右的顺序打印。 """ class BinaryTreeNode: def __init__(self, val): self.val = val self.left = None self.right = None def connect_binarytree_nodes(parent: BinaryTreeNode, left: BinaryTreeNode, ...
16.215385
70
0.536053
e5fcf0cc20bab3d38e418826528cdbca7c36fb2f
367
py
Python
users/migrations/0005_rename_discription_user_bio.py
alexdeathway/Gecom
2a0fc87887d73d15eba183625dc8a429defe851f
[ "MIT" ]
7
2021-11-15T06:28:05.000Z
2022-02-22T11:36:00.000Z
users/migrations/0005_rename_discription_user_bio.py
alexdeathway/Gecom
2a0fc87887d73d15eba183625dc8a429defe851f
[ "MIT" ]
3
2021-11-02T16:10:49.000Z
2022-02-01T08:30:38.000Z
users/migrations/0005_rename_discription_user_bio.py
alexdeathway/Gecom
2a0fc87887d73d15eba183625dc8a429defe851f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2022-01-22 07:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0004_alter_user_profile_image'), ] operations = [ migrations.RenameField( model_name='user', old_name='discription'...
19.315789
51
0.588556
dac8abd6d1da6fd9a95ab57baed7d37de4c05158
10,744
py
Python
public/yum-3.2.28/test/packagetests.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
null
null
null
public/yum-3.2.28/test/packagetests.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
5
2021-02-02T08:17:10.000Z
2022-02-27T06:53:42.000Z
public/yum-3.2.28/test/packagetests.py
chillaxor/blogbin
211202d513fa80a3d22fb3963f36a01a8dec5b68
[ "MIT" ]
null
null
null
import unittest import settestpath from yum import packages from rpmUtils import miscutils class InPrcoRangePackageTests(unittest.TestCase): def setUp(self): self.po = packages.RpmBase() self.po.rel = 10 self.po.prco['provides'].append(("seth", "EQ", (1, 2, 3))) self.po.prco['requ...
37.830986
91
0.520197
3f277d682edf17047366602c49855b77e9c27ab2
4,052
py
Python
evaluation/2017/evaluation_method.py
Limingxing00/RDE-VOS-CVPR2022
548a889395e2370c07962692e01e3abf8f518153
[ "MIT" ]
null
null
null
evaluation/2017/evaluation_method.py
Limingxing00/RDE-VOS-CVPR2022
548a889395e2370c07962692e01e3abf8f518153
[ "MIT" ]
null
null
null
evaluation/2017/evaluation_method.py
Limingxing00/RDE-VOS-CVPR2022
548a889395e2370c07962692e01e3abf8f518153
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys from time import time import argparse import numpy as np import pandas as pd from davis2017.evaluation import DAVISEvaluation # from OSS import save_csv """ #### 2017 val ##### python evaluation_method.py \ --results_path \ mingxing/gdata1/mask_propgagation/Stage_2_bs_24_lr_...
48.238095
129
0.698667
8ae01198ff39739ac60a5a1a0abc36a82d3c4d12
938
py
Python
agile_analytics/__init__.py
cmheisel/jira-agile-extractor
8c5445234c0c950ef30763b787e4bbacfe70ec2a
[ "MIT" ]
14
2016-08-03T13:38:59.000Z
2021-10-07T01:50:12.000Z
agile_analytics/__init__.py
cmheisel/agile-analytics
8c5445234c0c950ef30763b787e4bbacfe70ec2a
[ "MIT" ]
42
2016-07-22T19:32:39.000Z
2021-04-30T20:32:06.000Z
agile_analytics/__init__.py
cmheisel/jira-agile-extractor
8c5445234c0c950ef30763b787e4bbacfe70ec2a
[ "MIT" ]
1
2019-08-02T05:30:38.000Z
2019-08-02T05:30:38.000Z
"""Pulls data from agile systems and analyzes it.""" from .version import __version__, __author__ from .fetchers import ( JIRAFetcher, convert_jira_issue ) from .analyzers import ( DateAnalyzer, PartialDateAnalyzer, ) from .reporters import ( ThroughputReporter, LeadTimeDistributionReporter,...
18.392157
52
0.695096
73c99306bd08803c0fec95f6c4ba27c22ea3cc2d
30,561
py
Python
fpga/app/template/tb/mqnic_core_pcie_us/test_mqnic_core_pcie_us.py
missinglinkelectronics/corundum
1797fdececb6a5fe866b649345187e05d3fb2a30
[ "BSD-2-Clause-FreeBSD" ]
1
2022-01-24T04:54:00.000Z
2022-01-24T04:54:00.000Z
fpga/app/template/tb/mqnic_core_pcie_us/test_mqnic_core_pcie_us.py
linjw16/corundum
65ad32421bacc497823ca939b0b9f0801063c4ea
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
fpga/app/template/tb/mqnic_core_pcie_us/test_mqnic_core_pcie_us.py
linjw16/corundum
65ad32421bacc497823ca939b0b9f0801063c4ea
[ "BSD-2-Clause-FreeBSD" ]
1
2022-03-01T13:36:39.000Z
2022-03-01T13:36:39.000Z
""" Copyright 2021, The Regents of the University of California. 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 ...
37.916873
124
0.653382
8880ecb98932b24696ef1824785d9ed1a78282e6
18,081
py
Python
bddtests/peer/admin_pb2.py
a20351766/mchain
159b9aebb53257d98528070c2863897e2e610643
[ "Apache-2.0" ]
null
null
null
bddtests/peer/admin_pb2.py
a20351766/mchain
159b9aebb53257d98528070c2863897e2e610643
[ "Apache-2.0" ]
null
null
null
bddtests/peer/admin_pb2.py
a20351766/mchain
159b9aebb53257d98528070c2863897e2e610643
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: peer/admin.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _re...
42.048837
1,170
0.741109
55931dcdca6f97883a8ec17b8771901898214262
5,638
py
Python
image_classification/Shuffle_Transformer/config.py
gdj8510/PaddleViT
6a2c063ddbd7e1d0f271eb4699516493e3fd327f
[ "Apache-2.0" ]
1
2022-01-12T00:46:53.000Z
2022-01-12T00:46:53.000Z
image_classification/Shuffle_Transformer/config.py
gdj8510/PaddleViT
6a2c063ddbd7e1d0f271eb4699516493e3fd327f
[ "Apache-2.0" ]
null
null
null
image_classification/Shuffle_Transformer/config.py
gdj8510/PaddleViT
6a2c063ddbd7e1d0f271eb4699516493e3fd327f
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PPViT 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 applicable l...
30.311828
97
0.708585
02d51cb0fb090c8d6705dca7a4f9d22e784dfabb
1,025
py
Python
pygeopkg/core/field.py
ropable/pygeopkg
92ad57c6cb6372b8210f4d99053d05cde962b797
[ "MIT" ]
4
2020-02-16T08:47:40.000Z
2021-11-09T09:19:32.000Z
pygeopkg/core/field.py
ropable/pygeopkg
92ad57c6cb6372b8210f4d99053d05cde962b797
[ "MIT" ]
4
2021-09-16T02:53:48.000Z
2022-02-11T15:08:19.000Z
pygeopkg/core/field.py
ropable/pygeopkg
92ad57c6cb6372b8210f4d99053d05cde962b797
[ "MIT" ]
4
2020-12-09T13:31:32.000Z
2021-11-09T09:19:39.000Z
""" Field """ from pygeopkg.shared.enumeration import SQLFieldTypes class Field(object): """ Field Object for GeoPackage """ def __init__(self, name, data_type, size=None): """ Initialize the Field class :param name: The name of the field :type name: str :param...
25
76
0.589268
fbc7307c040ec1c3faf818f0a54612c4f1e767aa
1,757
py
Python
day02/day02_part2.py
Nixxen/advent_of_code_2021
5dec9eec22272322b75961256d471876437b3597
[ "CC0-1.0" ]
null
null
null
day02/day02_part2.py
Nixxen/advent_of_code_2021
5dec9eec22272322b75961256d471876437b3597
[ "CC0-1.0" ]
null
null
null
day02/day02_part2.py
Nixxen/advent_of_code_2021
5dec9eec22272322b75961256d471876437b3597
[ "CC0-1.0" ]
null
null
null
RUN_TEST = False TEST_SOLUTION = 900 TEST_INPUT_FILE = "test_input_day_02.txt" INPUT_FILE = "input_day_02.txt" ARGS = [] def main_part2( input_file, ): with open(input_file) as file: lines = list(map(lambda line: line.rstrip(), file.readlines())) # Part 2 # down X increases your aim by X uni...
30.824561
110
0.634035
286f8a8e0fb6a278ae5745a0544c0d092b803791
1,016
py
Python
pupil_invisible_monitor/src/pupil_invisible_monitor/texture.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
pupil_invisible_monitor/src/pupil_invisible_monitor/texture.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
pupil_invisible_monitor/src/pupil_invisible_monitor/texture.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
import logging import sys from pathlib import Path import numpy as np from pyglui.cygl.utils import Named_Texture logger = logging.getLogger(__name__) class PITextureController: def _initialize(self): self._texture = Named_Texture() self.reset() def update(self, frame): ...
26.736842
69
0.603346
eef058aa50d477867dd0ce10805fb68d510d7c91
5,563
py
Python
tests/components/switch/test_command_line.py
instantchow/home-assistant
6797365d4fd74328a0c9e961f652cfb37f48bc7d
[ "MIT" ]
null
null
null
tests/components/switch/test_command_line.py
instantchow/home-assistant
6797365d4fd74328a0c9e961f652cfb37f48bc7d
[ "MIT" ]
null
null
null
tests/components/switch/test_command_line.py
instantchow/home-assistant
6797365d4fd74328a0c9e961f652cfb37f48bc7d
[ "MIT" ]
null
null
null
"""the tests for the Command line switch platform.""" import json import os import tempfile import unittest from homeassistant.const import STATE_ON, STATE_OFF import homeassistant.components.switch as switch from tests.common import get_test_home_assistant class TestCommandSwitch(unittest.TestCase): """Test th...
35.208861
66
0.523638
b07b27b6faee7d36fa3de5e37bdd76129fb571e9
996
py
Python
test/test_kdlehti.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
null
null
null
test/test_kdlehti.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
14
2016-10-14T15:09:42.000Z
2017-03-01T14:29:29.000Z
test/test_kdlehti.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
1
2020-11-18T13:06:48.000Z
2020-11-18T13:06:48.000Z
import sys import os import filecmp import importlib import datetime import common path = os.path.abspath('.') sys.path.append(path) domain = 'kdlehti' url = 'http://www.kdlehti.fi/2016/09/14/lahden-kristillisdemokraatit-vanhusten-hoitajamitoitus-sailytettava-nykyisella-tasolla/' out = 'test/parser_out.txt' module =...
24.292683
128
0.73996
33a6bcadd5038aeb7ddb1ad837c7d24ca74d6acf
5,743
py
Python
bot/decorators.py
Ayplow/bot
71a3ac9382851845dcb26609d64299bd69b0f0f5
[ "MIT" ]
null
null
null
bot/decorators.py
Ayplow/bot
71a3ac9382851845dcb26609d64299bd69b0f0f5
[ "MIT" ]
null
null
null
bot/decorators.py
Ayplow/bot
71a3ac9382851845dcb26609d64299bd69b0f0f5
[ "MIT" ]
null
null
null
import logging import random from asyncio import Lock, sleep from contextlib import suppress from functools import wraps from typing import Any, Callable, Container, Optional from weakref import WeakValueDictionary from discord import Colour, Embed from discord.errors import NotFound from discord.ext import commands f...
40.160839
118
0.637472
671b1025e44870e37e3387ffad2b94748a19e9ba
3,096
py
Python
src/sampler.py
matan44/deep-RL-trading
c3326769d7ff33e28de538594c22096dd72f8d2a
[ "MIT" ]
null
null
null
src/sampler.py
matan44/deep-RL-trading
c3326769d7ff33e28de538594c22096dd72f8d2a
[ "MIT" ]
null
null
null
src/sampler.py
matan44/deep-RL-trading
c3326769d7ff33e28de538594c22096dd72f8d2a
[ "MIT" ]
null
null
null
import random, os import numpy as np import pandas as pd class RandomEpisodeSampler: def __init__(self, train_dates, test_dates, source_path, mode='train'): self.title = 'random_episode_sampler_eurusd' self.n_var = 1 self.high_res_window = 80 self.low_res_window = 16 self...
44.228571
114
0.61531
57cf61b68c08df5ee698cc6a519ee2ba87ea24f0
6,023
py
Python
tests/integration/teams/test_nfl_integration.py
ajhodges/sportsreference
8cb38db3ff2c38806cb4a68482208fd5e0f3084a
[ "MIT" ]
null
null
null
tests/integration/teams/test_nfl_integration.py
ajhodges/sportsreference
8cb38db3ff2c38806cb4a68482208fd5e0f3084a
[ "MIT" ]
null
null
null
tests/integration/teams/test_nfl_integration.py
ajhodges/sportsreference
8cb38db3ff2c38806cb4a68482208fd5e0f3084a
[ "MIT" ]
null
null
null
import mock import os import pandas as pd import pytest from flexmock import flexmock from sportsreference import utils from sportsreference.nfl.constants import SEASON_PAGE_URL from sportsreference.nfl.teams import Teams MONTH = 9 YEAR = 2017 def read_file(filename): filepath = os.path.join(os.path.dirname(__f...
33.648045
78
0.588909
df4dea355fb0b623cb6164b6745d0eaee2f4d500
1,876
py
Python
insertion_sort.py
shubham3121/algorithms
476d13ce6550f3cc500e161e2dba23bde0d576b0
[ "MIT" ]
null
null
null
insertion_sort.py
shubham3121/algorithms
476d13ce6550f3cc500e161e2dba23bde0d576b0
[ "MIT" ]
null
null
null
insertion_sort.py
shubham3121/algorithms
476d13ce6550f3cc500e161e2dba23bde0d576b0
[ "MIT" ]
null
null
null
class BinaryInsertionSort: """ Binary Insertion sort performs search and compare operation using binary search. Thus the search and compare operation takes O(log(n)) time, while swaps takes O(n) time. Time Complexity: O(n*(log(n) + n)) ≈ O(n^2) """ def __init__(self, array): self.a...
26.055556
72
0.533049
6febdccbf1e625417b99f1761984ad661da60dc4
4,391
py
Python
robot_tasks/scripts/c3_ground.py
grvcTeam/mbzirc2020
e474cee6458a3bb14f858da43349c5154b3c8cdd
[ "MIT" ]
null
null
null
robot_tasks/scripts/c3_ground.py
grvcTeam/mbzirc2020
e474cee6458a3bb14f858da43349c5154b3c8cdd
[ "MIT" ]
null
null
null
robot_tasks/scripts/c3_ground.py
grvcTeam/mbzirc2020
e474cee6458a3bb14f858da43349c5154b3c8cdd
[ "MIT" ]
2
2021-01-01T06:32:04.000Z
2021-06-28T09:09:16.000Z
#!/usr/bin/env python # PARAMETER SPECIFICATION # Number of UAVs per team Maximum of 3 # Number of UGVs per team 1 # Arena size 50mx60mx20m # Tower height Maximum of 18m # Tower base and interior specifications TBD # Location of simulated fires Up to 16m in height, inside the arena. # Environment Outdoor and indoor # ...
34.03876
101
0.669779
0b6fc0f9cb2eb80279a67d48d538a424350c932e
3,540
py
Python
EDGAR_Pac.py
ruicong-li/ruicong-li.github.io
774069e9e5f29d29bfc500a008bcfaf36bef3cc2
[ "MIT" ]
null
null
null
EDGAR_Pac.py
ruicong-li/ruicong-li.github.io
774069e9e5f29d29bfc500a008bcfaf36bef3cc2
[ "MIT" ]
null
null
null
EDGAR_Pac.py
ruicong-li/ruicong-li.github.io
774069e9e5f29d29bfc500a008bcfaf36bef3cc2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """ Utility programs for accessing SEC/EDGAR ND-SRAF / McDonald : 201606 https.//sraf.nd.edu """ def download_masterindex(year, qtr, flag=False): # Download Master.idx from EDGAR # Loop accounts for temporary server/ISP issues # ND-SRAF / McDonald : 201606 ...
33.084112
107
0.574859
7a5cac390cee4776de18c9ffaee65b7b389434e0
1,241
py
Python
2.Linked-List/8.get-node-value.py
RocqJones/data-structures-Hackerank-problem-solving
2545c2eb05d21c16c8bc18d65fbba536a40846fd
[ "Apache-2.0" ]
null
null
null
2.Linked-List/8.get-node-value.py
RocqJones/data-structures-Hackerank-problem-solving
2545c2eb05d21c16c8bc18d65fbba536a40846fd
[ "Apache-2.0" ]
null
null
null
2.Linked-List/8.get-node-value.py
RocqJones/data-structures-Hackerank-problem-solving
2545c2eb05d21c16c8bc18d65fbba536a40846fd
[ "Apache-2.0" ]
null
null
null
class SinglyLinkedListNode: def __init__(self, node_data): self.data = node_data self.next = None class SinglyLinkedList: def __init__(self): self.head = None self.tail = None def insert_node(self, node_data): node = SinglyLinkedListNode(node_data) if not...
21.396552
46
0.607575
2239e375d035a6cf1a3ee34042d97f9aa7f86a60
5,976
py
Python
app.py
ErikKalkoken/slack-demo-heroku
6142f587b696da16613f9204300e6a71b610818f
[ "MIT" ]
1
2021-10-13T09:34:29.000Z
2021-10-13T09:34:29.000Z
app.py
ErikKalkoken/slack-demo-heroku
6142f587b696da16613f9204300e6a71b610818f
[ "MIT" ]
4
2019-07-30T00:18:38.000Z
2021-10-12T08:32:53.000Z
app.py
ErikKalkoken/slack-demo-heroku
6142f587b696da16613f9204300e6a71b610818f
[ "MIT" ]
null
null
null
# main module with the Slack app import os import slack from flask import Flask, json, request import psycopg2 # database connection DATABASE_URL = os.environ['DATABASE_URL'] # setting oauth client parameters client_id = os.environ["SLACK_CLIENT_ID"] client_secret = os.environ["SLACK_CLIENT_SECRET"] oauth_scope = "c...
29.009709
92
0.552209
6d95a3182b67f0d67b45b967e8c53df157c57bf4
349
py
Python
examples/get_process_instance.py
yogesh-selfscore/camunda-external-task-client-python3
ce339909a02d4e229bcb193666240598cdd0a8e5
[ "Apache-2.0" ]
25
2020-07-02T13:15:37.000Z
2022-02-01T16:48:01.000Z
examples/get_process_instance.py
yogesh-selfscore/camunda-external-task-client-python3
ce339909a02d4e229bcb193666240598cdd0a8e5
[ "Apache-2.0" ]
23
2021-07-29T03:49:58.000Z
2022-03-07T05:14:16.000Z
examples/get_process_instance.py
yogesh-selfscore/camunda-external-task-client-python3
ce339909a02d4e229bcb193666240598cdd0a8e5
[ "Apache-2.0" ]
14
2021-08-19T07:26:01.000Z
2022-02-24T14:08:17.000Z
from camunda.client.engine_client import EngineClient def main(): client = EngineClient() resp_json = client.get_process_instance("PARALLEL_STEPS_EXAMPLE", ["intVar_eq_1", "strVar_eq_hello"], ["6172cdf0-7b32-4460-9da0-ded5107aa977"]) print(resp_json) if __name...
26.846154
105
0.641834
5f63bf462cd704dd89291762b10fb1c09382f468
2,178
py
Python
lover/__main__.py
jerluc/lover
3177db0823dbf8518d0c87c00f918504cf1c953f
[ "Apache-2.0" ]
11
2016-08-07T00:38:34.000Z
2017-04-17T04:48:20.000Z
lover/__main__.py
jerluc/lover
3177db0823dbf8518d0c87c00f918504cf1c953f
[ "Apache-2.0" ]
9
2016-07-21T19:12:03.000Z
2016-10-23T23:39:11.000Z
lover/__main__.py
jerluc/lover
3177db0823dbf8518d0c87c00f918504cf1c953f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os.path import sys import click import lover from lover.env import Env import lover.commands as commands CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) CWD = os.path.abspath(os.getcwd()) @click.group(chain=True, context_settings=CONTEXT_SETTINGS) @click.version_option(ve...
30.676056
74
0.724518
cb740a3c7bea47df908e5947afc106bc8f3a8b2f
2,355
py
Python
src/sudoku_solver.py
Adi-Shavit/PySudokuSolver
b984c434f6106d3f8c73288dfb0d84b33656138a
[ "MIT" ]
null
null
null
src/sudoku_solver.py
Adi-Shavit/PySudokuSolver
b984c434f6106d3f8c73288dfb0d84b33656138a
[ "MIT" ]
null
null
null
src/sudoku_solver.py
Adi-Shavit/PySudokuSolver
b984c434f6106d3f8c73288dfb0d84b33656138a
[ "MIT" ]
null
null
null
from typing import List, Optional from src.algorithm_x import ExactCoverSolver from src.exact_cover import create_constraint_board from src.quad_linked_list import QuadNode def solve(unsolved_board: List[List[int]]) -> Optional[List[List[int]]]: constraint_board: List[List[bool]] = create_constraint_board(len(un...
37.380952
147
0.659873
c5b07cdf1130387478e623d8cd317d75d826dee3
1,011
py
Python
testing/tests/001-main/001-empty/002-authenticated/004-config.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
216
2015-01-05T12:48:10.000Z
2022-03-08T00:12:23.000Z
testing/tests/001-main/001-empty/002-authenticated/004-config.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
55
2015-02-28T12:10:26.000Z
2020-11-18T17:45:16.000Z
testing/tests/001-main/001-empty/002-authenticated/004-config.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
34
2015-05-02T15:15:10.000Z
2020-06-15T19:20:37.000Z
with frontend.signin(): frontend.page( "config", expect={ "document_title": testing.expect.document_title(u"User preferences"), "content_title": testing.expect.paleyellow_title(0, u"User preferences"), "pageheader_links": testing.expect.pageheader_links("authentic...
45.954545
85
0.554896
bea3996136cc113df8d77d5cbf17a39aefb98460
127
py
Python
python/testData/inspections/ReplaceNotEqOperator.py
Tasemo/intellij-community
50aeaf729b7073e91c7c77487a1f155e0dfe3fcd
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/ReplaceNotEqOperator.py
Tasemo/intellij-community
50aeaf729b7073e91c7c77487a1f155e0dfe3fcd
[ "Apache-2.0" ]
null
null
null
python/testData/inspections/ReplaceNotEqOperator.py
Tasemo/intellij-community
50aeaf729b7073e91c7c77487a1f155e0dfe3fcd
[ "Apache-2.0" ]
null
null
null
print(<warning descr="Python versions 3.5, 3.6, 3.7, 3.8, 3.9, 3.10 do not support <>, use != instead">a<caret> <> b</warning>)
127
127
0.629921
d0354dc6841118f281701515575346f372386a34
2,086
py
Python
tools/extract_features.py
gwanglee/AICity2020-VOC-ReID
e39d22b6a551cdb9540624fb01783ec54ce4d507
[ "MIT" ]
null
null
null
tools/extract_features.py
gwanglee/AICity2020-VOC-ReID
e39d22b6a551cdb9540624fb01783ec54ce4d507
[ "MIT" ]
null
null
null
tools/extract_features.py
gwanglee/AICity2020-VOC-ReID
e39d22b6a551cdb9540624fb01783ec54ce4d507
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: sherlock @contact: sherlockliao01@gmail.com """ import argparse import os import sys from os import mkdir import torch from torch.backends import cudnn sys.path.append('.') from lib.config import cfg from lib.data import make_data_loader from lib.engine.inference import inference_to_g...
28.972222
98
0.688878
42b805764cc81b196f388099c4ba59b96a7316e8
2,875
py
Python
datalabframework/spark/diff.py
hexa17/datalabframework
7cbfc3ebfa8705b03930f61b55d0169cb5ee9cf9
[ "MIT" ]
null
null
null
datalabframework/spark/diff.py
hexa17/datalabframework
7cbfc3ebfa8705b03930f61b55d0169cb5ee9cf9
[ "MIT" ]
null
null
null
datalabframework/spark/diff.py
hexa17/datalabframework
7cbfc3ebfa8705b03930f61b55d0169cb5ee9cf9
[ "MIT" ]
null
null
null
from datetime import datetime import pyspark.sql.functions as F def common_columns(df_a, df_b, exclude_cols=None): if exclude_cols is None: exclude_cols = [] colnames_a = set(df_a.columns) colnames_b = set(df_a.columns) colnames = colnames_a & colnames_b c = colnam...
35.060976
174
0.689043
0100476ec1ad338cc8eacb480c8c9d478150b4f5
7,776
py
Python
python-syn/jaeger_client/thrift_gen/zipkincore/ZipkinCollector.py
harnitsignalfx/tf-synthetics
059e10b4e22d40899d7784fdc48a6f04c8eec9ec
[ "MIT" ]
11
2020-10-13T05:27:59.000Z
2021-09-23T02:56:32.000Z
python-syn/jaeger_client/thrift_gen/zipkincore/ZipkinCollector.py
harnitsignalfx/tf-synthetics
059e10b4e22d40899d7784fdc48a6f04c8eec9ec
[ "MIT" ]
48
2020-10-15T09:53:36.000Z
2021-07-05T15:33:24.000Z
python-syn/jaeger_client/thrift_gen/zipkincore/ZipkinCollector.py
harnitsignalfx/tf-synthetics
059e10b4e22d40899d7784fdc48a6f04c8eec9ec
[ "MIT" ]
4
2020-12-04T08:51:35.000Z
2022-03-27T09:42:20.000Z
# Modified by SignalFx # # Autogenerated by Thrift Compiler (0.9.3) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py:new_style # import six from six.moves import xrange from thrift.Thrift import TType, TMessageType, TException, TApplicationException import logging from .ttyp...
29.793103
188
0.677083
4b731839d01b54fdf6356961c67c57475831d126
51,172
py
Python
test/test_overrides.py
EikanWang/pytorch
823ddb6e87e8111c9b5a99523503172e5bf62c49
[ "Intel" ]
null
null
null
test/test_overrides.py
EikanWang/pytorch
823ddb6e87e8111c9b5a99523503172e5bf62c49
[ "Intel" ]
1
2022-01-10T18:39:28.000Z
2022-01-10T19:15:57.000Z
test/test_overrides.py
HaoZeke/pytorch
4075972c2675ef34fd85efd60c9bad75ad06d386
[ "Intel" ]
null
null
null
# Owner(s): ["module: __torch_function__"] import torch import numpy as np import inspect import functools import pprint import pickle import collections import unittest from torch.testing._internal.common_utils import TestCase, run_tests, TEST_WITH_CROSSREF from torch.overrides import ( handle_torch_function, ...
35.585535
114
0.609318
ab199169624b6e46456b82ed737832fd9c909ef8
4,445
py
Python
scripts/surnames_redirects.py
nasqueron/pywikibot
60d21c39031582f6b0dae31d9283d36c2ec053d9
[ "MIT" ]
3
2020-06-06T21:47:04.000Z
2021-09-08T18:22:59.000Z
pywikibot/scripts/surnames_redirects.py
ianhussey/destigmatize-suicide-bot
b79d49ad085f0d353bc24ece9e4a9938748e1dc4
[ "Unlicense" ]
56
2016-12-13T04:57:36.000Z
2017-11-24T10:05:41.000Z
scripts/surnames_redirects.py
magul/pywikibot-core
4874edc0f3f314108bcd25486d9df817da8457fe
[ "MIT" ]
1
2018-01-04T14:09:37.000Z
2018-01-04T14:09:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Bot to create redirects based on name order. By default it creates a "Surnames, Given Names" redirect version of a given page where title consists of 2 or 3 titlecased words. Command-line arguments: &params; -surnames_last Creates a "Given Names Surnames" redirect ve...
32.683824
78
0.553656
246a7e30cf0ec12e9c91fdfd3574309f8cef1979
3,163
py
Python
numba/kmeans/CPU/kmeans.py
geexie/dpbench
7d41409ded3c816f35003bc5aea071852bceb892
[ "BSD-2-Clause" ]
8
2021-03-26T15:17:58.000Z
2022-01-21T21:56:19.000Z
numba/kmeans/CPU/kmeans.py
geexie/dpbench
7d41409ded3c816f35003bc5aea071852bceb892
[ "BSD-2-Clause" ]
22
2021-03-30T21:20:57.000Z
2022-02-22T13:42:17.000Z
numba/kmeans/CPU/kmeans.py
geexie/dpbench
7d41409ded3c816f35003bc5aea071852bceb892
[ "BSD-2-Clause" ]
7
2021-03-23T11:00:43.000Z
2022-02-02T12:28:55.000Z
import base_kmeans import numpy import numba from dpbench_decorators import jit REPEAT = 1 ITERATIONS = 30 @jit(nopython=True, parallel=True, fastmath=True) def groupByCluster(arrayP, arrayPcluster, arrayC, num_points, num_centroids): for i0 in numba.prange(num_points): minor_distance = -1 for i...
27.745614
87
0.602592
c84b28082b1a9bf0c9bbca709c0df4f2cd4908a2
4,612
py
Python
data_process/Tempuckey/data_provider.py
JimShu716/Design_Project
7ae90cc7f6da7201e4cab9248cc59a9a25996451
[ "Apache-2.0" ]
null
null
null
data_process/Tempuckey/data_provider.py
JimShu716/Design_Project
7ae90cc7f6da7201e4cab9248cc59a9a25996451
[ "Apache-2.0" ]
null
null
null
data_process/Tempuckey/data_provider.py
JimShu716/Design_Project
7ae90cc7f6da7201e4cab9248cc59a9a25996451
[ "Apache-2.0" ]
null
null
null
import numpy as np import torch.utils.data as data import pickle import os import torch._utils import torch import io try: torch._utils._rebuild_tensor_v2 except AttributeError: def _rebuild_tensor_v2(storage, storage_offset, size, stride, requires_grad, backward_hooks): tensor = torch._utils._rebuild...
32.70922
97
0.616219
d5d74f05df913c249e1b4a6f2e6f5c5a9c72f94e
4,050
py
Python
test/integration/devtools/test_hot_reload.py
PallHaraldsson/Dash.jl
9d2d74ffec2a89df8cb0af7cc8551049e240a4d0
[ "MIT" ]
null
null
null
test/integration/devtools/test_hot_reload.py
PallHaraldsson/Dash.jl
9d2d74ffec2a89df8cb0af7cc8551049e240a4d0
[ "MIT" ]
null
null
null
test/integration/devtools/test_hot_reload.py
PallHaraldsson/Dash.jl
9d2d74ffec2a89df8cb0af7cc8551049e240a4d0
[ "MIT" ]
null
null
null
import pathlib import os.path import logging import os from time import sleep logger = logging.getLogger(__name__) curr_path = pathlib.Path(__file__).parent.absolute() RED_BG = """ #hot-reload-content { background-color: red; } """ reload_js = """ document.getElementById('tested').innerHTML = 'Reloaded'; """ rel...
25.796178
81
0.627407
23d5b588caa378b805dc6796ec8d300d5031763b
771
py
Python
bm-backend/games/mafia/mafia_game.py
beyondmafiadev-warrens/BeyondMafia
a59c9011e0efbd277790a7f711902f849a69fb6f
[ "MIT" ]
3
2021-04-12T18:21:37.000Z
2021-04-29T02:44:59.000Z
bm-backend/games/mafia/mafia_game.py
beyondmafiadev-warrens/BeyondMafia
a59c9011e0efbd277790a7f711902f849a69fb6f
[ "MIT" ]
2
2021-04-12T18:31:07.000Z
2021-04-12T18:43:05.000Z
bm-backend/games/mafia/mafia_game.py
beyondmafiadev-warrens/BeyondMafia
a59c9011e0efbd277790a7f711902f849a69fb6f
[ "MIT" ]
2
2021-09-27T16:09:01.000Z
2021-10-17T06:25:01.000Z
from interfaces.game_interface import GameInterface import numpy as np class MafiaGame(GameInterface): def __init__(self, players : set[int], player_type : type, options = None) -> None: self.players = {i : player_type(name) for i, name in players} self.is_day = options['day_start'] self....
32.125
149
0.657588
fb6fdb2bc55b2593240d2555d0b837daf8f36253
13,652
py
Python
tests/projects/test_databricks.py
dnlcrl/mlflow
a2a60c143b403bb92e008207ea6978c6c9be931b
[ "Apache-2.0" ]
1
2020-07-03T20:15:27.000Z
2020-07-03T20:15:27.000Z
tests/projects/test_databricks.py
dnlcrl/mlflow
a2a60c143b403bb92e008207ea6978c6c9be931b
[ "Apache-2.0" ]
null
null
null
tests/projects/test_databricks.py
dnlcrl/mlflow
a2a60c143b403bb92e008207ea6978c6c9be931b
[ "Apache-2.0" ]
1
2020-07-03T20:15:29.000Z
2020-07-03T20:15:29.000Z
import filecmp import json import mock import os import shutil from databricks_cli.configure.provider import DatabricksConfig import databricks_cli import pytest import mlflow from mlflow.exceptions import MlflowException from mlflow.projects.databricks import DatabricksJobRunner from mlflow.entities import RunStatus...
43.202532
100
0.71821
ac1aa560a29e638d22df350d427c5c6ce620db63
14,721
py
Python
saleor/discount/models.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
1
2018-05-03T06:17:02.000Z
2018-05-03T06:17:02.000Z
saleor/discount/models.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
8
2018-05-07T16:42:35.000Z
2022-02-26T03:31:56.000Z
saleor/discount/models.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from datetime import date from decimal import Decimal from django.conf import settings from django.db import models from django.db.models import F from django.utils.translation import pgettext, pgettext_lazy from django.utils.encoding import python_2_unicode_compatible, ...
42.06
92
0.623463
159023bcf61632c8fdc017063fcddb961a956727
6,586
py
Python
deep_lincs/models/multi_classifier.py
manzt/lincs-ae
51b2fbaa0a87580e545b5a962a418ca8abc6a3bf
[ "MIT" ]
7
2019-10-31T14:03:20.000Z
2021-07-31T01:28:47.000Z
deep_lincs/models/multi_classifier.py
manzt/lincs-ae
51b2fbaa0a87580e545b5a962a418ca8abc6a3bf
[ "MIT" ]
null
null
null
deep_lincs/models/multi_classifier.py
manzt/lincs-ae
51b2fbaa0a87580e545b5a962a418ca8abc6a3bf
[ "MIT" ]
1
2020-07-03T00:16:07.000Z
2020-07-03T00:16:07.000Z
import pandas as pd import numpy as np import altair as alt from tensorflow.keras import Model, Input from tensorflow.keras.layers import Dense, Dropout from sklearn.metrics import confusion_matrix from .base_network import BaseNetwork class MultiClassifier(BaseNetwork): """Represents a classifier for multiple m...
33.602041
99
0.567568
f624cab27819696d157df96323e729fc67ccd128
1,874
py
Python
framework/agent/network/network.py
Francesco-Sovrano/Combining--experience-replay--with--exploration-by-random-network-distillation-
bf6f2b9a8703227dc40b06bbb170cbb89c04e76f
[ "MIT" ]
4
2019-06-03T08:55:54.000Z
2021-02-01T14:42:44.000Z
framework/agent/network/network.py
Francesco-Sovrano/Combining--experience-replay--with--exploration-by-random-network-distillation-
bf6f2b9a8703227dc40b06bbb170cbb89c04e76f
[ "MIT" ]
null
null
null
framework/agent/network/network.py
Francesco-Sovrano/Combining--experience-replay--with--exploration-by-random-network-distillation-
bf6f2b9a8703227dc40b06bbb170cbb89c04e76f
[ "MIT" ]
2
2019-06-03T08:59:55.000Z
2020-11-16T22:46:58.000Z
# -*- coding: utf-8 -*- import tensorflow as tf class Network(): def __init__(self, id, training): self.training = training self.id = id self.use_internal_state = False # Initialize keys collections self.shared_keys = [] self.update_keys = [] def _update_keys(self, scope_name, share_trainables): if s...
46.85
138
0.752401
10680fff3a69bcf6d9ef8a5489adb316b570f2f4
9,360
py
Python
ald/core/callback.py
zpeng2/ald
040ce6176998a9ca024eb9f420e8c6c63ca6af81
[ "MIT" ]
null
null
null
ald/core/callback.py
zpeng2/ald
040ce6176998a9ca024eb9f420e8c6c63ca6af81
[ "MIT" ]
1
2020-11-29T06:46:22.000Z
2020-11-29T06:46:22.000Z
ald/core/callback.py
zpeng2/ald
040ce6176998a9ca024eb9f420e8c6c63ca6af81
[ "MIT" ]
null
null
null
import pycuda.gpuarray as gpuarray from abc import abstractmethod, ABC import numpy as np import time import datetime import h5py import os class CallbackRunner(ABC): """Decide whether to run a callback.""" @abstractmethod def iscomputing(self, i): pass class Always(CallbackRunner): def isc...
32.164948
87
0.552244
cfdc3f92a20e73650154786cd5735a474d13819b
1,514
py
Python
test/test_blockchain_data_transaction_not_found.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
test/test_blockchain_data_transaction_not_found.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
null
null
null
test/test_blockchain_data_transaction_not_found.py
xan187/Crypto_APIs_2.0_SDK_Python
a56c75df54ef037b39be1315ed6e54de35bed55b
[ "MIT" ]
1
2021-07-21T03:35:18.000Z
2021-07-21T03:35:18.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
38.820513
484
0.785997
2b8fb34fb1210990eef456727ca22355623f7e64
2,671
py
Python
rivalcfg/udev.py
nixtux/rivalcfg
abe0dd650f6a592c539751cda9652319aea2c342
[ "WTFPL" ]
null
null
null
rivalcfg/udev.py
nixtux/rivalcfg
abe0dd650f6a592c539751cda9652319aea2c342
[ "WTFPL" ]
null
null
null
rivalcfg/udev.py
nixtux/rivalcfg
abe0dd650f6a592c539751cda9652319aea2c342
[ "WTFPL" ]
null
null
null
""" This modules handles udev-related stuff on Linux. It contains function to generate, check and update rules files. .. NOTE:: The functions of this module must only be used with udev-based Linux distro. """ import re import subprocess from .version import VERSION from .devices import PROFILES #: Path to the ...
31.423529
124
0.650693
fb4c7dc494f647778b9e74a8dffee751bc3f91e1
10,092
py
Python
docs/sphinx/conf.py
sdss/fibermeas
4d29ff58a14b025cf6320ab1caef5f4bcbba394b
[ "BSD-3-Clause" ]
null
null
null
docs/sphinx/conf.py
sdss/fibermeas
4d29ff58a14b025cf6320ab1caef5f4bcbba394b
[ "BSD-3-Clause" ]
null
null
null
docs/sphinx/conf.py
sdss/fibermeas
4d29ff58a14b025cf6320ab1caef5f4bcbba394b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented out # serve to show the default. import os f...
30.862385
84
0.651902
ae6148bd6e488c9d2aa4e2b20faad988d54fd8d0
14,514
py
Python
python/cudf/dataframe/index.py
cmgreen210/cudf
89462008c24a647de457ce595ab44c0c0d758450
[ "Apache-2.0" ]
null
null
null
python/cudf/dataframe/index.py
cmgreen210/cudf
89462008c24a647de457ce595ab44c0c0d758450
[ "Apache-2.0" ]
null
null
null
python/cudf/dataframe/index.py
cmgreen210/cudf
89462008c24a647de457ce595ab44c0c0d758450
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018, NVIDIA CORPORATION. from __future__ import print_function, division import pandas as pd import numpy as np import pickle from copy import deepcopy, copy from librmm_cffi import librmm as rmm from . import columnops from cudf.utils import cudautils, utils from .buffer import Buffer from .numeri...
29.560081
80
0.604864
354aed27aaf45f10dc8e31abd2d9dcc25cc404f7
1,960
py
Python
pytorch-frontend/caffe2/python/operator_test/margin_ranking_criterion_op_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
pytorch-frontend/caffe2/python/operator_test/margin_ranking_criterion_op_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
pytorch-frontend/caffe2/python/operator_test/margin_ranking_criterion_op_test.py
AndreasKaratzas/stonne
2915fcc46cc94196303d81abbd1d79a56d6dd4a9
[ "MIT" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.serialized_test_util as serial from hypothesis import...
36.296296
78
0.645408
1af64f9c6ef5279818e70fa94407c806945700c2
612
py
Python
CursoEmVideo/curso em video/ex69.py
elisio-ricardo/ExerciciosPythonCursoEmVideo
47a10b2118a76f4f95a762876ef9ab90e92f4fd3
[ "MIT" ]
null
null
null
CursoEmVideo/curso em video/ex69.py
elisio-ricardo/ExerciciosPythonCursoEmVideo
47a10b2118a76f4f95a762876ef9ab90e92f4fd3
[ "MIT" ]
null
null
null
CursoEmVideo/curso em video/ex69.py
elisio-ricardo/ExerciciosPythonCursoEmVideo
47a10b2118a76f4f95a762876ef9ab90e92f4fd3
[ "MIT" ]
null
null
null
tot18 = toth = totm20 = 0 while True: idade = int(input('Idade: ')) sexo = ' ' while sexo not in 'MF': sexo = str(input('SEXO: [M/F]')).strip().upper()[0] if idade >= 18: tot18 += 1 if sexo == 'M': toth += 1 if sexo == 'F' and idade < 20: totm20 += 1 resp = ' ...
29.142857
69
0.539216
c9c7161908c72fc0a6cd2d30f8ed32088b41f056
499
py
Python
setup.py
mmbosschaert/pydelay
99f0890b6f80a4e3362270dfb367b3042e35f97a
[ "MIT" ]
1
2019-07-10T02:26:37.000Z
2019-07-10T02:26:37.000Z
setup.py
mmbosschaert/pydelay
99f0890b6f80a4e3362270dfb367b3042e35f97a
[ "MIT" ]
null
null
null
setup.py
mmbosschaert/pydelay
99f0890b6f80a4e3362270dfb367b3042e35f97a
[ "MIT" ]
3
2017-07-20T15:30:06.000Z
2019-11-23T13:53:05.000Z
from distutils.core import setup setup(name='pydelay', version='0.1.99', author='Valentin Flunkert', author_email='flunkert@gmail.com', license='MIT', packages=['pydelay'], package_dir={'pydelay': 'pydelay'}, package_data={'pydelay': ['doc/pyplots/*', 'doc/sphinxext/...
26.263158
49
0.519038
7d8843f697a1227b72fc1383cf1b8a74a4d20122
5,108
py
Python
dev/Tools/build/waf-1.7.13/lmbrwaflib/third_party_sync.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
8
2019-10-07T16:33:47.000Z
2020-12-07T03:59:58.000Z
dev/Tools/build/waf-1.7.13/lmbrwaflib/third_party_sync.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
null
null
null
dev/Tools/build/waf-1.7.13/lmbrwaflib/third_party_sync.py
jeikabu/lumberyard
07228c605ce16cbf5aaa209a94a3cb9d6c1a4115
[ "AML" ]
5
2020-08-27T20:44:18.000Z
2021-08-21T22:54:11.000Z
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
48.647619
140
0.608066
5a2e94eb896d3867684309b7eda0b162851d13fc
1,301
py
Python
python/Flask/Quizz-App/app.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
1
2021-12-03T09:23:41.000Z
2021-12-03T09:23:41.000Z
python/Flask/Quizz-App/app.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
null
null
null
python/Flask/Quizz-App/app.py
kuwarkapur/Hacktoberfest-2022
efaafeba5ce51d8d2e2d94c6326cc20bff946f17
[ "MIT" ]
null
null
null
from flask import Flask,render_template,request from main import firebase from flask import redirect app = Flask(__name__) db=firebase.database() #Global Varible global i i=0 points=0 data=db.child('quizz').child('questions').get() @app.route('/') def hello_world(): try: global i q...
26.55102
135
0.583397
304257ff552a1e1ec8eeb6a109a15c6bd03991e0
794
py
Python
apps/comment/admin.py
Moingpony/my_izone
bfcf870fe306a0d9483cb2c6eb6587e711c41914
[ "MIT" ]
null
null
null
apps/comment/admin.py
Moingpony/my_izone
bfcf870fe306a0d9483cb2c6eb6587e711c41914
[ "MIT" ]
9
2020-03-24T17:00:12.000Z
2022-03-11T23:44:52.000Z
apps/comment/admin.py
Moingpony/my_izone
bfcf870fe306a0d9483cb2c6eb6587e711c41914
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import ArticleComment, Notification @admin.register(ArticleComment) class CommentAdmin(admin.ModelAdmin): date_hierarchy = 'create_date' list_display = ('id', 'author', 'belong', 'create_date', 'show_content') list_filter = ('author', 'belong',) o...
30.538462
77
0.677582
cd8957fb41da3c0954c677428aed33063f9954cd
678
py
Python
Projetos/Ex9.py
rharcosta/python-projects
bafe6b2f7ebfd9591cff37a4d2936da210b804f5
[ "MIT" ]
null
null
null
Projetos/Ex9.py
rharcosta/python-projects
bafe6b2f7ebfd9591cff37a4d2936da210b804f5
[ "MIT" ]
null
null
null
Projetos/Ex9.py
rharcosta/python-projects
bafe6b2f7ebfd9591cff37a4d2936da210b804f5
[ "MIT" ]
null
null
null
import numpy as np #Ler duas listas e gerar uma terceira sem elementos repetidos lista1 = [] lista2 = [] lista3 = [] print() elementos = int(input('Quantos elementos você quer na listas? ')) for i in range (1, elementos + 1): valor = int(input('Digite o {} valor para ser inserido na primeira lista: '.format(i))) ...
33.9
91
0.654867
47e4425d3473d73ce9452268a4c4bcac2d25de5a
1,251
py
Python
tests/functional/regressions/issue228/b_module.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
530
2019-06-04T11:45:36.000Z
2022-03-31T09:29:56.000Z
tests/functional/regressions/issue228/b_module.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
242
2019-06-04T11:53:08.000Z
2022-03-28T07:06:27.000Z
tests/functional/regressions/issue228/b_module.py
matt-koevort/tartiflette
5777866b133d846ce4f8aa03f735fa81832896cd
[ "MIT" ]
36
2019-06-21T06:40:27.000Z
2021-11-04T13:11:16.000Z
from typing import Any, Callable, Dict, Optional from tartiflette import Directive, Resolver, Scalar _SDL = """ scalar NinjaGo directive @Blah on FIELD_DEFINITION type Lol { ninja: NinjaGo @Blah } """ class BlahDir: def __init__(self, config): self._blah_value = config["val"] async def on_fie...
21.20339
73
0.633094
872507cb69d1ed7e0fc40038305ebddd4e50209c
121
py
Python
loadbar/__init__.py
ValentinVignal/LoadBar
aa951f4d123995adbf115c1f2a3555a7f11a2b56
[ "MIT" ]
5
2020-05-27T09:23:15.000Z
2022-03-24T16:16:01.000Z
loadbar/__init__.py
ValentinVignal/LoadBar
aa951f4d123995adbf115c1f2a3555a7f11a2b56
[ "MIT" ]
null
null
null
loadbar/__init__.py
ValentinVignal/LoadBar
aa951f4d123995adbf115c1f2a3555a7f11a2b56
[ "MIT" ]
null
null
null
from .LoadBar import LoadBar from .ColorBar import ColorBar from .Colors import Colors from .RainbowBar import RainbowBar
30.25
34
0.842975