hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1aa33e57a59fca116b2af179ff784a6692d4ca
304
py
Python
utils/procon_tools/languages/python_utils.py
fumiphys/programming_contest
b9466e646045e1c64571af2a1e64813908e70841
[ "MIT" ]
7
2019-04-30T14:25:40.000Z
2020-12-19T17:38:11.000Z
utils/procon_tools/languages/python_utils.py
fumiphys/programming_contest
b9466e646045e1c64571af2a1e64813908e70841
[ "MIT" ]
46
2018-09-19T16:42:09.000Z
2020-05-07T09:05:08.000Z
utils/procon_tools/languages/python_utils.py
fumiphys/programming_contest
b9466e646045e1c64571af2a1e64813908e70841
[ "MIT" ]
null
null
null
'''Python utils ''' from config import exec_time_base from pc_utils import exec_command def exec_py3_input(source, inp): '''execute python scirpt ''' stdout_data, stderr_data, returncode = exec_command( exec_time_base + ["python3", source], inp) return stdout_data, stderr_data
23.384615
56
0.717105
4a1aa410f34e866edf9f29b77e9b762147db342b
7,136
py
Python
cloudroast/glance/regression/image_operations/deactivate_image_test.py
melissa-kam/cloudroast
59a3c8b058991d7144fa46e6d97be9bb5bb9deae
[ "Apache-2.0" ]
null
null
null
cloudroast/glance/regression/image_operations/deactivate_image_test.py
melissa-kam/cloudroast
59a3c8b058991d7144fa46e6d97be9bb5bb9deae
[ "Apache-2.0" ]
null
null
null
cloudroast/glance/regression/image_operations/deactivate_image_test.py
melissa-kam/cloudroast
59a3c8b058991d7144fa46e6d97be9bb5bb9deae
[ "Apache-2.0" ]
null
null
null
""" Copyright 2015 Rackspace Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dist...
36.040404
79
0.655409
4a1aa4ae21559a1b0f4137218649e7cff3bdb073
3,736
py
Python
tests/integration/offer/multibuy_benefit_tests.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
tests/integration/offer/multibuy_benefit_tests.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
null
null
null
tests/integration/offer/multibuy_benefit_tests.py
endgame/django-oscar
e5d78436e20b55902537a6cc82edf4e22568f9d6
[ "BSD-3-Clause" ]
1
2019-07-10T06:32:14.000Z
2019-07-10T06:32:14.000Z
from decimal import Decimal as D from django.test import TestCase from django_dynamic_fixture import G from oscar.apps.offer import models from oscar.apps.basket.models import Basket from oscar_testsupport.factories import create_product class TestAMultibuyDiscountAppliedWithCountCondition(TestCase): def setUp...
42.942529
71
0.690578
4a1aa5bd88e9f097500d62cc0eb8109069b21091
19,319
py
Python
main.py
runzhouge/MAC
a35be044797100051934254b71d892eda3853e6a
[ "MIT" ]
36
2018-11-12T18:56:17.000Z
2022-03-30T02:24:05.000Z
main.py
runzhouge/MAC
a35be044797100051934254b71d892eda3853e6a
[ "MIT" ]
5
2018-11-28T03:32:36.000Z
2019-11-29T02:48:19.000Z
main.py
runzhouge/MAC
a35be044797100051934254b71d892eda3853e6a
[ "MIT" ]
10
2019-01-04T23:01:47.000Z
2022-01-03T06:17:19.000Z
from __future__ import division import tensorflow as tf import numpy as np import acl_model from six.moves import xrange import time from sklearn.metrics import average_precision_score import pickle import mpu import operator import os import argparse import math from scipy.special import expit #===================...
44.309633
294
0.624463
4a1aa856cd6943138123864f633a7a7f86ca304e
20,928
py
Python
built-in/TensorFlow/Benchmark/nlp/Nezha-large_for_TensorFlow/utils/create_squad_data.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/TensorFlow/Benchmark/nlp/Nezha-large_for_TensorFlow/utils/create_squad_data.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
1
2022-01-20T03:11:05.000Z
2022-01-20T06:53:39.000Z
built-in/TensorFlow/Benchmark/nlp/Nezha-large_for_TensorFlow/utils/create_squad_data.py
Ascend/modelzoo
f018cfed33dbb1cc2110b9ea2e233333f71cc509
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
37.172291
90
0.661841
4a1aa8c2d60f22a8d64ea6280b0fa21dfefc93c2
18,803
py
Python
emodelrunner/GUI_utils/simulator.py
BlueBrain/EModelRunner
3d46e9ce20e76666288e84a300c329b46f0fa2c4
[ "ECL-2.0", "Apache-2.0" ]
3
2021-12-03T15:28:26.000Z
2022-02-01T11:44:29.000Z
emodelrunner/GUI_utils/simulator.py
BlueBrain/EModelRunner
3d46e9ce20e76666288e84a300c329b46f0fa2c4
[ "ECL-2.0", "Apache-2.0" ]
27
2021-12-03T09:16:29.000Z
2022-03-03T10:29:21.000Z
emodelrunner/GUI_utils/simulator.py
BlueBrain/EModelRunner
3d46e9ce20e76666288e84a300c329b46f0fa2c4
[ "ECL-2.0", "Apache-2.0" ]
4
2021-12-07T08:16:29.000Z
2022-02-22T17:55:58.000Z
"""Class containing simulation for the GUI.""" # Copyright 2020-2022 Blue Brain Project / EPFL # 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....
36.090211
98
0.615008
4a1aa9563c7f3cd2433d12e4fa01e3158f23ead2
7,979
py
Python
serious_django_services/__init__.py
serioeseGmbH/serious-django-services
001d73bc9e85e0ae1c3acdbcb30ca911dcb1a093
[ "MIT" ]
4
2019-02-20T09:32:45.000Z
2021-07-25T19:05:40.000Z
serious_django_services/__init__.py
serioeseGmbH/serious-django-services
001d73bc9e85e0ae1c3acdbcb30ca911dcb1a093
[ "MIT" ]
5
2018-12-22T10:51:15.000Z
2019-08-21T13:25:49.000Z
serious_django_services/__init__.py
serioeseGmbH/serious-django-services
001d73bc9e85e0ae1c3acdbcb30ca911dcb1a093
[ "MIT" ]
null
null
null
from abc import ABC, ABCMeta import collections from django.contrib.auth import get_user_model from django.core.exceptions import ImproperlyConfigured, PermissionDenied, \ ValidationError from django.forms.models import model_to_dict from django.utils.translation import gettext as _ class ServiceMetaclass(ABCMet...
35.30531
120
0.633287
4a1aa992ef879cfca1896a9b185e5c805eb1a074
20,185
py
Python
vCenterShell/commands/command_orchestrator.py
doppleware/vCenterShell_test
c91870169c5780e5c561b2ae682991af20257c4f
[ "Apache-2.0" ]
null
null
null
vCenterShell/commands/command_orchestrator.py
doppleware/vCenterShell_test
c91870169c5780e5c561b2ae682991af20257c4f
[ "Apache-2.0" ]
null
null
null
vCenterShell/commands/command_orchestrator.py
doppleware/vCenterShell_test
c91870169c5780e5c561b2ae682991af20257c4f
[ "Apache-2.0" ]
null
null
null
from logging import getLogger import jsonpickle import time from pyVim.connect import SmartConnect, Disconnect from common.cloud_shell.driver_helper import CloudshellDriverHelper from common.cloud_shell.resource_remover import CloudshellResourceRemover from common.model_factory import ResourceModelParser from common....
53.399471
128
0.649938
4a1aa99ac4c55185926bce188b8f33c2499056e8
7,437
py
Python
msmarco/rnet/config_msm.py
burglarhobbit/R-net
fd7c2037441ed005b1eb6b0dcc812f2b74deef38
[ "MIT" ]
null
null
null
msmarco/rnet/config_msm.py
burglarhobbit/R-net
fd7c2037441ed005b1eb6b0dcc812f2b74deef38
[ "MIT" ]
null
null
null
msmarco/rnet/config_msm.py
burglarhobbit/R-net
fd7c2037441ed005b1eb6b0dcc812f2b74deef38
[ "MIT" ]
null
null
null
import os import tensorflow as tf from base64 import b64decode as bd from prepro_msm import prepro from analyze_dataset import prepro_ from main import train, test flags = tf.flags home = os.path.expanduser("~") hdd2 = "/media/hdd2" if os.path.isdir(hdd2): path = hdd2 else: path = home train_file = os.path.join...
38.937173
111
0.731881
4a1aaaf4ba3aa7513d9113157b6702d13a779d61
38
py
Python
name.py
hakerona/Tutorial
7f37299576d0db17c3fbfc0239123633499dfe11
[ "MIT" ]
null
null
null
name.py
hakerona/Tutorial
7f37299576d0db17c3fbfc0239123633499dfe11
[ "MIT" ]
null
null
null
name.py
hakerona/Tutorial
7f37299576d0db17c3fbfc0239123633499dfe11
[ "MIT" ]
null
null
null
def name_print(name): print(name)
12.666667
21
0.684211
4a1aab317fb848451c82ed6f179975810bd574aa
2,513
py
Python
plugin/formatting.py
rictic/LSP
7ecade4273e46a9f73523cfcf9584fd32bedc060
[ "MIT" ]
null
null
null
plugin/formatting.py
rictic/LSP
7ecade4273e46a9f73523cfcf9584fd32bedc060
[ "MIT" ]
1
2022-02-26T20:54:56.000Z
2022-02-26T20:54:56.000Z
plugin/formatting.py
isabella232/LSP
7ecade4273e46a9f73523cfcf9584fd32bedc060
[ "MIT" ]
1
2022-02-26T14:26:58.000Z
2022-02-26T14:26:58.000Z
import sublime_plugin from .core.protocol import Request, Range from .core.url import filename_to_uri from .core.clients import client_for_view from .core.configurations import is_supported_view class LspFormatDocumentCommand(sublime_plugin.TextCommand): def is_enabled(self): if is_supported_view(self.vi...
37.507463
97
0.537207
4a1aac32f0fdeace36028db4d0a162557510b3a7
254
py
Python
manage.py
barseghyanartur/wagtaildemo
7ee38cf379abca98627203ae7dce094535a60bff
[ "BSD-3-Clause" ]
97
2016-12-13T05:49:10.000Z
2022-03-23T08:08:36.000Z
manage.py
barseghyanartur/wagtaildemo
7ee38cf379abca98627203ae7dce094535a60bff
[ "BSD-3-Clause" ]
14
2017-01-07T22:29:32.000Z
2019-02-03T16:12:46.000Z
manage.py
barseghyanartur/wagtaildemo
7ee38cf379abca98627203ae7dce094535a60bff
[ "BSD-3-Clause" ]
60
2016-12-19T16:49:27.000Z
2020-12-16T01:56:28.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wagtaildemo.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.090909
75
0.775591
4a1ab0af437a280edd8ccf24e2acd06c07cc24b3
553
py
Python
src/repositories/__init__.py
WebisD/chat-irc-protocol
6720d1789a366bfd7943b81c7c84cb0941c66e80
[ "MIT" ]
null
null
null
src/repositories/__init__.py
WebisD/chat-irc-protocol
6720d1789a366bfd7943b81c7c84cb0941c66e80
[ "MIT" ]
null
null
null
src/repositories/__init__.py
WebisD/chat-irc-protocol
6720d1789a366bfd7943b81c7c84cb0941c66e80
[ "MIT" ]
3
2021-06-03T12:27:27.000Z
2021-06-14T22:48:36.000Z
from .repository_interface import * from .user_repository import * from .room_repository import * from .participants_repository import * from .message_repository import * from .room_messages_repository import * from .file_repository import * from .words_repository import * __all_ = ( repository_interface.__all__ +...
26.333333
39
0.78481
4a1ab2e05b9423646cff773a58bd4e8a34348bb1
127,009
py
Python
mrcnn/model.py
IgorVetoshev/cardif_project
2934c53914962c21392e2ea35d6a6809197eb710
[ "MIT" ]
null
null
null
mrcnn/model.py
IgorVetoshev/cardif_project
2934c53914962c21392e2ea35d6a6809197eb710
[ "MIT" ]
null
null
null
mrcnn/model.py
IgorVetoshev/cardif_project
2934c53914962c21392e2ea35d6a6809197eb710
[ "MIT" ]
null
null
null
""" Mask R-CNN The main Mask R-CNN model implementation. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) """ import os import random import datetime import re import math import logging from collections import OrderedDict import multiprocessing import numpy as np import te...
44.238593
115
0.612122
4a1ab30e9df07dbd63fc01963db93ed77c4e02de
321
py
Python
portal/urls.py
mezidia/django_labs
8e9a4d57b1feb3b54e666c6583d14b978f230129
[ "MIT" ]
null
null
null
portal/urls.py
mezidia/django_labs
8e9a4d57b1feb3b54e666c6583d14b978f230129
[ "MIT" ]
26
2021-09-21T09:29:25.000Z
2022-03-02T15:27:16.000Z
portal/urls.py
mezidia/django_labs
8e9a4d57b1feb3b54e666c6583d14b978f230129
[ "MIT" ]
1
2021-11-14T16:40:52.000Z
2021-11-14T16:40:52.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('flight/<int:id>/', views.flight, name='flight'), path('flights', views.flights, name='flights'), path('about', views.about, name='about'), path('contacts', views.contacts, name='contacts'), ]...
29.181818
58
0.647975
4a1ab3751be2a7aed6b26f6f3fbbb7df3561b002
750
py
Python
dialogs/specialecho.py
uezo/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
14
2019-08-05T22:54:59.000Z
2021-12-21T00:29:22.000Z
dialogs/specialecho.py
whitecat-22/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
1
2021-06-17T09:30:33.000Z
2021-06-18T07:16:37.000Z
dialogs/specialecho.py
whitecat-22/linebot-project-template
294d40f5c50a3bbee346314107b60e98f4e07bf0
[ "MIT" ]
5
2019-09-03T06:51:44.000Z
2021-06-17T09:40:42.000Z
from minette import DialogService # リクエスト情報やセッション情報を使ったおうむ返し class SpecialEchoDialogService(DialogService): def compose_response(self, request, context, connection): # 前回の発話内容をセッションから取得 previous_text = context.data.get("previous_text", "") # 今回の発話内容をセッションに格納 context.data["previous...
30
68
0.633333
4a1ab44e51a3ccbc5e4488081072effda4adeca1
8,018
py
Python
deephyper/search/nas/model/space/node.py
madhukar-m-rao/deephyper
d280701d9e4cae3e639be054bf1c5ef918d9a1a7
[ "BSD-3-Clause" ]
2
2020-08-26T09:15:27.000Z
2020-08-26T09:19:13.000Z
deephyper/search/nas/model/space/node.py
madhukar-m-rao/deephyper
d280701d9e4cae3e639be054bf1c5ef918d9a1a7
[ "BSD-3-Clause" ]
null
null
null
deephyper/search/nas/model/space/node.py
madhukar-m-rao/deephyper
d280701d9e4cae3e639be054bf1c5ef918d9a1a7
[ "BSD-3-Clause" ]
null
null
null
from tensorflow import keras from .....core.exceptions import DeephyperRuntimeError from .op.basic import Operation class Node: """This class represents a node of a graph Args: name (str): node name. """ # Number of 'Node' instances created num = 0 def __init__(self, name="", *args...
29.806691
218
0.593789
4a1ab4a7fbea592d1d3a5b745b176ff36581de3f
28
py
Python
config/__init__.py
UditGupta10/distTransE
b4ef028d11f9af934324935826255750c0dd2df3
[ "MIT" ]
57
2019-09-14T13:24:19.000Z
2022-03-27T13:17:02.000Z
config/__init__.py
UditGupta10/distTransE
b4ef028d11f9af934324935826255750c0dd2df3
[ "MIT" ]
2
2019-10-12T15:07:35.000Z
2020-05-11T11:53:40.000Z
config/__init__.py
UditGupta10/distTransE
b4ef028d11f9af934324935826255750c0dd2df3
[ "MIT" ]
11
2019-09-24T04:42:42.000Z
2021-11-23T08:21:01.000Z
from .Config import Config
14
27
0.785714
4a1ab4e36236d076ef4f8c8bcbd7ceddf56fd653
279
py
Python
ITcoach/DataAnalysis-master/day06/code/douban/config.py
ww35133634/chenxusheng
666e0eb3aedde46342faf0d4030f5c72b10c9732
[ "AFL-3.0" ]
null
null
null
ITcoach/DataAnalysis-master/day06/code/douban/config.py
ww35133634/chenxusheng
666e0eb3aedde46342faf0d4030f5c72b10c9732
[ "AFL-3.0" ]
null
null
null
ITcoach/DataAnalysis-master/day06/code/douban/config.py
ww35133634/chenxusheng
666e0eb3aedde46342faf0d4030f5c72b10c9732
[ "AFL-3.0" ]
null
null
null
# coding=utf-8 SPIDER_DEFAULT_HEADERS = {"User-Agnet":"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"} MONGO_HOST = "127.0.0.1" MONGO_PORT = 27017 MONGO_DB = "douban" MONGO_COLLECTION = "tv1"
46.5
175
0.738351
4a1ab609befb22a6122e172bd91d6df66084d250
4,300
py
Python
phylogeny/reconstruction/allquartets.py
mroctavious/Phylogeny
014461b5ec6323f42cf1c913f6a9bdba42e3bc05
[ "MIT" ]
2
2020-01-17T17:19:15.000Z
2021-04-18T22:27:59.000Z
phylogeny/reconstruction/allquartets.py
mroctavious/Phylogeny
014461b5ec6323f42cf1c913f6a9bdba42e3bc05
[ "MIT" ]
null
null
null
phylogeny/reconstruction/allquartets.py
mroctavious/Phylogeny
014461b5ec6323f42cf1c913f6a9bdba42e3bc05
[ "MIT" ]
2
2018-08-30T20:57:37.000Z
2020-09-09T06:29:02.000Z
""" All quartets method. Given an n×n additive matrix M with n ≥ 5 associated to a binary tree T with positive branch lengths, we can construct T using a two-step technique that we now describe. In Step 1, we compute a quartet tree on every four leaves by applying the Four Point Method to each 4×4 submatrix of M. ...
30.28169
84
0.627209
4a1ab63b86640412ca0e18389a70713c782a49af
13,150
py
Python
textacy/datasets/capitol_words.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
textacy/datasets/capitol_words.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
textacy/datasets/capitol_words.py
tbsexton/textacy
964614213c7261f91f09c106334269388d45f790
[ "Apache-2.0" ]
null
null
null
""" Capitol Words Congressional speeches ------------------------------------ A collection of ~11k (almost all) speeches given by the main protagonists of the 2016 U.S. Presidential election that had previously served in the U.S. Congress -- including Hillary Clinton, Bernie Sanders, Barack Obama, Ted Cruz, and John K...
42.694805
147
0.611103
4a1ab739417e20ae5e0551db037db4f2499401e0
3,232
py
Python
ext/v8/upstream/scons/engine/SCons/Tool/g++.py
bsingr/therubyracer
2397cae80aa8f458c028e28bdf2bd8a93e6161a6
[ "MIT", "Unlicense" ]
1
2015-11-05T01:29:05.000Z
2015-11-05T01:29:05.000Z
ext/v8/upstream/scons/engine/SCons/Tool/g++.py
bsingr/therubyracer
2397cae80aa8f458c028e28bdf2bd8a93e6161a6
[ "MIT", "Unlicense" ]
null
null
null
ext/v8/upstream/scons/engine/SCons/Tool/g++.py
bsingr/therubyracer
2397cae80aa8f458c028e28bdf2bd8a93e6161a6
[ "MIT", "Unlicense" ]
null
null
null
"""SCons.Tool.g++ Tool-specific initialization for g++. There normally shouldn't be any need to import this module directly. It will usually be imported through the generic SCons.Tool.Tool() selection method. """ # # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation # # P...
35.516484
95
0.659344
4a1ab81dfed8fbace06f48106bd00399c4e0c8b2
2,119
py
Python
onnxruntime/test/python/onnx_backend_test_series.py
stevenlix/onnxruntime
8c561c629653e6f4344b5297be3f3faeadb3fe1b
[ "MIT" ]
1
2019-03-29T22:18:04.000Z
2019-03-29T22:18:04.000Z
onnxruntime/test/python/onnx_backend_test_series.py
stevenlix/onnxruntime
8c561c629653e6f4344b5297be3f3faeadb3fe1b
[ "MIT" ]
null
null
null
onnxruntime/test/python/onnx_backend_test_series.py
stevenlix/onnxruntime
8c561c629653e6f4344b5297be3f3faeadb3fe1b
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import os import unittest import onnx.backend.test import onnxruntime.backend as c2 pytest_plugins = 'onnx.backend.test.report', backend_test = onnx.backend.test.BackendTest(c2, __name__) # Type not supported backend_te...
27.881579
59
0.780085
4a1ab91ae3e16750685b782fbbad64d268c6e735
302
py
Python
src/hpx_dashboard/server/plots/__init__.py
jokteur/hpx-dashboard
91ca3876dec389e514f89f34acdb6ec9cac9d1b4
[ "BSD-3-Clause" ]
6
2020-07-31T08:12:09.000Z
2022-01-16T03:35:06.000Z
src/hpx_dashboard/server/plots/__init__.py
jokteur/hpx-dashboard
91ca3876dec389e514f89f34acdb6ec9cac9d1b4
[ "BSD-3-Clause" ]
23
2020-08-12T08:51:12.000Z
2020-09-29T16:45:54.000Z
src/hpx_dashboard/server/plots/__init__.py
jokteur/hpx-dashboard
91ca3876dec389e514f89f34acdb6ec9cac9d1b4
[ "BSD-3-Clause" ]
2
2020-10-08T13:55:45.000Z
2022-01-16T03:37:13.000Z
# -*- coding: utf-8 -*- # # HPX - dashboard # # Copyright (c) 2020 - ETH Zurich # All rights reserved # # SPDX-License-Identifier: BSD-3-Clause """ """ from .base import BaseElement from .generator import TimeSeries from .tasks import TasksPlot __all__ = ["TimeSeries", "TasksPlot", "BaseElement"]
15.894737
52
0.688742
4a1ab962419170264d8b32e3a6e51171a1929e89
12,592
py
Python
tensorflow_model_analysis/evaluators/eval_saved_model_util.py
paulinenicolas1/model-analysis
e6e597db29b31c29f41ccae6921ae7896914fd3c
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/evaluators/eval_saved_model_util.py
paulinenicolas1/model-analysis
e6e597db29b31c29f41ccae6921ae7896914fd3c
[ "Apache-2.0" ]
1
2021-02-24T00:48:35.000Z
2021-02-24T00:48:35.000Z
tensorflow_model_analysis/evaluators/eval_saved_model_util.py
paulinenicolas1/model-analysis
e6e597db29b31c29f41ccae6921ae7896914fd3c
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
41.973333
80
0.724031
4a1abb1a49beda2c307fd2400ae6009eafe1c6c6
2,505
py
Python
docgen.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
9
2015-09-02T20:13:13.000Z
2020-07-16T14:17:36.000Z
docgen.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
5
2018-02-20T10:47:02.000Z
2020-05-20T10:05:49.000Z
docgen.py
bureau14/qdb-api-python
2a010df3252d39bc4d529f545547c5cefb9fe86e
[ "BSD-3-Clause" ]
1
2018-04-01T11:12:56.000Z
2018-04-01T11:12:56.000Z
import os import pdoc import quasardb import quasardb.pool import quasardb.stats import quasardb.pandas as qdbpd context = pdoc.Context() # This is a hack: pydoc has a lot of issues with importing submodules properly. It's # related to pybind11 generating invalid docstrings, and we would get import errors # and whatn...
34.315068
92
0.66507
4a1abb74416fa577201894b4b19679214ec4fb1d
2,906
py
Python
nicos_virt_mlz/treff/setups/det.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_virt_mlz/treff/setups/det.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_virt_mlz/treff/setups/det.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- description = 'detector setup' group = 'basic' includes = [ 'analyzer', 'beamstop', 'treff', ] sysconfig = dict( datasinks = ['NPGZFileSink', 'YAMLSaver', 'LiveViewSink'], ) basename = '%(proposal)s_%(session.experiment.sample.filename)s_' scanbasename = basename + '%(scancou...
29.06
73
0.558844
4a1abb8f1e1ebdc26fc9428bbcf727de60963fa8
518
py
Python
pandas_ta/overlap/hlc3.py
allahyarzadeh/pandas-ta
1866016b7b73caef0fc15d55bfb73dcd58b3d21f
[ "MIT" ]
1
2019-07-09T11:07:39.000Z
2019-07-09T11:07:39.000Z
pandas_ta/overlap/hlc3.py
marchanero/pandas-ta
a1dac5922f544af795fd6311df02406fc2728ebe
[ "MIT" ]
null
null
null
pandas_ta/overlap/hlc3.py
marchanero/pandas-ta
a1dac5922f544af795fd6311df02406fc2728ebe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..utils import get_offset, verify_series def hlc3(high, low, close, offset=None, **kwargs): """Indicator: HLC3""" # Validate Arguments high = verify_series(high) low = verify_series(low) close = verify_series(close) offset = get_offset(offset) # Calculate Resul...
22.521739
50
0.611969
4a1abca9eb77d523bf1b8656ffc0805322fe40b8
5,001
py
Python
scripts/hdt2csv.py
KRRVU/kgbench
d70ff8a6f48228f38a4ad3fee8df033050213556
[ "MIT" ]
19
2020-11-12T18:34:18.000Z
2022-01-25T19:33:22.000Z
scripts/hdt2csv.py
KRRVU/kgbench
d70ff8a6f48228f38a4ad3fee8df033050213556
[ "MIT" ]
1
2022-01-25T19:21:38.000Z
2022-01-26T09:38:07.000Z
scripts/hdt2csv.py
KRRVU/kgbench
d70ff8a6f48228f38a4ad3fee8df033050213556
[ "MIT" ]
3
2021-01-17T21:37:58.000Z
2022-01-26T09:49:36.000Z
#!/usr/bin/env python import csv import gzip import sys # https://github.com/Callidon/pyHDT import hdt from tqdm import tqdm import pandas as pd from rdflib import Graph import kgbench as kg def generate_csv_context(doc): entities = set() relations = set() datatypes = set() triples, c = doc.searc...
30.493902
131
0.557888
4a1abd5a778691beefeed9ecd90ce0983ae35132
2,276
py
Python
netforce_hr/netforce_hr/models/hr_payslip_line.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
27
2015-09-30T23:53:30.000Z
2021-06-07T04:56:25.000Z
netforce_hr/netforce_hr/models/hr_payslip_line.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
191
2015-10-08T11:46:30.000Z
2019-11-14T02:24:36.000Z
netforce_hr/netforce_hr/models/hr_payslip_line.py
nfco/netforce
35252eecd0a6633ab9d82162e9e3ff57d4da029a
[ "MIT" ]
32
2015-10-01T03:59:43.000Z
2022-01-13T07:31:05.000Z
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # 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, merge, publ...
42.943396
97
0.690685
4a1abf397847a3aeeeeef30de37d22628d62ec89
1,109
py
Python
symposion_project/proposals/models.py
ImaginaryLandscape/symposion
e3d74d8d274e6aaf716b38a4dd3f830c76e9d295
[ "BSD-3-Clause" ]
3
2018-07-24T12:10:28.000Z
2021-11-16T13:52:56.000Z
symposion_project/proposals/models.py
ImaginaryLandscape/symposion
e3d74d8d274e6aaf716b38a4dd3f830c76e9d295
[ "BSD-3-Clause" ]
1
2022-03-21T07:17:57.000Z
2022-03-21T07:17:57.000Z
symposion_project/proposals/models.py
ImaginaryLandscape/symposion
e3d74d8d274e6aaf716b38a4dd3f830c76e9d295
[ "BSD-3-Clause" ]
1
2018-07-24T12:10:29.000Z
2018-07-24T12:10:29.000Z
from django.db import models from symposion.proposals.models import ProposalBase class Proposal(ProposalBase): AUDIENCE_LEVEL_NOVICE = 1 AUDIENCE_LEVEL_EXPERIENCED = 2 AUDIENCE_LEVEL_INTERMEDIATE = 3 AUDIENCE_LEVELS = [ (AUDIENCE_LEVEL_NOVICE, "Novice"), (AUDIENCE_LEVEL_INTE...
26.404762
235
0.702435
4a1ac1313a085010610779327b887553062f39ff
679
py
Python
IPProxyPool/settings.py
jiangyx3915/IPProxyPool
75ed064bf376fd530774efa353d18890346291e1
[ "MIT" ]
null
null
null
IPProxyPool/settings.py
jiangyx3915/IPProxyPool
75ed064bf376fd530774efa353d18890346291e1
[ "MIT" ]
null
null
null
IPProxyPool/settings.py
jiangyx3915/IPProxyPool
75ed064bf376fd530774efa353d18890346291e1
[ "MIT" ]
null
null
null
"""配置文件""" # Redis 配置 REDIS_HOST = '127.0.0.1' # Redis数据库地址 REDIS_PORT = 6379 # Redis端口 REDIS_PASSWORD = None # Redis密码,如无填None REDIS_KEY = 'proxies' # 代理池redis键值 # 代理分数 INITIAL_SCORE = 10 # 初始化分数 MIN_SCORE = 0 # 最低分 MAX_SCORE = 100 # 最高分 POOL_MAX_THRESHOLD ...
23.413793
45
0.57732
4a1ac147c44f480aabb3af6bd3d6d8d1a7f90677
1,796
py
Python
part3/sprites.py
codingfever-anishmishra/Warrior-Game-developement-in-python
ff9bb627251f6b82a08f3bc7d84fb72068fea3db
[ "Apache-2.0" ]
null
null
null
part3/sprites.py
codingfever-anishmishra/Warrior-Game-developement-in-python
ff9bb627251f6b82a08f3bc7d84fb72068fea3db
[ "Apache-2.0" ]
null
null
null
part3/sprites.py
codingfever-anishmishra/Warrior-Game-developement-in-python
ff9bb627251f6b82a08f3bc7d84fb72068fea3db
[ "Apache-2.0" ]
null
null
null
from random import randrange from settings import* import pygame vec = pygame.math.Vector2 class Platform(pygame.sprite.Sprite): def __init__(self,game): self.groups = game.all_sprites,game.platform pygame.sprite.Sprite.__init__(self, self.groups) self.game = game self.image = self....
41.767442
92
0.649777
4a1ac16d769bf76943e33514212d418bb4594290
305
py
Python
2021/05/test_code.py
Akumatic/Advent-of-Code
bf2efe4d5a2c95ceb5f52ddbbc15ef0f2ac48618
[ "MIT" ]
22
2019-12-13T20:41:52.000Z
2022-01-05T00:19:21.000Z
2021/05/test_code.py
Akumatic/Advent-of-Code
bf2efe4d5a2c95ceb5f52ddbbc15ef0f2ac48618
[ "MIT" ]
null
null
null
2021/05/test_code.py
Akumatic/Advent-of-Code
bf2efe4d5a2c95ceb5f52ddbbc15ef0f2ac48618
[ "MIT" ]
13
2019-12-21T02:35:19.000Z
2022-02-14T09:37:01.000Z
# SPDX-License-Identifier: MIT # Copyright (c) 2021 Akumatic from code import part1, part2, read_file def test(): vals = read_file("test_input.txt") assert part1(vals) == 5 print("Passed Part 1") assert part2(vals) == 12 print("Passed Part 2") if __name__ == "__main__": test()
20.333333
40
0.652459
4a1ac1768594b565edee8817e2b1e09c374198e2
7,836
py
Python
verifier/accessions.py
jwestgard/aws-verifier
436258d5e5cf008bc39a9fbac334e6acbdba6693
[ "MIT" ]
null
null
null
verifier/accessions.py
jwestgard/aws-verifier
436258d5e5cf008bc39a9fbac334e6acbdba6693
[ "MIT" ]
null
null
null
verifier/accessions.py
jwestgard/aws-verifier
436258d5e5cf008bc39a9fbac334e6acbdba6693
[ "MIT" ]
null
null
null
import csv from datetime import datetime import os import re import sys from .utils import calculate_md5 from .utils import human_readable class Asset(): """ Class representing a single asset under preservation. """ def __init__(self, filename, sourcefile, sourceline, bytes=None, ti...
36.446512
79
0.460822
4a1ac24371a3692e9d56dad74d5f91e43cadad05
11,005
py
Python
client_sdk_python/providers/eth_tester/defaults.py
awake006/client-sdk-python
34393e417f74a65f04b643b26d8f9d2ccb0c886e
[ "MIT" ]
null
null
null
client_sdk_python/providers/eth_tester/defaults.py
awake006/client-sdk-python
34393e417f74a65f04b643b26d8f9d2ccb0c886e
[ "MIT" ]
null
null
null
client_sdk_python/providers/eth_tester/defaults.py
awake006/client-sdk-python
34393e417f74a65f04b643b26d8f9d2ccb0c886e
[ "MIT" ]
null
null
null
import operator import random import sys from eth_tester.exceptions import ( BlockNotFound, FilterNotFound, TransactionNotFound, ValidationError, ) from eth_utils import ( decode_hex, encode_hex, is_null, keccak, ) from client_sdk_python.utils.formatters import ( apply_formatter_if...
32.084548
97
0.660245
4a1ac465ef210307d339bbfc1b3821e6f610fb92
21,290
py
Python
pdm/pep517/_vendor/cerberus/errors.py
danieleades/pdm-pep517
129697f841c0f635465caf83332c75f5e30b0c6f
[ "MIT" ]
4
2021-04-14T16:18:08.000Z
2022-01-13T13:03:47.000Z
pdm/pep517/_vendor/cerberus/errors.py
danieleades/pdm-pep517
129697f841c0f635465caf83332c75f5e30b0c6f
[ "MIT" ]
29
2021-03-23T15:40:56.000Z
2022-03-10T11:55:38.000Z
pdm/pep517/_vendor/cerberus/errors.py
frostming/pdm-pep517
99b6aab5f3cb2dac657f3a750d8eb4ad001dd095
[ "MIT" ]
6
2021-03-21T17:42:25.000Z
2022-01-25T21:28:35.000Z
# -*-: coding utf-8 -*- """ This module contains the error-related constants and classes. """ from __future__ import absolute_import from collections import defaultdict, namedtuple from copy import copy, deepcopy from functools import wraps from pprint import pformat from pdm.pep517._vendor.cerberus.platform import ...
32.503817
88
0.621043
4a1ac507494bd8e55049ea325528eb7babf490de
9,020
py
Python
EInk_Bonnet_Event_Calendar/code.py
claycooper/Adafruit_Learning_System_Guides
890431bd4b9df929bc601e5886c2a735d89814f9
[ "MIT" ]
null
null
null
EInk_Bonnet_Event_Calendar/code.py
claycooper/Adafruit_Learning_System_Guides
890431bd4b9df929bc601e5886c2a735d89814f9
[ "MIT" ]
null
null
null
EInk_Bonnet_Event_Calendar/code.py
claycooper/Adafruit_Learning_System_Guides
890431bd4b9df929bc601e5886c2a735d89814f9
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams for Adafruit Industries # # SPDX-License-Identifier: MIT from __future__ import print_function from datetime import datetime import time import pickle import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlo...
31.760563
86
0.625499
4a1ac52e232df17e8fdb26da68c0a77bae92aa5d
4,090
py
Python
src/ramstk/models/dbtables/programdb_stakeholder_table.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
4
2018-08-26T09:11:36.000Z
2019-05-24T12:01:02.000Z
src/ramstk/models/dbtables/programdb_stakeholder_table.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
52
2018-08-24T12:51:22.000Z
2020-12-28T04:59:42.000Z
src/ramstk/models/dbtables/programdb_stakeholder_table.py
weibullguy/ramstk
3ec41d7e2933045a7a8028aed6c6b04365495095
[ "BSD-3-Clause" ]
1
2018-10-11T07:57:55.000Z
2018-10-11T07:57:55.000Z
# -*- coding: utf-8 -*- # # ramstk.models.dbtables.programdb_stakeholder_table.py is part of The RAMSTK # Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """RAMSTKStakeholder Table Model.""" # Standard Library Imports from datetime i...
31.705426
88
0.66577
4a1ac557069ae9376b067f578803c4e989e61d74
1,857
py
Python
EAST/crnn.py
Abhishek-Aditya-bs/Scene-Text-Detection-and-Recognition
8fa079e4146bc5b254235e4ab88262ea897f4d9f
[ "MIT" ]
null
null
null
EAST/crnn.py
Abhishek-Aditya-bs/Scene-Text-Detection-and-Recognition
8fa079e4146bc5b254235e4ab88262ea897f4d9f
[ "MIT" ]
null
null
null
EAST/crnn.py
Abhishek-Aditya-bs/Scene-Text-Detection-and-Recognition
8fa079e4146bc5b254235e4ab88262ea897f4d9f
[ "MIT" ]
null
null
null
import sys sys.path.insert(1, '../crnn') import torch from torch.autograd import Variable import torch.nn as nn from torch.autograd import Variable import torch.utils.data import util import dataset from PIL import Image import os import models.crnn as crnn from warpctc_pytorch import CTCLoss import numpy as np import ...
29.951613
87
0.712439
4a1ac5da326011b4e0fc3c8f9342792408d238d0
2,005
py
Python
day7/sensor/app.py
smalljiny/raspi-class-example
7f92f34d366b94f9ae3c7da5ebeacdeb628be446
[ "Apache-2.0" ]
null
null
null
day7/sensor/app.py
smalljiny/raspi-class-example
7f92f34d366b94f9ae3c7da5ebeacdeb628be446
[ "Apache-2.0" ]
null
null
null
day7/sensor/app.py
smalljiny/raspi-class-example
7f92f34d366b94f9ae3c7da5ebeacdeb628be446
[ "Apache-2.0" ]
null
null
null
import time import cherrypy from paste.translogger import TransLogger from controllers import app import RPi.GPIO as GPIO import time class RaspiTransLogger(TransLogger): def write_log(self, environ, method, req_uri, start, status, bytes): if bytes is None: bytes = '-' remote_addr = '-'...
31.825397
74
0.610973
4a1ac5edec3b0fa551d2272832260765a92ff05c
6,940
py
Python
bbob_pproc/config.py
RubenProject/GlowwormSwarmOptimizationBench
a00f95eddb8a029f2d029ea8a33188c1c077f1d9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bbob_pproc/config.py
RubenProject/GlowwormSwarmOptimizationBench
a00f95eddb8a029f2d029ea8a33188c1c077f1d9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
bbob_pproc/config.py
RubenProject/GlowwormSwarmOptimizationBench
a00f95eddb8a029f2d029ea8a33188c1c077f1d9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """This module is an attempt for a global configuration file for various parameters. The import of this module, :py:mod:`config`, changes default settings (attributes) of other modules. This works, because each module has only one instance. Before this module is impo...
55.967742
143
0.609078
4a1ac68bfc1971367a235a2a095c36c3cc02d11f
2,273
py
Python
insure_model/training/test_train.py
WipadaChan/MLOpsPython
f4752b6fdd5f1b04f0720c4990144c94b72f2b99
[ "MIT" ]
null
null
null
insure_model/training/test_train.py
WipadaChan/MLOpsPython
f4752b6fdd5f1b04f0720c4990144c94b72f2b99
[ "MIT" ]
null
null
null
insure_model/training/test_train.py
WipadaChan/MLOpsPython
f4752b6fdd5f1b04f0720c4990144c94b72f2b99
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import lightgbm # functions to test are imported from train.py from insure_model.training.train import split_data from insure_model.training.train import train_model from insure_model.training.train import get_model_metrics """A set of simple unit tests for protecting against re...
27.385542
79
0.650242
4a1ac6d93eb2094bfcdd569ffe9e5ba3a9bdfce6
4,275
py
Python
cryptowatch/stream/proto/public/markets/asset_pb2.py
hikarubw/cw-sdk-python
1b72a85b3b2f5fc8003677a68a26e1b349bea2f1
[ "BSD-2-Clause" ]
134
2019-12-03T21:21:31.000Z
2022-03-27T16:15:23.000Z
cryptowatch/stream/proto/public/markets/asset_pb2.py
hikarubw/cw-sdk-python
1b72a85b3b2f5fc8003677a68a26e1b349bea2f1
[ "BSD-2-Clause" ]
28
2019-12-11T10:58:28.000Z
2021-12-20T21:16:46.000Z
cryptowatch/stream/proto/public/markets/asset_pb2.py
hikarubw/cw-sdk-python
1b72a85b3b2f5fc8003677a68a26e1b349bea2f1
[ "BSD-2-Clause" ]
34
2019-12-10T21:54:47.000Z
2022-01-11T06:02:22.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: public/markets/asset.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database...
35.040984
332
0.773567
4a1ac6ea0838e0f524a553c2b0f218921ca31d7e
1,095
py
Python
src/fractal.py
Gaoadt/python-fractal-renderer
968a7cbb5c864a760992913bc5fb350503eda8ac
[ "MIT" ]
null
null
null
src/fractal.py
Gaoadt/python-fractal-renderer
968a7cbb5c864a760992913bc5fb350503eda8ac
[ "MIT" ]
null
null
null
src/fractal.py
Gaoadt/python-fractal-renderer
968a7cbb5c864a760992913bc5fb350503eda8ac
[ "MIT" ]
null
null
null
from expression_types import NamedVarExpr, ExpressionLink class Fractal: def __init__(self, expression, radius, iterations): self.postOrder = [] self.expression = ExpressionLink() self.identifiers = None self.operIndex = 0 self.expression.link = expression self.rad...
31.285714
75
0.671233
4a1ac768f243c27f72e2c964fc8111099b85fb79
1,113
py
Python
setup.py
djjh/reinforcement-learning-labs
22706dab9e7f16e364ee4ed79c0bd67a343e5b08
[ "MIT" ]
1
2019-10-06T11:45:52.000Z
2019-10-06T11:45:52.000Z
setup.py
djjh/reinforcement-learning-labs
22706dab9e7f16e364ee4ed79c0bd67a343e5b08
[ "MIT" ]
null
null
null
setup.py
djjh/reinforcement-learning-labs
22706dab9e7f16e364ee4ed79c0bd67a343e5b08
[ "MIT" ]
null
null
null
from os.path import join, dirname, realpath from setuptools import setup import sys assert sys.version_info.major == 3 and sys.version_info.minor >= 6, \ "The Reinforcement Learning Labs repo is designed to work with Python 3.6" \ + " and greater. Please install it before proceeding." __version__ = '0.0.0' s...
27.825
81
0.592992
4a1ac7aa721b279fa8ba6b52a9f82821e6bd0e02
597
py
Python
httpmocker/mixins.py
ketan86/py_mock_http
f554c0c1a03c0fec13c8a5969443dfe97e016c24
[ "MIT" ]
null
null
null
httpmocker/mixins.py
ketan86/py_mock_http
f554c0c1a03c0fec13c8a5969443dfe97e016c24
[ "MIT" ]
null
null
null
httpmocker/mixins.py
ketan86/py_mock_http
f554c0c1a03c0fec13c8a5969443dfe97e016c24
[ "MIT" ]
null
null
null
from collections import namedtuple import os from httpmocker.config import get_config class SSLMixin(object): def save_cert(self, cert, key): # get storage location storage_root = self.get_cert_storage_root() # create storage root folder if does not exist os.makedirs(storage_roo...
24.875
54
0.633166
4a1ac7e2ca4b6322fe825c54fda726d5d6911946
4,205
py
Python
gruppegenerator/settings.py
Snailed/group-generator
d19286872fa548eab36d9d427ed8a860370ce96c
[ "MIT" ]
null
null
null
gruppegenerator/settings.py
Snailed/group-generator
d19286872fa548eab36d9d427ed8a860370ce96c
[ "MIT" ]
3
2020-02-11T23:02:46.000Z
2021-06-10T18:08:29.000Z
gruppegenerator/settings.py
Snailed/group-generator
d19286872fa548eab36d9d427ed8a860370ce96c
[ "MIT" ]
null
null
null
""" Django settings for gruppegenerator project. Generated by 'django-admin startproject' using Django 1.11.1. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
27.847682
146
0.664685
4a1ac93ecbdafca5f1a19f9acf5ffa8f6e6f4bef
1,455
py
Python
venv/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/autograph/__init__.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
1
2021-05-24T10:08:51.000Z
2021-05-24T10:08:51.000Z
venv/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/autograph/__init__.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
null
null
null
venv/lib/python3.8/site-packages/tensorflow/_api/v2/compat/v1/autograph/__init__.py
JIANG-CX/data_labeling
8d2470bbb537dfc09ed2f7027ed8ee7de6447248
[ "MIT" ]
null
null
null
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Conversion of eager-style Python into TensorFlow graph code. NOTE: In TensorFlow 2.0, AutoGraph is automatically applied when using `tf.function`. This module contains lower-level APIs f...
45.46875
143
0.823368
4a1ac9503438a8f455d783b160b0cf16154276e9
19,567
py
Python
TimeWrapper_JE/venv/Lib/site-packages/wheel/bdist_wheel.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
2
2020-09-22T14:38:24.000Z
2020-10-30T03:11:36.000Z
TimeWrapper_JE/venv/Lib/site-packages/wheel/bdist_wheel.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
TimeWrapper_JE/venv/Lib/site-packages/wheel/bdist_wheel.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
""" Create a wheel (.whl) distribution. A wheel is a built archive format. """ import distutils import os import shutil import stat import sys import re import warnings from collections import OrderedDict from distutils.core import Command from distutils import log as logger from io import BytesIO fr...
39.689655
99
0.564011
4a1ac958ed6b3a63a1d93248821468473d0f7f59
860
py
Python
Desafios/des039.py
joseangelooliveira-br/Python3
c0ba39768706f84f26b0616b75dd8c7971145b0e
[ "MIT" ]
null
null
null
Desafios/des039.py
joseangelooliveira-br/Python3
c0ba39768706f84f26b0616b75dd8c7971145b0e
[ "MIT" ]
null
null
null
Desafios/des039.py
joseangelooliveira-br/Python3
c0ba39768706f84f26b0616b75dd8c7971145b0e
[ "MIT" ]
null
null
null
from datetime import date sexo = int(input("""Informe o seu sexo: [ 1 ] Masculino [ 2 ] Feminino Opção: """)) if sexo == 1: atual = date.today().year nasc = int(input('Digite o ano de seu nascimento: ')) idade = atual - nasc print('Quem nasceu em {}, tem {} anos, em {}.'.format(nasc, idade, atual)) ...
30.714286
78
0.59186
4a1ac981747ddf7aff4f66d7d462d7bbf87745ef
394
py
Python
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/models.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.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. # ---------------------------------------------------------------------...
43.777778
76
0.474619
4a1ac9e2a709b2c26bcd10f165dd3a65a43931ed
5,659
py
Python
data_process/filter_test.py
GCaptainNemo/materials-ML
0cbc2097a31968bdd167e25d4bdb0750e57ee9fb
[ "MIT" ]
null
null
null
data_process/filter_test.py
GCaptainNemo/materials-ML
0cbc2097a31968bdd167e25d4bdb0750e57ee9fb
[ "MIT" ]
null
null
null
data_process/filter_test.py
GCaptainNemo/materials-ML
0cbc2097a31968bdd167e25d4bdb0750e57ee9fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: 11360 # datetime: 2021/5/29 21:49 from ase.io import read from data_process.crys_data import ElementData import numpy as np import collections import sys def find_uncertain_atoms(atomic_number_lst, yinyang_lst): """ input: 原子序数, 对应阴阳离子 output: 确定价电子...
36.044586
112
0.646051
4a1acb2410acef8f00ee3c543c70a62b535bbbfa
3,811
py
Python
level_19/level_19.py
hermes-jr/adventofcode-in-python
6699583f449aa2e928427f2c56962de7a84f9dcf
[ "MIT" ]
null
null
null
level_19/level_19.py
hermes-jr/adventofcode-in-python
6699583f449aa2e928427f2c56962de7a84f9dcf
[ "MIT" ]
null
null
null
level_19/level_19.py
hermes-jr/adventofcode-in-python
6699583f449aa2e928427f2c56962de7a84f9dcf
[ "MIT" ]
null
null
null
#!/usr/bin/python import re molecule = '' reps = [] result1 = set() result2 = 0 with open('in.txt', 'r') as f: for line in f: line = line.strip() if not line: continue if __debug__: print("{}".format(line)) if(re.match(r'^\w+$', line) == None): rep = re.findall(r'^(\w+) => (\w+)$', line)[0] if __debug...
37.732673
282
0.718447
4a1acb2f68ce5dfa111e2a0356216f1911e60b98
12,001
py
Python
lib/python3.8/site-packages/ansible_collections/theforeman/foreman/plugins/modules/compute_resource.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/theforeman/foreman/plugins/modules/compute_resource.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/theforeman/foreman/plugins/modules/compute_resource.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) Philipp Joos 2017 # (c) Baptiste Agasse 2019 # (c) Mark Hlawatschek 2020 # # 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...
29.486486
130
0.639947
4a1acbab106fcde8b224a650af22269e14498eee
646
py
Python
tests/fontamental/glyphslib_test.py
fadox/fontamental
feb0d904a74d739148abf5b9d8e47a034e563dd8
[ "BSD-2-Clause" ]
13
2017-06-10T13:32:36.000Z
2018-08-31T07:31:56.000Z
tests/fontamental/glyphslib_test.py
fadox/fontamental
feb0d904a74d739148abf5b9d8e47a034e563dd8
[ "BSD-2-Clause" ]
2
2018-08-27T16:41:28.000Z
2019-07-24T09:15:24.000Z
tests/fontamental/glyphslib_test.py
fadox/fontamental
feb0d904a74d739148abf5b9d8e47a034e563dd8
[ "BSD-2-Clause" ]
3
2018-02-11T13:55:04.000Z
2018-08-28T12:35:58.000Z
import sys import unittest from fontamental.glyphslib import GlyphsLib class IndexTest(unittest.TestCase): def __init__(self, methodName): unittest.TestCase.__init__(self, methodName) def setUp(self): # self.infoTab = NameTabWidget(None) options = { 'buildFea': True, ...
19.575758
52
0.617647
4a1acbfb87cc2090275664cab54514341350a01b
26,583
py
Python
src/ecs/packing_method.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
3
2019-03-01T12:16:02.000Z
2019-12-19T07:59:07.000Z
src/ecs/packing_method.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
null
null
null
src/ecs/packing_method.py
luojie1024/Huawei_CodeCraft_2018
f7fc6db09c65d9b19c773d3a8933109084ec0489
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import copy from math import ceil import packing_utils_v2 from const_map import VM_TYPE_DIRT, VM_PARAM, VM_CPU_QU, VM_MEM_QU, PM_TYPE # 添加模拟退火的算法 def pack_model1(vmPicker, machineGroup, opt_target="CPU"): vm_cpu_size, vm_mem_size = vmPicker.origin_cpu_mem_sum() C = machineGroup.machin...
37.179021
149
0.544596
4a1acd456f02ea00c85ad9179fd6b3eb10a01ba6
10,729
py
Python
cms/models/base.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
null
null
null
cms/models/base.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
null
null
null
cms/models/base.py
cresset-group/cms
727b81e40dd1196e85c240e728a7824121163d4d
[ "BSD-3-Clause" ]
null
null
null
"""Abstract base models used by the page management application.""" from django.db import models from django.shortcuts import render from django.utils.crypto import constant_time_compare, salted_hmac from watson.search import SearchAdapter from cms.apps.media.models import ImageRefField from cms.models.managers import...
30.480114
111
0.605369
4a1acd630a8f2039e0d497b1f75a28cddae2871e
707
py
Python
lab/refactoring/replace_magic_numbers_with_named_constants.py
Andre-Williams22/SPD-2.31-Testing-and-Architecture
a28abb56c7b0c920144867f5aa138f70aae65260
[ "MIT" ]
null
null
null
lab/refactoring/replace_magic_numbers_with_named_constants.py
Andre-Williams22/SPD-2.31-Testing-and-Architecture
a28abb56c7b0c920144867f5aa138f70aae65260
[ "MIT" ]
null
null
null
lab/refactoring/replace_magic_numbers_with_named_constants.py
Andre-Williams22/SPD-2.31-Testing-and-Architecture
a28abb56c7b0c920144867f5aa138f70aae65260
[ "MIT" ]
null
null
null
# by Kami Bigdely # Replace magic numbers with named constanst def calculation(charge1, charge2, distance): constant = 8.9875517923*1e9 return constant * charge1 * charge2 / (distance**2) # First Section # Given two point charges, calcualte the electric force exerted on them. q1 = int(input('Enter ...
33.666667
86
0.691655
4a1acdb0fbbcd31a4a69258a508d19496ea52d45
95,177
py
Python
moto/s3/responses.py
185504a9/moto
efc440ef143d25894844a6bc7f7257e2a2ccb95a
[ "Apache-2.0" ]
null
null
null
moto/s3/responses.py
185504a9/moto
efc440ef143d25894844a6bc7f7257e2a2ccb95a
[ "Apache-2.0" ]
null
null
null
moto/s3/responses.py
185504a9/moto
efc440ef143d25894844a6bc7f7257e2a2ccb95a
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import os import re import sys from botocore.awsrequest import AWSPreparedRequest from moto.core.utils import ( str_to_rfc_1123_datetime, py2_strip_unicode_keys, unix_time_millis, ) from urllib.parse import ( parse_qs, parse_qsl, urlparse, unquote, ...
37.949362
168
0.586959
4a1acea2328fb83abf77597b21f1ee178e0f51a7
11,664
py
Python
Polaritonic-Quantum-Chemistry/helper_CQED_RHF.py
cheechonghian/psi4numpy
1fcd4885c62beadda67d448cf66227c9ea493daa
[ "BSD-3-Clause" ]
214
2017-03-01T08:04:48.000Z
2022-03-23T08:52:04.000Z
Polaritonic-Quantum-Chemistry/helper_CQED_RHF.py
cheechonghian/psi4numpy
1fcd4885c62beadda67d448cf66227c9ea493daa
[ "BSD-3-Clause" ]
100
2017-03-03T13:20:20.000Z
2022-03-05T18:20:27.000Z
Polaritonic-Quantum-Chemistry/helper_CQED_RHF.py
cheechonghian/psi4numpy
1fcd4885c62beadda67d448cf66227c9ea493daa
[ "BSD-3-Clause" ]
150
2017-02-17T19:44:47.000Z
2022-03-22T05:52:43.000Z
""" Helper function for CQED_RHF References: Equations and algorithms from [Haugland:2020:041043], [DePrince:2021:094112], and [McTague:2021:ChemRxiv] """ __authors__ = ["Jon McTague", "Jonathan Foley"] __credits__ = ["Jon McTague", "Jonathan Foley"] __copyright_amp__ = "(c) 2014-2018, The Psi4NumPy Devel...
36.564263
123
0.618313
4a1acf47235969105d2a914f4669d8e83bd424c1
22,030
py
Python
gym_vertical_landing/envs/vertical_landing_env.py
bbueno5000/gym-vertical-landing
385dab5f38220ac704d0c082e0c458ad2b3c0a6a
[ "Apache-2.0" ]
null
null
null
gym_vertical_landing/envs/vertical_landing_env.py
bbueno5000/gym-vertical-landing
385dab5f38220ac704d0c082e0c458ad2b3c0a6a
[ "Apache-2.0" ]
null
null
null
gym_vertical_landing/envs/vertical_landing_env.py
bbueno5000/gym-vertical-landing
385dab5f38220ac704d0c082e0c458ad2b3c0a6a
[ "Apache-2.0" ]
null
null
null
""" The objective of this environment is to land a rocket on a platform. STATE VARIABLES --------------- The state consists of the following variables: - x position - y position - angle - first leg ground contact indicator - second leg ground contact indicator - throttle - engine gimbal If...
43.537549
161
0.529914
4a1acf4be6ca102f4baf445d0fba2edff00a16b0
1,807
py
Python
kerMIT/kerMIT/legacyCode/learner.py
ART-Group-it/KERMIT
e3ed25bb0d67e77fc3afdef04007b34df1805ba1
[ "MIT" ]
45
2020-10-07T13:22:14.000Z
2022-03-22T03:49:44.000Z
kerMIT/kerMIT/legacyCode/learner.py
ART-Group-it/kerMIT
ff309ce3154c5292602c53cd19633d789bf759e2
[ "MIT" ]
1
2020-12-27T13:01:03.000Z
2020-12-28T09:49:33.000Z
kerMIT/kerMIT/legacyCode/learner.py
ART-Group-it/KERMIT
e3ed25bb0d67e77fc3afdef04007b34df1805ba1
[ "MIT" ]
5
2020-11-20T16:53:48.000Z
2022-02-07T09:30:48.000Z
__author__ = 'lorenzo' import os import numpy as np import dataset_reader as dr from sklearn import svm from sklearn import tree from dtk import DT from tree import Tree from semantic_vector import SemanticVector import math from feature import Feature # class Learner: # def __init__(self, dev, test, func): # ...
22.873418
88
0.591588
4a1acf4d14bd69043249d1b70a9212f74e6c11ff
7,466
py
Python
Statstool-Web/statstool_web/main/outsource.py
Declaminius/EU4-MP-Statstool
2df7b7f08f1c97257dec325322a2e491ea856432
[ "MIT" ]
1
2020-10-06T14:48:32.000Z
2020-10-06T14:48:32.000Z
Statstool-Web/statstool_web/main/outsource.py
Declaminius/EU4-MP-Statstool
2df7b7f08f1c97257dec325322a2e491ea856432
[ "MIT" ]
3
2021-09-08T02:36:13.000Z
2022-03-12T00:50:09.000Z
Statstool-Web/statstool_web/main/outsource.py
Declaminius/EU4-MP-Statstool
2df7b7f08f1c97257dec325322a2e491ea856432
[ "MIT" ]
1
2020-09-26T15:31:24.000Z
2020-09-26T15:31:24.000Z
from statstool_web.models import * from math import ceil def get_nation_info(savegame): nation_tags = [x.tag for x in savegame.player_nations] nation_names = [NationSavegameData.query.filter_by( savegame_id=savegame.id, nation_tag=tag).first().nation_name for tag in nation_tags] nation_colors_hex =...
39.089005
126
0.610501
4a1acff401cb9d73723a901bb73fd7ba8d8b90ad
1,039
py
Python
osdria/views/components/graph_view.py
soberleitner/osdriaApp
8b4638e6edc2d265afd09098cfc4a8db34403cce
[ "MIT" ]
null
null
null
osdria/views/components/graph_view.py
soberleitner/osdriaApp
8b4638e6edc2d265afd09098cfc4a8db34403cce
[ "MIT" ]
20
2019-01-17T10:31:10.000Z
2019-03-15T07:12:11.000Z
osdria/views/components/graph_view.py
soberleitner/osdriaApp
8b4638e6edc2d265afd09098cfc4a8db34403cce
[ "MIT" ]
null
null
null
from PySide2.QtCharts import QtCharts class GraphView(QtCharts.QChartView): """define functionality of chart view in dataset dialog""" def __init__(self, parent): super(GraphView, self).__init__(parent) self._model = None self._series = QtCharts.QLineSeries() def set_model(self, m...
33.516129
66
0.636189
4a1ad04c01ff54bbd49a3161719dd38b92fa248d
2,135
py
Python
stream_viewer/widgets/control_panel.py
intheon/stream_viewer
386b9e27d5cd7e66eece0dc2e4977e917ef94877
[ "MIT" ]
2
2022-01-07T11:38:48.000Z
2022-02-23T09:07:58.000Z
stream_viewer/widgets/control_panel.py
intheon/stream_viewer
386b9e27d5cd7e66eece0dc2e4977e917ef94877
[ "MIT" ]
null
null
null
stream_viewer/widgets/control_panel.py
intheon/stream_viewer
386b9e27d5cd7e66eece0dc2e4977e917ef94877
[ "MIT" ]
1
2022-02-23T09:08:06.000Z
2022-02-23T09:08:06.000Z
from qtpy import QtWidgets from qtpy import QtCore from stream_viewer.widgets.interface import IControlPanel class GenericControlPanel(IControlPanel): pass class NoChansControlPanel(IControlPanel): def reset_widgets(self, renderer): super().reset_widgets(renderer) # Disable a couple standar...
37.45614
105
0.715222
4a1ad0a089356fd65e8c3e74d17ed3a4ef5c8399
1,705
py
Python
Experiment_2/src/NPBDAA_LM/Unigram_generator.py
RyoOzaki/myResearch
a8f8ec63e1b1802517b12db2b6f3e286a3984bcf
[ "MIT" ]
null
null
null
Experiment_2/src/NPBDAA_LM/Unigram_generator.py
RyoOzaki/myResearch
a8f8ec63e1b1802517b12db2b6f3e286a3984bcf
[ "MIT" ]
null
null
null
Experiment_2/src/NPBDAA_LM/Unigram_generator.py
RyoOzaki/myResearch
a8f8ec63e1b1802517b12db2b6f3e286a3984bcf
[ "MIT" ]
null
null
null
import numpy as np def make_unigram(sentences, depth): cnt_matrix = np.zeros((depth, )) words = sentences[sentences != -1] for w in words: cnt_matrix[int(w)] += 1 cnt_matrix /= cnt_matrix.sum() return cnt_matrix class Unigram_generator(object): def __init__(self, sentences_file): ...
31.574074
70
0.520235
4a1ad124e8ed14f85252eb714f31ef6e4459c105
15,473
py
Python
tests/api/test_tokens.py
dsg-bielefeld/slurk
e3e86fbd6bdfee70d50644a03564da629a37c75e
[ "BSD-3-Clause" ]
2
2019-01-21T02:44:50.000Z
2019-03-26T20:54:38.000Z
tests/api/test_tokens.py
dsg-bielefeld/slurk
e3e86fbd6bdfee70d50644a03564da629a37c75e
[ "BSD-3-Clause" ]
44
2018-09-30T22:09:18.000Z
2019-04-02T13:09:25.000Z
tests/api/test_tokens.py
dsg-bielefeld/slurk
e3e86fbd6bdfee70d50644a03564da629a37c75e
[ "BSD-3-Clause" ]
8
2018-09-30T21:16:14.000Z
2018-12-13T14:50:40.000Z
# -*- coding: utf-8 -*- """Test requests to the `tokens` table.""" from http import HTTPStatus import json import os import pytest from .. import parse_error from tests.api import InvalidWithEtagTemplate, RequestOptionsTemplate PREFIX = f'{__name__.replace(".", os.sep)}.py' class TokensTable: @property d...
36.236534
86
0.614425
4a1ad37b9e22ce66f2a23ddde73e15c78dfad955
961
py
Python
solaredge/api/equipment.py
chrisjohnson00/pysolaredge
c8fa314ed59109c0b3032f88e5ccdcd16da41cc3
[ "BSD-2-Clause" ]
8
2020-05-25T09:35:28.000Z
2021-06-08T04:00:40.000Z
solaredge/api/equipment.py
chrisjohnson00/pysolaredge
c8fa314ed59109c0b3032f88e5ccdcd16da41cc3
[ "BSD-2-Clause" ]
2
2020-11-23T21:37:52.000Z
2020-12-04T21:35:41.000Z
solaredge/api/equipment.py
chrisjohnson00/pysolaredge
c8fa314ed59109c0b3032f88e5ccdcd16da41cc3
[ "BSD-2-Clause" ]
6
2020-06-28T02:50:32.000Z
2022-01-01T23:02:03.000Z
import requests from ..api.error import IdentifierError BASE_URL = 'https://monitoringapi.solaredge.com' class Equipment(object): """ Object for getting API details about equipments related to a site """ def __init__(self, client): self.client = client def get_site_equipment(self, sit...
34.321429
101
0.635796
4a1ad3ab563f45e09492227f8d05547c61fba920
670
py
Python
AppServer/lib/django-1.4/tests/modeltests/validation/__init__.py
loftwah/appscale
586fc1347ebc743d7a632de698f4dbfb09ae38d6
[ "Apache-2.0" ]
790
2015-01-03T02:13:39.000Z
2020-05-10T19:53:57.000Z
AppServer/lib/django-1.4/tests/modeltests/validation/__init__.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
1,361
2015-01-08T23:09:40.000Z
2020-04-14T00:03:04.000Z
AppServer/lib/django-1.4/tests/modeltests/validation/__init__.py
nlake44/appscale
6944af660ca4cb772c9b6c2332ab28e5ef4d849f
[ "Apache-2.0" ]
155
2015-01-08T22:59:31.000Z
2020-04-08T08:01:53.000Z
from __future__ import with_statement from django.core.exceptions import ValidationError from django.test import TestCase class ValidationTestCase(TestCase): def assertFailsValidation(self, clean, failed_fields): with self.assertRaises(ValidationError) as cm: clean() self.assertEqual(...
35.263158
82
0.747761
4a1ad3cee46df7665ee9c59b1a293cf660cdd4a9
544
py
Python
src/models/user.py
FernandoZnga/flask-api-setup
220ad881e61432d017a1eb34fead461e2042309d
[ "MIT" ]
null
null
null
src/models/user.py
FernandoZnga/flask-api-setup
220ad881e61432d017a1eb34fead461e2042309d
[ "MIT" ]
null
null
null
src/models/user.py
FernandoZnga/flask-api-setup
220ad881e61432d017a1eb34fead461e2042309d
[ "MIT" ]
null
null
null
""" Define the User model """ from . import db from .abc import BaseModel class User(db.Model, BaseModel): """ The User model """ __tablename__ = 'user' first_name = db.Column(db.String(300), primary_key=True) last_name = db.Column(db.String(300), primary_key=True) # The age of our user age =...
25.904762
60
0.645221
4a1ad448877fab50353ba4d6dcd89ac2c9834cdf
37,207
py
Python
tes/models.py
gurza/alfastrah-tes-python-sdk
092c01e3b58f5f866037241e94a74fc9bab7026e
[ "MIT" ]
null
null
null
tes/models.py
gurza/alfastrah-tes-python-sdk
092c01e3b58f5f866037241e94a74fc9bab7026e
[ "MIT" ]
null
null
null
tes/models.py
gurza/alfastrah-tes-python-sdk
092c01e3b58f5f866037241e94a74fc9bab7026e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ tes.models ~~~~~~~~~~ This module contains the primary objects. """ import datetime import numbers import sys import typing from enum import Enum from decimal import Decimal PRODUCT_TYPES = ['AIR'] class AcquisitionChannel(Enum): """Acquisition (data collection) channel.""" DESK...
33.978995
117
0.621872
4a1ad479806b07ac223ac85e3bdc09c56d0ea4c0
1,281
py
Python
setup.py
maprihoda/binpacking
418226a09bbad9a464d2ef7a9b05ecf02f77e02f
[ "MIT" ]
null
null
null
setup.py
maprihoda/binpacking
418226a09bbad9a464d2ef7a9b05ecf02f77e02f
[ "MIT" ]
null
null
null
setup.py
maprihoda/binpacking
418226a09bbad9a464d2ef7a9b05ecf02f77e02f
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='binpacking', version='1.5.1', description='Heuristic distribution of weighted items to bins (either a fixed number of bins or a fixed number of volume per bin). Data may be in form of list, dictionary, list of tuples or csv-file.', url='https://www.github.com/...
40.03125
207
0.551132
4a1ad5731fbd87e4290205c541e4049926b3f301
11,374
py
Python
python/sklearn/sklearn/decomposition/tests/test_pca.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
1
2017-10-14T04:23:45.000Z
2017-10-14T04:23:45.000Z
python/sklearn/sklearn/decomposition/tests/test_pca.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
python/sklearn/sklearn/decomposition/tests/test_pca.py
seckcoder/lang-learn
1e0d6f412bbd7f89b1af00293fd907ddb3c1b571
[ "Unlicense" ]
null
null
null
import numpy as np from scipy.sparse import csr_matrix from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_true from sklearn.utils.testing import assert_equal from sklearn.utils.testing import assert_less, assert_gre...
32.590258
79
0.644364
4a1ad5aa03c23dec8237297912266861c6be06e1
220
py
Python
suitcase/dataexchange/tests/conftest.py
danielballan/suitcase-dataexchange
91821b8d06baf2dbf910b8b232b1d5ebd0ebbf5f
[ "BSD-3-Clause" ]
null
null
null
suitcase/dataexchange/tests/conftest.py
danielballan/suitcase-dataexchange
91821b8d06baf2dbf910b8b232b1d5ebd0ebbf5f
[ "BSD-3-Clause" ]
2
2020-07-27T18:49:26.000Z
2020-12-02T16:39:51.000Z
suitcase/dataexchange/tests/conftest.py
danielballan/suitcase-dataexchange
91821b8d06baf2dbf910b8b232b1d5ebd0ebbf5f
[ "BSD-3-Clause" ]
3
2019-07-02T22:17:13.000Z
2019-09-16T07:28:37.000Z
from bluesky.tests.conftest import RE # noqa from ophyd.tests.conftest import hw # noqa from suitcase.utils.tests.conftest import ( # noqa example_data, generate_data, plan_type, detector_list, event_type) # noqa
44
77
0.777273
4a1ad5ebc9ab12c40fb5342292ca71ae7ced5ed2
15,206
py
Python
gs_api_client/swagger/models/serverin_ip.py
gridscale/gridscale_api_client_python
755b8e8a017784a4f5c6b3a577338ff988c41a9a
[ "MIT" ]
7
2019-07-12T13:59:45.000Z
2021-03-16T08:46:20.000Z
gs_api_client/swagger/models/serverin_ip.py
gridscale/gridscale_api_client_python
755b8e8a017784a4f5c6b3a577338ff988c41a9a
[ "MIT" ]
13
2020-01-23T07:50:29.000Z
2022-03-21T14:32:40.000Z
gs_api_client/swagger/models/serverin_ip.py
gridscale/gridscale_api_client_python
755b8e8a017784a4f5c6b3a577338ff988c41a9a
[ "MIT" ]
null
null
null
# coding: utf-8 """ API Specification # Introduction Welcome to gridscales API documentation. A REST API is a programming interface that allows you to access and send data directly to our systems using HTTPS requests, without the need to use a web GUI. All the functionality you are already familiar with in y...
168.955556
12,787
0.71406
4a1ad6ce1764e8ccc1ceb9a0b7bba7cd5594848e
2,403
py
Python
tests/unit/legacy/api/test_pypi.py
tony/warehouse
0c260a285cf9d95728756a643a404883f2bb3bfb
[ "Apache-2.0" ]
4
2017-12-07T17:45:12.000Z
2021-11-15T11:14:44.000Z
tests/unit/legacy/api/test_pypi.py
tony/warehouse
0c260a285cf9d95728756a643a404883f2bb3bfb
[ "Apache-2.0" ]
11
2020-01-06T18:55:57.000Z
2022-03-11T23:27:05.000Z
tests/unit/legacy/api/test_pypi.py
startnayit/warehouse
b89517891ff5b7da49e6ebdda299d7870a7811dd
[ "Apache-2.0" ]
2
2017-12-07T17:45:15.000Z
2019-11-25T23:47:20.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
28.951807
74
0.677903
4a1ad6f6f801cbf566ca53e0b728b357ce3f68c0
19,658
py
Python
composer/utils/file_helpers.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/utils/file_helpers.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
composer/utils/file_helpers.py
growlix/composer
27418a3c65dca26d90ac09c6ae67cbd5d0202ccf
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML Composer authors # SPDX-License-Identifier: Apache-2.0 """Helpers for working with files.""" from __future__ import annotations import os import pathlib import re import uuid from typing import TYPE_CHECKING, Optional, Union import requests import tqdm from composer.core.time import Time,...
47.598063
135
0.51811
4a1ad7596c7fdf5d5c6ccd738151268f3f09c9cb
1,463
py
Python
python/static-server.py
tbremer/dotfiles
6a726e32599c6755e52a10bb21d749a320044474
[ "MIT" ]
5
2015-10-21T15:47:43.000Z
2018-08-03T10:36:51.000Z
python/static-server.py
tbremer/dotfiles
6a726e32599c6755e52a10bb21d749a320044474
[ "MIT" ]
2
2020-07-11T00:04:43.000Z
2020-07-11T00:04:51.000Z
python/static-server.py
tbremer/dotfiles
6a726e32599c6755e52a10bb21d749a320044474
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Static file server with History API fallback """ from http.server import BaseHTTPRequestHandler, HTTPServer import ssl import os import sys import urllib import time import mimetypes host = 'localhost' try: port = int(sys.argv[1]) except IndexError: port = 4443 class Handler(Base...
22.859375
101
0.637047
4a1ad86aa745323d3dbe2b950e10def6a06879bb
1,132
py
Python
tests/forward_time.py
tkianai/Facenet.Inference
d16f8ba938441875a30f11c0ff910d52571d9568
[ "MIT" ]
2
2020-04-22T23:27:33.000Z
2020-06-08T11:43:41.000Z
tests/forward_time.py
tkianai/Facenet.Inference
d16f8ba938441875a30f11c0ff910d52571d9568
[ "MIT" ]
null
null
null
tests/forward_time.py
tkianai/Facenet.Inference
d16f8ba938441875a30f11c0ff910d52571d9568
[ "MIT" ]
null
null
null
import sys sys.path.append('../') from det_rec import build_det_model import time import torch torch.set_grad_enabled(False) model = build_det_model('../checkpoint/det_model.pth') model.cuda() model.eval() batch_size = 32 image_size = 800 for _ in range(10): print("Start single image forward...") data =...
22.64
69
0.572438
4a1adb41d2fe501e252cfb2a5c35bba0373a27b4
6,455
py
Python
DQM/MuonMonitor/test/mutracking_dqm_sourceclient-live_cfg.py
jkiesele/cmssw
e626860d26692de5880c52c7c80aec7b859a0c60
[ "Apache-2.0" ]
null
null
null
DQM/MuonMonitor/test/mutracking_dqm_sourceclient-live_cfg.py
jkiesele/cmssw
e626860d26692de5880c52c7c80aec7b859a0c60
[ "Apache-2.0" ]
null
null
null
DQM/MuonMonitor/test/mutracking_dqm_sourceclient-live_cfg.py
jkiesele/cmssw
e626860d26692de5880c52c7c80aec7b859a0c60
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Run2_2018_pp_on_AA_cff import Run2_2018_pp_on_AA process = cms.Process("MUTRKDQM", Run2_2018_pp_on_AA) # Input source process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:/eos/...
33.102564
230
0.546863
4a1adb9d1c2a87c048891359266dd64fb7fd0b9a
208
py
Python
hotrecharge/__init__.py
takumade/Hot-Recharge-ZW
9d59bcdb83c0ad38c7a4b944bc74e82ed20adda1
[ "MIT" ]
8
2020-07-22T07:25:48.000Z
2021-12-18T17:38:45.000Z
hotrecharge/__init__.py
takumade/Hot-Recharge-ZW
9d59bcdb83c0ad38c7a4b944bc74e82ed20adda1
[ "MIT" ]
2
2020-12-28T07:31:49.000Z
2021-09-15T20:49:34.000Z
hotrecharge/__init__.py
DonnC/Hot-Recharge-ZW
51bf6bf09aea879dc06f99f6ac7752b354ed3be8
[ "MIT" ]
2
2021-02-04T10:01:23.000Z
2021-02-13T23:17:20.000Z
# __init__.py from hotrecharge import * from .HotRecharge import HotRecharge, HRAuthConfig from .HotRechargeException import * __author__ = "Donald Chinhuru" __version__ = "3.3.1" __name__ = "hot-recharge"
23.111111
50
0.778846
4a1adc557f9ba5a6ab9803f17109ca47a75f0211
12,516
py
Python
Data_Processor.py
SeTheory/Text_Mining
b54036bc29777a51f1087a65c0157d9511aaa585
[ "MIT" ]
1
2021-11-29T10:38:02.000Z
2021-11-29T10:38:02.000Z
Data_Processor.py
SeTheory/Text_Mining
b54036bc29777a51f1087a65c0157d9511aaa585
[ "MIT" ]
null
null
null
Data_Processor.py
SeTheory/Text_Mining
b54036bc29777a51f1087a65c0157d9511aaa585
[ "MIT" ]
null
null
null
#! /user/bin/evn python # -*- coding:utf8 -*- """ Data_Processor ====== A class for something. @author: Guoxiu He @contact: gxhe@fem.ecnu.edu.cn @site: https://scholar.google.com/citations?user=2NVhxpAAAAAJ @time: 20:44, 2021/11/22 @copyright: "Copyright (c) 2021 Guoxiu He. All Rights Reserved" """ import os import s...
43.609756
119
0.559604
4a1ade300303d853f37909f48551cf60fb68fafc
419
py
Python
tests/test_beautifulsoup.py
ht-loefflad/hidden_pdfs_heilbronn
662edefc42256ee661095ea1a525decf543bd75d
[ "CC-BY-4.0" ]
null
null
null
tests/test_beautifulsoup.py
ht-loefflad/hidden_pdfs_heilbronn
662edefc42256ee661095ea1a525decf543bd75d
[ "CC-BY-4.0" ]
3
2022-03-16T15:20:16.000Z
2022-03-22T08:43:34.000Z
tests/test_beautifulsoup.py
ht-loefflad/hidden_pdfs_heilbronn
662edefc42256ee661095ea1a525decf543bd75d
[ "CC-BY-4.0" ]
null
null
null
import pytest from src.crawlers.beatifulsoup import BeatifulSoupCrawler class TestBeautifulSoupCrawler: @pytest.fixture def bs_crawler(self): crawler = BeatifulSoupCrawler() return crawler def test_get_links(self, bs_crawler): soup = bs_crawler._get_links('https://www.heilbronn.d...
23.277778
77
0.701671
4a1adeb0b3bea5d544822f6511531de5c64cd771
635
py
Python
extras/encrypt.py
jbygdell/LocalEGA
e0e5f9ee5c7e18cd4fbb1c8e89a77832c7c122b9
[ "Apache-2.0" ]
null
null
null
extras/encrypt.py
jbygdell/LocalEGA
e0e5f9ee5c7e18cd4fbb1c8e89a77832c7c122b9
[ "Apache-2.0" ]
3
2019-01-17T14:13:33.000Z
2019-01-17T14:45:42.000Z
extras/encrypt.py
secureb2share/secureb2share-localega
329dce036114945787bfb138321c99ca9170a601
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- '''Encrypt a relatively small file, since it loads it in memory.''' import sys import argparse from pgpy import PGPMessage, PGPKey def main(): parser = argparse.ArgumentParser(description='''Encrypting a relatively small message''') parser.add_argument('pubkey', he...
23.518519
93
0.688189
4a1adef0e6576eb4b4a9f4e509af99fcb94b526a
3,005
py
Python
app/forms.py
Zyntab/recept
9f11d734d6dcdc2a61f6984372f40f98446358cf
[ "MIT" ]
null
null
null
app/forms.py
Zyntab/recept
9f11d734d6dcdc2a61f6984372f40f98446358cf
[ "MIT" ]
null
null
null
app/forms.py
Zyntab/recept
9f11d734d6dcdc2a61f6984372f40f98446358cf
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField from wtforms.validators import DataRequired, ValidationError, Email, EqualTo from app.models import User class LoginForm(FlaskForm): username = StringField('Användarnamn eller email', ...
48.467742
107
0.627953
4a1ae1dd653d22583d8127351f9a00a7d6473e2e
4,970
py
Python
layers.py
ashi22998/minor-project
740dd42423feebd0eb7891a151d74a2392d758f3
[ "MIT" ]
null
null
null
layers.py
ashi22998/minor-project
740dd42423feebd0eb7891a151d74a2392d758f3
[ "MIT" ]
null
null
null
layers.py
ashi22998/minor-project
740dd42423feebd0eb7891a151d74a2392d758f3
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class GraphAttentionLayer(nn.Module): """ Simple GAT layer, similar to https://arxiv.org/abs/1710.10903 """ def __init__(self, in_features, out_features, dropout, alpha, concat=True): super(GraphAttentionLay...
35
119
0.613682
4a1ae23ef0319e427d681fd0b925d4b53a75b8f2
1,456
py
Python
src/sentry/api/serializers/base.py
mastacheata/sentry
cc4536901db0323d1e6433416abf1d0ecd977d61
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/serializers/base.py
mastacheata/sentry
cc4536901db0323d1e6433416abf1d0ecd977d61
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/serializers/base.py
mastacheata/sentry
cc4536901db0323d1e6433416abf1d0ecd977d61
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from django.contrib.auth.models import AnonymousUser registry = {} def serialize(objects, user=None, serializer=None): if user is None: user = AnonymousUser() if not objects: return objects # sets aren't predictable, so generally you should use a ...
26
85
0.616758
4a1ae2670eb28f8ca21e2d54676eaf06e5b8b818
1,057
py
Python
python/288_Unique_Word_Abbreviation.py
dvlpsh/leetcode-1
f965328af72113ac8a5a9d6624868c1502be937b
[ "MIT" ]
4,416
2016-03-30T15:02:26.000Z
2022-03-31T16:31:03.000Z
python/288_Unique_Word_Abbreviation.py
YinpuLi/leetcode-6
1371de2631d745efba39de41b51c3424e35da434
[ "MIT" ]
20
2018-11-17T13:46:25.000Z
2022-03-13T05:37:06.000Z
python/288_Unique_Word_Abbreviation.py
YinpuLi/leetcode-6
1371de2631d745efba39de41b51c3424e35da434
[ "MIT" ]
1,374
2017-05-26T15:44:30.000Z
2022-03-30T19:21:02.000Z
class ValidWordAbbr(object): def __init__(self, dictionary): """ initialize your data structure here. :type dictionary: List[str] """ self.dictionary = set(dictionary) self.abb_dic = {} for s in self.dictionary: curr = self.getAbb(s) if...
28.567568
76
0.541154
4a1ae2822de16383e9835da6152db257d13d8a7c
28,134
py
Python
udify/dataset_readers/conll18_ud_eval.py
annaproxy/udify
acdacd30c0a9cf7e3f2ba9982d6abbb42aa65af8
[ "MIT" ]
null
null
null
udify/dataset_readers/conll18_ud_eval.py
annaproxy/udify
acdacd30c0a9cf7e3f2ba9982d6abbb42aa65af8
[ "MIT" ]
null
null
null
udify/dataset_readers/conll18_ud_eval.py
annaproxy/udify
acdacd30c0a9cf7e3f2ba9982d6abbb42aa65af8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Compatible with Python 2.7 and 3.2+, can be used either as a module # or a standalone executable. # # Copyright 2017, 2018 Institute of Formal and Applied Linguistics (UFAL), # Faculty of Mathematics and Physics, Charles University, Czech Republic. # # This Source Code Form is subject to the t...
47.284034
139
0.592557
4a1ae2cca35fb0408a0dbb028f8a7b10e0bb6b08
2,103
py
Python
tests/integration/misc/FileSizeLimit.py
rainoftime/yinyang
5061be266226b8a5933321d98e68c6d9ee8137dd
[ "MIT" ]
143
2020-10-30T18:52:48.000Z
2022-03-15T11:30:23.000Z
tests/integration/misc/FileSizeLimit.py
rainoftime/yinyang
5061be266226b8a5933321d98e68c6d9ee8137dd
[ "MIT" ]
28
2020-11-11T12:11:39.000Z
2022-01-11T19:29:17.000Z
tests/integration/misc/FileSizeLimit.py
rainoftime/yinyang
5061be266226b8a5933321d98e68c6d9ee8137dd
[ "MIT" ]
16
2020-10-31T22:54:42.000Z
2022-03-26T11:31:10.000Z
# MIT License # # Copyright (c) [2020 - 2021] The yinyang authors # # 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...
31.38806
79
0.69282
4a1ae3e4d04b12248dc19fa2281c97fc681ef0ec
3,495
py
Python
merge XY FISH results.py
webjo099/FlyFISH-and-DNA
7690e991501961c449ca8496ee1aaaab25c5ac6b
[ "MIT" ]
null
null
null
merge XY FISH results.py
webjo099/FlyFISH-and-DNA
7690e991501961c449ca8496ee1aaaab25c5ac6b
[ "MIT" ]
null
null
null
merge XY FISH results.py
webjo099/FlyFISH-and-DNA
7690e991501961c449ca8496ee1aaaab25c5ac6b
[ "MIT" ]
null
null
null
#load python included modules import ntpath import os import re import tkinter as tk from tkinter import filedialog, simpledialog, messagebox #load additional python modules import numpy as np import pandas as pd # define a function to get the list of all the filename in a directory and its subdirectories ...
42.108434
167
0.637768
4a1ae3e5fca8fb54f187e0edbb879c97179ef693
11,463
py
Python
fetchData.py
duyunhe/vehAnalysis
a3788c3851b786683ed11a3b2f88dc7502a163d3
[ "Apache-2.0" ]
1
2020-05-26T11:13:17.000Z
2020-05-26T11:13:17.000Z
fetchData.py
duyunhe/vehAnalysis
a3788c3851b786683ed11a3b2f88dc7502a163d3
[ "Apache-2.0" ]
null
null
null
fetchData.py
duyunhe/vehAnalysis
a3788c3851b786683ed11a3b2f88dc7502a163d3
[ "Apache-2.0" ]
1
2021-06-24T13:13:00.000Z
2021-06-24T13:13:00.000Z
# -*- coding: utf-8 -*- # @Time : 2019/5/17 16:12 # @Author : yhdu@tongwoo.cn # @简介 : 获取gps信息 # @File : fetchData.py import cx_Oracle from datetime import timedelta, datetime from coord import bl2xy from geo import calc_dist from time import clock import json import os import redis from taxiStruct import Ta...
32.473088
117
0.529617
4a1ae45da69e1320bd7ccbc9f6bfa9b429002a21
3,920
py
Python
dbops_venv/lib/python3.5/site-packages/selenium/webdriver/ie/service.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
15
2016-02-24T06:32:57.000Z
2020-06-17T05:06:36.000Z
dbops_venv/lib/python3.5/site-packages/selenium/webdriver/ie/service.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
5
2020-03-24T15:33:06.000Z
2021-02-02T21:42:36.000Z
dbops_venv/lib/python3.5/site-packages/selenium/webdriver/ie/service.py
fractal520/dbops
20c6b6b5669e09b43cd19e6f3fa0448bc7d5eaac
[ "MIT" ]
4
2017-02-04T13:45:31.000Z
2018-07-05T11:57:24.000Z
#!/usr/bin/python # # Copyright 2012 Webdriver_name committers # Copyright 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
35.315315
110
0.592347
4a1ae5549341618f081eca605526ccc552378008
1,577
py
Python
utils/log/handlers.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
null
null
null
utils/log/handlers.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
null
null
null
utils/log/handlers.py
goztrk/django-htk
c56bf112e5d627780d2f4288460eae5cce80fa9e
[ "MIT" ]
null
null
null
# Python Standard Library Imports import logging import traceback # Third Party (PyPI) Imports import rollbar # Django Imports from django.views.debug import ExceptionReporter # HTK Imports from htk.utils.debug import slack_debug class RollbarHandler(logging.Handler): """An exception log handler that emits log...
27.666667
97
0.640457
4a1ae5e607f7f238cedab1fcfa807dbddc797935
30,882
py
Python
selfdrive/controls/lib/events.py
ImpressionsAK/openpilot
e828ec437b81c48913abc67bf43af4b7f742d6a5
[ "MIT" ]
null
null
null
selfdrive/controls/lib/events.py
ImpressionsAK/openpilot
e828ec437b81c48913abc67bf43af4b7f742d6a5
[ "MIT" ]
null
null
null
selfdrive/controls/lib/events.py
ImpressionsAK/openpilot
e828ec437b81c48913abc67bf43af4b7f742d6a5
[ "MIT" ]
null
null
null
from enum import IntEnum from typing import Dict, Union, Callable from cereal import log, car import cereal.messaging as messaging from common.realtime import DT_CTRL from selfdrive.config import Conversions as CV from selfdrive.locationd.calibrationd import MIN_SPEED_FILTER AlertSize = log.ControlsState.AlertSize Al...
34.237251
152
0.687747
4a1ae785fe38d3c0a21b0293768ac5b7ef28ff55
5,710
py
Python
tests/backend/test_email_queue.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
tests/backend/test_email_queue.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
tests/backend/test_email_queue.py
plastr/extrasolar-game
1aad5971556d498e3617afe75f27e2f4132d4668
[ "MIT", "Unlicense" ]
null
null
null
# Copyright (c) 2010-2011 Lazy 8 Studios, LLC. # All rights reserved. from front.backend import email_queue from front.lib import db, email_module from front.tests import base class TestEmailQueue(base.TestCase): def test_enqueue_email_message(self): test_email = email_module.EmailMessage('fromuser@exampl...
51.441441
132
0.638354
4a1ae7f1eb994ff67444bcdc892f19055d3ca452
887
py
Python
community_app/community_app/users/tests/test_drf_views.py
otivedani/monorepo_community_web
a0a719500c5d2cf8426c8502a181d7ceb50830fb
[ "MIT" ]
null
null
null
community_app/community_app/users/tests/test_drf_views.py
otivedani/monorepo_community_web
a0a719500c5d2cf8426c8502a181d7ceb50830fb
[ "MIT" ]
2
2021-02-04T14:34:11.000Z
2021-02-04T14:36:31.000Z
community_app/community_app/users/tests/test_drf_views.py
otivedani/monorepo_community_web
a0a719500c5d2cf8426c8502a181d7ceb50830fb
[ "MIT" ]
2
2021-02-04T14:37:37.000Z
2021-02-06T04:39:00.000Z
import pytest from django.test import RequestFactory from community_app.users.api.views import UserViewSet from community_app.users.models import User pytestmark = pytest.mark.django_db class TestUserViewSet: def test_get_queryset(self, user: User, rf: RequestFactory): view = UserViewSet() reque...
25.342857
67
0.621195
4a1ae80200996e87020ba900969dbdcbc8340b46
2,404
py
Python
python/torch_mlir/compiler_utils.py
ramiro050/torch-mlir
a34dad2e077592deb497a9077fc3188b6e1154d5
[ "Apache-2.0" ]
2
2022-02-16T21:56:00.000Z
2022-02-20T17:34:47.000Z
python/torch_mlir/compiler_utils.py
makslevental/torch-mlir
5cff40c88a1468752a23a7c9971cfa6a5c045351
[ "Apache-2.0" ]
null
null
null
python/torch_mlir/compiler_utils.py
makslevental/torch-mlir
5cff40c88a1468752a23a7c9971cfa6a5c045351
[ "Apache-2.0" ]
null
null
null
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # Also available under a BSD-style license. See LICENSE. from io import StringIO import os import sys import tempfile fro...
40.745763
83
0.674709
4a1aea19fd57e1bef2a59121de2ac85014f131e4
5,850
py
Python
process_idear.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
2
2017-07-31T11:45:46.000Z
2017-08-09T09:32:35.000Z
process_idear.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
28
2016-11-17T11:12:32.000Z
2018-11-02T14:09:13.000Z
process_idear.py
Multiscale-Genomics/mg-process-fastq
50c7115c0c1a6af48dc34f275e469d1b9eb02999
[ "Apache-2.0" ]
4
2017-02-12T17:47:21.000Z
2018-05-29T08:16:27.000Z
#!/usr/bin/env python """ .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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 ...
29.396985
80
0.59265