hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
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
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
8f86c9bc30828759404426370ae1a7425634c5b9
4,609
py
Python
vvxme/menu/simulate_key_events_submenu.py
eupubs/vvxme
a3e6fd9040c4344da4203739b2aeeef4d48a02ca
[ "MIT" ]
2
2019-11-29T09:03:46.000Z
2020-05-11T18:51:30.000Z
vvxme/menu/simulate_key_events_submenu.py
eupubs/vvxme
a3e6fd9040c4344da4203739b2aeeef4d48a02ca
[ "MIT" ]
null
null
null
vvxme/menu/simulate_key_events_submenu.py
eupubs/vvxme
a3e6fd9040c4344da4203739b2aeeef4d48a02ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import keyboard from vvxme import menu import time import sys # In[ ]: def simulate_key_events_submenu(dev, pdmssp=False): """ Method - Simulate Key Events Menu INPUTS: dev as object OUTPUT: none """ loop = True menu.clear() wh...
30.726667
112
0.47928
8f870b6f87da7fd61b06772f3c169b867c535291
1,225
py
Python
Task2E.py
anirudhbhalekar/Part1A-FWS-97
0de5e84d2bc99fe376b57106c22be4a4d5972acd
[ "MIT" ]
2
2022-02-01T16:38:42.000Z
2022-02-01T16:38:57.000Z
Task2E.py
anirudhbhalekar/Part1A-FWS-97
0de5e84d2bc99fe376b57106c22be4a4d5972acd
[ "MIT" ]
1
2022-02-04T19:56:15.000Z
2022-02-04T19:56:45.000Z
Task2E.py
anirudhbhalekar/Part1A-FWS-97
0de5e84d2bc99fe376b57106c22be4a4d5972acd
[ "MIT" ]
null
null
null
from distutils.command.build import build from floodsystem.utils import sorted_by_key from floodsystem.stationdata import build_station_list from floodsystem.plot import plot_water_levels import datetime from floodsystem.stationdata import update_water_levels from floodsystem.datafetcher import fetch_measure_levels fr...
29.166667
96
0.721633
8f89df2176b70cb0bc775f029410ac6f351e4aaf
5,005
py
Python
dataset/clean_label_cifar10.py
ZhenyuZhangUSTC/loss-landscape
debe6373714372c040b29a55dffa96cff99e2b8f
[ "MIT" ]
4
2022-03-09T00:58:35.000Z
2022-03-31T07:34:07.000Z
dataset/clean_label_cifar10.py
ZhenyuZhangUSTC/loss-landscape
debe6373714372c040b29a55dffa96cff99e2b8f
[ "MIT" ]
null
null
null
dataset/clean_label_cifar10.py
ZhenyuZhangUSTC/loss-landscape
debe6373714372c040b29a55dffa96cff99e2b8f
[ "MIT" ]
null
null
null
from PIL import Image from torch.utils import data from torchvision import transforms from torchvision.datasets import CIFAR10 import numpy as np import torch import random from dataset.pgd_attack import PgdAttack
36.007194
143
0.57982
8f8a7dac562b647fccb14949a167fb27ceb35df9
4,101
py
Python
syslog_monitoring/DNSHealthCheck/__init__.py
haihuynh-bluecat/syslog_mon
8ef4f6ab52dc4a9cf2a81e5c6bbf9b63ae95d6de
[ "Apache-2.0" ]
1
2020-06-08T15:57:56.000Z
2020-06-08T15:57:56.000Z
syslog_monitoring/DNSHealthCheck/__init__.py
haihuynh-bluecat/syslog_mon
8ef4f6ab52dc4a9cf2a81e5c6bbf9b63ae95d6de
[ "Apache-2.0" ]
1
2020-04-02T04:39:22.000Z
2020-04-02T04:39:22.000Z
syslog_monitoring/DNSHealthCheck/__init__.py
haihuynh-bluecat/syslog_mon
8ef4f6ab52dc4a9cf2a81e5c6bbf9b63ae95d6de
[ "Apache-2.0" ]
3
2020-03-04T09:39:56.000Z
2021-04-22T06:20:36.000Z
# Copyright 2019 BlueCat Networks (USA) Inc. and its affiliates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
35.66087
129
0.602292
8f8bac00504c5bb434251bf0a0ab45ac3d403096
217
py
Python
Desafios/AULA/2.1 Boliche com Tio Rubs.py
evertonROY/Python
b64f98e52700a4f1f4212400b69c9d6d080c8f88
[ "MIT" ]
null
null
null
Desafios/AULA/2.1 Boliche com Tio Rubs.py
evertonROY/Python
b64f98e52700a4f1f4212400b69c9d6d080c8f88
[ "MIT" ]
null
null
null
Desafios/AULA/2.1 Boliche com Tio Rubs.py
evertonROY/Python
b64f98e52700a4f1f4212400b69c9d6d080c8f88
[ "MIT" ]
null
null
null
''' a = qtd pistas 1 b = qtd pessoas por pistas 9 c = qtd alunos 4 ''' A, B, C = [int(x) for x in input().split()] if (A*B) > C: print("S") else: print("N")
16.692308
43
0.400922
8f8e5a2db87b4f600f71ff1e66c1b14a995f8c2b
215
py
Python
Testes Basicos/built_in_functions.py
gustavoLuuD/estudos_python
c8d3e97913d8fc2d046c7a1942b24800779438f5
[ "MIT" ]
null
null
null
Testes Basicos/built_in_functions.py
gustavoLuuD/estudos_python
c8d3e97913d8fc2d046c7a1942b24800779438f5
[ "MIT" ]
null
null
null
Testes Basicos/built_in_functions.py
gustavoLuuD/estudos_python
c8d3e97913d8fc2d046c7a1942b24800779438f5
[ "MIT" ]
null
null
null
value = 74.55 value2 = 74.3 value4 = -100 print(f"O valor 1 {round(value)} e o valor 2 {round(value2)}") print(f"O valor 1 tambm {int(value)}") print(f"O valor absoluto de {value4} {abs(value4)}") print(3//2)
30.714286
64
0.665116
8f8efc2310eeea2e384d88b51c3b58442b2b2f34
809
py
Python
src/comexio_http/tag.py
sanderd17/comexio-http-api
08580f118365e50b9473bb3437158baff1e07c8b
[ "MIT" ]
null
null
null
src/comexio_http/tag.py
sanderd17/comexio-http-api
08580f118365e50b9473bb3437158baff1e07c8b
[ "MIT" ]
null
null
null
src/comexio_http/tag.py
sanderd17/comexio-http-api
08580f118365e50b9473bb3437158baff1e07c8b
[ "MIT" ]
null
null
null
from .auth import Auth
23.794118
96
0.611867
8f8f8e7db9c0000b59929ca76137ce5dc35b360c
622
py
Python
src/typeconvert/ufunc.py
jolsten/float-interpreter
ed090cee55012f2e72d451ca85ba0528ed203b4d
[ "MIT" ]
1
2022-02-03T01:46:52.000Z
2022-02-03T01:46:52.000Z
src/typeconvert/ufunc.py
jolsten/float-interpreter
ed090cee55012f2e72d451ca85ba0528ed203b4d
[ "MIT" ]
null
null
null
src/typeconvert/ufunc.py
jolsten/float-interpreter
ed090cee55012f2e72d451ca85ba0528ed203b4d
[ "MIT" ]
null
null
null
from typeconvert.types.onescomp import ufunc as onescomp from typeconvert.types.twoscomp import ufunc as twoscomp from typeconvert.types.milstd1750a32 import ufunc as milstd1750a32 from typeconvert.types.milstd1750a48 import ufunc as milstd1750a48 from typeconvert.types.ti32 import ufunc as ti32 from typeconve...
38.875
67
0.827974
8f93b66dde157acbb6af2fc0a8acb61534446a20
2,252
py
Python
.templates_py/PipelineModule.py
lnilya/sammie
656b57ecef67923228f866406385b767a7099e3d
[ "BSD-3-Clause" ]
2
2022-02-03T20:03:54.000Z
2022-02-03T20:14:37.000Z
.templates_py/PipelineModule.py
lnilya/sammie
656b57ecef67923228f866406385b767a7099e3d
[ "BSD-3-Clause" ]
null
null
null
.templates_py/PipelineModule.py
lnilya/sammie
656b57ecef67923228f866406385b767a7099e3d
[ "BSD-3-Clause" ]
null
null
null
from src.sammie.py.modules.ModuleBase import ModuleBase
39.508772
154
0.674067
8f94c54e071098bb572a49f1c667bb100c0764ab
4,121
py
Python
examples/ipcount/ipcount.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
1
2017-11-16T02:13:15.000Z
2017-11-16T02:13:15.000Z
examples/ipcount/ipcount.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
examples/ipcount/ipcount.py
ZEMUSHKA/pydoop
e3d3378ae9921561f6c600c79364c2ad42ec206d
[ "Apache-2.0" ]
null
null
null
# BEGIN_COPYRIGHT # # Copyright 2009-2014 CRS4. # # 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...
34.923729
78
0.715603
8f95bfd1b9620b0dbb4a2ac282872ee79ea87f6c
4,317
py
Python
xii/assembler/ufl_utils.py
MiroK/fenics_ii
58c41f0e8dba720962830395851e081b057269cc
[ "MIT" ]
10
2017-06-22T21:05:17.000Z
2020-09-25T08:36:59.000Z
xii/assembler/ufl_utils.py
MiroK/fenics_ii
58c41f0e8dba720962830395851e081b057269cc
[ "MIT" ]
2
2018-04-14T08:43:59.000Z
2018-09-19T14:51:46.000Z
xii/assembler/ufl_utils.py
MiroK/fenics_ii
58c41f0e8dba720962830395851e081b057269cc
[ "MIT" ]
6
2018-04-13T20:33:53.000Z
2020-09-25T08:37:01.000Z
from dolfin.function.argument import Argument from ufl.core.terminal import Terminal import dolfin as df def topological_dim(thing): '''Extract topological dimension of thing's cell''' domain = thing.ufl_domain() # None with e.g. Constants return -1 if domain is None else domain.ufl_cell().topological_d...
31.057554
99
0.660644
8f96a55d1504d805bc76ef65a83c32a5c90bb65b
4,594
py
Python
stockengine/stock.py
fernandoleira/stockengine
b66c5f98d460025d414422fc7dac24368d90d0ce
[ "MIT" ]
null
null
null
stockengine/stock.py
fernandoleira/stockengine
b66c5f98d460025d414422fc7dac24368d90d0ce
[ "MIT" ]
null
null
null
stockengine/stock.py
fernandoleira/stockengine
b66c5f98d460025d414422fc7dac24368d90d0ce
[ "MIT" ]
null
null
null
import requests import selectolax.parser as sp ALPHA_API_KEY = "76B2BGRH6OJS3Z0I" NAME_FILTER = { ord(" "): "_", ord("."): "", ord("("): "", ord(")"): "", ord("'"): "", }
37.048387
115
0.505007
8f97733578aea70dd5bd91b1442223c9921204ad
1,059
py
Python
hiquant/indicator/cci.py
floatinghotpot/hiquant
a4a68c3ff88c35f1076e884861d365f7c5d6fae7
[ "Apache-2.0" ]
7
2021-06-16T14:21:49.000Z
2021-09-30T14:34:57.000Z
hiquant/indicator/cci.py
webclinic017/hiquant
3f5de4f61b6dded2f082dc5b9adf086de485bb7c
[ "Apache-2.0" ]
null
null
null
hiquant/indicator/cci.py
webclinic017/hiquant
3f5de4f61b6dded2f082dc5b9adf086de485bb7c
[ "Apache-2.0" ]
2
2021-09-24T16:13:04.000Z
2021-11-29T01:10:50.000Z
# -*- coding: utf-8 -*- from .basic import CROSS, NON_ZERO, MAD from .ma import SMA from ..core.indicator_signal import register_signal_indicator # Commodity Channel Index, by Donald Lambert, 1980s # -------------------------------------------- register_signal_indicator('cci', signal_cci, ['cci', 'cci_upper', 'cci_l...
36.517241
94
0.606232
8f97a3112c8be222a5c9d7a58fe7a2512eaafdcf
9,131
py
Python
src/python/mp_init.py
xupingmao/minipy
5bce2f238925eb92fe9ff7d935f59ef68daa257a
[ "MIT" ]
52
2016-07-11T10:14:35.000Z
2021-12-09T09:10:43.000Z
src/python/mp_init.py
xupingmao/minipy
5bce2f238925eb92fe9ff7d935f59ef68daa257a
[ "MIT" ]
13
2016-07-24T13:50:37.000Z
2019-03-02T06:56:18.000Z
src/python/mp_init.py
xupingmao/minipy
5bce2f238925eb92fe9ff7d935f59ef68daa257a
[ "MIT" ]
9
2017-01-27T10:46:04.000Z
2021-12-09T09:10:46.000Z
# -*- coding:utf-8 -*- # @author xupingmao # @since 2016 # @modified 2020/10/20 01:14:39 """Minipy, _import""" # string methods. add_obj_method("list", "copy", _list_copy) add_builtin("printf", printf) def _import(des_glo, fname, tar = None): """import module, *WARN* this _import function can not prevent impor...
25.43454
89
0.540686
8f98256b724490264cf94a9a22939ecdb7fc37de
3,287
py
Python
src/chapter8/project2_b.py
group3BSE1/BSE-2021
c3d04df5afb97a742858d72e0699a65de072f26f
[ "MIT" ]
null
null
null
src/chapter8/project2_b.py
group3BSE1/BSE-2021
c3d04df5afb97a742858d72e0699a65de072f26f
[ "MIT" ]
null
null
null
src/chapter8/project2_b.py
group3BSE1/BSE-2021
c3d04df5afb97a742858d72e0699a65de072f26f
[ "MIT" ]
1
2021-04-09T09:26:27.000Z
2021-04-09T09:26:27.000Z
global file_object global min_country global max_country # a function to invoke the open_file and process_file functions main()
34.239583
98
0.605415
8f99094690f0ad3b05f85866bb2d100491ae35a7
4,317
py
Python
tools_predictors/train_predictor_rl.py
auroua/SSNENAS
65bdece174f0da2f9a3c716b86859abba077d279
[ "MIT" ]
2
2020-12-29T06:33:22.000Z
2022-02-19T22:21:05.000Z
tools_predictors/train_predictor_rl.py
auroua/SSNENAS
65bdece174f0da2f9a3c716b86859abba077d279
[ "MIT" ]
null
null
null
tools_predictors/train_predictor_rl.py
auroua/SSNENAS
65bdece174f0da2f9a3c716b86859abba077d279
[ "MIT" ]
null
null
null
import argparse import os import sys sys.path.append(os.getcwd()) from nas_lib.trainer.trainer import NASBenchTrainer from nas_lib.data import data import tensorflow as tf from nas_lib.utils.comm import set_random_seed, setup_logger import time import pickle from configs import darts_converted_data_path os.environ['T...
46.419355
108
0.631457
8f9933c062cba137b2d377c834aaf2bdd399bd51
2,533
py
Python
OldCode/Object-oriented Version/multilayer (1).py
JGridleyMLDL/TrustforSecurity
c78003f3965f769e0b6fc61f1055ba0af5a4c303
[ "MIT" ]
null
null
null
OldCode/Object-oriented Version/multilayer (1).py
JGridleyMLDL/TrustforSecurity
c78003f3965f769e0b6fc61f1055ba0af5a4c303
[ "MIT" ]
null
null
null
OldCode/Object-oriented Version/multilayer (1).py
JGridleyMLDL/TrustforSecurity
c78003f3965f769e0b6fc61f1055ba0af5a4c303
[ "MIT" ]
null
null
null
import json import numpy from dataclasses import dataclass from collections import defaultdict ### Default Values ### gamma = 0.5 initialPrecision = 0.8 initialRecall = 0.8 initialAccuracy = 0.8 ### Data Classes ### ### Estimating C ### def sigmoid(x): return (1.0/(1.0 + numpy.exp(-x))) #Equation 14 (Replac...
28.144444
105
0.642321
8f9bccca00ad377e38355adc4cdf7e077d4479ca
1,880
py
Python
events/urls/my.py
Ben-Peters/lnldb
4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7
[ "MIT" ]
null
null
null
events/urls/my.py
Ben-Peters/lnldb
4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7
[ "MIT" ]
null
null
null
events/urls/my.py
Ben-Peters/lnldb
4264ce52e85c20fe1e964f9e36aa4289b0e7e3c7
[ "MIT" ]
null
null
null
from django.conf.urls import include, url from django.contrib.auth.decorators import login_required from .. import views app_name = 'lnldb' # prefix: /my/ urlpatterns = [ url(r'^workorders/$', views.my.mywo, name="workorders"), url(r'^workorders/attach/(?P<id>[0-9]+)/$', views.flow.assignattach_external, nam...
42.727273
103
0.589362
8f9ca99ab0d124af304b5e47ede7f6a170ae873f
1,920
py
Python
flaskr_carved_rock/models/user.py
ron4u1998/flaskr-carved-rock
82d0e947e147c209bb799ad049653fea72ea678a
[ "BSD-3-Clause" ]
null
null
null
flaskr_carved_rock/models/user.py
ron4u1998/flaskr-carved-rock
82d0e947e147c209bb799ad049653fea72ea678a
[ "BSD-3-Clause" ]
null
null
null
flaskr_carved_rock/models/user.py
ron4u1998/flaskr-carved-rock
82d0e947e147c209bb799ad049653fea72ea678a
[ "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 from sqlalchemy.orm import validates from werkzeug.security import check_password_hash, generate_password_hash from flaskr_carved_rock.login import login_manager from flaskr_carved_rock.sqla import sqla from flask_login import UserMixin
30.967742
85
0.66875
8f9d366bd7ef0370059c3ee36ddc5d684a58e7bd
3,463
py
Python
python/compute_bayes_factors.py
CardiacModelling/PyHillFit
91a9b5dd3a9455dbf0f3a2ea4785402925fab26b
[ "BSD-3-Clause" ]
9
2016-11-21T13:38:59.000Z
2021-11-16T04:03:57.000Z
python/compute_bayes_factors.py
CardiacModelling/PyHillFit
91a9b5dd3a9455dbf0f3a2ea4785402925fab26b
[ "BSD-3-Clause" ]
1
2017-02-27T23:11:54.000Z
2017-07-31T17:55:25.000Z
python/compute_bayes_factors.py
CardiacModelling/PyHillFit
91a9b5dd3a9455dbf0f3a2ea4785402925fab26b
[ "BSD-3-Clause" ]
2
2020-04-06T11:45:05.000Z
2020-12-17T16:50:04.000Z
import doseresponse as dr import numpy as np from glob import glob import itertools as it import os import argparse import sys import multiprocessing as mp parser = argparse.ArgumentParser() parser.add_argument("-nc", "--num-cores", type=int, help="number of cores to parallelise drug/channel combinations", default=1...
33.298077
153
0.688132
8f9dd8424c56fe7c2f6d4b27b0ebe77c5a354d94
3,017
py
Python
losses/msloss.py
hiimmuc/Speaker-verification
b63a1821cbc672bbed7e939e85473337766681aa
[ "MIT" ]
2
2021-09-02T08:04:38.000Z
2021-10-21T02:45:35.000Z
losses/msloss.py
hiimmuc/Speaker-verification
b63a1821cbc672bbed7e939e85473337766681aa
[ "MIT" ]
null
null
null
losses/msloss.py
hiimmuc/Speaker-verification
b63a1821cbc672bbed7e939e85473337766681aa
[ "MIT" ]
null
null
null
# Copyright (c) Malong Technologies Co., Ltd. # All rights reserved. # # Contact: github@malong.com # # This source code is licensed under the LICENSE file in the root directory of this source tree. import torch import torch.nn as nn import torch.nn.functional as F if __name__ == '__main__': loss = LossFunction...
34.678161
125
0.583692
8f9e79d289f9458ec61d577f158e33314ed0402c
4,520
py
Python
nb/nbexp_bilibili.py
xsthunder/rss-reborn
d1bff6cefddd2e6f33af8c7c5e5939e880dc0034
[ "MIT" ]
2
2020-03-03T15:43:10.000Z
2020-03-03T16:25:56.000Z
nb/nbexp_bilibili.py
xsthunder/rss-reborn
d1bff6cefddd2e6f33af8c7c5e5939e880dc0034
[ "MIT" ]
null
null
null
nb/nbexp_bilibili.py
xsthunder/rss-reborn
d1bff6cefddd2e6f33af8c7c5e5939e880dc0034
[ "MIT" ]
null
null
null
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: ./bilibili.ipynb from nbexp_personal import sendEmail # cCURLposix code =read_code('../bili_curl.txt') import nbexp_uncurl import requests from functo...
24.565217
90
0.58031
8f9ed4917f729e586e53295e1160e2b1ee46542b
4,962
py
Python
genomel/slurm/postgres/metrics.py
uc-cdis/cwl
7f01768479e6a77a5caf6b3382174aa038ba05fc
[ "Apache-2.0" ]
1
2020-02-19T15:53:03.000Z
2020-02-19T15:53:03.000Z
genomel/slurm/postgres/metrics.py
uc-cdis/genomel_pipelines
c661469505c606e1353f23c21a6654724a9d8d63
[ "Apache-2.0" ]
10
2018-10-16T00:56:01.000Z
2019-02-05T20:53:28.000Z
genomel/slurm/postgres/metrics.py
uc-cdis/cwl
7f01768479e6a77a5caf6b3382174aa038ba05fc
[ "Apache-2.0" ]
1
2016-09-23T18:48:04.000Z
2016-09-23T18:48:04.000Z
'''update postgres metrics''' import postgres.mixins import postgres.utils def add_metrics(engine, table, data): """ add provided metrics to database """ met = table( job_uuid=data['job_uuid'], slurm_jobid=data['slurm_jobid'], aliquot_id=data['aliquot_id'], input_table=data['in...
40.672131
95
0.68944
8fa066df5d378cf35f4d8328c63d9fdda48eada1
5,627
py
Python
pyspider_GZ.py
Anantuo/pySpider
5dbb707d750f5d01b20bd410b9f1d6e46b8a3f99
[ "Apache-2.0" ]
5
2016-06-15T10:43:03.000Z
2019-11-29T07:39:54.000Z
pyspider_GZ.py
Anantuo/pySpider
5dbb707d750f5d01b20bd410b9f1d6e46b8a3f99
[ "Apache-2.0" ]
null
null
null
pyspider_GZ.py
Anantuo/pySpider
5dbb707d750f5d01b20bd410b9f1d6e46b8a3f99
[ "Apache-2.0" ]
4
2016-01-15T14:22:40.000Z
2019-04-17T03:35:55.000Z
from pyspider.libs.base_handler import * from my import My import os from bs4 import BeautifulSoup ''''''
44.65873
97
0.586103
8fa13894d499cc909aab93389abfa2b994be215a
113
py
Python
sleekxmpp/thirdparty/__init__.py
EnerNOC/smallfoot-sleekxmpp
b3e4d92816df3538e99a5ad1ab536fc38f5ee97a
[ "MIT" ]
null
null
null
sleekxmpp/thirdparty/__init__.py
EnerNOC/smallfoot-sleekxmpp
b3e4d92816df3538e99a5ad1ab536fc38f5ee97a
[ "MIT" ]
1
2020-04-10T22:09:06.000Z
2020-04-10T22:09:06.000Z
sleekxmpp/thirdparty/__init__.py
EnerNOC/smallfoot-sleekxmpp
b3e4d92816df3538e99a5ad1ab536fc38f5ee97a
[ "MIT" ]
null
null
null
try: from collections import OrderedDict except: from sleekxmpp.thirdparty.ordereddict import OrderedDict
28.25
60
0.814159
8fa3e70caa9d6c7c6d647e37d83f168d380b17f5
167
py
Python
slackchatbakery/views/arguments/notification.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
slackchatbakery/views/arguments/notification.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
9
2018-10-19T20:12:23.000Z
2021-06-08T19:30:27.000Z
slackchatbakery/views/arguments/notification.py
The-Politico/django-politico-slackchat-2018-midterms-bakery
77b82ce95f510c142254332255adc615833bcffb
[ "MIT" ]
null
null
null
from .base import BaseArgument
20.875
41
0.730539
8fa4645ad5269cf51c5ad551fdcd202b96e66ee8
2,928
py
Python
setup.py
pjamesjoyce/lcopt_cv
d2545481d5a2e8805f6381d2bb6c9dea8a4404a2
[ "BSD-3-Clause" ]
3
2019-11-20T08:41:04.000Z
2022-03-23T06:41:01.000Z
setup.py
pjamesjoyce/lcopt_cv
d2545481d5a2e8805f6381d2bb6c9dea8a4404a2
[ "BSD-3-Clause" ]
null
null
null
setup.py
pjamesjoyce/lcopt_cv
d2545481d5a2e8805f6381d2bb6c9dea8a4404a2
[ "BSD-3-Clause" ]
1
2022-03-23T06:06:42.000Z
2022-03-23T06:06:42.000Z
''' To create the wheel run - python setup.py bdist_wheel ''' from setuptools import setup import os pkg_name = 'lcopt_cv' pkg_version = '0.1.3' packages = [] root_dir = os.path.dirname(__file__) if root_dir: os.chdir(root_dir) for dirpath, dirnames, filenames in os.walk(pkg_name): # Ignore dirnames that st...
33.272727
127
0.649249
8fa773d3da48d404608fe06cb4c8e55711ac793c
239
py
Python
notebooks/tests/test_mandelbrot_incorrect_test.py
cvdavis3/python-training
77b53b0f84f658a2fb883ac82673404fa0c1f255
[ "Apache-2.0" ]
null
null
null
notebooks/tests/test_mandelbrot_incorrect_test.py
cvdavis3/python-training
77b53b0f84f658a2fb883ac82673404fa0c1f255
[ "Apache-2.0" ]
null
null
null
notebooks/tests/test_mandelbrot_incorrect_test.py
cvdavis3/python-training
77b53b0f84f658a2fb883ac82673404fa0c1f255
[ "Apache-2.0" ]
null
null
null
import numpy as np from mandlebrot import mandelbrot
29.875
41
0.665272
8fa91f33c9f1c1d267d44e1fae97f5af7e8e2554
6,576
py
Python
avalanche/models/generator.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
avalanche/models/generator.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
avalanche/models/generator.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
33.045226
80
0.571776
8faa5150622f7a7260386468cdf1dd80f3148292
245
py
Python
python/destinations/Hello-Panda/quix_function.py
SteveQuixDemo/quix-library
d2ebc220aefb815170fadcb3c9873cc4b2f46fc9
[ "Apache-2.0" ]
7
2022-01-24T23:21:15.000Z
2022-03-26T20:51:16.000Z
python/destinations/Hello-Panda/quix_function.py
SteveQuixDemo/quix-library
d2ebc220aefb815170fadcb3c9873cc4b2f46fc9
[ "Apache-2.0" ]
9
2022-01-17T12:27:34.000Z
2022-03-31T13:11:57.000Z
python/destinations/Hello-Panda/quix_function.py
SteveQuixDemo/quix-library
d2ebc220aefb815170fadcb3c9873cc4b2f46fc9
[ "Apache-2.0" ]
3
2022-02-08T11:24:43.000Z
2022-03-30T14:50:57.000Z
from quixstreaming import ParameterData
22.272727
61
0.726531
8fad3780b5ebc9508bdfc9f62b8013265d83efd2
197
py
Python
admins/urls.py
Sult/evehub
61872390d25dd089958f6b4bbc7677f8dd137297
[ "MIT" ]
null
null
null
admins/urls.py
Sult/evehub
61872390d25dd089958f6b4bbc7677f8dd137297
[ "MIT" ]
null
null
null
admins/urls.py
Sult/evehub
61872390d25dd089958f6b4bbc7677f8dd137297
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, url from admins import views urlpatterns = patterns( '', # Control panels url(r'^admin/overview/$', views.overview, name='admin_overview'), )
16.416667
69
0.690355
8fade37d3a949c8f0fa457cb52e2fe396eedc3f0
3,817
py
Python
nustar_planning/io.py
bwgref/nustar_jupiter
40d829513cd35c2c83190b55ccf27fcada85d7a0
[ "MIT" ]
null
null
null
nustar_planning/io.py
bwgref/nustar_jupiter
40d829513cd35c2c83190b55ccf27fcada85d7a0
[ "MIT" ]
null
null
null
nustar_planning/io.py
bwgref/nustar_jupiter
40d829513cd35c2c83190b55ccf27fcada85d7a0
[ "MIT" ]
1
2018-08-16T14:13:55.000Z
2018-08-16T14:13:55.000Z
def download_tle(outdir='./'): """Download the NuSTAR TLE archive. Parameters ---------- outdir: Optional desired output location. Defaults to the working directory. Returns ---------- Returns the filename that you've downloaded. Notes --------- """...
24.312102
89
0.560126
8faeb13d8f905c19361af335e0eb34cc0470d735
648
py
Python
minder_utils/configurations/__init__.py
minder-utils/minder_utils_light
d0bd7f7279d20b51a6f73aa55f885c04b31dd9f4
[ "MIT" ]
null
null
null
minder_utils/configurations/__init__.py
minder-utils/minder_utils_light
d0bd7f7279d20b51a6f73aa55f885c04b31dd9f4
[ "MIT" ]
null
null
null
minder_utils/configurations/__init__.py
minder-utils/minder_utils_light
d0bd7f7279d20b51a6f73aa55f885c04b31dd9f4
[ "MIT" ]
null
null
null
import os from pathlib import Path from minder_utils.util.util import reformat_path import yaml p = Path(os.path.join(os.path.dirname(__file__), 'confidential')) if not p.exists(): os.mkdir(reformat_path(p)) data_path = os.path.join(os.path.dirname(__file__), 'confidential', 'data_path.txt') token_path = os.path....
40.5
94
0.757716
8faf2403996a11177a5bec9c179f33d151fb78f2
232
py
Python
todo.py
Pickwell15/to-do-list
4ab7aaa3039eceb1f30a062a454d8902838930d6
[ "CC0-1.0" ]
1
2021-08-29T20:01:56.000Z
2021-08-29T20:01:56.000Z
todo.py
Pickwell15/to-do-list
4ab7aaa3039eceb1f30a062a454d8902838930d6
[ "CC0-1.0" ]
null
null
null
todo.py
Pickwell15/to-do-list
4ab7aaa3039eceb1f30a062a454d8902838930d6
[ "CC0-1.0" ]
null
null
null
""" OBJECTS --------------- PUBLIC | ToDo MODULES --------------- EXTERNAL | dataclasses -> dataclass """ from dataclasses import dataclass
12.888889
36
0.577586
8fb07024546299adba4054d53c408ee1d9edcd0b
3,867
py
Python
cogs/birthday.py
reline/nolanbot
2f46acb8d38363fbad70249a6d7df99c5feeb95c
[ "Apache-2.0" ]
2
2021-03-13T00:57:12.000Z
2021-04-20T04:33:41.000Z
cogs/birthday.py
reline/nolanbot
2f46acb8d38363fbad70249a6d7df99c5feeb95c
[ "Apache-2.0" ]
4
2021-12-01T06:13:50.000Z
2022-01-05T03:29:53.000Z
cogs/birthday.py
reline/nolanbot
2f46acb8d38363fbad70249a6d7df99c5feeb95c
[ "Apache-2.0" ]
2
2021-05-24T21:54:34.000Z
2021-12-01T03:28:19.000Z
import discord import asyncio import json import datetime from datetime import date from discord.ext import commands, tasks bd_names = {} users_to_celebrate = [] time_for_thing_to_happen = datetime.time(hour=0) # 0000UTC - suck it PST people #async def timedtask(): # while True: # now = datetime.datetime...
30.210938
80
0.578226
8fb079ad47e78c7439a4ead56f58836497076fa6
22
py
Python
aliyun-python-sdk-cms/aliyunsdkcms/__init__.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-cms/aliyunsdkcms/__init__.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cms/aliyunsdkcms/__init__.py
bricklayer-Liu/aliyun-openapi-python-sdk
20da2554de22679fc7c5462c483663e4d79512aa
[ "Apache-2.0" ]
null
null
null
__version__ = '7.0.15'
22
22
0.681818
8fb0c8f3215a2104752be7237a18dcc7867edf63
119
py
Python
1.py
orangeshushu/lable-tool
654ac3a3c033b1047fd05c38eaa4bc3176b430d2
[ "MIT" ]
null
null
null
1.py
orangeshushu/lable-tool
654ac3a3c033b1047fd05c38eaa4bc3176b430d2
[ "MIT" ]
null
null
null
1.py
orangeshushu/lable-tool
654ac3a3c033b1047fd05c38eaa4bc3176b430d2
[ "MIT" ]
null
null
null
print("330 - (177.98 + 17.59 + 3.68 + 51.91/2 - 55 - 4.5) =" + str(330 - (177.98 + 17.59 + 3.68 + 51.91/2 - 55 - 4.5)))
119
119
0.470588
8fb2b6f222d8f600f24fa8ae2c22e884a4891fca
456
py
Python
dueros/directive/VideoPlayer/VideoStop.py
ayxue/BaiduSaxoOpenAPI
d042366bb33ebdc4471b29e167b01c4cb7cb298d
[ "Apache-2.0" ]
null
null
null
dueros/directive/VideoPlayer/VideoStop.py
ayxue/BaiduSaxoOpenAPI
d042366bb33ebdc4471b29e167b01c4cb7cb298d
[ "Apache-2.0" ]
null
null
null
dueros/directive/VideoPlayer/VideoStop.py
ayxue/BaiduSaxoOpenAPI
d042366bb33ebdc4471b29e167b01c4cb7cb298d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding=utf-8 -*- # description: # author:jack # create_time: 2018/7/13 """ desc:pass """ from dueros.directive.BaseDirective import BaseDirective from dueros.directive.AudioPlayer.PlayBehaviorEnum import PlayBehaviorEnum from dueros.Utils import Utils if __name__ == '__main__': ...
17.538462
74
0.721491
8fb3fcc41834373888df11ca3beac35e76e07acb
610
py
Python
src/domo.py
iFabio2/domo
685a887b7440adcf2ec4780ac2386b7b2cad0209
[ "Apache-2.0" ]
null
null
null
src/domo.py
iFabio2/domo
685a887b7440adcf2ec4780ac2386b7b2cad0209
[ "Apache-2.0" ]
null
null
null
src/domo.py
iFabio2/domo
685a887b7440adcf2ec4780ac2386b7b2cad0209
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys, time from domo import DomoApp, DomoLog #main object creation myapp = DomoApp.DomoApp() #try: if 1 == 1: '''first thing we do is to create the main object which in turn will create the rest of the objects''' DomoLog.log('INFO', 'main', 'starting threads') myapp.run() ...
21.034483
59
0.598361
8fb43d0c87195e91806d26a3b2291322485ed4de
13,045
py
Python
apps/logs/logic/data_import.py
techlib/celus
f32a7a22be5f4613dcac10b8e02c5c5a9bc297cb
[ "MIT" ]
7
2020-02-20T13:24:40.000Z
2022-01-28T19:36:04.000Z
apps/logs/logic/data_import.py
techlib/celus
f32a7a22be5f4613dcac10b8e02c5c5a9bc297cb
[ "MIT" ]
15
2020-04-28T13:09:02.000Z
2021-11-03T15:21:24.000Z
apps/logs/logic/data_import.py
techlib/celus
f32a7a22be5f4613dcac10b8e02c5c5a9bc297cb
[ "MIT" ]
4
2020-02-20T13:48:30.000Z
2021-03-19T00:33:34.000Z
import logging from collections import Counter, namedtuple from datetime import date from typing import Optional, Tuple, Set from core.logic.debug import log_memory from logs.logic.validation import clean_and_validate_issn, ValidationError, normalize_isbn from logs.models import ImportBatch from nigiri.counter5 import...
40.262346
99
0.617555
8fb571fde8880cb6b3ed3ef3fdd2b031759c7a96
485
py
Python
examples/Python/multiedges.py
var414n/ubigraph_server
66571a68b7c2b27debc65df390426d77cbb88795
[ "Apache-2.0" ]
4
2022-01-18T00:41:39.000Z
2022-02-04T09:45:29.000Z
examples/Python/multiedges.py
var414n/ubigraph_server
66571a68b7c2b27debc65df390426d77cbb88795
[ "Apache-2.0" ]
null
null
null
examples/Python/multiedges.py
var414n/ubigraph_server
66571a68b7c2b27debc65df390426d77cbb88795
[ "Apache-2.0" ]
1
2019-01-06T12:56:32.000Z
2019-01-06T12:56:32.000Z
import xmlrpclib import time # Create an object to represent our server. server_url = 'http://127.0.0.1:20738/RPC2' server = xmlrpclib.Server(server_url) G = server.ubigraph G.clear() x = G.new_vertex() y = G.new_vertex() G.set_edge_style_attribute(0, "spline", "true") G.set_vertex_style_attribute(0, "shape", "sph...
20.208333
51
0.717526
8fb67d2c6f556dcd39ca4620235f0e4b3e555619
10,948
py
Python
game.py
ChristianBRPy/RollingDiceGame
a086e5a88350331b10d09fc8c1db6c89cdd8f5c9
[ "Apache-2.0" ]
null
null
null
game.py
ChristianBRPy/RollingDiceGame
a086e5a88350331b10d09fc8c1db6c89cdd8f5c9
[ "Apache-2.0" ]
null
null
null
game.py
ChristianBRPy/RollingDiceGame
a086e5a88350331b10d09fc8c1db6c89cdd8f5c9
[ "Apache-2.0" ]
null
null
null
import os, sys, random, csv, getpass, platform gamename = "Rolling Dice Game" os.system('cls' if os.name == 'nt' else 'clear') if platform.system() == "Linux": os.system("PROMPT_COMMAND='echo -ne \"\033]0;"+gamename+"\007\"'") else: os.system('title '+gamename if os.name == 'nt' else 'title="'+gamename+'" && ...
32.390533
113
0.44145
8fb76f3d32c4bdafeae8de44835166e4b229c8db
836
py
Python
solutions/previous_solution_python/leetcode_1041.py
YuhanShi53/Leetcode_solutions
cdcad34656d25d6af09b226e17250c6070305ab0
[ "MIT" ]
null
null
null
solutions/previous_solution_python/leetcode_1041.py
YuhanShi53/Leetcode_solutions
cdcad34656d25d6af09b226e17250c6070305ab0
[ "MIT" ]
null
null
null
solutions/previous_solution_python/leetcode_1041.py
YuhanShi53/Leetcode_solutions
cdcad34656d25d6af09b226e17250c6070305ab0
[ "MIT" ]
null
null
null
""" Leetcode 1041 - Robot Bounded in Circle https://leetcode.com/problems/robot-bounded-in-circle/ """ if __name__ == '__main__': instructions = "GGG" res = Solution1().is_robot_bounded(instructions) print(res)
22.594595
58
0.505981
8fb98d32cab778ab9fe8d0731121a6f7138d8c46
12,013
py
Python
tests/test_decorators.py
Dominik1123/click-inspect
d8c6616fa556785fce9bd4ef3d5bb5fb54219956
[ "MIT" ]
null
null
null
tests/test_decorators.py
Dominik1123/click-inspect
d8c6616fa556785fce9bd4ef3d5bb5fb54219956
[ "MIT" ]
null
null
null
tests/test_decorators.py
Dominik1123/click-inspect
d8c6616fa556785fce9bd4ef3d5bb5fb54219956
[ "MIT" ]
null
null
null
from __future__ import annotations import sys from typing import List, Sequence, Tuple, Union import click import pytest from click_inspect.decorators import add_options_from, _parse_type_hint_into_kwargs
31.949468
101
0.682427
8fb9c5a56e0bbcd525dfe2f7a92b08ae465c82be
2,278
py
Python
rterm_src/get_rss.py
totuta/rterm
9a01933e8f59ae7df75e70e83a57d181162662d9
[ "MIT" ]
10
2022-01-16T14:15:05.000Z
2022-01-30T13:49:27.000Z
rterm_src/get_rss.py
totuta/rterm
9a01933e8f59ae7df75e70e83a57d181162662d9
[ "MIT" ]
1
2022-01-16T14:08:39.000Z
2022-01-16T14:09:51.000Z
rreader_src/get_rss.py
rainygirl/rreader
b669d6999c6085f958051404d4260982738ababd
[ "MIT" ]
null
null
null
import datetime import feedparser import json import os import shutil import sys import time from .common import p, FEEDS_FILE_NAME from .config import TIMEZONE if __name__ == "__main__": do()
29.584416
146
0.553556
8fbadd797079a59bb7c16b5b056dc3c3435e7089
1,390
py
Python
tools/reuse_factors_examples.py
walkieq/LSTM-HLS
f90bc769153e667eb8a30c7c4147bd53620f02bb
[ "Apache-2.0" ]
18
2021-06-17T18:25:02.000Z
2022-03-29T09:30:50.000Z
tools/reuse_factors_examples.py
vamsikrishnabodaballa/RNN_HLS
892b5315c27953af7dc387f4df5475962178201a
[ "Apache-2.0" ]
3
2021-10-30T17:48:04.000Z
2022-01-08T21:03:40.000Z
tools/reuse_factors_examples.py
vamsikrishnabodaballa/RNN_HLS
892b5315c27953af7dc387f4df5475962178201a
[ "Apache-2.0" ]
5
2021-06-17T18:25:06.000Z
2022-03-17T11:05:54.000Z
import math import numpy as np """ This function calculates the roots of the quadratic inequality for the Rh reuse factor. Parameters: lx - list of input sizes of the lstms. The size of this list is equal to the number of layers. lh - list of input sizes of the hidden layers. The size of this ...
28.367347
119
0.627338
8fbbe2e4ee092ee6d6ab9b91cdab67c7d1d4a0db
5,543
py
Python
processing_components/calibration/pointing.py
ska-telescope/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
22
2016-12-14T11:20:07.000Z
2021-08-13T15:23:41.000Z
processing_components/calibration/pointing.py
ska-telescope/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
30
2017-06-27T09:15:38.000Z
2020-09-11T18:16:37.000Z
processing_components/calibration/pointing.py
SKA-ScienceDataProcessor/algorithm-reference-library
1b2c8d6079249202864abf8c60cdea40f0f123cb
[ "Apache-2.0" ]
20
2017-07-02T03:45:49.000Z
2019-12-11T17:19:01.000Z
""" Functions for calibration, including creation of pointingtables, application of pointingtables, and merging pointingtables. """ import copy import logging import numpy.linalg from data_models.memory_data_models import PointingTable, BlockVisibility, QA from data_models.memory_data_models import ReceptorFrame f...
34.216049
118
0.648746
8fbcc4c5e6588cf9b8d93e9638b85b3ec56bfe21
1,067
py
Python
lab01/tiago-dalloca.py
Desnord/lab-mc102
470e5d942cf57305d8ba0b272f4c5f9aad4de11f
[ "Apache-2.0" ]
7
2018-03-30T21:08:14.000Z
2018-08-23T01:10:27.000Z
lab01/tiago-dalloca.py
Desnord/lab-mc102
470e5d942cf57305d8ba0b272f4c5f9aad4de11f
[ "Apache-2.0" ]
2
2018-03-30T23:24:41.000Z
2018-05-15T00:46:12.000Z
lab01/tiago-dalloca.py
Desnord/lab-mc102
470e5d942cf57305d8ba0b272f4c5f9aad4de11f
[ "Apache-2.0" ]
7
2018-03-30T21:13:46.000Z
2018-09-23T17:12:33.000Z
# DESCRIO # Escreva um programa que calcule a circunferncia C de um determinado # planeta, com base na observao do ngulo A, entre duas localidades C1 e # C2, e na distncia D, em estdios, entre elas. # Suponha que as localidades estejam no mesmo meridiano de um planeta # esfrico. O seu programa dever imprimir a circun...
23.195652
74
0.725398
8fbd96ca95eb76eb9acc3c4f1c519f62e7b294aa
9,533
py
Python
src/squad/test.py
sciling/example-kubeflow-qatransfer
a3d74dacb1da22ab5ea60574943022584570f4d0
[ "Apache-2.0" ]
null
null
null
src/squad/test.py
sciling/example-kubeflow-qatransfer
a3d74dacb1da22ab5ea60574943022584570f4d0
[ "Apache-2.0" ]
null
null
null
src/squad/test.py
sciling/example-kubeflow-qatransfer
a3d74dacb1da22ab5ea60574943022584570f4d0
[ "Apache-2.0" ]
null
null
null
try: from kfp.components import InputPath from kfp.components import OutputPath except ImportError: metrics = "Metrics"
39.230453
87
0.625511
8fbe2b88fe74cf906d86d3d7c7460534f06760eb
1,318
py
Python
run_evaulate.py
aayn/seaadrl-pytorch
964ba1130ab3218c3d54ae794aced80093ab4102
[ "MIT" ]
3
2021-08-31T01:09:39.000Z
2022-01-05T06:00:33.000Z
run_evaulate.py
aayn/seaadrl-pytorch
964ba1130ab3218c3d54ae794aced80093ab4102
[ "MIT" ]
null
null
null
run_evaulate.py
aayn/seaadrl-pytorch
964ba1130ab3218c3d54ae794aced80093ab4102
[ "MIT" ]
1
2022-01-05T06:00:36.000Z
2022-01-05T06:00:36.000Z
import os import time from collections import deque import functools import itertools from typing import Callable, Iterable import numpy as np import yaml import gym from box import Box import torch # torch.multiprocessing.set_start_method("forkserver") import torch.nn as nn from torch.utils.data import IterableData...
23.963636
92
0.714719
8fbed7e84fdd8393d70bf89cce05dafbe83cd336
3,731
py
Python
tests/test_safe_threading.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
7
2020-05-30T05:57:39.000Z
2022-03-05T06:09:26.000Z
tests/test_safe_threading.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
2
2020-05-30T15:12:44.000Z
2020-10-06T12:54:41.000Z
tests/test_safe_threading.py
justengel/continuous_threading
33e109df22eee202774975a3a940fb15164e6a78
[ "MIT" ]
1
2020-03-03T19:37:44.000Z
2020-03-03T19:37:44.000Z
import time import continuous_threading if __name__ == '__main__': test_thread() test_continuous_thread() test_pausable_thread() test_operation_thread() print("All tests passed successfully!")
20.5
87
0.573573
8fbf6c510d8981d5648b4ab19a4b8becf43e9729
2,304
py
Python
django/app_whoami/views.py
a-rey/aaronmreyes_heroku
f397741ec33a35c318b6e4d51837b352183085f9
[ "MIT" ]
1
2022-03-12T22:23:44.000Z
2022-03-12T22:23:44.000Z
django/app_whoami/views.py
a-rey/docker_website
f397741ec33a35c318b6e4d51837b352183085f9
[ "MIT" ]
2
2020-04-07T22:09:50.000Z
2020-04-07T22:09:50.000Z
django/app_whoami/views.py
a-rey/docker_website
f397741ec33a35c318b6e4d51837b352183085f9
[ "MIT" ]
null
null
null
import decimal import ipaddress import django.http import django.core.cache import app_whoami.models def main(request): """ request handler for '/'. """ # try to get client IP from HTTP header raw_ip = request.META.get('HTTP_X_FORWARDED_FOR', request.META.get('REMOTE_ADDR', None)) if not raw_ip: ret...
33.391304
90
0.697049
8fc03e4f3fc819cc171c85db5f830d76402c9b7d
5,918
py
Python
tests/python_frontend/unroll_test.py
FlorianDeconinck/dace
687e0b775f239873a0ff30aeedfa8f41e6b3ff3f
[ "BSD-3-Clause" ]
null
null
null
tests/python_frontend/unroll_test.py
FlorianDeconinck/dace
687e0b775f239873a0ff30aeedfa8f41e6b3ff3f
[ "BSD-3-Clause" ]
null
null
null
tests/python_frontend/unroll_test.py
FlorianDeconinck/dace
687e0b775f239873a0ff30aeedfa8f41e6b3ff3f
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. """ Tests loop unrolling functionality. """ import dace from dace.frontend.python import astutils from dace.frontend.python.preprocessing import LoopUnroller, DaceSyntaxError import numpy as np import pytest def test_native_unroll(): """ ...
25.95614
80
0.591923
8fc0719066a0a3eb36810cf1961b3600c2a372b9
23,431
py
Python
converter/nnef_converters/tf_converters/nnef_to_tf/transformations.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
converter/nnef_converters/tf_converters/nnef_to_tf/transformations.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
converter/nnef_converters/tf_converters/nnef_to_tf/transformations.py
asdor/NNEF-Tools
e84c3db29c1bffbd1938d40a10765badc0848606
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 The Khronos Group Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
38.411475
116
0.65567
8fc4566b329d9b87c6d4a6e9c39997618e51837f
1,353
py
Python
src/sst/elements/simpleElementExample/tests/example0.py
sudhanshu2/sst-elements
d658e5e4b26e5725488f9e93528506ddb22072ee
[ "BSD-3-Clause" ]
58
2015-10-05T15:22:27.000Z
2022-03-31T01:58:36.000Z
src/sst/elements/simpleElementExample/tests/example0.py
sudhanshu2/sst-elements
d658e5e4b26e5725488f9e93528506ddb22072ee
[ "BSD-3-Clause" ]
1,453
2015-10-07T14:51:06.000Z
2022-03-31T22:22:28.000Z
src/sst/elements/simpleElementExample/tests/example0.py
sudhanshu2/sst-elements
d658e5e4b26e5725488f9e93528506ddb22072ee
[ "BSD-3-Clause" ]
109
2015-10-16T22:03:10.000Z
2022-03-22T23:21:32.000Z
# Import the SST module import sst # In Example0, two components send each other a number of events # The simulation ends when the components have sent and # received all expected events. While the eventSize is parameterized, # it has no effect on simulation time because the components don't limit # their link bandwi...
35.605263
84
0.75388
8fc46a0cea8d599b2e3cb170bc4da8cc1384b79d
461
py
Python
sphinxcontrib/needs/services/base.py
twodrops/sphinxcontrib-needs
c2081bd499fe7d36840d29ca3fb05c80e7bf2284
[ "MIT" ]
null
null
null
sphinxcontrib/needs/services/base.py
twodrops/sphinxcontrib-needs
c2081bd499fe7d36840d29ca3fb05c80e7bf2284
[ "MIT" ]
null
null
null
sphinxcontrib/needs/services/base.py
twodrops/sphinxcontrib-needs
c2081bd499fe7d36840d29ca3fb05c80e7bf2284
[ "MIT" ]
null
null
null
import sphinx from pkg_resources import parse_version sphinx_version = sphinx.__version__ if parse_version(sphinx_version) >= parse_version("1.6"): from sphinx.util import logging else: import logging logging.basicConfig()
23.05
72
0.724512
8fc480eb8d46edadfde9367fbe48b862617d5e03
13,100
py
Python
hardware/opentrons_hardware/scripts/network_test.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
hardware/opentrons_hardware/scripts/network_test.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
hardware/opentrons_hardware/scripts/network_test.py
Opentrons/protocol_framework
ebbd6b2fe984edd6ecfcbf1dbe040db7f7356b9f
[ "Apache-2.0" ]
null
null
null
"""Network error and quality test script. By sending broadcast messages that incur responses on the canbus network, we can test whether all nodes get those messages without errors. At a specified bitrate, knowing the length of the messages lets us stimulate at a specific percentage of nameplace capacity. We can then g...
31.11639
86
0.644351
8fc4dc5b423e2b11e388aad555f37c5c24a6c3d4
1,419
py
Python
laptop/gui.py
zach-lau/FreeFlowingFurniture
9981339c0325ce5d3d2e6a6413083e62e40f4583
[ "MIT" ]
1
2020-06-25T03:35:25.000Z
2020-06-25T03:35:25.000Z
laptop/gui.py
zach-lau/FreeFlowingFurniture
9981339c0325ce5d3d2e6a6413083e62e40f4583
[ "MIT" ]
null
null
null
laptop/gui.py
zach-lau/FreeFlowingFurniture
9981339c0325ce5d3d2e6a6413083e62e40f4583
[ "MIT" ]
1
2020-03-10T17:50:48.000Z
2020-03-10T17:50:48.000Z
#System libraries import tkinter as tk import sys sys.path.insert(1, '../common') import socket from cli import * #User libraries # from motorcommands import * key_to_direction = { 38: "left", 25: "forward", 40: "right", 39: "back", 65: "stop", } numbers = { 19 : 0, 10 : 1, ...
21.830769
64
0.525722
8fc6afa8027d8c0a714488f4afcf18f48361227b
9,623
py
Python
meerschaum/connectors/sql/_users.py
bmeares/Meerschaum
37bd7a9923efce53e91c6a1d9c31f9533b9b4463
[ "Apache-2.0" ]
32
2020-09-14T16:29:19.000Z
2022-03-08T00:51:28.000Z
meerschaum/connectors/sql/_users.py
bmeares/Meerschaum
37bd7a9923efce53e91c6a1d9c31f9533b9b4463
[ "Apache-2.0" ]
3
2020-10-04T20:03:30.000Z
2022-02-02T21:04:46.000Z
meerschaum/connectors/sql/_users.py
bmeares/Meerschaum
37bd7a9923efce53e91c6a1d9c31f9533b9b4463
[ "Apache-2.0" ]
5
2021-04-22T23:49:21.000Z
2022-02-02T12:59:08.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 """ Manage users via the SQL Connector """ from __future__ import annotations from meerschaum.utils.typing import SuccessTuple, Optional, Any, Dict, List def register_user( self, user : meerschaum._internal.User.User, debug : boo...
31.55082
95
0.637223
8fc78883dd2549e802ca8403e85a9829407cb0f2
6,764
py
Python
frappe/commands/create_demo.py
fproldan/frappe
7547bb04d7375b546d9662899dd13c31b8ecc3fb
[ "MIT" ]
null
null
null
frappe/commands/create_demo.py
fproldan/frappe
7547bb04d7375b546d9662899dd13c31b8ecc3fb
[ "MIT" ]
17
2021-03-22T18:47:14.000Z
2022-03-15T12:21:00.000Z
frappe/commands/create_demo.py
fproldan/frappe
7547bb04d7375b546d9662899dd13c31b8ecc3fb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, absolute_import import frappe def setear_fechas(doctype, dates=[], child_dates={}, related_doctype=''): """ doctype (str): Quotation dates (list): ['transaction_date', 'valid_till'] child_dates (dict): {'Payment Schedule': 'due_date'} related_doctype (str):...
44.5
252
0.666765
8fc919f16bd8a2537f14121e5a3782149aa15e6b
2,126
py
Python
tests/test_utils.py
metasyn/scikeras
cb422fdd4f5c592feb71ce155fa25f26b25cdd82
[ "MIT" ]
111
2020-06-16T16:14:09.000Z
2022-03-28T14:28:28.000Z
tests/test_utils.py
metasyn/scikeras
cb422fdd4f5c592feb71ce155fa25f26b25cdd82
[ "MIT" ]
240
2020-07-13T15:51:34.000Z
2022-03-29T07:46:09.000Z
tests/test_utils.py
metasyn/scikeras
cb422fdd4f5c592feb71ce155fa25f26b25cdd82
[ "MIT" ]
16
2020-07-13T14:41:17.000Z
2022-03-19T11:50:02.000Z
import numpy as np import pytest from tensorflow.keras import losses as losses_module from tensorflow.keras import metrics as metrics_module from scikeras.utils import loss_name, metric_name def test_unknown_loss_raises(): with pytest.raises(ValueError, match="Unknown loss function"): loss_name("u...
26.911392
78
0.718721
8fca6f7a8f3b1a47f699c1ba6a3c8b00405d1f82
1,251
py
Python
majestic-monolith-django/core/log_schema.py
kokospapa8/majestic-monolith-django
a0879989a651ecef6761ee7fce619ab17738bb35
[ "Apache-2.0" ]
1
2022-03-12T09:55:36.000Z
2022-03-12T09:55:36.000Z
majestic-monolith-django/core/log_schema.py
kokospapa8/majestic-monolith-django
a0879989a651ecef6761ee7fce619ab17738bb35
[ "Apache-2.0" ]
6
2022-03-09T10:42:44.000Z
2022-03-31T08:27:25.000Z
majestic-monolith-django/core/log_schema.py
kokospapa8/majestic-monolith-django
a0879989a651ecef6761ee7fce619ab17738bb35
[ "Apache-2.0" ]
null
null
null
from kubi_ecs_logger.models import BaseSchema from kubi_ecs_logger.models.include import INCLUDE_FIELDS from kubi_ecs_logger.models.fields.user import UserSchema from kubi_ecs_logger.models.fields.field_set import FieldSet, FieldSetSchema from marshmallow import fields MMD_CUSTOM_INCLUDE_FIELDS = INCLUDE_FIELDS
27.8
76
0.631495
8fca70e22f94237a43a7bec530cb4b3a9e50d977
16,859
py
Python
sdk/python/pulumi_azure/apimanagement/product_api.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/apimanagement/product_api.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/apimanagement/product_api.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
47.759207
229
0.675485
8fcb60a94c2aba459c7a5de47b677894b91e7f19
982
py
Python
applications/RANSApplication/python_scripts/fluid_solver_no_replace.py
HubertBalcerzak/Kratos
c15689d53f06dabb36dc44c13eeac73d3e183916
[ "BSD-4-Clause" ]
null
null
null
applications/RANSApplication/python_scripts/fluid_solver_no_replace.py
HubertBalcerzak/Kratos
c15689d53f06dabb36dc44c13eeac73d3e183916
[ "BSD-4-Clause" ]
1
2019-12-05T05:33:34.000Z
2019-12-05T05:33:34.000Z
applications/RANSApplication/python_scripts/fluid_solver_no_replace.py
HayoungChung/Kratos
8a996625261ecf2e33923df95e449c0874d6f4f5
[ "BSD-4-Clause" ]
null
null
null
from __future__ import absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # Import applications import KratosMultiphysics as Kratos # Import base class file from KratosMultiphysics.FluidDynamicsApplication.navier_stokes_solver_vmsmonolithic import NavierStokesSolverMonol...
37.769231
120
0.752546
8fccee019be03d30bdfcbdebfb4161fb3cc04d9f
7,088
py
Python
repos/spikeextractors/spikeextractors/extractors/biocamrecordingextractor/biocamrecordingextractor.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikeextractors/spikeextractors/extractors/biocamrecordingextractor/biocamrecordingextractor.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
repos/spikeextractors/spikeextractors/extractors/biocamrecordingextractor/biocamrecordingextractor.py
tjd2002/spikeforest2
2e393564b858b2995aa2ccccd9bd73065681b5de
[ "Apache-2.0" ]
null
null
null
from spikeextractors import RecordingExtractor import numpy as np import h5py import ctypes def openBiocamFile(filename): """Open a Biocam hdf5 file, read and return the recording info, pick te correct method to access raw data, and return this to the caller.""" rf = h5py.File(filename, 'r') # Read reco...
40.971098
174
0.616676
8fce06694a51391a6f5a1b64ee54dd040834e481
4,280
py
Python
src/foremast/awslambda/cloudwatch_event/cloudwatch_event.py
StuartApp/foremast
ecfd569d4c972e5f8a6cce672f08845643849562
[ "Apache-2.0" ]
null
null
null
src/foremast/awslambda/cloudwatch_event/cloudwatch_event.py
StuartApp/foremast
ecfd569d4c972e5f8a6cce672f08845643849562
[ "Apache-2.0" ]
null
null
null
src/foremast/awslambda/cloudwatch_event/cloudwatch_event.py
StuartApp/foremast
ecfd569d4c972e5f8a6cce672f08845643849562
[ "Apache-2.0" ]
null
null
null
# Foremast - Pipeline Tooling # # Copyright 2018 Gogo, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
38.558559
114
0.689019
8fd112385e85f60302d92c1ec0b726f196a2d2f8
964
py
Python
commercialoperator/migrations/0086_auto_20200817_1702.py
shibaken/commercialoperator
1e0adfe683288626d9d3113e9efb44e0eba78adb
[ "Apache-2.0" ]
null
null
null
commercialoperator/migrations/0086_auto_20200817_1702.py
shibaken/commercialoperator
1e0adfe683288626d9d3113e9efb44e0eba78adb
[ "Apache-2.0" ]
12
2020-02-12T06:26:55.000Z
2022-02-13T05:52:54.000Z
commercialoperator/migrations/0086_auto_20200817_1702.py
shibaken/commercialoperator
1e0adfe683288626d9d3113e9efb44e0eba78adb
[ "Apache-2.0" ]
8
2020-02-24T05:11:18.000Z
2021-02-26T07:54:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-08-17 09:02 from __future__ import unicode_literals from django.db import migrations, models
37.076923
299
0.664938
8fd1a869a307cb963df420776582253aee8db365
606
py
Python
pytglib/api/types/rich_texts.py
iTeam-co/pytglib
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
6
2019-10-30T08:57:27.000Z
2021-02-08T14:17:43.000Z
pytglib/api/types/rich_texts.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
1
2021-08-19T05:44:10.000Z
2021-08-19T07:14:56.000Z
pytglib/api/types/rich_texts.py
iTeam-co/python-telegram
e5e75e0a85f89b77762209b32a61b0a883c0ae61
[ "MIT" ]
5
2019-12-04T05:30:39.000Z
2021-05-21T18:23:32.000Z
from ..utils import Object
18.363636
61
0.551155
8fd26c4b25f098f2b3515fb0683a42e08bcc1190
1,037
py
Python
aiy_led.py
YeongJunKim/rpi-pyrec
81ccfce023a877ad6fa8543f199be10742739400
[ "Apache-2.0" ]
1
2018-08-06T08:28:11.000Z
2018-08-06T08:28:11.000Z
aiy_led.py
YeongJunKim/rpi_pyrec
81ccfce023a877ad6fa8543f199be10742739400
[ "Apache-2.0" ]
null
null
null
aiy_led.py
YeongJunKim/rpi_pyrec
81ccfce023a877ad6fa8543f199be10742739400
[ "Apache-2.0" ]
null
null
null
# autor : colson (Yeong Jun Kim) # https://www.github.com/YeongJunKim from aiy.vision.leds import Leds from time import sleep from aiy_log import MyLogger import logging if __name__ == '__main__': main()
22.06383
61
0.600771
8fd2edaa49182cf2cb06148cb073e882f3e4532a
1,814
py
Python
nullcline-plot.py
liu2z2/nullclineplot
79ab955f059d90251b2d2dcd9859fa8eb63dfaaf
[ "MIT" ]
null
null
null
nullcline-plot.py
liu2z2/nullclineplot
79ab955f059d90251b2d2dcd9859fa8eb63dfaaf
[ "MIT" ]
null
null
null
nullcline-plot.py
liu2z2/nullclineplot
79ab955f059d90251b2d2dcd9859fa8eb63dfaaf
[ "MIT" ]
null
null
null
# By Zuguang Liu 4/27/2019 # Plot aged-based predation model # Diff eq used in this model: # dv/dt=Bu-v-Dv(u+v)-Pv, du/dt=v-u(u+v)-Qu # Import the required modules import numpy as np import matplotlib.pyplot as plt from matplotlib import cm # External parameters B=1 D=1 P=2 Q=0 # display window of x ...
23.558442
101
0.642778
8fd43d0f68a92c7ce707bcf357006d7a49badd4a
1,449
py
Python
torrent/torrent_tracker/whitelist_api/serializers.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
3
2021-04-17T10:20:26.000Z
2022-03-08T07:36:13.000Z
torrent/torrent_tracker/whitelist_api/serializers.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
torrent/torrent_tracker/whitelist_api/serializers.py
projectpai/paipass
8b8e70b6808bf026cf957e240c7eed7bfcf4c55d
[ "MIT" ]
null
null
null
# Core from django.utils.translation import ugettext_lazy as _ from django.conf import settings # Third party from rest_framework import serializers # Local from .models import TorrentInfoHash
35.341463
103
0.706694
8fd56d88e8db3f6cb979ef9a18b6b123c7acf0a4
186
py
Python
configs/flownet2/flownet2sd_8x1_slong_chairssdhom_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
481
2021-11-16T07:04:23.000Z
2022-03-31T22:21:21.000Z
configs/flownet2/flownet2sd_8x1_slong_chairssdhom_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
72
2021-11-16T12:25:55.000Z
2022-03-28T13:10:45.000Z
configs/flownet2/flownet2sd_8x1_slong_chairssdhom_384x448.py
hologerry/mmflow
40caf064851bd95317424e31cc137c0007a2bece
[ "Apache-2.0" ]
48
2021-11-16T06:48:46.000Z
2022-03-30T12:46:40.000Z
_base_ = [ '../_base_/models/flownet2/flownet2sd.py', '../_base_/datasets/chairssdhom_384x448.py', '../_base_/schedules/schedule_s_long.py', '../_base_/default_runtime.py' ]
31
76
0.688172
8fd5b7b9f105329ffd5fd5dab7eada6993aab1c2
3,750
py
Python
examples/HER/HER_eager.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
23
2019-04-04T17:34:56.000Z
2021-12-14T19:34:10.000Z
examples/HER/HER_eager.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
5
2020-11-13T17:40:40.000Z
2022-03-12T00:11:33.000Z
examples/HER/HER_eager.py
Rowing0914/TF_RL
68e5e9a23e38ed2d8ac5f97d380567b919a3d2e7
[ "MIT" ]
3
2019-07-17T23:56:36.000Z
2022-03-13T03:55:21.000Z
import gym import argparse import tensorflow as tf from tf_rl.common.memory import HER_replay_buffer from tf_rl.common.utils import eager_setup, her_sampler, create_log_model_directory, get_alg_name, RunningMeanStd from tf_rl.common.params import ROBOTICS_ENV_LIST from tf_rl.common.train import train_HER, train_HER_ray...
44.642857
113
0.767733
8fd5d740496e20347ef10c8b97a936bf7ac0ef99
2,616
py
Python
tools/convert_nb201_benchmark.py
matluster/anonymous-2102
3825f0077cdbebc7c3b34a68e43a3affa22a3e60
[ "Apache-2.0" ]
null
null
null
tools/convert_nb201_benchmark.py
matluster/anonymous-2102
3825f0077cdbebc7c3b34a68e43a3affa22a3e60
[ "Apache-2.0" ]
null
null
null
tools/convert_nb201_benchmark.py
matluster/anonymous-2102
3825f0077cdbebc7c3b34a68e43a3affa22a3e60
[ "Apache-2.0" ]
null
null
null
import collections import pickle import random import h5py import numpy as np import tqdm from nas_201_api import NASBench201API random.seed(0) api = NASBench201API("/tmp/NAS-Bench-201-v1_1-096897.pth") results = [] for arch_index in tqdm.tqdm(range(len(api))): op_matrix = NASBench201API.str2matrix(api.arch(arc...
42.193548
125
0.624235
8fd5f29e97acb4b168e4ccde34e36d371de23301
886
py
Python
hdfio/mat_io.py
RealPolitiX/hdfio
04ac22154019a243702e3cbe622d346f870a11e7
[ "MIT" ]
null
null
null
hdfio/mat_io.py
RealPolitiX/hdfio
04ac22154019a243702e3cbe622d346f870a11e7
[ "MIT" ]
null
null
null
hdfio/mat_io.py
RealPolitiX/hdfio
04ac22154019a243702e3cbe622d346f870a11e7
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- from . import dict_io as io import numpy as np from h5py import File from scipy.io import loadmat, savemat # Conversion functions def mat_to_h5(load_addr, h5_dir, keep_meta=False, loadkwargs={}, **kwargs): """ Convert mat file to HDF5 via dictionary. """ s...
26.058824
89
0.667043
8fd627c34fe6856c059f4f50328f1da178a89cc8
3,527
py
Python
diffimg/AbstractPrfLookup.py
exoplanetvetting/DAVE
aea19a30d987b214fb4c0cf01aa733f127c411b9
[ "MIT" ]
7
2019-05-07T02:01:51.000Z
2022-03-16T08:09:39.000Z
diffimg/AbstractPrfLookup.py
barentsen/dave
45ba97b7b535ad26dd555c33c963c6224a9af23c
[ "MIT" ]
18
2015-12-09T22:18:59.000Z
2017-04-26T13:11:44.000Z
diffimg/AbstractPrfLookup.py
barentsen/dave
45ba97b7b535ad26dd555c33c963c6224a9af23c
[ "MIT" ]
5
2017-03-08T11:42:53.000Z
2020-05-07T00:10:37.000Z
""" Created on Sun Dec 2 14:12:41 2018 @author: fergal """ from __future__ import print_function from __future__ import division import numpy as np
30.938596
89
0.600227
8fd7c61de1a9fa96c0542025479683d5e477222b
39,478
py
Python
main.py
Template-Latex/Export-Subtemplate
595bf76f5c94daffdba4fbb686d51cce7ad298c8
[ "MIT" ]
1
2017-08-02T02:54:53.000Z
2017-08-02T02:54:53.000Z
main.py
Template-Latex/Export-Subtemplate
595bf76f5c94daffdba4fbb686d51cce7ad298c8
[ "MIT" ]
null
null
null
main.py
Template-Latex/Export-Subtemplate
595bf76f5c94daffdba4fbb686d51cce7ad298c8
[ "MIT" ]
null
null
null
""" EXPORT-SUBTEMPLATE Genera distintos sub-releases y exporta los templates Autor: Pablo Pizarro R. @ ppizarror.com Licencia: The MIT License (MIT) Copyright 2017-2021 Pablo Pizarro R. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docume...
41.908705
118
0.496124
8fd8405b0107cb06104386c67e2d0616573472d8
5,224
py
Python
rklearn/tests/it/cifar10_data_generator.py
rejux/rklearn-lib
56bc4f087a8c971cb545d65b0c1f9bafaaec3d67
[ "MIT" ]
null
null
null
rklearn/tests/it/cifar10_data_generator.py
rejux/rklearn-lib
56bc4f087a8c971cb545d65b0c1f9bafaaec3d67
[ "MIT" ]
null
null
null
rklearn/tests/it/cifar10_data_generator.py
rejux/rklearn-lib
56bc4f087a8c971cb545d65b0c1f9bafaaec3d67
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############# ## Imports ## ############# import os import sys ; sys.path.append("/home/developer/workspace/rklearn-lib") import time import pickle import numpy as np from rklearn.tfoo_v1 import BaseDataGenerator from rktools.monitors import ProgressBar ##############...
37.314286
144
0.542496
8fda5b8c2d00662b5dc05be98b5882ad45c82eb9
3,667
py
Python
scheduler/views.py
saketbairoliya2/salescheduler
8aa06fafe663727f9c657e71a1d8b8d2e4c43f53
[ "MIT" ]
null
null
null
scheduler/views.py
saketbairoliya2/salescheduler
8aa06fafe663727f9c657e71a1d8b8d2e4c43f53
[ "MIT" ]
null
null
null
scheduler/views.py
saketbairoliya2/salescheduler
8aa06fafe663727f9c657e71a1d8b8d2e4c43f53
[ "MIT" ]
null
null
null
from django.contrib.auth import login, authenticate from django.contrib.auth.forms import UserCreationForm from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect, HttpResponseBadRequest from django.contrib.auth.decorators import login_required from django.views.decorato...
38.197917
108
0.742842
8fdab9e986f28b972fe777268c5b6d64795df2f2
2,740
py
Python
py/_run_py3.py
FellowsFreiesWissen/-
3e74e6531985b0e9ba2e34bf1f6a1224cc7b52f3
[ "MIT" ]
1
2021-02-08T20:33:41.000Z
2021-02-08T20:33:41.000Z
py/_run_py3.py
FellowsFreiesWissen/-
3e74e6531985b0e9ba2e34bf1f6a1224cc7b52f3
[ "MIT" ]
null
null
null
py/_run_py3.py
FellowsFreiesWissen/-
3e74e6531985b0e9ba2e34bf1f6a1224cc7b52f3
[ "MIT" ]
1
2021-01-01T17:23:40.000Z
2021-01-01T17:23:40.000Z
__author__ = "Florian Thiery" __copyright__ = "MIT Licence 2021, Florian Thiery" __credits__ = ["Florian Thiery"] __license__ = "MIT" __version__ = "1.0" __maintainer__ = "Florian Thiery" __email__ = "mail@fthiery.de" __status__ = "1.0" __update__ = "2021-05-11" import glob import os import os.path dir_path = os.path...
34.25
70
0.705474
8fdb6b33954a423453e52b31082e0f06f382093c
4,353
py
Python
furaffinity/misc.py
lukeroge/python-furaffinity
40261bf29fde888cd8d79d204cc9b77c4ae74cad
[ "MIT" ]
3
2020-02-18T15:19:41.000Z
2021-11-26T00:42:08.000Z
furaffinity/misc.py
lukeroge/python-furaffinity
40261bf29fde888cd8d79d204cc9b77c4ae74cad
[ "MIT" ]
71
2019-11-10T02:21:10.000Z
2022-03-18T08:52:25.000Z
furaffinity/misc.py
lukeroge/python-furaffinity
40261bf29fde888cd8d79d204cc9b77c4ae74cad
[ "MIT" ]
3
2020-12-23T14:59:18.000Z
2021-01-07T09:25:45.000Z
import hashlib # To hash images and files import os # For working with paths import re import attr # For useful tiny classes. import requests from .errors import SubmissionFileNotAccessible # Functions for... functionality. def clean(text, safe=False, separator=" "): """ Takes a string and cleans it up. """ ...
30.65493
111
0.591776
8fdba5223cb9bba44aedb03befbb2ec3d8d750b7
2,809
py
Python
fastsettings/models.py
wickeym/django-fastsettings
a1a14248b04415aeb24fc8ece2b12a82b05c0e37
[ "Apache-2.0" ]
2
2019-09-26T16:34:01.000Z
2019-11-28T00:39:39.000Z
fastsettings/models.py
wickeym/django-fastsettings
a1a14248b04415aeb24fc8ece2b12a82b05c0e37
[ "Apache-2.0" ]
2
2021-06-04T21:37:26.000Z
2021-06-09T17:25:32.000Z
fastsettings/models.py
wickeym/django-fastsettings
a1a14248b04415aeb24fc8ece2b12a82b05c0e37
[ "Apache-2.0" ]
null
null
null
# -*- encoding=UTF-8 -*- from __future__ import unicode_literals from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver import json from . import projectsettings as fstsettings import logging logger = logging.getLogger('fastsettings_logger') # ==============...
46.04918
170
0.663225
8fdf6def1199362a429b295f53c3e9fb5cf09573
168
py
Python
app/admin.py
VickramMS/arccp
40d1664b8b491cd743d88f9b512d014b74b6e921
[ "bzip2-1.0.6" ]
null
null
null
app/admin.py
VickramMS/arccp
40d1664b8b491cd743d88f9b512d014b74b6e921
[ "bzip2-1.0.6" ]
5
2020-06-05T20:17:36.000Z
2021-06-04T22:13:23.000Z
app/admin.py
VickramMS/arccp
40d1664b8b491cd743d88f9b512d014b74b6e921
[ "bzip2-1.0.6" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Test) admin.site.register(Question) admin.site.register(Report) admin.site.register(Formula)
24
32
0.815476
8fe172663a6f380d951323146f173c46589f91ff
7,764
py
Python
helpers/helpers.py
JoseSalgado1024/anonimizar_columnas
d3372507bfb0932053508bea593f11e135771b83
[ "MIT" ]
null
null
null
helpers/helpers.py
JoseSalgado1024/anonimizar_columnas
d3372507bfb0932053508bea593f11e135771b83
[ "MIT" ]
7
2017-09-20T19:31:34.000Z
2017-09-20T20:04:34.000Z
helpers/helpers.py
JoseSalgado1024/anonimizar_columnas
d3372507bfb0932053508bea593f11e135771b83
[ "MIT" ]
1
2017-09-21T04:02:02.000Z
2017-09-21T04:02:02.000Z
# coding: utf8 import json import os import time import random import socket import hashlib try: lib = __import__('pandas') globals()['pd'] = lib except ImportError: pandas_import_error_msg = \ ''' Este script utiliza la libreria de Python Pandas. Por favor ejecuta: $ sudo -H pip install pand...
29.976834
104
0.579985
8fe18b2d23b3bf76d573a46e20c59f2ee3f28aad
3,973
py
Python
packages/python/m/core/json.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
null
null
null
packages/python/m/core/json.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
null
null
null
packages/python/m/core/json.py
LaudateCorpus1/m
57e258ddb1347f8e29673410e12575d203bb19c8
[ "MIT" ]
1
2021-12-31T13:25:33.000Z
2021-12-31T13:25:33.000Z
import json import sys from collections.abc import Mapping from typing import Any, List from typing import Mapping as Map from typing import Optional, Union, cast from . import issue from .fp import Good, OneOf from .io import CITool from .issue import Issue def read_json( filename: Optional[str], error_if_e...
28.177305
78
0.575887
8fe1daba837194ffd8a01877792d1dbd0a476e76
110
py
Python
image_generation/__init__.py
shibing624/cvnet
5b9032a6d4be731cca92392a6779d56635781169
[ "Apache-2.0" ]
2
2020-10-27T01:35:32.000Z
2020-12-07T19:09:51.000Z
image_generation/__init__.py
shibing624/imagefun
5c5c688b530f07688cda85705591634286f0b848
[ "Apache-2.0" ]
1
2020-12-01T14:24:06.000Z
2020-12-01T14:24:06.000Z
image_generation/__init__.py
shibing624/imagefun
5c5c688b530f07688cda85705591634286f0b848
[ "Apache-2.0" ]
1
2021-05-19T02:41:40.000Z
2021-05-19T02:41:40.000Z
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: ganvae """
18.333333
44
0.672727
8fe3ba9889578ae07b17d66b4e9120dfc571dcd7
45
py
Python
detector/__init__.py
EvenDBL/License-Plate-Detection-and-Recognition
edeead48c2a12736a0fcd79ba8d1ae3cbdf60aee
[ "Unlicense" ]
1
2022-03-28T09:42:45.000Z
2022-03-28T09:42:45.000Z
detector/__init__.py
EvenDBL/License-Plate-Detection-and-Recognition
edeead48c2a12736a0fcd79ba8d1ae3cbdf60aee
[ "Unlicense" ]
null
null
null
detector/__init__.py
EvenDBL/License-Plate-Detection-and-Recognition
edeead48c2a12736a0fcd79ba8d1ae3cbdf60aee
[ "Unlicense" ]
null
null
null
from .segmentation_detector import SEGDetecor
45
45
0.911111
8fe85a2a5d2edcb245d3a863873043a418150fca
349
py
Python
setup.py
Huge/shamir
10d6d74d985603c049e31d32d1ce528936989503
[ "CC0-1.0" ]
19
2018-10-27T02:45:22.000Z
2021-07-16T06:40:03.000Z
setup.py
Huge/shamir
10d6d74d985603c049e31d32d1ce528936989503
[ "CC0-1.0" ]
1
2020-05-15T08:46:48.000Z
2020-05-15T08:46:48.000Z
setup.py
Huge/shamir
10d6d74d985603c049e31d32d1ce528936989503
[ "CC0-1.0" ]
7
2018-08-11T16:37:09.000Z
2021-08-23T14:13:35.000Z
from setuptools import setup, find_packages setup( name='shamir', version='17.12.0', url='https://github.com/kurtbrose/shamir', author='Kurt Rose', author_email='kurt@kurtrose.com', decription="fast, secure, pure python shamir's secret sharing", long_description = open('README.rst').read(),...
29.083333
67
0.679083
8febb42b37ae808190d70f602307a2a934dec8c6
566
py
Python
alembic/versions/2016120514_add_anonymous_flags_4ea0403733dc.py
nikita-bykov/codalab-worksheets
d9c5b987a0b139847db6e758c167b7f2ca8936f3
[ "Apache-2.0" ]
1
2021-01-02T03:33:58.000Z
2021-01-02T03:33:58.000Z
alembic/versions/2016120514_add_anonymous_flags_4ea0403733dc.py
nikita-bykov/codalab-worksheets
d9c5b987a0b139847db6e758c167b7f2ca8936f3
[ "Apache-2.0" ]
null
null
null
alembic/versions/2016120514_add_anonymous_flags_4ea0403733dc.py
nikita-bykov/codalab-worksheets
d9c5b987a0b139847db6e758c167b7f2ca8936f3
[ "Apache-2.0" ]
1
2020-03-13T08:16:17.000Z
2020-03-13T08:16:17.000Z
"""Add anonymous flags Revision ID: 4ea0403733dc Revises: 540856fade99 Create Date: 2016-12-05 14:04:39.239593 """ # revision identifiers, used by Alembic. revision = '4ea0403733dc' down_revision = '46d007c5ebc3' from alembic import op import sqlalchemy as sa
22.64
87
0.731449
8fed07d868b1415683b6a432e94e863cda621c28
2,035
py
Python
main.py
eero-inc/dnsmonitor
f129f1c347c03319b0c809a07040533733102ee8
[ "Apache-2.0" ]
7
2018-11-29T19:40:05.000Z
2021-02-19T08:42:26.000Z
main.py
eero-inc/dnsmonitor
f129f1c347c03319b0c809a07040533733102ee8
[ "Apache-2.0" ]
null
null
null
main.py
eero-inc/dnsmonitor
f129f1c347c03319b0c809a07040533733102ee8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import dnsmonitor import json import os from base64 import b64decode import boto3 import logging logger = logging.getLogger() logger.setLevel(logging.INFO) if __name__ == "__main__": main()
24.817073
86
0.6457
8fee198219fd138298212b10a600f66c52459450
16,603
py
Python
plot_all_hurricane_tracks/plot_all_tracks.py
Sunnyfred/Atlantic_Hurricane_Simulations
ee5d6d0f975876a01c4a21bebd3089bf3bbb843a
[ "MIT" ]
null
null
null
plot_all_hurricane_tracks/plot_all_tracks.py
Sunnyfred/Atlantic_Hurricane_Simulations
ee5d6d0f975876a01c4a21bebd3089bf3bbb843a
[ "MIT" ]
null
null
null
plot_all_hurricane_tracks/plot_all_tracks.py
Sunnyfred/Atlantic_Hurricane_Simulations
ee5d6d0f975876a01c4a21bebd3089bf3bbb843a
[ "MIT" ]
1
2021-11-05T18:14:09.000Z
2021-11-05T18:14:09.000Z
import csv import matplotlib.pyplot as plt import numpy as np from collections import OrderedDict import matplotlib as mpl # import matplotlib.gridspec as gridspec from matplotlib.ticker import MaxNLocator from matplotlib.ticker import StrMethodFormatter import matplotlib.font_manager as font_manager from matplotlib.pa...
26.5648
113
0.512618
8fee528ec1beb9dc6b7933b5c7d7c6187548f4b2
1,600
py
Python
server/star.py
1850061/image_retrieval
5af4d03181e5d1fab172f5f2f92c963429f954fa
[ "Apache-2.0" ]
null
null
null
server/star.py
1850061/image_retrieval
5af4d03181e5d1fab172f5f2f92c963429f954fa
[ "Apache-2.0" ]
null
null
null
server/star.py
1850061/image_retrieval
5af4d03181e5d1fab172f5f2f92c963429f954fa
[ "Apache-2.0" ]
null
null
null
import os import matplotlib.image as mpimg from tensorflow.python.platform import gfile basePath = os.getcwd()
30.188679
78
0.585625
8fef94923eadf976ba3995508b48158ac493b560
6,904
py
Python
Part3-Article-NLP/question_answering/app_question_answering.py
tonywu71/Excess-Mortality-Covid
0f5b39e6932848223f1404cef6c4f59be1c591be
[ "MIT" ]
1
2021-05-27T08:25:16.000Z
2021-05-27T08:25:16.000Z
Part3-Article-NLP/question_answering/app_question_answering.py
tonywu71/Excess-Mortality-Covid
0f5b39e6932848223f1404cef6c4f59be1c591be
[ "MIT" ]
null
null
null
Part3-Article-NLP/question_answering/app_question_answering.py
tonywu71/Excess-Mortality-Covid
0f5b39e6932848223f1404cef6c4f59be1c591be
[ "MIT" ]
null
null
null
import dash from dash.dependencies import Input, Output, State import dash_core_components as dcc import dash_html_components as html import dash_table import plotly.express as px import pandas as pd import requests from bs4 import BeautifulSoup import re from newspaper import Article import sys module_path = './que...
24.309859
124
0.48595
8ff12f6df682241b328db019b6ead4ffb89e48ff
128
py
Python
pelicanconf_local.example.py
marcus-clements/pelican-netlify-cms
0970c6d011301acec6feaf6d4391dcd8f983ef8d
[ "MIT" ]
null
null
null
pelicanconf_local.example.py
marcus-clements/pelican-netlify-cms
0970c6d011301acec6feaf6d4391dcd8f983ef8d
[ "MIT" ]
null
null
null
pelicanconf_local.example.py
marcus-clements/pelican-netlify-cms
0970c6d011301acec6feaf6d4391dcd8f983ef8d
[ "MIT" ]
2
2020-05-17T00:49:23.000Z
2020-05-21T11:39:56.000Z
LOAD_CONTENT_CACHE = False # Uncomment following line if you want document-relative URLs when developing #RELATIVE_URLS = True
25.6
77
0.820313
8ff1bd02967b9015ddb310f863929cfa6c7bdef2
1,361
py
Python
core/views.py
kevcal69/etmark
8206db1dace3f8ed81ed4848d02f927a47aa8cbc
[ "MIT" ]
null
null
null
core/views.py
kevcal69/etmark
8206db1dace3f8ed81ed4848d02f927a47aa8cbc
[ "MIT" ]
3
2020-06-05T18:16:22.000Z
2022-01-15T01:12:15.000Z
core/views.py
kevcal69/etmark
8206db1dace3f8ed81ed4848d02f927a47aa8cbc
[ "MIT" ]
1
2020-07-23T14:13:27.000Z
2020-07-23T14:13:27.000Z
import json from hashids import Hashids from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponse, HttpResponseRedirect from django.views.generic import View from .models import Document hashids = Hashids()
26.173077
63
0.609846
8ff2794fe479bdef6f00d2bd1e3f2e54d5364f73
10,731
py
Python
src/orion/algo/asha.py
dendisuhubdy/evolve
54e0aa05b8df5f7833186b32462629ddb9198eea
[ "BSD-3-Clause" ]
1
2017-09-07T06:20:39.000Z
2017-09-07T06:20:39.000Z
src/orion/algo/asha.py
dendisuhubdy/evolve
54e0aa05b8df5f7833186b32462629ddb9198eea
[ "BSD-3-Clause" ]
null
null
null
src/orion/algo/asha.py
dendisuhubdy/evolve
54e0aa05b8df5f7833186b32462629ddb9198eea
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Asynchronous Successive Halving Algorithm ========================================= """ from __future__ import annotations import copy import hashlib import logging from collections import defaultdict from typing import Any, Sequence import numpy import numpy as np from orion.algo.base im...
32.617021
99
0.613084
8ff29a64ba8661df4f3c278a2922b68032892788
2,368
py
Python
src/api/dataflow/uc/adapter/operation_client.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
84
2021-06-30T06:20:23.000Z
2022-03-22T03:05:49.000Z
src/api/dataflow/uc/adapter/operation_client.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
7
2021-06-30T06:21:16.000Z
2022-03-29T07:36:13.000Z
src/api/dataflow/uc/adapter/operation_client.py
Chromico/bk-base
be822d9bbee544a958bed4831348185a75604791
[ "MIT" ]
40
2021-06-30T06:21:26.000Z
2022-03-29T12:42:26.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE is licensed under the MIT License. License for BK-BASE : ------------------------------------------------------------...
52.622222
114
0.79603
8ff3bce5f3310585f9e33a3098800502c9b89141
868
py
Python
astruct/type_hints/extras.py
misterfifths/nis_mods
9d460414cb88d10f2737e9be90babe85c9856001
[ "MIT" ]
1
2021-10-18T13:42:09.000Z
2021-10-18T13:42:09.000Z
astruct/type_hints/extras.py
misterfifths/nis-mods
9d460414cb88d10f2737e9be90babe85c9856001
[ "MIT" ]
null
null
null
astruct/type_hints/extras.py
misterfifths/nis-mods
9d460414cb88d10f2737e9be90babe85c9856001
[ "MIT" ]
null
null
null
import ctypes as C from typing import TYPE_CHECKING, Sequence, Union from .ctypes_aliases import AnyCType if TYPE_CHECKING: import mmap """ TODO: Better WriteableBuffer type? Feels like a MutableSequence[int] should be fine, but there's some weirdness between the types struct.unpack_from and ctypes.Structure.fro...
33.384615
84
0.786866
8ff3c00aaa0d4bbcbd5ccc63aaa8ef235fba188d
528
py
Python
test/a.py
liaohongdong/IPProxy
90152f02708717c661b7c1532e4a131a55103950
[ "MIT" ]
null
null
null
test/a.py
liaohongdong/IPProxy
90152f02708717c661b7c1532e4a131a55103950
[ "MIT" ]
1
2021-03-31T19:17:41.000Z
2021-03-31T19:17:41.000Z
test/a.py
liaohongdong/IPProxy
90152f02708717c661b7c1532e4a131a55103950
[ "MIT" ]
null
null
null
import time import json import random if __name__ == '__main__': # a = 10 # while '39.108.111.222:1080': # a -= 1 # print(a) # if a <= 0: # break # a = ['a', 'b', 'c', 'd'] # a = [] # while a: # print(time.gmtime().tm_sec) # time.sleep(3) # a ...
20.307692
37
0.386364
8ff4425f0956621c730b0d0f94ff66f41e12bd0a
159
py
Python
test_session.py
dkkline/pylectio
3ce31b86b6cdf315dab84642440dcc2c31365a9f
[ "MIT" ]
null
null
null
test_session.py
dkkline/pylectio
3ce31b86b6cdf315dab84642440dcc2c31365a9f
[ "MIT" ]
null
null
null
test_session.py
dkkline/pylectio
3ce31b86b6cdf315dab84642440dcc2c31365a9f
[ "MIT" ]
null
null
null
from lectio.session import Session from getpass import getpass s = Session("248") username = "jepp3467" password = getpass() r = s.auth(username, password)
15.9
34
0.742138