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
dadcb95e7278009dc692c238d4ccf77a3fb2e55e
1,843
py
Python
tools/list_exp.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
49
2021-09-15T06:10:07.000Z
2022-03-28T17:37:28.000Z
tools/list_exp.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
3
2021-09-26T03:45:04.000Z
2022-02-21T09:36:38.000Z
tools/list_exp.py
AlexMaximenko/sew
f26b45f1374f3c3ce477abcc07a2d0017859c026
[ "MIT" ]
9
2021-09-15T07:35:09.000Z
2022-02-21T00:10:20.000Z
# Copyright (c) ASAPP Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import fire import os import sys import time from tqdm.auto import tqdm import re import json from colorama import Fore if __name__ == "__main__": fire.Fire(mai...
27.102941
65
0.571351
dadd9c97dc297ce53e68887ddd85475bda9eda3c
11,356
py
Python
tests/tags_test.py
alexanderGugel/nate
18856142efe0b80f5260df3fb2ad9cd0a22a1c6f
[ "MIT" ]
3
2020-10-31T17:16:18.000Z
2022-01-27T06:42:44.000Z
tests/tags_test.py
alexanderGugel/nate
18856142efe0b80f5260df3fb2ad9cd0a22a1c6f
[ "MIT" ]
null
null
null
tests/tags_test.py
alexanderGugel/nate
18856142efe0b80f5260df3fb2ad9cd0a22a1c6f
[ "MIT" ]
null
null
null
import unittest from nate import ( H1, Body, Br, DangerousHtml, Div, Head, Hr, Html, Input, Meta, P, Title, Table, Thead, Tbody, Th, Tr, Td, Fragment, ) from .common import article_1, article_2, html, section if __name__ == "__main__": ...
34.941538
82
0.566925
dade5fb81eac6f03d7cd440bbd9b3041f81946b2
554
py
Python
worker_zeromq/addresses.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
worker_zeromq/addresses.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
worker_zeromq/addresses.py
espang/projects
3a4d93592bc3427a6abd8d2170081155862754a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Feb 26 09:11:06 2016 @author: eikes """ ADD_VENTI_WORKER = 'tcp://*:4555' ADD_VENTI_LH_WORKER = 'tcp://localhost:4555' ADD_SINK_RECEIVE = 'tcp://*:4556' ADD_SINK_LH_RECEIVE = 'tcp://localhost:4556' ADD_SINK_PUBLISH = 'tcp://*:4557' ADD_SINK_LH_PUBLISH = 'tcp://localhost:4557'...
29.157895
46
0.707581
dade9648a2fc13cba868380ebc0181b3e2615f68
593
py
Python
ancli/__main__.py
devforfu/ancli
44ea37e756fb12221bfafc1ecae3b8ef46d84cce
[ "MIT" ]
1
2020-10-24T16:08:14.000Z
2020-10-24T16:08:14.000Z
ancli/__main__.py
devforfu/ancli
44ea37e756fb12221bfafc1ecae3b8ef46d84cce
[ "MIT" ]
null
null
null
ancli/__main__.py
devforfu/ancli
44ea37e756fb12221bfafc1ecae3b8ef46d84cce
[ "MIT" ]
null
null
null
import importlib import sys from ancli import make_cli try: entry_point = sys.argv[1] except IndexError: print('Error: no entry point name provided!') sys.exit(1) try: module_path, function_name = entry_point.split(':') except ValueError: print('Error: entry point name should have format a.b.c:f...
20.448276
70
0.701518
dadeeda64957f5eeac274eff704cc39ef9a9cf4d
31,856
py
Python
venv/Lib/site-packages/pyramid/traversal.py
mandamg/Exercicios-de-Python-do-Curso-em-Video
3f818c11c3c10213bebc1dfb6a740adee468ea3a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyramid/traversal.py
mandamg/Exercicios-de-Python-do-Curso-em-Video
3f818c11c3c10213bebc1dfb6a740adee468ea3a
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyramid/traversal.py
mandamg/Exercicios-de-Python-do-Curso-em-Video
3f818c11c3c10213bebc1dfb6a740adee468ea3a
[ "MIT" ]
null
null
null
from functools import lru_cache from urllib.parse import unquote_to_bytes from zope.interface import implementer from zope.interface.interfaces import IInterface from pyramid.encode import url_quote from pyramid.exceptions import URLDecodeError from pyramid.interfaces import ( VH_ROOT_KEY, IRequestFactory, ...
41.915789
79
0.651588
dadf3ed9b04f6470f12f0113ed470f0b639c3816
291
py
Python
setup.py
WolfyLPDC/spanish2datetime
3c5db5b0e6e59567286c9f394890557d9d50e162
[ "MIT" ]
1
2021-11-22T17:40:27.000Z
2021-11-22T17:40:27.000Z
setup.py
msolefonte/spanish2datetime
3c5db5b0e6e59567286c9f394890557d9d50e162
[ "MIT" ]
null
null
null
setup.py
msolefonte/spanish2datetime
3c5db5b0e6e59567286c9f394890557d9d50e162
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='spanish2datetime', version='1.0', description='Python3 script able to turn spanish text into datetime.', author="Marc Sol", author_email="marcsole@insomniacwolves.com", license='LICENSE', packages=['spanish2datetime'] )
26.454545
74
0.707904
dadf717f7a0bf06444bc04239a755273afb5cf77
3,485
py
Python
Lib/site-packages/visual/examples/faces_heightfield.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/visual/examples/faces_heightfield.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/visual/examples/faces_heightfield.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
## Demonstrates some techniques for working with "faces", and ## shows how to build a height field (a common feature request) ## with it. ## David Scherer July 2001 from visual import * ## Graph a function of two variables (a height field) x = arange(-1,1,2./20) y = arange(-1,1,2./20) z = zeros( (len(x),l...
35.561224
91
0.556385
dae1d10cf13014392041b42324790708bc97af7d
766
py
Python
tests/test_appcli_jwt.py
Carrene/restfulpy
21472af0415fffc23f8003b6074afc2de2e0b414
[ "MIT" ]
25
2017-06-19T10:01:36.000Z
2019-08-03T10:35:41.000Z
tests/test_appcli_jwt.py
Carrene/restfulpy
21472af0415fffc23f8003b6074afc2de2e0b414
[ "MIT" ]
209
2017-09-27T11:59:29.000Z
2019-08-10T11:10:48.000Z
tests/test_appcli_jwt.py
Carrene/restfulpy
21472af0415fffc23f8003b6074afc2de2e0b414
[ "MIT" ]
16
2017-11-22T15:44:31.000Z
2019-04-14T12:29:34.000Z
import base64 import json from bddcli import Given, given, when, stdout, stderr, Application, status from restfulpy import Application as RestfulpyApplication foo = RestfulpyApplication(name='jwt') app = Application('foo', 'tests.test_appcli_jwt:foo.cli_main') if __name__ == '__main__': # pragma: no cover f...
25.533333
74
0.627937
dae25a006d1cb1117ed8b2fe4c8f61d85c1dfe71
476
py
Python
classes/inheritance.py
VictorPinas/python-basics
63358322166becf69bbd2d96c6bffa531456ac5d
[ "MIT" ]
null
null
null
classes/inheritance.py
VictorPinas/python-basics
63358322166becf69bbd2d96c6bffa531456ac5d
[ "MIT" ]
null
null
null
classes/inheritance.py
VictorPinas/python-basics
63358322166becf69bbd2d96c6bffa531456ac5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Jan 22 18:36:34 2022 @author: victor """ my_dog = SARDog("Willie") print(my_dog.name + " is a search dog.") my_dog.sit() my_dog.search()
19.833333
43
0.565126
dae369d14e4029c4e7a65aeb8f3575d751e3c7bb
2,277
py
Python
hw4/visualizations.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
1
2022-01-17T14:28:46.000Z
2022-01-17T14:28:46.000Z
hw4/visualizations.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
null
null
null
hw4/visualizations.py
zeynepCankara/NTU_DLCV2019
2dc44584ec7b9e1d84e688551eb8cef48d501b45
[ "MIT" ]
2
2021-11-08T19:05:57.000Z
2022-01-17T14:28:48.000Z
import os import numpy as np import matplotlib.pyplot as plt def plot_embedding(X, y, training_mode, save_name): """ Reference: https://github.com/NaJaeMin92/pytorch_DANN/ Gets the t-sne output and actions label encodings plot T-SNE """ x_min, x_max = np.min(X, 0), np.max(X, 0) X = (X ...
28.4625
101
0.527448
dae48a50c2d41cee7a17a1643cdfb185e9a03591
3,274
py
Python
experiments_histogram.py
LaGuer/DeepSphere
5a02ac01b8fe3a5b9814ae9efd20d10e0c843209
[ "MIT" ]
71
2018-10-30T09:46:19.000Z
2020-02-15T12:02:00.000Z
experiments_histogram.py
aosheng1996/DeepSphere
ebcf162eaa6e23c1c92dbc84e0908695bb7245d7
[ "MIT" ]
9
2018-10-31T02:32:00.000Z
2020-02-12T08:55:43.000Z
experiments_histogram.py
aosheng1996/DeepSphere
ebcf162eaa6e23c1c92dbc84e0908695bb7245d7
[ "MIT" ]
16
2018-10-31T00:32:33.000Z
2020-01-19T21:24:46.000Z
#!/usr/bin/env python3 # coding: utf-8 """ Script to run the baseline experiment: SVM classification with histogram features. """ import os import sys import numpy as np from deepsphere import experiment_helper from grid import pgrid def single_experiment(sigma, order, sigma_noise, path): """Run as experiment...
35.204301
153
0.678986
dae6cac23452498b7274b531bf02a845882db8e7
2,827
py
Python
tests/deepspeed/ds_pipe.py
drunkcoding/model-inference
02d2240bc7052fa32223a80fa63625fe681db102
[ "MIT" ]
1
2021-11-15T19:07:13.000Z
2021-11-15T19:07:13.000Z
tests/deepspeed/ds_pipe.py
drunkcoding/model-inference
02d2240bc7052fa32223a80fa63625fe681db102
[ "MIT" ]
null
null
null
tests/deepspeed/ds_pipe.py
drunkcoding/model-inference
02d2240bc7052fa32223a80fa63625fe681db102
[ "MIT" ]
null
null
null
import os import torch.cuda from hfutils.model_pipe import T5DeepSpeedPipe import deepspeed from tqdm import tqdm from transformers.models.t5.configuration_t5 import T5Config from transformers import DataCollatorForSeq2Seq, default_data_collator import argparse from deepspeed.utils import RepeatingLoader from hfutils....
30.074468
81
0.723382
dae6f59082823ad960155ff941d486f9928ce8dd
2,694
py
Python
Polynomial_dict.py
chapman-phys227-2016s/hw-7-patti102
8688cbb3649ae623ec870ea380cd7470d69a2517
[ "MIT" ]
null
null
null
Polynomial_dict.py
chapman-phys227-2016s/hw-7-patti102
8688cbb3649ae623ec870ea380cd7470d69a2517
[ "MIT" ]
null
null
null
Polynomial_dict.py
chapman-phys227-2016s/hw-7-patti102
8688cbb3649ae623ec870ea380cd7470d69a2517
[ "MIT" ]
null
null
null
import numpy import copy if __name__ == '__main__': import sys if len(sys.argv) >= 2 and sys.argv[1] == 'verify': test_Polynomial()
32.853659
129
0.528582
dae7ac093bb2806c2693266b9bf2b6b2ab7584bc
9,341
py
Python
whatthefood/tests/test_ops.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
whatthefood/tests/test_ops.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
whatthefood/tests/test_ops.py
lychanl/WhatTheFood
94b6eec2c306e7e55b19395cde207d6e6beec7fe
[ "MIT" ]
null
null
null
import unittest import numpy as np import whatthefood.graph as graph
36.065637
107
0.52853
dae800ffa6f6c81d8205d99c1a64fe8460eb79e8
21,339
py
Python
fastpapers/carion2020end.py
ababino/papers
31b6502d150160f697ce34ac888d37ac0e7ad9f2
[ "Apache-2.0" ]
2
2020-11-30T11:01:39.000Z
2021-05-21T00:07:28.000Z
fastpapers/carion2020end.py
ababino/fastpapers
31b6502d150160f697ce34ac888d37ac0e7ad9f2
[ "Apache-2.0" ]
null
null
null
fastpapers/carion2020end.py
ababino/fastpapers
31b6502d150160f697ce34ac888d37ac0e7ad9f2
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: 04_carion2020end.ipynb (unless otherwise specified). __all__ = ['coco_vocab', 'bb_pad', 'ParentSplitter', 'box_cxcywh_to_xyxy', 'box_xyxy_to_cxcywh', 'TensorBBoxWH', 'TensorBBoxTL', 'ToWH', 'ToXYXY', 'ToTL', 'box_area', 'all_op', 'generalized_box_iou', 'DETRLoss',...
45.69379
215
0.634753
daea62739f3ebdaefddcd10908b331885bbe8bcd
1,063
py
Python
tests/test_models/test_author.py
OliverHofkens/dephell
6303f416018910668f1635b70cd828a2fd2b2d9e
[ "MIT" ]
1,880
2019-03-21T10:08:25.000Z
2022-03-31T12:41:55.000Z
tests/test_models/test_author.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
356
2019-03-21T19:08:56.000Z
2021-01-08T17:45:43.000Z
tests/test_models/test_author.py
rachmadaniHaryono/dephell
0ef500c8f2d5f05244bac191b1b1383f68464cd2
[ "MIT" ]
157
2019-04-23T01:13:37.000Z
2022-03-24T22:41:18.000Z
# external import pytest # project from dephell.models.author import Author
34.290323
94
0.557855
daeae031a92bdd332e807b1e1b225a48f958d13f
4,283
py
Python
pymultimediacompression/videomedia/compressor.py
AbdullrhmanAljasser/PyMultiMediaCompression
0ed5a1ac43050b1c9fe84f277a18beaf4bbdc705
[ "MIT" ]
null
null
null
pymultimediacompression/videomedia/compressor.py
AbdullrhmanAljasser/PyMultiMediaCompression
0ed5a1ac43050b1c9fe84f277a18beaf4bbdc705
[ "MIT" ]
null
null
null
pymultimediacompression/videomedia/compressor.py
AbdullrhmanAljasser/PyMultiMediaCompression
0ed5a1ac43050b1c9fe84f277a18beaf4bbdc705
[ "MIT" ]
null
null
null
import os import ffmpeg import subprocess import shutil from pymultimediacompression.utilities.utils import bitrate_size_based, gb_to_bit, mb_to_bit, kb_to_bit, b_to_bit MISSING_REQUIREMENTS = "FFmpeg required to be installed to use PyMultiMediaCompression \n Check https://github.com/AbdullrhmanAljasser/PyMultiM...
32.694656
160
0.632267
daed2dcd02c1f4f68af01100da13ec4d4ceacfa7
7,548
py
Python
kubernetes/test/test_v1_pod_status.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_pod_status.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_v1_pod_status.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
51
126
0.471118
daed5c9ed5fbf2bcdac59913e3386fad0938a9cb
831
py
Python
scripts/warm_ex.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
null
null
null
scripts/warm_ex.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
1
2021-09-27T15:18:39.000Z
2021-09-27T15:18:39.000Z
scripts/warm_ex.py
cp4cds/cmip6_range_check_2
6fca2632029a2adb9736bfc1382b39f82d8a27e1
[ "Apache-2.0" ]
null
null
null
import warnings with warnings.catch_warnings(record=True) as w: # Cause all warnings to always be triggered. warnings.simplefilter("always") # Trigger a warning. fxn() # Verify some things assert len(w) == 1 assert issubclass(w[-1].category, UserWarning) ##assert "deprecated" in str(w...
25.96875
88
0.637786
daed91c325a084d2dc6fae9cb74a954c288fb74c
979
py
Python
dreamy-dingos/chat/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
dreamy-dingos/chat/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
dreamy-dingos/chat/models.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
from django.db import models from django.utils import timezone
26.459459
83
0.658836
daef2527ac6d9f73a92aca7b8ece3f66a8db4875
198
py
Python
aulaszeus/modules/buscaCep.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
aulaszeus/modules/buscaCep.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
aulaszeus/modules/buscaCep.py
zerossB/aulas_zeus
002fc29578aed3aa36a9b400882e638b68c123ea
[ "BSD-3-Clause" ]
null
null
null
import re import urllib def get_cep(cep): """.""" url = "" cepCorrigido = re.sub('[^\d]', '', cep) if len(cepCorrigido) != 8: return False; payload = {'relaxation'}
13.2
43
0.520202
daf17f6b45920374fa2e9b1df4b56aef139d6271
5,822
py
Python
python/interpreter/environment.py
yehzhang/x9
2d06767ecd3521e9255748d14ab43938d1693bbc
[ "MIT" ]
1
2017-11-19T02:04:44.000Z
2017-11-19T02:04:44.000Z
python/interpreter/environment.py
yehzhang/x9
2d06767ecd3521e9255748d14ab43938d1693bbc
[ "MIT" ]
null
null
null
python/interpreter/environment.py
yehzhang/x9
2d06767ecd3521e9255748d14ab43938d1693bbc
[ "MIT" ]
null
null
null
from collections import defaultdict def convert_to_unsigned_integer(value, size): """ :param int size: number of bits containing this integer """ upper_bound = 2 ** size if not (-upper_bound // 2 <= value < upper_bound): msg = '{} is out of range of {} bits'.format(value, size) ...
29.256281
82
0.567159
daf21d401b40f3f6a6807cf4ef69459e7b2f3d68
731
py
Python
pynaries/tests.py
marshall/pynaries
52c0376b95de43ad9b910b1cab08c17d3600e070
[ "Apache-2.0" ]
1
2016-05-09T10:08:26.000Z
2016-05-09T10:08:26.000Z
pynaries/tests.py
marshall/pynaries
52c0376b95de43ad9b910b1cab08c17d3600e070
[ "Apache-2.0" ]
null
null
null
pynaries/tests.py
marshall/pynaries
52c0376b95de43ad9b910b1cab08c17d3600e070
[ "Apache-2.0" ]
null
null
null
import unittest from version import Version if __name__ == '__main__': unittest.main()
34.809524
79
0.730506
daf44bfec449975c869de1732b37b6845adb00a5
4,225
py
Python
WebUtils/Funcs.py
PeaceWorksTechnologySolutions/w4py
74f5a03a63f1a93563502b908474aefaae2abda2
[ "MIT" ]
18
2016-08-01T20:15:59.000Z
2019-12-24T16:00:03.000Z
WebUtils/Funcs.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-13T05:48:45.000Z
2020-01-09T18:29:12.000Z
WebUtils/Funcs.py
WebwareForPython/w4py
bba08f5974d49f5da7e88abe3eeda1037d0824a3
[ "MIT" ]
6
2016-09-16T14:32:29.000Z
2020-01-03T18:52:16.000Z
"""WebUtils.Funcs This module provides some basic functions that are useful in HTML and web development. You can safely import * from WebUtils.Funcs if you like. """ __all__ = [ 'htmlEncode', 'htmlEncodeStr', 'htmlDecode', 'urlEncode', 'urlDecode', 'htmlForDict', 'requestURI', 'normURL'] htmlForNone = '-' ...
28.741497
80
0.59574
daf646afbefc8a29534d759d8a3042f9a4ff070a
8,996
py
Python
src/slizzy/main.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
1
2019-12-24T03:08:12.000Z
2019-12-24T03:08:12.000Z
src/slizzy/main.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
null
null
null
src/slizzy/main.py
matheushsouza/slizzy
f224b8e4621d11031315da9178202781b4a2dcef
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import enum import sys import slizzy.config as config import slizzy.version as version from slizzy.track import Track from slizzy.util import color, logging, time __all__ = [ "module", "all_modules", "slizzy" ] module = enum.Enum("modules", "slider mp3co zippy") all...
25.925072
101
0.619942
daf74249a6fb322cbc113ac8d72e67fa77ee0be4
95
py
Python
tutorials/W1D5_DimensionalityReduction/solutions/W1D5_Tutorial3_Solution_f0861370.py
liuxiaomiao123/NeuroMathAcademy
16a7969604a300bf9fbb86f8a5b26050ebd14c65
[ "CC-BY-4.0" ]
2
2020-07-03T04:39:09.000Z
2020-07-12T02:08:31.000Z
tutorials/W1D5_DimensionalityReduction/solutions/W1D5_Tutorial3_Solution_f0861370.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
1
2020-06-22T22:57:03.000Z
2020-06-22T22:57:03.000Z
tutorials/W1D5_DimensionalityReduction/solutions/W1D5_Tutorial3_Solution_f0861370.py
NinaHKivanani/course-content
3c91dd1a669cebce892486ba4f8086b1ef2e1e49
[ "CC-BY-4.0" ]
1
2021-08-06T08:05:01.000Z
2021-08-06T08:05:01.000Z
score, evectors, evals = pca(X) with plt.xkcd(): plot_eigenvalues(evals) plt.xlim([0,100])
19
31
0.684211
daf767e70655a7695277ba68df583907a9b0cda7
319
py
Python
research_user_interest/model/config.py
sinchir0/research_user_interest
eb073aaae0e1dba0abb7064c1921c9c96671e2b0
[ "MIT" ]
null
null
null
research_user_interest/model/config.py
sinchir0/research_user_interest
eb073aaae0e1dba0abb7064c1921c9c96671e2b0
[ "MIT" ]
null
null
null
research_user_interest/model/config.py
sinchir0/research_user_interest
eb073aaae0e1dba0abb7064c1921c9c96671e2b0
[ "MIT" ]
null
null
null
import luigi
29
48
0.724138
dafaac4260b03a784e5a2bbeabdd300085af3fb8
74
py
Python
diehard/e_vars.py
skyshy0707/diehard
a6aaf47c728939606158f8d124d6edd7e12ef761
[ "BSL-1.0" ]
null
null
null
diehard/e_vars.py
skyshy0707/diehard
a6aaf47c728939606158f8d124d6edd7e12ef761
[ "BSL-1.0" ]
null
null
null
diehard/e_vars.py
skyshy0707/diehard
a6aaf47c728939606158f8d124d6edd7e12ef761
[ "BSL-1.0" ]
null
null
null
SECRET_KEY='0nk#k)hck^)6y6*+%4(&r$ew+mhubb!trj-cz_0oturh48p*+y' DEBUG=True
37
63
0.72973
dafc15205b01c79014e37b7285dde88b163902fd
383
py
Python
hack_chat_related/cynthiabot/word_sources/scratch_4.py
Cynthia7979/tools-programs
0bf0b8bf33205c11d584b216d35c1ca3d23f04f2
[ "MIT" ]
2
2021-02-09T15:58:29.000Z
2021-10-08T04:34:51.000Z
hack_chat_related/cynthiabot/word_sources/scratch_4.py
Cynthia7979/tools-programs
0bf0b8bf33205c11d584b216d35c1ca3d23f04f2
[ "MIT" ]
null
null
null
hack_chat_related/cynthiabot/word_sources/scratch_4.py
Cynthia7979/tools-programs
0bf0b8bf33205c11d584b216d35c1ca3d23f04f2
[ "MIT" ]
null
null
null
f = open('essay_material_word_sources.txt', encoding='utf-16-le') fw = open('essay_material_word_sources_.txt', 'w', encoding='utf-8') output = [] for l in f.readlines(): print(l) if l and (l != ' ') and (l != '\n') and ('' not in l) and ('' not in l): fw.write(l.strip(' ')) # print(out...
29.461538
79
0.545692
dafce01a1c13646ea816c979ed62d0361b09fc3a
330
py
Python
simplejson_test/testdata/allennlp/data/tokenizers/tmp.py
rahman-mahmudur/PyART
36591cd10b2b7a560bbcb47a6cf744b72466f92a
[ "Apache-2.0" ]
7
2021-03-20T21:12:51.000Z
2022-01-30T09:26:52.000Z
DataFlowEvaluation/data/allennlp/data/tokenizers/tmp.py
PYART0/PyART-demo
9a889662fb2610b7be2687a8304620855e7c76de
[ "Apache-2.0" ]
null
null
null
DataFlowEvaluation/data/allennlp/data/tokenizers/tmp.py
PYART0/PyART-demo
9a889662fb2610b7be2687a8304620855e7c76de
[ "Apache-2.0" ]
4
2021-03-25T14:10:09.000Z
2022-03-09T09:23:30.000Z
from typing import List from overrides import overrides from allennlp.data.tokenizers.token import Token from allennlp.data.tokenizers.tokenizer import Tokenizer
23.571429
56
0.775758
daff7eb461dc9d52057318faa8c976ebd75932d5
2,056
py
Python
finitio/types/set_type.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
1
2016-02-06T17:16:22.000Z
2016-02-06T17:16:22.000Z
finitio/types/set_type.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
finitio/types/set_type.py
llambeau/finitio.py
27c2799709993c6edb9d9038290792ed90a97346
[ "0BSD" ]
null
null
null
from ..support.decorators import TypeType from .collection_type import CollectionType from ..exceptions import UndressError
33.16129
71
0.587549
97008b753f686abd12cd11cf56dd253fd134810a
2,120
py
Python
hugs/manager.py
Bogdanp/hugs
e7f16f15369fbe3da11d89882d76c7ef432f3709
[ "BSD-3-Clause" ]
22
2017-07-20T18:02:27.000Z
2021-06-10T13:06:22.000Z
hugs/manager.py
Bogdanp/hugs
e7f16f15369fbe3da11d89882d76c7ef432f3709
[ "BSD-3-Clause" ]
null
null
null
hugs/manager.py
Bogdanp/hugs
e7f16f15369fbe3da11d89882d76c7ef432f3709
[ "BSD-3-Clause" ]
2
2019-12-11T20:44:08.000Z
2021-02-02T04:37:04.000Z
import functools import sqlite3 from .repository import Repository try: from psycopg2.extras import DictRow, RealDictRow ROW_CLASSES = (dict, sqlite3.Row, DictRow, RealDictRow) except ImportError: # pragma: no cover ROW_CLASSES = (dict, sqlite3.Row)
29.859155
90
0.628774
970230cccc075c9262639a742440eb46e3401e42
1,922
py
Python
src/Application/PythonScriptModule/pymodules_old/apitest/thread_test.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2018-04-02T15:38:10.000Z
2018-04-02T15:38:10.000Z
src/Application/PythonScriptModule/pymodules_old/apitest/thread_test.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/apitest/thread_test.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
import time from collections import deque try: import rexviewer as r except ImportError: #not running under rex import mockviewer as r import circuits from circuits.core import handler #when this worker thread stops itself def stop(self): circuits.Thread.stop(self) print "stopped" ...
24.961039
79
0.570239
970296f462844f00061a21409ca5bc6695b20b6a
5,113
py
Python
PlotlyandPython/Lessons/(02) Lineplots/Notebooks/Python Scripts/Lineplots (07) - Making dashed and dotted lines.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
PlotlyandPython/Lessons/(02) Lineplots/Notebooks/Python Scripts/Lineplots (07) - Making dashed and dotted lines.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
PlotlyandPython/Lessons/(02) Lineplots/Notebooks/Python Scripts/Lineplots (07) - Making dashed and dotted lines.py
peternewman22/Python_Courses
07a798b6f264fc6069eb1205c9d429f00fb54bc5
[ "MIT" ]
null
null
null
# coding: utf-8 # # Lineplots (07) - Making dashed and dotted lines # In the last lesson we saw how to change the colour and thickness of the lines in our plot. # # In this lesson we'll learn how to displayed a dashed or dotted line instead of a solid line. In the next lesson we'll find out how to set the marker s...
32.157233
376
0.687463
970361b69af566e027101b9098d4da56f00db470
3,344
py
Python
spydrnet/__init__.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
spydrnet/__init__.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
spydrnet/__init__.py
ganeshgore/spydrnet
22672b8fc7d63461a71077bd20f29df6d38e96f4
[ "BSD-3-Clause" ]
null
null
null
""" SpyDrNet ======== SpyDrNet is an EDA tool for analyzing and transforming netlists. See https://byuccl.github.io/spydrnet for more details. """ import importlib import pkgutil import pathlib import sys import os discovered_plugins = { name: importlib.import_module(name) for finder, name, ispkg in pkg...
30.962963
110
0.739833
9703d55b61dbe9671b606d116415a69bd78ce48a
620
py
Python
tools/sparse_dense_size_comparison.py
3rror/aca_pathfinding_project
d7a91b1491e8eca08849e526634bdaa9a3833fa2
[ "MIT" ]
null
null
null
tools/sparse_dense_size_comparison.py
3rror/aca_pathfinding_project
d7a91b1491e8eca08849e526634bdaa9a3833fa2
[ "MIT" ]
null
null
null
tools/sparse_dense_size_comparison.py
3rror/aca_pathfinding_project
d7a91b1491e8eca08849e526634bdaa9a3833fa2
[ "MIT" ]
null
null
null
# Compare memory usage of a dense and a sparse adjancency matrix. # # Requires numpy. Install it with `pip3 install --user numpy` # Authors: Gianluca Andreotti, Aurora Lucrezia Castro import numpy as np from scipy.sparse import csr_matrix import sys if __name__ == "__main__": for f in sys.argv[1:]: loa...
25.833333
66
0.696774
97062759c3659ac5db7690deb35f3812cc14b685
5,298
py
Python
app/crypto_algo.py
paul3bin/cryptography-api
13145ef897dcd3e5d4850bbf9f3572556a055e22
[ "MIT" ]
null
null
null
app/crypto_algo.py
paul3bin/cryptography-api
13145ef897dcd3e5d4850bbf9f3572556a055e22
[ "MIT" ]
null
null
null
app/crypto_algo.py
paul3bin/cryptography-api
13145ef897dcd3e5d4850bbf9f3572556a055e22
[ "MIT" ]
null
null
null
from pandas import DataFrame
35.32
118
0.466214
97072840b3c078e668d6a47321880a4ea8713698
2,638
py
Python
MultiPManager/brokermq.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
MultiPManager/brokermq.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
MultiPManager/brokermq.py
sebastiantrianac/SoftTLON
3b798393efbd49b4a22acf19a056d64bef1d0ddf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 # # A module for create a multi-agent system over Ad-hoc networks # Copyright (C) 2017-2018 # Juan Sebastian Triana Correa <justrianaco@unal.edu.co> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as publ...
33.820513
96
0.689917
9707987edbffdd07707988c15199cd2d6df39cc8
1,289
py
Python
web/models.py
naturaln0va/flask-ackermann-io
85916aaf93b0635f18f164da3e2c6ce86edadfc0
[ "MIT" ]
1
2019-12-09T07:26:43.000Z
2019-12-09T07:26:43.000Z
web/models.py
naturaln0va/flask-ackermann-io
85916aaf93b0635f18f164da3e2c6ce86edadfc0
[ "MIT" ]
4
2019-06-17T15:21:28.000Z
2021-03-20T05:05:42.000Z
web/models.py
naturaln0va/flask-ackermann-io
85916aaf93b0635f18f164da3e2c6ce86edadfc0
[ "MIT" ]
null
null
null
from app import db from datetime import datetime as dt from slugify import slugify
32.225
87
0.657099
9707bc0df9d0b4b62a5f4981d1500fdead7c395d
672
py
Python
tests/span/span_helpers.py
dmytroxshevchuk/sonic-mgmt
b784e598a063aba71fdf9ca23fe142840926e4cf
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
tests/span/span_helpers.py
dmytroxshevchuk/sonic-mgmt
b784e598a063aba71fdf9ca23fe142840926e4cf
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
tests/span/span_helpers.py
dmytroxshevchuk/sonic-mgmt
b784e598a063aba71fdf9ca23fe142840926e4cf
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
''' Helper functions for span tests ''' import ptf.testutils as testutils def send_and_verify_mirrored_packet(ptfadapter, src_port, monitor): ''' Send packet from ptf and verify it on monitor port Args: ptfadapter: ptfadapter fixture src_port: ptf port index, from which packet will be sen...
29.217391
84
0.71875
97089962ed3ea0a8a6e34e92416d3e39210a2bda
9,039
py
Python
bonobo/nodes/basics.py
a-musing-moose/bonobo
b3e9ddd028aed4a8a4df8e4b89334951a343e6fa
[ "Apache-2.0" ]
null
null
null
bonobo/nodes/basics.py
a-musing-moose/bonobo
b3e9ddd028aed4a8a4df8e4b89334951a343e6fa
[ "Apache-2.0" ]
null
null
null
bonobo/nodes/basics.py
a-musing-moose/bonobo
b3e9ddd028aed4a8a4df8e4b89334951a343e6fa
[ "Apache-2.0" ]
null
null
null
import functools import html import itertools import pprint from bonobo import settings from bonobo.config import Configurable, Option, Method, use_raw_input, use_context, use_no_input from bonobo.config.functools import transformation_factory from bonobo.config.processors import ContextProcessor, use_context_processo...
27.557927
120
0.605819
9709d0267ed5104b57450430822594c17f2e9707
1,093
py
Python
examplesimple.py
atxarib99/kNN
20c41a549f9f101478c1523b2ba683a8058fa6c8
[ "MIT" ]
null
null
null
examplesimple.py
atxarib99/kNN
20c41a549f9f101478c1523b2ba683a8058fa6c8
[ "MIT" ]
null
null
null
examplesimple.py
atxarib99/kNN
20c41a549f9f101478c1523b2ba683a8058fa6c8
[ "MIT" ]
null
null
null
''' This file serves to be an example on how to use kNN. This file is the simplified version with no graphs. For an example with graphs, check example.py Change k, noise, and amount of data to see how accuracy is affected. ''' import kNN as knn import modeler #setup the trainer. Tune your k parameter here. tr...
34.15625
153
0.743824
970a946d901c0d355d2502d9d1f07264bbcb2be3
424
py
Python
python/simpletest/test.py
hackin-zhao/interesting_code
25fecb716f5c8f9143ec2824bbf8996b347ce8a9
[ "MIT" ]
1
2021-09-22T10:56:13.000Z
2021-09-22T10:56:13.000Z
python/simpletest/test.py
hackin-zhao/interesting_code
25fecb716f5c8f9143ec2824bbf8996b347ce8a9
[ "MIT" ]
1
2022-02-15T03:53:47.000Z
2022-02-15T03:53:47.000Z
python/simpletest/test.py
hackin-zhao/interesting_code
25fecb716f5c8f9143ec2824bbf8996b347ce8a9
[ "MIT" ]
null
null
null
import unittest from mathtest import add, minus if __name__ == '__main__': unittest.main()
21.2
43
0.601415
970ba5beb8c6e85ad0c97cba7c1ffb95b3ebed8b
174
py
Python
src/tests/test_config.py
RomanRuby/machine-learning-project-template
d9c26786b50345e5665f76c9e6976531432b58c9
[ "MIT" ]
null
null
null
src/tests/test_config.py
RomanRuby/machine-learning-project-template
d9c26786b50345e5665f76c9e6976531432b58c9
[ "MIT" ]
null
null
null
src/tests/test_config.py
RomanRuby/machine-learning-project-template
d9c26786b50345e5665f76c9e6976531432b58c9
[ "MIT" ]
null
null
null
import sys import unittest sys.path.append('.') if __name__ == '__main__': unittest.main()
13.384615
37
0.672414
970bb5ea492f11426c0a5b6357ef8e845eea6ad9
2,181
py
Python
terse/ParserFactory.py
talipovm/Terse
e6bfd3ac0d411b18d5167019623d5451695e787c
[ "MIT" ]
2
2015-04-08T21:28:35.000Z
2015-04-08T23:25:04.000Z
terse/ParserFactory.py
talipovm/Terse
e6bfd3ac0d411b18d5167019623d5451695e787c
[ "MIT" ]
null
null
null
terse/ParserFactory.py
talipovm/Terse
e6bfd3ac0d411b18d5167019623d5451695e787c
[ "MIT" ]
1
2015-04-08T21:29:22.000Z
2015-04-08T21:29:22.000Z
import logging import os from Interface.Isosurface import Isosurface from Interface.JVXL import JVXL from Interface.NBOinteractions import NBOinteractions from Top import Top log = logging.getLogger(__name__)
27.961538
75
0.56121
970bccc21f91dbbbb912e9ec8f46b93496941b85
585
py
Python
src/data/439.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/439.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
src/data/439.py
NULLCT/LOMC
79a16474a8f21310e0fb47e536d527dd5dc6d655
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import deque N, Q = map(int, input().split()) G = [[] for _ in range(N)] for _ in range(N - 1): a, b = map(lambda x: int(x) - 1, input().split()) G[a].append(b) G[b].append(a) s = 0 dist = [-1] * N que = deque() que.append(s) dist[s] = 0 while que: i = que.pople...
20.172414
53
0.499145
970ca64e46ad17397f8882ea7b2df30130763068
5,384
py
Python
axis_inspection/axis_inspection/report/project_status_summary/project_status_summary.py
Subramani830/testrepo
4568c628dc0731d08315ebc830dc813e0abfc60d
[ "MIT" ]
null
null
null
axis_inspection/axis_inspection/report/project_status_summary/project_status_summary.py
Subramani830/testrepo
4568c628dc0731d08315ebc830dc813e0abfc60d
[ "MIT" ]
null
null
null
axis_inspection/axis_inspection/report/project_status_summary/project_status_summary.py
Subramani830/testrepo
4568c628dc0731d08315ebc830dc813e0abfc60d
[ "MIT" ]
null
null
null
# Copyright (c) 2013, veena and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _
25.158879
527
0.633172
970e676a6d9532be893c81dfaef34fee90098dda
267
py
Python
modelvshuman/__init__.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
158
2021-06-04T15:19:58.000Z
2022-03-30T00:31:28.000Z
modelvshuman/__init__.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
7
2021-07-20T03:57:34.000Z
2022-02-01T11:00:47.000Z
modelvshuman/__init__.py
TizianThieringer/model-vs-human
17729b8167520f682d93d55c340c27de07bb2681
[ "Apache-2.0", "CC-BY-4.0", "MIT" ]
14
2021-06-16T13:33:11.000Z
2022-03-29T15:04:09.000Z
from . import cli from . import datasets from . import evaluation from . import models from . import plotting from .model_evaluator import ModelEvaluator from .plotting.plot import plot from .version import __version__, VERSION Evaluate = ModelEvaluator Plot = plot
22.25
43
0.805243
970f7b10a07b98a1a06557eff5b9b16e7aa0fdb8
59,592
py
Python
sdk/python/pulumi_aws_native/elasticloadbalancingv2/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
29
2021-09-30T19:32:07.000Z
2022-03-22T21:06:08.000Z
sdk/python/pulumi_aws_native/elasticloadbalancingv2/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
232
2021-09-30T19:26:26.000Z
2022-03-31T23:22:06.000Z
sdk/python/pulumi_aws_native/elasticloadbalancingv2/outputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
4
2021-11-10T19:42:01.000Z
2022-02-05T10:15:49.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 _utilities from...
36.116364
159
0.65044
971109a2af40ebe4d09693183a658f563772f76a
4,652
py
Python
animate_gp.py
mzwiessele/notebook_playground
14938eddf5491eb0356fa4f73d16047202131e4d
[ "BSD-2-Clause" ]
null
null
null
animate_gp.py
mzwiessele/notebook_playground
14938eddf5491eb0356fa4f73d16047202131e4d
[ "BSD-2-Clause" ]
null
null
null
animate_gp.py
mzwiessele/notebook_playground
14938eddf5491eb0356fa4f73d16047202131e4d
[ "BSD-2-Clause" ]
null
null
null
#=============================================================================== # Copyright (c) 2018, Max Zwiessele # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of sour...
36.34375
97
0.593508
971117541cde3e1903caaf3ca3390e530dc8443b
615
py
Python
tests/testapp/models.py
marteinn/wagtail-automatic-move-redirects
2321b6037d00284d447e346faf7841061e33495e
[ "BSD-3-Clause" ]
13
2020-02-13T20:55:32.000Z
2021-12-11T21:20:20.000Z
tests/testapp/models.py
marteinn/wagtail-automatic-move-redirects
2321b6037d00284d447e346faf7841061e33495e
[ "BSD-3-Clause" ]
6
2020-05-19T21:06:20.000Z
2021-05-28T13:31:09.000Z
tests/testapp/models.py
marteinn/wagtail-automatic-move-redirects
2321b6037d00284d447e346faf7841061e33495e
[ "BSD-3-Clause" ]
4
2020-05-19T13:40:05.000Z
2021-03-03T21:36:48.000Z
from django.db import models from wagtail.admin.edit_handlers import FieldPanel from wagtail.core.fields import RichTextField from wagtail.core.models import Page
25.625
71
0.720325
9711a13f8bc8673b475c4605a1bf57d9fc492541
1,190
py
Python
M4_Eval_SDK/Source/samples/python/console_window.py
analogdevicesinc/ApplicationsWaveTool
0c1f236dd0745caa3187841ee1a882f209ac3ebe
[ "Apache-2.0" ]
2
2019-03-11T15:24:51.000Z
2022-03-07T09:42:05.000Z
M4_Eval_SDK/Source/samples/python/console_window.py
analogdevicesinc/ApplicationsWaveTool
0c1f236dd0745caa3187841ee1a882f209ac3ebe
[ "Apache-2.0" ]
null
null
null
M4_Eval_SDK/Source/samples/python/console_window.py
analogdevicesinc/ApplicationsWaveTool
0c1f236dd0745caa3187841ee1a882f209ac3ebe
[ "Apache-2.0" ]
1
2021-03-16T08:26:05.000Z
2021-03-16T08:26:05.000Z
import socket, sys, time, colorama, os from threading import * colorama.init(autoreset=True) serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = "localhost" port = int(sys.argv[1]) try: serversocket.bind((host, port)) except Exception as e: import traceback print("An error occurred whi...
28.333333
94
0.610084
97127268ae73df5b3be209c30b4a2132ec27b166
1,517
py
Python
src/day11.py
chao-mu/aoc2021
9cb0590a8de100f260a78f22e50d00d6acb13ae4
[ "CC0-1.0" ]
null
null
null
src/day11.py
chao-mu/aoc2021
9cb0590a8de100f260a78f22e50d00d6acb13ae4
[ "CC0-1.0" ]
null
null
null
src/day11.py
chao-mu/aoc2021
9cb0590a8de100f260a78f22e50d00d6acb13ae4
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from aoc2021.util import print_solutions, import_matrix from math import inf if __name__ == "__main__": main()
20.780822
89
0.544496
9712a3e94e27eb26ea65554b310f650bc2e8048f
4,107
py
Python
sagbescheid/notifiers/ircnotifier.py
cedricpim/systemon
cb3fb027c94146f73fbef70f7a8546050e0de408
[ "MIT" ]
8
2017-03-23T17:19:31.000Z
2022-01-10T08:21:24.000Z
sagbescheid/notifiers/ircnotifier.py
cedricpim/systemon
cb3fb027c94146f73fbef70f7a8546050e0de408
[ "MIT" ]
2
2015-11-20T23:10:40.000Z
2018-09-15T10:59:32.000Z
sagbescheid/notifiers/ircnotifier.py
cedricpim/systemon
cb3fb027c94146f73fbef70f7a8546050e0de408
[ "MIT" ]
3
2016-09-13T20:56:43.000Z
2022-01-10T08:34:18.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright 2015, 2016, 2017, 2018 Wieland Hoffmann # License: MIT, see LICENSE for details from ..notifier import INotifier from ..version import version from functools import wraps from twisted.internet import protocol, reactor from twisted.plugin import IPlugin from twisted.wor...
25.196319
80
0.595569
9713a29a49b88c9107c1462a864743e09d61110c
4,221
py
Python
bot.py
Ashkar2001/shareurlbotv1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
3
2021-04-22T19:37:01.000Z
2022-03-28T09:09:19.000Z
bot.py
krbishnoi46/ShareurlbotV1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
null
null
null
bot.py
krbishnoi46/ShareurlbotV1
f61913731f0064aceb7e67ed8f2b98e0de0015bb
[ "MIT" ]
2
2021-05-02T14:32:52.000Z
2021-09-13T19:42:02.000Z
import urllib from pyrogram import Client, filters from pyrogram.types import (InlineKeyboardButton, InlineKeyboardMarkup, InlineQueryResultArticle, InputTextMessageContent) from config import Config bot = Client( 'shareurl-generator', bot_token = Config.BOT_TOKEN, api_id = Config.API_ID, api_hash = Co...
55.539474
654
0.683487
9714d810307fa953764fccad45ba80c5500ed6fb
6,745
py
Python
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
scripts/pybeacondump.py
pjsier/il-2020-election-precinct-data
67a763aece2939c50cccd11fb3deeba61ca2b6e6
[ "MIT" ]
null
null
null
import collections import copy import http.client import json import re import sys import urllib.parse import bs4 import requests from geomet import wkt """ Based on conversation and code from https://github.com/openaddresses/machine/issues/580 """ BEACON_HEADERS = { "Content-Type": "application/json", "User...
31.666667
88
0.648184
97176fec2bfad5af9c57f1ea37398060856e772d
22,033
py
Python
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/pylint/checkers/base/basic_error_checker.py
edupyter/EDUPYTER38
396183cea72987506f1ef647c0272a2577c56218
[ "bzip2-1.0.6" ]
null
null
null
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/main/LICENSE # Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt """Basic Error checker from the basic checker.""" from __future__ import annotations import iter...
38.318261
89
0.591113
9719dd0b81d1b9075b3a1e4a0b04e81cb9f0f034
915
py
Python
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
null
null
null
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
Smotko/ggrc-core
b3abb58b24e7559960d71a94ba79c75539e7fe29
[ "Apache-2.0" ]
12
2015-01-08T14:50:19.000Z
2017-11-29T19:37:53.000Z
src/ggrc/migrations/versions/20130724021606_2bf7c04016c9_person_email_must_be.py
mikecb/ggrc-core
1cda560cb0920021416e07740c6cca1acba56268
[ "ECL-2.0", "Apache-2.0" ]
1
2015-01-08T13:25:09.000Z
2015-01-08T13:25:09.000Z
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file> # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> # Created By: dan@reciprocitylabs.com # Maintained By: dan@reciprocitylabs.com """Person.email must be unique Revision ID: 2bf7c04016c9 Revises: d3af6d071ef Cre...
28.59375
78
0.727869
971abf76c98ab4aa78f28ff46f0d741cb4ec54f3
11,484
py
Python
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
null
null
null
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
null
null
null
run/create_yaml_onenode.py
nnzhaocs/docker-performance
2b6ba870b9a0f8c78837e794bbac678094f0c230
[ "Apache-2.0" ]
3
2018-12-12T23:35:51.000Z
2018-12-15T23:52:32.000Z
import os import sys import string import yaml from argparse import ArgumentParser import time # default setting traces = {} realblobfiles = {} limitamount = 1500 # 24 32 48 64 warmupthreads = 1 # number of total clients hotratio = 0.25 #nondedupreplicas = 2 replicalevel = 1 wait = True dir = '/home/nannan/docker-pe...
38.152824
158
0.572362
971bccd2014298cba9295d6dd03cd7d5f6c9e5d5
12,539
py
Python
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
archived/main.py
joyjeni/detr-fine
dfc0f4abc2579a2b3ef4527904af3345c7a9de4d
[ "Apache-2.0" ]
null
null
null
""" Train and eval functions used in main.py """ import os import torch from torch.utils.data import DataLoader, DistributedSampler import math import sys import time import datetime from typing import Iterable from pathlib import Path import json import random import numpy as np import torch import wandb from datase...
31.037129
87
0.670229
971c3238d99d6b81b26f0ad03df611e633858062
511
py
Python
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
1
2017-12-28T17:54:55.000Z
2017-12-28T17:54:55.000Z
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
null
null
null
blog/migrations/0002_auto_20171219_2246.py
EESTECist/BumBumTamTam
92bbae9808080e0d9e1ae1215e52fa955c6263a5
[ "MIT" ]
null
null
null
# Generated by Django 2.0 on 2017-12-19 19:46 from django.db import migrations, models
22.217391
58
0.577299
971ea22b4f898d7b945a3d66e55c054fd8c1a0fd
10,581
py
Python
awx/main/tests/functional/api/test_webhooks.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
17
2021-04-03T01:40:17.000Z
2022-03-03T11:45:20.000Z
awx/main/tests/functional/api/test_webhooks.py
Avinesh/awx
6310a2edd890d6062a9f6bcdeb2b46c4b876c2bf
[ "Apache-2.0" ]
24
2021-05-18T21:13:35.000Z
2022-03-29T10:23:52.000Z
awx/main/tests/functional/api/test_webhooks.py
hostinger/awx
dac01b14e2c04c201a162ea03ef8386d822e3923
[ "Apache-2.0" ]
24
2020-11-27T08:37:35.000Z
2021-03-08T13:27:15.000Z
import pytest from awx.api.versioning import reverse from awx.main.models.mixins import WebhookTemplateMixin from awx.main.models.credential import Credential, CredentialType
40.54023
113
0.671865
971eb594799cf95db900e61f4da391f8dbcd3b67
14,667
py
Python
App_TESS/app.py
mikedcurry/TESS_Flask_App
e20b4fc84b8d85cb20c388534899cf9be36e9b86
[ "MIT" ]
null
null
null
App_TESS/app.py
mikedcurry/TESS_Flask_App
e20b4fc84b8d85cb20c388534899cf9be36e9b86
[ "MIT" ]
1
2020-09-26T00:11:55.000Z
2020-09-26T00:11:55.000Z
App_TESS/app.py
mikedcurry/TESS_Flask_App
e20b4fc84b8d85cb20c388534899cf9be36e9b86
[ "MIT" ]
2
2019-09-23T16:46:13.000Z
2019-09-26T15:53:44.000Z
"""Main Application and routing Logic for TESS Flask App""" from decouple import config from flask import Flask, render_template, request from flask_sqlalchemy import SQLAlchemy import pickle from sklearn.pipeline import make_pipeline from sklearn.impute import SimpleImputer from sklearn.preprocessing import RobustScal...
45.834375
101
0.577214
9721be068a8518541b5cace614456bd0b705d2e4
1,231
py
Python
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
motion_optimizer.py
sehoonha/pydart_green_stair
a644355c6ef8068aea5cd0c807b74454f2f9ce4d
[ "MIT" ]
null
null
null
import logging import scipy.optimize
33.27027
72
0.523964
9722181f821ec59cdca98344a53584317eddeb5f
66
py
Python
setup.py
bhrutledge/track-ma-ballot
b09db2c15708a674ad65587ac890c9a0df94a745
[ "MIT" ]
1
2020-10-21T11:10:58.000Z
2020-10-21T11:10:58.000Z
setup.py
bhrutledge/track-ma-ballot
b09db2c15708a674ad65587ac890c9a0df94a745
[ "MIT" ]
null
null
null
setup.py
bhrutledge/track-ma-ballot
b09db2c15708a674ad65587ac890c9a0df94a745
[ "MIT" ]
1
2020-10-21T11:11:14.000Z
2020-10-21T11:11:14.000Z
# type: ignore # noqa: D100 import setuptools setuptools.setup()
11
18
0.742424
97223e918d7ed3c66e5db364f3b9dcfe0630ba1d
64,626
py
Python
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
crystalparser/crystal_parser.py
nomad-coe/nomad-parser-crystal
b9e2e6d0973372a803f9caa2b719a91f6b9e4139
[ "Apache-2.0" ]
null
null
null
# # Copyright The NOMAD Authors. # # This file is part of NOMAD. # See https://nomad-lab.eu for further info. # # 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/lic...
52.033816
262
0.512781
9722c58ffd556781f330720efd82b006fd5b1e87
2,164
py
Python
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
lambda_proxy_helpers_pkg/lambda_proxy_response_wrapper.py
depster26/public-lambda-helpers
6fa3e1a7ba1e281e11ea85e384471f6abc300efd
[ "MIT" ]
null
null
null
import traceback from functools import wraps from collections import namedtuple from .constants import HttpStatusCodes from . import lambda_errors from .lambda_proxy_response import LambdaProxyResponse KNOWN_ERRORS = [lambda_errors.AlreadyExistsError, lambda_errors.NotFoundError, lamb...
34.903226
104
0.695933
9723dfd188ebc676983837f7b0d623a43502f121
3,540
py
Python
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
1
2022-01-22T14:40:22.000Z
2022-01-22T14:40:22.000Z
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
null
null
null
eval/img_mask_util.py
zhxl0903/Apple-Segmentation-FCN
0a072e2a6dd3b68b8a95c78b14091d33549fb4a2
[ "MIT" ]
null
null
null
import os import numpy as np from PIL import Image import cv2
37.263158
107
0.620339
9724a53e6036c425eed527609249dc5e837db6a6
685
py
Python
Catalan_Numbers/Python/jcla1/catalan.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
1,184
2015-01-01T14:11:29.000Z
2022-03-21T19:40:47.000Z
Catalan_Numbers/Python/jcla1/catalan.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
89
2015-01-01T15:49:17.000Z
2021-12-05T19:11:38.000Z
Catalan_Numbers/Python/jcla1/catalan.py
Mynogs/Algorithm-Implementations
13a74821fc1f0f7becaa9fb63b98e94134936bdb
[ "MIT" ]
388
2015-01-02T03:26:17.000Z
2022-03-24T14:36:10.000Z
if __name__ == '__main__': # Make sure all implementations give the same results print(all([catalan_direct(n) == catalan_binomial(n) == catalan_sum(n) for n in xrange(100)]))
32.619048
82
0.633577
97265f76f9295dbfffcf1f1e54d2fcd3f6836b66
4,340
py
Python
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
null
null
null
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
7
2021-08-10T22:56:47.000Z
2022-02-16T13:56:47.000Z
deploy.py
f5devcentral/volterra-management
8f10cad2f87a50766f85db6dbb33e1eedcebc969
[ "Apache-2.0" ]
null
null
null
from az.cli import az import os, configparser if __name__ == "__main__": main()
40.560748
192
0.654608
9726974206475436bf6ec6fcd8ca28dbc44033c4
710
py
Python
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
Linguagens/Python/Exercicios/cursos_em_video/aulas-22_23/109.py
rafaelvizu/Estudos
eef5e3e3706ff99959226c51b9907b6af4377bfe
[ "MIT" ]
null
null
null
from pacotes import ex109 print('\033[36;40mExerccio Python #109 - Formatando Moedas em Python\033[m\n') v = float(input('Digite o valor: ')) escolhaMoeda = False while True: escolha = str(input('Ele devera ser formatado como moeda? [s/n]: ')).strip().lower()[0] if escolha == 's' or escolha == 'n': ...
33.809524
91
0.647887
97270c66567bd64adf1db520a0022c4279280b69
1,473
py
Python
cv/templatetags/cv_extras.py
radoslawdabrowski/personal-website-framework
c33f16811caa2aafdfd84c22af8c37ee0ab97720
[ "Apache-2.0" ]
1
2021-11-06T15:22:15.000Z
2021-11-06T15:22:15.000Z
cv/templatetags/cv_extras.py
radoslawdabrowski/personal-website-framework
c33f16811caa2aafdfd84c22af8c37ee0ab97720
[ "Apache-2.0" ]
92
2019-12-04T22:24:35.000Z
2022-03-12T00:11:21.000Z
cv/templatetags/cv_extras.py
radoslawdabrowski/personal-website
b3d4f92ea51b40b104449259a376134aeb11766b
[ "MIT" ]
1
2019-05-07T21:23:57.000Z
2019-05-07T21:23:57.000Z
from django import template from django.utils.translation import ugettext as _ from cv.views import education_view_context, experience_view_context, interests_view_context, skills_view_context from cv.views import skill_view_context, school_view_context, hobby_view_context, job_view_context from cv.views import date_v...
26.303571
113
0.792261
9727bc8aa30eb95d9ede8bcd086222c6a52129c5
296
py
Python
conditional_statements_advanced/exercise/cinema.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
conditional_statements_advanced/exercise/cinema.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
conditional_statements_advanced/exercise/cinema.py
PetkoAndreev/Python-basics
a376362548380ae50c7c707551cb821547f44402
[ "MIT" ]
null
null
null
screeing_type = input() rows = int(input()) colums = int(input()) if screeing_type == 'Premiere': print(f'{rows * colums * 12:.2f} leva') elif screeing_type == 'Normal': print(f'{rows * colums * 7.5:.2f} leva') elif screeing_type == 'Discount': print(f'{rows * colums * 5:.2f} leva')
29.6
44
0.628378
9728ac0573f8175100d55ffa0754e092810cb584
662
py
Python
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
11
2018-10-29T06:50:43.000Z
2022-03-28T14:26:09.000Z
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
1
2022-03-01T13:46:25.000Z
2022-03-01T13:46:25.000Z
loadbalanceRL/lib/environment/cellular/dev/apis.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
6
2019-02-05T20:01:53.000Z
2020-09-04T12:30:00.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains list of APIs for Development model """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)' # Index INDEX = '/index' # Environment params NUM_UES = '/num_ues' NUM_APS = '/num_aps' AP_LIST = '/ap_list' AP_INFO = '/ap_info/' BR_LIS...
22.066667
76
0.702417
972a0a5762d3deb9a9df476c3af14b3fb2051949
961
py
Python
lxd/exa/bgp.py
eololab/rpki-lab
3390699142b1bfc65f4982023f03b6fb2ab166b7
[ "MIT" ]
null
null
null
lxd/exa/bgp.py
eololab/rpki-lab
3390699142b1bfc65f4982023f03b6fb2ab166b7
[ "MIT" ]
null
null
null
lxd/exa/bgp.py
eololab/rpki-lab
3390699142b1bfc65f4982023f03b6fb2ab166b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import time import struct import socket messages = [] messages.append('announce route 66.185.112.0/24 next-hop self as-path [174,2914,42]') messages.append('announce route 144.41.0.0/16 next-hop self as-path [174,553]') messages.append('announce route 193.16.4.0/22 next-hop self as-p...
38.44
98
0.73153
972a2b2e21605641fa0b11bb08a11cacd4d680ed
9,349
py
Python
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
src/cli.py
terraspanner/terraspanner-cli
0538e8d17fdd1bd03b999fe4386e95c896c9611c
[ "Apache-2.0" ]
null
null
null
from optparse import OptionParser import os import tempfile from git import Repo from python_terraform import * import logging import json import re import copy logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.INFO) tf = Terraform() default_git_user=os.getenv('GIT_USER') default_git_token=os.get...
57.355828
244
0.708525
972cb8d5d6817e9274b9009a061e7f62e70b9c3c
543
py
Python
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
1
2021-01-31T00:14:08.000Z
2021-01-31T00:14:08.000Z
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
null
null
null
07. Python-Fundamentals-Strings-and-Text-Processing/07 Serialise.py
Bugzey/Softuni-Python-Fundamentals
6f66e143809988398896cfc771cce1db9220df27
[ "MIT" ]
null
null
null
# Get a string, print a list of chars and the indices of those chars user_input = input() str_order = list(user_input) str_dict = {} str_dict = {key: [] for key in str_order} for key in str_dict.keys(): start_index = 0 while True: try: start_index = user_input.index(key, start_index) ...
28.578947
73
0.61326
972d6292a88fb5c55480bbdced96a910e37ff845
1,323
py
Python
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
null
null
null
2algo/results and data complilation/time_complexity.py
allengrr/deadlock_project
933878077c45a7df04daa087407bb2620c064617
[ "MIT" ]
1
2021-03-21T17:54:26.000Z
2021-03-21T17:54:26.000Z
import numpy as np import matplotlib.pyplot as plt plt.rcParams.update({'font.size': 22}) # marker size n = 10 x = np.arange(1, 100, 10) # x = np.arange(1, 7) algo_dict = {'RMS+Bankers': r'$ALG_1$', 'EDF+Bankers': r'$ALG_2$', 'RMS+wound wait': r'$ALG_3$', 'RMS+wait die': r'$ALG...
26.46
75
0.617536
972f8b6751c5b2afa662f260119fde2fc1802242
3,633
py
Python
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
1,153
2016-06-02T09:57:22.000Z
2021-05-14T13:02:35.000Z
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
515
2016-06-02T10:03:10.000Z
2021-05-14T14:37:08.000Z
ykdl/extractors/pps.py
Fearyncess/ykdl
d12a7b4dbad936e6312e084848a19378ed47bbd7
[ "MIT" ]
274
2016-06-13T12:31:20.000Z
2021-04-13T02:20:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from ykdl.extractor import VideoExtractor from ykdl.videoinfo import VideoInfo from ykdl.util.html import get_content, add_header from ykdl.util.match import match1 from ykdl.compact import urlencode from .iqiyi.util import get_macid import json import time import random...
30.529412
83
0.512524
972f8ed6b2d100533532ffdbd0b3aa1f19d0289c
12,825
py
Python
C_Tut/tutorials/views.py
jaydeep11/C-tutorial-web-application
3ec0225efda834fe93a678d887044906124de59b
[ "MIT" ]
null
null
null
C_Tut/tutorials/views.py
jaydeep11/C-tutorial-web-application
3ec0225efda834fe93a678d887044906124de59b
[ "MIT" ]
null
null
null
C_Tut/tutorials/views.py
jaydeep11/C-tutorial-web-application
3ec0225efda834fe93a678d887044906124de59b
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseRedirect from django.template.loader import render_to_string from django.contrib.auth.decorators import login_required from django.views.decorators.cache import never_cache from home.models import CPerson,student from django...
37.066474
393
0.589708
9730235a2588992f4dab3fea8ad9fcef5294af5c
2,086
py
Python
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
src/thex/apps/navbar.py
harris-2374/THEx
04c4f56eb2cf86b8f55ddd6edd3f48029296bf5a
[ "MIT" ]
null
null
null
import dash_bootstrap_components as dbc import dash_html_components as html
32.59375
63
0.370086
97325c37bd3759407fc051583513adc0103085dc
784
py
Python
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
python/mathematics/mat_exp.py
jtpio/algo-toolbox
d0f675889889ad52d853d948b0191bbd14c1e9cd
[ "MIT" ]
null
null
null
def mat_exp(mat, p, mod): """ Fast Matrix Exponentiation with modulo Parameters ---------- mat: numpy matrix The matrix to exponentiate. It must be a matrix that supports the * operator. p: int The power to raise the matrix to. mod: int The modulo value used t...
23.058824
75
0.468112
9733165a2c2800de7fed4fd918055591257301d4
3,276
py
Python
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
2
2021-05-28T10:02:10.000Z
2021-06-10T09:02:08.000Z
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
1
2020-09-20T06:12:06.000Z
2020-09-20T06:12:06.000Z
python/01_italable_class/iter_advanced.py
sunao11/eGov_hourei
0731cfa43ac701ca17bec178f00f68f393efe7c8
[ "Apache-2.0" ]
2
2021-06-12T08:54:49.000Z
2022-01-06T23:28:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- def show_enabled(series): """ Show the values of enabled units. """ if not isinstance(series, Series): raise TypeError("@unit must be a instance of Series") print([unit.value for unit in series if unit]) if __name__ == "__main__": # Uni...
22.438356
83
0.537851
97340d2d28590597d1a93c772426eaebb769394a
2,101
py
Python
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
1
2015-03-08T18:20:30.000Z
2015-03-08T18:20:30.000Z
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
null
null
null
textinator/image.py
ijks/textinator
26c6cd3f7e4ee48e23fd66d809ebe0656d41a6b9
[ "MIT" ]
null
null
null
from ansi.colour.rgb import rgb256 from ansi.colour.fx import reset def _scale(value, source, destination): """ Linear map a value from a source to a destination range. :param int value: original value :param tuple source: source range :param tuple destination: destination range :rtype: flo...
25.011905
65
0.576392
9734144a99f5d18b0e4f695d09c169677a34f2e4
1,070
py
Python
python/Redis/get_100W_user.py
jokimina/miscellany
a2b80befb8037dc04cdbbe8185c5f7830976c837
[ "MIT" ]
1
2018-12-15T02:12:37.000Z
2018-12-15T02:12:37.000Z
python/Redis/get_100W_user.py
oldthreefeng/miscellany
8d3c7a14b53929d752c7356c85ae6681000cd526
[ "MIT" ]
null
null
null
python/Redis/get_100W_user.py
oldthreefeng/miscellany
8d3c7a14b53929d752c7356c85ae6681000cd526
[ "MIT" ]
2
2018-12-10T12:55:38.000Z
2019-01-04T07:43:55.000Z
#!/user/bin python # -*- coding:utf-8 -*- ''' @Author: xiaodong @Email: fuxd@jidongnet.com @DateTime: 2015-12-16 17:01:58 @Description: 100W ''' import redis import sys import json redisList = [6510,6520,6530,6540,6541,6542,6543,6544,6545,6546,6547,6548,6549,6550,6551,6552,6553,6554,6555,6556,655...
28.157895
178
0.670093
97344ad23f706ec259299413e63f1f8749dc6a20
14,126
py
Python
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
1
2018-06-25T01:08:52.000Z
2018-06-25T01:08:52.000Z
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
6
2018-06-20T20:13:25.000Z
2019-01-13T00:08:08.000Z
test/test_server.py
Gandalf-/apocrypha
0d524e9e292acb8744f31b82f0f9a21e6dece5a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=protected-access # pylint: disable=no-self-use # pylint: disable=missing-docstring # pylint: disable=too-many-public-methods import time import threading import unittest import apocrypha.client from apocrypha.exceptions import DatabaseError from apocrypha.server import Server...
29.864693
79
0.580348
9734571150ae79e21863d08655f64ceb72d55ed2
4,556
py
Python
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
94
2018-04-30T20:29:15.000Z
2022-03-29T13:40:31.000Z
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
67
2018-12-06T21:08:09.000Z
2022-03-29T18:00:46.000Z
pkgs/conf-pkg/src/genie/libs/conf/l2vpn/tests/test_xconnect.py
miott/genielibs
6464642cdd67aa2367bdbb12561af4bb060e5e62
[ "Apache-2.0" ]
49
2018-06-29T18:59:03.000Z
2022-03-10T02:07:59.000Z
#!/usr/bin/env python import unittest from unittest.mock import Mock from genie.conf import Genie from genie.conf.base import Testbed, Device, Link, Interface from genie.libs.conf.l2vpn import Xconnect from genie.libs.conf.bgp import RouteTarget if __name__ == '__main__': unittest.main()
40.318584
130
0.643986
97348f780608c2e22491e403239f8bc0672b5b08
3,006
py
Python
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
29
2015-02-23T07:59:13.000Z
2015-04-05T09:49:53.000Z
analytics/tests/unittest_service.py
sadikovi/Pulsar
3267426cf5bd676a3c4c20cbee88a80b89e65b0f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # import libs import unittest import json import sys import os from types import DictType # import classes import analytics.utils.misc as misc import analytics.exceptions.exceptions as ex import analytics.service as service import projectpaths as paths from analytics.loading.jsonloader import Jso...
32.673913
74
0.657685
973968d98509e3e04d9d5ab44db4e2d6ef0a29e6
552
py
Python
psme/subcommand.py
claymcleod/psme
220f99085a5d3857ff0b48243923a8f0ba7a6822
[ "MIT" ]
null
null
null
psme/subcommand.py
claymcleod/psme
220f99085a5d3857ff0b48243923a8f0ba7a6822
[ "MIT" ]
null
null
null
psme/subcommand.py
claymcleod/psme
220f99085a5d3857ff0b48243923a8f0ba7a6822
[ "MIT" ]
null
null
null
import argparse from abc import ABC, abstractmethod from typing import Any, Dict
25.090909
87
0.668478
973ab068516510d55017d4d9e5b92353475eda35
36,287
py
Python
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
2
2018-01-29T18:50:25.000Z
2018-06-18T23:41:43.000Z
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
95
2017-05-25T13:12:14.000Z
2018-09-24T10:33:11.000Z
srttools/io.py
matteobachetti/srt-single-dish-tools
db02eaa1bb958945a88c36c1be847d43bf6b10b4
[ "BSD-3-Clause" ]
3
2017-06-13T10:10:50.000Z
2018-06-08T12:35:57.000Z
"""Input/output functions.""" import astropy.io.fits as fits from astropy.table import Table import numpy as np import astropy.units as u from astropy.coordinates import ( EarthLocation, AltAz, Angle, ICRS, GCRS, SkyCoord, get_sun, ) import os from astropy.time import Time import warnings fr...
30.988044
79
0.584534
973acfd3901ad069b2fdfb5a8915dd3eb1316973
187
py
Python
vis_utils/tb_logging.py
lknak/tigr
614a6435c483a25cb8183c08184d140120053a4f
[ "MIT" ]
null
null
null
vis_utils/tb_logging.py
lknak/tigr
614a6435c483a25cb8183c08184d140120053a4f
[ "MIT" ]
null
null
null
vis_utils/tb_logging.py
lknak/tigr
614a6435c483a25cb8183c08184d140120053a4f
[ "MIT" ]
2
2022-01-21T07:49:27.000Z
2022-02-05T13:23:18.000Z
from torch.utils.tensorboard import SummaryWriter TENSORBOARD_LOGGER : SummaryWriter TRAINING_LOG_STEP = 0 AUGMENTATION_LOG_STEP = 0 TI_LOG_STEP = 0 DEBUG_LOG_STEP = 0 LOG_INTERVAL = -1
20.777778
49
0.828877
973cf34dab4ee39dd0d909e99162d9d5963e92b5
3,946
py
Python
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
10
2020-12-14T21:36:03.000Z
2021-11-24T10:59:14.000Z
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
2
2021-01-06T09:57:27.000Z
2021-12-16T06:41:18.000Z
src/main/evaluation/evals/evaluate_paper_latency_cdf.py
gaow0007/hire-cluster-simulator
2c3d466df4f694ca97392b01e4f2339845007645
[ "Apache-2.0" ]
2
2021-11-24T08:34:32.000Z
2021-12-02T03:15:52.000Z
#!/usr/bin/env python3 # coding=utf-8 import gc import logging import os import sys sys.path.append( # Figure out the path of the evaluation directory os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir)) ) from evals.base_evaluate import experiments_directory, get_evaluation_...
31.31746
110
0.601368
973d1b5356acbed0a6077bf8229582c98e28ac4c
177
py
Python
icon-pycon/home/<USERNAME>/Desktop/DTbkp.d/1-SAVING/SAVE_desktop_layout.py
moof-moof/Icon-pycon
3f14af7d0a3e30bea1b67ea6c34ff71c9ebedcf8
[ "Unlicense" ]
null
null
null
icon-pycon/home/<USERNAME>/Desktop/DTbkp.d/1-SAVING/SAVE_desktop_layout.py
moof-moof/Icon-pycon
3f14af7d0a3e30bea1b67ea6c34ff71c9ebedcf8
[ "Unlicense" ]
null
null
null
icon-pycon/home/<USERNAME>/Desktop/DTbkp.d/1-SAVING/SAVE_desktop_layout.py
moof-moof/Icon-pycon
3f14af7d0a3e30bea1b67ea6c34ff71c9ebedcf8
[ "Unlicense" ]
null
null
null
import sys sys.path.append('/home/user/path/to/0-defs/') # sys.path.append('/home/xneb/Skrivbord/DTbkp.d/0-defs/') import icons_pycons icons_pycons.SAVE_current_layout()
13.615385
57
0.740113
973ea41ad870c8e44dccf1cf26f6c10aba40fa1a
6,814
py
Python
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
2
2022-03-02T15:56:49.000Z
2022-03-09T16:15:37.000Z
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
null
null
null
nerds_osmnx/overpass_query.py
anerv/NERDS_osmnx
c243317b3ac518269c63d2fcec0e51f9a7af8327
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions in order to make complex overpass query through osmnx. Use get_filter_graphs to get graph for specific filter, then create the union with compose_graph. Is a proxy of the lack of "or" syntax between keys, only able to make "or" inside keys or "and" between keys. """ import osmnx a...
41.803681
106
0.533607
973fb9aea59fde514b3cd0e87df8930e02f5134e
340
py
Python
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
platzigram/posts/urls.py
dirias/Curso-de-Django
e02878e2419c334c3a84e242cb9422b693f92227
[ "MIT" ]
null
null
null
"""POST URLS""" from django.urls import path # Views from posts import views urlpatterns = [ path(route = '', view=views.PostsFeedView.as_view(), name='feed'), path(route = 'posts/new/', view = views.PostCreateView.as_view(), name='create'), path(route='posts<int:pk>', view=views.PostDetailView.as_view(...
24.285714
85
0.676471
97420ee00a60c2531a89c2990102430b05c0989b
1,168
py
Python
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
src/pybel/parser/modifiers/variant.py
tehw0lf/pybel
6f67f8cce15052cc3c42ef87374e3b9ee45e6519
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ HGVS Variants ~~~~~~~~~~~~~ For example, the node :code:`p(HGNC:GSK3B, var(p.Gly123Arg))` is represented with the following: .. code:: { FUNCTION: PROTEIN, NAMESPACE: 'HGNC', NAME: 'GSK3B', VARIANTS: [ { KIND: HGVS, ...
22.901961
132
0.626712
9743466cb5125ec3881d32d72b7b6f465fa359a6
887
py
Python
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
12
2020-10-09T18:12:30.000Z
2021-03-23T16:17:40.000Z
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
1
2020-08-11T17:11:43.000Z
2020-08-11T17:29:58.000Z
rest/campi/views.py
cmu-lib/campi
c2c4bfbf2d5932dde1dde985d7b5c8786b9f2ab2
[ "MIT" ]
null
null
null
from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from campi import serializers
31.678571
72
0.70124
97444736c5b2cdc9d119e90cdabf47e85026939c
4,453
py
Python
example.py
jml/pyhazard
ba4985c6052dcd16d8e03ee971e2fead4c8d77c8
[ "Apache-2.0" ]
null
null
null
example.py
jml/pyhazard
ba4985c6052dcd16d8e03ee971e2fead4c8d77c8
[ "Apache-2.0" ]
null
null
null
example.py
jml/pyhazard
ba4985c6052dcd16d8e03ee971e2fead4c8d77c8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2015 Jonathan M. Lange <jml@mumak.net> # # 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...
29.296053
78
0.660229
9744fdec5f804af7a4c49433b6de9937927e1e26
1,044
py
Python
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
NumPy_Training/img_histogram_2D.py
jpenrici/Computer_Graphics
5ba268e9e75de0d7ad733a503400e52b66edc78b
[ "MIT" ]
null
null
null
# -*- Mode: Python3; coding: utf-8; indent-tabs-mpythoode: nil; tab-width: 4 -*- import os import numpy as np from matplotlib import pyplot as plt, colors as colors PATH = "../Images/" RED = 0 GREEN = 1 BLUE = 2 if __name__ == '__main__': # ndArray (Imagem) test("folha_croton")
18.642857
80
0.564176
9745bee63f21db8a2f15dbf9443e575995c9a601
4,931
py
Python
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
30
2021-11-29T19:09:09.000Z
2022-03-15T01:59:36.000Z
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
31
2021-11-18T09:42:27.000Z
2022-03-28T06:21:30.000Z
custom_components/weatherflow/config_flow.py
kocour/hass-weatherflow
4c6d08e7e6468aa008e656b3763d55b6ee2fbb88
[ "MIT" ]
6
2021-12-05T22:00:00.000Z
2022-02-18T13:31:54.000Z
"""Config Flow to configure WeatherFlow Integration.""" from __future__ import annotations import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_API_TOKEN, CONF_ID from homeassistant.core import callback from homeassistant.helpers.aiohttp_client import a...
32.873333
84
0.601095