hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
baa7798d6951efa49c7dfc86901c4f88cfb2e6a7
243
py
Python
tests/test_bz2.py
refi64/arclib
a872904fa4f4270b851b2e96c917d26d3c0a0a4c
[ "MIT" ]
2
2019-05-04T16:41:16.000Z
2020-11-09T09:44:19.000Z
tests/test_bz2.py
refi64/arclib
a872904fa4f4270b851b2e96c917d26d3c0a0a4c
[ "MIT" ]
null
null
null
tests/test_bz2.py
refi64/arclib
a872904fa4f4270b851b2e96c917d26d3c0a0a4c
[ "MIT" ]
null
null
null
from util import * from arclib import bz2 from bz2 import compress, decompress def test_incremental_compress(): basic_test_c(bz2.Compressor(), decompress) def test_incremental_decompress(): basic_test_d(bz2.Decompressor(), compress)
24.3
46
0.790123
0
0
0
0
0
0
0
0
0
0
baa96ababbc004f7b0ec9bc773951f114fc9b91e
86
py
Python
train/__init__.py
SeJV/ComparisonRLapproaches
e1988a97ed5fab10c847350d607e9feafeced61e
[ "MIT" ]
2
2020-12-14T12:59:40.000Z
2020-12-14T14:08:30.000Z
train/__init__.py
SeJV/ComparisonRLapproaches
e1988a97ed5fab10c847350d607e9feafeced61e
[ "MIT" ]
null
null
null
train/__init__.py
SeJV/ComparisonRLapproaches
e1988a97ed5fab10c847350d607e9feafeced61e
[ "MIT" ]
null
null
null
from train.train_agent import train_agent from train.train_agents import train_agents
28.666667
43
0.883721
0
0
0
0
0
0
0
0
0
0
baa9b540682d38df669c05ad81b3c9ed20735c9d
8,104
py
Python
scripts/detectron2_inference.py
openem-team/openem
45222c9c77084eacab278da25a8734ae7d43f677
[ "MIT" ]
10
2019-01-23T23:58:01.000Z
2021-08-30T19:42:35.000Z
scripts/detectron2_inference.py
openem-team/openem
45222c9c77084eacab278da25a8734ae7d43f677
[ "MIT" ]
3
2020-03-20T15:21:41.000Z
2020-09-18T18:49:38.000Z
scripts/detectron2_inference.py
openem-team/openem
45222c9c77084eacab278da25a8734ae7d43f677
[ "MIT" ]
2
2020-05-08T17:39:12.000Z
2020-10-09T01:27:17.000Z
import argparse import json import logging import multiprocessing as mp import os import time from typing import List from detectron2.structures import BoxMode from detectron2 import model_zoo from detectron2.data import MetadataCatalog, DatasetCatalog from detectron2.structures import BoxMode from detectron2.utils.vi...
33.213115
126
0.640301
1,950
0.240622
1,198
0.147828
0
0
0
0
1,864
0.23001
baab29c428a4fd141d39839a0e81de189e328413
679
py
Python
redbot/type.py
kinow/redbot
f183f8468b3cf645711ff4a078ea85075ea9c081
[ "MIT" ]
167
2015-01-07T16:34:56.000Z
2022-02-20T15:20:06.000Z
redbot/type.py
QPC-database/redbot
f05dd7754cd6f6ba005ae44beeb8ed21516a93c8
[ "MIT" ]
180
2015-02-01T01:37:53.000Z
2022-02-17T04:32:01.000Z
redbot/type.py
QPC-database/redbot
f05dd7754cd6f6ba005ae44beeb8ed21516a93c8
[ "MIT" ]
32
2015-05-20T21:00:13.000Z
2022-02-16T10:14:15.000Z
from typing import Any, Callable, Dict, List, Tuple try: from typing_extensions import Protocol except ImportError: from typing import Protocol # type: ignore StrHeaderListType = List[Tuple[str, str]] RawHeaderListType = List[Tuple[bytes, bytes]] HeaderDictType = Dict[str, Any] ParamDictType = Dict[str, str]...
26.115385
83
0.696613
315
0.463918
0
0
0
0
0
0
14
0.020619
baab5621da39d454b371690762d14b2d4e136c2b
1,660
py
Python
beatsaver/models/users.py
Sirspam/BeatSaver.py
7cd0224fb49d4b147ab9b150c0800988bc557c2d
[ "MIT" ]
4
2021-08-13T16:16:22.000Z
2021-09-25T04:34:56.000Z
beatsaver/models/users.py
Sirspam/BeatSaver.py
7cd0224fb49d4b147ab9b150c0800988bc557c2d
[ "MIT" ]
null
null
null
beatsaver/models/users.py
Sirspam/BeatSaver.py
7cd0224fb49d4b147ab9b150c0800988bc557c2d
[ "MIT" ]
2
2021-08-15T00:14:38.000Z
2021-12-13T02:35:56.000Z
from dataclasses import dataclass from typing import Union NoneType = type(None) @dataclass class UserDiffStats: def __init__(self, data): self.easy=data["easy"] self.expert=data["expert"] self.expertPlus=data["expertPlus"] self.hard=data["hard"] self.normal=data["normal"]...
25.9375
81
0.631325
1,534
0.924096
0
0
1,567
0.943976
0
0
265
0.159639
baab9796d720ace8942051881398273476a5ceda
11,599
py
Python
models/swin_transformer.py
rosinality/vision-transformers-pytorch
b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f
[ "MIT" ]
77
2021-04-03T06:44:19.000Z
2021-07-07T07:05:01.000Z
models/swin_transformer.py
rosinality/vision-transformers-pytorch
b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f
[ "MIT" ]
1
2021-04-08T06:59:41.000Z
2021-04-08T11:20:32.000Z
models/swin_transformer.py
rosinality/vision-transformers-pytorch
b884b5da79900c96e4ce17fbb575cf1c5cb3cd5f
[ "MIT" ]
6
2021-04-15T13:36:37.000Z
2022-02-03T12:32:20.000Z
import math from typing import Sequence, Tuple import torch from torch import nn from torch.nn import functional as F from tensorfn.config import config_model from pydantic import StrictInt, StrictFloat from .layer import DropPath, tuple2, PositionwiseFeedForward LayerNorm = lambda x: nn.LayerNorm(x, eps=...
30.523684
89
0.52358
10,801
0.931201
0
0
4,348
0.37486
0
0
118
0.010173
baaba6a98acb8b308d5a161ba06afe454b488903
93
py
Python
tests/conftest.py
Andy-Wilkinson/ChemMLToolk
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
1
2019-10-30T03:43:24.000Z
2019-10-30T03:43:24.000Z
tests/conftest.py
Andy-Wilkinson/ChemMLToolk
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
2
2021-11-28T21:09:30.000Z
2021-11-28T21:09:39.000Z
tests/conftest.py
Andy-Wilkinson/ChemMLToolkit
83efc7ea66d2def860a3e04ccd70d77fb689fddc
[ "MIT" ]
null
null
null
import tensorflow as tf if tf.__version__.startswith('1.'): tf.enable_eager_execution()
18.6
35
0.752688
0
0
0
0
0
0
0
0
4
0.043011
baac3262872d073b7970c4a5798360c41e0f8d75
12,340
py
Python
snooper/db_hadler.py
tehreem09/web-snooper
bd02ef0aa38881321da8dc76b28560a7381b3841
[ "MIT" ]
null
null
null
snooper/db_hadler.py
tehreem09/web-snooper
bd02ef0aa38881321da8dc76b28560a7381b3841
[ "MIT" ]
null
null
null
snooper/db_hadler.py
tehreem09/web-snooper
bd02ef0aa38881321da8dc76b28560a7381b3841
[ "MIT" ]
null
null
null
import json def search_records(): cleaned_data = open('lifetech_cleandata.json') data = json.load(cleaned_data) my_dic={} for record in data: number = record.get("number") cnic = record.get("cnic") my_dic=record my_dic= basic_info_merger(my_dic) result01 = s...
33.172043
113
0.587439
0
0
0
0
0
0
0
0
8,760
0.709887
baaddc9bb45e6aae722ae9541eaec5a520d340ca
189
py
Python
parse/forms.py
damiso15/excel_microservice
4c1b57ad6b5d1afb455d55ea97981b8ecc7c28f6
[ "MIT" ]
null
null
null
parse/forms.py
damiso15/excel_microservice
4c1b57ad6b5d1afb455d55ea97981b8ecc7c28f6
[ "MIT" ]
5
2021-03-30T14:07:01.000Z
2021-09-22T19:30:11.000Z
parse/forms.py
damiso15/excel_microservice
4c1b57ad6b5d1afb455d55ea97981b8ecc7c28f6
[ "MIT" ]
null
null
null
# from django import forms # from .models import ExcelUpload # # # class ExcelUploadForm(forms.ModelForm): # class Meta: # model = ExcelUpload # fields = ('document', )
21
41
0.640212
0
0
0
0
0
0
0
0
181
0.957672
baadf5b6a2a9d890b5b08db05c94ab43db51b053
154
py
Python
src/common/utils/__init__.py
JonasFrey96/RPOSE
7da77499ab777ce7ee37b731541982870da8d40b
[ "BSD-3-Clause" ]
null
null
null
src/common/utils/__init__.py
JonasFrey96/RPOSE
7da77499ab777ce7ee37b731541982870da8d40b
[ "BSD-3-Clause" ]
null
null
null
src/common/utils/__init__.py
JonasFrey96/RPOSE
7da77499ab777ce7ee37b731541982870da8d40b
[ "BSD-3-Clause" ]
null
null
null
from .loading import * from .utils_dict_list import * from .get_logger import get_neptune_logger, get_tensorboard_logger from .map_dict import Map,DotDict
38.5
66
0.844156
0
0
0
0
0
0
0
0
0
0
baae0bd8562b640b832596855eba8d94415bbcc3
2,676
py
Python
mnist/mnist_reader.py
Amathlog/RLTorch
51fbfe26644d0ad06a6a1e6654e42c4221b09b56
[ "MIT" ]
1
2019-03-11T10:36:23.000Z
2019-03-11T10:36:23.000Z
mnist/mnist_reader.py
Amathlog/RLTorch
51fbfe26644d0ad06a6a1e6654e42c4221b09b56
[ "MIT" ]
null
null
null
mnist/mnist_reader.py
Amathlog/RLTorch
51fbfe26644d0ad06a6a1e6654e42c4221b09b56
[ "MIT" ]
null
null
null
import gzip from pathlib import Path import numpy as np data_path = Path(__file__).parent / '..' / 'data' train_images_file = data_path / 'train-images-idx3-ubyte.gz' train_labels_file = data_path / 'train-labels-idx1-ubyte.gz' test_images_file = data_path / 't10k-images-idx3-ubyte.gz' test_labels_file = data_path /...
31.482353
123
0.689836
0
0
0
0
0
0
0
0
264
0.098655
bab2cdd97624bd764104d4c41b7ad0ceafb4df27
5,063
py
Python
examples/tutorial_pt1.py
apoz00003/arcana
23a8e8ce469cf541f2ed4703c1e9c1d10291d4a6
[ "Apache-2.0" ]
3
2018-11-12T05:50:38.000Z
2020-02-03T04:25:05.000Z
examples/tutorial_pt1.py
apoz00003/arcana
23a8e8ce469cf541f2ed4703c1e9c1d10291d4a6
[ "Apache-2.0" ]
72
2018-09-07T06:03:12.000Z
2020-11-03T00:47:04.000Z
examples/tutorial_pt1.py
apoz00003/arcana
23a8e8ce469cf541f2ed4703c1e9c1d10291d4a6
[ "Apache-2.0" ]
3
2018-02-12T05:07:35.000Z
2018-03-02T03:11:29.000Z
from __future__ import absolute_import from __future__ import print_function import os.path import numpy # from nipype.interfaces.base import ( # TraitedSpec, traits, File, isdefined, # CommandLineInputSpec, CommandLine) from nipype.interfaces.base import ( TraitedSpec, traits, BaseInterface, File, isdefine...
30.317365
89
0.661466
3,675
0.725854
0
0
0
0
0
0
1,229
0.242741
bab5445b3741cb376b235a2b48c913eff62843e9
381
py
Python
phase_separation.py
wdecoster/read_length_SV_discovery
3d012995d011089521a96907d5645bbc7cad53fe
[ "MIT" ]
3
2019-10-15T20:21:45.000Z
2021-08-21T08:58:27.000Z
phase_separation.py
wdecoster/read_length_SV_discovery
3d012995d011089521a96907d5645bbc7cad53fe
[ "MIT" ]
null
null
null
phase_separation.py
wdecoster/read_length_SV_discovery
3d012995d011089521a96907d5645bbc7cad53fe
[ "MIT" ]
1
2020-07-22T01:30:44.000Z
2020-07-22T01:30:44.000Z
from Bio import SeqIO import sys with open("phase0.fasta", 'w') as phase0, open("phase1.fasta", 'w') as phase1: for record in SeqIO.parse(sys.argv[1], "fasta"): if record.id.endswith('0'): phase0.write(record.format("fasta")) elif record.id.endswith('1'): phase1.write(record...
31.75
78
0.593176
0
0
0
0
0
0
0
0
61
0.160105
bab5be57e22359586e87739856f23dc498c9a1a3
1,245
py
Python
tests/integration/views/test_session.py
ONSdigital/census-survey-runner
9f8cd3d664db5c5b49d348bdf48c58d1a3492aab
[ "MIT" ]
null
null
null
tests/integration/views/test_session.py
ONSdigital/census-survey-runner
9f8cd3d664db5c5b49d348bdf48c58d1a3492aab
[ "MIT" ]
3
2018-10-10T08:19:07.000Z
2018-10-29T11:43:08.000Z
tests/integration/views/test_session.py
ONSdigital/census-survey-runner
9f8cd3d664db5c5b49d348bdf48c58d1a3492aab
[ "MIT" ]
1
2021-04-11T08:04:22.000Z
2021-04-11T08:04:22.000Z
import time from tests.integration.integration_test_case import IntegrationTestCase from app.settings import RESPONDENT_ACCOUNT_URL class TestSession(IntegrationTestCase): def test_session_expired(self): self.get('/session-expired') self.assertInPage('Your session has expired') def test_sess...
37.727273
71
0.734137
1,109
0.890763
0
0
0
0
0
0
242
0.194378
bab70bc3ca929ef53c40db322323ae3e7fc22459
557
py
Python
test_ifo_env.py
medric49/sharingan
f6b85118016d45456fc1467c6706731562c0f0d7
[ "MIT" ]
null
null
null
test_ifo_env.py
medric49/sharingan
f6b85118016d45456fc1467c6706731562c0f0d7
[ "MIT" ]
null
null
null
test_ifo_env.py
medric49/sharingan
f6b85118016d45456fc1467c6706731562c0f0d7
[ "MIT" ]
null
null
null
import os from gym.envs.mujoco import reacher3dof from rllab.envs.gym_env import GymEnv os.environ['MKL_SERVICE_FORCE_INTEL'] = '1' os.environ['MUJOCO_GL'] = 'egl' env = GymEnv("Reacher3DOF-v1", mode='oracle', force_reset=True) time_step = env.reset() print(time_step) while True: env.render() time_step = en...
24.217391
63
0.696589
0
0
0
0
0
0
0
0
213
0.382406
bab7f429091cfd8a1ee991d9f7990039209eef13
2,773
py
Python
preprocessing/clause_splitter.py
cniklaus/argumentation-learning
d81c6b9f0f26ccee373994dacefd5b575fc3e763
[ "MIT" ]
null
null
null
preprocessing/clause_splitter.py
cniklaus/argumentation-learning
d81c6b9f0f26ccee373994dacefd5b575fc3e763
[ "MIT" ]
null
null
null
preprocessing/clause_splitter.py
cniklaus/argumentation-learning
d81c6b9f0f26ccee373994dacefd5b575fc3e763
[ "MIT" ]
null
null
null
import spacy from spacy.lang.de.examples import sentences #from collections import OrderedDict #import numpy as np nlp = spacy.load('de_core_news_sm') doc = nlp("Weil die Sonne scheint, ist es warm, nachdem ich ein Eis, das sehr lecker war, gegessen habe.") print(doc.text) #for token in doc: # print(token.text, to...
26.409524
106
0.60476
0
0
0
0
0
0
0
0
440
0.158673
bab8a52d5c732186a4c6df87b8780ef2f9b9eb2b
332
py
Python
texasholdem/texasholdem/urls.py
stricoff92/games-hub
23bbd308fc12e214abd8813607ce92fd0a20fa8c
[ "MIT" ]
null
null
null
texasholdem/texasholdem/urls.py
stricoff92/games-hub
23bbd308fc12e214abd8813607ce92fd0a20fa8c
[ "MIT" ]
5
2021-03-19T04:38:06.000Z
2021-09-22T19:10:42.000Z
texasholdem/texasholdem/urls.py
stricoff92/games-hub
23bbd308fc12e214abd8813607ce92fd0a20fa8c
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls import url urlpatterns = [ url(r'^api-auth/', include('rest_framework.urls')), path('', include('lobby.urls')), path('', include('connectquatro.urls')), path('admin/', admin.si...
25.538462
55
0.695783
0
0
0
0
0
0
0
0
78
0.23494
bab96adff00e5592d6dd50d6d5dcfa735edf0250
805
py
Python
encryptedpickle/utils.py
ai-are-better-than-humans/encrypted-pickle-python
7656233598e02e65971f69e11849a0f288b2b2a5
[ "MIT" ]
4
2016-05-23T08:07:31.000Z
2020-02-26T17:07:15.000Z
encryptedpickle/utils.py
ai-are-better-than-humans/encrypted-pickle-python
7656233598e02e65971f69e11849a0f288b2b2a5
[ "MIT" ]
null
null
null
encryptedpickle/utils.py
ai-are-better-than-humans/encrypted-pickle-python
7656233598e02e65971f69e11849a0f288b2b2a5
[ "MIT" ]
8
2016-05-23T23:17:22.000Z
2021-05-12T18:13:10.000Z
# -*- coding: utf-8 -*- ''' Some common, generic utilities ''' from __future__ import absolute_import from base64 import urlsafe_b64encode, urlsafe_b64decode def urlsafe_nopadding_b64encode(data): '''URL safe Base64 encode without padding (=)''' return urlsafe_b64encode(data).rstrip('=') def urlsafe_nopa...
21.184211
55
0.650932
0
0
0
0
0
0
0
0
200
0.248447
babaa94cdad5e340c2f91ecb33bb6c6a3444d673
1,655
py
Python
payments/migrations/0004_expand_email_scope.py
jakereps/workshops.qiime2.org
5941e4db8b63c3518db2b85d5c45afbea5781bfc
[ "BSD-3-Clause" ]
null
null
null
payments/migrations/0004_expand_email_scope.py
jakereps/workshops.qiime2.org
5941e4db8b63c3518db2b85d5c45afbea5781bfc
[ "BSD-3-Clause" ]
null
null
null
payments/migrations/0004_expand_email_scope.py
jakereps/workshops.qiime2.org
5941e4db8b63c3518db2b85d5c45afbea5781bfc
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2018, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
30.648148
106
0.536556
1,142
0.69003
0
0
0
0
0
0
566
0.341994
babb781d7744991028ae717034b56c6166172a1f
1,304
py
Python
src/ddo_transform/ddo_transform/standardize.py
bricrsa/datadevops
a6431d30f2ae283197ec91efd6b2052fff9452ea
[ "MIT" ]
null
null
null
src/ddo_transform/ddo_transform/standardize.py
bricrsa/datadevops
a6431d30f2ae283197ec91efd6b2052fff9452ea
[ "MIT" ]
null
null
null
src/ddo_transform/ddo_transform/standardize.py
bricrsa/datadevops
a6431d30f2ae283197ec91efd6b2052fff9452ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Main module.""" from pyspark.sql import DataFrame from pyspark.sql.functions import lit, col, to_timestamp def standardize_parking_bay(parkingbay_sdf: DataFrame, load_id, loaded_on): t_parkingbay_sdf = ( parkingbay_sdf .withColumn("last_edit", to_timestamp...
29.636364
78
0.546012
0
0
0
0
0
0
0
0
309
0.236963
babc3fe8d7ed32b5021b112f40324e879f2c46d6
311
py
Python
pype/plugins/harmony/create/create_template.py
kalisp/pype
28bbffaf2d12ccee48313cd9985e8dfa05e81a5c
[ "MIT" ]
null
null
null
pype/plugins/harmony/create/create_template.py
kalisp/pype
28bbffaf2d12ccee48313cd9985e8dfa05e81a5c
[ "MIT" ]
null
null
null
pype/plugins/harmony/create/create_template.py
kalisp/pype
28bbffaf2d12ccee48313cd9985e8dfa05e81a5c
[ "MIT" ]
null
null
null
from avalon import harmony class CreateTemplate(harmony.Creator): """Composite node for publishing to templates.""" name = "templateDefault" label = "Template" family = "harmony.template" def __init__(self, *args, **kwargs): super(CreateTemplate, self).__init__(*args, **kwargs)
23.923077
61
0.681672
281
0.903537
0
0
0
0
0
0
94
0.302251
babde36aa5e6a7922b35c485f8bf74af0c0cb0ed
6,702
py
Python
lib/surface/functions/get_logs.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/surface/functions/get_logs.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
null
null
null
lib/surface/functions/get_logs.py
ianel20/google-cloud-sdk
36ed4e06ba3961d0a8fbf30a3eaabf7db6d4e9c3
[ "Apache-2.0" ]
1
2020-07-25T12:23:41.000Z
2020-07-25T12:23:41.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
40.618182
80
0.662787
5,848
0.872575
2,643
0.39436
5,020
0.74903
0
0
3,404
0.507908
babe558239c679b8bcf9e3c1eea23a5feb8f7bcc
10,697
py
Python
tests/test_graph.py
zheng-gao/ez_code
fbf48990291aa57d6436d4548b0a6c25dfb8f82d
[ "MIT" ]
null
null
null
tests/test_graph.py
zheng-gao/ez_code
fbf48990291aa57d6436d4548b0a6c25dfb8f82d
[ "MIT" ]
null
null
null
tests/test_graph.py
zheng-gao/ez_code
fbf48990291aa57d6436d4548b0a6c25dfb8f82d
[ "MIT" ]
null
null
null
from fixture.utils import equal_list, equal_dict from ezcode.graph import NegativeCycleExist from ezcode.graph.directed import DirectedGraph from ezcode.graph.undirected import UndirectedGraph def test_undirected_graph(): """ A ------ C | /|\ | / | \ | / | \ | / | E ...
40.518939
205
0.444237
0
0
0
0
0
0
0
0
3,009
0.281294
bac101b295130fa841be5de62c508bc47b701dd7
157
py
Python
coffee_machine/coffees/__init__.py
mpszumowski/Coffee-Machine
acab8b1b7769d856d5746257507529bcdc9ba7de
[ "MIT" ]
null
null
null
coffee_machine/coffees/__init__.py
mpszumowski/Coffee-Machine
acab8b1b7769d856d5746257507529bcdc9ba7de
[ "MIT" ]
null
null
null
coffee_machine/coffees/__init__.py
mpszumowski/Coffee-Machine
acab8b1b7769d856d5746257507529bcdc9ba7de
[ "MIT" ]
null
null
null
from .abc_coffee import AbcCoffeeProgram from .ingredients import Milk, Coffee from .programs import (Cappuccino, Doppio, Espresso, Latte, Lungo, Macchiato)
39.25
77
0.815287
0
0
0
0
0
0
0
0
0
0
bac182c6d94a947ac4d0cc7021002d21a2cbd719
1,384
py
Python
TabEL/client.py
seucs/entity-linker
0156ad9b9d6439ea15518828513da9d9699b9acd
[ "Apache-2.0" ]
4
2018-03-07T07:59:58.000Z
2019-10-19T09:31:44.000Z
TabEL/client.py
acmom/entity-linker
0156ad9b9d6439ea15518828513da9d9699b9acd
[ "Apache-2.0" ]
null
null
null
TabEL/client.py
acmom/entity-linker
0156ad9b9d6439ea15518828513da9d9699b9acd
[ "Apache-2.0" ]
2
2018-11-05T16:09:07.000Z
2019-11-07T00:22:37.000Z
#coding=utf8 import time, sys, Queue import MySQLdb from MySQLdb import cursors from multiprocessing.managers import BaseManager from multiprocessing.sharedctypes import RawArray from multiprocessing import Process, freeze_support, Array reload(sys) sys.setdefaultencoding('utf8') def work(server_addr): # 数据库连接 ...
25.62963
73
0.639451
45
0.032097
0
0
0
0
0
0
196
0.1398
bac2adf850f35e65296bb63e66cba39f424768ca
3,474
py
Python
Polis/vps.py
willll/masternodes
3e8e89898e340d51474edc817f5c6ba80d0ce8c1
[ "Unlicense" ]
null
null
null
Polis/vps.py
willll/masternodes
3e8e89898e340d51474edc817f5c6ba80d0ce8c1
[ "Unlicense" ]
null
null
null
Polis/vps.py
willll/masternodes
3e8e89898e340d51474edc817f5c6ba80d0ce8c1
[ "Unlicense" ]
2
2018-11-27T23:34:24.000Z
2018-12-28T03:03:58.000Z
from invoke.exceptions import UnexpectedExit from utils import execute_command, is_file_exists import logging ''' is_genkey_unique ''' def is_genkey_unique(config): is_unique = True duplicates = [] tmp = {} for conf in config["masternodes"] : if "private_key" in conf : if tmp.get(...
35.090909
175
0.563615
0
0
0
0
0
0
0
0
1,285
0.369891
bac5271cebc525a305e4dcce861d0532699b554d
4,330
py
Python
src/cloudservice/azext_cloudservice/manual/_params.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/cloudservice/azext_cloudservice/manual/_params.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/cloudservice/azext_cloudservice/manual/_params.py
haroonf/azure-cli-extensions
61c044d34c224372f186934fa7c9313f1cd3a525
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.000Z
# -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incor...
75.964912
119
0.638337
0
0
0
0
0
0
0
0
3,070
0.709007
bac5979f60f7a78a72eff8a38edbf552a2696bf8
504
py
Python
examples/tutorial1/send.py
bufferx/stormed-amqp
6b29ae069a3cf62277ed1dffe7dd895a743f28e9
[ "MIT" ]
15
2015-03-06T12:35:52.000Z
2020-06-28T01:46:09.000Z
examples/tutorial1/send.py
brimcfadden/stormed-amqp
59e81bfa4632366dc3f20b3dff25df3331480798
[ "MIT" ]
14
2015-01-08T21:13:27.000Z
2016-03-09T13:22:01.000Z
examples/tutorial1/send.py
brimcfadden/stormed-amqp
59e81bfa4632366dc3f20b3dff25df3331480798
[ "MIT" ]
14
2015-01-11T22:25:37.000Z
2020-06-28T01:46:13.000Z
#! /usr/bin/env python import logging from tornado.ioloop import IOLoop from stormed import Connection, Message msg = Message('Hello World!') def on_connect(): ch = conn.channel() ch.queue_declare(queue='hello') ch.publish(msg, exchange='', routing_key='hello') conn.close(callback=done) def done(): ...
21
53
0.706349
0
0
0
0
0
0
0
0
89
0.176587
bac96c72212d49906c555e8ee6009e66b8770acd
420
py
Python
structural/decorator_example.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
2
2022-02-08T16:30:22.000Z
2022-03-16T08:20:25.000Z
structural/decorator_example.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
null
null
null
structural/decorator_example.py
EdiBoba/python_patterns
b3343eed5592beea2996316feb8df4bad107e1fc
[ "MIT" ]
3
2021-08-06T15:47:47.000Z
2021-12-09T18:59:38.000Z
from abc import ABCMeta, abstractmethod class IOperator(metaclass=ABCMeta): @abstractmethod def operator(self): pass class Component(IOperator): def operator(self): return 10.0 class Wrapper(IOperator): def __init__(self, obj): self.obj = obj def operator(self): ...
16.153846
40
0.657143
306
0.728571
0
0
52
0.12381
0
0
0
0
baccd6c81424ffaf497761f8ea7d84c7831a264c
281
py
Python
nmfamv2/metadata/metadata_reader.py
gmarupilla/NMRFAMv2
2e9e7e1f43dbf1d8bcdbcff044bb686db3af09e0
[ "MIT" ]
null
null
null
nmfamv2/metadata/metadata_reader.py
gmarupilla/NMRFAMv2
2e9e7e1f43dbf1d8bcdbcff044bb686db3af09e0
[ "MIT" ]
null
null
null
nmfamv2/metadata/metadata_reader.py
gmarupilla/NMRFAMv2
2e9e7e1f43dbf1d8bcdbcff044bb686db3af09e0
[ "MIT" ]
null
null
null
from .metadata_parser import parse_metadata from nmfamv2.metadata import Metadata def read_metafile(metafile_path): parsed_metadata = parse_metadata(metafile_path) # Validator and object creation are combined Metadata(parsed_metadata) # Parser # Validator # Object
20.071429
51
0.797153
0
0
0
0
0
0
0
0
71
0.252669
bacd225ac1d42e9cb81fbdcf9ad0ce8c4ea2e152
428
py
Python
f8a_report/dbtable_cleanup_main.py
rafiu007/f8a-stacks-report
d7b8d24a67aaaeb36556fe9de71e997074e52daf
[ "Apache-2.0" ]
null
null
null
f8a_report/dbtable_cleanup_main.py
rafiu007/f8a-stacks-report
d7b8d24a67aaaeb36556fe9de71e997074e52daf
[ "Apache-2.0" ]
1
2020-10-29T08:00:39.000Z
2020-10-29T08:03:46.000Z
f8a_report/dbtable_cleanup_main.py
practice-fabric8-analytics/f8a-stacks-report
433402eb017201495654a4885c89ce6f378a1cd9
[ "Apache-2.0" ]
1
2020-10-28T16:07:21.000Z
2020-10-28T16:07:21.000Z
"""Daily clean up of DB tables.""" import logging from helpers.report_helper import ReportHelper logger = logging.getLogger(__file__) def main(): """Regular clean up of database tables.""" r = ReportHelper() try: r.cleanup_db_tables() except Exception as e: logger.exception("Excepti...
19.454545
84
0.668224
0
0
0
0
0
0
0
0
144
0.336449
bacd2e3df389119769eb29fc4b7a05c4e560d95f
13,356
py
Python
losses.py
ProbIOU/PROBIOU-EFFICIENTDET
1906964f5ac82b73ad120ede1b5eef47bc520598
[ "Apache-2.0" ]
2
2021-09-02T01:56:58.000Z
2021-11-19T14:42:41.000Z
losses.py
ProbIOU/PROBIOU-EFFICIENTDET
1906964f5ac82b73ad120ede1b5eef47bc520598
[ "Apache-2.0" ]
null
null
null
losses.py
ProbIOU/PROBIOU-EFFICIENTDET
1906964f5ac82b73ad120ede1b5eef47bc520598
[ "Apache-2.0" ]
2
2021-12-18T01:11:01.000Z
2022-02-14T23:00:38.000Z
""" Copyright 2017-2018 Fizyr (https://fizyr.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
37.516854
150
0.609763
0
0
0
0
0
0
0
0
3,818
0.285821
bacda3db4aab0d0f6e89b164fd1966fe8e3f70d2
3,093
py
Python
pomodoro.py
Mattynb/PomodoroGUI
b6c67a0f059497f17fad5cdc4c6b9089d63d29a8
[ "MIT" ]
null
null
null
pomodoro.py
Mattynb/PomodoroGUI
b6c67a0f059497f17fad5cdc4c6b9089d63d29a8
[ "MIT" ]
null
null
null
pomodoro.py
Mattynb/PomodoroGUI
b6c67a0f059497f17fad5cdc4c6b9089d63d29a8
[ "MIT" ]
null
null
null
import PySimpleGUI as pg import time import sys from pygame import mixer # Section Popup def win2m(): lay2 = [[pg.T(f'', key='T')], [pg.OK()]] win2 = pg.Window('Popup', lay2, location=(250 ,0), no_titlebar=True) return win2 def sound(): mixer.init() mixer.music.load("notification.mp...
30.93
126
0.430973
0
0
0
0
0
0
0
0
632
0.204332
bacf7bd40e07778d4ffdc5b9e3092f4045164220
449
py
Python
funk/tools.py
mwilliamson/funk
658ff45b33b90f621104d9776c4b122b84779350
[ "BSD-2-Clause" ]
1
2016-04-22T08:02:01.000Z
2016-04-22T08:02:01.000Z
funk/tools.py
mwilliamson/funk
658ff45b33b90f621104d9776c4b122b84779350
[ "BSD-2-Clause" ]
null
null
null
funk/tools.py
mwilliamson/funk
658ff45b33b90f621104d9776c4b122b84779350
[ "BSD-2-Clause" ]
null
null
null
class Data(object): def __init__(self, attributes): self._keys = list(attributes.keys()) for key in attributes: setattr(self, key, attributes[key]) def __str__(self): return "Data({0})".format(", ".join( "{0}={1!r}".format(key, getattr(self, key)) for...
24.944444
55
0.550111
403
0.89755
0
0
0
0
0
0
26
0.057906
bacf8f6d3d4b525ddd175a8b2492963e5de1c2a0
4,703
py
Python
addons/blender-skeletal-motion-animate/panels/retargeting.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
addons/blender-skeletal-motion-animate/panels/retargeting.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
addons/blender-skeletal-motion-animate/panels/retargeting.py
trisadmeslek/V-Sekai-Blender-tools
0d8747387c58584b50c69c61ba50a881319114f8
[ "MIT" ]
null
null
null
import bpy from .main import ToolPanel from ..operators import retargeting, detector from ..core.icon_manager import Icons from ..core.retargeting import get_target_armature from bpy.types import PropertyGroup, UIList from bpy.props import StringProperty # Retargeting panel class RetargetingPanel(ToolPanel, bpy.typ...
35.900763
171
0.670423
4,417
0.939188
0
0
0
0
0
0
716
0.152243
bad12262ef46a460162421fa3fc24f38cea101a7
25
py
Python
testsuite/modulegraph-dir/package_with_star_import/__init__.py
xoviat/modulegraph2
766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a
[ "MIT" ]
9
2020-03-22T14:48:01.000Z
2021-05-30T12:18:12.000Z
testsuite/modulegraph-dir/package_with_star_import/__init__.py
xoviat/modulegraph2
766d00bdb40e5b2fe206b53a87b1bce3f9dc9c2a
[ "MIT" ]
15
2020-01-06T10:02:32.000Z
2021-05-28T12:22:44.000Z
testsuite/modulegraph-dir/package_with_star_import/__init__.py
ronaldoussoren/modulegraph2
b6ab1766b0098651b51083235ff8a18a5639128b
[ "MIT" ]
4
2020-05-10T18:51:41.000Z
2021-04-07T14:03:12.000Z
from no_imports import *
12.5
24
0.8
0
0
0
0
0
0
0
0
0
0
bad1baa27ef9fe52644d371d1f406ee906b6cb17
4,128
py
Python
repos/system_upgrade/common/actors/selinux/selinuxprepare/tests/component_test_selinuxprepare.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
repos/system_upgrade/common/actors/selinux/selinuxprepare/tests/component_test_selinuxprepare.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
1
2022-03-07T15:34:11.000Z
2022-03-07T15:35:15.000Z
repos/system_upgrade/common/actors/selinux/selinuxprepare/tests/component_test_selinuxprepare.py
sm00th/leapp-repository
1c171ec3a5f9260a3c6f84a9b15cad78a875ac61
[ "Apache-2.0" ]
null
null
null
import os import pytest from leapp.libraries.stdlib import api, CalledProcessError, run from leapp.models import SELinuxModule, SELinuxModules from leapp.reporting import Report from leapp.snactor.fixture import current_actor_context TEST_MODULES = [ ['400', 'mock1'], ['99', 'mock1'], ['300', 'mock1'], ...
38.579439
110
0.668362
0
0
1,388
0.33624
3,097
0.750242
0
0
1,324
0.320736
bad1ccb092d8f5ff71c5c028aa84d24c26e25a42
20,919
py
Python
run.py
BIDS-Apps/afni_proc_bids_app
b36d224b25fb023e3bffcf6a4fb96833a1ce18f4
[ "Apache-2.0" ]
1
2018-09-17T21:04:46.000Z
2018-09-17T21:04:46.000Z
run.py
BIDS-Apps/afni_proc_bids_app
b36d224b25fb023e3bffcf6a4fb96833a1ce18f4
[ "Apache-2.0" ]
8
2017-12-05T17:02:53.000Z
2022-02-17T16:04:50.000Z
run.py
BIDS-Apps/afni_proc_bids_app
b36d224b25fb023e3bffcf6a4fb96833a1ce18f4
[ "Apache-2.0" ]
3
2017-12-05T15:46:25.000Z
2018-01-15T20:00:09.000Z
#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function, unicode_literals import argparse import os import subprocess from glob import glob import pandas as pd import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt import base64 import json import numpy as np impor...
47.979358
304
0.571442
1,442
0.068933
0
0
0
0
0
0
6,395
0.305703
bad3f16dab0d3a862f98f60e8103cc7bdfb888f7
1,547
py
Python
web/app/views_admin.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
16
2017-09-05T12:26:11.000Z
2019-10-26T22:55:41.000Z
web/app/views_admin.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
1
2018-02-07T11:16:43.000Z
2018-02-07T11:16:43.000Z
web/app/views_admin.py
pierre-chaville/automlk
61386beba62f72360e1f5f8d6bcce17df653e2e8
[ "MIT" ]
8
2017-09-21T01:20:52.000Z
2021-01-21T10:03:34.000Z
from app import app from flask import render_template, request, flash from .form import * from automlk.monitor import get_heart_beeps from automlk.context import get_config, set_config @app.route('/monitor', methods=['GET']) def monitor(): # monitor workers return render_template('monitor.html', controller=ge...
35.976744
106
0.594053
0
0
0
0
1,356
0.876535
0
0
226
0.146089
bad3f37859ea848ad6a1f4639c0e685321d4ab5a
2,471
py
Python
tests/test_run.py
greyside/errand-boy
4fe625cd35f123ac5a900acde8676e5303e0521c
[ "BSD-3-Clause" ]
35
2015-01-13T15:40:37.000Z
2022-01-14T10:18:41.000Z
tests/test_run.py
greyside/errand-boy
4fe625cd35f123ac5a900acde8676e5303e0521c
[ "BSD-3-Clause" ]
8
2015-09-01T15:13:27.000Z
2020-02-05T09:10:02.000Z
tests/test_run.py
greyside/errand-boy
4fe625cd35f123ac5a900acde8676e5303e0521c
[ "BSD-3-Clause" ]
8
2015-06-28T18:26:21.000Z
2019-11-28T08:39:44.000Z
import errand_boy from errand_boy import run from errand_boy.transports import unixsocket from .base import mock, BaseTestCase class MainTestCase(BaseTestCase): def test_client(self): argv = ['/srv/errand-boy/errand_boy/run.py', 'ls', '-al'] cmd = ' '.join(argv[1:]) with self.UNIXSocketT...
36.338235
139
0.673007
2,339
0.94658
0
0
0
0
0
0
227
0.091866
bad4cf3dc6de5ce2d0d4976051b05fed4b7194fc
14,591
py
Python
components/watcher_handle.py
Druzai/Bot_Mc_discord
0ab210d201675db96fbb7ba527ab36aa67cddf90
[ "MIT" ]
2
2020-12-15T14:06:13.000Z
2021-12-09T20:25:02.000Z
components/watcher_handle.py
Druzai/Bot_Mc_discord
0ab210d201675db96fbb7ba527ab36aa67cddf90
[ "MIT" ]
21
2020-09-05T23:04:13.000Z
2022-03-28T15:31:30.000Z
components/watcher_handle.py
Druzai/Bot_Mc_discord
0ab210d201675db96fbb7ba527ab36aa67cddf90
[ "MIT" ]
1
2021-09-03T17:54:14.000Z
2021-09-03T17:54:14.000Z
import socket from contextlib import suppress from os import SEEK_END, stat from pathlib import Path from re import search, split, findall from sys import exc_info from threading import Thread from time import sleep from traceback import format_exc from colorama import Fore, Style from discord import Webhook, Requests...
51.741135
120
0.47872
2,412
0.165307
0
0
0
0
0
0
1,369
0.093825
bad8ded43ad99c5016d472583b43eb9b9f4122d5
745
py
Python
utils/update_all_playlist_descriptions.py
stephanebruckert/resident-archive
75c270faded445ac71065c1b6e5d587da925f379
[ "MIT" ]
16
2019-05-19T15:52:25.000Z
2021-06-02T10:03:30.000Z
utils/update_all_playlist_descriptions.py
stephanebruckert/resident-archive
75c270faded445ac71065c1b6e5d587da925f379
[ "MIT" ]
2
2019-06-16T10:22:40.000Z
2019-11-21T22:00:07.000Z
utils/update_all_playlist_descriptions.py
resident-archive/resident-archive-lambdas
75c270faded445ac71065c1b6e5d587da925f379
[ "MIT" ]
2
2019-08-19T12:27:05.000Z
2019-10-31T08:27:19.000Z
#!/usr/bin/python3.7 """ Set all playlist descriptions. Example result: Resident Advisor Archive www.residentarchive.com @residentarchive """ import boto3 import spotipy from pprint import pprint dynamodb = boto3.resource("dynamodb", region_name='eu-west-1') ra_playlists = dynamodb.Table('ra_playlists') scope = '...
26.607143
81
0.769128
0
0
0
0
0
0
0
0
351
0.471141
bad9b540ba82400bb66c15a6e6b7c6b46db61e1a
1,428
py
Python
msflops/reporter.py
swagshaw/mindspore-flops
364139865c47b6c80cfd0ba6cd5e6901db983144
[ "Apache-2.0" ]
2
2021-10-09T11:53:35.000Z
2022-02-02T16:07:33.000Z
msflops/reporter.py
swagshaw/mindspore-flops
364139865c47b6c80cfd0ba6cd5e6901db983144
[ "Apache-2.0" ]
null
null
null
msflops/reporter.py
swagshaw/mindspore-flops
364139865c47b6c80cfd0ba6cd5e6901db983144
[ "Apache-2.0" ]
null
null
null
import pandas as pd pd.set_option('display.width', 1000) pd.set_option('display.max_rows', 10000) pd.set_option('display.max_columns', 10000) def round_value(value, binary=False): divisor = 1024. if binary else 1000. if value // divisor**4 > 0: return str(round(value / divisor**4, 2)) + 'T' eli...
26.444444
72
0.553922
0
0
0
0
0
0
0
0
195
0.136555
badb9d6a8cc85f5d75f39dfe563d385ac41373ff
513
py
Python
sudoku_solver/region.py
RobinDeHerdt/SudokuSolver
6f5b193705600001ceaedf5260a6a16bef19b843
[ "MIT" ]
null
null
null
sudoku_solver/region.py
RobinDeHerdt/SudokuSolver
6f5b193705600001ceaedf5260a6a16bef19b843
[ "MIT" ]
null
null
null
sudoku_solver/region.py
RobinDeHerdt/SudokuSolver
6f5b193705600001ceaedf5260a6a16bef19b843
[ "MIT" ]
null
null
null
class Region(object): def __init__(self, cells): self.cells = cells def print(self): print(self.cells) def get_missing_numbers(self): missing_numbers = [] for i in range(1, 10): if i in self.get_cell_values(): continue missing_numbe...
20.52
43
0.563353
512
0.998051
0
0
0
0
0
0
0
0
badc956a17a6eddf0152abe143da26f2b0200f6c
106
py
Python
security/compatibility.py
jsilhan/django-security
fd56a6ca8ab7ad2b1e91a33ea4ecb40bb10cc42b
[ "MIT" ]
null
null
null
security/compatibility.py
jsilhan/django-security
fd56a6ca8ab7ad2b1e91a33ea4ecb40bb10cc42b
[ "MIT" ]
null
null
null
security/compatibility.py
jsilhan/django-security
fd56a6ca8ab7ad2b1e91a33ea4ecb40bb10cc42b
[ "MIT" ]
null
null
null
try: from ipware.ip import get_client_ip except ImportError: from ipware.ip2 import get_client_ip
21.2
40
0.783019
0
0
0
0
0
0
0
0
0
0
badd5923a861d26eeb620a2d2c3c1017d42267b7
736
py
Python
setup.py
smherwig/cigarbox
7d455f36df2e2d56f38fd73d3223aa77d5922e73
[ "BSD-3-Clause" ]
null
null
null
setup.py
smherwig/cigarbox
7d455f36df2e2d56f38fd73d3223aa77d5922e73
[ "BSD-3-Clause" ]
null
null
null
setup.py
smherwig/cigarbox
7d455f36df2e2d56f38fd73d3223aa77d5922e73
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages # See: # https://packaging.python.org/guids/distruting-packages-using-setuptools setup( name="cigarbox", version="0.1.0", description="utility libraries", long_description="utility libraries", long_description_content_type="text/plain", url="https://...
28.307692
73
0.654891
0
0
0
0
0
0
0
0
394
0.535326
bade9c016e086e5bd504bbf7ecd019f9ea2e8e26
322
py
Python
tests/test_client.py
debonzi/celery_crossover
2da97fe527a357d5c85dfd29b04424d08dbe9b93
[ "MIT" ]
10
2018-04-06T18:58:18.000Z
2021-11-05T19:19:03.000Z
tests/test_client.py
debonzi/celery_crossover
2da97fe527a357d5c85dfd29b04424d08dbe9b93
[ "MIT" ]
2
2018-08-15T18:15:54.000Z
2021-03-26T06:58:02.000Z
tests/test_client.py
debonzi/celery_crossover
2da97fe527a357d5c85dfd29b04424d08dbe9b93
[ "MIT" ]
3
2018-04-09T03:06:12.000Z
2019-11-08T17:35:57.000Z
# -*- coding: utf-8 -*- import types from crossover import Client from crossover import _Requester def test_client_attributes(): client = Client("redis://localhost:6379/0") assert isinstance(client, Client) assert isinstance(client.test, _Requester) assert isinstance(client.call_task, types.MethodType...
26.833333
57
0.748447
0
0
0
0
0
0
0
0
49
0.152174
bae06136e10bb2daeb4725a0ae34365494e741f2
9,707
py
Python
tests/xmrswap/common.py
tecnovert/xmrswap
ad2983a4df03184453ff680c17602497acc75a87
[ "MIT" ]
2
2020-09-21T17:33:23.000Z
2020-10-03T08:54:01.000Z
tests/xmrswap/common.py
tecnovert/xmrswap
ad2983a4df03184453ff680c17602497acc75a87
[ "MIT" ]
2
2020-10-03T09:18:48.000Z
2020-10-13T19:58:34.000Z
tests/xmrswap/common.py
tecnovert/xmrswap
ad2983a4df03184453ff680c17602497acc75a87
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2020 tecnovert # Distributed under the MIT software license, see the accompanying # file LICENSE.txt or http://www.opensource.org/licenses/mit-license.php. import os import sys import time import signal import logging import subprocess from io import Str...
35.6875
126
0.631709
0
0
0
0
0
0
0
0
2,158
0.222314
bae2914a1bdd8e77239d3c806fce04b31c71f2e9
440
py
Python
Projetos Python/pythonexercicios/des101.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
Projetos Python/pythonexercicios/des101.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
Projetos Python/pythonexercicios/des101.py
Moyses-Nunes/Projetos-Python
71ae170fb0d7be6afea18608bca630b57b9f0dff
[ "MIT" ]
null
null
null
from random import randint def sort(lista): print('SORTEANDO OS VALORES DA LISTA: ', end='') for n in range(0, 5): v = randint(1, 10) lista.append(v) print(f'Os valores são {numeros}.') print('Pronto!') def somapar(lista): s = 0 for v in lista: if v % 2 == 0: ...
19.130435
59
0.565909
0
0
0
0
0
0
0
0
122
0.276018
bae4f943156deccc9e0898af0ab959a665ca6cf6
71
py
Python
lang/py/cookbook/v2/source/cb2_18_14_exm_3.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_18_14_exm_3.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_18_14_exm_3.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
if isinstance(other, float): other = Measurement(other, 0)
23.666667
41
0.619718
0
0
0
0
0
0
0
0
0
0
bae79c652b368a3b504f884924072fb2c0c8f259
6,412
py
Python
tests/environment.py
openpermissions/api-test-suite
982aec0abc04adc92245278ebd452aa1a8a2160c
[ "Apache-2.0" ]
3
2016-05-03T20:07:51.000Z
2019-05-20T01:43:53.000Z
tests/environment.py
openpermissions/api-test-suite
982aec0abc04adc92245278ebd452aa1a8a2160c
[ "Apache-2.0" ]
8
2016-05-04T13:11:44.000Z
2016-07-20T13:01:00.000Z
tests/environment.py
openpermissions/api-test-suite
982aec0abc04adc92245278ebd452aa1a8a2160c
[ "Apache-2.0" ]
1
2019-05-20T01:43:43.000Z
2019-05-20T01:43:43.000Z
# -*- coding: utf-8 -*- # Copyright 2016 Open Permissions Platform Coalition # 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 appl...
30.533333
107
0.678571
33
0.005147
563
0.087804
789
0.123051
0
0
2,009
0.313319
bae8b374ddcb9acaae8cb0a578eb44560c94794f
2,802
py
Python
test/animate.py
colonelwatch/ESP32-fluid-simulation
407811901b45e3eadb43924e4754688f62eb6b05
[ "MIT" ]
5
2021-08-22T18:13:31.000Z
2022-02-20T22:42:38.000Z
test/animate.py
colonelwatch/ESP32-fluid-simulation
407811901b45e3eadb43924e4754688f62eb6b05
[ "MIT" ]
null
null
null
test/animate.py
colonelwatch/ESP32-fluid-simulation
407811901b45e3eadb43924e4754688f62eb6b05
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation DT = 0.01 FRAMERATE = 60 N_ROWS = 64 SECONDS = 10 def read_field_file(file_path, type): if type != 'scalar' and type != 'vector': raise ValueError('type must be scalar or vector') file_str = open(file_path, 'r...
34.170732
104
0.682013
0
0
0
0
0
0
0
0
288
0.102784
baeaf373a9c8459092cec53c9defe9e23ec03c38
9,519
py
Python
policy/RTS2_FITS_LUTs.py
tguillemLSST/eotest
c6f150984fa5dff85b9805028645bf46fc846f11
[ "BSD-3-Clause-LBNL" ]
3
2016-04-21T07:05:45.000Z
2020-08-05T08:37:37.000Z
policy/RTS2_FITS_LUTs.py
tguillemLSST/eotest
c6f150984fa5dff85b9805028645bf46fc846f11
[ "BSD-3-Clause-LBNL" ]
70
2015-03-26T09:48:53.000Z
2020-04-22T16:29:43.000Z
policy/RTS2_FITS_LUTs.py
tguillemLSST/eotest
c6f150984fa5dff85b9805028645bf46fc846f11
[ "BSD-3-Clause-LBNL" ]
5
2017-08-15T20:52:44.000Z
2022-03-25T12:54:07.000Z
RTS2_FITS_LUTs = {} RTS2_FITS_LUTs['BNL'] = { 0: { # 'MJD' : 'JD', # 'MONDIODE' : 'AMP0.CURRENT.MIN', 'MONOWL': 'MONOCH.WAVELENG', 'FILTER': 'MONOCH.FILT_1', 'CONTROLL': 'INSTRUME', 'CCDTEMP': 'CRYO.C.TEMP', 'IMGTYPE': 'TESTTYPE', ...
33.517606
62
0.460027
0
0
0
0
0
0
0
0
6,227
0.654165
baebfbf068726c3c866bdd3aa0015d86ce8b2933
850
py
Python
problem_#115.py
vivek28111992/DailyCoding
db58c069ef393f6a93fe86913660860134cb97a0
[ "MIT" ]
null
null
null
problem_#115.py
vivek28111992/DailyCoding
db58c069ef393f6a93fe86913660860134cb97a0
[ "MIT" ]
null
null
null
problem_#115.py
vivek28111992/DailyCoding
db58c069ef393f6a93fe86913660860134cb97a0
[ "MIT" ]
null
null
null
""" Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a tree consists of a node in s and all of this node's descendants. The tree s could also be considered as a subtree of itself """ def isSubTree(self, s, t): from ...
27.419355
274
0.614118
0
0
0
0
0
0
0
0
285
0.335294
baedb9f63ad29c867ce4f5a6689df6868f5d1f76
2,039
py
Python
tests/test_python_literal_action.py
madman-bob/python-argparse-utils
e3a816596d1b374825a4b8d45b56fbce4758a4f4
[ "MIT" ]
7
2019-07-05T20:17:08.000Z
2021-09-27T04:56:40.000Z
tests/test_python_literal_action.py
madman-bob/python-argparse-utils
e3a816596d1b374825a4b8d45b56fbce4758a4f4
[ "MIT" ]
2
2019-04-03T09:43:40.000Z
2020-05-05T17:47:22.000Z
tests/test_python_literal_action.py
madman-bob/python-argparse-utils
e3a816596d1b374825a4b8d45b56fbce4758a4f4
[ "MIT" ]
1
2020-12-11T10:47:49.000Z
2020-12-11T10:47:49.000Z
from argparse import ArgumentParser from contextlib import redirect_stderr from io import StringIO from re import escape as re_escape from unittest import TestCase from argparse_utils import python_literal_action class TestPythonLiteralAction(TestCase): def test_basic_python_literal_action(self): parser ...
35.155172
92
0.590486
1,822
0.893575
0
0
0
0
0
0
299
0.146641
baedce755f416709ddf9ff38c919235dbc9775f4
3,911
py
Python
emissor/processing/processing.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
null
null
null
emissor/processing/processing.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
18
2021-01-12T15:18:07.000Z
2021-03-23T12:30:57.000Z
emissor/processing/processing.py
cltl/GMRCAnnotation
cc4c7f0c9cbbce0eb6c7dee4d39d128f91b85839
[ "MIT" ]
null
null
null
import logging from joblib import Parallel, delayed from typing import Iterable from emissor.persistence import ScenarioStorage from emissor.processing.api import DataPreprocessor, ScenarioInitializer, SignalProcessor from emissor.representation.scenario import Modality logger = logging.getLogger(__name__) class Da...
38.343137
121
0.706469
2,204
0.563539
234
0.059831
0
0
0
0
347
0.088724
baee7b5f4d21c9ddb2c468e07c7ee4ee65dafa1e
466
py
Python
hgapp/powers/templatetags/power_tags.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
6
2020-10-03T12:15:05.000Z
2021-10-15T04:43:36.000Z
hgapp/powers/templatetags/power_tags.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
99
2020-06-04T17:43:56.000Z
2022-03-12T01:07:20.000Z
hgapp/powers/templatetags/power_tags.py
shadytradesman/The-Contract-Website
d8b353064f91c53ebab951dec784a0a36caba260
[ "Apache-2.0" ]
9
2020-06-06T16:39:09.000Z
2020-10-02T16:24:17.000Z
from django import template from powers.models import Power register = template.Library() @register.simple_tag def player_can_edit_power(power, player): return power.parent_power.player_can_edit(player) @register.inclusion_tag('powers/power_badge_snippet.html') def power_badge(power_full): lat...
24.526316
59
0.73176
0
0
0
0
359
0.770386
0
0
62
0.133047
baef32a63d7954d576b6da6841f0534bc30e3778
2,298
py
Python
pySDC/projects/FastWaveSlowWave/plotgmrescounter_boussinesq.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
20
2015-03-21T09:02:55.000Z
2022-02-26T20:22:21.000Z
pySDC/projects/FastWaveSlowWave/plotgmrescounter_boussinesq.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
61
2015-03-02T09:35:55.000Z
2022-03-17T12:42:48.000Z
pySDC/projects/FastWaveSlowWave/plotgmrescounter_boussinesq.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
19
2015-02-20T11:52:33.000Z
2022-02-02T10:46:27.000Z
import numpy as np from matplotlib import pyplot as plt from pylab import rcParams def plot_buoyancy(cwd=''): """ Plotting routine for the cross section of the buoyancy Args: cwd (string): current working directory """ xx = np.load(cwd + 'data/xaxis.npy') uend = np.load(cwd + 'data/s...
43.358491
114
0.638381
0
0
0
0
0
0
0
0
716
0.311575
baf0c0d13ccd7ea08a4340fe5baa52080b784567
3,297
py
Python
src/voiceRecognition/voice_recognition.py
PandaFood/M7012E-Autonom_Robot
e0bef049cc63071f060414ed0ce89001d363401a
[ "FSFAP" ]
null
null
null
src/voiceRecognition/voice_recognition.py
PandaFood/M7012E-Autonom_Robot
e0bef049cc63071f060414ed0ce89001d363401a
[ "FSFAP" ]
null
null
null
src/voiceRecognition/voice_recognition.py
PandaFood/M7012E-Autonom_Robot
e0bef049cc63071f060414ed0ce89001d363401a
[ "FSFAP" ]
null
null
null
#Requires the modules SpeechRecognition and pyaudio import speech_recognition as sr import sys sys.path.insert(1, "..") from camera.camera import Camera from widefind.widefindScript import WidefindTracker def recognizeSpeech(recognizer, microphone): #Check that recognizer and microphone arguments are appropriate t...
33.30303
135
0.695784
0
0
0
0
0
0
0
0
1,510
0.457992
baf0d493a9dadaea985eb5034b9242e9393961b4
6,432
py
Python
src/wind_power_forecasting/nodes/utils.py
vchaparro/wind-power-forecasting
81e3d361af72c30fbd195a5dd8c7bf3b4df3db66
[ "CC-BY-4.0" ]
9
2021-03-01T08:40:39.000Z
2022-03-15T07:21:25.000Z
src/wind_power_forecasting/nodes/utils.py
vchaparro/MasterThesis-wind-power-forecasting
81e3d361af72c30fbd195a5dd8c7bf3b4df3db66
[ "CC-BY-4.0" ]
null
null
null
src/wind_power_forecasting/nodes/utils.py
vchaparro/MasterThesis-wind-power-forecasting
81e3d361af72c30fbd195a5dd8c7bf3b4df3db66
[ "CC-BY-4.0" ]
3
2021-04-15T17:55:05.000Z
2022-03-17T18:12:51.000Z
import os import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_digits from sklearn.model_selection import learning_curve class BlockingTimeSeriesSplit: def __init__(self, n_splits): self.n_splits = n_splits def get_n_splits(self, X, y, groups): ...
32
86
0.640547
583
0.090641
408
0.063433
0
0
0
0
2,975
0.462531
baf1b6f63140eb9c0e03761cfc6126eff7978de4
3,458
py
Python
tools/archive_publisher.py
asiekierka/z2
d926408423dc98d71d5e7fc2fda3202c03c309de
[ "MIT" ]
1
2020-02-17T11:42:15.000Z
2020-02-17T11:42:15.000Z
tools/archive_publisher.py
asiekierka/z2
d926408423dc98d71d5e7fc2fda3202c03c309de
[ "MIT" ]
null
null
null
tools/archive_publisher.py
asiekierka/z2
d926408423dc98d71d5e7fc2fda3202c03c309de
[ "MIT" ]
null
null
null
import glob import os import shutil import sys from zipfile import ZipFile import django from internetarchive import upload sys.path.append("/var/projects/museum/") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "museum.settings") django.setup() from museum_site.models import File ZGAMES_PATH = "/var/projects/muse...
29.058824
74
0.520821
0
0
0
0
0
0
0
0
1,071
0.309717
baf2515a70e81cae3144e3396637050e7d7c8ecd
3,591
py
Python
src/extractor.py
wciesialka/sillence-extractor
34f188951b162280fa0473647ff83a21ddc3f04d
[ "MIT" ]
4
2019-10-12T04:23:43.000Z
2021-03-04T17:33:29.000Z
src/extractor.py
wciesialka/sillence-extractor
34f188951b162280fa0473647ff83a21ddc3f04d
[ "MIT" ]
4
2019-12-21T16:51:26.000Z
2022-03-11T23:55:59.000Z
src/extractor.py
wciesialka/sillence-extractor
34f188951b162280fa0473647ff83a21ddc3f04d
[ "MIT" ]
1
2021-02-06T21:39:32.000Z
2021-02-06T21:39:32.000Z
import ffmpeg import os import tempfile import re from pydub import AudioSegment import math FRAME_NAME_PATTERN = "frame-%08d.jpg" def get_filename_from_path(path): base = os.path.basename(path) return os.path.splitext(base)[0] FRACTION_PATTERN = r"(\d+)/(\d+)" FRACTION_RE = re.compile(FRACTION_PATTERN) def...
28.5
119
0.695071
0
0
0
0
0
0
0
0
165
0.045948
baf2b885d77799a6834819f80aff075d0ff7c9a4
1,159
py
Python
pwm/i2c_ads1115_pwm.py
jordibinefa/raspberrypi-codes
a043cb4e5fc69a4d2f14d7224fc5378cc6d8d093
[ "MIT" ]
null
null
null
pwm/i2c_ads1115_pwm.py
jordibinefa/raspberrypi-codes
a043cb4e5fc69a4d2f14d7224fc5378cc6d8d093
[ "MIT" ]
null
null
null
pwm/i2c_ads1115_pwm.py
jordibinefa/raspberrypi-codes
a043cb4e5fc69a4d2f14d7224fc5378cc6d8d093
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # 20180726 - wiki.binefa.cat # Based on a code from Tony DiCola (AdaFruit) # License: Public Domain import time import Adafruit_ADS1x15 import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(32, GPIO.OUT) GPIO.setup(33, GPIO.OUT) GPIO.setup(12, GPIO.OUT) GPIO.setup(35, GPIO.OUT) ...
22.72549
146
0.646247
0
0
0
0
0
0
0
0
441
0.3805
baf466052d1cb9e8f5732f162eeb87ffaa0dea2b
65
py
Python
app/db/models/__init__.py
EleutherAGI/eegi-backend
6e013a4928f1cdea4ef495e82fe641f917708cde
[ "MIT" ]
null
null
null
app/db/models/__init__.py
EleutherAGI/eegi-backend
6e013a4928f1cdea4ef495e82fe641f917708cde
[ "MIT" ]
2
2021-05-15T15:33:31.000Z
2021-05-28T15:55:21.000Z
app/db/models/__init__.py
EleutherAGI/eegi-backend
6e013a4928f1cdea4ef495e82fe641f917708cde
[ "MIT" ]
2
2021-05-15T15:08:25.000Z
2021-05-16T16:05:55.000Z
from .users import * from .summaries import * from .keys import *
21.666667
24
0.738462
0
0
0
0
0
0
0
0
0
0
baf4a552e3a9b31a37863ee85ea0bd2b5650c4cc
3,423
py
Python
remeta/util.py
m-guggenmos/remeta
d074d87cb45ae83cd0213ffbecbb3d85036f8cd2
[ "MIT" ]
1
2022-01-03T22:46:02.000Z
2022-01-03T22:46:02.000Z
remeta/util.py
m-guggenmos/remeta
d074d87cb45ae83cd0213ffbecbb3d85036f8cd2
[ "MIT" ]
null
null
null
remeta/util.py
m-guggenmos/remeta
d074d87cb45ae83cd0213ffbecbb3d85036f8cd2
[ "MIT" ]
null
null
null
import sys import warnings import numpy as np from scipy.stats import rankdata TAB = ' ' maxfloat = np.float128 if hasattr(np, 'float128') else np.longdouble class ReprMixin: def __repr__(self): return f'{self.__class__.__name__}\n' + '\n'.join([f'\t{k}: {v}' for k, v in self.__dict__.items()]) de...
29.765217
112
0.547181
149
0.043529
0
0
0
0
0
0
381
0.111306
baf58a848aabaf8670ef81bc6b8d5aced5608d67
1,372
py
Python
tonga/models/handlers/command/command_handler.py
Qotto/tonga
a6ae223ebf0fb7b317118b762102f1909435d1cf
[ "MIT" ]
1
2019-12-17T10:06:03.000Z
2019-12-17T10:06:03.000Z
tonga/models/handlers/command/command_handler.py
Qotto/tonga
a6ae223ebf0fb7b317118b762102f1909435d1cf
[ "MIT" ]
1
2019-07-04T15:22:58.000Z
2019-07-05T07:23:31.000Z
tonga/models/handlers/command/command_handler.py
Qotto/tonga
a6ae223ebf0fb7b317118b762102f1909435d1cf
[ "MIT" ]
2
2019-06-05T15:40:49.000Z
2019-12-10T09:24:23.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Qotto, 2019 """ BaseCommandHandler Module All command handler must be inherit from this class. Execute function was called by consumer on each received command. For make an transaction in execute function return 'transaction' as string after end transaction other...
24.945455
119
0.673469
847
0.617347
0
0
242
0.176385
511
0.372449
953
0.694606
baf6bab456465922d740d1791db8aca93417eb58
1,373
py
Python
neighbourhoodapp/urls.py
marknesh/neighbourhood-watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
null
null
null
neighbourhoodapp/urls.py
marknesh/neighbourhood-watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
10
2020-03-24T10:47:53.000Z
2021-04-08T19:51:44.000Z
neighbourhoodapp/urls.py
marknesh/Neighbourhood-Watch
57e36c800b9e4898be9f4949c80c902f7627699a
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path,re_path from . import views from rest_framework.authtoken.views import obtain_auth_token from rest_framework_simplejwt import views as jwt_views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', views....
44.290323
102
0.705754
0
0
0
0
0
0
0
0
403
0.293518
baf6f7cf8752fa09d78da501f3bc6b60b55ed4dd
1,517
py
Python
2015/day8/day8.py
naitmare01/Adventofcode
34f2832fa7a18b76cf9827890632740c6f60679c
[ "MIT" ]
null
null
null
2015/day8/day8.py
naitmare01/Adventofcode
34f2832fa7a18b76cf9827890632740c6f60679c
[ "MIT" ]
null
null
null
2015/day8/day8.py
naitmare01/Adventofcode
34f2832fa7a18b76cf9827890632740c6f60679c
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- import argparse import codecs def arguments(): # Handle command line arguments parser = argparse.ArgumentParser(description='Adventofcode.') parser.add_argument('-f', '--file', required=True) args = parser.parse_args() return args class Matchsticks: ...
29.173077
120
0.667765
629
0.414634
0
0
0
0
0
0
155
0.102175
baf7b7cfc3a32ed71b8ccf99a03a13c2d80fa7cf
155
py
Python
r3det/ops/polygon_geo/polygon_geo.py
SJTU-Thinklab-Det/r3det-pytorch
aed1c26ecfad7ac518d24f0f4d537e1926a7e8bd
[ "Apache-2.0" ]
42
2021-12-09T10:02:35.000Z
2022-03-30T08:40:20.000Z
r3det/ops/polygon_geo/polygon_geo.py
SJTU-Thinklab-Det/r3det-pytorch
aed1c26ecfad7ac518d24f0f4d537e1926a7e8bd
[ "Apache-2.0" ]
13
2021-12-14T01:47:32.000Z
2022-03-30T08:01:17.000Z
r3det/ops/polygon_geo/polygon_geo.py
SJTU-Thinklab-Det/r3det-pytorch
aed1c26ecfad7ac518d24f0f4d537e1926a7e8bd
[ "Apache-2.0" ]
5
2021-12-14T09:57:29.000Z
2022-03-03T12:25:54.000Z
from . import polygon_geo_cpu def polygon_iou(poly1, poly2): """Compute the IoU of polygons.""" return polygon_geo_cpu.polygon_iou(poly1, poly2)
22.142857
52
0.735484
0
0
0
0
0
0
0
0
34
0.219355
baf94ecbeec1c5fbd0864b4aaf7b1fd72f812b4e
536
py
Python
src/EstudoPOOClasses/classesagreg.py
maberf/python
0d36f1586c5f52081c2b27d42a1d37cee13116b0
[ "MIT" ]
null
null
null
src/EstudoPOOClasses/classesagreg.py
maberf/python
0d36f1586c5f52081c2b27d42a1d37cee13116b0
[ "MIT" ]
null
null
null
src/EstudoPOOClasses/classesagreg.py
maberf/python
0d36f1586c5f52081c2b27d42a1d37cee13116b0
[ "MIT" ]
null
null
null
class CarrinhodeCompras: def __init__(self): self.produtos = [] #agregação na lista def inserir_produtos(self, produto): self.produtos.append(produto) def lista_produto(self): for produto in self.produtos: print(produto.nome, produto.preco) def soma_total(self): ...
23.304348
46
0.613806
534
0.992565
0
0
0
0
0
0
21
0.039033
baf9dc87b1cbf4d1aa50d41f69704f39a0dd39bd
2,632
py
Python
adonai/user/crud.py
Egnod/adonai
b365d81c826fd7b626c9145154ee0136ea73fac1
[ "MIT" ]
6
2020-01-20T20:02:09.000Z
2020-02-24T08:40:23.000Z
adonai/user/crud.py
Egnod/adonai
b365d81c826fd7b626c9145154ee0136ea73fac1
[ "MIT" ]
null
null
null
adonai/user/crud.py
Egnod/adonai
b365d81c826fd7b626c9145154ee0136ea73fac1
[ "MIT" ]
null
null
null
from ..app.crud import CRUDBase from .models import ( User, UserGroup, UserGroupMember, UserGroupPermission, UserPermission, ) class UserCRUD(CRUDBase): model = User @classmethod def get_by_uuid(Cls, session, uuid: str): return User.query.filter_by(uuid=uuid).first() @cla...
26.059406
87
0.636018
2,470
0.93845
0
0
2,112
0.802432
0
0
0
0
bafacff0ec0ab11de0b328ed7de05110681cf6f5
3,392
py
Python
src/yellowdog_client/model/alibaba_instances_compute_source.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/model/alibaba_instances_compute_source.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
src/yellowdog_client/model/alibaba_instances_compute_source.py
yellowdog/yellowdog-sdk-python-public
da69a7d6e45c92933e34fefcaef8b5d98dcd6036
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass, field from datetime import datetime from typing import Dict, Optional, Set from .alibaba_compute_source import AlibabaComputeSource from .alibaba_instance_charge_type import AlibabaInstanceChargeType from .alibaba_spot_strategy import AlibabaSpotStrategy from .compute_source_exhausti...
54.709677
140
0.760613
2,901
0.855248
0
0
2,912
0.858491
0
0
1,545
0.455483
bafaf5113a885d4bb1ff67fe5b1ab222bec78783
11,440
py
Python
CS50x 2021/Final Project/application.py
moqdm/CS50x
7d9a4b4cbe96516383727dc70a1a274f2beb2d28
[ "MIT" ]
7
2021-10-05T16:06:09.000Z
2022-03-14T07:02:33.000Z
CS50x 2021/Final Project/application.py
moqdm/CS50x
7d9a4b4cbe96516383727dc70a1a274f2beb2d28
[ "MIT" ]
null
null
null
CS50x 2021/Final Project/application.py
moqdm/CS50x
7d9a4b4cbe96516383727dc70a1a274f2beb2d28
[ "MIT" ]
7
2021-10-10T12:35:32.000Z
2021-12-30T16:03:51.000Z
from flask import Flask, render_template, request, redirect, url_for, session from flask_session import Session from tempfile import mkdtemp from cs50 import SQL from random import randint from werkzeug.security import check_password_hash, generate_password_hash from functions import get_coms_count, get_pages_count im...
35.974843
139
0.664073
0
0
0
0
10,414
0.910315
0
0
3,882
0.339336
bafb62d0072c67956cf9e813dc026b729c141c6d
826
py
Python
sls/services/consthub.py
jayvdb/sls
c788815898b3665cfe5b316b7780190cb9bdacb9
[ "Apache-2.0" ]
null
null
null
sls/services/consthub.py
jayvdb/sls
c788815898b3665cfe5b316b7780190cb9bdacb9
[ "Apache-2.0" ]
null
null
null
sls/services/consthub.py
jayvdb/sls
c788815898b3665cfe5b316b7780190cb9bdacb9
[ "Apache-2.0" ]
null
null
null
import json from asyncy.hub.sdk.db.Service import Service from playhouse.shortcuts import dict_to_model class ConstServiceHub(): """ A constant service hub class that allows serving a pre-defined set of fixed services. """ def __init__(self, services): self.services = services @cla...
22.944444
73
0.615012
717
0.868039
0
0
256
0.309927
0
0
125
0.151332
bafc5b05c30d729aa0c87763ff7a80e4e8fdb5b7
721
py
Python
common/xrd-ui-tests-qautomate/common_lib/component_ss_version.py
nordic-institute/X-Road-tests
e030661a0ad8ceab74dd8122b751e88025a3474a
[ "MIT" ]
1
2019-02-09T00:16:54.000Z
2019-02-09T00:16:54.000Z
common/xrd-ui-tests-qautomate/common_lib/component_ss_version.py
nordic-institute/X-Road-tests
e030661a0ad8ceab74dd8122b751e88025a3474a
[ "MIT" ]
1
2018-06-06T08:33:32.000Z
2018-06-06T08:33:32.000Z
common/xrd-ui-tests-qautomate/common_lib/component_ss_version.py
nordic-institute/X-Road-tests
e030661a0ad8ceab74dd8122b751e88025a3474a
[ "MIT" ]
3
2018-07-09T08:51:00.000Z
2020-07-23T18:40:24.000Z
# -*- coding: utf-8 -*- from QAutoLibrary.extension import TESTDATA from selenium.webdriver.common.by import By from QAutoLibrary.QAutoSelenium import * from time import sleep from pagemodel.ss_version import Ss_version class Component_ss_version(CommonUtils): """ Components common to security server version v...
26.703704
64
0.690707
499
0.692094
0
0
0
0
0
0
321
0.445215
bafc9badab6fa8688b6c75518218495c76855035
6,938
py
Python
backend/tests/baserow/contrib/database/db/test_db_schema.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/db/test_db_schema.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
backend/tests/baserow/contrib/database/db/test_db_schema.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
null
null
null
import pytest from django.db import connection, transaction, ProgrammingError from django.db.backends.base.schema import BaseDatabaseSchemaEditor from django.db.backends.dummy.base import DatabaseWrapper as DummyDatabaseWrapper from django.db.backends.postgresql.schema import ( DatabaseSchemaEditor as PostgresqlDat...
41.54491
88
0.72211
0
0
0
0
6,252
0.901124
0
0
2,233
0.321851
bafe0eef5fd0a69ec48227d8972b202fbd2f7b99
14,149
py
Python
line.py
vhgnguyen/Lane-detection-on-CARLA
f64ec7136509c69b47a2666f6eacae09226baadd
[ "MIT" ]
null
null
null
line.py
vhgnguyen/Lane-detection-on-CARLA
f64ec7136509c69b47a2666f6eacae09226baadd
[ "MIT" ]
null
null
null
line.py
vhgnguyen/Lane-detection-on-CARLA
f64ec7136509c69b47a2666f6eacae09226baadd
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy as np import math import cv2 import config as cf class Line(): def __init__(self, side, img_shape, polyDelta=cf.POLYFIT_MARGIN, nWindow=cf.N_WINDOWS, windowMargin=cf.WINDOW_MARGIN, reThresh=cf.RECENTER_WINDOW_THRESH): # side identifier self.side = s...
41.614706
131
0.574246
14,066
0.994134
0
0
0
0
0
0
2,322
0.164111
bafe54956d92542ae97bc15168154b2050039241
485
py
Python
mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py
albertz/music-player
d23586f5bf657cbaea8147223be7814d117ae73d
[ "BSD-2-Clause" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Quartz/PyObjCTest/test_PDFAnnotation.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from PyObjCTools.TestSupport import * from Quartz.PDFKit import * class TestPDFAnnotation (TestCase): def testMethods(self): self.assertResultIsBOOL(PDFAnnotation.shouldDisplay) self.assertArgIsBOOL(PDFAnnotation.setShouldDisplay_, 0) self.assertResultIsBOOL(PDFAnnotation.shouldPrint) ...
32.333333
66
0.762887
377
0.77732
0
0
0
0
0
0
10
0.020619
bafea4f06819b042c24926f389fbaced3bd0060b
1,585
py
Python
proxy/selenium_chrome_auth.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
null
null
null
proxy/selenium_chrome_auth.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
3
2021-09-08T01:11:16.000Z
2022-03-02T15:14:03.000Z
proxy/selenium_chrome_auth.py
silianpan/seal-spider-demo
23bf013d08f9edaf23823bc3787f579bccd0ec3a
[ "Apache-2.0" ]
1
2019-08-04T09:57:29.000Z
2019-08-04T09:57:29.000Z
from selenium import webdriver from selenium.webdriver.chrome.options import Options import zipfile ip = '127.0.0.1' port = 9743 username = 'foo' password = 'bar' manifest_json = """ { "version": "1.0.0", "manifest_version": 2, "name": "Chrome Proxy", "permissions": [ "proxy", "tabs", ...
22.971014
76
0.585489
0
0
0
0
0
0
0
0
1,069
0.674448
baff1d955bc292ecbb9120a30bb080c42324de1c
3,925
py
Python
umbrella/api/middleware/context.py
xww/umbrella
c54ed576477602b5bc1ecfe23ae1f59cc46a76e5
[ "Apache-2.0" ]
null
null
null
umbrella/api/middleware/context.py
xww/umbrella
c54ed576477602b5bc1ecfe23ae1f59cc46a76e5
[ "Apache-2.0" ]
null
null
null
umbrella/api/middleware/context.py
xww/umbrella
c54ed576477602b5bc1ecfe23ae1f59cc46a76e5
[ "Apache-2.0" ]
null
null
null
''' Created on 2012-10-23 @author: hzzhoushaoyu ''' import webob.exc import json from umbrella.common import wsgi import umbrella.common.log as logging from umbrella.common import cfg import umbrella.context LOG = logging.getLogger(__name__) CONF = cfg.CONF context_opts = [ cfg.BoolOpt('owner_is_tenant', defau...
35.681818
79
0.611975
3,445
0.877707
0
0
0
0
0
0
1,270
0.323567
2401ef1bb0cb741cbeac82b95a7eba1326a957b7
1,813
py
Python
backend/ibutsu_server/models/group.py
john-dupuy/ibutsu-server
ae380fc7a72a4898075291bac8fdb86952bfd06a
[ "MIT" ]
null
null
null
backend/ibutsu_server/models/group.py
john-dupuy/ibutsu-server
ae380fc7a72a4898075291bac8fdb86952bfd06a
[ "MIT" ]
null
null
null
backend/ibutsu_server/models/group.py
john-dupuy/ibutsu-server
ae380fc7a72a4898075291bac8fdb86952bfd06a
[ "MIT" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from ibutsu_server import util from ibutsu_server.models.base_model_ import Model class Group(Model): """NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). Do not edit the class manually. """ def __init__(...
21.329412
96
0.552675
1,672
0.922228
0
0
1,083
0.597352
0
0
1,081
0.596249
2402994378b5cdd209243e1890f514a6977488f5
112
py
Python
_draft/x_7_2-b.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
_draft/x_7_2-b.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
1
2021-11-13T08:03:04.000Z
2021-11-13T08:03:04.000Z
_draft/x_7_2-b.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
# x_7_2 # # import re pattern = 'い' str = input('ひらがなの「い」のつく言葉を入力してください:') print(re.sub(pattern, 'レヽ', str))
10.181818
38
0.633929
0
0
0
0
0
0
0
0
91
0.561728
2403ee55fdd17cda62dc58821f423f42d3ddfd3d
1,172
py
Python
clipper_admin/keras_deployment.py
ivrt/clipper
66d0cc345e96323447a8ca575430715cb1d2ac93
[ "Apache-2.0" ]
null
null
null
clipper_admin/keras_deployment.py
ivrt/clipper
66d0cc345e96323447a8ca575430715cb1d2ac93
[ "Apache-2.0" ]
null
null
null
clipper_admin/keras_deployment.py
ivrt/clipper
66d0cc345e96323447a8ca575430715cb1d2ac93
[ "Apache-2.0" ]
null
null
null
from clipper_admin import ClipperConnection, DockerContainerManager from clipper_admin.deployers import keras as keras_deployer import keras clipper_conn = ClipperConnection(DockerContainerManager()) clipper_conn.connect() # if cluster exists inpt = keras.layers.Input(shape=(1,)) out = keras.layers.multiply([inpt, i...
33.485714
113
0.708191
0
0
0
0
0
0
0
0
218
0.186007
24075c23fd6b2621d98a964f8bc89e606781c687
8,017
py
Python
Project1-MinNE-python/src/interface/cmd.py
MrCaiDev/uestc-CNTProject
ea22325f749b48179a294e73390608491618683a
[ "MIT" ]
1
2022-03-06T04:21:26.000Z
2022-03-06T04:21:26.000Z
Project1-MinNE-python/src/interface/cmd.py
MrCaiDev/cnt
ea22325f749b48179a294e73390608491618683a
[ "MIT" ]
null
null
null
Project1-MinNE-python/src/interface/cmd.py
MrCaiDev/cnt
ea22325f749b48179a294e73390608491618683a
[ "MIT" ]
1
2022-03-22T01:00:17.000Z
2022-03-22T01:00:17.000Z
from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from utils.io import get_host_config from utils.params import MessageType, Mode, Topology class CommandUI(QMainWindow): """控制台主界面。""" def __init__(self) -> None: super().__init__() self.__mode = Mode.UNICAST ...
35.162281
83
0.627292
8,460
0.97962
0
0
327
0.037865
0
0
1,332
0.154238
240941f8a40679f34211679593aa3ebe92d612d4
1,166
py
Python
app/api/scans.py
jchrisfarris/antiope-scorecards
82a1e228f4bd23f756c1dec8c0582fcde98de564
[ "Apache-2.0" ]
1
2020-09-23T21:40:16.000Z
2020-09-23T21:40:16.000Z
app/api/scans.py
jchrisfarris/antiope-scorecards
82a1e228f4bd23f756c1dec8c0582fcde98de564
[ "Apache-2.0" ]
null
null
null
app/api/scans.py
jchrisfarris/antiope-scorecards
82a1e228f4bd23f756c1dec8c0582fcde98de564
[ "Apache-2.0" ]
3
2020-07-11T19:18:12.000Z
2021-08-14T17:43:06.000Z
""" -file concerned with implementation of GET /scans -should return as many scans as possible starting from newest -return size must be capped at 6mb """ from boto3.dynamodb.conditions import Key from lib.dynamodb import scans_table from lib.lambda_decorator.decorator import api_decorator, format_result BYTE_LIMIT =...
29.15
79
0.73928
0
0
0
0
236
0.202401
0
0
225
0.192967
24097dde5cb65efb85c75250fd77c8b47f58abf5
1,119
py
Python
sparrow_cloud/access_control/access_verify.py
waro163/sparrow_cloud
16560fb93e1ba618607acf0c7ea40440708938ed
[ "MIT" ]
15
2019-09-24T09:32:32.000Z
2021-12-30T08:07:41.000Z
sparrow_cloud/access_control/access_verify.py
waro163/sparrow_cloud
16560fb93e1ba618607acf0c7ea40440708938ed
[ "MIT" ]
13
2019-09-06T03:20:02.000Z
2021-09-27T03:37:25.000Z
sparrow_cloud/access_control/access_verify.py
waro163/sparrow_cloud
16560fb93e1ba618607acf0c7ea40440708938ed
[ "MIT" ]
17
2019-09-02T06:31:05.000Z
2021-10-08T04:23:23.000Z
import logging from sparrow_cloud.restclient import rest_client from sparrow_cloud.restclient.exception import HTTPException from sparrow_cloud.utils.get_cm_value import get_cm_value logger = logging.getLogger(__name__) def access_verify(user_id, app_name, resource_code): """ access control verify """ ...
37.3
119
0.663092
0
0
0
0
0
0
0
0
190
0.169794
2409c8a96b204d611172fad52536ebfb9f4ebe27
29,735
py
Python
oldEngine.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
oldEngine.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
oldEngine.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
""" Open Test Arbatrage System USE AT YOUR OWN RISK! MULTIPLE EXCHANGE ACCEPTANCE ALLOWS 'USERS' TO CHOOSE THEIR OWN STRATEGY AS WELL AS TRADING COINS PROVIDES DETAILED INFORMATION ABOUT EXCHANGES & PLATFORMS ALLOWS USERS TO CONNECT IN A FRIENDLY ENVIRONMENT Author: ~Skrypt~ """ import sys import os impor...
54.360146
185
0.553422
0
0
0
0
0
0
0
0
10,627
0.35739
240a3bdc1d5c63b91d07d527be155ad771e6c02e
7,097
py
Python
backend/fms_core/services/container.py
c3g/freezeman
bc4b6c8a2876e888ce41b7d14127cc22bc2b2143
[ "W3C" ]
2
2021-07-31T13:20:08.000Z
2021-09-28T13:18:55.000Z
backend/fms_core/services/container.py
c3g/freezeman
bc4b6c8a2876e888ce41b7d14127cc22bc2b2143
[ "W3C" ]
71
2021-03-12T22:08:19.000Z
2022-03-25T15:24:40.000Z
backend/fms_core/services/container.py
c3g/freezeman
bc4b6c8a2876e888ce41b7d14127cc22bc2b2143
[ "W3C" ]
null
null
null
from datetime import datetime from django.core.exceptions import ValidationError from fms_core.models import Container from ..containers import CONTAINER_KIND_SPECS def get_container(barcode): container = None errors = [] warnings = [] if barcode: try: container = Container.object...
45.203822
207
0.672397
0
0
0
0
0
0
0
0
1,911
0.269269
240a83d7ee6d8a5009d4cbc9cb32f8bc334441c1
32,053
py
Python
tests/test_dispatcher.py
electronhead/whendo
27112834be0935b5b0f7ade4316e35532532e047
[ "MIT" ]
1
2022-03-04T09:25:13.000Z
2022-03-04T09:25:13.000Z
tests/test_dispatcher.py
electronhead/whendo
27112834be0935b5b0f7ade4316e35532532e047
[ "MIT" ]
null
null
null
tests/test_dispatcher.py
electronhead/whendo
27112834be0935b5b0f7ade4316e35532532e047
[ "MIT" ]
null
null
null
import pytest import time from datetime import timedelta from typing import Optional, Dict, Any from whendo.core.util import Rez, SystemInfo, Now, KeyTagMode, DateTime, Rez from whendo.core.action import Action from whendo.core.server import Server from whendo.core.actions.list_action import ( UntilFailure, All...
30.939189
95
0.679063
2,632
0.082114
0
0
977
0.030481
0
0
7,049
0.219917
240a907bd2e16d0aa3aa271652ece1375536949a
3,298
py
Python
task_09/task.py
prashnts/advent-of-code--2021
315fcf470c8c1260057aeafa6d2c42f4c0f74f3f
[ "MIT" ]
null
null
null
task_09/task.py
prashnts/advent-of-code--2021
315fcf470c8c1260057aeafa6d2c42f4c0f74f3f
[ "MIT" ]
null
null
null
task_09/task.py
prashnts/advent-of-code--2021
315fcf470c8c1260057aeafa6d2c42f4c0f74f3f
[ "MIT" ]
null
null
null
import os from functools import reduce __here__ = os.path.dirname(__file__) TEST_DATA = '''\ 2199943210 3987894921 9856789892 8767896789 9899965678\ ''' def gen_neighbors(array, x, y): '''Generated points in north, south, east, and west directions. On edges only valid points are generated. ''' dir...
25.175573
97
0.593087
0
0
884
0.268041
0
0
0
0
1,048
0.317768
240b42fee6717a7b90d0b1207b8b05b2c8fb6f5b
2,046
py
Python
setup.py
dotpy/step
03a5fa3e2ef35675b6729a00a4752b0c703ee243
[ "BSD-3-Clause" ]
13
2016-06-29T21:19:45.000Z
2021-12-26T20:36:05.000Z
setup.py
dotpy/step
03a5fa3e2ef35675b6729a00a4752b0c703ee243
[ "BSD-3-Clause" ]
3
2015-03-19T22:21:27.000Z
2019-10-10T23:03:45.000Z
setup.py
dotpy/step
03a5fa3e2ef35675b6729a00a4752b0c703ee243
[ "BSD-3-Clause" ]
3
2018-03-27T14:27:31.000Z
2020-08-07T08:23:08.000Z
#!/usr/bin/env python """ This is the installation script of the step module, a light and fast template engine. You can run it by typing: python setup.py install You can also run the test suite by running: python setup.py test """ import sys from distutils.core import setup from step.tests import TestCommand...
37.888889
111
0.583578
0
0
0
0
0
0
0
0
1,094
0.534702
240bbb7d490c0bb706b81afc89be633224723a57
335
py
Python
webapp/route/__init__.py
fainle/python_flask_demo
a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2
[ "MIT" ]
null
null
null
webapp/route/__init__.py
fainle/python_flask_demo
a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2
[ "MIT" ]
null
null
null
webapp/route/__init__.py
fainle/python_flask_demo
a2c81b2af4c3dcc09336e04647f4b0db7ca84fc2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import functools from flask import url_for, redirect, session def login_required(view): @functools.wraps(view) def _(**kwargs): if session.get('admin_name') is None: return redirect(url_for('admin_bp.admin_login')) return view(**kwargs...
22.333333
60
0.647761
0
0
0
0
181
0.540299
0
0
78
0.232836
240bde0f8131918a3473ed043729e630fcb5c13f
104
py
Python
kubed/client/__init__.py
joeblackwaslike/kubed
1ee62e269a53d70177330961dc52b9fe4e84b90d
[ "Apache-2.0" ]
null
null
null
kubed/client/__init__.py
joeblackwaslike/kubed
1ee62e269a53d70177330961dc52b9fe4e84b90d
[ "Apache-2.0" ]
null
null
null
kubed/client/__init__.py
joeblackwaslike/kubed
1ee62e269a53d70177330961dc52b9fe4e84b90d
[ "Apache-2.0" ]
null
null
null
from . import config, client, context from .client import APIClient from .context import ClientContext
20.8
37
0.807692
0
0
0
0
0
0
0
0
0
0
240c0c5d000922b8465d3d55022a14bc72649051
158
py
Python
Fun Excercise/reverse file content.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
32
2020-04-05T08:29:40.000Z
2022-01-08T03:10:00.000Z
Fun Excercise/reverse file content.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2021-06-02T04:09:11.000Z
2022-03-02T14:55:03.000Z
Fun Excercise/reverse file content.py
NirmalSilwal/Python-
6d23112db8366360f0b79bdbf21252575e8eab3e
[ "MIT" ]
3
2020-07-13T05:44:04.000Z
2021-03-03T07:07:58.000Z
ip = open("input.txt","r") lst = ip.readlines() lst.reverse() lst.insert(1,'\n') ip.close() op = open("output.txt",'w') op.write("".join(lst)) op.close()
12.153846
27
0.594937
0
0
0
0
0
0
0
0
35
0.221519
2410cb663e809f3a2cfff7eb2a2ab513d0a3a843
3,006
py
Python
oops_fhir/r4/code_system/effect_estimate_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/effect_estimate_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/effect_estimate_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["EffectEstimateType"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class EffectEstimateType: """ EffectEstimateType Whether the effect estimate...
24.639344
95
0.600798
2,774
0.922821
0
0
0
0
0
0
1,888
0.628077
24149d63fd46dabd5d16d77a5fa8be1e85e8bdf1
1,361
py
Python
about/tests/test_views.py
IMegaMaan/Django-project
7ebe62aacf972410299f92183c6c9e23cd837fe7
[ "BSD-3-Clause" ]
null
null
null
about/tests/test_views.py
IMegaMaan/Django-project
7ebe62aacf972410299f92183c6c9e23cd837fe7
[ "BSD-3-Clause" ]
null
null
null
about/tests/test_views.py
IMegaMaan/Django-project
7ebe62aacf972410299f92183c6c9e23cd837fe7
[ "BSD-3-Clause" ]
null
null
null
from django.test import TestCase, Client from django.urls import reverse class TaskAboutViewsTests(TestCase): def setUp(self): self.guest_client = Client() @classmethod def setUpClass(cls): super().setUpClass() cls.about_views = { 'about:author': 'author.html', ...
34.897436
75
0.588538
1,455
0.950359
0
0
187
0.122142
0
0
477
0.311561
2415ff143543c2ce9970a39f3d80f9c3542308d9
1,937
py
Python
library/verification/token.py
LongmaoTeamTf/audio_aligner_app
899c27a6ce5b74ec728d70acaa2a9861f8fd7b92
[ "MIT" ]
5
2020-01-19T07:27:31.000Z
2021-03-31T05:56:07.000Z
library/verification/token.py
LongmaoTeamTf/audio_aligner_app
899c27a6ce5b74ec728d70acaa2a9861f8fd7b92
[ "MIT" ]
3
2021-06-02T00:55:11.000Z
2022-03-12T12:11:08.000Z
library/verification/token.py
LongmaoTeamTf/audio_aligner_app
899c27a6ce5b74ec728d70acaa2a9861f8fd7b92
[ "MIT" ]
2
2020-03-17T07:10:48.000Z
2022-01-12T10:13:11.000Z
""" user token @version: v1.0.1 @Company: Thefair @Author: Wang Yao @Date: 2019-11-17 15:21:11 @LastEditors: Wang Yao @LastEditTime: 2019-11-17 21:17:19 """ from functools import wraps from flask import request from itsdangerous import TimedJSONWebSignatureSerializer as Serializer, BadData from library.response.tfexcep...
24.518987
79
0.593702
1,239
0.625442
0
0
209
0.105502
0
0
652
0.329127
2418d43fc6f298cdbf67fbaa5c14936b1a133fb3
178
py
Python
paa191t1/tests/pph/test_pph_median.py
dmmoura/PAA-2021
435005f6494ece76f03807fb524e0d4a3e1d7222
[ "Apache-2.0" ]
null
null
null
paa191t1/tests/pph/test_pph_median.py
dmmoura/PAA-2021
435005f6494ece76f03807fb524e0d4a3e1d7222
[ "Apache-2.0" ]
null
null
null
paa191t1/tests/pph/test_pph_median.py
dmmoura/PAA-2021
435005f6494ece76f03807fb524e0d4a3e1d7222
[ "Apache-2.0" ]
null
null
null
from paa191t1.pph.pph_median import pph_median from paa191t1.tests.pph import TestPPHBase class TestPPHMedian(TestPPHBase): def setUp(self): self.pph = pph_median
19.777778
46
0.764045
85
0.477528
0
0
0
0
0
0
0
0
2418e136a99b83121805fd21e003e44836c184cf
27,910
py
Python
service/artifacts_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
service/artifacts_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
2
2021-03-26T00:29:32.000Z
2021-04-30T21:29:33.000Z
service/artifacts_unittest.py
khromiumos/chromiumos-chromite
a42a85481cdd9d635dc40a04585e427f89f3bb3f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Artifacts service tests.""" from __future__ import print_function import json import os import shutil import mock from chro...
39.199438
80
0.691903
26,949
0.965568
0
0
0
0
0
0
8,016
0.287209
2418e436d32c1b1dc432e02916a5cc98bd2b5e5f
8,044
py
Python
src/lfw.py
LiuNull/dynamic_face_recognition
85b057e64a088fb6def28a3650218e8d6dc069cb
[ "MIT" ]
null
null
null
src/lfw.py
LiuNull/dynamic_face_recognition
85b057e64a088fb6def28a3650218e8d6dc069cb
[ "MIT" ]
null
null
null
src/lfw.py
LiuNull/dynamic_face_recognition
85b057e64a088fb6def28a3650218e8d6dc069cb
[ "MIT" ]
null
null
null
"""Helper for evaluation on the Labeled Faces in the Wild dataset """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software withou...
47.597633
141
0.603555
0
0
0
0
0
0
0
0
2,962
0.367768