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
3cff3d09b870d5c2bac05f80b09107eef8a94a5d
2,361
py
Python
tests/test_exception_handler.py
rosealexander/subreddit-scraper
34a653ae2bebf0f0409a1b5cd1304e8c42983d2e
[ "MIT" ]
null
null
null
tests/test_exception_handler.py
rosealexander/subreddit-scraper
34a653ae2bebf0f0409a1b5cd1304e8c42983d2e
[ "MIT" ]
null
null
null
tests/test_exception_handler.py
rosealexander/subreddit-scraper
34a653ae2bebf0f0409a1b5cd1304e8c42983d2e
[ "MIT" ]
null
null
null
import asyncio import unittest from subredditscraper.observer import Observer from subredditscraper.exception_handler import exception_handler from subredditscraper.signal_handler import signal_handler class ConcreteObserver(Observer): def __init__(self, error_delay, error_limit, ex): super().__init__() ...
31.905405
86
0.668361
5ac67e1b0422edd162b317ee9bcf82e6e7fa59cb
11,595
py
Python
det3d/datasets/utils/kitti_object_eval_python/rotate_iou.py
PatrickChoDev/CSA-3D
34aa87194d653a93f16834d485738255f55112f0
[ "Apache-2.0" ]
1,318
2019-09-13T06:57:32.000Z
2022-03-31T07:01:21.000Z
det3d/datasets/utils/kitti_object_eval_python/rotate_iou.py
PatrickChoDev/CSA-3D
34aa87194d653a93f16834d485738255f55112f0
[ "Apache-2.0" ]
142
2019-09-26T04:25:57.000Z
2022-03-29T17:21:03.000Z
det3d/datasets/utils/kitti_object_eval_python/rotate_iou.py
PatrickChoDev/CSA-3D
34aa87194d653a93f16834d485738255f55112f0
[ "Apache-2.0" ]
309
2019-09-21T09:21:38.000Z
2022-03-31T02:06:56.000Z
##################### # Based on https://github.com/hongzhenwang/RRPN-revise # Licensed under The MIT License # Author: yanyan, scrin@foxmail.com ##################### import math import numba import numpy as np from numba import cuda @numba.jit(nopython=True) def div_up(m, n): return m // n + (m % n > 0) @cud...
33.903509
86
0.551013
f6039838dbea12fa3bff28f7876128ce79aa80f8
25,102
py
Python
qiskit/aqua/algorithms/classifiers/qsvm/qsvm.py
pat-phattharaporn/qiskit-aqua
fb7f24d45769ed5152e589b0f9d84ea90618d052
[ "Apache-2.0" ]
15
2020-06-29T08:33:39.000Z
2022-02-12T00:28:51.000Z
qiskit/aqua/algorithms/classifiers/qsvm/qsvm.py
pat-phattharaporn/qiskit-aqua
fb7f24d45769ed5152e589b0f9d84ea90618d052
[ "Apache-2.0" ]
4
2020-11-27T09:34:13.000Z
2021-04-30T21:13:41.000Z
qiskit/aqua/algorithms/classifiers/qsvm/qsvm.py
pat-phattharaporn/qiskit-aqua
fb7f24d45769ed5152e589b0f9d84ea90618d052
[ "Apache-2.0" ]
11
2020-06-29T08:40:24.000Z
2022-02-24T17:39:16.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # 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 modifications or derivat...
45.974359
100
0.618755
14bf3a6f1cc2293fcf99ea9edf0def50aa14ce8f
2,100
py
Python
oo01/animali3.py
PythonBiellaGroup/LearningPythonWithGames
4dbcff5b55f7f19d09127c7ef7dd04791d9cad96
[ "MIT" ]
2
2021-03-20T14:54:00.000Z
2021-06-16T19:10:52.000Z
oo01/animali3.py
PythonBiellaGroup/LearningPythonWithGames
4dbcff5b55f7f19d09127c7ef7dd04791d9cad96
[ "MIT" ]
null
null
null
oo01/animali3.py
PythonBiellaGroup/LearningPythonWithGames
4dbcff5b55f7f19d09127c7ef7dd04791d9cad96
[ "MIT" ]
null
null
null
import pgzrun import random, math, time WIDTH = 800 HEIGHT = 600 TITLE = "Animali (simulazione)" class Animale(Actor): tutti = [] def __init__(self, img): super(Animale, self).__init__(img) self.x = random.randint(WIDTH*1/5, WIDTH*4/5) self.y = random.randint(HEIGHT*1/5, HEIGHT*4/5) ...
23.333333
72
0.580476
e83b6983caa2696f5310f22bdc26c86e81c9dd3c
808
py
Python
ApiSrc/apiTest.py
Liangchengdeye/IPProxiesPool
0de3fc636901b8a2f794e7be4183662edd3d5886
[ "Apache-2.0" ]
1
2019-02-22T02:03:27.000Z
2019-02-22T02:03:27.000Z
ApiSrc/apiTest.py
Liangchengdeye/IPProxiesPool
0de3fc636901b8a2f794e7be4183662edd3d5886
[ "Apache-2.0" ]
null
null
null
ApiSrc/apiTest.py
Liangchengdeye/IPProxiesPool
0de3fc636901b8a2f794e7be4183662edd3d5886
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ @version: v1.0 @author: W_H_J @license: Apache Licence @contact: 415900617@qq.com @software: PyCharm @file: apiTest.py @time: 2019/2/14 16:58 @describe: API 测试 """ import sys import os import requests sys.path.append(os.path.abspath(os.path.dirname(__file__) + ...
17.565217
72
0.639851
b125a02c5317d03f4f45b2ba978628217d9117d7
2,017
py
Python
tensorflow/python/ops/quantemu_ops.py
Dimitri1/tensorflow
f6abc3f094b27385a5e0c18ac3edd646d022890b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/quantemu_ops.py
Dimitri1/tensorflow
f6abc3f094b27385a5e0c18ac3edd646d022890b
[ "Apache-2.0" ]
null
null
null
tensorflow/python/ops/quantemu_ops.py
Dimitri1/tensorflow
f6abc3f094b27385a5e0c18ac3edd646d022890b
[ "Apache-2.0" ]
1
2020-09-09T11:26:56.000Z
2020-09-09T11:26:56.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys import numpy as np import tensorflow as tf import os from tensorflow.python.eager import context from tensorflow.python.framework import common_shapes from tensorflow.python.framework import consta...
32.015873
144
0.746653
50c24c94cf38daf85ebceaadc59eefe8f7de9bff
223
py
Python
src/conf/settings.py
roselino-quatro/NyahBotPublic
9d3cf69693336cae45c1eb82a4df4ef569b4cc19
[ "MIT" ]
4
2020-08-07T04:06:23.000Z
2020-08-07T22:00:46.000Z
src/conf/settings.py
roselino-quatro/NyahBotPublic
9d3cf69693336cae45c1eb82a4df4ef569b4cc19
[ "MIT" ]
1
2020-10-21T02:20:10.000Z
2020-10-21T02:20:10.000Z
src/conf/settings.py
roselino-quatro/NyahBotPublic
9d3cf69693336cae45c1eb82a4df4ef569b4cc19
[ "MIT" ]
1
2020-10-21T01:44:55.000Z
2020-10-21T01:44:55.000Z
# Pega as constantes do arquivo .env import os from dotenv import load_dotenv load_dotenv() TELEGRAM_TOKEN=os.getenv("TELEGRAM_TOKEN") WIKIART_TOKEN=os.getenv("WIKIART_TOKEN") WIKIART_SECRET=os.getenv("WIKIART_SECRET")
20.272727
42
0.807175
85694589b300157300cadcf09c7c118348d299fd
10,471
py
Python
spiketoolkit/validation/quality_metric_classes/utils/curationsortingextractor.py
llobetv/spiketoolkit
51f35be4811638f786d4e2586bcb9cd444e2642f
[ "MIT" ]
null
null
null
spiketoolkit/validation/quality_metric_classes/utils/curationsortingextractor.py
llobetv/spiketoolkit
51f35be4811638f786d4e2586bcb9cd444e2642f
[ "MIT" ]
null
null
null
spiketoolkit/validation/quality_metric_classes/utils/curationsortingextractor.py
llobetv/spiketoolkit
51f35be4811638f786d4e2586bcb9cd444e2642f
[ "MIT" ]
null
null
null
from spikeextractors import SortingExtractor import numpy as np # A Sorting Extractor that allows for manual curation of a sorting result (Represents curation as a tree of units) class CurationSortingExtractor(SortingExtractor): def __init__(self, parent_sorting): SortingExtractor.__init__(self) ...
39.813688
133
0.615414
d4b883e77a349bc0a362de327a4cc6857a14ab25
2,127
py
Python
cnn_quantization/tf_cnn_benchmarks/constants.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-19T04:26:12.000Z
2022-03-19T04:26:12.000Z
cnn_quantization/tf_cnn_benchmarks/constants.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
cnn_quantization/tf_cnn_benchmarks/constants.py
gunpowder78/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
30.826087
79
0.67701
fed2fe62b2bc9dea0a8f244ee764bf1c5a3bf5c9
8,005
py
Python
alad/sonyf_utilities.py
ylws702/Adversarially-Learned-Anomaly-Detection
b83c3cd80b7caa5a7cb97914fc82837679bd6e29
[ "MIT" ]
null
null
null
alad/sonyf_utilities.py
ylws702/Adversarially-Learned-Anomaly-Detection
b83c3cd80b7caa5a7cb97914fc82837679bd6e29
[ "MIT" ]
null
null
null
alad/sonyf_utilities.py
ylws702/Adversarially-Learned-Anomaly-Detection
b83c3cd80b7caa5a7cb97914fc82837679bd6e29
[ "MIT" ]
null
null
null
""" KDD ALAD architecture. Generator (decoder), encoder and discriminator. """ import tensorflow as tf from utils import sn learning_rate = 1e-7 batch_size = 20 latent_dim = 32 init_kernel = tf.contrib.layers.xavier_initializer() def leakyReLu(x, alpha=0.2, name=None): if name: with tf.variable_scope(n...
34.356223
88
0.561274
8b60a65916418f4a904412aa172c5345a9d13166
289
py
Python
programs/urls.py
cclauss/Workout-progress-tracker
d9613fb9333496455107bb066395066bd9f2018c
[ "MIT" ]
null
null
null
programs/urls.py
cclauss/Workout-progress-tracker
d9613fb9333496455107bb066395066bd9f2018c
[ "MIT" ]
null
null
null
programs/urls.py
cclauss/Workout-progress-tracker
d9613fb9333496455107bb066395066bd9f2018c
[ "MIT" ]
null
null
null
from django.urls import path, re_path, include from .views import WorkoutDayCreateView, WorkoutSessionCreateView app_name="programs" urlpatterns = [ path("day/", WorkoutDayCreateView.as_view(), name="day"), path("session/", WorkoutSessionCreateView.as_view(), name="session"), ]
32.111111
74
0.754325
d985984bc3b4bf5db23699182dab491bf55c2ec4
1,074
py
Python
openmdao/test_suite/tests/test_quad_implicit.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
2
2015-11-28T20:25:59.000Z
2017-02-14T09:14:19.000Z
openmdao/test_suite/tests/test_quad_implicit.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
1
2020-07-20T16:19:35.000Z
2020-07-20T16:19:35.000Z
openmdao/test_suite/tests/test_quad_implicit.py
toddrme2178/OpenMDAO
379cc6216d13d380e11cb3a46f03960981de4660
[ "Apache-2.0" ]
1
2015-11-29T22:09:58.000Z
2015-11-29T22:09:58.000Z
import unittest import numpy as np import openmdao.api as om from openmdao.test_suite.components.quad_implicit import QuadraticComp class TestQuadImplicit(unittest.TestCase): def test_check_partials_for_docs(self): import openmdao.api as om from openmdao.test_suite.components.quad_implicit i...
22.375
78
0.594041
335ff4b7b70b31cca6a8e9592160780f9d9d8045
6,232
py
Python
app/db/models.py
blubits/lakbay
acb242377f528953536cfca3e4920833a4c8bf6c
[ "Apache-2.0" ]
null
null
null
app/db/models.py
blubits/lakbay
acb242377f528953536cfca3e4920833a4c8bf6c
[ "Apache-2.0" ]
null
null
null
app/db/models.py
blubits/lakbay
acb242377f528953536cfca3e4920833a4c8bf6c
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import Boolean from sqlalchemy import Column from sqlalchemy import Float from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Time from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship ...
33.326203
78
0.581194
f1f9cd7c3ee6cf3435ec23b3ff2f978d0bc73650
130
py
Python
runner/action/set/variable.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/set/variable.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
runner/action/set/variable.py
PC-Trip/runner
e13291e25a2bc2962523a1de2d13725609497cb5
[ "MIT" ]
null
null
null
from runner.action.set.set import Set class Variable(Set): def __init__(self, **kwargs): super().__init__(**kwargs)
18.571429
37
0.669231
38d8890bd3994e3aae037e8f1ff981c94ca50bdb
534
py
Python
imageprocessor.py
MikeSalmela/DonkeyDFP
062311e6cc7f06362e4ae42a0b2534c400ab0eb0
[ "MIT" ]
null
null
null
imageprocessor.py
MikeSalmela/DonkeyDFP
062311e6cc7f06362e4ae42a0b2534c400ab0eb0
[ "MIT" ]
null
null
null
imageprocessor.py
MikeSalmela/DonkeyDFP
062311e6cc7f06362e4ae42a0b2534c400ab0eb0
[ "MIT" ]
null
null
null
import numpy as np import cv2 import functions as f d_size = (128,48) def normalize(img): return f.normalize(img) def reshape(image): image = f.splitImage(image) image = cv2.resize(image, d_size, interpolation=cv2.INTER_CUBIC) return f.normalize(image) def bw(image): image = splitImage(image) ...
23.217391
74
0.70412
6afa2ad0102eef2401dd4415331c657559ac6ea4
635
py
Python
abstract-user-example/users/migrations/0002_auto_20210512_2102.py
gzdlmn/django-custom-user-model
bca951b5147fbd7731d8b8c9f3a43f6ba17c3d8e
[ "MIT" ]
84
2019-02-07T19:37:17.000Z
2022-03-30T14:52:13.000Z
abstract-user-example/users/migrations/0002_auto_20210512_2102.py
gzdlmn/django-custom-user-model
bca951b5147fbd7731d8b8c9f3a43f6ba17c3d8e
[ "MIT" ]
5
2019-03-22T22:44:38.000Z
2020-03-12T12:26:48.000Z
abstract-user-example/users/migrations/0002_auto_20210512_2102.py
gzdlmn/django-custom-user-model
bca951b5147fbd7731d8b8c9f3a43f6ba17c3d8e
[ "MIT" ]
49
2019-02-14T19:49:59.000Z
2022-02-23T22:52:29.000Z
# Generated by Django 3.2.2 on 2021-05-12 21:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='customuser', name='first_name', ...
26.458333
111
0.606299
a1b8a13b910fa3f9af45aecd20683d17e3038356
908
py
Python
nnef_tools/io/tensorflow/tflite_fb/LessEqualOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/LessEqualOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
nnef_tools/io/tensorflow/tflite_fb/LessEqualOptions.py
rgiduthuri/NNEF-Tools
8a9971f897fb5a110dd254e0c20077213f257700
[ "Apache-2.0" ]
null
null
null
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite_fb import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class LessEqualOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAsLessEqualOptions(cls, buf, offset): n = fl...
31.310345
114
0.732379
c92e43b03ce5dde2f8a10b99d055c34088fe8061
1,087
py
Python
scraper/scraper/settings.py
anjaligr05/place2live
c2f723984c7030582d342b9381f1dbfd8469174b
[ "MIT" ]
30
2019-07-15T21:37:23.000Z
2022-01-05T14:09:30.000Z
scraper/scraper/settings.py
anjaligr05/place2live
c2f723984c7030582d342b9381f1dbfd8469174b
[ "MIT" ]
204
2019-07-16T18:33:27.000Z
2022-03-02T14:58:27.000Z
scraper/scraper/settings.py
anjaligr05/place2live
c2f723984c7030582d342b9381f1dbfd8469174b
[ "MIT" ]
58
2019-07-15T21:47:37.000Z
2021-01-07T11:06:30.000Z
# -*- coding: utf-8 -*- # Scrapy settings for scraper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topi...
32.939394
80
0.75713
c92775f48da3ad2baf2bf3a0b78dd83b57076251
702
py
Python
kasadc/__init__.py
SENERGY-Platform/mgw-kasa-dc
cc0546ee435706fab2f573ec574c2c24e8d62a20
[ "Apache-2.0" ]
null
null
null
kasadc/__init__.py
SENERGY-Platform/mgw-kasa-dc
cc0546ee435706fab2f573ec574c2c24e8d62a20
[ "Apache-2.0" ]
null
null
null
kasadc/__init__.py
SENERGY-Platform/mgw-kasa-dc
cc0546ee435706fab2f573ec574c2c24e8d62a20
[ "Apache-2.0" ]
null
null
null
""" Copyright 2021 InfAI (CC SES) 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...
28.08
75
0.729345
3b1d398f4bb6303cbb2b404c4ce60343bbf190f7
5,445
py
Python
stanCode_Projects/pedestrian_removing_application/stanCodoshop.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/pedestrian_removing_application/stanCodoshop.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
stanCode_Projects/pedestrian_removing_application/stanCodoshop.py
wilson51678/sc-projects
a4b9a0c542449372181f6bd20d4ad81b87bfcb46
[ "MIT" ]
null
null
null
""" SC101 - Assignment3 Adapted from Nick Parlante's Ghost assignment by Jerry Liao. file:stanCodoshop.py Name: Wilson Wang ----------------------------------------------- This program help users to create a photo without humans. The program concept is using multiple images, which took at same scene to get best pixel...
27.923077
117
0.620937
440f297989989426d1ed36902c1f4752581c35a7
352
py
Python
tests/test_widgets/test_base.py
toasterco/apiaiassistant
7f3f0693c4c5aa9f1fd4486f85ebe05080505dc8
[ "MIT" ]
6
2017-08-10T16:08:03.000Z
2018-08-03T23:36:20.000Z
tests/test_widgets/test_base.py
toasterco/apiaiassistant
7f3f0693c4c5aa9f1fd4486f85ebe05080505dc8
[ "MIT" ]
1
2018-03-23T14:12:36.000Z
2018-03-23T15:40:33.000Z
tests/test_widgets/test_base.py
toasterco/apiaiassistant
7f3f0693c4c5aa9f1fd4486f85ebe05080505dc8
[ "MIT" ]
null
null
null
import unittest from apiai_assistant.widgets import GoogleAssistantWidget class GoogleAssistantWidgetTestCase(unittest.TestCase): def test_basic(self): w = GoogleAssistantWidget() self.assertEqual(w.platform, 'google') self.assertEqual(w.render(), {'platform': 'google'}) if __name__ == ...
23.466667
60
0.715909
dc3ad57e11f83331c7036254533eede880a65b04
5,381
py
Python
tests/components/wilight/test_fan.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/wilight/test_fan.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/wilight/test_fan.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the WiLight integration.""" from unittest.mock import patch import pytest import pywilight from homeassistant.components.fan import ( ATTR_DIRECTION, ATTR_PERCENTAGE, DIRECTION_FORWARD, DIRECTION_REVERSE, DOMAIN as FAN_DOMAIN, SERVICE_SET_DIRECTION, SERVICE_SET_PERCENTAGE, ) f...
26.24878
84
0.695596
070c39bdd270aa6fbf197ab9b0f13bc2f9efec6c
8,412
py
Python
ags_experiments/cogs/fun.py
Valerokai/discord_message_analytics
115f89edee5a86b3ee5dc7c1329a4ccb990e7b83
[ "MIT" ]
2
2018-05-17T20:14:33.000Z
2018-05-25T16:54:56.000Z
ags_experiments/cogs/fun.py
Valerokai/discord_message_analytics
115f89edee5a86b3ee5dc7c1329a4ccb990e7b83
[ "MIT" ]
12
2018-05-18T11:39:52.000Z
2018-09-20T13:48:31.000Z
ags_experiments/cogs/fun.py
Valerokai/discord_message_analytics
115f89edee5a86b3ee5dc7c1329a4ccb990e7b83
[ "MIT" ]
4
2019-03-02T00:14:01.000Z
2019-08-31T19:48:18.000Z
from discord.ext import commands from discord import Embed from ags_experiments.checks import is_owner_or_admin from ags_experiments.settings.config import strings, config from random import randint from ags_experiments.colours import green, red, yellow import discord.errors import json import concurrent class WordLis...
44.273684
222
0.593913
e3103d6a94fce9541fdb11944042647d9ba7e1f7
15,495
py
Python
pysb/bng.py
neurord/pysb
8d9074d8182a2883525ef024e66917a4de7f7894
[ "BSD-2-Clause" ]
null
null
null
pysb/bng.py
neurord/pysb
8d9074d8182a2883525ef024e66917a4de7f7894
[ "BSD-2-Clause" ]
null
null
null
pysb/bng.py
neurord/pysb
8d9074d8182a2883525ef024e66917a4de7f7894
[ "BSD-2-Clause" ]
null
null
null
import pysb.core from pysb.generator.bng import BngGenerator import os import subprocess import random import re import itertools import sympy import numpy from StringIO import StringIO # Cached value of BNG path _bng_path = None def _get_bng_path(): """ Return the path to BioNetGen's BNG2.pl. Looks fo...
37.069378
116
0.59516
1dd5024e9b708b091f7084b1ec81bd5db32e4083
10,305
py
Python
variance-networks-tf/scripts/vgglike/vgglike-do.py
AlliedToasters/elko_den
4e69f7f5c0dc7ffad54c7e190a2b75aba2eab7d2
[ "Apache-2.0" ]
38
2018-07-14T23:09:27.000Z
2021-11-30T08:26:56.000Z
variance-networks-tf/scripts/vgglike/vgglike-do.py
AlliedToasters/elko_den
4e69f7f5c0dc7ffad54c7e190a2b75aba2eab7d2
[ "Apache-2.0" ]
1
2019-06-19T07:42:58.000Z
2019-06-19T07:42:58.000Z
variance-networks-tf/scripts/vgglike/vgglike-do.py
AlliedToasters/elko_den
4e69f7f5c0dc7ffad54c7e190a2b75aba2eab7d2
[ "Apache-2.0" ]
7
2018-07-15T15:16:59.000Z
2020-04-10T09:21:41.000Z
import os import sys import time import numpy as np import tensorflow as tf if 'SOURCE_CODE_PATH' in os.environ: sys.path.append(os.environ['SOURCE_CODE_PATH']) else: sys.path.append(os.getcwd()) from data import reader from nets import layers, metrics, policies, utils tf.app.flags.DEFINE_string('dataset',...
53.95288
144
0.631829
0d649c8c656fd17687081337217156b1eb6ea47e
123
py
Python
project/leads/urls.py
MikhailMamonov/endo_rec
136da5270b62c2593bbf178e93ba8bc84d12a78b
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
project/leads/urls.py
justyn-clark/django-react-rest-api
14c798031dba590b5a066b38ccf9ce666db543af
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
project/leads/urls.py
justyn-clark/django-react-rest-api
14c798031dba590b5a066b38ccf9ce666db543af
[ "MIT" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
from django.urls import path from . import views urlpatterns = [ path('api/lead/', views.LeadListCreate.as_view() ), ]
20.5
55
0.707317
01ee3d11da00f794a811675a98643536b79dfd05
351
py
Python
kid_readout/__init__.py
danielflanigan/kid_readout
07202090d468669200cab78297122880c1c03e87
[ "BSD-2-Clause" ]
null
null
null
kid_readout/__init__.py
danielflanigan/kid_readout
07202090d468669200cab78297122880c1c03e87
[ "BSD-2-Clause" ]
null
null
null
kid_readout/__init__.py
danielflanigan/kid_readout
07202090d468669200cab78297122880c1c03e87
[ "BSD-2-Clause" ]
null
null
null
""" Top level documentation test """ import logging # Follow recommendation in the Python logging HOWTO: make sure there is a handler to avoid "No handlers found" # error messages. Don't add any other handlers; that's up to the user application (i.e. data taking or analysis scripts) logging.getLogger(__name__).addHa...
31.909091
120
0.769231
a08849d19916aeff4e361ab1543ed57a11d21fa3
424
py
Python
auctionbot/users/migrations/0010_auto_20180327_1723.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
null
null
null
auctionbot/users/migrations/0010_auto_20180327_1723.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
13
2019-12-12T03:07:55.000Z
2022-03-07T12:59:27.000Z
auctionbot/users/migrations/0010_auto_20180327_1723.py
netvigator/auctions
f88bcce800b60083a5d1a6f272c51bb540b8342a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-27 10:23 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0009_user_ztimezone'), ] operations = [ migrations.RenameField( ...
20.190476
46
0.603774
22f225eaa042efdd6f26e2d4ebd21f53a20800c3
17,930
py
Python
tests/AddressArrayTest.py
liweichengcode/SM-client-sdk-python
46ac9f86f2f4f67ca7cae9b2b454bd63d4ecd84b
[ "MIT" ]
null
null
null
tests/AddressArrayTest.py
liweichengcode/SM-client-sdk-python
46ac9f86f2f4f67ca7cae9b2b454bd63d4ecd84b
[ "MIT" ]
null
null
null
tests/AddressArrayTest.py
liweichengcode/SM-client-sdk-python
46ac9f86f2f4f67ca7cae9b2b454bd63d4ecd84b
[ "MIT" ]
null
null
null
from client_sdk_python import Web3,HTTPProvider from client_sdk_python.eth import PlatONE from client_sdk_python.packages.platone_keys.utils.address import MIANNETHRP,TESTNETHRP # Solidity source code # contract_source_code = ''' # pragma solidity ^0.5.0; # # contract Payable { # //获取地址的余额 # function getBalan...
157.280702
3,929
0.827552
e2ea79159eeaa14ef105b2a90100e83cb754b5a2
43,239
py
Python
core/src/autogluon/core/scheduler/hyperband.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
4,462
2019-12-09T17:41:07.000Z
2022-03-31T22:00:41.000Z
core/src/autogluon/core/scheduler/hyperband.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
1,408
2019-12-09T17:48:59.000Z
2022-03-31T20:24:12.000Z
core/src/autogluon/core/scheduler/hyperband.py
zhiqiangdon/autogluon
71ee7ef0f05d8f0aad112d8c1719174aa33194d9
[ "Apache-2.0" ]
623
2019-12-10T02:04:18.000Z
2022-03-20T17:11:01.000Z
import pickle import logging import numpy as np import multiprocessing as mp import os import copy from .fifo import FIFOScheduler from .hyperband_stopping import StoppingRungSystem from .hyperband_promotion import PromotionRungSystem from ..utils import load from ..utils.default_arguments import check_and_merge_defau...
45.419118
166
0.625593
846fe5c4490cd48cc8cc88e1eba70dac599d8e07
131
py
Python
rpython/rlib/rvmprof/test/__init__.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
333
2015-08-08T18:03:38.000Z
2022-03-22T18:13:12.000Z
rpython/rlib/rvmprof/test/__init__.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
7
2020-02-16T16:49:05.000Z
2021-11-26T09:00:56.000Z
rpython/rlib/rvmprof/test/__init__.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
import pytest import platform if not (platform.machine().startswith('x86') or platform.machine() == 'aarch64'): pytest.skip()
21.833333
81
0.709924
6a680e833216175fddaf72b2c31bf84d639edea2
10,681
py
Python
anyex/async/bitstamp1.py
ttwishing/anyex
cfd1f2f04ab992b790add4843aafff91e5773cbf
[ "MIT" ]
null
null
null
anyex/async/bitstamp1.py
ttwishing/anyex
cfd1f2f04ab992b790add4843aafff91e5773cbf
[ "MIT" ]
null
null
null
anyex/async/bitstamp1.py
ttwishing/anyex
cfd1f2f04ab992b790add4843aafff91e5773cbf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/anyex/anyex/blob/master/CONTRIBUTING.md#how-to-contribute-code from anyex.async.base.exchange import Exchange from anyex.base.errors import ExchangeError from anyex.base.errors import NotSupported c...
43.954733
137
0.510439
1f4c74d7b321d0ebc1c281cccae709c01a5cd549
1,534
py
Python
hintedorm/utils.py
gustcorrea/hintedorm
035f23eaa2e7293aef6f2a82c7675edbd0153701
[ "Apache-2.0" ]
null
null
null
hintedorm/utils.py
gustcorrea/hintedorm
035f23eaa2e7293aef6f2a82c7675edbd0153701
[ "Apache-2.0" ]
1
2022-01-25T17:37:58.000Z
2022-01-25T17:37:58.000Z
hintedorm/utils.py
gustcorrea/hintedorm
035f23eaa2e7293aef6f2a82c7675edbd0153701
[ "Apache-2.0" ]
null
null
null
from datetime import ( date, datetime ) from enum import Enum from typing import ( NewType, Optional, TypeVar, get_args, get_origin ) T = TypeVar("T") Text = NewType("Text", str) ALLOWED_TYPES = [str, Text, int, float, bool, datetime, date] DEFAULT_MAX_STR_LEN = 100 class DBService(str...
19.417722
74
0.617992
3d0af138e8d363c169a949f6c2375823373a7bfc
32,693
py
Python
volttron/platform/agent/base_aggregate_historian.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/agent/base_aggregate_historian.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/agent/base_aggregate_historian.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2017, Battelle Memorial Institute. # # 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...
46.046479
110
0.550362
19f477f8014f44998c11f2f0fb96ccf7c277d3cb
654
py
Python
references/models.py
varianks/django_patronus3
3369d02b75b017af3f14f5ee45b292b39b5782c2
[ "MIT" ]
null
null
null
references/models.py
varianks/django_patronus3
3369d02b75b017af3f14f5ee45b292b39b5782c2
[ "MIT" ]
9
2021-03-30T13:37:06.000Z
2022-03-12T00:35:25.000Z
references/models.py
varianks/django_patronus3
3369d02b75b017af3f14f5ee45b292b39b5782c2
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User class Reference(models.Model): title = models.CharField(max_length = 250) description = models.CharField(max_length = 250) link = models.URLField(max_length=200) author = models.ForeignKey(User, ...
32.7
61
0.674312
25d8a247ccfcc309dd1fa9e7cab2cc9eb1d48e81
22,451
py
Python
src/transformers/models/roberta/modeling_flax_roberta.py
reichang182/Transformer
301536b15f1e757c51411800c25876617e9f1191
[ "Apache-2.0" ]
34
2021-07-05T02:44:31.000Z
2022-03-28T14:39:57.000Z
src/transformers/models/roberta/modeling_flax_roberta.py
slavetothebiologicalforce/transformers
6f90c29eaaba898919b7689ab7e2cfce1604cdb8
[ "Apache-2.0" ]
3
2021-07-22T15:49:44.000Z
2022-03-19T08:46:27.000Z
src/transformers/models/roberta/modeling_flax_roberta.py
slavetothebiologicalforce/transformers
6f90c29eaaba898919b7689ab7e2cfce1604cdb8
[ "Apache-2.0" ]
6
2021-07-05T02:44:32.000Z
2022-02-14T10:10:13.000Z
# coding=utf-8 # Copyright 2018 The Google Flax Team Authors and The HuggingFace Inc. 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 ...
41.270221
153
0.694
05d917a5548c9cd6abc9a342bd09490462066d6a
2,210
py
Python
src/Discovery/SentimentClassifierFactory.py
AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis
b5a81f5d23419789a027403b4d72d53ed760e091
[ "Apache-2.0" ]
3
2019-04-03T21:47:30.000Z
2020-01-06T16:13:29.000Z
src/Discovery/SentimentClassifierFactory.py
AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis
b5a81f5d23419789a027403b4d72d53ed760e091
[ "Apache-2.0" ]
null
null
null
src/Discovery/SentimentClassifierFactory.py
AndMu/Unsupervised-Domain-Specific-Sentiment-Analysis
b5a81f5d23419789a027403b4d72d53ed760e091
[ "Apache-2.0" ]
null
null
null
import abc import numpy as np from Discovery.SentimentTable import SentimentTable from Discovery import logger class WordVectorConstructor(object): def __init__(self, vector): self.vector = vector def get_vectors(self, words): selected_words = [item for item in words if item in self.vector....
33.484848
112
0.613575
92f29aca0f3e308da1e4e784f2f586e1a76c4df6
3,649
py
Python
mars/services/cluster/tests/test_api.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
1
2021-06-10T02:43:01.000Z
2021-06-10T02:43:01.000Z
mars/services/cluster/tests/test_api.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
mars/services/cluster/tests/test_api.py
JeffroMF/mars
2805241ac55b50c4f6319baa41113fbf8c723832
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding Ltd. # # 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 a...
35.77451
93
0.724856
f6ca01e61bf9e1e3eb92ef0b951ba372e0c09598
1,521
py
Python
datalab/utils/_gcp_job.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
198
2016-07-14T19:47:52.000Z
2022-03-15T08:45:21.000Z
datalab/utils/_gcp_job.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
534
2016-07-15T19:12:43.000Z
2022-03-11T23:11:39.000Z
datalab/utils/_gcp_job.py
freyrsae/pydatalab
9aba1ac6bbe8e1384e7a4b07c5042af84348797d
[ "Apache-2.0" ]
86
2016-07-13T17:39:05.000Z
2021-11-03T03:39:41.000Z
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
33.8
99
0.73307
0347527551c4222ccb1611ab19abc5262b3a4822
714
py
Python
AFSD/anet/eval.py
Cogito2012/OpenTAL
a7ab938a52b3fb82163eb1ba5403888359eb7e6a
[ "BSD-3-Clause" ]
16
2022-03-11T15:01:13.000Z
2022-03-31T02:50:26.000Z
AFSD/anet/eval.py
Cogito2012/OpenTAL
a7ab938a52b3fb82163eb1ba5403888359eb7e6a
[ "BSD-3-Clause" ]
null
null
null
AFSD/anet/eval.py
Cogito2012/OpenTAL
a7ab938a52b3fb82163eb1ba5403888359eb7e6a
[ "BSD-3-Clause" ]
null
null
null
import argparse import numpy as np from AFSD.evaluation.eval_detection import ANETdetection parser = argparse.ArgumentParser() parser.add_argument('output_json', type=str) parser.add_argument('gt_json', type=str, default='datasets/activitynet/annotations/activity_net_1_3_new.json', nargs='?') args ...
35.7
100
0.743697
d1926f55023a1ced47872f71de51f5b39f3a4ceb
456
py
Python
examples/aup2wav.py
goiosunsw/audacity.py
899fa99e11e0345f95a563ea3c72b0d98f84e646
[ "MIT" ]
1
2018-01-05T02:06:04.000Z
2018-01-05T02:06:04.000Z
examples/aup2wav.py
goiosunsw/audacity.py
899fa99e11e0345f95a563ea3c72b0d98f84e646
[ "MIT" ]
null
null
null
examples/aup2wav.py
goiosunsw/audacity.py
899fa99e11e0345f95a563ea3c72b0d98f84e646
[ "MIT" ]
null
null
null
import sys import os import audacity from scipy.io import wavfile inputname = sys.argv[1] outname, ext = os.path.splitext(os.path.split(inputname)[-1]) aup = audacity.Aup(sys.argv[1]) for ii in range(aup.nchannels): c = aup.get_channel_data(ii) wavfile.write(outname+'_'+str(ii)+'.wav',int(aup.rate),c) wit...
22.8
61
0.671053
4aae907208d33a2dbdf09dff50a6b6a167dbdffd
824
py
Python
src/main/python/shabda/run/__init__.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
4
2018-10-26T07:00:34.000Z
2020-10-07T01:03:08.000Z
src/main/python/shabda/run/__init__.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
null
null
null
src/main/python/shabda/run/__init__.py
dhiraa/sabdha
f428418962dcc76f49e0a451ffc0545fda9b6b59
[ "Apache-2.0" ]
1
2018-10-26T07:00:38.000Z
2018-10-26T07:00:38.000Z
# Copyright 2018 The Shabda 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...
32.96
74
0.774272
54d07a431de5a276e291d6dcf13fc8410efaa631
1,941
py
Python
azure-mgmt-media/azure/mgmt/media/models/streaming_path_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-07-23T08:59:24.000Z
2018-07-23T08:59:24.000Z
azure-mgmt-media/azure/mgmt/media/models/streaming_path_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-11-29T14:46:42.000Z
2018-11-29T14:46:42.000Z
azure-mgmt-media/azure/mgmt/media/models/streaming_path_py3.py
NMijat1024/azure-sdk-for-python
c49e1d6d797dceaca81813cafb1a486d67185182
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.4375
103
0.653787
7082e8a04c9bec7e23f23df11abb90d9612837a5
8,376
py
Python
tests/test_websocket_handshake.py
strongbugman/aiohttp
f6b9b7b9be03d12e33af6dbd0cccd127146abedb
[ "Apache-2.0" ]
4
2020-10-08T18:50:33.000Z
2021-07-07T10:50:04.000Z
tests/test_websocket_handshake.py
strongbugman/aiohttp
f6b9b7b9be03d12e33af6dbd0cccd127146abedb
[ "Apache-2.0" ]
null
null
null
tests/test_websocket_handshake.py
strongbugman/aiohttp
f6b9b7b9be03d12e33af6dbd0cccd127146abedb
[ "Apache-2.0" ]
1
2019-09-29T11:08:14.000Z
2019-09-29T11:08:14.000Z
"""Tests for http/websocket.py""" import base64 import os import pytest from aiohttp import web from aiohttp.test_utils import make_mocked_request def gen_ws_headers(protocols='', compress=0, extension_text='', server_notakeover=False, client_notakeover=False): key = base64.b64encode(os.uran...
31.727273
79
0.626074
8d64f2ca624f259e81d4be62146c3a9f69e2500f
26,833
py
Python
discord/permissions.py
Mehul343/discord.py-self
ee722b4a1fd8e6d36772dbb61b2f7f7a441f259b
[ "MIT" ]
null
null
null
discord/permissions.py
Mehul343/discord.py-self
ee722b4a1fd8e6d36772dbb61b2f7f7a441f259b
[ "MIT" ]
null
null
null
discord/permissions.py
Mehul343/discord.py-self
ee722b4a1fd8e6d36772dbb61b2f7f7a441f259b
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
34.05203
119
0.615958
7216a0f588b8d0a8db49e549f5941939d871b18e
12,368
py
Python
tests/test_admin.py
chhantyal/dj-dynamic-forms
5edd10aaf59fedb66b41df1c8b1b5fa69eb29f3f
[ "BSD-3-Clause" ]
2
2015-07-19T19:54:07.000Z
2019-10-31T00:13:52.000Z
tests/test_admin.py
chhantyal/dj-dynamic-forms
5edd10aaf59fedb66b41df1c8b1b5fa69eb29f3f
[ "BSD-3-Clause" ]
3
2020-02-11T23:34:47.000Z
2021-06-10T18:58:38.000Z
tests/test_admin.py
chhantyal/dj-dynamic-forms
5edd10aaf59fedb66b41df1c8b1b5fa69eb29f3f
[ "BSD-3-Clause" ]
1
2017-06-25T17:50:41.000Z
2017-06-25T17:50:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import VERSION from django.contrib.auth.models import User from django.test import TestCase # TODO: Django >1.4: # from django.utils.html import format_html, format_html_join from django.utils.html import conditional_escape from django.utils.s...
45.977695
149
0.587726
85e1f4b509328723fb40ab476a75b350e978798a
16,919
py
Python
tests/keras2onnx_applications/nightly_build/test_nasnet_mobile.py
pbeukema/tensorflow-onnx
a8d5a3cc72d24ca18d64572588ad06490940a230
[ "Apache-2.0" ]
1,473
2018-03-16T02:47:33.000Z
2022-03-31T03:43:52.000Z
tests/keras2onnx_applications/nightly_build/test_nasnet_mobile.py
pbeukema/tensorflow-onnx
a8d5a3cc72d24ca18d64572588ad06490940a230
[ "Apache-2.0" ]
1,208
2018-03-14T09:58:49.000Z
2022-03-31T17:56:20.000Z
tests/keras2onnx_applications/nightly_build/test_nasnet_mobile.py
pbeukema/tensorflow-onnx
a8d5a3cc72d24ca18d64572588ad06490940a230
[ "Apache-2.0" ]
350
2018-04-03T03:48:40.000Z
2022-03-30T11:23:55.000Z
# SPDX-License-Identifier: Apache-2.0 import os import sys import unittest import mock_keras2onnx import numpy as np from mock_keras2onnx.proto import keras from os.path import dirname, abspath sys.path.insert(0, os.path.join(dirname(abspath(__file__)), '../../keras2onnx_tests/')) from test_utils import run_keras_and_...
45.117333
118
0.614812
e6fbfda4e3bf38ae1718006466dd0520a7e2541e
4,891
py
Python
1_foodsByNutrients/mongo_models/model_malesRDI.py
nyck33/bioactive_dash
94c4e57467d88c5ed0d1b97821c5505f662468ff
[ "MIT" ]
null
null
null
1_foodsByNutrients/mongo_models/model_malesRDI.py
nyck33/bioactive_dash
94c4e57467d88c5ed0d1b97821c5505f662468ff
[ "MIT" ]
null
null
null
1_foodsByNutrients/mongo_models/model_malesRDI.py
nyck33/bioactive_dash
94c4e57467d88c5ed0d1b97821c5505f662468ff
[ "MIT" ]
null
null
null
""" infant, child, male, female, preg, lactation for all plus macroUpper so 6 groups, 2 classes for each (RDI, upper limits) plus this table of Acceptable MacroNutrient Distribution Ranges for children 1-3, 4-18 and adults """ from flask import current_app as app from .model_nutrients import NutrientsDocument # Just a...
37.335878
78
0.660601
e9b1561ba3d50c4109274c993eb2660aeae30018
408
py
Python
spec/python/test_params_pass_usertype.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
11
2018-04-01T03:58:15.000Z
2021-08-14T09:04:55.000Z
spec/python/test_params_pass_usertype.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
73
2016-07-20T10:27:15.000Z
2020-12-17T18:56:46.000Z
spec/python/test_params_pass_usertype.py
DarkShadow44/kaitai_struct_tests
4bb13cef82965cca66dda2eb2b77cd64e9f70a12
[ "MIT" ]
37
2016-08-15T08:25:56.000Z
2021-08-28T14:48:46.000Z
# Autogenerated from KST: please remove this line if doing any edits by hand! import unittest from params_pass_usertype import ParamsPassUsertype class TestParamsPassUsertype(unittest.TestCase): def test_params_pass_usertype(self): with ParamsPassUsertype.from_file('src/position_in_seq.bin') as r: ...
34
77
0.745098
62b298f79d4ab350c38716510970956ad7dfefb3
350
py
Python
4_filter_processed.py
thetobysiu/witcher-3-text-processing
fe4db4146f67944371b010b22a48acee81902812
[ "MIT" ]
null
null
null
4_filter_processed.py
thetobysiu/witcher-3-text-processing
fe4db4146f67944371b010b22a48acee81902812
[ "MIT" ]
null
null
null
4_filter_processed.py
thetobysiu/witcher-3-text-processing
fe4db4146f67944371b010b22a48acee81902812
[ "MIT" ]
null
null
null
# SIU KING WAI SM4701 Deepstory """ For edited script after checking combined audio""" from util import WitcherData, get_parameter if __name__ == '__main__': data = WitcherData(get_parameter()) data.read_file(tag='processed') data.check_audio() data.filter_exist() data.save_file(tag='processed', he...
29.166667
54
0.714286
0f57947b6c1fd92a207b6b447f878f306899a5f0
54,387
py
Python
tests/python/unittest/test_numpy_ndarray.py
odobenuskr/incubator-mxnet
fb07108f3c27972880b240c9df1cc7cc3d35249d
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_numpy_ndarray.py
odobenuskr/incubator-mxnet
fb07108f3c27972880b240c9df1cc7cc3d35249d
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_numpy_ndarray.py
odobenuskr/incubator-mxnet
fb07108f3c27972880b240c9df1cc7cc3d35249d
[ "Apache-2.0" ]
null
null
null
# 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...
41.108844
150
0.545406
4c776ad84420dd2731a70371b7597f600a46608c
740
py
Python
advection_1d/problems/test.py
MSUNumRel/pyro2
aa9e51116430e3e5e3998ecae76391bdd173d1f5
[ "BSD-3-Clause" ]
1
2019-04-02T16:52:29.000Z
2019-04-02T16:52:29.000Z
advection_1d/problems/test.py
MSUNumRel/pyro2
aa9e51116430e3e5e3998ecae76391bdd173d1f5
[ "BSD-3-Clause" ]
11
2019-04-02T17:31:32.000Z
2019-04-23T02:07:46.000Z
advection_1d/problems/test.py
MSUNumRel/pyro2
aa9e51116430e3e5e3998ecae76391bdd173d1f5
[ "BSD-3-Clause" ]
2
2019-04-15T19:20:47.000Z
2021-02-07T03:26:27.000Z
from __future__ import print_function import sys import mesh.patch as patch def init_data(my_data, rp): """ an init routine for unit testing """ # make sure that we are passed a valid patch object if not isinstance(my_data, patch.CellCenterData1d): print("ERROR: patch invalid in test.py") ...
26.428571
71
0.667568
97428b99400728b84f192c16bd6675a0e766a532
356
py
Python
booking/models/booking.py
amirRamirfatahi/beautstertest
53f6e515903fd11992fd1eb70760318b17896437
[ "MIT" ]
null
null
null
booking/models/booking.py
amirRamirfatahi/beautstertest
53f6e515903fd11992fd1eb70760318b17896437
[ "MIT" ]
5
2021-03-30T13:08:19.000Z
2021-09-22T18:54:13.000Z
booking/models/booking.py
amirRamirfatahi/beautstertest
53f6e515903fd11992fd1eb70760318b17896437
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings class Booking(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) salon = models.ForeignKey('salon.Salon', on_delete=models.CASCADE) def __str__(self): return f'for {...
29.666667
70
0.685393
5a95f9828bd0ae2ea8ce4045d30c356d51e0683a
3,827
py
Python
marca_agua.py
LBPELAEZ/WaterPy
d8bc89ee186730c93150e572b807dbe636c0c44b
[ "MIT" ]
3
2019-03-28T22:45:38.000Z
2021-07-05T17:16:09.000Z
marca_agua.py
kvtral/WaterPy
d8bc89ee186730c93150e572b807dbe636c0c44b
[ "MIT" ]
null
null
null
marca_agua.py
kvtral/WaterPy
d8bc89ee186730c93150e572b807dbe636c0c44b
[ "MIT" ]
4
2020-06-18T15:11:15.000Z
2021-03-19T21:28:34.000Z
""" Gran nota: Este es un archivo histórico que utilizaba antes de crear waterpy con una interfaz gráfica ======================================================================================== Nadie debería usarlo y solamente está aquí para el recuerdo, no forma parte del proyecto =...
36.798077
100
0.684609
c93e68fd667e5996a58e859177aeeddc97d8635b
21,395
py
Python
database.py
JohannesRanderath/StudyProblems
bcfa526008e1d4e3ee7ee5378717f57d6c09f503
[ "MIT" ]
null
null
null
database.py
JohannesRanderath/StudyProblems
bcfa526008e1d4e3ee7ee5378717f57d6c09f503
[ "MIT" ]
null
null
null
database.py
JohannesRanderath/StudyProblems
bcfa526008e1d4e3ee7ee5378717f57d6c09f503
[ "MIT" ]
null
null
null
from flask import g, current_app import sqlite3 # do all database handling in this separate .py def get_db(): """ Setup database connection if it wasn't established yet and return it. If there is already an active db connection, return that :return: An active sqlite3 database connection """ ...
36.951641
120
0.629072
dd1e34bdb751e338da8a4101105165af387d8f44
4,886
py
Python
code/test_dssl.py
dashan-emr/dsslpy
7e96be734bd8641ef0c51be21e72e60ba291e4ca
[ "Apache-2.0" ]
null
null
null
code/test_dssl.py
dashan-emr/dsslpy
7e96be734bd8641ef0c51be21e72e60ba291e4ca
[ "Apache-2.0" ]
null
null
null
code/test_dssl.py
dashan-emr/dsslpy
7e96be734bd8641ef0c51be21e72e60ba291e4ca
[ "Apache-2.0" ]
1
2021-03-27T04:20:16.000Z
2021-03-27T04:20:16.000Z
import numpy as np from dssl import huber,DSSL import unittest class TestDSSL(unittest.TestCase): def test_toy(self): """ Test the loss on a couple of toy examples """ l2_reg = 0.75 smoothness_reg = 0.0 h = 0.01 X = np.array([[1,2], ...
29.433735
113
0.454564
e721f82eacbd3da170444ea7537f63e23d103ec4
713
py
Python
youtube_dl_wrapper/singleton.py
janw/youtube-dl-wrapper
2ac486ee424d9a8e3503c855bab3574a6d516c5f
[ "Apache-2.0" ]
null
null
null
youtube_dl_wrapper/singleton.py
janw/youtube-dl-wrapper
2ac486ee424d9a8e3503c855bab3574a6d516c5f
[ "Apache-2.0" ]
null
null
null
youtube_dl_wrapper/singleton.py
janw/youtube-dl-wrapper
2ac486ee424d9a8e3503c855bab3574a6d516c5f
[ "Apache-2.0" ]
null
null
null
import fcntl import os # Taken and modified from https://stackoverflow.com/a/384493 def instance_running(label="default"): """ Detect if an an instance with the label is already running, globally at the operating system level. Using `os.open` ensures that the file pointer won't be closed by Pyth...
27.423077
78
0.697055
f5643c148acb2aa17d39976cfd9a6ee487e5828a
3,752
py
Python
vespa/common/util/export.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
null
null
null
vespa/common/util/export.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
4
2021-04-17T13:58:31.000Z
2022-01-20T14:19:57.000Z
vespa/common/util/export.py
vespa-mrs/vespa
6d3e84a206ec427ac1304e70c7fadf817432956b
[ "BSD-3-Clause" ]
3
2021-06-05T16:34:57.000Z
2022-01-19T16:13:22.000Z
# Python modules import xml.etree.cElementTree as ElementTree import gzip # 3rd party modules # Our modules import vespa.common.constants as constants import vespa.common.util.xml_ as util_xml import vespa.common.util.time_ as util_time import vespa.common.util.misc as util_misc # The text below is added as an XML ...
38.680412
77
0.675107
80e7496434d498a72b3dd0081c6b3a6c3b6e47d5
1,247
py
Python
domain_api/permissions.py
heytrav/drs-project
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
1
2020-07-01T02:35:14.000Z
2020-07-01T02:35:14.000Z
domain_api/permissions.py
heytrav/drs-api
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
2
2020-06-05T17:25:14.000Z
2021-03-19T21:53:44.000Z
domain_api/permissions.py
heytrav/drs-api
68caa7e9bc8dea8963ddef561b42d05a7a88becd
[ "MIT" ]
null
null
null
from rest_framework import permissions import logging log = logging.getLogger(__name__) class IsAdmin(permissions.BasePermission): """ Custom permission to allow restrict view to members of 'admin' group. """ def has_permission(self, request, view): """ See if user has 'admin' permi...
24.45098
73
0.622294
d7132f50ff59d0c11d1ce8c8a13d560004ca0495
936
py
Python
modin/core/execution/ray/implementations/pandas_on_ray/dataframe/__init__.py
yizx-1017/modin
2eee697135b30a9694c202456db0635c52c9e6c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/execution/ray/implementations/pandas_on_ray/dataframe/__init__.py
yizx-1017/modin
2eee697135b30a9694c202456db0635c52c9e6c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/execution/ray/implementations/pandas_on_ray/dataframe/__init__.py
yizx-1017/modin
2eee697135b30a9694c202456db0635c52c9e6c9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
49.263158
87
0.785256
d070d6f6de88535962065a8f8a815f92b1e6c555
445
py
Python
src/app/blog/routers.py
crayzee/useful
d760a11202093681ff69e402ba816cfc7e5ff739
[ "BSD-3-Clause" ]
2
2021-02-14T17:57:18.000Z
2021-02-14T18:11:17.000Z
src/app/blog/routers.py
crayzee/useful
d760a11202093681ff69e402ba816cfc7e5ff739
[ "BSD-3-Clause" ]
null
null
null
src/app/blog/routers.py
crayzee/useful
d760a11202093681ff69e402ba816cfc7e5ff739
[ "BSD-3-Clause" ]
null
null
null
from fastapi import APIRouter from src.app.blog.endpoint import tag, category, post, comment blog_router = APIRouter() blog_router.include_router(category.category_router, prefix="/category", tags=["blog"]) blog_router.include_router(tag.tag_router, prefix="/tag", tags=["blog"]) blog_router.include_router(post.post...
37.083333
87
0.777528
9d385e746101edcdd36e68934e331683d3fe77b0
7,923
py
Python
backend/ludwig_realty_inc_34058/settings.py
crowdbotics-apps/ludwig-realty-inc-34058
4988ae90486da6cbb2393f2855d2ee84ef43cab7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/ludwig_realty_inc_34058/settings.py
crowdbotics-apps/ludwig-realty-inc-34058
4988ae90486da6cbb2393f2855d2ee84ef43cab7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/ludwig_realty_inc_34058/settings.py
crowdbotics-apps/ludwig-realty-inc-34058
4988ae90486da6cbb2393f2855d2ee84ef43cab7
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for ludwig_realty_inc_34058 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ "...
30.473077
112
0.737599
25e5bd01a546439b4f47925c10ffdde46e4fd56e
5,232
py
Python
platformio/commands/upgrade.py
franzbischoff/platformio-core
9e0ded958ca4fe6a4dca9b15c128bd22d3603981
[ "Apache-2.0" ]
4,744
2016-11-28T14:37:47.000Z
2022-03-31T12:35:56.000Z
platformio/commands/upgrade.py
franzbischoff/platformio-core
9e0ded958ca4fe6a4dca9b15c128bd22d3603981
[ "Apache-2.0" ]
3,424
2016-11-27T22:45:41.000Z
2022-03-31T21:40:03.000Z
platformio/commands/upgrade.py
franzbischoff/platformio-core
9e0ded958ca4fe6a4dca9b15c128bd22d3603981
[ "Apache-2.0" ]
576
2016-12-01T18:48:22.000Z
2022-03-30T02:27:35.000Z
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
33.538462
85
0.616781
e3de7697b4e3b27968c8f51a49174ca68e509c8f
3,049
py
Python
tests/interpret/integrated_gradient_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
tests/interpret/integrated_gradient_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
tests/interpret/integrated_gradient_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
from pytest import approx, raises from allennlp.common.testing import AllenNlpTestCase from allennlp.models.archival import load_archive from allennlp.interpret.saliency_interpreters import IntegratedGradient from allennlp.predictors import Predictor, TextClassifierPredictor from allennlp.data.dataset_readers import T...
47.640625
98
0.735651
c19936d0d4b002ef09bb4cc95e5c3ce93ea6e5ae
20,141
py
Python
distributions/aws/examples/rds-s3/auto-rds-s3-setup.py
Hyperfine/kubeflow-manifests
b278225d3f2b221c38cd12ffdd6c5a52213bc958
[ "Apache-2.0" ]
null
null
null
distributions/aws/examples/rds-s3/auto-rds-s3-setup.py
Hyperfine/kubeflow-manifests
b278225d3f2b221c38cd12ffdd6c5a52213bc958
[ "Apache-2.0" ]
null
null
null
distributions/aws/examples/rds-s3/auto-rds-s3-setup.py
Hyperfine/kubeflow-manifests
b278225d3f2b221c38cd12ffdd6c5a52213bc958
[ "Apache-2.0" ]
null
null
null
import argparse import boto3 import subprocess import json from shutil import which from time import sleep def main(): header() verify_prerequisites() setup_s3() setup_rds() setup_cluster_secrets() setup_kubeflow() footer() def header(): print("===================================...
28.367606
161
0.651159
7449d2a897dd6ce398e12cebf2720a0dba518120
4,344
py
Python
tests/test_backends.py
edouardruiz/strawberry-django-jwt
9c22a2727f4962b1df3d45b5ce0626f7fafa3572
[ "MIT" ]
null
null
null
tests/test_backends.py
edouardruiz/strawberry-django-jwt
9c22a2727f4962b1df3d45b5ce0626f7fafa3572
[ "MIT" ]
null
null
null
tests/test_backends.py
edouardruiz/strawberry-django-jwt
9c22a2727f4962b1df3d45b5ce0626f7fafa3572
[ "MIT" ]
null
null
null
import base64 import django import pytest from django.contrib.auth.models import User from django.test import TestCase as DjangoTestCase, Client from rest_framework.test import APIClient from strawberry_django_jwt.backends import JSONWebTokenBackend from strawberry_django_jwt.exceptions import JSONWebTokenError from ...
32.909091
101
0.642956
bd347410fac0a8a2a698083cc087fdbe7e453819
1,887
py
Python
pyhtmm/process.py
kahjohansson/pyhtmm
d3710e062b1685cd200884dfdba71446cb7587a7
[ "MIT" ]
null
null
null
pyhtmm/process.py
kahjohansson/pyhtmm
d3710e062b1685cd200884dfdba71446cb7587a7
[ "MIT" ]
null
null
null
pyhtmm/process.py
kahjohansson/pyhtmm
d3710e062b1685cd200884dfdba71446cb7587a7
[ "MIT" ]
null
null
null
import json, os, jsonlines from tqdm import tqdm from .utils import * from .document import _Document from .sentence import _Sentence word_index = {} #string: int index_word = {} #int: string index = 0 def process_plain_text(filename): file = open(filename) docs = [] for line in file: docs.append...
27.347826
76
0.641759
753342bcab9cda4a1cb1d4d162b37557a2d3234a
2,362
py
Python
Shapes.py
KosiorekD/Universe
63413f576c1929e5574adf274c2b4f5be7b12eaa
[ "Apache-2.0" ]
1
2020-03-25T23:53:32.000Z
2020-03-25T23:53:32.000Z
Shapes.py
KosiorekD/Universe
63413f576c1929e5574adf274c2b4f5be7b12eaa
[ "Apache-2.0" ]
null
null
null
Shapes.py
KosiorekD/Universe
63413f576c1929e5574adf274c2b4f5be7b12eaa
[ "Apache-2.0" ]
null
null
null
from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * red = [1.0, 0.0, 0.0] orange = [1.0, 0.33, 0.0] yellow = [1.0, 1.0, 0.0] green = [0.0, 1.0, 0.0] blue = [0.0, 0.0, 1.0] indigo = [0.29, 0.0, 0.51] violet = [0.56, 0.0, 1.0] colors = [red, orange, yellow, green, blue, violet] class Cube: d...
30.675325
83
0.41956
169940e29ce2cc24e5a79d381838345a12af8d46
9,708
py
Python
openstackclient/tests/unit/compute/v2/test_agent.py
alvarosimon/python-openstackclient
2ab3396f19796935ddcb281b865d37839a4f84f7
[ "Apache-2.0" ]
5
2015-02-26T18:03:07.000Z
2017-05-01T20:17:20.000Z
openstackclient/tests/unit/compute/v2/test_agent.py
adgeese/python-openstackclient
06263bd5852aad9cd03a76f50140fbbb2d0751ba
[ "Apache-2.0" ]
null
null
null
openstackclient/tests/unit/compute/v2/test_agent.py
adgeese/python-openstackclient
06263bd5852aad9cd03a76f50140fbbb2d0751ba
[ "Apache-2.0" ]
1
2020-07-21T02:18:23.000Z
2020-07-21T02:18:23.000Z
# Copyright 2016 Easystack. 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...
30.242991
77
0.552225
54411f60c4b9b1b31f81d396698124ea4ead92e0
24,248
py
Python
build.py
HackEduca/scraino-blocks
59b905afba11caf6fb10e7a4b720b8e40475b0a6
[ "Apache-2.0" ]
1
2019-11-14T07:13:34.000Z
2019-11-14T07:13:34.000Z
build.py
huaxiuyiwei/scraino-blocks
59b905afba11caf6fb10e7a4b720b8e40475b0a6
[ "Apache-2.0" ]
null
null
null
build.py
huaxiuyiwei/scraino-blocks
59b905afba11caf6fb10e7a4b720b8e40475b0a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python2.7 # Compresses the core Blockly files into a single JavaScript file. # # Copyright 2012 Google Inc. # https://developers.google.com/blockly/ # # 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 o...
36.907154
142
0.662199
dfc3abd7b479fa86935f4bb93f862204222eddc8
2,291
py
Python
src/sources/tapread.py
Epicpkmn11/lightnovel-crawler
6fc0bbd4970a669a7921819d98b00da5a177d4cc
[ "Apache-2.0" ]
1
2019-03-10T13:02:23.000Z
2019-03-10T13:02:23.000Z
src/sources/tapread.py
Epicpkmn11/lightnovel-crawler
6fc0bbd4970a669a7921819d98b00da5a177d4cc
[ "Apache-2.0" ]
2
2021-06-08T21:01:15.000Z
2021-09-08T01:45:07.000Z
src/sources/tapread.py
Epicpkmn11/lightnovel-crawler
6fc0bbd4970a669a7921819d98b00da5a177d4cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from urllib.parse import urlparse from ..utils.crawler import Crawler logger = logging.getLogger('TAPREAD') chapter_list_url = 'https://www.tapread.com/book/contents?bookId=%s' chapter_url = 'https://www.tapread.com/book/chapter?bookId=%s&chapterId=%s' class TapreadCrawler(Cra...
32.728571
83
0.567001
1e9e3eee74ae22a1333cef4c7013cc19f11497dd
998
py
Python
src/pattern/CounterRotatingCircles.py
bookdude13/domeshow-cherry
981e32ade5cb789f45c0d9eec3bc7ceec39f280a
[ "MIT" ]
null
null
null
src/pattern/CounterRotatingCircles.py
bookdude13/domeshow-cherry
981e32ade5cb789f45c0d9eec3bc7ceec39f280a
[ "MIT" ]
null
null
null
src/pattern/CounterRotatingCircles.py
bookdude13/domeshow-cherry
981e32ade5cb789f45c0d9eec3bc7ceec39f280a
[ "MIT" ]
null
null
null
import pattern.PatternBuilder as PB from rx import Observable import random def _set_colors(colors): if colors is None or len(colors) < 5: return [c for i in range(5) for c in PB.random_color()] return colors def get_observable(colorsA=None, colorsB=None, tall=None, tick_period_ms=0): colors = [_...
33.266667
76
0.616232
9a1b6f864dfbe86a6e4fbf45e97998607ec06fa8
6,418
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2021_01_01/models/__init__.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
32.744898
94
0.777968
b5966875f8a9fe9e39991853bedf8b2549439cd4
5,854
py
Python
regression/train.py
kesamet/examples
6baef94cc7db99abf17ca3df7dae35fcc3b08d25
[ "Apache-2.0" ]
1
2021-07-23T02:21:08.000Z
2021-07-23T02:21:08.000Z
regression/train.py
kesamet/examples
6baef94cc7db99abf17ca3df7dae35fcc3b08d25
[ "Apache-2.0" ]
2
2021-04-05T13:25:11.000Z
2021-04-09T03:50:38.000Z
regression/train.py
kesamet/examples
6baef94cc7db99abf17ca3df7dae35fcc3b08d25
[ "Apache-2.0" ]
14
2021-03-31T06:58:11.000Z
2022-01-18T09:02:11.000Z
import joblib from typing import Tuple import bdrk import numpy as np import pandas as pd from bdrk.model_analyzer import ModelAnalyzer, ModelTask, ModelTypes from boxkite.monitoring.collector import ( BaselineMetricCollector, FeatureHistogramCollector, InferenceHistogramCollector ) from boxkite.monitoring...
29.565657
76
0.623676
625f90f138090a43062f04891e7bde9277c0de25
965
py
Python
tests/performance/perf_nms.py
cdeldon/cartesio
a07d378b4752f7050d9194778863e27089220a67
[ "MIT" ]
null
null
null
tests/performance/perf_nms.py
cdeldon/cartesio
a07d378b4752f7050d9194778863e27089220a67
[ "MIT" ]
12
2020-07-08T22:12:11.000Z
2022-02-07T08:02:36.000Z
tests/performance/perf_nms.py
cdeldon/cartesio
a07d378b4752f7050d9194778863e27089220a67
[ "MIT" ]
1
2020-07-06T08:53:48.000Z
2020-07-06T08:53:48.000Z
import numpy as np import perfplot try: import cartesio as cs except ImportError: import os import sys sys.path.insert( 0, os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) ) import cartesio as cs # noinspection PyUnresolvedReferences def run_perf_nms(): ...
19.693878
87
0.560622
8dbfeb42cbcb85376a97a1b2701812628dfd2318
4,726
py
Python
gtex/incomplete.py
nellore/runs
5bd2e2a92a8a5b3dba90fe93080b9c7f11339e43
[ "MIT" ]
13
2015-12-07T21:28:24.000Z
2019-11-08T22:42:39.000Z
gtex/incomplete.py
nellore/runs
5bd2e2a92a8a5b3dba90fe93080b9c7f11339e43
[ "MIT" ]
null
null
null
gtex/incomplete.py
nellore/runs
5bd2e2a92a8a5b3dba90fe93080b9c7f11339e43
[ "MIT" ]
10
2015-12-21T15:41:03.000Z
2020-06-04T04:31:41.000Z
#!/usr/bin/env python """ incomplete.py Finds GTEx samples that were incompletely downloaded and/or aligned by comparing counts.tsv.gz files across batches with read counts in SraRunInfo.csv. Tab-separated output fields: 1. project accession number 2. sample accession number 3. experiment accession number 4. run acce...
42.196429
80
0.508041
da493b832829bb40237b7b204f54c9b6bb7d8179
1,361
py
Python
tests/integrations/django/asgi/test_asgi.py
harmon/sentry-python
fc55f7909c8c1969b43d43acccb9835f65fcd48c
[ "BSD-2-Clause" ]
null
null
null
tests/integrations/django/asgi/test_asgi.py
harmon/sentry-python
fc55f7909c8c1969b43d43acccb9835f65fcd48c
[ "BSD-2-Clause" ]
null
null
null
tests/integrations/django/asgi/test_asgi.py
harmon/sentry-python
fc55f7909c8c1969b43d43acccb9835f65fcd48c
[ "BSD-2-Clause" ]
1
2020-05-18T19:15:15.000Z
2020-05-18T19:15:15.000Z
import pytest import django from channels.testing import HttpCommunicator from sentry_sdk import capture_message from sentry_sdk.integrations.django import DjangoIntegration from tests.integrations.django.myapp.asgi import channels_application APPS = [channels_application] if django.VERSION >= (3, 0): from tes...
28.354167
78
0.696547
c7c7978d51473bc1f2d7cf9a86f2b517811d19a2
2,698
py
Python
core/models.py
reddevilcero/Personal-Portfolio
7e38117ed537174422417f3eb1056999d2f3a153
[ "MIT" ]
null
null
null
core/models.py
reddevilcero/Personal-Portfolio
7e38117ed537174422417f3eb1056999d2f3a153
[ "MIT" ]
null
null
null
core/models.py
reddevilcero/Personal-Portfolio
7e38117ed537174422417f3eb1056999d2f3a153
[ "MIT" ]
null
null
null
from django.db import models from ckeditor.fields import RichTextField from django.utils.translation import gettext as _ # Create your models here. class Learning(models.Model): name = models.CharField(_("name"), max_length=50) icon = models.ImageField(_("Icon"), upload_to="img/icons") skills = RichText...
35.5
76
0.599703
bb1f7f7017a99980c0894f421f778574cc4952da
87
py
Python
hazelcast/protocol/codec/transaction_message_type.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
3
2020-05-01T15:01:54.000Z
2021-01-27T14:51:45.000Z
hazelcast/protocol/codec/transaction_message_type.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
null
null
null
hazelcast/protocol/codec/transaction_message_type.py
buraksezer/hazelcast-python-client
4cc593ef7de994bd84fdac8331b81b309cce30a0
[ "Apache-2.0" ]
1
2020-12-01T20:00:35.000Z
2020-12-01T20:00:35.000Z
TRANSACTION_COMMIT = 0x1701 TRANSACTION_CREATE = 0x1702 TRANSACTION_ROLLBACK = 0x1703
17.4
29
0.850575
c46684e5c34660b1626f18eb2ecb6c3286848e98
4,854
py
Python
tools/script/adb_transfer.py
BernardXiong/adbd
f73b170a3f21f9ad016b463782738757bc0fb5e2
[ "Apache-2.0" ]
null
null
null
tools/script/adb_transfer.py
BernardXiong/adbd
f73b170a3f21f9ad016b463782738757bc0fb5e2
[ "Apache-2.0" ]
null
null
null
tools/script/adb_transfer.py
BernardXiong/adbd
f73b170a3f21f9ad016b463782738757bc0fb5e2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import time import subprocess import tempfile #adb push ./push_test.t "#sync_mod#<208>*path=/adb_sync/*/adb_sync/adb_sync.adb" #adb pull "#sync_mod#<208>*path=/adb_sync/*/adb_sync/adb_sync.adb" ./pull_test.t def execute_command(cmdstring, cwd=None, shell=True): """E...
32.577181
140
0.574166
df3d1d4fcdda38a6ca19ca7a748facf276bd9848
1,292
py
Python
examples/tf/trpois_inverted_pendulum.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
examples/tf/trpois_inverted_pendulum.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
examples/tf/trpois_inverted_pendulum.py
Maltimore/garage
a3f44b37eeddca37d157766a9a72e8772f104bcd
[ "MIT" ]
null
null
null
""" Example using TRPO with ISSampler. Iterations alternate between live and importance sampled iterations. """ import gym from garage.envs import normalize from garage.experiment import run_experiment from garage.np.baselines import LinearFeatureBaseline from garage.sampler import ISSampler from garage.tf.algos impo...
28.086957
76
0.662539
aa8342a4d3c5a1ffa3e69bdf9839f528c55f838f
1,047
py
Python
omo_r1mini_gazebo/launch/robot_state_publisher.launch.py
omorobot/omo_r1mini-foxy
7b700e6e16030e6c2c72bd326f708ed959a5de12
[ "Apache-2.0" ]
1
2022-01-05T04:31:28.000Z
2022-01-05T04:31:28.000Z
omo_r1mini_gazebo/launch/robot_state_publisher.launch.py
omorobot/omo_r1mini-foxy
7b700e6e16030e6c2c72bd326f708ed959a5de12
[ "Apache-2.0" ]
null
null
null
omo_r1mini_gazebo/launch/robot_state_publisher.launch.py
omorobot/omo_r1mini-foxy
7b700e6e16030e6c2c72bd326f708ed959a5de12
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Author: Bishop Pearson import os from ament_index_python.packages import get_package_share_directory from launch import LaunchDescription from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration from launch_ros.actions import Node def generate_l...
28.297297
71
0.685769
8eca91c8c92f00de8f663da753eb6a15d0bf729c
1,018
py
Python
setup.py
karol-gruszczyk/sloth-gql
7972adb761b60f14409c2f734473c0a04b8db63c
[ "MIT" ]
2
2018-01-07T08:51:27.000Z
2018-01-23T16:25:56.000Z
setup.py
karol-gruszczyk/sloth-gql
7972adb761b60f14409c2f734473c0a04b8db63c
[ "MIT" ]
3
2018-01-28T03:41:33.000Z
2018-01-28T03:55:00.000Z
setup.py
karol-gruszczyk/slothql
7972adb761b60f14409c2f734473c0a04b8db63c
[ "MIT" ]
null
null
null
from distutils.core import setup from setuptools import find_packages VERSION = '0.1.0a0' setup( name='slothql', version=VERSION, description='The async GraphQL framework.', long_description=open('README.rst').read(), author='Karol Gruszczyk', author_email='karol.gruszczyk@gmail.com', pa...
26.789474
69
0.631631
54dcb19a968d975145048a7d0b6611fc6f8cb464
618
py
Python
python_Project/Day_16-20/Day_16-20_Sort&Search_Algorithms/Select_sort.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
python_Project/Day_16-20/Day_16-20_Sort&Search_Algorithms/Select_sort.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
python_Project/Day_16-20/Day_16-20_Sort&Search_Algorithms/Select_sort.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
def select_sort(items): """简单选择排序""" compare = lambda x, y: x < y # Traverse through all array elements for i in range(len(items) - 1): min_idx = i for j in range(i + 1, len(items)): # Find the minimum element in remaining # unsorted array if compare(...
28.090909
59
0.563107
4d4e3e50ed85249219504d271b63b51e6d3af3e5
170
py
Python
backend/api/authentication.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
backend/api/authentication.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
backend/api/authentication.py
saulhappy/drf
5e62da54cdf0f0fead742c891d34e7eacd488a1b
[ "MIT" ]
null
null
null
from ast import keyword from rest_framework.authentication import TokenAuthentication as BaseTokenAuth class TokenAuthentication(BaseTokenAuth): keyword = "Bearer"
24.285714
78
0.835294
e4385847ebe68dee4563fbd9d51f4b356d251bfc
36,492
py
Python
src/olympia/amo/utils.py
osamamagdy/addons-server
f7326c94d1d40c71eca991242288edf799146182
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/utils.py
osamamagdy/addons-server
f7326c94d1d40c71eca991242288edf799146182
[ "BSD-3-Clause" ]
null
null
null
src/olympia/amo/utils.py
osamamagdy/addons-server
f7326c94d1d40c71eca991242288edf799146182
[ "BSD-3-Clause" ]
null
null
null
import collections import contextlib import datetime import errno import functools import itertools import json import operator import os import random import re import scandir import shutil import string import subprocess import tempfile import time import unicodedata from urllib.parse import ( parse_qsl, Par...
32.379769
87
0.636304
c949988643d60f2e9a8aa1099d35d4c93563266a
577
py
Python
exercicios2/ex069p.py
LuanGermano/Mundo-2-Curso-em-Video-Python
8e860beb1d3b31f1c5ac369767d32b353935b8b0
[ "MIT" ]
null
null
null
exercicios2/ex069p.py
LuanGermano/Mundo-2-Curso-em-Video-Python
8e860beb1d3b31f1c5ac369767d32b353935b8b0
[ "MIT" ]
null
null
null
exercicios2/ex069p.py
LuanGermano/Mundo-2-Curso-em-Video-Python
8e860beb1d3b31f1c5ac369767d32b353935b8b0
[ "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] ')) if idade >= 18: tot18 += 1 if sexo == "MF": totH += 1 if sexo == 'F' and idade < 20: totM20 += 1 resp = ' ' while resp ...
26.227273
52
0.526863
ac9568971d16c43c3964ada4a8054bce2252da53
34,242
py
Python
trax/supervised/inputs.py
w4-sjcho/trax
f7d92680d66a0e80a909ad99536f025ce0742eaa
[ "Apache-2.0" ]
null
null
null
trax/supervised/inputs.py
w4-sjcho/trax
f7d92680d66a0e80a909ad99536f025ce0742eaa
[ "Apache-2.0" ]
null
null
null
trax/supervised/inputs.py
w4-sjcho/trax
f7d92680d66a0e80a909ad99536f025ce0742eaa
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 law or a...
39.17849
80
0.700018
86fd4449dac2990c7de7c1eec0af10fc7f8d28d1
4,124
py
Python
train.py
samsgood0310/Unsupervised-Defect-Segmentation
66af32506cd6e60c356890616e28d679622fd8e6
[ "Apache-2.0" ]
1
2020-10-15T13:57:36.000Z
2020-10-15T13:57:36.000Z
train.py
samsgood0310/Unsupervised-Defect-Segmentation
66af32506cd6e60c356890616e28d679622fd8e6
[ "Apache-2.0" ]
null
null
null
train.py
samsgood0310/Unsupervised-Defect-Segmentation
66af32506cd6e60c356890616e28d679622fd8e6
[ "Apache-2.0" ]
null
null
null
import os import json import argparse from db import training_collate from tools import Timer, Log from factory import * def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--cfg', help='Name of .jason file', type=str, required=True) parser.add_argument('--ngpu', help='Numbers of GPU...
34.655462
119
0.60742
98949d92805b9ba84bcb98e08cc9b4328fda0ba5
17,458
py
Python
python/cudf/io/csv.py
andars/cudf
091ab814f4770f8bc2a07d52a5b4995adb4d6573
[ "Apache-2.0" ]
1
2021-03-30T22:45:57.000Z
2021-03-30T22:45:57.000Z
python/cudf/io/csv.py
andars/cudf
091ab814f4770f8bc2a07d52a5b4995adb4d6573
[ "Apache-2.0" ]
null
null
null
python/cudf/io/csv.py
andars/cudf
091ab814f4770f8bc2a07d52a5b4995adb4d6573
[ "Apache-2.0" ]
1
2021-03-30T22:46:08.000Z
2021-03-30T22:46:08.000Z
# Copyright (c) 2018, NVIDIA CORPORATION. from libgdf_cffi import libgdf, ffi from cudf.dataframe.dataframe import Column from cudf.dataframe.numerical import NumericalColumn from cudf.dataframe.dataframe import DataFrame from cudf.dataframe.datetime import DatetimeColumn from cudf._gdf import nvtx_range_push, nvtx_r...
34.031189
79
0.640738
aa1096da0f04c1c39e88986cebbcdb8f3463e9e8
2,475
py
Python
data-detective-airflow/data_detective_airflow/dag_generator/results/pg_result.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
5
2021-12-01T09:55:23.000Z
2021-12-21T16:23:33.000Z
data-detective-airflow/data_detective_airflow/dag_generator/results/pg_result.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
1
2022-03-14T16:50:41.000Z
2022-03-14T16:50:41.000Z
data-detective-airflow/data_detective_airflow/dag_generator/results/pg_result.py
dmitriy-e/metadata-governance
018a879951dee3f3c2c05ac8e05b8360dd7f4ab3
[ "Apache-2.0" ]
2
2021-11-03T09:43:09.000Z
2021-11-17T10:16:29.000Z
# -*- coding: utf-8 -*- from typing import Any from pandas import DataFrame from data_detective_airflow.dag_generator.results.base_result import BaseResult from data_detective_airflow.dag_generator.works.base_db_work import BaseDBWork from data_detective_airflow.operators.tbaseoperator import TBaseOperator class Pg...
31.730769
79
0.629495
357b40db4b9fb69dda0fcd7b2be9a69474b242e4
12,075
py
Python
bokeh/_testing/util/examples.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
445
2019-01-26T13:50:26.000Z
2022-03-18T05:17:38.000Z
bokeh/_testing/util/examples.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
242
2019-01-29T15:48:27.000Z
2022-03-31T22:09:21.000Z
bokeh/_testing/util/examples.py
kevin1kevin1k/bokeh
9f34b5b710e2748ec803c12918ec1706098a3477
[ "BSD-3-Clause" ]
31
2019-03-10T09:51:27.000Z
2022-02-14T23:11:12.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
31.609948
138
0.550642
ceba6b73c31c4c9b0863afce44533e9fee7ca139
1,425
py
Python
gamelib/cube.py
yarolig/FetchQuest
12aefdf0c83427f4806c30097a3974e41a34a8f0
[ "MIT" ]
null
null
null
gamelib/cube.py
yarolig/FetchQuest
12aefdf0c83427f4806c30097a3974e41a34a8f0
[ "MIT" ]
null
null
null
gamelib/cube.py
yarolig/FetchQuest
12aefdf0c83427f4806c30097a3974e41a34a8f0
[ "MIT" ]
null
null
null
def make_cube(): arr = [] # y = 1 arr += [0, 1, 0, 0, 0, 1, 1, 1] arr += [1, 1, 0, 1, 0, 1, 1, 1] arr += [0, 1, 1, 0, 1, 1, 1, 1] arr += [0, 1, 1, 0, 1, 1, 1, 1] arr += [1, 1, 0, 1, 0, 1, 1, 1] arr += [1, 1, 1, 1, 1, 1, 1, 1] # y = 0 arr += [0, 0, 0, 0, 0, 1, 1, 1] arr +=...
24.568966
35
0.303158
d3102cbab3fed438fab5d111d97e685b01dd19f8
5,212
py
Python
icevision/parsers/voc_parser.py
jerbly/icevision
f97edd52c152f438d02bcce8a2e40b90dc304d01
[ "Apache-2.0" ]
null
null
null
icevision/parsers/voc_parser.py
jerbly/icevision
f97edd52c152f438d02bcce8a2e40b90dc304d01
[ "Apache-2.0" ]
null
null
null
icevision/parsers/voc_parser.py
jerbly/icevision
f97edd52c152f438d02bcce8a2e40b90dc304d01
[ "Apache-2.0" ]
null
null
null
__all__ = ["voc", "VocXmlParser", "VocMaskParser"] import xml.etree.ElementTree as ET from icevision.imports import * from icevision.utils import * from icevision.core import * from icevision.parsers.parser import * def voc( annotations_dir: Union[str, Path], images_dir: Union[str, Path], class_map: Opti...
30.840237
87
0.612433
5c9aa15fc59427d5dd30c88ee28d99181c4a78d1
17,199
py
Python
src/sage/rings/function_field/function_field_order.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/rings/function_field/function_field_order.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
null
null
null
src/sage/rings/function_field/function_field_order.py
switzel/sage
7eb8510dacf61b691664cd8f1d2e75e5d473e5a0
[ "BSL-1.0" ]
1
2020-07-24T12:20:37.000Z
2020-07-24T12:20:37.000Z
r""" Orders in Function Fields AUTHORS: - William Stein (2010): initial version - Maarten Derickx (2011-09-14): fixed ideal_with_gens_over_base() for rational function fields - Julian Rueth (2011-09-14): added check in _element_constructor_ EXAMPLES: Maximal orders in rational function fields:: sage: K.<x> =...
35.1
166
0.559335
6a037dd401175363a7f9045e1fc8f5f3f794e58b
9,368
py
Python
file.py
moonwake769/CSV-to-JSON
d679f7de84956ee3aed3233d0249360e7b205550
[ "MIT" ]
null
null
null
file.py
moonwake769/CSV-to-JSON
d679f7de84956ee3aed3233d0249360e7b205550
[ "MIT" ]
null
null
null
file.py
moonwake769/CSV-to-JSON
d679f7de84956ee3aed3233d0249360e7b205550
[ "MIT" ]
null
null
null
""" Docs: YAML: https://pyyaml.org/wiki/PyYAMLDocumentation """ import ast import json import yaml import csv import os import pathlib from PIL import Image class File(): """File object.""" def __init__( self, ): pass def is_exist(_pathToFile) -> bool: """Return True if file e...
32.527778
81
0.572694
a004b5620685200e7352d36673ae8a3041520532
618
py
Python
LDERPdjango/login/migrations/0007_auto_20170613_0733.py
Ignoramuss/LDERP
2524eb2a4c73a079a5d8f563c45de23cfe7836f6
[ "Apache-2.0" ]
3
2017-06-09T09:22:17.000Z
2017-06-14T03:42:55.000Z
LDERPdjango/login/migrations/0007_auto_20170613_0733.py
Ignoramuss/LDERP
2524eb2a4c73a079a5d8f563c45de23cfe7836f6
[ "Apache-2.0" ]
2
2017-06-14T07:24:47.000Z
2017-06-14T10:50:57.000Z
LDERPdjango/login/migrations/0007_auto_20170613_0733.py
Ignoramuss/LDERP
2524eb2a4c73a079a5d8f563c45de23cfe7836f6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-13 07:33 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('login', '0006_auto_20170613_0633'), ] operations = [ migrations.RenameField( ...
23.769231
48
0.608414
2f9aaa069deb369ca3759254af26218ed0b89d39
271
py
Python
electrum/plugins/labels/cmdline.py
sherlockcoin/electrum
fa9e4cf5ed15ae44331a70954e69bc677c529357
[ "MIT" ]
5
2018-10-31T18:47:54.000Z
2021-09-20T02:04:42.000Z
electrum/plugins/labels/cmdline.py
Matthelonianxl/electrum-1
1f14894c43ca4193fb07c202f22e421365c50d2d
[ "MIT" ]
79
2019-04-03T06:56:46.000Z
2019-10-11T17:56:43.000Z
electrum/plugins/labels/cmdline.py
Matthelonianxl/electrum-1
1f14894c43ca4193fb07c202f22e421365c50d2d
[ "MIT" ]
11
2018-10-31T19:46:05.000Z
2019-09-25T20:18:37.000Z
from .labels import LabelsPlugin from electrum.plugin import hook class Plugin(LabelsPlugin): @hook def load_wallet(self, wallet, window): self.start_wallet(wallet) def on_pulled(self, wallet): self.print_error('labels pulled from server')
22.583333
53
0.715867
e3098be685d3ed673e0e9d6ccfd3db6c523df896
5,808
py
Python
how-to-use-azureml/automated-machine-learning/forecasting-grouping/build.py
rigidz/https-github.com-Azure-MachineLearningNotebooks
8f2fa913209c21498fa67e08394bace12b47e2a4
[ "MIT" ]
1
2020-01-09T05:54:54.000Z
2020-01-09T05:54:54.000Z
how-to-use-azureml/automated-machine-learning/forecasting-grouping/build.py
rigidz/https-github.com-Azure-MachineLearningNotebooks
8f2fa913209c21498fa67e08394bace12b47e2a4
[ "MIT" ]
null
null
null
how-to-use-azureml/automated-machine-learning/forecasting-grouping/build.py
rigidz/https-github.com-Azure-MachineLearningNotebooks
8f2fa913209c21498fa67e08394bace12b47e2a4
[ "MIT" ]
1
2020-04-22T10:58:57.000Z
2020-04-22T10:58:57.000Z
from typing import List, Dict import copy import json import pandas as pd import re from azureml.core import RunConfiguration from azureml.core.compute import ComputeTarget from azureml.core.conda_dependencies import CondaDependencies from azureml.core.dataset import Dataset from azureml.data import TabularDataset fro...
40.055172
102
0.657197
ce0f6902b8739e9a5648395e23cf716fca5a1e40
1,686
py
Python
aries_cloudagent/protocols/introduction/v0_1/messages/invitation.py
jcourt562/aries-cloudagent-python
de291184c59006391a76317826983dd1eb0ada5d
[ "Apache-2.0" ]
1
2020-11-30T05:47:54.000Z
2020-11-30T05:47:54.000Z
aries_cloudagent/protocols/introduction/v0_1/messages/invitation.py
jcourt562/aries-cloudagent-python
de291184c59006391a76317826983dd1eb0ada5d
[ "Apache-2.0" ]
1
2020-02-25T19:01:16.000Z
2020-02-25T19:01:16.000Z
aries_cloudagent/protocols/introduction/v0_1/messages/invitation.py
jcourt562/aries-cloudagent-python
de291184c59006391a76317826983dd1eb0ada5d
[ "Apache-2.0" ]
2
2020-02-18T20:34:01.000Z
2021-03-12T16:18:30.000Z
"""Represents an invitation returned to the introduction service.""" from marshmallow import fields from aries_cloudagent.messaging.agent_message import AgentMessage, AgentMessageSchema # FIXME: We shouldn't rely on a hardcoded message version here. from aries_cloudagent.protocols.connections.v1_0.messages.connectio...
28.576271
88
0.699881