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
4f0516d6a42f51c998184fee233eec9bb65f272a
427
py
Python
codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py
mohamedashrafamin/Training_one
11748fdde85cdc9083e2b0bde7519b51a7acfa62
[ "MIT" ]
null
null
null
codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py
mohamedashrafamin/Training_one
11748fdde85cdc9083e2b0bde7519b51a7acfa62
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/7kyu/mohamedashrafamin/Ultimate_Array_Reverser/test_bench.py
mohamedashrafamin/Training_one
11748fdde85cdc9083e2b0bde7519b51a7acfa62
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
from main import reverse, reverse1 def test1(benchmark): assert benchmark(reverse, ["I", "like", "big", "butts", "and", "I", "cannot", "lie!"]) == \ ["!", "eilt", "onn", "acIdn", "ast", "t", "ubgibe", "kilI"] def test(benchmark): assert benchmark(reverse1, ["I", "like", "big", "butts", "and", "I"...
32.846154
96
0.508197
0
0
0
0
0
0
0
0
181
0.423888
4f0673060aa2a1a406e83c4abf1c5a23f61d0412
226
py
Python
scripts/instagramy.py
lathropd/instanewsroom
2e78a490f7c37b34d7f3020a6fab2cfcf4ebd46a
[ "Artistic-2.0" ]
null
null
null
scripts/instagramy.py
lathropd/instanewsroom
2e78a490f7c37b34d7f3020a6fab2cfcf4ebd46a
[ "Artistic-2.0" ]
null
null
null
scripts/instagramy.py
lathropd/instanewsroom
2e78a490f7c37b34d7f3020a6fab2cfcf4ebd46a
[ "Artistic-2.0" ]
null
null
null
from instagram.client import InstagramAPI from pprint import pprint test_access_token = "1890268.7c3f1ab.e1c64ca8df38410099d98bff8a868bb6" api = InstagramAPI(access_token=test_access_token) pprint( api.user_recent_media())
25.111111
70
0.849558
0
0
0
0
0
0
0
0
50
0.221239
4f06852d79a4234cb404a8d1df2fcff4ed2b0dcb
2,356
py
Python
rodario/registry.py
haliphax/rodario
c31f9a99f80a19cd911edb61e86f4050003dbd90
[ "MIT" ]
4
2015-08-18T16:54:38.000Z
2021-02-21T13:07:08.000Z
rodario/registry.py
haliphax/rodario
c31f9a99f80a19cd911edb61e86f4050003dbd90
[ "MIT" ]
14
2015-08-29T06:04:52.000Z
2017-04-12T17:58:09.000Z
rodario/registry.py
haliphax/rodario
c31f9a99f80a19cd911edb61e86f4050003dbd90
[ "MIT" ]
2
2016-10-14T21:27:54.000Z
2017-05-07T12:59:08.000Z
""" Actor registry for rodario framework """ # local from rodario import get_redis_connection from rodario.exceptions import RegistrationException # pylint: disable=C1001 class _RegistrySingleton(object): """ Singleton for actor registry """ def __init__(self, prefix=None): """ Initialize t...
24.28866
70
0.604414
2,154
0.914261
0
0
180
0.076401
0
0
1,250
0.53056
4f080165a526d26946f0e9abfb0e9d778b0984e7
1,851
py
Python
research/recommend/Fat-DeepFFM/eval310.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/recommend/Fat-DeepFFM/eval310.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/recommend/Fat-DeepFFM/eval310.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 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...
31.913793
108
0.67477
0
0
0
0
0
0
0
0
843
0.455429
4f0807b07f68c7bfcd9808bf07ec2c1b431bde18
2,834
py
Python
organized/cli.py
lukeplausin/organised
d60e87e3ba94ad5d5673904e75f34eda9b471a43
[ "MIT" ]
null
null
null
organized/cli.py
lukeplausin/organised
d60e87e3ba94ad5d5673904e75f34eda9b471a43
[ "MIT" ]
null
null
null
organized/cli.py
lukeplausin/organised
d60e87e3ba94ad5d5673904e75f34eda9b471a43
[ "MIT" ]
null
null
null
import click import logging from . import logger, log_handler from .organize import main, ORGANIZER_NAMES from .storage.amazon_s3_storage import AWS_CLI_PARAMETERS @click.group() @click.option('--debug/--no-debug', default=False) def organize(debug=False): if debug: logger.setLevel(logging.DEBUG) ...
34.987654
94
0.711009
0
0
0
0
1,600
0.564573
0
0
1,031
0.363797
4f08474d84da7c04739199fefa825d37fe709888
5,798
py
Python
scripts/msresults.py
aw32/sched
b6ef35c5b517875a5954c70e2dc366fab3721a60
[ "BSD-2-Clause" ]
null
null
null
scripts/msresults.py
aw32/sched
b6ef35c5b517875a5954c70e2dc366fab3721a60
[ "BSD-2-Clause" ]
null
null
null
scripts/msresults.py
aw32/sched
b6ef35c5b517875a5954c70e2dc366fab3721a60
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019, Alex Wiens <awiens@mail.upb.de>, Achim Lösch <achim.loesch@upb.de> # SPDX-License-Identifier: BSD-2-Clause # Reads ms task measurement results from CSV files. # # If the path to the results is not given it is read from the following environment variables: # * SCHED_MSRESULTS ...
31.340541
126
0.666954
4,875
0.840662
0
0
0
0
0
0
1,931
0.332988
4f086a50fd782142ca6d65148089e454c15ce8c9
931
py
Python
py_temper_exporter/main.py
srl295/py-temper-exporter
e44249eaac63bae97babbddbe771c38c5bf9b708
[ "Apache-2.0" ]
null
null
null
py_temper_exporter/main.py
srl295/py-temper-exporter
e44249eaac63bae97babbddbe771c38c5bf9b708
[ "Apache-2.0" ]
null
null
null
py_temper_exporter/main.py
srl295/py-temper-exporter
e44249eaac63bae97babbddbe771c38c5bf9b708
[ "Apache-2.0" ]
null
null
null
import time from prometheus_client import start_http_server, Gauge, Enum from temper import Temper def main(): port = 9204 t = Temper() label_names = ['vendorid','productid','busnum','devnum'] temp_c = Gauge('temper_internal_temperature_celsius', 'Temperature in °C', label_names) humid = Gauge('tem...
35.807692
91
0.625134
0
0
0
0
0
0
0
0
264
0.283262
4f0910b1680523eb838126b34d6516b834cc9d25
217
py
Python
test/test_mssql.py
samirsilwal/pyodbc
53f6bd17fe52a180729b4f0db2201a569f697582
[ "MIT" ]
20
2019-11-22T02:47:37.000Z
2022-03-18T19:25:28.000Z
test/test_mssql.py
samirsilwal/pyodbc
53f6bd17fe52a180729b4f0db2201a569f697582
[ "MIT" ]
29
2019-09-09T07:17:19.000Z
2020-08-06T04:18:13.000Z
test/test_mssql.py
samirsilwal/pyodbc
53f6bd17fe52a180729b4f0db2201a569f697582
[ "MIT" ]
19
2019-09-30T18:36:24.000Z
2022-01-04T16:53:42.000Z
''' Tests for MSSQL. ''' from util import exec_query, MSSQL def test_connection(): ''' Test connection to MSSQL Server. ''' result = exec_query(MSSQL, "SELECT 'It works!'") assert result == 'It works!'
21.7
52
0.645161
0
0
0
0
0
0
0
0
95
0.437788
4f0960ee0a22ce87b6a0db2ab3c9c96334279396
61,597
py
Python
fraunhofer/specfit.py
dnidever/fraunhofer
49d34ff879501ce0e959f06046e2f32b0ee7ca43
[ "MIT" ]
null
null
null
fraunhofer/specfit.py
dnidever/fraunhofer
49d34ff879501ce0e959f06046e2f32b0ee7ca43
[ "MIT" ]
null
null
null
fraunhofer/specfit.py
dnidever/fraunhofer
49d34ff879501ce0e959f06046e2f32b0ee7ca43
[ "MIT" ]
null
null
null
#!/usr/bin/env python """SPECFIT.PY - Generic stellar abundance determination software """ from __future__ import print_function __authors__ = 'David Nidever <dnidever@montana.edu>' __version__ = '20200711' # yyyymmdd import os import shutil import contextlib, io, sys import numpy as np import warnings from astro...
37.720147
157
0.572674
10,974
0.178118
0
0
483
0.00784
0
0
20,710
0.336141
4f09d6a22b4bd4f753a23f83daa8bf2c0724d4b9
2,832
py
Python
src/split_data.py
sunsiche/DSCI522-2020-g22
bf13a13a47053496fc68a624240b4d81071b60b0
[ "MIT" ]
null
null
null
src/split_data.py
sunsiche/DSCI522-2020-g22
bf13a13a47053496fc68a624240b4d81071b60b0
[ "MIT" ]
30
2020-11-19T00:03:14.000Z
2020-12-15T07:32:34.000Z
src/split_data.py
sunsiche/DSCI522-2020-g22
bf13a13a47053496fc68a624240b4d81071b60b0
[ "MIT" ]
5
2020-11-18T22:21:40.000Z
2020-11-28T15:13:48.000Z
# author: Kevin Shahnazari # date: 2020-11-25 """ This script Splits the raw cleaned data to train and test splits based on the user input and saves them into two separate csv files Usage: clean_data.py --input_file_path=<input_file_path> --saving_path_train=<saving_path_train> --saving_path_test=<saving_path_test>...
31.820225
161
0.673376
0
0
0
0
0
0
0
0
1,778
0.627825
4f0a3de229c7c8c0a0849ab5caedb8c1a65f7b3b
3,607
py
Python
minerva/controllers/dataset.py
takuseno/minerva
c073cd309e84bf1785de8f5b8b5d46d3599d1010
[ "MIT" ]
68
2020-09-09T04:22:35.000Z
2022-03-20T10:15:51.000Z
minerva/controllers/dataset.py
takuseno/minerva
c073cd309e84bf1785de8f5b8b5d46d3599d1010
[ "MIT" ]
3
2021-05-15T03:15:47.000Z
2021-07-09T21:35:22.000Z
minerva/controllers/dataset.py
takuseno/minerva
c073cd309e84bf1785de8f5b8b5d46d3599d1010
[ "MIT" ]
5
2020-09-09T02:35:10.000Z
2022-03-04T02:23:00.000Z
import base64 import json import os import tempfile import uuid import zipfile from io import BytesIO import werkzeug from flask import Blueprint, jsonify, request from ..config import get_config from ..dataset import convert_ndarray_to_image, import_csv_as_mdp_dataset from ..models.dataset import Dataset, DatasetSch...
31.365217
78
0.667868
0
0
0
0
3,128
0.867203
0
0
631
0.174938
4f0a4e418f04b1eac7667ced923ca16a38945606
234
py
Python
onos_ric_sdk_py/__init__.py
MatthewWEdwards/onos-ric-sdk-py
2c38542616b8c0d087315b05f12de6eefb2bb3f3
[ "Apache-2.0" ]
null
null
null
onos_ric_sdk_py/__init__.py
MatthewWEdwards/onos-ric-sdk-py
2c38542616b8c0d087315b05f12de6eefb2bb3f3
[ "Apache-2.0" ]
null
null
null
onos_ric_sdk_py/__init__.py
MatthewWEdwards/onos-ric-sdk-py
2c38542616b8c0d087315b05f12de6eefb2bb3f3
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org> # SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from .e2 import E2Client, Subscription from .sdl import SDLClient
29.25
88
0.816239
0
0
0
0
0
0
0
0
126
0.53617
4f0cae19f8a210a02c51f07cf3ab2e800f500a42
11,936
py
Python
bump_release/__init__.py
frague59/bump-release
e1f0ae5c971075901fa4205dc6e85dfb14e160a2
[ "MIT" ]
null
null
null
bump_release/__init__.py
frague59/bump-release
e1f0ae5c971075901fa4205dc6e85dfb14e160a2
[ "MIT" ]
null
null
null
bump_release/__init__.py
frague59/bump-release
e1f0ae5c971075901fa4205dc6e85dfb14e160a2
[ "MIT" ]
null
null
null
""" Update release numbers in various places, according to a release.ini file places at the project root """ import configparser import logging import sys from configparser import ConfigParser from pathlib import Path from typing import Optional, Tuple import click from bump_release import helpers from bump_release.h...
37.652997
119
0.683311
0
0
0
0
1,594
0.133546
0
0
4,428
0.370979
4f0d4ff16fed95ed4b85490e43c5507bd62fbc4e
1,748
py
Python
sense/core.py
pygeo/sense
4610fe5247cfba04124a30a7d3db33ea1feb8c80
[ "Apache-2.0" ]
1
2020-05-27T07:05:04.000Z
2020-05-27T07:05:04.000Z
sense/core.py
pygeo/sense
4610fe5247cfba04124a30a7d3db33ea1feb8c80
[ "Apache-2.0" ]
6
2017-06-23T18:11:32.000Z
2017-06-30T04:35:22.000Z
sense/core.py
pygeo/sense
4610fe5247cfba04124a30a7d3db33ea1feb8c80
[ "Apache-2.0" ]
3
2017-07-25T11:48:39.000Z
2020-09-28T05:13:24.000Z
import numpy as np import matplotlib.pyplot as plt class Fresnel0(object): def __init__(self, e): """ calculate the Nadir Fresnel reflectivity e.g. Ulaby (2014), eq. 10.36 Parameters ---------- e : complex complex relative dielectric permitivity ...
22.701299
92
0.540618
1,678
0.959954
0
0
0
0
0
0
685
0.391876
877bfe2267259aa2db8872716813b19fd65e5f86
6,319
py
Python
src/cs_519_files/ML_Project_v1.0.py
CJCascalheira/ml-gender-dysphoria
2b20c19020342bd5b3c09aa0c107f26770aa541c
[ "MIT" ]
null
null
null
src/cs_519_files/ML_Project_v1.0.py
CJCascalheira/ml-gender-dysphoria
2b20c19020342bd5b3c09aa0c107f26770aa541c
[ "MIT" ]
null
null
null
src/cs_519_files/ML_Project_v1.0.py
CJCascalheira/ml-gender-dysphoria
2b20c19020342bd5b3c09aa0c107f26770aa541c
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import nltk from nltk.corpus import stopwords from nltk.tokenize import word_tokenize import matplotlib.pyplot as plt import contractions # Expanding contractions from nltk.stem.wordnet import WordNetLemmatizer from sklearn.model_selection import tr...
33.08377
140
0.59424
0
0
0
0
0
0
0
0
2,723
0.430174
877c2a87452398113982e4fe50b67db15a8d4d93
796
py
Python
applications/startupconfort/templatetags/item_extra.py
guinslym/python-color-palette
3643e4d1d7d12f9a57b130337f50ee4e072ea08f
[ "MIT" ]
null
null
null
applications/startupconfort/templatetags/item_extra.py
guinslym/python-color-palette
3643e4d1d7d12f9a57b130337f50ee4e072ea08f
[ "MIT" ]
null
null
null
applications/startupconfort/templatetags/item_extra.py
guinslym/python-color-palette
3643e4d1d7d12f9a57b130337f50ee4e072ea08f
[ "MIT" ]
null
null
null
from django import template import datetime from applications.startupconfort.models import CartItem #https://github.com/guinslym/mywadiyabi/blob/master/applications/wadiyabi/templatetags/registration.py register = template.Library() @register.filter def replace_commas(string): return string.replace(',', '_') ...
26.533333
114
0.704774
0
0
0
0
553
0.694724
0
0
157
0.197236
877c7d49d1b9f81b157093af1820422a112322bb
4,069
py
Python
main.py
artin222/Password-generator
7649377b578267b899737b4f7d312bc2b489cc0e
[ "MIT" ]
1
2021-11-20T13:47:27.000Z
2021-11-20T13:47:27.000Z
main.py
artin222/Password-generator
7649377b578267b899737b4f7d312bc2b489cc0e
[ "MIT" ]
null
null
null
main.py
artin222/Password-generator
7649377b578267b899737b4f7d312bc2b489cc0e
[ "MIT" ]
null
null
null
from csv import reader , writer from random import randrange #These are lists of characters that program can use to generate password smlLetters = ["a" , "b" , "c" , "d" , "e" , "f" , "g" , "h" , "i" , "j" , "k" , "l" , "m" , "n" , "o" , "p" , "q" , "r" , "s" , "t" , "u" , "v" , "w" , "x" , "y" , "z"] capLetters = [...
42.831579
141
0.632834
0
0
0
0
0
0
0
0
1,572
0.386336
877c8d0d7d7e4e7123818535f0c941d6e42050fa
328
py
Python
prefect/token_test.py
kvnkho/demos
c8c33993e00baf6a25d0ffdc44db924b327cbffa
[ "MIT" ]
13
2021-05-13T23:07:17.000Z
2022-03-19T00:00:41.000Z
prefect/token_test.py
kvnkho/demos
c8c33993e00baf6a25d0ffdc44db924b327cbffa
[ "MIT" ]
null
null
null
prefect/token_test.py
kvnkho/demos
c8c33993e00baf6a25d0ffdc44db924b327cbffa
[ "MIT" ]
7
2021-06-16T18:16:55.000Z
2022-03-21T03:34:43.000Z
from prefect import task, Flow, Parameter from prefect.tasks.prefect import StartFlowRun from prefect.storage import GitHub with Flow("token-test") as flow: StartFlowRun(project_name="testing", flow_name="flow_must_fail")() flow.storage = GitHub(repo="kvnkho/demos", path="/prefect/token_test.py") flow.register("t...
36.444444
73
0.780488
0
0
0
0
0
0
0
0
84
0.256098
877caa671ed5d222230ea90a669e72fef113794e
792
py
Python
setup.py
turbolent/spacy-thrift
9b45caca91ae7ceb1e790c5467f994c6b2d9ecef
[ "MIT" ]
5
2017-06-15T05:19:48.000Z
2021-11-21T16:17:14.000Z
setup.py
turbolent/spacy-thrift
9b45caca91ae7ceb1e790c5467f994c6b2d9ecef
[ "MIT" ]
null
null
null
setup.py
turbolent/spacy-thrift
9b45caca91ae7ceb1e790c5467f994c6b2d9ecef
[ "MIT" ]
1
2020-01-25T21:46:22.000Z
2020-01-25T21:46:22.000Z
#!/usr/bin/env python from setuptools import setup with open('README.md') as f: long_description = f.read() setup(name='spacy-thrift', version='0.5.0', description='spaCy-as-a-service using Thrift', long_description=long_description, long_description_content_type="text/markdown", ke...
28.285714
54
0.602273
0
0
0
0
0
0
0
0
359
0.453283
877cfe2e99691a97f1e6e9c1d95453bf03ed6513
471
py
Python
swexpert/d3/sw_2817_1.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
swexpert/d3/sw_2817_1.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
swexpert/d3/sw_2817_1.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
test_cases = int(input().strip()) def sum_sub_nums(idx, value): global result if value == K: result += 1 return if value > K or idx >= N: return sum_sub_nums(idx + 1, value) sum_sub_nums(idx + 1, value + nums[idx]) for t in range(1, test_cases + 1): N, K = map(int, i...
21.409091
50
0.556263
0
0
0
0
0
0
0
0
8
0.016985
877d10e737235988632bc1400d9926fa9155da16
1,463
py
Python
data_action/data_loader.py
namanshrimali/simplif-ai
d4178bd2d82dd651789904f4889c99f0929c8578
[ "MIT" ]
null
null
null
data_action/data_loader.py
namanshrimali/simplif-ai
d4178bd2d82dd651789904f4889c99f0929c8578
[ "MIT" ]
null
null
null
data_action/data_loader.py
namanshrimali/simplif-ai
d4178bd2d82dd651789904f4889c99f0929c8578
[ "MIT" ]
null
null
null
from data_action.transformations import * class Data_Loader: def __init__(self, device, batch_size, dataset, mean, std, transform_type='pmda'): self.device = device self.batch_size = batch_size self.transform_type = transform_type self.dataset = dataset self.kwargs = {'num_w...
40.638889
157
0.607656
1,419
0.969925
0
0
0
0
0
0
195
0.133288
877ea49df20cc55a5d0735462644f88406735b14
291
py
Python
src/dots/token.py
Mokin711/dots-python
6bc0c98daa331302df9c9829a7579be6e1bd828c
[ "MIT" ]
1
2021-06-14T18:43:53.000Z
2021-06-14T18:43:53.000Z
src/dots/token.py
Mokin711/dots-python
6bc0c98daa331302df9c9829a7579be6e1bd828c
[ "MIT" ]
1
2021-11-15T21:33:27.000Z
2021-11-16T19:22:34.000Z
src/dots/token.py
Mokin711/dots-python
6bc0c98daa331302df9c9829a7579be6e1bd828c
[ "MIT" ]
1
2022-02-09T19:39:15.000Z
2022-02-09T19:39:15.000Z
import base64 import dots def get_auth_token(): if dots.client_id == None or dots.api_key == None: raise AssertionError('api_key and/or client_id not set') token = base64.b64encode(bytes(dots.client_id + ':' + dots.api_key, 'utf-8')).decode('utf-8') return token
24.25
97
0.670103
0
0
0
0
0
0
0
0
51
0.175258
877eab8db5158dc55512e44d21ca46730b5e208f
946
py
Python
setup.py
ctsit/lineman
d90e876d70fbc3d6ca18425d2748d70eb00ab485
[ "Apache-2.0" ]
null
null
null
setup.py
ctsit/lineman
d90e876d70fbc3d6ca18425d2748d70eb00ab485
[ "Apache-2.0" ]
2
2017-05-23T18:45:01.000Z
2017-09-26T17:02:34.000Z
setup.py
ctsit/lineman
d90e876d70fbc3d6ca18425d2748d70eb00ab485
[ "Apache-2.0" ]
3
2017-04-28T13:35:34.000Z
2017-05-16T14:01:13.000Z
from setuptools import setup #bring in __version__ from sourcecode #per https://stackoverflow.com/a/17626524 #and https://stackoverflow.com/a/2073599 with open('lineman/version.py') as ver: exec(ver.read()) setup(name='lineman', version=__version__, description='Lineman fixes data problems that will ...
32.62069
97
0.598309
0
0
0
0
0
0
0
0
500
0.528541
877f7ac996e50b2661470b15b06e9881cac05a69
2,266
py
Python
main.py
a2824256/pyrealsense_collection
75e931f1744138b10336a3a62eb569b352ef171d
[ "MIT" ]
null
null
null
main.py
a2824256/pyrealsense_collection
75e931f1744138b10336a3a62eb569b352ef171d
[ "MIT" ]
null
null
null
main.py
a2824256/pyrealsense_collection
75e931f1744138b10336a3a62eb569b352ef171d
[ "MIT" ]
null
null
null
import png import pyrealsense2 as rs import logging logging.basicConfig(level=logging.INFO) import numpy as np import cv2 import os def make_directories(): if not os.path.exists("JPEGImages/"): os.makedirs("JPEGImages/") if not os.path.exists("depth/"): os.makedirs("depth/") if not os.path....
30.621622
71
0.609003
0
0
0
0
0
0
0
0
154
0.067961
877f91e2ba9ede10de324960019c237eee7ed5b7
1,711
py
Python
VoC/Librispeech_enhancement/use_model.py
dugudongfangshuo/DeepLearn
c9689abedd7f6de0efd4effffb204aa32a8e4ef3
[ "Apache-2.0" ]
1
2021-07-20T06:44:05.000Z
2021-07-20T06:44:05.000Z
VoC/Librispeech_enhancement/use_model.py
dugudongfangshuo/DeepLearn
c9689abedd7f6de0efd4effffb204aa32a8e4ef3
[ "Apache-2.0" ]
null
null
null
VoC/Librispeech_enhancement/use_model.py
dugudongfangshuo/DeepLearn
c9689abedd7f6de0efd4effffb204aa32a8e4ef3
[ "Apache-2.0" ]
null
null
null
import torch import speechbrain as sb from hyperpyyaml import load_hyperpyyaml hparams_file, overrides = 'train.yaml','' PATH = './results/4234/save/CKPT+2021-04-17+16-05-06+00/model.ckpt' # 加载超参数文件 with open(hparams_file) as fin: hparams = load_hyperpyyaml(fin, overrides) # 加载模型 model=hparams["model"] model=mode...
24.442857
77
0.725891
0
0
0
0
0
0
0
0
693
0.378069
877f98e93dce8cdcf07b8ca45bcea83be78b902e
3,737
py
Python
vit_jax/inference_time.py
fensence/Mixup-VT
50eebaa04ffc974ecce4fac4a631d75a3f2361cc
[ "Apache-2.0" ]
4,825
2020-10-21T12:35:18.000Z
2022-03-31T13:35:21.000Z
vit_jax/inference_time.py
fensence/Mixup-VT
50eebaa04ffc974ecce4fac4a631d75a3f2361cc
[ "Apache-2.0" ]
154
2020-10-23T14:49:48.000Z
2022-03-21T13:19:01.000Z
vit_jax/inference_time.py
fensence/Mixup-VT
50eebaa04ffc974ecce4fac4a631d75a3f2361cc
[ "Apache-2.0" ]
681
2020-10-23T01:34:20.000Z
2022-03-30T05:51:57.000Z
# Copyright 2021 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.932692
77
0.730265
0
0
0
0
296
0.079208
0
0
1,268
0.33931
87823ea34fec0208210e9f22e5e30fc8a7e93695
52
py
Python
vpos/exceptions.py
txiocoder/django-vpos
7ee39c7b90675689b0b1b9c83767d48149da539a
[ "MIT" ]
3
2021-11-18T16:31:05.000Z
2022-01-21T13:41:58.000Z
vpos/exceptions.py
txiocoder/django-vpos
7ee39c7b90675689b0b1b9c83767d48149da539a
[ "MIT" ]
1
2021-11-22T19:11:38.000Z
2021-11-22T20:21:29.000Z
vpos/exceptions.py
txiocoder/django-vpos
7ee39c7b90675689b0b1b9c83767d48149da539a
[ "MIT" ]
null
null
null
class VposConfigurationError(Exception): pass
10.4
40
0.769231
49
0.942308
0
0
0
0
0
0
0
0
87829589d5f65d2ab2ae28e5f39a9cb66fefb9e4
629
py
Python
PythonExercicios/ex039.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex039.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
PythonExercicios/ex039.py
lordvinick/Python
c03fd08d4c204104bf0196b0bd129427fd2067ae
[ "MIT" ]
null
null
null
print('\033[36m='*12, '\033[32mAlistamento Militar', '\033[36m='*12) from datetime import date ano = int(input('Em que ano você nasceu? ')) atual = date.today().year idade = atual - ano print(f'Você tem \033[32m{idade} \033[36manos em \033[32m{atual}.') if idade == 18: print('\033[36mTa na hora de se alistar.') eli...
48.384615
144
0.682035
0
0
0
0
0
0
0
0
432
0.680315
8783f86fdd42c8b014bb807d8e86e286c8b1658b
2,548
py
Python
code/stats/dim_reduction.py
wethepeopleonline/law-net
e8b01136360078c89b666e2b127672644ed0c54b
[ "MIT" ]
17
2016-09-02T19:39:11.000Z
2021-11-15T21:22:48.000Z
code/stats/dim_reduction.py
wethepeopleonline/law-net
e8b01136360078c89b666e2b127672644ed0c54b
[ "MIT" ]
7
2016-09-04T17:19:13.000Z
2017-01-19T19:17:10.000Z
code/stats/dim_reduction.py
idc9/law-net
e8b01136360078c89b666e2b127672644ed0c54b
[ "MIT" ]
8
2017-01-19T04:24:09.000Z
2021-09-13T20:22:58.000Z
import numpy as np from scipy import stats import pandas as pd from sklearn.cross_decomposition import PLSRegression def standardize_vector(v, center=True, scale=False): if center: v = v - np.mean(v) if scale: if np.std(v) == 0: return v else: return (v + 0.0)...
25.227723
77
0.582418
0
0
0
0
0
0
0
0
807
0.316719
8784142013ef93ac4ae61c954de934c0b7a1cd9b
2,247
py
Python
cloudmarker/test/test_azwebapphttp20event.py
TinLe/cloudmarker
29698420457a86d5d8a0bac156bc98bd656198e1
[ "MIT" ]
208
2019-04-10T05:15:11.000Z
2022-03-16T17:41:29.000Z
cloudmarker/test/test_azwebapphttp20event.py
TinLe/cloudmarker
29698420457a86d5d8a0bac156bc98bd656198e1
[ "MIT" ]
88
2018-12-17T18:24:13.000Z
2021-05-15T04:19:53.000Z
cloudmarker/test/test_azwebapphttp20event.py
TinLe/cloudmarker
29698420457a86d5d8a0bac156bc98bd656198e1
[ "MIT" ]
15
2019-01-03T04:18:33.000Z
2021-06-03T09:24:31.000Z
"""Tests for AzWebAppHttp20Event plugin.""" import copy import unittest from cloudmarker.events import azwebapphttp20event base_record = { 'ext': { 'record_type': 'web_app_config', 'cloud_type': 'azure', 'http20_enabled': True }, 'com': { 'cloud_type': 'azure' } }...
32.565217
59
0.640854
1,923
0.855808
0
0
0
0
0
0
377
0.167779
8784b5c8526896e5048632a3a82e5b228aabb640
31,270
gyp
Python
build/pomdog.gyp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
build/pomdog.gyp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
build/pomdog.gyp
bis83/pomdog
133a9262958d539ae6d93664e6cb2207b5b6c7ff
[ "MIT" ]
null
null
null
{ 'includes': ['common.gypi'], 'conditions': [ ['OS == "win"', { 'variables': { 'application_platform%': 'Win32', 'renderers%': ['Direct3D11', 'GL4'], 'audio%': 'XAudio2', 'input_devices%': ['DirectInput'], }, }], ['OS == "mac"', { 'variables': { ...
41.362434
78
0.620979
0
0
0
0
0
0
0
0
24,229
0.774832
8786ee9f99a430b3faffc52d450268f38a85e338
368
py
Python
pythonforandroid/recipes/android/__init__.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
1
2015-06-09T21:12:09.000Z
2015-06-09T21:12:09.000Z
pythonforandroid/recipes/android/__init__.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
null
null
null
pythonforandroid/recipes/android/__init__.py
inclement/p4a-experiment
4e120e08cc3c33af89948307628c8b28fdf76b87
[ "MIT" ]
null
null
null
from pythonforandroid.toolchain import CythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour import sh from os.path import exists, join class AndroidRecipe(IncludedFilesBehaviour, CythonRecipe): # name = 'android' version = None url = None depends = ['pygame'] ...
23
128
0.75
165
0.44837
0
0
0
0
0
0
31
0.084239
878807ddada6f3595dcfacaf864041d2dd562b4d
2,811
py
Python
sportcred/backend/resources/userComments.py
aviral25/SportCredAPP
68c8a81d316b6d949ec065fd9ee8d2d0845b031c
[ "MIT" ]
null
null
null
sportcred/backend/resources/userComments.py
aviral25/SportCredAPP
68c8a81d316b6d949ec065fd9ee8d2d0845b031c
[ "MIT" ]
null
null
null
sportcred/backend/resources/userComments.py
aviral25/SportCredAPP
68c8a81d316b6d949ec065fd9ee8d2d0845b031c
[ "MIT" ]
null
null
null
from flask_restful import Resource from flask import request, Blueprint, jsonify from models import db, Post, Comment from datetime import datetime commentBp = Blueprint('commentBp', __name__) class UserComments(): @commentBp.route("/addComment", methods=['POST']) def addComment(): json_data = re...
34.703704
77
0.581999
2,616
0.93063
0
0
2,559
0.910352
0
0
489
0.173959
8789474f74a671f6ddfeccf4cb104d024e738101
32
py
Python
poetry/console/commands/cache/__init__.py
hongquan/poetry
d12f6421b1c34067e3968ddec2d821ae7f316af7
[ "MIT" ]
1
2020-12-22T12:51:11.000Z
2020-12-22T12:51:11.000Z
poetry/console/commands/cache/__init__.py
hongquan/poetry
d12f6421b1c34067e3968ddec2d821ae7f316af7
[ "MIT" ]
null
null
null
poetry/console/commands/cache/__init__.py
hongquan/poetry
d12f6421b1c34067e3968ddec2d821ae7f316af7
[ "MIT" ]
null
null
null
from .cache import CacheCommand
16
31
0.84375
0
0
0
0
0
0
0
0
0
0
878978a0b479e9b1eb623ecca1b047a1ad925fe1
6,660
py
Python
aalpy/utils/AutomatonGenerators.py
MDrey101/AALpy
bd8a4994db6c27438db61a3247ae404fc6e4074b
[ "MIT" ]
61
2021-04-01T10:38:52.000Z
2022-03-28T13:44:23.000Z
aalpy/utils/AutomatonGenerators.py
MDrey101/AALpy
bd8a4994db6c27438db61a3247ae404fc6e4074b
[ "MIT" ]
16
2021-04-03T20:14:08.000Z
2022-02-16T10:21:48.000Z
aalpy/utils/AutomatonGenerators.py
haubitzer/AALpy
e5b51742d886d5c5c72ab3e9c20eb349c56e2469
[ "MIT" ]
9
2021-04-05T13:43:17.000Z
2022-03-09T14:06:17.000Z
import random from aalpy.automata import Dfa, DfaState, MdpState, Mdp, MealyMachine, MealyState, \ MooreMachine, MooreState, OnfsmState, Onfsm, MarkovChain, McState from aalpy.utils.HelperFunctions import random_string_generator def generate_random_mealy_machine(num_states, input_alphabet, output_alphabet, compu...
30.135747
119
0.651652
0
0
0
0
0
0
0
0
1,657
0.248799
878c2f822d6aa9a6f51618cb1ba0c0ab5a958df0
4,104
py
Python
tools/_init.py
zhengshou/AutoLoc
82c7e51a28eb740a8f002a460ce5c918fc61731b
[ "MIT" ]
84
2018-09-03T02:40:04.000Z
2022-03-01T15:17:57.000Z
tools/_init.py
zhengshou/AutoLoc
82c7e51a28eb740a8f002a460ce5c918fc61731b
[ "MIT" ]
10
2018-10-15T22:42:53.000Z
2020-05-17T01:23:06.000Z
tools/_init.py
zhengshou/AutoLoc
82c7e51a28eb740a8f002a460ce5c918fc61731b
[ "MIT" ]
19
2018-12-29T01:32:32.000Z
2022-01-26T16:36:49.000Z
import os import sys import os.path as osp from contextlib import contextmanager ############################################################ # Setup path def add_path(path): if path not in sys.path: sys.path.insert(0, path) curdir = osp.dirname(__file__) lib_path = osp.join(curdir, '..', 'lib') add_...
31.813953
83
0.595517
0
0
137
0.033382
153
0.037281
0
0
1,335
0.325292
878d22338b37587b5be27d20237c97a67a7ed572
618
py
Python
chap4/exchange_keys_and_values.py
marble-git/python-laoqi
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
[ "MIT" ]
null
null
null
chap4/exchange_keys_and_values.py
marble-git/python-laoqi
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
[ "MIT" ]
null
null
null
chap4/exchange_keys_and_values.py
marble-git/python-laoqi
74c4bb5459113e54ce64443e5da5a9c6a3052d6a
[ "MIT" ]
null
null
null
#coding:utf-8 ''' filename:exchange_keys_and_values.py chap:4 subject:10 conditions:a dict solution:exchanged keys and values ''' origin_dict = {'book':['python','djang','data'],'author':'laoqi','publisher':'phei'} def ishashable(obj): try: hash(obj) return True exce...
17.166667
84
0.619741
0
0
0
0
0
0
0
0
272
0.440129
878d43b49692a27640a8a1fd757b78585e00815a
760
py
Python
datadog_checks_dev/tests/test_subprocess.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
datadog_checks_dev/tests/test_subprocess.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
datadog_checks_dev/tests/test_subprocess.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2021-06-21T19:21:51.000Z
2021-06-21T19:21:51.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import sys from datadog_checks.dev.subprocess import run_command class TestRunCommand: def test_output(self): result = run_command( '{} -c "import sys;print(sys.version)"'.form...
26.206897
90
0.6
574
0.755263
0
0
0
0
0
0
237
0.311842
878e2e53576e2b93158335b6f62791d259a663a0
186
py
Python
output/models/ms_data/datatypes/facets/any_uri/any_uri_b002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ms_data/datatypes/facets/any_uri/any_uri_b002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ms_data/datatypes/facets/any_uri/any_uri_b002_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.ms_data.datatypes.facets.any_uri.any_uri_b002_xsd.any_uri_b002 import ( Bar, Ct, Root, St, ) __all__ = [ "Bar", "Ct", "Root", "St", ]
13.285714
90
0.580645
0
0
0
0
0
0
0
0
19
0.102151
878e9c375065b11c93ecd7ccacefc88bd6387185
3,476
py
Python
tests/fixtures/statement_lists.py
TylerYep/wolfbot
8d4786ce9542bab344b227e0571bb24bc354298d
[ "MIT" ]
3
2018-06-16T00:03:30.000Z
2021-12-26T20:48:45.000Z
tests/fixtures/statement_lists.py
TylerYep/wolfbot
8d4786ce9542bab344b227e0571bb24bc354298d
[ "MIT" ]
null
null
null
tests/fixtures/statement_lists.py
TylerYep/wolfbot
8d4786ce9542bab344b227e0571bb24bc354298d
[ "MIT" ]
2
2021-03-03T09:31:35.000Z
2021-03-03T10:02:55.000Z
import pytest from wolfbot.enums import Role, SwitchPriority from wolfbot.statements import Statement @pytest.fixture(scope="session") def example_statement() -> Statement: return Statement( "test", ((2, frozenset({Role.ROBBER})), (0, frozenset({Role.SEER}))), ((SwitchPriority.ROBBER, 2, ...
35.469388
75
0.52244
0
0
0
0
3,361
0.966916
0
0
813
0.23389
8791411f9352e21475daedce2828ad0066226068
419
py
Python
ranking/migrations/0056_auto_20201128_2316.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
166
2019-05-16T23:46:08.000Z
2022-03-31T05:20:23.000Z
ranking/migrations/0056_auto_20201128_2316.py
horacexd/clist
9759dfea97b86514bec9825d2430abc36decacf0
[ "Apache-2.0" ]
92
2020-01-18T22:51:53.000Z
2022-03-12T01:23:57.000Z
ranking/migrations/0056_auto_20201128_2316.py
VadVergasov/clist
4afcdfe88250d224043b28efa511749347cec71c
[ "Apache-2.0" ]
23
2020-02-09T17:38:43.000Z
2021-12-09T14:39:07.000Z
# Generated by Django 2.2.13 on 2020-11-28 23:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ranking', '0055_auto_20201009_0735'), ] operations = [ migrations.AddIndex( model_name='statistics', index=models.I...
23.277778
107
0.637232
325
0.775656
0
0
0
0
0
0
150
0.357995
879159c7ecfa20cd2c5df431af5a9c4a1ec6e23d
489
py
Python
aioboto3/resources/base.py
dacevedo12/aioboto3
289e08d7778dcbfa520c2fdd889206a9e98575be
[ "Apache-2.0" ]
null
null
null
aioboto3/resources/base.py
dacevedo12/aioboto3
289e08d7778dcbfa520c2fdd889206a9e98575be
[ "Apache-2.0" ]
null
null
null
aioboto3/resources/base.py
dacevedo12/aioboto3
289e08d7778dcbfa520c2fdd889206a9e98575be
[ "Apache-2.0" ]
null
null
null
import logging import warnings from boto3.resources.base import ServiceResource logger = logging.getLogger(__name__) class AIOBoto3ServiceResource(ServiceResource): async def __aenter__(self): return self async def __aexit__(self, exc_type, exc_val, exc_tb): await self.meta.client.__aexit__...
25.736842
78
0.738241
367
0.750511
0
0
0
0
168
0.343558
35
0.071575
8791725d30f44e82a659356c39e4c7bccfcfd512
11,728
py
Python
AdvBox/examples/utils.py
Tough2011/PaddleSleeve
e654598a370220fbbc96ae527833676183909383
[ "Apache-2.0" ]
2
2022-02-24T08:47:04.000Z
2022-02-24T08:47:13.000Z
AdvBox/examples/utils.py
Tough2011/PaddleSleeve
e654598a370220fbbc96ae527833676183909383
[ "Apache-2.0" ]
null
null
null
AdvBox/examples/utils.py
Tough2011/PaddleSleeve
e654598a370220fbbc96ae527833676183909383
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. 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 appli...
29.541562
126
0.612892
369
0.031463
0
0
0
0
0
0
4,630
0.394782
87930ac2ba2d5084ba1fa7dbb011e1fe84ad4946
399
py
Python
shield.com/metahumans/validators.py
euribates/curso-django
06f71a7d5b239e294c0cc6b3972861ed8d1c59d0
[ "CC-BY-4.0" ]
1
2020-04-14T11:08:11.000Z
2020-04-14T11:08:11.000Z
shield.com/metahumans/validators.py
euribates/curso-django
06f71a7d5b239e294c0cc6b3972861ed8d1c59d0
[ "CC-BY-4.0" ]
null
null
null
shield.com/metahumans/validators.py
euribates/curso-django
06f71a7d5b239e294c0cc6b3972861ed8d1c59d0
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from django.core.exceptions import ValidationError def between_zero_and_one_hundred(value): if value < 0 or value > 100: ...
26.6
78
0.774436
0
0
0
0
0
0
0
0
87
0.218045
8793f9ea482d0f9374dda4215d86b8945f6bf480
1,709
py
Python
api/tiposrefeicao.py
Guergeiro/bd2-group2
34520e40ef915dc7bb89486ac2322f8994ac9862
[ "MIT" ]
null
null
null
api/tiposrefeicao.py
Guergeiro/bd2-group2
34520e40ef915dc7bb89486ac2322f8994ac9862
[ "MIT" ]
12
2019-11-17T21:22:49.000Z
2020-01-19T18:10:00.000Z
api/tiposrefeicao.py
Guergeiro/bd2-group2
34520e40ef915dc7bb89486ac2322f8994ac9862
[ "MIT" ]
2
2019-11-15T16:47:21.000Z
2019-11-17T13:59:40.000Z
from flask import Blueprint, request import json import databaseutils as utils tiposrefeicao = Blueprint("tiposrefeicao", __name__) tiposrefeicaoColumns = ["cod_tiporefeicao", "designacao"] @tiposrefeicao.route("/api/tiposrefeicao", methods=["GET"]) @tiposrefeicao.route("/api/tiposrefeicao/", methods=["GET"]) def g...
37.152174
88
0.715038
0
0
0
0
1,503
0.879462
0
0
716
0.418958
87952a504dcf731fe7d1f7b6f19e351c3c8eec5a
1,464
py
Python
environment/postgresql_backups/scripts/insert.py
DarkSideMoon/metrics-dotnet-samples
55fb9969370b500b76c01946039aa06421895f4f
[ "MIT" ]
null
null
null
environment/postgresql_backups/scripts/insert.py
DarkSideMoon/metrics-dotnet-samples
55fb9969370b500b76c01946039aa06421895f4f
[ "MIT" ]
8
2021-11-28T21:58:19.000Z
2022-03-01T00:04:06.000Z
environment/postgresql_backups/scripts/insert.py
DarkSideMoon/metrics-dotnet-samples
55fb9969370b500b76c01946039aa06421895f4f
[ "MIT" ]
null
null
null
#!/usr/bin/env /usr/local/opt/python@3.9/bin/python3.9 import sys import psycopg2 from faker import Faker from contextlib import closing from random import randint import time if __name__ == "__main__": total = 10 batch_size = 1000 if len(sys.argv) > 1: total = int(sys.argv[1]) if len(sys....
32.533333
144
0.561475
0
0
0
0
0
0
0
0
272
0.185792
87957d42b517250e340c85eabe5b2c0215cd012e
2,092
py
Python
DataVis/faradaysky_disp.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
5
2021-11-18T13:27:30.000Z
2021-12-05T00:15:33.000Z
DataVis/faradaysky_disp.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
null
null
null
DataVis/faradaysky_disp.py
EmmaAlexander/possum-tools
051ebca682cd97b68fa2a89c9d67e99cf85b09c7
[ "MIT" ]
null
null
null
import os import sys import matplotlib.pyplot as plt import numpy as np import cmasher as cmr import astropy.units as u import astropy.coordinates as coord from astropy.io import ascii from astropy.io import fits from astropy.wcs import WCS from functions import * plt.rcParams['mathtext.fontset'] = 'cm' plt.rcParams[...
30.318841
91
0.736616
0
0
0
0
0
0
0
0
503
0.24044
8797dc3ef1031456c069cbbb89dbdaafc3b5a76e
137
py
Python
ty.py
IsSveshuD/lab_2_12
e7a276292fed67764526fff4dda582a86f2ddf45
[ "MIT" ]
null
null
null
ty.py
IsSveshuD/lab_2_12
e7a276292fed67764526fff4dda582a86f2ddf45
[ "MIT" ]
null
null
null
ty.py
IsSveshuD/lab_2_12
e7a276292fed67764526fff4dda582a86f2ddf45
[ "MIT" ]
null
null
null
import re def c(text, chars=" !?"): rx = re.compile(f'{chars}') text = rx.sub(r'-', text) print(text) a = 'dsf !?#' c(a)
11.416667
31
0.489051
0
0
0
0
0
0
0
0
28
0.20438
8799ab51d7c6f840177cf89a06ffd228899158aa
2,859
py
Python
polyA/fill_confidence_matrix.py
TravisWheelerLab/polyA
cbab7f2416066fd24340913fbf5328fb36432131
[ "BSD-3-Clause" ]
3
2021-01-15T11:39:30.000Z
2021-01-26T07:28:32.000Z
polyA/fill_confidence_matrix.py
TravisWheelerLab/polyA
cbab7f2416066fd24340913fbf5328fb36432131
[ "BSD-3-Clause" ]
21
2020-12-09T23:07:43.000Z
2021-09-23T03:05:35.000Z
polyA/fill_confidence_matrix.py
TravisWheelerLab/polyA
cbab7f2416066fd24340913fbf5328fb36432131
[ "BSD-3-Clause" ]
null
null
null
from typing import Dict, List, Tuple from .confidence_cm import confidence_cm from .matrices import ConfidenceMatrix from .performance import timeit @timeit() def fill_confidence_matrix( column_count: int, subfam_counts: Dict[str, float], subfams: List[str], active_cells: Dict[int, List[int]], al...
33.635294
85
0.622595
0
0
0
0
2,706
0.946485
0
0
1,784
0.623994
8799edb410a9b593ae1ec6c87d90f8b46275cfe2
1,005
py
Python
website/articles.py
ceyeoh/fyp_doppler
4805378d57870560f8a8b450ec49b6c72a85962a
[ "MIT" ]
null
null
null
website/articles.py
ceyeoh/fyp_doppler
4805378d57870560f8a8b450ec49b6c72a85962a
[ "MIT" ]
null
null
null
website/articles.py
ceyeoh/fyp_doppler
4805378d57870560f8a8b450ec49b6c72a85962a
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template from flask_login import login_required, current_user articles = Blueprint( "articles", __name__, ) @articles.route("/intro-fgr") @login_required def intro(): return render_template("article-intro-fgr.html", user=current_user) @articles.route("/causes-fgr") @...
22.840909
77
0.763184
0
0
0
0
834
0.829851
0
0
262
0.260697
879aa68e685cec97b9d594f9347dab0f1569f23f
6,181
py
Python
src/main.py
neeraj310/DLfM_BrandManagement
1df952ed38018391c876b822338f30ff9c9f6568
[ "Apache-2.0" ]
null
null
null
src/main.py
neeraj310/DLfM_BrandManagement
1df952ed38018391c876b822338f30ff9c9f6568
[ "Apache-2.0" ]
null
null
null
src/main.py
neeraj310/DLfM_BrandManagement
1df952ed38018391c876b822338f30ff9c9f6568
[ "Apache-2.0" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for import tensorflow as tf from keras.models import load_model from keras.backend import set_session from src.utils import image_preprocessing from src.utils import overall_class_label from src.utils import infinite_scraper # sessions and default graphs...
49.055556
138
0.761204
0
0
0
0
2,789
0.451221
0
0
1,867
0.302055
879ae2125f2be56cca379202ae8598161954d149
2,777
py
Python
rvaconnect/circles/migrations/0001_initial.py
rva-data/rvaconnect
dc7e387dd35971ff5514f2675532e29094843ae2
[ "BSD-3-Clause" ]
1
2015-01-27T05:24:13.000Z
2015-01-27T05:24:13.000Z
rvaconnect/circles/migrations/0001_initial.py
rva-data/rvaconnect
dc7e387dd35971ff5514f2675532e29094843ae2
[ "BSD-3-Clause" ]
null
null
null
rvaconnect/circles/migrations/0001_initial.py
rva-data/rvaconnect
dc7e387dd35971ff5514f2675532e29094843ae2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Group' db.create_table(u'circles_group', ( (u'id', self.gf('django.db.models.fie...
55.54
138
0.605329
2,645
0.952467
0
0
0
0
0
0
1,476
0.531509
879af2c105954003dfafd0a1947df6869a7f44fa
512
py
Python
PythonExercicios/ex017.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
PythonExercicios/ex017.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
PythonExercicios/ex017.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
# Faça um programa que leia o comprimento do cateto oposto e a do cateto adjacente de um triângulo retângulo. # Calcule e mostre o comprimento da hipotenusa. from math import hypot catoposto = float(input('Cateto oposto: ')) catadjacente = float(input('Cateto adjacente: ')) print(hypot(catoposto, catadjacente)) ''' ...
30.117647
109
0.732422
0
0
0
0
0
0
0
0
393
0.760155
879b31bea6b24323ed8fa97a0bdf6f6174418a2f
2,837
py
Python
code/tmp_rtrip/tkinter/messagebox.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/tkinter/messagebox.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/tkinter/messagebox.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
from tkinter.commondialog import Dialog ERROR = 'error' INFO = 'info' QUESTION = 'question' WARNING = 'warning' ABORTRETRYIGNORE = 'abortretryignore' OK = 'ok' OKCANCEL = 'okcancel' RETRYCANCEL = 'retrycancel' YESNO = 'yesno' YESNOCANCEL = 'yesnocancel' ABORT = 'abort' RETRY = 'retry' IGNORE = 'ignore' OK = 'ok' CANCEL...
28.656566
78
0.646458
76
0.026789
0
0
0
0
0
0
813
0.28657
879cdfa799a43a3cd06f5d3f201e4e357ab443c1
550
py
Python
models/tree.py
pigaov10/tree_manager
c85aa03d59536ebe6b8fac0407fd285094df3a65
[ "Apache-2.0" ]
null
null
null
models/tree.py
pigaov10/tree_manager
c85aa03d59536ebe6b8fac0407fd285094df3a65
[ "Apache-2.0" ]
null
null
null
models/tree.py
pigaov10/tree_manager
c85aa03d59536ebe6b8fac0407fd285094df3a65
[ "Apache-2.0" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() def configure(app): db.init_app(app) app.db = db class Tree(db.Model): __tablename__ = 'tree' id = db.Column(db.Integer, primary_key=True) code = db.Column(db.String(50), nullable=False) description = db.Column(db.String(25...
30.555556
85
0.656364
424
0.770909
0
0
0
0
0
0
98
0.178182
879f2916cb315017dfa31f66e1aa41f28cecd9f9
1,159
py
Python
plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
2
2018-11-02T19:55:30.000Z
2020-08-14T02:22:20.000Z
plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
null
null
null
plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_progress_dialog.py
akuala/REPO.KUALA
ea9a157025530d2ce8fa0d88431c46c5352e89d4
[ "Apache-2.0" ]
3
2019-12-17T20:47:00.000Z
2021-02-11T19:03:59.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2014-2016 bromix (plugin.video.youtube) Copyright (C) 2016-2018 plugin.video.youtube SPDX-License-Identifier: GPL-2.0-only See LICENSES/GPL-2.0-only for more information. """ from six import string_types import xbmcgui from ..abstract_progress_dialog import ...
26.953488
70
0.648835
813
0.701467
0
0
0
0
0
0
275
0.237274
87a0c198aaf64fb0040e08381e0e0853c27aa4ce
1,483
py
Python
settings.py
vboginskey/cribfinder
fe89717b5ed503a42100069cad966f82b495d7b5
[ "MIT" ]
null
null
null
settings.py
vboginskey/cribfinder
fe89717b5ed503a42100069cad966f82b495d7b5
[ "MIT" ]
null
null
null
settings.py
vboginskey/cribfinder
fe89717b5ed503a42100069cad966f82b495d7b5
[ "MIT" ]
null
null
null
import os CRAIGSLIST_SITE = 'newjersey' CRAIGSLIST_CATEGORY = 'apa' MIN_FT2 = 900 MIN_PRICE = 1500 MAX_PRICE = 3000 MAX_TRANSIT_DISTANCE = 0.75 BOXES = { "Hoboken": [40.734966101, -74.0439891815, 40.7529789172, -74.0192699432], "The Heights": [40.7332100782, -74.0573787689, 40.7615609255, -74.0378093719], ...
34.488372
84
0.645314
0
0
0
0
0
0
0
0
493
0.332434
87a23d912466c34c97307a017f8d2956a06cdbc3
1,729
py
Python
examples/black_lives/create_progmem.py
fejiso/PxMatrix
fc53edf18af43ab3d0459890c0575243a3592445
[ "BSD-3-Clause" ]
599
2018-03-31T21:56:45.000Z
2022-03-26T03:31:30.000Z
examples/black_lives/create_progmem.py
fejiso/PxMatrix
fc53edf18af43ab3d0459890c0575243a3592445
[ "BSD-3-Clause" ]
291
2018-03-29T11:59:26.000Z
2022-03-24T19:44:32.000Z
examples/black_lives/create_progmem.py
fejiso/PxMatrix
fc53edf18af43ab3d0459890c0575243a3592445
[ "BSD-3-Clause" ]
144
2018-03-31T04:45:50.000Z
2022-03-29T15:00:22.000Z
#!/usr/bin/python import binascii import sys import glob, os import pdb file_no=0; file_names=[]; RGB565=1; out_string=""; def printrgb565(red, green, blue): x1 = (red & 0xF8) | (green >> 5); x2 = ((green & 0x1C) << 3) | (blue >> 3); #pdb.set_trace() this_string="0x" + str(binascii.hexlify(chr(x2))) + ","; this_...
27.444444
65
0.626952
0
0
0
0
0
0
0
0
284
0.164257
87a2ad1b1b371bea7b87cb1eb38aeedd4b3b8d00
210
py
Python
q5.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
q5.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
q5.py
fairoz-ahmed/Python_Practice
e498f81fca02f0773f1c6e9f93e5f1cf1f94eb89
[ "MIT" ]
null
null
null
class Input_data(): def __init__(self): self.s='' def getString(self): self.s = input() def printString(self): print(self.s.upper()) strobj=Input_data() strobj.getString() strobj.printString()
21
24
0.67619
147
0.7
0
0
0
0
0
0
2
0.009524
87a4472be6c42e97657d22b4feb81b29914bd105
95
py
Python
SP/Modul_02/skrypt_01.py
edu-sense-com/OSE-Python-Course
cbf93e18b0cdbcaf54483f6fac5faafd372de068
[ "MIT" ]
null
null
null
SP/Modul_02/skrypt_01.py
edu-sense-com/OSE-Python-Course
cbf93e18b0cdbcaf54483f6fac5faafd372de068
[ "MIT" ]
null
null
null
SP/Modul_02/skrypt_01.py
edu-sense-com/OSE-Python-Course
cbf93e18b0cdbcaf54483f6fac5faafd372de068
[ "MIT" ]
null
null
null
print("To jest pierwsza linia.") print("To jest druga linia.") print("To jest trzecia linia.")
23.75
32
0.715789
0
0
0
0
0
0
0
0
71
0.747368
87a487207e754b62b27676fbeca5d8fa0f49a8b7
7,340
py
Python
lisa_flexbe_states_flexbe_behaviors/src/lisa_flexbe_states_flexbe_behaviors/test_multiple_sm.py
lawrence-iviani/lisa-flexbe-states
5a228b7a9139394c9bd9ea386725226fef7844ac
[ "BSD-3-Clause" ]
null
null
null
lisa_flexbe_states_flexbe_behaviors/src/lisa_flexbe_states_flexbe_behaviors/test_multiple_sm.py
lawrence-iviani/lisa-flexbe-states
5a228b7a9139394c9bd9ea386725226fef7844ac
[ "BSD-3-Clause" ]
null
null
null
lisa_flexbe_states_flexbe_behaviors/src/lisa_flexbe_states_flexbe_behaviors/test_multiple_sm.py
lawrence-iviani/lisa-flexbe-states
5a228b7a9139394c9bd9ea386725226fef7844ac
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ########################################################### # WARNING: Generated code! # # ************************** # # Manual changes may get lost if file is generated again. # # Only code inside the [MANUAL] ta...
49.261745
198
0.700409
6,212
0.846322
0
0
0
0
0
0
3,478
0.473842
87a653834398311d35699ada567936f2e6f4ca64
410
py
Python
data_preparation/jobScreening_cvpr17/extract_spectograms.py
segurac/richEmbeddings
3279714c4b70db09740152822951cd0359fda8c8
[ "Apache-2.0" ]
null
null
null
data_preparation/jobScreening_cvpr17/extract_spectograms.py
segurac/richEmbeddings
3279714c4b70db09740152822951cd0359fda8c8
[ "Apache-2.0" ]
null
null
null
data_preparation/jobScreening_cvpr17/extract_spectograms.py
segurac/richEmbeddings
3279714c4b70db09740152822951cd0359fda8c8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import pickle import numpy as np from scipy.io import wavfile import python_speech_features as fextract audio_filename = sys.argv[1] features_filename = sys.argv[2] rate, sig = wavfile.read(audio_filename) fbank_feat = fextract.logfbank(sig,samplerate=r...
15.769231
51
0.74878
0
0
0
0
0
0
0
0
49
0.119512
87a6bfa19863925f03157d3ac9abad941247fbad
2,999
py
Python
1.3.BayesianInference/exercises/srcs/5/connected_waxman.py
mihaighidoveanu/machine-learning-examples
e5a7ab71e52ae2809115eb7d7c943b46ebf394f3
[ "MIT" ]
null
null
null
1.3.BayesianInference/exercises/srcs/5/connected_waxman.py
mihaighidoveanu/machine-learning-examples
e5a7ab71e52ae2809115eb7d7c943b46ebf394f3
[ "MIT" ]
null
null
null
1.3.BayesianInference/exercises/srcs/5/connected_waxman.py
mihaighidoveanu/machine-learning-examples
e5a7ab71e52ae2809115eb7d7c943b46ebf394f3
[ "MIT" ]
1
2021-05-02T13:12:21.000Z
2021-05-02T13:12:21.000Z
import numpy as np import pymc as pm import networkx as nx from matplotlib import pyplot as plt alpha = 0.5 beta = 0.1 L= 9.0 G0 = nx.Graph() for i in range(1, 10): for j in range(i + 1, 11): G0.add_edge(i, j) #G0.add_path(range(1, 11)) #G0.add_path(range(1, 11)) #G0.remove_edge(2, 3)...
28.028037
85
0.598533
1,519
0.506502
0
0
553
0.184395
0
0
873
0.291097
87a6ec55d7fc458c9d50fc876766d5e4b737fb6f
452
py
Python
urls.py
markbate/whiskerboard
fe157c1eff068c089f6948ac5cf21f5a6ff36600
[ "MIT" ]
20
2015-03-31T09:43:43.000Z
2021-06-12T23:41:28.000Z
urls.py
ametaireau/whiskerboard
b539337416069e0c794b4c3e4dfdd1afc64562cb
[ "MIT" ]
5
2015-01-19T23:07:52.000Z
2021-06-10T17:38:37.000Z
urls.py
ametaireau/whiskerboard
b539337416069e0c794b4c3e4dfdd1afc64562cb
[ "MIT" ]
6
2015-05-14T21:05:31.000Z
2018-04-07T22:40:39.000Z
from django.conf.urls.defaults import patterns, include, url from django.contrib import admin from board.feeds import EventFeed from board.views import IndexView, ServiceView admin.autodiscover() urlpatterns = patterns('', url(r'^$', IndexView.as_view(), name='index'), url(r'^services/(?P<slug>[-\w]+)$', Serv...
30.133333
79
0.692478
0
0
0
0
0
0
0
0
78
0.172566
87a7a5a455773a2830eecd85f18579f1935a4094
20,715
py
Python
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
Giddius/Antipetros_Discord_Bot
2c139a5c0fc410385e936999989513fc1e7ebc8b
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
Giddius/Antipetros_Discord_Bot
2c139a5c0fc410385e936999989513fc1e7ebc8b
[ "MIT" ]
13
2021-02-19T02:22:28.000Z
2021-02-20T03:19:11.000Z
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
Giddius/Antipetros_Discord_Bot
2c139a5c0fc410385e936999989513fc1e7ebc8b
[ "MIT" ]
2
2020-11-19T10:21:06.000Z
2021-12-14T00:27:45.000Z
# region [Imports] # * Standard Library Imports ----------------------------------------------------------------------------> import os import asyncio from io import BytesIO from pathlib import Path from datetime import datetime from tempfile import TemporaryDirectory from textwrap import dedent # * Third Party Impo...
50.647922
200
0.662901
18,326
0.884673
0
0
6,385
0.308231
5,900
0.284818
5,403
0.260825
87a8759b1ef4d1a86ddceb592ba202006fe0e88e
75,810
py
Python
sdk/python/pulumi_gcp/iam/workload_identity_pool_provider.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
121
2018-06-18T19:16:42.000Z
2022-03-31T06:06:48.000Z
sdk/python/pulumi_gcp/iam/workload_identity_pool_provider.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
492
2018-06-22T19:41:03.000Z
2022-03-31T15:33:53.000Z
sdk/python/pulumi_gcp/iam/workload_identity_pool_provider.py
sisisin/pulumi-gcp
af6681d70ea457843409110c1324817fe55f68ad
[ "ECL-2.0", "Apache-2.0" ]
43
2018-06-19T01:43:13.000Z
2022-03-23T22:43:37.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
57.042889
237
0.669371
75,306
0.993352
0
0
71,900
0.948424
0
0
58,794
0.775544
87a8977fe67b0ca481dbef216d59dbccffefcd3d
694
py
Python
python/get_pj_urls.py
cookie1986/csa-chat-predict
76fb07160930b0b824306b410b42c13e24983c19
[ "MIT" ]
null
null
null
python/get_pj_urls.py
cookie1986/csa-chat-predict
76fb07160930b0b824306b410b42c13e24983c19
[ "MIT" ]
null
null
null
python/get_pj_urls.py
cookie1986/csa-chat-predict
76fb07160930b0b824306b410b42c13e24983c19
[ "MIT" ]
1
2021-06-08T11:23:34.000Z
2021-06-08T11:23:34.000Z
import requests from bs4 import BeautifulSoup as soup import pandas as pd # PJ chatlog archive url_main = 'http://perverted-justice.com/?archive=byName' # get list of chat URLs req_main = requests.get(url_main) main_soup = soup(req_main.text, "html.parser") # list to store URLs url_link = [] for link in main_soup.fin...
34.7
120
0.75072
0
0
0
0
0
0
0
0
333
0.479827
87a9f6cce805832e964e1ac6f9e5aea510c38d7e
496
py
Python
mtpipeline/ephem/mt_logging.py
STScI-Citizen-Science/MTPipeline
903743afe55592ab67a240237d924c7c7383eec7
[ "Unlicense" ]
4
2015-10-03T02:30:50.000Z
2016-04-07T04:07:19.000Z
mtpipeline/ephem/mt_logging.py
STScI-Citizen-Science/MTPipeline
903743afe55592ab67a240237d924c7c7383eec7
[ "Unlicense" ]
3
2022-02-10T23:02:22.000Z
2022-02-10T23:02:51.000Z
mtpipeline/ephem/mt_logging.py
STScI-Citizen-Science/MTPipeline
903743afe55592ab67a240237d924c7c7383eec7
[ "Unlicense" ]
null
null
null
""" This module contains the basic logging setup for the project. """ import datetime import logging import os def setup_logging(module): """Set up the logging.""" log_file = os.path.join('/astro/3/mutchler/mt/logs/', module, module + '_' + datetime.datetime.now().strftime('%Y-%m-%d-%H-%M') + '.log')...
31
83
0.614919
0
0
0
0
0
0
0
0
209
0.421371
87ae65900773758ea1e8c983d49e6f56cd93b9ec
795
py
Python
clone/views.py
kurian-thomas/neuralcloning
1458aeeaef6be32a11079a66d09fb94feeeba8c1
[ "MIT" ]
9
2018-11-15T16:50:59.000Z
2021-10-05T09:58:36.000Z
clone/views.py
kurian-thomas/neuralcloning
1458aeeaef6be32a11079a66d09fb94feeeba8c1
[ "MIT" ]
null
null
null
clone/views.py
kurian-thomas/neuralcloning
1458aeeaef6be32a11079a66d09fb94feeeba8c1
[ "MIT" ]
6
2018-11-26T05:38:34.000Z
2021-03-30T16:30:21.000Z
from django.shortcuts import render, HttpResponse from django.views.decorators.csrf import csrf_exempt import os import base64 # from .celery_test import test # from clone_script import clone def index(request): return render(request, 'clone/index.html') def results(request): return render(request, 'clone/results....
25.645161
52
0.719497
0
0
0
0
402
0.50566
0
0
214
0.269182
87ae6a9d8005591fc2347c0f2c5ef9bc24403258
1,777
py
Python
wis2box/metadata/base.py
webb-ben/wis2node
e577d2bea5524f74872f47eee9deb35d6c510460
[ "Apache-2.0" ]
7
2021-10-05T11:48:50.000Z
2022-02-04T12:47:15.000Z
wis2box/metadata/base.py
webb-ben/wis2node
e577d2bea5524f74872f47eee9deb35d6c510460
[ "Apache-2.0" ]
47
2022-02-15T18:24:22.000Z
2022-03-31T11:32:52.000Z
wis2box/metadata/base.py
webb-ben/wis2node
e577d2bea5524f74872f47eee9deb35d6c510460
[ "Apache-2.0" ]
3
2022-02-16T19:36:36.000Z
2022-03-14T08:14:20.000Z
############################################################################### # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this fi...
30.118644
79
0.630838
709
0.398987
0
0
0
0
0
0
1,319
0.742262
87ae933f0ebeb6f0ea11f62d21063be61ac683ec
3,406
py
Python
packages/core/minos-microservice-common/minos/common/setup.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
247
2022-01-24T14:55:30.000Z
2022-03-25T12:06:17.000Z
packages/core/minos-microservice-common/minos/common/setup.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
168
2022-01-24T14:54:31.000Z
2022-03-31T09:31:09.000Z
packages/core/minos-microservice-common/minos/common/setup.py
minos-framework/minos-python
9a6ad6783361f3d8a497a088808b55ea7a938c6c
[ "MIT" ]
21
2022-02-06T17:25:58.000Z
2022-03-27T04:50:29.000Z
from __future__ import ( annotations, ) import logging import warnings from pathlib import ( Path, ) from typing import ( TYPE_CHECKING, Optional, Type, TypeVar, Union, ) from .object import ( Object, ) if TYPE_CHECKING: from .config import ( Config, ) logger = loggin...
25.609023
111
0.591897
3,020
0.886671
0
0
1,296
0.380505
976
0.286553
1,028
0.30182
87afa90fb2718364a61c00608eb9958c15861cad
6,389
py
Python
addons/base_address_extended/models/res_partner.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/base_address_extended/models/res_partner.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
addons/base_address_extended/models/res_partner.py
SHIVJITH/Odoo_Machine_Test
310497a9872db7844b521e6dab5f7a9f61d365a4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import re from odoo import api, fields, models, _ from odoo.exceptions import UserError class Partner(models.Model): _inherit = ['res.partner'] street_name = fields.Char( 'Street Name', compute='_comp...
45.635714
98
0.594616
6,197
0.969948
0
0
876
0.137111
0
0
1,901
0.297543
87afb24e4081ff8ae5ac4df3accb708ca9bd5693
10,032
py
Python
third_party/aten/src/ATen/gen.py
AIHGF/caffe2
b9e61b72cd460f4c9f644294a7bf0b6306df17fc
[ "Apache-2.0" ]
58
2019-01-03T02:20:41.000Z
2022-02-25T14:24:13.000Z
third_party/aten/src/ATen/gen.py
AIHGF/caffe2
b9e61b72cd460f4c9f644294a7bf0b6306df17fc
[ "Apache-2.0" ]
6
2019-02-12T03:52:08.000Z
2020-12-17T02:40:37.000Z
third_party/aten/src/ATen/gen.py
AIHGF/caffe2
b9e61b72cd460f4c9f644294a7bf0b6306df17fc
[ "Apache-2.0" ]
5
2019-01-03T06:46:04.000Z
2019-10-29T07:40:11.000Z
from optparse import OptionParser import yaml import cwrap_parser import nn_parse import native_parse import preprocess_declarations import function_wrapper import dispatch_macros import copy_wrapper from code_template import CodeTemplate parser = OptionParser() parser.add_option('-s', '--source-path', help='path t...
37.856604
88
0.650817
0
0
0
0
0
0
0
0
3,580
0.356858
87b2ac0cb62dd997f1308319e2198c8f122f2f8d
458
py
Python
tests/mock_module.py
nullpsifer/cryptosploit
e33cfca07397c05dffa734274c202acc7ff597b4
[ "MIT" ]
null
null
null
tests/mock_module.py
nullpsifer/cryptosploit
e33cfca07397c05dffa734274c202acc7ff597b4
[ "MIT" ]
null
null
null
tests/mock_module.py
nullpsifer/cryptosploit
e33cfca07397c05dffa734274c202acc7ff597b4
[ "MIT" ]
null
null
null
from modules.abstract_module import * class MockModule(AbstractModule): executed = False name = "mock_module" description = "Module for testing purposes." arguments = [ ModuleArgumentDescription("Arg1", "Argument 1", True), ModuleArgumentDescription("Arg2", "Argument 2",...
25.444444
67
0.635371
419
0.914847
0
0
0
0
0
0
97
0.21179
87b40c595c59158b89d0513124bb59d2d086ec52
149
py
Python
kornia/augmentation/_3d/intensity/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
418
2018-10-02T22:31:36.000Z
2019-01-16T14:15:45.000Z
kornia/augmentation/_3d/intensity/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
94
2019-01-17T22:10:45.000Z
2019-05-22T23:47:58.000Z
kornia/augmentation/_3d/intensity/__init__.py
Ishticode/kornia
974abb43ec72d12dbd244a2fb247bbbab8498de0
[ "ECL-2.0", "Apache-2.0" ]
25
2018-10-02T22:50:04.000Z
2019-01-13T18:14:11.000Z
from kornia.augmentation._3d.intensity.equalize import RandomEqualize3D from kornia.augmentation._3d.intensity.motion_blur import RandomMotionBlur3D
49.666667
76
0.892617
0
0
0
0
0
0
0
0
0
0
87b46b1723a9e240a2245cee77024e18ad09f5ff
3,270
py
Python
tmtrader/exchange_for_backtest/position_manager.py
reouno/tomatorader
b781206051129fa59439a0f314f4f1ed647a6852
[ "MIT" ]
null
null
null
tmtrader/exchange_for_backtest/position_manager.py
reouno/tomatorader
b781206051129fa59439a0f314f4f1ed647a6852
[ "MIT" ]
null
null
null
tmtrader/exchange_for_backtest/position_manager.py
reouno/tomatorader
b781206051129fa59439a0f314f4f1ed647a6852
[ "MIT" ]
null
null
null
from logging import getLogger from typing import Dict, List, Optional from tmtrader.entity.order import FilledBasicOrder from tmtrader.entity.position import ClosedPosition, Position, Positions, \ PositionsRef from tmtrader.exchange_for_backtest.usecase.order_to_share import from_order logger = getLogger(__name__...
38.023256
89
0.585627
2,868
0.877064
0
0
0
0
0
0
236
0.072171
87b5a69588b76f251c9cd5a2072d8ea5e658ab2d
850
py
Python
service/server.py
IsraelAbebe/fake-news-classification
3c8c46d8e4222a5f70daea423b7a90480cb2044c
[ "MIT" ]
null
null
null
service/server.py
IsraelAbebe/fake-news-classification
3c8c46d8e4222a5f70daea423b7a90480cb2044c
[ "MIT" ]
null
null
null
service/server.py
IsraelAbebe/fake-news-classification
3c8c46d8e4222a5f70daea423b7a90480cb2044c
[ "MIT" ]
null
null
null
import grpc from concurrent import futures import time import sys sys.path.insert(0, 'service/') from service_spec import fake_news_pb2 from service_spec import fake_news_pb2_grpc import json import test class fake_news_classificationServicer(fake_news_pb2_grpc.fake_news_classificationServicer): def classify...
23.611111
109
0.787059
262
0.308235
0
0
0
0
0
0
66
0.077647
87b849087828668df3e9bdba8cecbc7f2e80f614
3,807
py
Python
authorization/models.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
1
2020-06-17T02:51:35.000Z
2020-06-17T02:51:35.000Z
authorization/models.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
7
2020-06-06T18:32:37.000Z
2022-03-12T00:33:42.000Z
authorization/models.py
Joost-dm/jooster
04f3fa979b689b61a4aeae8a5309a09277404fd6
[ "MIT" ]
null
null
null
from io import BytesIO from PIL import Image from django.contrib.auth.models import AbstractUser from django.core.files.uploadedfile import InMemoryUploadedFile from django.core.mail import send_mail from django.db import models from resizeimage import resizeimage from rest_framework.authtoken.models import Token from ...
34.926606
119
0.653008
3,335
0.849249
0
0
0
0
0
0
1,350
0.343774
87b8e5d4a4c403c1e33d8ea9c1529f056cb42aa0
646
py
Python
mapnik_style_generator/utils/PandasMerge.py
sjsafranek/GeoTileServer
4f39ce3b6dc5bd374d4a683fd7a425e950b218f0
[ "MIT" ]
1
2017-09-29T21:30:33.000Z
2017-09-29T21:30:33.000Z
mapnik_style_generator/utils/PandasMerge.py
sjsafranek/go-tileserver
5453186b5c00281588aeba82311bea8ddf8d8ae2
[ "BSD-3-Clause" ]
null
null
null
mapnik_style_generator/utils/PandasMerge.py
sjsafranek/go-tileserver
5453186b5c00281588aeba82311bea8ddf8d8ae2
[ "BSD-3-Clause" ]
null
null
null
#table join #stefan safranek import csv, os, sys, time import pandas as pd start_time = time.time() #start time #File 1 IMPORT_FILE = "Burns_wO_LnLID.csv" SAVE_FILE = IMPORT_FILE.replace('.csv','') + " MATCHED.csv" df1 = pd.read_csv("Burns HD 58.csv", index_col=None, usecols=[0,1,2,4], parse_dates=True...
22.275862
90
0.690402
0
0
0
0
0
0
0
0
201
0.311146
87b94e9ea498eb18e633d7320caae4f23a5511f9
3,637
py
Python
arcticdem/ee_setsm_meta2file.py
whyjz/ArcticDEM-Batch-Pipeline
7710c3ed5b466eef63619ee088256cf12f522bbd
[ "Apache-2.0" ]
null
null
null
arcticdem/ee_setsm_meta2file.py
whyjz/ArcticDEM-Batch-Pipeline
7710c3ed5b466eef63619ee088256cf12f522bbd
[ "Apache-2.0" ]
null
null
null
arcticdem/ee_setsm_meta2file.py
whyjz/ArcticDEM-Batch-Pipeline
7710c3ed5b466eef63619ee088256cf12f522bbd
[ "Apache-2.0" ]
null
null
null
import csv from itertools import islice import os from glob import glob import time def demmeta(folder,mfile,errorlog): metasource = [y for x in os.walk(folder) for y in glob(os.path.join(x[0], '*.txt'))] with open(mfile,'wb') as csvfile: writer=csv.DictWriter(csvfile,fieldnames=["id_no", "system:time_s...
54.283582
255
0.534781
0
0
0
0
0
0
0
0
840
0.23096
87ba433641ad537815e75200ac70b792bbb16c42
152
py
Python
ai/bertpredict/urls.py
thdwlsgus0/relay_15
b5cb66ca250afd5402b0f19c870fda1852b77a28
[ "MIT" ]
3
2020-08-07T05:35:28.000Z
2020-08-10T00:48:11.000Z
ai/bertpredict/urls.py
thdwlsgus0/relay_15
b5cb66ca250afd5402b0f19c870fda1852b77a28
[ "MIT" ]
null
null
null
ai/bertpredict/urls.py
thdwlsgus0/relay_15
b5cb66ca250afd5402b0f19c870fda1852b77a28
[ "MIT" ]
11
2020-07-28T00:45:51.000Z
2020-11-22T18:34:52.000Z
from django.urls import path from . import views app_name = 'bertpredict' urlpatterns = [ path('bertpredict/', views.BertPredictView.as_view()), ]
19
58
0.730263
0
0
0
0
0
0
0
0
27
0.177632
87bcc23da78418d37f7d6aad89e6e754fd2069ff
3,493
py
Python
examples/eager_examples/scripts/example_custom_env.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
16
2021-07-02T14:48:53.000Z
2022-02-23T02:53:01.000Z
examples/eager_examples/scripts/example_custom_env.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
37
2021-06-30T12:10:29.000Z
2022-02-02T09:46:34.000Z
examples/eager_examples/scripts/example_custom_env.py
eager-dev/eager
f10ccbd7452acb3a29881ecd95c759f632c91da9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # ROS packages required import rospy from eager_core.eager_env import BaseEagerEnv from eager_core.objects import Object from eager_core.wrappers.flatten import Flatten from eager_bridge_webots.webots_engine import WebotsEngine # noqa: F401 from eager_bridge_pybullet.pybullet_engine import PyBu...
30.911504
109
0.619238
2,334
0.668194
0
0
0
0
0
0
668
0.19124
87c0c5db07800916d6e2f834710cacb09b92bba1
11,190
py
Python
DataFormats/FWLite/test/RefTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DataFormats/FWLite/test/RefTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DataFormats/FWLite/test/RefTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# Configuration file for RefTest_t import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(2) ) process.source = cms.Source("EmptySource") process.WhatsItESProduce...
39.401408
77
0.67471
0
0
0
0
0
0
0
0
2,378
0.212511
87c130e031505973ff9591b6295aca73c9bc126b
158
py
Python
keycards/urls.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
2
2016-12-05T03:31:47.000Z
2017-02-13T20:10:39.000Z
keycards/urls.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
1
2016-12-14T10:53:15.000Z
2016-12-17T18:52:25.000Z
keycards/urls.py
oangervuori/namubufferi
b9353b1d1a32e18e93cb1e9bd2b591950d54269a
[ "MIT" ]
1
2017-01-14T10:56:28.000Z
2017-01-14T10:56:28.000Z
from django.urls import path from . import views app_name = "keycards" urlpatterns = [ path(f"", views.KeycardLoginFormView.as_view(), name="login"), ]
17.555556
66
0.708861
0
0
0
0
0
0
0
0
20
0.126582
87c2898d1865ba6df1980805dbc8552821fbbfba
2,859
py
Python
src/drias2020/__init__.py
jpvergnes/pybrgmlib
b768cd75635abd85f09c68efc4ab92d1857f792a
[ "MIT" ]
null
null
null
src/drias2020/__init__.py
jpvergnes/pybrgmlib
b768cd75635abd85f09c68efc4ab92d1857f792a
[ "MIT" ]
null
null
null
src/drias2020/__init__.py
jpvergnes/pybrgmlib
b768cd75635abd85f09c68efc4ab92d1857f792a
[ "MIT" ]
null
null
null
from drias2020.extract_drias2020 import extract_drias2020 from drias2020.convert_drias2020 import convert_drias2020 alls_models = [ ('CNRM-CM5-LR', 'ALADIN63', 'historical'), ('CNRM-CM5-LR', 'ALADIN63', 'rcp2.6'), ('CNRM-CM5-LR', 'ALADIN63', 'rcp4.5'), ('CNRM-CM5-LR', 'ALADIN63', 'rcp8.5'), ('CNRM-...
38.12
57
0.535852
0
0
0
0
0
0
0
0
1,920
0.671563
87c3057e22efbeaed539521bd317f016e2009be3
2,118
py
Python
userbot/plugins/_light.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/_light.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/_light.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
# Rewritten by @keinshin import io from userbot import CMD_LIST, ALIVE_NAME, bot as light from userbot import CMD_HELP from userbot.utils import lightning_cmd import asyncio from var import Var DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "Pls Go To Heroku Vars Then in `ALIVE_NAME`place You Telegram `Your Desire...
39.962264
175
0.54627
0
0
0
0
1,810
0.837188
1,763
0.815449
481
0.222479
87c4398ff0b611f2762232d295fa661ec24f4e12
4,593
py
Python
model/regressors/Hourglass.py
meansnothing/Deep-vSlam
2e0197f52b0520f134ac4144ae7364d201765208
[ "MIT" ]
null
null
null
model/regressors/Hourglass.py
meansnothing/Deep-vSlam
2e0197f52b0520f134ac4144ae7364d201765208
[ "MIT" ]
null
null
null
model/regressors/Hourglass.py
meansnothing/Deep-vSlam
2e0197f52b0520f134ac4144ae7364d201765208
[ "MIT" ]
1
2021-06-28T11:40:06.000Z
2021-06-28T11:40:06.000Z
import torch import torch.nn as nn from torchvision import models import torch.nn.functional as F def model_parser(model, sum_mode=False, dropout_rate=0.0, bayesian=False): base_model = None if model == 'Resnet': base_model = models.resnet34(pretrained=True) network = HourglassNet(base_model, ...
39.93913
142
0.627477
4,089
0.890268
0
0
0
0
0
0
471
0.102547
87c6d0a0ba7a3214919a21e563389329abb8370f
5,414
py
Python
data/faces.py
FabianSchuetze/ssd.pytorch
4508da2384aa74e42757d86c5a794242fd15f980
[ "MIT" ]
null
null
null
data/faces.py
FabianSchuetze/ssd.pytorch
4508da2384aa74e42757d86c5a794242fd15f980
[ "MIT" ]
null
null
null
data/faces.py
FabianSchuetze/ssd.pytorch
4508da2384aa74e42757d86c5a794242fd15f980
[ "MIT" ]
null
null
null
r""" Class to the python faces """ from typing import List, Tuple import xml.etree.ElementTree as ET import torch import torch.utils.data as data import cv2 import numpy as np from PIL import Image from torchvision.transforms import functional as F class FacesDB(data.Dataset): """VOC Detection Dataset Object ...
33.8375
81
0.577392
5,161
0.953269
0
0
0
0
0
0
2,647
0.488918
87ca3a57df23d8770609b8c197e911f0d1988dd7
1,473
py
Python
exchanges/okex.py
soulmachine/crypto-market-data
1dbf1cfd28754a37dd054777feadc1554e1cccaf
[ "Apache-2.0" ]
null
null
null
exchanges/okex.py
soulmachine/crypto-market-data
1dbf1cfd28754a37dd054777feadc1554e1cccaf
[ "Apache-2.0" ]
null
null
null
exchanges/okex.py
soulmachine/crypto-market-data
1dbf1cfd28754a37dd054777feadc1554e1cccaf
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, List from .utils import get_json def fetch_markets(market_type: str) -> List[Dict[str, Any]]: '''Fetch all trading markets from a crypto exchage.''' if market_type == 'future': return _fetch_future_markets() elif market_type == 'option': return _fetch_option_...
30.6875
78
0.680923
0
0
0
0
0
0
0
0
364
0.247115
87cc1d411068ff6128e0109b9dbc111a69527c35
3,218
py
Python
client/netmgr.py
kendase3/every
83b543c54a2dd071f0a34f128c5baa20a7e58def
[ "BSD-2-Clause" ]
1
2017-06-12T18:36:20.000Z
2017-06-12T18:36:20.000Z
client/netmgr.py
kendase3/every
83b543c54a2dd071f0a34f128c5baa20a7e58def
[ "BSD-2-Clause" ]
null
null
null
client/netmgr.py
kendase3/every
83b543c54a2dd071f0a34f128c5baa20a7e58def
[ "BSD-2-Clause" ]
null
null
null
from twisted.internet import defer, reactor from twisted.protocols import basic from twisted.internet.protocol import Protocol, ReconnectingClientFactory from time import sleep # local import screen import stevent class NetMgr: """ new abstraction: 1) this module receives the latest screen from the server. 2)...
25.951613
114
0.711933
2,995
0.930702
0
0
0
0
0
0
1,163
0.361405
87cd80e00b84a57e97e8bf916ce62b8c5fca17b5
6,336
py
Python
dataplaybook/tasks/io_mongo.py
kellerza/data-playbook
382c369505a5cb0c28bd786ebdda51c05417165c
[ "Apache-2.0" ]
3
2018-07-06T08:34:46.000Z
2021-05-27T23:29:04.000Z
dataplaybook/tasks/io_mongo.py
kellerza/data-playbook
382c369505a5cb0c28bd786ebdda51c05417165c
[ "Apache-2.0" ]
null
null
null
dataplaybook/tasks/io_mongo.py
kellerza/data-playbook
382c369505a5cb0c28bd786ebdda51c05417165c
[ "Apache-2.0" ]
null
null
null
"""MongoDB IO tasks.""" import logging from typing import List, Optional, Sequence from urllib.parse import urlparse import attr from icecream import ic # noqa pylint: disable=unused-import from pymongo import MongoClient from pymongo.errors import ServerSelectionTimeoutError import voluptuous as vol from dataplaybo...
30.757282
88
0.613163
1,437
0.226799
535
0.084438
5,589
0.882102
0
0
1,484
0.234217
87cedabd60c632947a95a1fb25c64135907bd605
422
py
Python
Lista 1/exe8.py
jesset27/Listas-de-exercicios-python
ab238f22f896a95d38b7a4ad64cf8848ad68a232
[ "MIT" ]
1
2021-11-30T13:16:36.000Z
2021-11-30T13:16:36.000Z
Lista 1/exe8.py
jesset27/Listas-de-exercicios-python
ab238f22f896a95d38b7a4ad64cf8848ad68a232
[ "MIT" ]
null
null
null
Lista 1/exe8.py
jesset27/Listas-de-exercicios-python
ab238f22f896a95d38b7a4ad64cf8848ad68a232
[ "MIT" ]
1
2021-11-20T00:00:50.000Z
2021-11-20T00:00:50.000Z
'''8. Faça um programa que receba o valor de um depósito e o valor da taxa de juros, calcule e mostre o valor do rendimento e o valor total depois do rendimento de um mês.''' #entrada deposito = float(input('valor de deposito: ')) juros = float(input("Taxa de juros: ")) #processamento rendimento = deposito * juros / ...
35.166667
95
0.732227
0
0
0
0
0
0
0
0
273
0.642353
87d24049a1ea45c4c31c143ecc5594de2fbc0702
7,639
py
Python
tests/test_patterns.py
golly-splorts/golly-maps
b1845dae65c289f26f8ee54e265e25732e487acb
[ "MIT" ]
null
null
null
tests/test_patterns.py
golly-splorts/golly-maps
b1845dae65c289f26f8ee54e265e25732e487acb
[ "MIT" ]
null
null
null
tests/test_patterns.py
golly-splorts/golly-maps
b1845dae65c289f26f8ee54e265e25732e487acb
[ "MIT" ]
null
null
null
import os import unittest from golly_maps.patterns import ( get_patterns, get_pattern, get_pattern_size, get_grid_pattern, pattern_union, ) HERE = os.path.split(os.path.abspath(__file__))[0] ALL_PATTERNS = [ "78p70", "acorn", "airforce", "backrake2", "bheptomino", "block",...
30.678715
78
0.51512
6,477
0.847886
0
0
0
0
0
0
1,446
0.189292
87d609e8f00dbd73a5e4178b9a5f87334cd537e4
929
py
Python
leetcode/1986.py
Cannizza-zzk/python_review
5a04b3dbc8baa835780c039386529e20e69af81c
[ "Apache-2.0" ]
null
null
null
leetcode/1986.py
Cannizza-zzk/python_review
5a04b3dbc8baa835780c039386529e20e69af81c
[ "Apache-2.0" ]
null
null
null
leetcode/1986.py
Cannizza-zzk/python_review
5a04b3dbc8baa835780c039386529e20e69af81c
[ "Apache-2.0" ]
null
null
null
class Solution: def minSessions(self, tasks: List[int], sessionTime: int) -> int: n = len(tasks) initial_state = int('0b'+'1'*n,2) dp = {} def find_dp(state): if state in dp: return dp[state] if state == 0: dp[state] = (1, 0) ...
33.178571
158
0.481163
767
0.825619
0
0
0
0
0
0
175
0.188375
87d62ac325e3ca26d040b943dc34b2166788628d
8,350
py
Python
spimstitch/commands/stitch_cmd.py
chunglabmit/spimstitch
ab6f7578e9f4116680536f9707936de171e4fe6b
[ "MIT" ]
1
2022-02-02T01:25:02.000Z
2022-02-02T01:25:02.000Z
spimstitch/commands/stitch_cmd.py
chunglabmit/spimstitch
ab6f7578e9f4116680536f9707936de171e4fe6b
[ "MIT" ]
1
2020-08-11T14:32:06.000Z
2020-08-12T10:37:47.000Z
spimstitch/commands/stitch_cmd.py
chunglabmit/spimstitch
ab6f7578e9f4116680536f9707936de171e4fe6b
[ "MIT" ]
null
null
null
import argparse import json import numpy as np import typing from blockfs.directory import Directory import logging from precomputed_tif.blockfs_stack import BlockfsStack from precomputed_tif.ngff_stack import NGFFStack import os import sys from spimstitch.ngff import NGFFDirectory from ..stitch import get_output_siz...
33.943089
83
0.586707
0
0
0
0
0
0
0
0
2,110
0.252695
87d6924e02630e60ee58f3ea397ba2d39e4eb305
442
py
Python
set_input.py
oinu32/discordpy-startup
9ef948d1811beba71aa44051b23b5a59adac0500
[ "MIT" ]
1
2020-01-09T16:29:25.000Z
2020-01-09T16:29:25.000Z
set_input.py
oinu32/discordpy-startup
9ef948d1811beba71aa44051b23b5a59adac0500
[ "MIT" ]
null
null
null
set_input.py
oinu32/discordpy-startup
9ef948d1811beba71aa44051b23b5a59adac0500
[ "MIT" ]
null
null
null
#AGNET # 該当のチャンネルのID ID_CHANNEL_README = 771383900814573598 #たすきる ID_ROLE_TSKL = 671354476044615680 #たすきる用ちゃんねるID(とつかんり) ID_TSKILL = 624668843444273164 #とつ予定(とつかんり) ID_totu = 739498595329376487 #とつ予定じゃり ID_totu2 = 750321508219355227 #さーばーID ID_SRV = 539773033724772362 #agnet ID_agnet = 549971775828656168 ID_alist =...
15.785714
38
0.830317
0
0
0
0
0
0
0
0
236
0.41115
87d835e669333bab23cb9ebd086673441ab97685
1,821
py
Python
src/issues/search_indexes.py
ofirr/OpenCommunity
7786ac2996530af8f545f4398c071793c73634c8
[ "BSD-3-Clause" ]
null
null
null
src/issues/search_indexes.py
ofirr/OpenCommunity
7786ac2996530af8f545f4398c071793c73634c8
[ "BSD-3-Clause" ]
null
null
null
src/issues/search_indexes.py
ofirr/OpenCommunity
7786ac2996530af8f545f4398c071793c73634c8
[ "BSD-3-Clause" ]
null
null
null
from haystack import indexes from issues.models import Issue, Proposal from haystack.fields import IntegerField, CharField, BooleanField, DateField, DateTimeField from datetime import date, datetime, timedelta class IssueIndex(indexes.ModelSearchIndex, indexes.Indexable): community = IntegerField(model_attr='comm...
37.163265
91
0.721032
1,605
0.881384
0
0
0
0
0
0
342
0.187809
87d8507d0c1a4a250f2a1f63328c068e8ca77ba8
16,437
py
Python
options/opts.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
209
2021-10-30T08:32:10.000Z
2022-03-31T16:18:03.000Z
options/opts.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
12
2021-12-04T10:47:11.000Z
2022-03-31T15:39:40.000Z
options/opts.py
apple/ml-cvnets
84d992f413e52c0468f86d23196efd9dad885e6f
[ "AML" ]
50
2021-11-01T08:15:02.000Z
2022-03-29T08:17:34.000Z
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # import argparse from typing import Optional from data.sampler import arguments_sampler from data.collate_fns import arguments_collate_fn from options.utils import load_config_file from data.datasets import argument...
31.609615
105
0.607288
2,691
0.163716
0
0
0
0
0
0
5,991
0.364483
87da34bc55c43a75ad4a47d5920ff97f1a7ed071
1,012
py
Python
grokking-the-coding-interview/dfs/Path-for-Max-Sum-(medium).py
huandrew99/LeetCode
aa36b48d06100ce5f0bc64c789a906ec29409440
[ "MIT" ]
36
2021-12-23T15:44:41.000Z
2022-03-31T04:26:26.000Z
grokking-the-coding-interview/dfs/Path-for-Max-Sum-(medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
null
null
null
grokking-the-coding-interview/dfs/Path-for-Max-Sum-(medium).py
wzy0766/LeetCode-1
3070e672c519e8af74966811b8058a9baef8c0bc
[ "MIT" ]
11
2022-02-26T22:41:26.000Z
2022-03-02T07:18:41.000Z
""" Given a binary tree, find the root-to-leaf path with the maximum sum. """ class TreeNode: def __init__(self, val, left=None, right=None): self.val = val self.left = left self.right = right def find_paths(root): res = [] cur_path = [] find_max(root, res, cur_path, 0) return res max_sum = ...
17.448276
69
0.649209
128
0.126482
0
0
0
0
0
0
126
0.124506
87dab20f9aff7e74782e7e82bc9833799c25002f
9,867
py
Python
django-ng/django_ng_project/django_ng_app/views.py
bounouhmahmoud/ensi
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
1
2018-07-10T06:59:05.000Z
2018-07-10T06:59:05.000Z
django-ng/django_ng_project/django_ng_app/views.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
null
null
null
django-ng/django_ng_project/django_ng_app/views.py
Arsalen/BusinessStrategies
209e57340359af3ea063c064982198848dc36c5f
[ "MIT" ]
null
null
null
# coding=utf-8 from django.shortcuts import render from rest_framework import viewsets, generics, status from .serializers import ClientSerializer, MessageSerializer, SearchSerializer, ManageSearchSerializer, PreferenceSerializer from .models import Client, Message, Search, ManageSearch, Preference from rest_framework...
35.365591
144
0.629371
9,249
0.937367
0
0
0
0
0
0
827
0.083815