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
0168c916329d1339e42f8c2b7773aa690c463962
3,562
py
Python
smdebug/core/logger.py
jsspric/sagemaker-debugger
d7010869e19ae49c4f371935f27afcb585195f79
[ "Apache-2.0" ]
133
2019-12-03T18:56:27.000Z
2022-03-18T19:54:49.000Z
smdebug/core/logger.py
jsspric/sagemaker-debugger
d7010869e19ae49c4f371935f27afcb585195f79
[ "Apache-2.0" ]
384
2019-12-04T03:04:14.000Z
2022-03-31T20:42:48.000Z
smdebug/core/logger.py
jsspric/sagemaker-debugger
d7010869e19ae49c4f371935f27afcb585195f79
[ "Apache-2.0" ]
64
2019-12-05T20:39:51.000Z
2022-03-25T13:30:54.000Z
# Standard Library import logging import os import socket import sys from collections import defaultdict # First Party from smdebug.core.config_constants import LOG_DUPLICATION_THRESHOLD _logger_initialized = False class MaxLevelFilter(logging.Filter): """Filters (lets through) all messages with level < LEVEL""...
31.803571
91
0.635598
690
0.193711
0
0
0
0
0
0
748
0.209994
0169e02b946dc8b1102bf51029d535f9fe1e7d2d
15,883
py
Python
build/lib/scrapper/settings.py
guilhermeKodama/Closetinn
44d6792cfb0db9cce56db83f2e8c4b8777530f68
[ "MIT" ]
null
null
null
build/lib/scrapper/settings.py
guilhermeKodama/Closetinn
44d6792cfb0db9cce56db83f2e8c4b8777530f68
[ "MIT" ]
null
null
null
build/lib/scrapper/settings.py
guilhermeKodama/Closetinn
44d6792cfb0db9cce56db83f2e8c4b8777530f68
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Scrapy settings for scrapper project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/lates...
43.634615
109
0.661021
0
0
0
0
0
0
0
0
12,761
0.798761
016a2008401fbef8b48e430f13646f4e48a823a9
1,292
py
Python
datacube_classification/models.py
brazil-data-cube/datacube-classification
727c045c58c06fd87cb26d408201e34b9e471e9c
[ "MIT" ]
2
2021-04-20T03:26:50.000Z
2021-04-20T21:20:27.000Z
datacube_classification/models.py
brazil-data-cube/datacube-classification
727c045c58c06fd87cb26d408201e34b9e471e9c
[ "MIT" ]
2
2021-04-20T03:14:09.000Z
2021-04-20T03:14:53.000Z
datacube_classification/models.py
brazil-data-cube/datacube-classification
727c045c58c06fd87cb26d408201e34b9e471e9c
[ "MIT" ]
null
null
null
# # This file is part of datacube-classification # Copyright (C) 2021 INPE. # # datacube-classification Library is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """classification models module""" import pandas as pd def train_sklear...
35.888889
120
0.745356
0
0
0
0
0
0
0
0
1,020
0.789474
016cf65bfe0fb46c06e740cb0bad0c906040020a
421
py
Python
test/test.py
backav/python-heartbeat-maker
f6b2f914ec2dd6e104f8ce746fdc422f97f3c8cf
[ "MIT" ]
null
null
null
test/test.py
backav/python-heartbeat-maker
f6b2f914ec2dd6e104f8ce746fdc422f97f3c8cf
[ "MIT" ]
null
null
null
test/test.py
backav/python-heartbeat-maker
f6b2f914ec2dd6e104f8ce746fdc422f97f3c8cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from redis import StrictRedis from HeartbeatMaker import HeartbeatMaker import arrow def test(it): print('%s:%s:心跳' % (arrow.now(), it)) maker = HeartbeatMaker('redis://localhost:6379/0', 'test-beat', test) # maker.clean() # maker.beat_it('bac', 6,'bac-par') # mak...
19.136364
69
0.657957
0
0
0
0
0
0
0
0
227
0.534118
016d5efe3c27993b8afc080b9aed799c0438da3c
2,304
py
Python
main.py
RushanNotOfficial/adminweapons
d9738fb0302b64ef7d54b22b14e913d1ff7de79e
[ "Apache-2.0" ]
1
2021-09-17T17:13:10.000Z
2021-09-17T17:13:10.000Z
main.py
RushanNotOfficial/adminweapons
d9738fb0302b64ef7d54b22b14e913d1ff7de79e
[ "Apache-2.0" ]
null
null
null
main.py
RushanNotOfficial/adminweapons
d9738fb0302b64ef7d54b22b14e913d1ff7de79e
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 RushanNotOfficial#1146. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
53.581395
150
0.601997
0
0
0
0
722
0.313368
572
0.248264
1,471
0.638455
016d6e7e508bdd3f4bc8579c90a03098e462920c
1,076
py
Python
src/classes/widgets/engine_gauge.py
bergthor13/VehicleGPS
643413b3cb910102689081d692223a4a03fccea4
[ "MIT" ]
3
2019-06-21T23:39:22.000Z
2020-08-17T03:39:04.000Z
src/classes/widgets/engine_gauge.py
bergthor13/VehicleGPS
643413b3cb910102689081d692223a4a03fccea4
[ "MIT" ]
null
null
null
src/classes/widgets/engine_gauge.py
bergthor13/VehicleGPS
643413b3cb910102689081d692223a4a03fccea4
[ "MIT" ]
1
2020-02-04T16:13:06.000Z
2020-02-04T16:13:06.000Z
"""File containing a class for the main gauge.""" from tkinter import font, Label, Frame from classes.widgets.main_gauge import MainGauge from classes.pub_sub import Subscriber class EngineGauge(MainGauge, Subscriber): """ A gauge that displays the speed, acceleration and average speed. """ def __...
32.606061
72
0.572491
900
0.834879
0
0
0
0
0
0
203
0.188312
016e32f2a963118067a022a4358ef9d531d71194
280
py
Python
aml/__init__.py
ArvinSKushwaha/AML
3594a861cfe1733d6a92a293bf7737e2ec2be5df
[ "MIT" ]
null
null
null
aml/__init__.py
ArvinSKushwaha/AML
3594a861cfe1733d6a92a293bf7737e2ec2be5df
[ "MIT" ]
null
null
null
aml/__init__.py
ArvinSKushwaha/AML
3594a861cfe1733d6a92a293bf7737e2ec2be5df
[ "MIT" ]
null
null
null
from .core import ( mean, sum, exp, sin, cos, tan, log, tensor, grad_tensor, zeros, ones, randn, rand, Tensor, argmax, ) from .linear import Linear from .model import Module, Sequential from .sampler import TensorSample
13.333333
37
0.589286
0
0
0
0
0
0
0
0
0
0
0170b972d86c93a3e3cdb19cde4605229cdb91d4
4,358
py
Python
packages/augur-core/tests/gov/test_gov.py
jeremyschlatter/augur
4dbfe476905c1c032231ac18b5e4e9cb817c90d4
[ "MIT" ]
3
2021-05-10T06:44:19.000Z
2021-06-16T00:04:27.000Z
packages/augur-core/tests/gov/test_gov.py
Penny-Admixture/augur
374366d15f455a1814cc1d10b1219455a9ac71d0
[ "MIT" ]
null
null
null
packages/augur-core/tests/gov/test_gov.py
Penny-Admixture/augur
374366d15f455a1814cc1d10b1219455a9ac71d0
[ "MIT" ]
1
2021-04-02T12:47:01.000Z
2021-04-02T12:47:01.000Z
from eth_tester.exceptions import TransactionFailed from utils import captureFilteredLogs, AssertLog, nullAddress, TokenDelta, PrintGasUsed from pytest import raises, mark pytestmark = mark.skip(reason="We might not even need governance and currently dont account for transfering ownership") def test_gov(contractsFixt...
39.981651
172
0.750344
0
0
0
0
0
0
0
0
885
0.203075
0170d25b5b5c179dc15a428fac48dd41cba9b842
700
py
Python
terrascript/resource/hashicorp/ad.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/hashicorp/ad.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/hashicorp/ad.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/hashicorp/ad.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:10:57 UTC) import terrascript class ad_computer(terrascript.Resource): pass class ad_gplink(terrascript.Resource): pass class ad_gpo(terrascript.Resource): pass class ad_gpo_security(terrascript.Res...
14.583333
73
0.71
384
0.548571
0
0
0
0
0
0
207
0.295714
0170f03d5c6113a721972e11f7d310051390f158
557
py
Python
train_flickr.py
raph-m/pytorch-CycleGAN-and-pix2pix
41891a12fb4f92ebef60e82fe533110c2d5a6311
[ "BSD-3-Clause" ]
null
null
null
train_flickr.py
raph-m/pytorch-CycleGAN-and-pix2pix
41891a12fb4f92ebef60e82fe533110c2d5a6311
[ "BSD-3-Clause" ]
null
null
null
train_flickr.py
raph-m/pytorch-CycleGAN-and-pix2pix
41891a12fb4f92ebef60e82fe533110c2d5a6311
[ "BSD-3-Clause" ]
null
null
null
import sys from utils import my_train, flickr_train_params, flickr_params, my_test, copy_networks if __name__ == "__main__": do_import = True first_arg = sys.argv[0] if do_import: copy_networks(model_to_import="celeba_cycle", iter="2") flickr_train_params["continue_train"] = True ...
25.318182
86
0.721724
0
0
0
0
0
0
0
0
83
0.149013
01718641d209b93e71922a83a09841a7c405d585
3,153
py
Python
setup.py
insolor/pymorphy2
92d546f042ff14601376d3646242908d5ab786c1
[ "MIT" ]
859
2015-01-05T00:48:23.000Z
2022-03-19T07:42:23.000Z
setup.py
insolor/pymorphy2
92d546f042ff14601376d3646242908d5ab786c1
[ "MIT" ]
106
2015-01-03T12:21:56.000Z
2022-03-30T11:07:46.000Z
setup.py
insolor/pymorphy2
92d546f042ff14601376d3646242908d5ab786c1
[ "MIT" ]
118
2015-01-05T21:10:35.000Z
2022-03-15T14:29:29.000Z
#!/usr/bin/env python import sys import platform from setuptools import setup # from Cython.Build import cythonize def get_version(): with open("pymorphy2/version.py", "rt") as f: return f.readline().split("=")[1].strip(' "\n') # TODO: use environment markres instead of Python code in order to # allow b...
31.217822
96
0.625119
0
0
0
0
0
0
0
0
2,056
0.652077
01737ac1253524fca8701279c0c0189f76386d90
8,031
py
Python
habitat/tasks/rearrange/utils.py
elombardi2/habitat-lab
02326fffe1c781fda69b23d7d89ac6d11bd37ca2
[ "MIT" ]
null
null
null
habitat/tasks/rearrange/utils.py
elombardi2/habitat-lab
02326fffe1c781fda69b23d7d89ac6d11bd37ca2
[ "MIT" ]
null
null
null
habitat/tasks/rearrange/utils.py
elombardi2/habitat-lab
02326fffe1c781fda69b23d7d89ac6d11bd37ca2
[ "MIT" ]
1
2021-09-09T08:15:24.000Z
2021-09-09T08:15:24.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import hashlib import os import os.path as osp import pickle import time import attr import gym import magnum as mn imp...
28.784946
78
0.625949
1,560
0.194247
0
0
146
0.01818
0
0
1,129
0.14058
01747966cb8b478038f5ca30657c325c98657e48
3,614
py
Python
park_piper.py
skarplab/park_piper
6f51fdb21fa8f7e53a731fb118370b50270788f8
[ "MIT" ]
null
null
null
park_piper.py
skarplab/park_piper
6f51fdb21fa8f7e53a731fb118370b50270788f8
[ "MIT" ]
1
2019-11-05T19:06:51.000Z
2019-11-05T19:06:51.000Z
park_piper.py
skarplab/park_piper
6f51fdb21fa8f7e53a731fb118370b50270788f8
[ "MIT" ]
null
null
null
############### ## LIBRARIES ## ############### import click from copy import deepcopy from pprint import pprint from arcgis.gis import GIS from arcgis import features import geopandas as gpd ################## ## FUNCTION(S) ## ################## def agol_to_gdf(fset): gdf = gpd.read_file(fset.to_geojson) g...
48.186667
280
0.710017
0
0
0
0
1,199
0.331765
0
0
964
0.26674
0174e0a9353f91cac1b89d08d2f7d7e33badec5b
1,646
py
Python
programs/mv.py
RaInta/PyOS
0e38faba3f3b9958316f77b2163118ec8eb8845f
[ "MIT" ]
null
null
null
programs/mv.py
RaInta/PyOS
0e38faba3f3b9958316f77b2163118ec8eb8845f
[ "MIT" ]
null
null
null
programs/mv.py
RaInta/PyOS
0e38faba3f3b9958316f77b2163118ec8eb8845f
[ "MIT" ]
null
null
null
# PyOS # Made for Python 2.7 # programs/mv.py # Import Libraries # PyOS Scripts import internal.extra import os from programs.cp import displayCwdFiles, getFileOrigin def app(): print(internal.extra.colors.OKGREEN + "Moving (renaming) files: " + internal.extra.colors.ENDC) print(internal.extra.colors.BOLD + ...
44.486486
133
0.669502
0
0
0
0
0
0
0
0
423
0.256987
0174f6ef49b2600601fc8286f239c0c51ed868ee
1,867
py
Python
0382_LinkedListRandomNode/python/solution.py
jeffvswanson/LeetCode
6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8
[ "MIT" ]
null
null
null
0382_LinkedListRandomNode/python/solution.py
jeffvswanson/LeetCode
6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8
[ "MIT" ]
null
null
null
0382_LinkedListRandomNode/python/solution.py
jeffvswanson/LeetCode
6bc7d6cad3c2b1bd6ccb2616ec081fb5eb51ccc8
[ "MIT" ]
null
null
null
""" 382. Linked List Random Node Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Implement the Solution class: Solution(ListNode head) Initializes the object with the integer array nums. int getRandom() Chooses a node ran...
28.723077
88
0.644885
614
0.32887
0
0
0
0
0
0
1,336
0.715587
0174f77e9de6cf1e78caa97b728122d68f161063
3,003
py
Python
tests/subscriptions/test_store.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
tests/subscriptions/test_store.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
tests/subscriptions/test_store.py
fpacifici/snuba
cf732b71383c948f9387fbe64e9404ca71f8e9c5
[ "Apache-2.0" ]
null
null
null
from datetime import timedelta from uuid import uuid1 from snuba.redis import redis_client from snuba.subscriptions.data import SubscriptionData from snuba.subscriptions.store import RedisSubscriptionDataStore from tests.subscriptions import BaseSubscriptionTest class TestRedisSubscriptionStore(BaseSubscriptionTest)...
39
74
0.640027
2,736
0.911089
0
0
338
0.112554
0
0
122
0.040626
01756befa2192d53cb57f12407d058724b5d5f3a
3,833
py
Python
tests/app/models/test_broadcast_message.py
alphagov/notify-admin-frontend
70f2a6a97aefe2432d7a3b54dc1555c030dd3693
[ "MIT" ]
33
2016-01-11T20:16:17.000Z
2021-11-23T12:50:29.000Z
tests/app/models/test_broadcast_message.py
alphagov/notify-admin-frontend
70f2a6a97aefe2432d7a3b54dc1555c030dd3693
[ "MIT" ]
1,249
2015-11-30T16:43:21.000Z
2022-03-24T13:04:55.000Z
tests/app/models/test_broadcast_message.py
alphagov/notify-admin-frontend
70f2a6a97aefe2432d7a3b54dc1555c030dd3693
[ "MIT" ]
36
2015-12-02T09:49:26.000Z
2021-04-10T18:05:41.000Z
import pytest from app.broadcast_areas.models import CustomBroadcastAreas from app.models.broadcast_message import BroadcastMessage from tests import broadcast_message_json @pytest.mark.parametrize('areas, expected_area_ids', [ ({'simple_polygons': []}, []), ({'ids': ['123'], 'simple_polygons': []}, ['123'])...
28.604478
89
0.604226
0
0
0
0
1,967
0.513175
0
0
1,091
0.284633
0176442d3722d717b493ddc5a58d8dea96dab8d8
521
py
Python
UNF/data/field.py
waterzxj/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
86
2020-02-23T13:38:11.000Z
2022-03-01T12:09:28.000Z
UNF/data/field.py
Dreamliking/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
2
2020-04-20T08:33:05.000Z
2020-05-13T13:43:08.000Z
UNF/data/field.py
Dreamliking/UNF
5eda8e7c60116735f595f4b21b24547708b36cf5
[ "Apache-2.0" ]
14
2020-03-07T05:21:44.000Z
2021-05-09T16:57:23.000Z
#coding:utf-8 """ 对处理数据域的抽象 """ from torchtext.data.field import RawField, Field, LabelField class WordField(Field): """ 数据词域的抽象 """ def __init__(self, **kwarg): print(kwarg) super(WordField, self).__init__(**kwarg) class CharField(Field): """ 数据字符域的抽象 """ def __init__...
17.965517
60
0.596929
463
0.796902
0
0
0
0
0
0
159
0.273666
017a9e7cf566c8e735c6560428aeffefe5652de2
9,460
py
Python
nilmtk_contrib/disaggregate/dsc.py
PiaDiepman/NILMTK-contrib
cd0b4337c9d87d71b3e88ad6581e5377ed8d82aa
[ "Apache-2.0" ]
75
2019-07-05T06:43:10.000Z
2022-03-30T09:18:51.000Z
nilmtk_contrib/disaggregate/dsc.py
PiaDiepman/NILMTK-contrib
cd0b4337c9d87d71b3e88ad6581e5377ed8d82aa
[ "Apache-2.0" ]
52
2019-06-10T14:36:40.000Z
2022-03-25T16:28:05.000Z
nilmtk_contrib/disaggregate/dsc.py
PiaDiepman/NILMTK-contrib
cd0b4337c9d87d71b3e88ad6581e5377ed8d82aa
[ "Apache-2.0" ]
50
2019-06-14T05:31:28.000Z
2022-03-23T17:38:39.000Z
from __future__ import print_function, division from warnings import warn from nilmtk.disaggregate import Disaggregator import pandas as pd import numpy as np from collections import OrderedDict import matplotlib.pyplot as plt from sklearn.decomposition import MiniBatchDictionaryLearning, SparseCoder from sklearn.met...
46.146341
175
0.647992
9,044
0.956025
0
0
0
0
0
0
1,268
0.134038
017bac2f9ee903e585305824ff79fd16821a3dff
62
py
Python
tests/IT/fixtures/test_fixture_missing.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
tests/IT/fixtures/test_fixture_missing.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
5
2018-12-27T02:52:01.000Z
2019-01-02T01:52:55.000Z
tests/IT/fixtures/test_fixture_missing.py
testandconquer/pytest-conquer
da600c7f5bcd06aa62c5cca9b75370bf1a6ebf05
[ "MIT" ]
null
null
null
def test_with_missing_fixture(not_existing_fixture): pass
20.666667
52
0.83871
0
0
0
0
0
0
0
0
0
0
017c053656950468180fe8ad9c2d0be0139dd386
1,099
py
Python
qark/test/test_plugins/test_task_affinity.py
The-Repo-Depot/qark
8f7cd41a95b4980d544ff16fa9b3896cdf3a392d
[ "Apache-2.0" ]
1
2020-02-14T02:46:31.000Z
2020-02-14T02:46:31.000Z
qark/test/test_plugins/test_task_affinity.py
The-Repo-Depot/qark
8f7cd41a95b4980d544ff16fa9b3896cdf3a392d
[ "Apache-2.0" ]
null
null
null
qark/test/test_plugins/test_task_affinity.py
The-Repo-Depot/qark
8f7cd41a95b4980d544ff16fa9b3896cdf3a392d
[ "Apache-2.0" ]
null
null
null
from plugins import PluginUtil from plugins.task_affinity import TaskAffinityPlugin plugin = TaskAffinityPlugin() def test_regex(): text ='intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);' assert PluginUtil.contains(plugin.NEW_TASK, text) def test_regex1(): text = 'intent.setFlags(Intent.FLAGACTIVITYNEWTA...
28.921053
65
0.754322
0
0
0
0
0
0
0
0
313
0.284804
017df8740dfde25e6ca97dee8d4e923144b40c7c
7,033
py
Python
deprecated/demo/tutorial_5/qr_code.py
mfkiwl/GAAS
29ab17d3e8a4ba18edef3a57c36d8db6329fac73
[ "BSD-3-Clause" ]
2,111
2019-01-29T07:01:32.000Z
2022-03-29T06:48:14.000Z
demo/tutorial_5/qr_code.py
Wayne-xixi/GAAS
308ff4267ccc6fcad77eef07e21fa006cc2cdd5f
[ "BSD-3-Clause" ]
131
2019-02-18T10:56:18.000Z
2021-09-27T12:07:00.000Z
demo/tutorial_5/qr_code.py
Wayne-xixi/GAAS
308ff4267ccc6fcad77eef07e21fa006cc2cdd5f
[ "BSD-3-Clause" ]
421
2019-02-12T07:59:18.000Z
2022-03-27T05:22:01.000Z
from __future__ import print_function import pyzbar.pyzbar as pyzbar import numpy as np import cv2 class QRdetect: def __init__(self, QRcode_image, k=np.array([[376.0, 0, 376], [0, 376.0, 240.0], [0, 0, 1]])): if QRcode_image is None: return self.query_image = QRcode_image s...
30.578261
116
0.570027
6,648
0.945258
0
0
0
0
0
0
2,040
0.290061
017eb9741cc803273ee726ff5eb9f25a88afc42c
1,124
py
Python
tests/test_comment.py
githaefrancis/fluent-exchange
1bf2597f3baba79c36c816146992842fcc85a08f
[ "MIT" ]
null
null
null
tests/test_comment.py
githaefrancis/fluent-exchange
1bf2597f3baba79c36c816146992842fcc85a08f
[ "MIT" ]
null
null
null
tests/test_comment.py
githaefrancis/fluent-exchange
1bf2597f3baba79c36c816146992842fcc85a08f
[ "MIT" ]
null
null
null
import unittest from app.models import User,Role,Post,Comment class CommentModelTest(unittest.TestCase): def setUp(self): self.new_user=User(name="Francis Githae",username='fgithae',password='password',email="[email protected]",role=Role.query.filter_by(id=1).first()) self.new_post=Post(user=self.new_user,t...
40.142857
168
0.758897
1,057
0.940391
0
0
0
0
0
0
201
0.178826
017f2c1c96c787b6d2e75710df80d07ac95d8ea9
881
py
Python
utils/Logger.py
Team-Squad-Up/multigraph_transformer
180a4dc172695d305ab8a945698cd24401d42e66
[ "MIT" ]
268
2019-12-24T05:27:57.000Z
2022-03-31T13:59:30.000Z
utils/Logger.py
Team-Squad-Up/multigraph_transformer
180a4dc172695d305ab8a945698cd24401d42e66
[ "MIT" ]
2
2020-08-10T02:57:57.000Z
2021-01-05T06:19:40.000Z
utils/Logger.py
PengBoXiangShang/multigraph_transformer
04aaf575a5242d44e08910a9583c623f14b61b62
[ "MIT" ]
26
2019-12-24T13:24:58.000Z
2022-03-21T08:42:20.000Z
import logging import os class Logger(object): """ set logger """ def __init__(self, logger_path): self.logger = logging.getLogger() self.logger.setLevel(logging.DEBUG) self.logfile = logging.FileHandler(logger_path) # self.logfile.setLevel(logging.DEBUG) ...
29.366667
95
0.631101
853
0.968218
0
0
0
0
0
0
184
0.208854
017fe9e609d95e7d2936358460f2c94dafdfc951
1,429
py
Python
Homework/HW3/src/solution.py
fuadaghazada/X-WORD
9d2f1f23e3bda31a27e038c90fc9ee30b73f5539
[ "MIT" ]
2
2019-06-12T08:32:12.000Z
2020-04-03T13:09:54.000Z
Homework/HW3/src/solution.py
fuadaghazada/X-WORD
9d2f1f23e3bda31a27e038c90fc9ee30b73f5539
[ "MIT" ]
null
null
null
Homework/HW3/src/solution.py
fuadaghazada/X-WORD
9d2f1f23e3bda31a27e038c90fc9ee30b73f5539
[ "MIT" ]
2
2019-05-31T08:56:03.000Z
2019-12-17T01:58:20.000Z
from state import print_solution_path from search import BBS, A_star_search from puzzle import generate from write_to_file import write_to_csv, write_to_txt ''' CS461 - Artificial Intelligence Homework 3 Group members: * Fuad Aghazada * Can Özgürel * Çağatay Sel * Utku Mert Top...
21.984615
77
0.686494
0
0
0
0
0
0
0
0
686
0.477716
018015cf927908eea70db9b02fdbb5cdefd59ff5
6,224
py
Python
LineNotifyBot/orderManager.py
cryptocat-miner/BitMexLineNotifyBot
2388d5fbccd3e8b7110484a1c10bd490e4b13859
[ "MIT" ]
1
2019-09-23T12:34:18.000Z
2019-09-23T12:34:18.000Z
LineNotifyBot/orderManager.py
cryptocat-miner/BitMexLineNotifyBot
2388d5fbccd3e8b7110484a1c10bd490e4b13859
[ "MIT" ]
null
null
null
LineNotifyBot/orderManager.py
cryptocat-miner/BitMexLineNotifyBot
2388d5fbccd3e8b7110484a1c10bd490e4b13859
[ "MIT" ]
null
null
null
import ccxt from datetime import datetime from datetime import timedelta import calendar import time from enum import Enum import ccxtWrapper import math import LineNotify import orderInfo class orderManagementEnum(Enum): NO_POSITION = 0 HAVE_POSITION = 1 class orderManager(ccxtWrapper.ccxtWrapper): or...
38.9
171
0.621144
6,581
0.971222
0
0
0
0
0
0
1,481
0.218566
018153b0720e76bdbfa6aa63e1ed23fa87f47eb2
1,917
py
Python
강의 자료/02-알고리즘/autoindex.py
rhs0266/FastCampus
88b5f4c18ebfb9ebf141ace644e40d2975ff665a
[ "MIT" ]
407
2020-11-14T02:25:56.000Z
2022-03-31T04:12:17.000Z
강의 자료/02-알고리즘/autoindex.py
rhs0266/FastCampus
88b5f4c18ebfb9ebf141ace644e40d2975ff665a
[ "MIT" ]
48
2020-11-16T15:29:10.000Z
2022-03-14T06:32:16.000Z
강의 자료/02-알고리즘/autoindex.py
rhs0266/FastCampus
88b5f4c18ebfb9ebf141ace644e40d2975ff665a
[ "MIT" ]
78
2020-11-28T08:29:39.000Z
2022-03-29T06:54:48.000Z
import os from lxml import html import requests def get_dir_list(path): return [p for p in os.listdir(path) if os.path.isdir(p)] def get_file_list(path): return [p for p in os.listdir(path) if os.path.isfile(p)] def get_number(str): res = ''.join(list(filter(lambda x: '0'<=x<='9', str))) if res: ...
34.854545
176
0.521127
0
0
0
0
0
0
0
0
365
0.188241
0181665c2fcc24657f6c8b73a95f4034a3a47d28
488
py
Python
CursoEmVideo/Exercicio109.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
CursoEmVideo/Exercicio109.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
CursoEmVideo/Exercicio109.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
from utilidadesCeV import moeda preco = float(input('Digite o preço: R$')) porcentagem = float(input('Digite a aliquota:')) print(f'A metade de {moeda.moeda(preco)} é {moeda.metade(preco, True)}') print(f'O dobro de {moeda.moeda(preco)} é {moeda.dobro(preco, True)}') print(f'Aumentando {moeda.moeda(preco)} em {porcen...
48.8
108
0.729508
0
0
0
0
0
0
0
0
373
0.759674
0184348ba0c172bce71500036c4f9c8c8e4b28b8
449
py
Python
src/leagues/migrations/0015_rotomultileagues_domain.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
src/leagues/migrations/0015_rotomultileagues_domain.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
6
2020-03-15T03:32:06.000Z
2022-01-13T03:46:05.000Z
src/leagues/migrations/0015_rotomultileagues_domain.py
sfernandezf/analytics-yahoofantasy
6242599b903e4b8a7f9c56892ba26591a441b8fb
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.0.3 on 2021-05-07 01:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('leagues', '0014_rotomultileagues_is_active'), ] operations = [ migrations.AddField( model_name='rotomultileagues', n...
23.631579
97
0.63029
356
0.792873
0
0
0
0
0
0
123
0.273942
01858b30db6e28ba009ea21f05772bc48958908b
7,329
py
Python
ThingiBrowser/api/AbstractApiClient.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
1
2019-11-15T20:06:16.000Z
2019-11-15T20:06:16.000Z
ThingiBrowser/api/AbstractApiClient.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
null
null
null
ThingiBrowser/api/AbstractApiClient.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Chris ter Beke. # Thingiverse plugin is released under the terms of the LGPLv3 or higher. import logging from typing import List, Callable, Any, Tuple, Optional from abc import ABC, abstractmethod from PyQt5.QtCore import QUrl from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply, QNetw...
41.88
116
0.669532
6,852
0.934916
0
0
4,325
0.590121
0
0
3,221
0.439487
0186c6f9ccb6910901110026b5550d4363a11f93
110
py
Python
tests/collagen/utils/__init__.py
newskylabs/newskylabs-collagen
3e2e331605745e6709f57dce8730ceb9ceaa002c
[ "Apache-2.0" ]
null
null
null
tests/collagen/utils/__init__.py
newskylabs/newskylabs-collagen
3e2e331605745e6709f57dce8730ceb9ceaa002c
[ "Apache-2.0" ]
null
null
null
tests/collagen/utils/__init__.py
newskylabs/newskylabs-collagen
3e2e331605745e6709f57dce8730ceb9ceaa002c
[ "Apache-2.0" ]
null
null
null
from . import test_conversion from . import test_generic from . import test_idxgz from . import test_settings
22
29
0.818182
0
0
0
0
0
0
0
0
0
0
01886702340a7e2614a1ba8467c3b9e447627ac9
2,545
py
Python
test/prettifier.py
ZachJHansen/Dist_Mem_GAPBS
4c7d702c641e860e6a28f2957cec1509ce5f9893
[ "BSD-3-Clause" ]
null
null
null
test/prettifier.py
ZachJHansen/Dist_Mem_GAPBS
4c7d702c641e860e6a28f2957cec1509ce5f9893
[ "BSD-3-Clause" ]
3
2021-08-15T18:49:36.000Z
2021-08-15T18:56:21.000Z
test/prettifier.py
ZachJHansen/Dist_Mem_GAPBS
4c7d702c641e860e6a28f2957cec1509ce5f9893
[ "BSD-3-Clause" ]
null
null
null
import subprocess import time import os import sys def generate_el_commands(kernel): commands = [] if (kernel == "TC"): sym_test = [True] else: sym_test = [True, False] for symmetrize in sym_test: for npes in range(2,6): for v in [9,14]: for e in [8,9,11,...
34.863014
127
0.502554
0
0
0
0
0
0
0
0
441
0.173281
01886934cd30258f1bbd5bc214cc5822c242b7c6
504
py
Python
general/kneeOsteoarthritisDataset/KneeDataset_utility.py
duennbart/masterthesis_VAE
1a161bc5c234acc0a021d84cde8cd69e784174e1
[ "BSD-3-Clause" ]
14
2020-06-28T15:38:48.000Z
2021-12-05T01:49:50.000Z
general/kneeOsteoarthritisDataset/KneeDataset_utility.py
duennbart/masterthesis_VAE
1a161bc5c234acc0a021d84cde8cd69e784174e1
[ "BSD-3-Clause" ]
null
null
null
general/kneeOsteoarthritisDataset/KneeDataset_utility.py
duennbart/masterthesis_VAE
1a161bc5c234acc0a021d84cde8cd69e784174e1
[ "BSD-3-Clause" ]
3
2020-06-28T15:38:49.000Z
2022-02-13T22:04:34.000Z
import numpy as np from kneeOsteoarthritisDataset.KneeOsteoarthritsDataset import KneeOsteoarthritsDataset data_path = '/home/biomech/Documents/OsteoData/KneeXrayData/ClsKLData/kneeKL299' kneeosteo = KneeOsteoarthritsDataset(data_path = data_path) imgs, labels = kneeosteo.load_imgs() rand_idx = np.random.randint(lo...
26.526316
87
0.781746
0
0
0
0
0
0
0
0
68
0.134921
018a6d7e60dff23b8dbdde473c02f7669ed70154
1,551
py
Python
src/main.py
ubirch/pycom-bootloader
6510eb34ec198ef74e15bb757bb67e88aaf15b74
[ "Apache-2.0" ]
null
null
null
src/main.py
ubirch/pycom-bootloader
6510eb34ec198ef74e15bb757bb67e88aaf15b74
[ "Apache-2.0" ]
null
null
null
src/main.py
ubirch/pycom-bootloader
6510eb34ec198ef74e15bb757bb67e88aaf15b74
[ "Apache-2.0" ]
null
null
null
print("SD bootloader") import pycom import time import machine import sys import uos #paths for the code/lib/mount locations SD_MOUNTPOINT = '/sd' CODE_PATH = '/sd/src' LIB_PATH = '/sd/src/lib' #LED colors #for errors (full brightness) C_YELLOW = 0xffff00 C_RED = 0xff0000 C_PURPLE = 0xff00ff C_BLUE = 0x0000ff #for n...
20.142857
49
0.654417
0
0
0
0
0
0
0
0
425
0.274017
018d436c5de06e246b9aa736124eb44597086ab1
122,321
py
Python
gui.py
michael11892/picoscopeDataLogger
f50d26f33b5a42731e52261e52c6fe8574ca2bbc
[ "MIT" ]
3
2021-07-02T10:34:16.000Z
2021-07-03T10:27:22.000Z
gui.py
michael11892/picoscopeDataLogger
f50d26f33b5a42731e52261e52c6fe8574ca2bbc
[ "MIT" ]
null
null
null
gui.py
michael11892/picoscopeDataLogger
f50d26f33b5a42731e52261e52c6fe8574ca2bbc
[ "MIT" ]
null
null
null
import os import sys import copy from math import gcd from driver_config_macros import * from data_capture_macros import * from signal_generator_macros import * from power_operation_macros import * from capture_config_macros import * from trig_config_macros import * from data_processing_macros import * from PyQt5 impor...
65.412299
357
0.692931
120,818
0.987705
0
0
0
0
0
0
12,372
0.101143
018d64e411b9a079532721baad7937f619846f0d
187
py
Python
tests/test_main.py
ZhuYuJin/cgroup-parser
7132791c496dc87af04d0458ad1f820eac8a8f0f
[ "Apache-2.0" ]
null
null
null
tests/test_main.py
ZhuYuJin/cgroup-parser
7132791c496dc87af04d0458ad1f820eac8a8f0f
[ "Apache-2.0" ]
null
null
null
tests/test_main.py
ZhuYuJin/cgroup-parser
7132791c496dc87af04d0458ad1f820eac8a8f0f
[ "Apache-2.0" ]
null
null
null
import cgroup_parser def test_interface(): cgroup_parser.get_max_procs() cgroup_parser.get_cpu_usage() cgroup_parser.get_memory_limit() cgroup_parser.get_memory_usage()
20.777778
36
0.780749
0
0
0
0
0
0
0
0
0
0
018e37a3271bbe0ac811dfe2f2b0248dd13424ad
5,123
py
Python
tests/ut/python/dataset_deprecated/test_map.py
httpsgithu/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
1
2022-02-23T09:13:43.000Z
2022-02-23T09:13:43.000Z
tests/ut/python/dataset_deprecated/test_map.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset_deprecated/test_map.py
949144093/mindspore
c29d6bb764e233b427319cb89ba79e420f1e2c64
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.65873
115
0.68007
0
0
0
0
0
0
0
0
1,394
0.272106
018ea4db5dccbf0d3e4ad515400df46535657771
1,295
py
Python
tests/test_structural/test_proxy.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
2
2021-09-23T16:41:42.000Z
2021-11-20T11:54:42.000Z
tests/test_structural/test_proxy.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
null
null
null
tests/test_structural/test_proxy.py
TrendingTechnology/python-patterns-1
426482f58b86a0a7525e303444338e9bb73698de
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ******************************************************** # Author and developer: Aleksandr Suvorov # -------------------------------------------------------- # Licensed: BSD 3-Clause License (see LICENSE for details) # -------------------------------------------------------- # Url: https://git...
38.088235
62
0.467954
690
0.532407
0
0
0
0
0
0
696
0.537037
018eb361eddd592309fff69045cb98d9066ea2e0
39,647
py
Python
hallo/test/modules/channel_control/test_de_operator.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2018-05-19T22:27:20.000Z
2018-05-19T22:27:20.000Z
hallo/test/modules/channel_control/test_de_operator.py
joshcoales/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
75
2015-09-26T18:07:18.000Z
2022-01-04T07:15:11.000Z
hallo/test/modules/channel_control/test_de_operator.py
SpangleLabs/Hallo
17145d8f76552ecd4cbc5caef8924bd2cf0cbf24
[ "MIT" ]
1
2021-04-10T12:02:47.000Z
2021-04-10T12:02:47.000Z
from hallo.events import EventMessage, EventMode from hallo.server import Server from hallo.test.server_mock import ServerMock def test_deop_not_irc(hallo_getter): test_hallo = hallo_getter({"channel_control"}) serv1 = ServerMock(test_hallo) serv1.name = "test_serv1" serv1.type = "NOT_IRC" test_ha...
41.042443
90
0.70762
0
0
0
0
0
0
0
0
4,655
0.117411
018ecde16201a4f4c059f4251f120ee69a80438a
7,685
py
Python
overlays/holo-nixpkgs/hpos-admin/hpos-admin.py
samrose/holo-nixpkgs
057c92fcef9934d1ba2310e77579b78e61271a59
[ "MIT" ]
null
null
null
overlays/holo-nixpkgs/hpos-admin/hpos-admin.py
samrose/holo-nixpkgs
057c92fcef9934d1ba2310e77579b78e61271a59
[ "MIT" ]
null
null
null
overlays/holo-nixpkgs/hpos-admin/hpos-admin.py
samrose/holo-nixpkgs
057c92fcef9934d1ba2310e77579b78e61271a59
[ "MIT" ]
null
null
null
from base64 import b64encode from flask import Flask, jsonify, request from functools import reduce from gevent import subprocess, pywsgi, queue, socket, spawn, lock from gevent.subprocess import CalledProcessError from hashlib import sha512 from pathlib import Path from tempfile import mkstemp import json import os im...
28.462963
180
0.645413
0
0
0
0
3,204
0.416916
370
0.048146
1,484
0.193103
019038b5e29201ae48ff890d61729392b8611ea1
1,050
py
Python
Backend/clother/admin/utils.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
21
2021-04-21T10:36:12.000Z
2021-10-18T10:23:38.000Z
Backend/clother/admin/utils.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
1
2021-06-04T15:19:35.000Z
2021-06-04T15:19:35.000Z
Backend/clother/admin/utils.py
t3ddyss/Clother
ca7bfd2a830cb36cf7ba62782498636e58f9ea17
[ "MIT" ]
1
2022-03-03T02:50:37.000Z
2022-03-03T02:50:37.000Z
import datetime import math import random import time from ..users.models import User def generate_random_time(): min_time = datetime.datetime(year=2021, month=1, day=1) max_time = datetime.datetime(year=2021, month=3, day=31) min_time_ts = int(time.mktime(min_time.timetuple())) max_time_ts = int(ti...
26.25
81
0.662857
0
0
0
0
0
0
0
0
17
0.01619
01949a8453b27509b378298375545c88dd880612
525
py
Python
vkmodels/objects/addresses.py
deknowny/vk-api-py-models
6760c9395b39efd2a987251893b418a61eefbdca
[ "MIT" ]
null
null
null
vkmodels/objects/addresses.py
deknowny/vk-api-py-models
6760c9395b39efd2a987251893b418a61eefbdca
[ "MIT" ]
null
null
null
vkmodels/objects/addresses.py
deknowny/vk-api-py-models
6760c9395b39efd2a987251893b418a61eefbdca
[ "MIT" ]
null
null
null
import dataclasses import enum import typing from vkmodels.bases.object import ObjectBase class Fields(str, enum.Enum): ID = "id" TITLE = "title" ADDRESS = "address" ADDITIONAL_ADDRESS = "additional_address" COUNTRY_ID = "country_id" CITY_ID = "city_id" METRO_STATION_ID = "metro_station_i...
22.826087
45
0.689524
431
0.820952
0
0
0
0
0
0
159
0.302857
0196af5b9fce69fa6d92fe89461a5b8fdf7588ed
3,413
py
Python
test/test_caching.py
ORNL/curifactory
f8be235b7fa7b91cc86f61d610d7093075b89d1f
[ "BSD-3-Clause" ]
4
2022-01-25T18:27:49.000Z
2022-03-30T22:57:04.000Z
test/test_caching.py
ORNL/curifactory
f8be235b7fa7b91cc86f61d610d7093075b89d1f
[ "BSD-3-Clause" ]
1
2022-03-05T19:10:42.000Z
2022-03-07T18:00:49.000Z
test/test_caching.py
ORNL/curifactory
f8be235b7fa7b91cc86f61d610d7093075b89d1f
[ "BSD-3-Clause" ]
null
null
null
import curifactory as cf import json import os import pytest from stages.cache_stages import filerefcacher_stage, filerefcacher_stage_multifile # TODO: necessary? configured_test_manager already does this @pytest.fixture() def clear_stage_run(configured_test_manager): ran_path = os.path.join(configured_test_mana...
32.504762
105
0.714914
0
0
292
0.085555
310
0.090829
0
0
710
0.208028
0196ed4e4760ab9bf312a9416801f8b71d0a5124
2,471
py
Python
downloader/download.py
inverthermit/sec_edgar_analysis
ffdf43b30ab53b0a024790757c8ef0c989acf67a
[ "MIT" ]
1
2018-02-03T00:28:53.000Z
2018-02-03T00:28:53.000Z
downloader/download.py
inverthermit/sec_edgar_analysis
ffdf43b30ab53b0a024790757c8ef0c989acf67a
[ "MIT" ]
null
null
null
downloader/download.py
inverthermit/sec_edgar_analysis
ffdf43b30ab53b0a024790757c8ef0c989acf67a
[ "MIT" ]
null
null
null
import urllib import time from multiprocessing.dummy import Pool as ThreadPool excelFolder = 'F://SecExcelDownload2/' compListUrl = 'C://Users/l1111/Desktop/AlphaCapture/downloadFileUrl.txt' successFile = excelFolder+'/success.txt' failFile = excelFolder+'/fail.txt' logFile = excelFolder+'/log.txt' def getAlreadyDo...
28.402299
108
0.583974
0
0
0
0
0
0
0
0
720
0.29138
0197d01c354f66f49415a9ef3d542eb61ea7a772
20,495
py
Python
HOST/py/tc_TcpEcho.py
cloudFPGA/cFp_HelloKale
949f8c3005d2824b8bc65345b77ea97bd0b6e692
[ "Apache-2.0" ]
null
null
null
HOST/py/tc_TcpEcho.py
cloudFPGA/cFp_HelloKale
949f8c3005d2824b8bc65345b77ea97bd0b6e692
[ "Apache-2.0" ]
6
2022-01-22T10:04:18.000Z
2022-02-01T21:28:19.000Z
HOST/py/tc_TcpEcho.py
cloudFPGA/cFp_HelloKale
949f8c3005d2824b8bc65345b77ea97bd0b6e692
[ "Apache-2.0" ]
null
null
null
#/* # * Copyright 2016 -- 2021 IBM Corporation # * # * 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 applic...
40.99
128
0.528178
0
0
0
0
0
0
0
0
11,457
0.559014
0199b3ed945c2771be748d98e1dc7b130caca848
2,961
py
Python
ngram.py
lojikil/lojifacts
88e2318e0b6c6cb5eb270002abc4b4195e5b85b1
[ "0BSD" ]
null
null
null
ngram.py
lojikil/lojifacts
88e2318e0b6c6cb5eb270002abc4b4195e5b85b1
[ "0BSD" ]
null
null
null
ngram.py
lojikil/lojifacts
88e2318e0b6c6cb5eb270002abc4b4195e5b85b1
[ "0BSD" ]
null
null
null
import json import re import random def stopfilter(word): if word[0] == '@' or word.startswith('http'): return False return True class NGram(object): __slots__ = ['wordindex', 'size', 'punct', 'chain'] def __init__(self, size=2): self.wordindex = {} self.chain = {} ...
25.09322
73
0.549814
2,046
0.690983
0
0
0
0
0
0
288
0.097264
019ba56645c86cd5f76a825624bb4c712e44806d
967
py
Python
ymir/command/mir/scm/__init__.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
64
2021-11-15T03:48:00.000Z
2022-03-25T07:08:46.000Z
ymir/command/mir/scm/__init__.py
Zhang-SJ930104/ymir
dd6481be6f229ade4cf8fba64ef44a15357430c4
[ "Apache-2.0" ]
35
2021-11-23T04:14:35.000Z
2022-03-26T09:03:43.000Z
ymir/command/mir/scm/__init__.py
Aryalfrat/ymir
d4617ed00ef67a77ab4e1944763f608bface4be6
[ "Apache-2.0" ]
57
2021-11-11T10:15:40.000Z
2022-03-29T07:27:54.000Z
import os from mir.scm.cmd import CmdScm from mir.tools.code import MirCode from mir.tools.errors import MirRuntimeError def Scm(root_dir: str, scm_executable: str = None) -> CmdScm: """Returns SCM instance that corresponds to a repo at the specified path. Args: root_dir (str): path t...
35.814815
94
0.646329
0
0
0
0
0
0
0
0
363
0.375388
6d67721cacf03f0b19c2edfa7d94b286095c3b16
724
py
Python
readability_transformers/features/lf/utils.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
1
2022-01-26T10:55:59.000Z
2022-01-26T10:55:59.000Z
readability_transformers/features/lf/utils.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
null
null
null
readability_transformers/features/lf/utils.py
OneTheta/readability-transformers
3c122c98a90c67add8eafad16563b269d5e3124a
[ "Apache-2.0" ]
2
2021-10-14T22:53:57.000Z
2022-01-26T10:53:32.000Z
""" Software: LingFeat - Comprehensive Linguistic Features for Readability Assessment Page: utils.py License: CC-BY-SA 4.0 Original Author: Bruce W. Lee (이웅성) @brucewlee Affiliation 1: LXPER AI, Seoul, South Korea Affiliation 2: University of Pennsylvania, PA, USA Contributing Author: - Affiliation : - """ import re i...
22.625
81
0.638122
0
0
0
0
0
0
0
0
346
0.473973
6d6893d2b301e5ade9e14d6da20a25931ea35482
416
py
Python
pretix_eventparts/migrations/0007_alter_eventpart_category.py
bockstaller/pretix-eventparts
b5cb8f89cb86677facc0509f9a36cf9359c94534
[ "Apache-2.0" ]
null
null
null
pretix_eventparts/migrations/0007_alter_eventpart_category.py
bockstaller/pretix-eventparts
b5cb8f89cb86677facc0509f9a36cf9359c94534
[ "Apache-2.0" ]
null
null
null
pretix_eventparts/migrations/0007_alter_eventpart_category.py
bockstaller/pretix-eventparts
b5cb8f89cb86677facc0509f9a36cf9359c94534
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-31 23:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("pretix_eventparts", "0006_alter_eventpart_name"), ] operations = [ migrations.AlterField( model_name="eventpart", na...
21.894737
63
0.615385
323
0.776442
0
0
0
0
0
0
116
0.278846
6d69e794272f0966fc5025bf7ae39b7bd8cdeaea
1,173
py
Python
src/ex05/bwfilter.py
satvik007/Scanner_OP
c146f67e3851cd537d62989842abfee7d34de2c0
[ "MIT" ]
null
null
null
src/ex05/bwfilter.py
satvik007/Scanner_OP
c146f67e3851cd537d62989842abfee7d34de2c0
[ "MIT" ]
null
null
null
src/ex05/bwfilter.py
satvik007/Scanner_OP
c146f67e3851cd537d62989842abfee7d34de2c0
[ "MIT" ]
1
2021-05-10T10:14:27.000Z
2021-05-10T10:14:27.000Z
# Usage: # python bwfilter.py --input=./data/test1.jpg import cv2 import numpy as np import argparse def parse_args(): parser = argparse.ArgumentParser(add_help=True, description='testing B&W filter') required_named = parser.add_argument_group('required named arguments') required_named.add_argument('-...
26.066667
105
0.6948
0
0
0
0
0
0
0
0
259
0.220801
6d6f7df41b42997a8642b881e20683971aa08d5d
1,065
py
Python
resotolib/test/test_graph_extensions.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
126
2022-01-13T18:22:03.000Z
2022-03-31T11:03:14.000Z
resotolib/test/test_graph_extensions.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
110
2022-01-13T22:27:55.000Z
2022-03-30T22:26:50.000Z
resotolib/test/test_graph_extensions.py
someengineering/resoto
ee17313f5376e9797ed305e7fdb62d40139a6608
[ "Apache-2.0" ]
8
2022-01-15T10:28:16.000Z
2022-03-30T16:38:21.000Z
from networkx import DiGraph from pytest import fixture from resotolib.graph.graph_extensions import dependent_node_iterator @fixture def graph() -> DiGraph: g = DiGraph() for i in range(1, 14): g.add_node(i) g.add_edges_from([(1, 2), (1, 3), (2, 3)]) # island 1 g.add_edges_from([(4, 5), (4,...
26.625
68
0.605634
0
0
0
0
334
0.313615
0
0
75
0.070423
6d70bb0cad490e48129e211fe47c97af4f46b256
693
py
Python
django/user/models.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-10-29T09:37:47.000Z
2019-11-28T14:11:12.000Z
django/user/models.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
null
null
null
django/user/models.py
andreyvpng/askme
65139c347a6b80f0a660ca24d6dd864e4531903a
[ "Apache-2.0" ]
2
2018-09-18T14:09:46.000Z
2019-11-28T14:11:14.000Z
from django.contrib.auth.models import AbstractUser from django.db import models from django.urls import reverse class User(AbstractUser): location = models.CharField(max_length=100, null=True) NOT_CHOSEN = 'N' MALE = 'M' FEMALE = 'F' GENDERS = ( (NOT_CHOSEN, 'Not Chosen'), (MALE,...
23.1
58
0.613276
577
0.832612
0
0
0
0
0
0
53
0.076479
6d72243ededbe77bc217b7d87bcc872254da5cff
3,806
py
Python
cross_sums.py
minddrive/random_math
b5dececaf48ec80d8250d0f5fde0485e1b9e73c2
[ "MIT" ]
null
null
null
cross_sums.py
minddrive/random_math
b5dececaf48ec80d8250d0f5fde0485e1b9e73c2
[ "MIT" ]
null
null
null
cross_sums.py
minddrive/random_math
b5dececaf48ec80d8250d0f5fde0485e1b9e73c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.4 import functools @functools.total_ordering class CrossSum: def __init__(self, digits, total=0, addends=''): self._digits = digits self._base = len(digits) self.total = total self.addends = addends def _convert_total(self): num_total = self.tot...
27.781022
77
0.607725
3,146
0.82659
0
0
2,068
0.543353
0
0
400
0.105097
6d7355fa775ea3bb8dea2a5a98443123ea1e47bf
1,177
py
Python
functions.py
XomaDev/asteroid-bot
2e0743fc3c51027b54b8f2e9aedf632395fdbc31
[ "Apache-2.0" ]
null
null
null
functions.py
XomaDev/asteroid-bot
2e0743fc3c51027b54b8f2e9aedf632395fdbc31
[ "Apache-2.0" ]
2
2021-05-12T05:37:24.000Z
2021-06-02T05:39:21.000Z
functions.py
XomaDev/asteroid-bot
2e0743fc3c51027b54b8f2e9aedf632395fdbc31
[ "Apache-2.0" ]
5
2021-05-12T11:39:09.000Z
2021-10-06T06:49:05.000Z
import base64 import re def encode(text): return base64.b64encode(text.encode("ASCII")).decode() def enhanceText(text): text = text.replace('.', '.', text.count('.')).replace(',', ', ', text.count(',')) text = " ".join(text.split()).replace(" . ", ". ") return text def stylish_text(text): text...
25.586957
197
0.514019
0
0
0
0
0
0
0
0
402
0.317787
6d739c512a7425dd3bf1c30daa1d7ca1dc743fab
377
py
Python
slidingWindow/maximumSubarrayOfSizeK.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
11
2019-05-02T22:27:01.000Z
2020-10-30T08:43:02.000Z
slidingWindow/maximumSubarrayOfSizeK.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
null
null
null
slidingWindow/maximumSubarrayOfSizeK.py
YasinEhsan/interview-prep
ed9f95af5a37b05304e45b41511068b6f72533e7
[ "Apache-2.0" ]
3
2019-11-01T01:35:01.000Z
2020-01-11T18:00:39.000Z
# may 30 20 def max_sub_array_of_size_k(k, arr): # TODO: Write your code here windowStart, currSum, maxSum = 0,0,0 for endIndex in range(len(arr)): currSum += arr[endIndex] if endIndex - windowStart + 1 > k: currSum -= arr[windowStart] windowStart+=1 # had this in while...most cases its...
23.5625
46
0.657825
0
0
0
0
0
0
0
0
81
0.214854
6d768c2ea44a94e626129ce1ad7462b5def358ad
1,697
py
Python
docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py
whoopnip/fin-model-course
e6c5ae313bba601c4aca0f334818b61cc0393118
[ "MIT" ]
5
2020-08-29T15:28:39.000Z
2021-12-01T16:53:25.000Z
docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py
whoopnip/fin-model-course
e6c5ae313bba601c4aca0f334818b61cc0393118
[ "MIT" ]
16
2020-02-26T16:03:47.000Z
2021-06-15T15:17:37.000Z
docsrc/source/_static/Practice Problem Solutions/Connecting Python and Excel/xlwings/capm_returns/capm_returns.py
whoopnip/fin-model-course
e6c5ae313bba601c4aca0f334818b61cc0393118
[ "MIT" ]
3
2021-01-22T19:38:36.000Z
2021-09-28T08:14:00.000Z
import xlwings as xw import random import pandas as pd @xw.func @xw.arg('num_periods', numbers=int) @xw.ret(expand='table') def n_random_normal(mean, stdev, num_periods, horizontal=False): random_values = [] for i in range(num_periods): num = random.normalvariate(mean, stdev) if not ...
27.819672
112
0.659988
0
0
0
0
1,313
0.773718
0
0
163
0.096052
6d769b7ba35986193281813c7384ebbac51f27b4
1,547
py
Python
src/config.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
src/config.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
src/config.py
shousper/pancake-hipchat-bot
a4aaaa6ff0d33daad1cae356a0f26fcbc64cce71
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import ConfigParser import os import inspect class Settings(): __default_conf_name = 'example.conf' __conf = {} def __init__(self, filename=False): """ Create config object, read config data from file and make friendly format ot access to config d...
27.625
108
0.550743
1,473
0.952165
0
0
0
0
0
0
231
0.149321
6d7de936a991106b4fb0cef936e0e2db3b670915
192
py
Python
visionlib/face/__init__.py
sumeshmn/Visionlib
c543ee038d6d1dcf9d88a8d7a782addd998e6036
[ "MIT" ]
null
null
null
visionlib/face/__init__.py
sumeshmn/Visionlib
c543ee038d6d1dcf9d88a8d7a782addd998e6036
[ "MIT" ]
null
null
null
visionlib/face/__init__.py
sumeshmn/Visionlib
c543ee038d6d1dcf9d88a8d7a782addd998e6036
[ "MIT" ]
null
null
null
from .detection import FDetector from .haar_detector import HaarDetector from .hog_detector import Hog_detector from .mtcnn_detector import MTCNNDetector from .dnn_detector import DnnDetector
32
41
0.869792
0
0
0
0
0
0
0
0
0
0
6d7f27d4b21a33d924da32d2c0841520bdc52d0d
4,635
py
Python
shapey/utils/customdataset.py
njw0709/ShapeY
f2272f799fe779c3e4b3d0d06e88ecde9e4b039c
[ "MIT" ]
1
2022-03-22T17:19:57.000Z
2022-03-22T17:19:57.000Z
shapey/utils/customdataset.py
njw0709/ShapeY
f2272f799fe779c3e4b3d0d06e88ecde9e4b039c
[ "MIT" ]
null
null
null
shapey/utils/customdataset.py
njw0709/ShapeY
f2272f799fe779c3e4b3d0d06e88ecde9e4b039c
[ "MIT" ]
null
null
null
import torchvision.datasets as datasets from torch.utils.data import Dataset from itertools import combinations import math import psutil class CombinationDataset(Dataset): def __init__(self, dataset): self.dataset = dataset self.comb = list(combinations(dataset, 2)) def __getitem__(self, ind...
32.1875
82
0.63754
4,476
0.965696
0
0
0
0
0
0
424
0.091478
6d810ebbec71bcab0af3dd833414d6e1bddc9b62
2,160
py
Python
iaga/utils.py
bbengfort/solar-tempest
c21b5bf2716f752cb823bac2f01b6531f248dc66
[ "MIT" ]
1
2018-08-07T21:25:48.000Z
2018-08-07T21:25:48.000Z
iaga/utils.py
bbengfort/solar-tempest
c21b5bf2716f752cb823bac2f01b6531f248dc66
[ "MIT" ]
null
null
null
iaga/utils.py
bbengfort/solar-tempest
c21b5bf2716f752cb823bac2f01b6531f248dc66
[ "MIT" ]
1
2019-06-23T14:22:04.000Z
2019-06-23T14:22:04.000Z
# iaga.utils # Utility functions and helpers # # Author: Benjamin Bengfort <[email protected]> # Created: Wed Aug 08 12:00:44 2018 -0400 # # ID: utils.py [] [email protected] $ """ Utility functions and helpers """ ########################################################################## ## Imports ########...
26.341463
92
0.498611
483
0.223611
0
0
171
0.079167
0
0
1,366
0.632407
6d816723bee564519a5e4db1c3f8cf7df4142b1b
760
py
Python
Scripts5/Script38.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
1
2020-09-05T22:25:36.000Z
2020-09-05T22:25:36.000Z
Scripts5/Script38.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
Scripts5/Script38.py
jonfisik/ScriptsPython
1d15221b3a41a06a189e3e04a5241fa63df9cf3f
[ "MIT" ]
null
null
null
'''Faça um programa que receba dois números, compare e diga quem é maior. Mostrando a msn qual valor é maior ou menor. OU diga que os valores são iguais.''' print('=+=+=+=+=+=+=+=+='*3) titulo = 'COMPARANDO NÚMEROS MAIOR, MENOR E IGUAL' print('{:^51}'.format(titulo)) print('-----------------'*3) num1 = float(input('Dig...
44.705882
156
0.626316
0
0
0
0
0
0
0
0
505
0.650773
6d82b1a75112fd7c369738ca11d64f3111ccd886
234
py
Python
Ch3/same_name3.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
Ch3/same_name3.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
Ch3/same_name3.py
dmdinh22/ATBS
3ddd331757cc434faa5f27997b178f8a39e3b5d2
[ "MIT" ]
null
null
null
def spam(): global eggs eggs = "spam" # this is the global var def bacon(): eggs = "bacon" # this is a local var def ham(): print(eggs) # this is the global var eggs = 42 # this is the global var spam() print(eggs)
16.714286
42
0.619658
0
0
0
0
0
0
0
0
106
0.452991
6d82b1b31f8d0b6b84847768e733ad87e9b8137d
19,761
py
Python
ehlit/writer/dump.py
lefta/reflex-prototype
9d9a34e222d9782815da529a8e2daa575c7c3eba
[ "MIT" ]
1
2019-03-29T14:06:00.000Z
2019-03-29T14:06:00.000Z
ehlit/writer/dump.py
lefta/ehlit-prototype
9d9a34e222d9782815da529a8e2daa575c7c3eba
[ "MIT" ]
null
null
null
ehlit/writer/dump.py
lefta/ehlit-prototype
9d9a34e222d9782815da529a8e2daa575c7c3eba
[ "MIT" ]
null
null
null
# Copyright © 2017-2019 Cedric Legrand # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
36.730483
100
0.621325
17,449
0.882957
0
0
12,185
0.616587
0
0
2,491
0.12605
6d833ac6a830a6bbcae3005bb5acb8b96a7801b5
1,859
py
Python
tutorials/04_Tutorial_Boolean.py
lmidolo/samplemaker
8211af0e4cea60aea8f5720d5ff0ee532c442123
[ "BSD-3-Clause" ]
null
null
null
tutorials/04_Tutorial_Boolean.py
lmidolo/samplemaker
8211af0e4cea60aea8f5720d5ff0ee532c442123
[ "BSD-3-Clause" ]
null
null
null
tutorials/04_Tutorial_Boolean.py
lmidolo/samplemaker
8211af0e4cea60aea8f5720d5ff0ee532c442123
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ 04_Tutorial_Boolean """ # In this tutorial we learn how to do boolean operations between groups of # polygons # Let's import basic stuff import samplemaker.layout as smlay # used for layout import samplemaker.makers as sm # used for drawing # Create a simple mask layout themask = smlay...
26.557143
109
0.743948
0
0
0
0
0
0
0
0
973
0.5234
6d86c4391d19b15cd170a51c7f4c70bd4a42f337
265
py
Python
app/table.py
aamnv/fred-cli
86810e93242a90dd8ed1fbbd8999275dbd1da1cc
[ "MIT" ]
8
2020-08-28T15:15:14.000Z
2021-02-02T07:54:02.000Z
app/table.py
aamnv/fred-cli
86810e93242a90dd8ed1fbbd8999275dbd1da1cc
[ "MIT" ]
null
null
null
app/table.py
aamnv/fred-cli
86810e93242a90dd8ed1fbbd8999275dbd1da1cc
[ "MIT" ]
1
2021-03-05T10:27:32.000Z
2021-03-05T10:27:32.000Z
from tabulate import tabulate def make_table(series_data): table = tabulate(series_data, headers='keys', tablefmt='github') return table def make_data_table_footer(series_metadata): table = tabulate(series_metadata, headers='keys') return table
22.083333
68
0.754717
0
0
0
0
0
0
0
0
20
0.075472
6d890c163247c06d98f4d952e4bc7e2fd20b6485
2,472
py
Python
tests/test_version.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
8
2019-09-25T14:45:28.000Z
2021-11-08T10:30:03.000Z
tests/test_version.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
113
2018-07-10T12:58:16.000Z
2020-12-09T22:33:15.000Z
tests/test_version.py
jparsai/cvejob
8f9462a1ecdf1d4de877ac5f44e772239ffcb379
[ "Apache-2.0" ]
12
2018-07-10T11:00:02.000Z
2021-01-27T12:19:56.000Z
"""Test cvejob.version.BenevolentVersion.""" from cvejob.version import BenevolentVersion def test_version_basic(): """Test basic behavior.""" assert BenevolentVersion('1') == BenevolentVersion('1') assert BenevolentVersion('1') != BenevolentVersion('2') assert BenevolentVersion('1') < BenevolentVersi...
36.352941
83
0.677184
0
0
0
0
0
0
0
0
625
0.252832
6d8a66fbf9d684f0b5b7c285749ed54196898dec
1,211
py
Python
day6.py
aslttml/30days-of-code
be6c894f8df4913413b7e6d9a6b0585e5884d35d
[ "MIT" ]
null
null
null
day6.py
aslttml/30days-of-code
be6c894f8df4913413b7e6d9a6b0585e5884d35d
[ "MIT" ]
null
null
null
day6.py
aslttml/30days-of-code
be6c894f8df4913413b7e6d9a6b0585e5884d35d
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys import string if __name__ == '__main__': try: t = int(input().strip()) except: print('Invalid input.') if t>=1 and t<=10: for a0 in range(t): s = input().strip() index = 0 ...
31.051282
102
0.456647
0
0
0
0
0
0
0
0
333
0.274979
6d8cd75b30233cb95ea2e1005dd56109d735bde6
2,377
py
Python
FindAndReplaceByProjectWithExclusions.py
Zlatov/FindAndReplaceByProjectWithExclusions
f1209696d960bd1471420ed18f4e71e03b3df1b5
[ "MIT" ]
null
null
null
FindAndReplaceByProjectWithExclusions.py
Zlatov/FindAndReplaceByProjectWithExclusions
f1209696d960bd1471420ed18f4e71e03b3df1b5
[ "MIT" ]
null
null
null
FindAndReplaceByProjectWithExclusions.py
Zlatov/FindAndReplaceByProjectWithExclusions
f1209696d960bd1471420ed18f4e71e03b3df1b5
[ "MIT" ]
null
null
null
import sublime, sublime_plugin import os import json class FindAndReplaceByProjectWithExclusions(sublime_plugin.TextCommand): print('reloading FindAndReplaceByProjectWithExclusions') def run(self, edit, from_current_file_path=None): # Текущее окно сублайма window = self.view.window() # В окне - прое...
34.449275
120
0.715187
2,696
0.980007
0
0
0
0
0
0
1,099
0.399491
6d8df2d3b1dcbda991e01aea09990e08fc942cf3
1,566
py
Python
schnell-nautilus.py
umangrajpara99/OpenInSchnell
5d48be8741f130471c892f1e77f19b9dad70a882
[ "MIT" ]
null
null
null
schnell-nautilus.py
umangrajpara99/OpenInSchnell
5d48be8741f130471c892f1e77f19b9dad70a882
[ "MIT" ]
null
null
null
schnell-nautilus.py
umangrajpara99/OpenInSchnell
5d48be8741f130471c892f1e77f19b9dad70a882
[ "MIT" ]
null
null
null
# Schnell Nautilus Extension # # Place me in ~/.local/share/nautilus-python/extensions/, # ensure you have python-nautilus package, restrart Nautilus, and enjoy :) from gi import require_version require_version('Gtk', '3.0') require_version('Nautilus', '3.0') from gi.repository import Nautilus, GObject from subprocess...
27.473684
74
0.637292
1,057
0.674968
0
0
0
0
0
0
557
0.355683
6d8fdc15326338e43a53a51f9d3225823820ab40
74,548
py
Python
appengine/components/components/prpc/discovery/service_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/prpc/discovery/service_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/prpc/discovery/service_prpc_pb2.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
# Generated by the pRPC protocol buffer compiler plugin. DO NOT EDIT! # source: service.proto import base64 from google.protobuf import descriptor_pb2 # Includes description of the service.proto and all of its transitive # dependencies. Includes source code info. FILE_DESCRIPTOR_SET = descriptor_pb2.FileDescriptorS...
79.47548
80
0.911493
0
0
0
0
0
0
0
0
69,594
0.933546
6d9062da7cb5be608d72b13c37aef7c0131a8035
1,891
py
Python
Cogs/StaticMethods.py
pajratbej/hetman
1da634cdb94221bb81ceb0c29467cccce640bbb6
[ "MIT" ]
2
2019-12-19T17:11:29.000Z
2020-02-22T17:55:13.000Z
Cogs/StaticMethods.py
pajratbej/hetman
1da634cdb94221bb81ceb0c29467cccce640bbb6
[ "MIT" ]
5
2019-12-08T21:42:12.000Z
2022-03-11T23:58:29.000Z
Cogs/StaticMethods.py
pajratbej/hetman
1da634cdb94221bb81ceb0c29467cccce640bbb6
[ "MIT" ]
null
null
null
from pymongo import MongoClient import random as r import os client = MongoClient(os.environ["MONGO_LAB"]) db = client.get_database("hetmanbot") collection = db['data_base'] class StaticMethods(): @staticmethod def push_record(name, txt, number): records = collection.find_one({"document_id": number}) ...
31.516667
100
0.589635
1,715
0.906448
0
0
1,606
0.848837
0
0
256
0.135307
6d9276de4eb719b6800f06060463d545ce0e50b7
702
py
Python
article/admin.py
SeddonShen/TimePill
8b2c4dc2c129f440d67e1dba1ab16591057b65f7
[ "Apache-2.0" ]
4
2021-12-26T04:39:06.000Z
2021-12-29T16:57:36.000Z
article/admin.py
SeddonShen/TimePill
8b2c4dc2c129f440d67e1dba1ab16591057b65f7
[ "Apache-2.0" ]
null
null
null
article/admin.py
SeddonShen/TimePill
8b2c4dc2c129f440d67e1dba1ab16591057b65f7
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin # Register your models here. from . import models from .models import Article, Comment class ArticleAdmin(admin.ModelAdmin): fieldsets = [ (None, {'fields': ['id']}), (None, {'fields': ['title', 'content', 'status']}) ] list_display = ( ['expire_time',...
25.071429
108
0.668091
305
0.434473
0
0
0
0
0
0
374
0.532764
6d961a7fca3206cd16ef0e5d9d5a6b6cd7a06634
32,545
py
Python
neurokit2/ecg/ecg_findpeaks.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
neurokit2/ecg/ecg_findpeaks.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
neurokit2/ecg/ecg_findpeaks.py
vansjyo/NeuroKit
238cd3d89467f7922c68a3a4c1f44806a8466922
[ "MIT" ]
null
null
null
# - * - coding: utf-8 - * - import numpy as np import pandas as pd import matplotlib.pyplot as plt import scipy.signal from ..signal import signal_smooth from ..signal import signal_zerocrossings def ecg_findpeaks(ecg_cleaned, sampling_rate=1000, method="neurokit", show=False): """Find R-peaks in an ECG signal...
32.940283
262
0.540636
0
0
0
0
0
0
0
0
11,153
0.342579
6d96c1cfb476a1c31417724d0d6d9bf4095e9439
1,157
py
Python
tinynn/converter/operators/base.py
www516717402/TinyNeuralNetwork
23e7931b4377462fad94a9ab0651b6d9a346252d
[ "MIT" ]
1
2022-01-11T06:40:13.000Z
2022-01-11T06:40:13.000Z
tinynn/converter/operators/base.py
kingkie/TinyNeuralNetwork
9b4313bbe6fb46d602681b69799e4725eef4d71b
[ "MIT" ]
null
null
null
tinynn/converter/operators/base.py
kingkie/TinyNeuralNetwork
9b4313bbe6fb46d602681b69799e4725eef4d71b
[ "MIT" ]
1
2021-12-20T07:21:37.000Z
2021-12-20T07:21:37.000Z
import inspect import sys from enum import IntEnum from tflite.ActivationFunctionType import ActivationFunctionType from tflite.BuiltinOperator import BuiltinOperator # In Python 3.6, we cannot make ExtendedOperator derive from IntEnum if sys.version_info >= (3, 7): bases = (IntEnum, ) else: bases = () cla...
28.925
96
0.713915
259
0.223855
0
0
0
0
0
0
214
0.184961
6d976cc81d6b3b0e0fa28444c6bbd2374d9c01bb
169
py
Python
mkdocs_markmap/__meta__.py
neatc0der/mkdocs-markmap
dff5d6ace8813ef433b54d34e4f7127d04792b89
[ "MIT" ]
14
2021-01-25T19:46:25.000Z
2022-02-12T03:35:51.000Z
mkdocs_markmap/__meta__.py
neatc0der/mkdocs-markmap
dff5d6ace8813ef433b54d34e4f7127d04792b89
[ "MIT" ]
14
2021-01-24T22:01:52.000Z
2022-02-16T00:56:33.000Z
mkdocs_markmap/__meta__.py
neatc0der/mkdocs-markmap
dff5d6ace8813ef433b54d34e4f7127d04792b89
[ "MIT" ]
1
2021-11-30T14:39:10.000Z
2021-11-30T14:39:10.000Z
PACKAGE_NAME = 'mkdocs_markmap' PROJECT_NAME = PACKAGE_NAME.replace('_', '-') PROJECT_VERSION = '2.1.3' OWNER = 'neatc0der' REPOSITORY_NAME = f'{OWNER}/{PROJECT_NAME}'
24.142857
45
0.727811
0
0
0
0
0
0
0
0
65
0.384615
6d986eb3521f1a36cc7b07b20157b53df24adc51
852
py
Python
ihome/apps/homes/urls.py
Noah-Smith-wgp/rentinghouse
22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3
[ "MIT" ]
null
null
null
ihome/apps/homes/urls.py
Noah-Smith-wgp/rentinghouse
22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3
[ "MIT" ]
null
null
null
ihome/apps/homes/urls.py
Noah-Smith-wgp/rentinghouse
22ba71aa8b3b0c290b8c01cd2f4dd14bca81d3d3
[ "MIT" ]
null
null
null
from django.conf.urls import url from rest_framework.routers import DefaultRouter from apps.homes import views urlpatterns = [ url(r'^areas/$', views.AreaAPIView.as_view()), # url(r'^houses/$', views.HouseAPIView.as_view()), # 我的房屋列表 url(r'^user/houses/$', views.HouseListView.as_view()), # 首页房屋模块 ...
29.37931
92
0.70892
0
0
0
0
0
0
0
0
425
0.456009
6d98732be2adda89107919e11c0da39aeeb1518a
294
py
Python
rules.py
ravewillow6383/game-of-greed
50a1f67b17382efc431dc64903c42c99799b1451
[ "MIT" ]
null
null
null
rules.py
ravewillow6383/game-of-greed
50a1f67b17382efc431dc64903c42c99799b1451
[ "MIT" ]
null
null
null
rules.py
ravewillow6383/game-of-greed
50a1f67b17382efc431dc64903c42c99799b1451
[ "MIT" ]
null
null
null
class Rules: def __init__(self): self.ONE_ONE_SCORE = 100 self.ONE_FIVE_SCORE = 50 self.STRAIGHT_SCORE = 1500 self.THREE_PAIR_SCORE = 1000 class Alternate(Rules): def __init__(self): self.STRAIGHT_SCORE = 2500 self.THREE_PAIR_SCORE = 2000
24.5
35
0.64966
284
0.965986
0
0
0
0
0
0
0
0
6d9999a24bad3d878ecc89ba34c9037a6d5b672e
646
py
Python
encryption/validation/ssl_client.py
TheConner/intl-iot
e7f0d7e96392acec900f29eb95cbbf5cb8d8db66
[ "Apache-2.0" ]
46
2019-09-19T05:03:56.000Z
2022-03-07T05:55:12.000Z
encryption/validation/ssl_client.py
dng24/intl-iot
84d46012afce5c7473d0cc9b82dc9e3aef069bbf
[ "Apache-2.0" ]
null
null
null
encryption/validation/ssl_client.py
dng24/intl-iot
84d46012afce5c7473d0cc9b82dc9e3aef069bbf
[ "Apache-2.0" ]
23
2019-09-18T02:04:59.000Z
2022-03-07T05:55:13.000Z
import socket import ssl import sys hostname = '127.0.0.1' if len(sys.argv) < 2: exit(0) inputfile = sys.argv[1] print('\tRead file %s' % inputfile) # msg = b"HEAD / HTTP /1.0\r\nHost: linuxfr.org\r\n\r\n" msg = open(inputfile).read() msg = bytes(msg.encode()) context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) con...
26.916667
70
0.676471
0
0
0
0
0
0
0
0
137
0.212074
6d9d4c3a43bd4e12042fd3d32b8a804be12b5ec6
429
py
Python
solutions/1209_remove_all_adjacent_duplicates_in_string_ii.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/1209_remove_all_adjacent_duplicates_in_string_ii.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
solutions/1209_remove_all_adjacent_duplicates_in_string_ii.py
YiqunPeng/leetcode_pro
7e6376984f9baec49a5e827d98330fe3d1b656f0
[ "MIT" ]
null
null
null
class Solution: def removeDuplicates(self, s: str, k: int) -> str: """Stack. Running time: O(n) where n is the length of s. """ st = [['#', 0]] for c in s: if st[-1][0] == c: st[-1][1] += 1 if st[-1][1] == k: st...
26.8125
54
0.361305
428
0.997669
0
0
0
0
0
0
82
0.191142
6da20244b70564cb32df8f9c1bb63836cc6e87c9
345
py
Python
src/game/items.py
pikulet/sandfox
ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825
[ "MIT" ]
null
null
null
src/game/items.py
pikulet/sandfox
ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825
[ "MIT" ]
null
null
null
src/game/items.py
pikulet/sandfox
ad1bd15a6d7e6d40799f21ab9b6b5a3ce6590825
[ "MIT" ]
null
null
null
from typing import Callable class Item(Action): """ Items are Actions that can be transferred to another Player """ def __init__(self, name, function: Callable[[Player], None]): super().__init__(name, function) class Knife(Item): def __init__(self): super().__init__("Knife", lam...
23
65
0.657971
313
0.907246
0
0
0
0
0
0
82
0.237681
6da36de83dd56e3ca84e1de8b7ae22701073bf6d
528
py
Python
parte2/alternativeq2.py
ronaldbrito/PDS
58c8f9737e4cc5872a27e7b778a43def5e3e11f4
[ "MIT" ]
1
2019-03-16T01:49:11.000Z
2019-03-16T01:49:11.000Z
parte2/alternativeq2.py
heliomeiralins/pds
58c8f9737e4cc5872a27e7b778a43def5e3e11f4
[ "MIT" ]
null
null
null
parte2/alternativeq2.py
heliomeiralins/pds
58c8f9737e4cc5872a27e7b778a43def5e3e11f4
[ "MIT" ]
null
null
null
import numpy as np from scipy.misc import imread, imsave from scipy import ndimage img = imread('doc1.bmp') def f(x): ret = x * 255 / 150 if ret > 255: ret = 255 return ret F = np.vectorize(f) treated_img = F(img) imsave('treated_doc.bmp', treated_img) mask = treated_img < treated_img.mean() ...
17.6
57
0.676136
0
0
0
0
0
0
0
0
27
0.051136
6da72024802e1c3c54412ef9c55591988fb61919
72
py
Python
ns/ethernet/connector.py
serjkazhura/network-simulator
7542ef8c56b0fd7e488852891deef8606571fce9
[ "MIT" ]
null
null
null
ns/ethernet/connector.py
serjkazhura/network-simulator
7542ef8c56b0fd7e488852891deef8606571fce9
[ "MIT" ]
null
null
null
ns/ethernet/connector.py
serjkazhura/network-simulator
7542ef8c56b0fd7e488852891deef8606571fce9
[ "MIT" ]
null
null
null
def connect(node1, node2): node1.connect(node2) node2.connect(node1)
24
26
0.75
0
0
0
0
0
0
0
0
0
0
6da7a648349b63e6ebd5bddae98e78d24000ce56
2,617
py
Python
module2-sql-for-analysis/insert_rpg_thief.py
KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases
4a690cd8e651161296d7aec2af86a56c499d6801
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_rpg_thief.py
KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases
4a690cd8e651161296d7aec2af86a56c499d6801
[ "MIT" ]
null
null
null
module2-sql-for-analysis/insert_rpg_thief.py
KristineYW/DS-Unit-3-Sprint-2-SQL-and-Databases
4a690cd8e651161296d7aec2af86a56c499d6801
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv import sqlite3 import psycopg2 from psycopg2.extras import execute_values load_dotenv() # looks inside the .env file for some env vars # passes env var values to python var DB_HOST = os.getenv("DB_HOST", default="OOPS") DB_NAME = os.getenv("DB_NAME", default="OOPS") DB_USER = ...
42.209677
244
0.708445
1,556
0.594574
0
0
0
0
0
0
1,026
0.392052
6da810a7e416553569ccec2032142f91db2446a4
4,161
py
Python
xoa_driver/internals/core/commands/px_commands.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
1
2022-03-18T17:17:59.000Z
2022-03-18T17:17:59.000Z
xoa_driver/internals/core/commands/px_commands.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
null
null
null
xoa_driver/internals/core/commands/px_commands.py
xenadevel/xena-open-automation-python-api
b17e512aa14eee7c51677004b4c91712005edcd0
[ "Apache-2.0" ]
null
null
null
#: L23 Port Transceiver Commands from dataclasses import dataclass import typing from ..protocol.command_builders import ( build_get_request, build_set_request ) from .. import interfaces from ..transporter.token import Token from ..protocol.fields.data_types import * from ..protocol.fields.field import XmpFi...
33.02381
168
0.700072
3,679
0.884162
0
0
3,766
0.905071
0
0
1,654
0.397501
6dab7808e0549ea0483294aef2b69179d291af86
12,991
py
Python
nvidia_clara/grpc/metrics_pb2.py
KavinKrishnan/clara-platform-python-client
05c873b93022de15902adc656cf9735639d57a73
[ "Apache-2.0" ]
8
2020-10-30T22:45:07.000Z
2021-09-23T18:22:30.000Z
nvidia_clara/grpc/metrics_pb2.py
KavinKrishnan/clara-platform-python-client
05c873b93022de15902adc656cf9735639d57a73
[ "Apache-2.0" ]
1
2020-12-29T23:42:27.000Z
2020-12-29T23:42:27.000Z
nvidia_clara/grpc/metrics_pb2.py
KavinKrishnan/clara-platform-python-client
05c873b93022de15902adc656cf9735639d57a73
[ "Apache-2.0" ]
4
2020-11-03T18:31:49.000Z
2021-11-09T17:47:12.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. 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 ...
44.489726
1,331
0.760065
0
0
0
0
0
0
0
0
4,535
0.349088
6dabb24069dd7d2e7f87b22364bf8f6f48e24574
964
py
Python
chapter17/yunqiCrawl/yunqiCrawl/items.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
1
2019-02-08T03:14:17.000Z
2019-02-08T03:14:17.000Z
chapter17/yunqiCrawl/yunqiCrawl/items.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
chapter17/yunqiCrawl/yunqiCrawl/items.py
NetworkRanger/python-spider-project
f501e331a59608d9a321a0d7254fcbcf81b50ec2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class YunqiBookListItem(scrapy.Item): novelId = scrapy.Field() novelName = scrapy.Field() novelLink = scrapy.Field() novelAuthor = scra...
28.352941
52
0.695021
793
0.822614
0
0
0
0
0
0
146
0.151452
6dabb2d9a3beda1b3745a3582f1367443e6ae076
4,626
py
Python
src/data_prep_uci.py
akumesi48/hyper-genetic
6e1ec16b31bb2259d4a325e08779d5668750a635
[ "MIT" ]
null
null
null
src/data_prep_uci.py
akumesi48/hyper-genetic
6e1ec16b31bb2259d4a325e08779d5668750a635
[ "MIT" ]
null
null
null
src/data_prep_uci.py
akumesi48/hyper-genetic
6e1ec16b31bb2259d4a325e08779d5668750a635
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.model_selection import train_test_split from sklearn.model_selection import StratifiedKFold, KFold def cv_index(n_fold, feature, label): skf = KFold(n_fold, shuffle=True, random_state=7840) index_list = [] for i, j in skf.split(feature, label): i...
47.690722
97
0.61284
0
0
0
0
0
0
0
0
903
0.195201
6dace628e580ac178333748655d75c5708c2a7c6
502
py
Python
main/views/admin/dashboard/dashboard_controller.py
tiberiucorbu/av-website
f26f44a367d718316442506b130a7034697670b8
[ "MIT" ]
null
null
null
main/views/admin/dashboard/dashboard_controller.py
tiberiucorbu/av-website
f26f44a367d718316442506b130a7034697670b8
[ "MIT" ]
null
null
null
main/views/admin/dashboard/dashboard_controller.py
tiberiucorbu/av-website
f26f44a367d718316442506b130a7034697670b8
[ "MIT" ]
null
null
null
# coding: utf-8 from flask.ext import wtf import flask import wtforms import auth import config import model import util from main import app ############################################################################### # Admin Stuff ###############################################################################...
19.307692
79
0.482072
0
0
0
0
180
0.358566
0
0
241
0.48008
6dacede88291ab910c867a7b6ae2bd99b6b5522e
1,564
py
Python
scrape/views.py
naydeenmonzon/Maritime_Web_Tool
bc8203b9e62b19eaa93bc018f719004269b2eaee
[ "CC0-1.0" ]
null
null
null
scrape/views.py
naydeenmonzon/Maritime_Web_Tool
bc8203b9e62b19eaa93bc018f719004269b2eaee
[ "CC0-1.0" ]
null
null
null
scrape/views.py
naydeenmonzon/Maritime_Web_Tool
bc8203b9e62b19eaa93bc018f719004269b2eaee
[ "CC0-1.0" ]
null
null
null
from datetime import datetime from django.views.generic.base import TemplateView from django.shortcuts import get_object_or_404, render from django.urls import reverse from .models import MONTH_DICT, MONTH_LIST, YEARS,CARRIER_LIST from .forms import BSfilterForm from .main import _init_SCRAPER class HomePageView(T...
22.028169
65
0.680307
214
0.136829
0
0
0
0
0
0
303
0.193734
6dad2a388f6001f81a7db3ec98fd61ac8d241fec
935
py
Python
ncdoublescrape/__main__.py
hancush/ncdoublescrape
ea64277514ddff04e634bb464dd5ea6bf05226ae
[ "BSD-3-Clause" ]
null
null
null
ncdoublescrape/__main__.py
hancush/ncdoublescrape
ea64277514ddff04e634bb464dd5ea6bf05226ae
[ "BSD-3-Clause" ]
null
null
null
ncdoublescrape/__main__.py
hancush/ncdoublescrape
ea64277514ddff04e634bb464dd5ea6bf05226ae
[ "BSD-3-Clause" ]
null
null
null
import argparse import importlib import logging import sys logger = logging.getLogger() COMMAND_MODULES = ( 'ncdoublescrape.scrape', ) def main(): parser = argparse.ArgumentParser('ncds', description='A janky NCAA scraper') subparsers = parser.add_subparsers(dest='subcommand') subcommands = {} ...
23.375
84
0.637433
0
0
0
0
0
0
0
0
120
0.128342
6dada164e1de575c5db21cda78d63fcb6436eab8
33
py
Python
kick/device2/elektra/actions/constants.py
CiscoDevNet/firepower-kickstart
37a36856fcdc661e8c51edaa694e48f74cc6fcb5
[ "Apache-2.0" ]
2
2020-02-10T23:36:57.000Z
2020-03-25T15:46:05.000Z
kick/device2/elektra/actions/constants.py
CiscoDevNet/firepower-kickstart
37a36856fcdc661e8c51edaa694e48f74cc6fcb5
[ "Apache-2.0" ]
1
2020-08-07T13:01:32.000Z
2020-08-07T13:01:32.000Z
kick/device2/elektra/actions/constants.py
CiscoDevNet/firepower-kickstart
37a36856fcdc661e8c51edaa694e48f74cc6fcb5
[ "Apache-2.0" ]
1
2020-02-19T13:58:35.000Z
2020-02-19T13:58:35.000Z
class ElektraConstants: pass
11
23
0.757576
32
0.969697
0
0
0
0
0
0
0
0
6dae00c3441df190db00ecff9c3e1288ac41b72a
2,971
py
Python
deleteAllJobs.py
prelert/engine-python
7a8721fcf718a641acd945300ad9ba95d7cb8e52
[ "Apache-2.0" ]
36
2015-01-31T22:01:52.000Z
2019-04-15T14:29:30.000Z
deleteAllJobs.py
prelert/engine-python
7a8721fcf718a641acd945300ad9ba95d7cb8e52
[ "Apache-2.0" ]
2
2016-01-13T01:00:58.000Z
2016-01-13T01:05:44.000Z
deleteAllJobs.py
prelert/engine-python
7a8721fcf718a641acd945300ad9ba95d7cb8e52
[ "Apache-2.0" ]
18
2015-03-19T18:43:46.000Z
2020-05-05T12:28:02.000Z
#!/usr/bin/env python ############################################################################ # # # Copyright 2014 Prelert Ltd # # ...
34.546512
81
0.492763
0
0
0
0
0
0
0
0
1,743
0.586671
6dae65a4786c8a90f1445e3fa12402bbb4864e31
614
py
Python
Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codefights/arcade/python-arcade/level-3/23.Two-Teams/Python/test.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python3 from solution1 import twoTeams as f qa = [ ([1, 11, 13, 6, 14], 11), ([3, 4], -1), ([16, 14, 79, 8, 71, 72, 71, 10, 80, 76, 83, 70, 57, 29, 31], 209), ([23, 72, 54, 4, 88, 91, 8, 44], -38), ([23, 74, 57, 33, 61, 99, 19, 12, 19, 38, 77, 70, 20], -50) ] for *q, a ...
20.466667
65
0.415309
0
0
0
0
0
0
0
0
85
0.138436
6daefd5d0ce54a9298c815543a7ce9308e437d8f
5,037
py
Python
src/lambda_function.py
sd11/react-aws-s3-rekognition
f37ea4ef0242f8c650380ab0c060e0bddb4ff432
[ "Unlicense" ]
null
null
null
src/lambda_function.py
sd11/react-aws-s3-rekognition
f37ea4ef0242f8c650380ab0c060e0bddb4ff432
[ "Unlicense" ]
null
null
null
src/lambda_function.py
sd11/react-aws-s3-rekognition
f37ea4ef0242f8c650380ab0c060e0bddb4ff432
[ "Unlicense" ]
null
null
null
from __future__ import print_function import boto3 from decimal import Decimal import json import urllib from botocore.vendored import requests print('Loading function') rekognition = boto3.client('rekognition') s3 = boto3.resource("s3") # --------------- Helper Functions to call Rekognition APIs -----------------...
37.036765
153
0.596188
0
0
0
0
0
0
0
0
2,579
0.512011
6dafe2f9f75624f4e6bac8d36ece57fee0f45bc2
3,836
py
Python
main_server.py
tenzindayoe/example
edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89
[ "MIT" ]
null
null
null
main_server.py
tenzindayoe/example
edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89
[ "MIT" ]
null
null
null
main_server.py
tenzindayoe/example
edbee1fd1b6cbb55f6b02f82f972c3da46a4dd89
[ "MIT" ]
null
null
null
import socket import sqlite3 def Main(): port = 4000 s = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) print(socket.gethostbyaddr(socket.gethostname())) s.bind((socket.gethostbyaddr(),port)) print("Server started") while True: reg_db = sqlite3.connect("reg_db.db") reg_d...
29.282443
142
0.489572
0
0
0
0
0
0
0
0
1,015
0.264599
6db079b8869b4ec33596b58ada4916db98ed1a2a
759
py
Python
data_structures/stacks/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
1
2022-01-07T18:04:26.000Z
2022-01-07T18:04:26.000Z
data_structures/stacks/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
null
null
null
data_structures/stacks/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
null
null
null
from typing import Any class Stack: def __init__(self) -> None: self.stack = [] def stack_size(self) -> int: return len(self.stack) def is_empty(self) -> bool: return self.stack == [] # O(1) running time def push(self, data: Any) -> None: self.stack.append(data) ...
21.685714
59
0.59025
559
0.736495
0
0
0
0
0
0
228
0.300395
6db2c1ba2f0973e1c395b6375ee992a3997ea0f6
2,967
py
Python
mlib/boot/lang.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
1
2020-06-16T17:26:45.000Z
2020-06-16T17:26:45.000Z
mlib/boot/lang.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
mlib/boot/lang.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
import collections import os from pathlib import Path def setter(f): return property(None, f) enum = enumerate def esorted(l): return enum(sorted(l)) def cn(o): return o.__class__.__name__ def strcmp(s1, s2, ignore_case=False): if ignore_case: return s1.lower() == s2.lower() return s1 == s2 ...
20.894366
107
0.664307
0
0
0
0
0
0
0
0
177
0.059656
6db40aaa8cd6b1e406d9fcd14ef25634a3d1ada0
2,274
py
Python
db/division.py
leaffan/pynhldb
a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1
[ "MIT" ]
3
2017-02-01T15:37:23.000Z
2017-08-31T20:41:46.000Z
db/division.py
leaffan/pynhldb
a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1
[ "MIT" ]
41
2017-09-13T02:13:21.000Z
2018-11-07T03:29:39.000Z
db/division.py
leaffan/pynhldb
a0cdd56f0c21b866bfe62aa10b3dd205a9ec0ff1
[ "MIT" ]
1
2017-03-09T14:58:39.000Z
2017-03-09T14:58:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from .common import Base, session_scope from .team import Team class Division(Base): __tablename__ = 'divisions' __autoload__ = True HUMAN_READABLE = 'division' def __init__(self, name, season, teams, conference=None): self.divi...
30.32
78
0.575198
2,144
0.942832
0
0
647
0.284521
0
0
131
0.057608
6db421aa4d6562b0233d7c1b87bdca893ef23405
1,338
py
Python
tests/test_config.py
regro/runthis-server
26d6551560bd6ddabdb9b360ecd327460dfd779a
[ "BSD-3-Clause" ]
2
2019-11-13T23:19:13.000Z
2019-11-15T21:01:51.000Z
tests/test_config.py
regro/runthis-server
26d6551560bd6ddabdb9b360ecd327460dfd779a
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
regro/runthis-server
26d6551560bd6ddabdb9b360ecd327460dfd779a
[ "BSD-3-Clause" ]
null
null
null
import pytest from ruamel import yaml from runthis.server.config import Config, get_config_from_yaml @pytest.fixture def config_obj(tmpdir): return Config( tty_server="ttyd", command="xonsh", docker=False, docker_image="myimage", keyfile="/path/to/privkey.pem", ) def...
26.76
77
0.684604
0
0
0
0
774
0.578475
0
0
232
0.173393
6db4535a87906f105783cb4e0f22471fe703aef0
290
py
Python
src/constants.py
halilyaman/UlasimdaYapayZekaYarismasi
e9f024454470ad6f40653583f3d7f24cdd4f4fd9
[ "MIT" ]
1
2021-09-23T22:34:12.000Z
2021-09-23T22:34:12.000Z
src/constants.py
halilyaman/UlasimdaYapayZekaYarismasi
e9f024454470ad6f40653583f3d7f24cdd4f4fd9
[ "MIT" ]
null
null
null
src/constants.py
halilyaman/UlasimdaYapayZekaYarismasi
e9f024454470ad6f40653583f3d7f24cdd4f4fd9
[ "MIT" ]
null
null
null
# DISCLAIMER TO CONTEST TEAMS : DO NOT MAKE CHANGES IN THIS FILE. classes = { "Tasit": 0, "Insan": 1, "UAP": 2, "UAI": 3, } landing_statuses = { "Inilebilir": "1", "Inilemez": "0", "Inis Alani Degil": "-1" } base_url = "http://192.168.1.10:3000"
19.333333
67
0.527586
0
0
0
0
0
0
0
0
167
0.575862