hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
df92dd7a57c9a33e613c07064ef90d83f737c5b5
142
py
Python
libreasso/communication/apps.py
codoit/libreasso
fd9f12e958be4087d3a70582677007ed7f7a6eb3
[ "MIT" ]
1
2016-12-19T17:26:00.000Z
2016-12-19T17:26:00.000Z
libreasso/communication/apps.py
codoit/libreasso
fd9f12e958be4087d3a70582677007ed7f7a6eb3
[ "MIT" ]
17
2017-01-05T15:54:03.000Z
2017-01-05T15:55:13.000Z
libreasso/communication/apps.py
codoit/libreasso
fd9f12e958be4087d3a70582677007ed7f7a6eb3
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig
17.75
39
0.809859
df95e33af5973f76af473d1aa018e47f13e911d4
4,930
py
Python
src/ctc/rpc/rpc_executors_async/rpc_state_executors_async.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/rpc/rpc_executors_async/rpc_state_executors_async.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/rpc/rpc_executors_async/rpc_state_executors_async.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import typing from ctc import evm from ctc import spec from .. import rpc_constructors from .. import rpc_digestors from .. import rpc_request
31.806452
71
0.704665
10bf0228693f50f71f5415fe85ef0dbd66b187d3
939
py
Python
RadioStation/Media/Media.py
m-mohiey/AutomaticRadioStation
9ec3935e08ef58302d314387bc107bd1be8a6418
[ "MIT" ]
null
null
null
RadioStation/Media/Media.py
m-mohiey/AutomaticRadioStation
9ec3935e08ef58302d314387bc107bd1be8a6418
[ "MIT" ]
null
null
null
RadioStation/Media/Media.py
m-mohiey/AutomaticRadioStation
9ec3935e08ef58302d314387bc107bd1be8a6418
[ "MIT" ]
null
null
null
import ffmpeg from datetime import timedelta if __name__ == '__main__': media = Media('https://archive.org/download/dr_abohabiba_yahoo/%D8%A7%D9%84%D8%B4%D9%8A%D8%AE%20%D8%A3%D8%A8%D9%88%20%D8%A7%D9%84%D8%B9%D9%8A%D9%86%D9%8A%D9%86%20%D8%B4%D8%B9%D9%8A%D8%B4%D8%B9%20-%20%D8%A7%D9%84%D8%A3%D8%B0%D8%A7%D9%86.mp3'...
28.454545
245
0.650692
10bf89bcb843569b19b7f60f702ee2b9ea5cd457
1,731
py
Python
cogeo_mosaic/backends/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
cogeo_mosaic/backends/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
cogeo_mosaic/backends/__init__.py
drnextgis/cogeo-mosaic
034d0124a2da894c2bb432b1c0cebba7f716edbd
[ "MIT" ]
null
null
null
"""cogeo_mosaic.backends.""" from typing import Any from urllib.parse import urlparse from cogeo_mosaic.backends.base import BaseBackend from cogeo_mosaic.backends.dynamodb import DynamoDBBackend from cogeo_mosaic.backends.file import FileBackend from cogeo_mosaic.backends.memory import MemoryBackend from cogeo_mosai...
31.472727
70
0.674754
10bfed5cbc51ad7c7539fdeda3a165f6867a4380
2,791
py
Python
poetics/classes/word.py
M-R-Epstein/poetics
6331517c22ca567b9c68e2c668f670855e2ba618
[ "MIT" ]
4
2019-02-21T20:53:57.000Z
2022-03-12T16:36:02.000Z
poetics/classes/word.py
M-R-Epstein/poetics
6331517c22ca567b9c68e2c668f670855e2ba618
[ "MIT" ]
1
2019-02-19T14:37:29.000Z
2019-02-19T14:37:29.000Z
poetics/classes/word.py
M-R-Epstein/poetics
6331517c22ca567b9c68e2c668f670855e2ba618
[ "MIT" ]
null
null
null
import logging from poetics.lookups import get_pronunciations, check_onomatopoetic from poetics.classes.pronunciation import Pronunciation from poetics.stemmer import stem
41.656716
117
0.52741
10c0870da00b35c6778a8e70ca0a44b497c66b39
2,708
py
Python
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
1
2020-06-30T21:06:02.000Z
2020-06-30T21:06:02.000Z
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
null
null
null
app/patterns/schools.py
Zadigo/ze_mailer
1398a84cb8e836637a2ad72aef2f6f417c00b14e
[ "MIT" ]
null
null
null
"""This module regroups preset patterns related to schools in order to quickly create emails using the NamesAlgorithm Description ----------- You can either subclass an already defined school or create a new school by subclass NamePatterns. For instance, improving a school would look like this: class EDHEC2(EDHE...
23.964602
78
0.638848
10c08de6fd348e965adc6b4cd3b914c3ed69fd8d
821
py
Python
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
24
2021-04-02T20:54:45.000Z
2021-11-22T05:37:34.000Z
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
2
2021-04-04T03:45:38.000Z
2021-04-19T12:59:37.000Z
languages/ga/normalizer.py
borisdayma/wav2vec-toolkit
595500997cc3b71ec05995345fca888ae515b516
[ "Apache-2.0" ]
10
2021-04-02T20:57:38.000Z
2021-11-17T07:35:59.000Z
from typing import Any from wav2vec_toolkit.text_preprocessing.normalizers import NormalizerOperation
30.407407
87
0.634592
10c21646af3e0a3b43959840da1cc1ba5fb1fa68
6,077
py
Python
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
null
null
null
python/pyxbos/pyxbos/nullabletypes_pb2.py
akshephard/xboswave
e254ec307265da61a2f8d76cadc40b8d1e7f2f1a
[ "BSD-3-Clause" ]
1
2019-06-23T05:44:46.000Z
2019-06-23T05:44:46.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: nullabletypes.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as ...
26.889381
342
0.729636
10c26729944d8e47d9f5c6b192937359e48e63ef
4,584
py
Python
housing_prices_kaggle/results/2020-04-29/runall.py
be2112/modeling_projects
db870ad684d31f1c95b66a782c8bbffacb55c352
[ "MIT" ]
null
null
null
housing_prices_kaggle/results/2020-04-29/runall.py
be2112/modeling_projects
db870ad684d31f1c95b66a782c8bbffacb55c352
[ "MIT" ]
null
null
null
housing_prices_kaggle/results/2020-04-29/runall.py
be2112/modeling_projects
db870ad684d31f1c95b66a782c8bbffacb55c352
[ "MIT" ]
null
null
null
# runall.py from collections import OrderedDict from sklearn.ensemble import RandomForestRegressor from sklearn.impute import SimpleImputer from sklearn.model_selection import ShuffleSplit from sklearn.pipeline import Pipeline from sklearn.pipeline import make_pipeline, FeatureUnion from sklearn.preprocessing import O...
39.86087
120
0.695462
10c276665fdc1e825769c5b7cc90dc3c42bee62b
37
py
Python
{{ cookiecutter.domain }}/custom_components/{{ cookiecutter.domain }}/const.py
Rihan9/cookiecutter-homeassistant-component
46bdd8e16d360562b0513a12f6c46df473bb4d89
[ "MIT" ]
26
2020-06-01T02:58:33.000Z
2022-03-26T00:55:06.000Z
{{ cookiecutter.domain }}/custom_components/{{ cookiecutter.domain }}/const.py
Rihan9/cookiecutter-homeassistant-component
46bdd8e16d360562b0513a12f6c46df473bb4d89
[ "MIT" ]
3
2020-09-09T13:54:59.000Z
2021-08-29T17:43:34.000Z
{{ cookiecutter.domain }}/custom_components/{{ cookiecutter.domain }}/const.py
Rihan9/cookiecutter-homeassistant-component
46bdd8e16d360562b0513a12f6c46df473bb4d89
[ "MIT" ]
14
2020-06-01T12:28:08.000Z
2022-03-20T16:07:23.000Z
DOMAIN = "{{ cookiecutter.domain }}"
18.5
36
0.648649
10c2820d996e4ee29bd411bddd15d40dc887279b
1,235
py
Python
colourz/spinners.py
alexmacniven/colour
3565f1da670bcc26858db52db6bee40c06f29f9a
[ "MIT" ]
null
null
null
colourz/spinners.py
alexmacniven/colour
3565f1da670bcc26858db52db6bee40c06f29f9a
[ "MIT" ]
2
2019-04-03T14:54:31.000Z
2020-03-24T16:27:48.000Z
colourz/spinners.py
alexmacniven/colour
3565f1da670bcc26858db52db6bee40c06f29f9a
[ "MIT" ]
1
2019-03-21T14:06:23.000Z
2019-03-21T14:06:23.000Z
import sys import threading import time
23.301887
58
0.42915
10c2ed18dfd7bc71d142425cca4751533bd0adeb
346
py
Python
ores/tests/test_score_request.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
ores/tests/test_score_request.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
ores/tests/test_score_request.py
ureesoriano/ores
dda9db6c8737d12acbae5b0d43938d93c9e7ea8e
[ "MIT" ]
null
null
null
from ..score_request import ScoreRequest
26.615385
55
0.653179
10c31a3d91c9d33e35570eebf1a248037271c823
613
py
Python
project/fs/fs_generalfunctions.py
cj8-cheerful-cheetas/project
5d9c7cfc2cfec5fca05997bc42d490529cd935ab
[ "MIT" ]
null
null
null
project/fs/fs_generalfunctions.py
cj8-cheerful-cheetas/project
5d9c7cfc2cfec5fca05997bc42d490529cd935ab
[ "MIT" ]
3
2021-07-17T10:52:21.000Z
2021-07-17T10:55:54.000Z
project/fs/fs_generalfunctions.py
cj8-cheerful-cheetas/project
5d9c7cfc2cfec5fca05997bc42d490529cd935ab
[ "MIT" ]
2
2021-07-17T10:54:33.000Z
2021-08-30T19:27:49.000Z
from fs.fs_exceptions import NoSuchIndex "array shfting"
19.774194
62
0.595432
10c3b9550e1437e1be83b2829d5baa30281f891a
9,785
py
Python
Spatial-Transformer-PCD/sampling-based/splatnet/semseg3d/test.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
Spatial-Transformer-PCD/sampling-based/splatnet/semseg3d/test.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
Spatial-Transformer-PCD/sampling-based/splatnet/semseg3d/test.py
tamaslevente/trai
4bf68463b941f305d9b25a9374b6c2a2d51a8046
[ "MIT" ]
null
null
null
""" Copyright (C) 2018 NVIDIA Corporation. All rights reserved. Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode). """ import os import glob import argparse import time import numpy as np import caffe import splatnet.configs from splatnet.utils import modify_blob_...
41.995708
120
0.626265
10c432e6abf57e89ba6b4e43e6f68aa1e3b62483
3,284
py
Python
lib/metrics.py
nobodykid/dcgan_code
be7ddca6abd34cb5436b8304bf956cff8c40f3f2
[ "MIT" ]
null
null
null
lib/metrics.py
nobodykid/dcgan_code
be7ddca6abd34cb5436b8304bf956cff8c40f3f2
[ "MIT" ]
null
null
null
lib/metrics.py
nobodykid/dcgan_code
be7ddca6abd34cb5436b8304bf956cff8c40f3f2
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import theano import theano.tensor as T import gc import time from theano_utils import floatX from ops import euclidean, cosine from sklearn import metrics from sklearn.linear_model import LogisticRegression as LR A = T.matrix() B = T.matrix() ed = euclidean(A, B) cd = cosine(...
32.84
98
0.592266
10c5726cbf6c5c23694fc1846d272d5090d75571
1,130
py
Python
hassio-google-drive-backup/backup/model/syncer.py
voxipbx/hassio-addons
ddf2f1745f4240c2905f9f9d7616a927fb8934e4
[ "MIT" ]
1
2022-01-22T18:27:04.000Z
2022-01-22T18:27:04.000Z
hassio-google-drive-backup/backup/model/syncer.py
voxipbx/hassio-addons
ddf2f1745f4240c2905f9f9d7616a927fb8934e4
[ "MIT" ]
19
2021-09-29T06:13:25.000Z
2022-03-08T06:13:49.000Z
hassio-google-drive-backup/backup/model/syncer.py
voxipbx/hassio-addons
ddf2f1745f4240c2905f9f9d7616a927fb8934e4
[ "MIT" ]
1
2021-12-12T19:31:05.000Z
2021-12-12T19:31:05.000Z
from typing import List from injector import inject, singleton from .coordinator import Coordinator from backup.time import Time from backup.worker import Worker, Trigger from backup.logger import getLogger from backup.exceptions import PleaseWait logger = getLogger(__name__)
30.540541
81
0.621239
10c592d9473d66ce7243d0ca836019f719f1800a
35
py
Python
venv/lib/python3.6/tempfile.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
venv/lib/python3.6/tempfile.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
venv/lib/python3.6/tempfile.py
bradjballard/personal_search_engine
530c5224721a7d700ca0c7c78a513bbc81f05c38
[ "NCSA" ]
null
null
null
/anaconda/lib/python3.6/tempfile.py
35
35
0.828571
10c684ce31863da0ee17c3411588cb6b1aa624c4
6,832
py
Python
momo/plugins/flask/search.py
shichao-an/momo
9996bc22b1d99d379633e18e94f4815e12435898
[ "BSD-2-Clause" ]
6
2018-06-08T18:49:10.000Z
2020-09-29T23:54:38.000Z
momo/plugins/flask/search.py
shichao-an/momo
9996bc22b1d99d379633e18e94f4815e12435898
[ "BSD-2-Clause" ]
3
2016-08-13T02:15:04.000Z
2016-11-02T00:05:40.000Z
momo/plugins/flask/search.py
shichao-an/momo
9996bc22b1d99d379633e18e94f4815e12435898
[ "BSD-2-Clause" ]
2
2018-06-08T18:49:12.000Z
2018-08-07T07:17:26.000Z
# search backend from momo.core import Node from momo.plugins.flask.filters import get_attr from momo.plugins.flask.utils import str_to_bool, split_by from momo.utils import txt_type, bin_type def parse_q(s): """Parse the value of query string q (?q=) into a search sub-term.""" if '=' not in s: nam...
32.688995
78
0.55079
10c78dc6410c3747583e9c4164a76821855cd1e1
116
py
Python
Web/utils/functions.py
CabbSir/CAU_Graduate_Course_Schedule
63765875a413c2fc9a13eaeda26271325ceea2d0
[ "MIT" ]
null
null
null
Web/utils/functions.py
CabbSir/CAU_Graduate_Course_Schedule
63765875a413c2fc9a13eaeda26271325ceea2d0
[ "MIT" ]
null
null
null
Web/utils/functions.py
CabbSir/CAU_Graduate_Course_Schedule
63765875a413c2fc9a13eaeda26271325ceea2d0
[ "MIT" ]
null
null
null
from flask import request
23.2
69
0.784483
10c7b4e8d153e9a166fd23f1d8c092f1c7442e90
10,877
py
Python
lakesuperior/api/resource.py
barmintor/lakesuperior
a1e534a56cf762e55273d2421edf5e4948c3159b
[ "Apache-2.0" ]
null
null
null
lakesuperior/api/resource.py
barmintor/lakesuperior
a1e534a56cf762e55273d2421edf5e4948c3159b
[ "Apache-2.0" ]
null
null
null
lakesuperior/api/resource.py
barmintor/lakesuperior
a1e534a56cf762e55273d2421edf5e4948c3159b
[ "Apache-2.0" ]
null
null
null
import logging from functools import wraps from itertools import groupby from multiprocessing import Process from threading import Lock, Thread import arrow from rdflib import Graph, Literal, URIRef from rdflib.namespace import XSD from lakesuperior.config_parser import config from lakesuperior.exceptions import ( ...
32.085546
85
0.689069
10c83c58eb3b561c0d0dd30c346ea077d7b88fb9
110
py
Python
env/lib/python3.6/site-packages/openpyxl/workbook/external_link/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
34
2018-07-13T11:30:46.000Z
2022-01-05T13:48:10.000Z
env/lib/python3.6/site-packages/openpyxl/workbook/external_link/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
31
2017-01-05T06:07:28.000Z
2018-05-27T13:13:06.000Z
env/lib/python3.6/site-packages/openpyxl/workbook/external_link/__init__.py
anthowen/duplify
846d01c1b21230937fdf0281b0cf8c0b08a8c24e
[ "MIT" ]
22
2018-07-13T11:30:48.000Z
2021-09-25T13:30:08.000Z
from __future__ import absolute_import # Copyright (c) 2010-2015 openpyxl from .external import ExternalLink
22
38
0.827273
10ca34a36e384eb81002bc0dd5ef92f09e6cd1e3
1,212
py
Python
src/data/download/utils/test_tqdm.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
1
2022-03-30T15:06:18.000Z
2022-03-30T15:06:18.000Z
src/data/download/utils/test_tqdm.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
src/data/download/utils/test_tqdm.py
lcn-kul/conferencing-speech-2022
1089b2baaf2fcf3ac8ef44c65b80da2e5b2c331b
[ "MIT" ]
null
null
null
import time from tqdm import tqdm from src.data.download.utils.tqdm_write import ( tqdm_print, tqdm_printer, tqdm_run_parallel, ) if __name__ == "__main__": test_tqdm()
22.867925
79
0.617162
10ca661d82b5269b0a8ebb7b120cf2934c9a705f
515
py
Python
src/package_controller/library/utils/pipe_commands.py
alexseitsinger/package_controller
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
[ "BSD-2-Clause" ]
2
2020-11-24T14:16:38.000Z
2021-03-16T19:29:45.000Z
src/package_controller/library/utils/pipe_commands.py
alexseitsinger/package_controller
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
[ "BSD-2-Clause" ]
2
2020-11-25T01:00:45.000Z
2020-11-25T01:59:58.000Z
src/package_controller/library/utils/pipe_commands.py
alexseitsinger/package_controller
0ee896986cfa17a96bf9fb6afff35dd97f0b1211
[ "BSD-2-Clause" ]
null
null
null
from subprocess import Popen, PIPE import shlex
28.611111
85
0.660194
10ccc2f736285f1e812a42e394e0d8d9c3d5186a
2,248
py
Python
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
djAidESILV/account/migrations/0001_initial.py
Kulumbaf/AidESILV
04dad828048edffdd3662b24c415edce22fd3ea3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-14 22:02 from django.db import migrations, models
49.955556
114
0.593416
10cdb0831f3d47cf768cf2a8247cb721e4071727
1,946
py
Python
fast_transformers/recurrent/attention/full_attention.py
jmercat/fast-transformers
1061f2ffa09c6d74aa252389e47f76ae827b1064
[ "MIT" ]
4
2020-09-28T01:47:19.000Z
2021-02-24T17:01:25.000Z
fast_transformers/recurrent/attention/full_attention.py
jmercat/fast-transformers
1061f2ffa09c6d74aa252389e47f76ae827b1064
[ "MIT" ]
null
null
null
fast_transformers/recurrent/attention/full_attention.py
jmercat/fast-transformers
1061f2ffa09c6d74aa252389e47f76ae827b1064
[ "MIT" ]
1
2021-06-22T01:37:58.000Z
2021-06-22T01:37:58.000Z
# # Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/ # Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch>, # Apoorv Vyas <avyas@idiap.ch> # """Implement the typical softmax attention as a recurrent module to speed up autoregressive inference. See fast_transformers.attention.full_attenti...
35.381818
79
0.635663
10cdef881dc36185566ac1966c055227805cc631
2,797
py
Python
examples/example_compute_availabilitysets.py
zikalino/AzurePythonExamples
23f9c173f0736f4e7ff66dde0402ef88da4ccc8f
[ "MIT" ]
1
2020-09-04T14:38:13.000Z
2020-09-04T14:38:13.000Z
examples/example_compute_availabilitysets.py
zikalino/AzurePythonExamples
23f9c173f0736f4e7ff66dde0402ef88da4ccc8f
[ "MIT" ]
null
null
null
examples/example_compute_availabilitysets.py
zikalino/AzurePythonExamples
23f9c173f0736f4e7ff66dde0402ef88da4ccc8f
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #-------------------------------------------------------------------------- import os f...
42.378788
153
0.507329
10ce6fec2773612267b1f7b336d29f6e43213825
361
py
Python
app/templatetags/sessions_tags.py
TataneInYourFace/wifill
9b0cbb43f2e3671a4272246ada7a863f42f948c5
[ "MIT" ]
null
null
null
app/templatetags/sessions_tags.py
TataneInYourFace/wifill
9b0cbb43f2e3671a4272246ada7a863f42f948c5
[ "MIT" ]
null
null
null
app/templatetags/sessions_tags.py
TataneInYourFace/wifill
9b0cbb43f2e3671a4272246ada7a863f42f948c5
[ "MIT" ]
null
null
null
from django import template register = template.Library() register.filter('is_authenticated', is_authenticated) register.filter('is_admin', is_admin)
22.5625
86
0.767313
10d101f89f65a141c9c034efc1f2f95b8c832da5
409
py
Python
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
UniversitaDellaCalabria/urlShortener
d5e9a7a5b2a8253ce72fb28ec4f95b06ed4782fc
[ "BSD-3-Clause" ]
4
2020-06-21T07:09:34.000Z
2020-09-30T10:49:59.000Z
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
xmomix/urlShortener
fb4bbf9c3c909dfdf421e85bbdffb41fbb167f9f
[ "BSD-3-Clause" ]
2
2020-06-20T21:34:30.000Z
2020-10-21T14:06:40.000Z
tinyurl/urlshortener/migrations/0003_auto_20200407_2253.py
xmomix/urlShortener
fb4bbf9c3c909dfdf421e85bbdffb41fbb167f9f
[ "BSD-3-Clause" ]
1
2020-06-22T09:47:24.000Z
2020-06-22T09:47:24.000Z
# Generated by Django 3.0.5 on 2020-04-07 22:53 from django.db import migrations
22.722222
96
0.633252
10d1c25e99e7cd2d15556b2deb5cf0094ac0d49a
704
py
Python
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
virtualapp/migrations/0003_submission.py
Halar1312/Virtual-School
3dced5f196f4283c0840fa81f35abe85e1f55efd
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-23 17:40 from django.db import migrations, models
27.076923
86
0.545455
10d33a446c94dacba57fcaf682f107f5f0331817
903
py
Python
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
51
2021-03-19T14:14:31.000Z
2022-02-18T00:42:51.000Z
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
9
2021-03-31T15:39:28.000Z
2021-04-16T13:28:15.000Z
podium/datasets/__init__.py
TakeLab/podium
11ef32d889e483d4d77a44b61e0b5da956ee3a54
[ "BSD-3-Clause" ]
1
2021-07-26T04:54:18.000Z
2021-07-26T04:54:18.000Z
""" Package contains datasets. """ from .dataset import ( Dataset, DatasetBase, DatasetConcatView, DatasetIndexedView, DatasetSlicedView, concat, create_view, rationed_split, stratified_split, ) from .example_factory import Example, ExampleFactory, ExampleFormat from .hierarhical_da...
24.405405
89
0.739756
10d3bc04013d12bee2f194cf78434bf8cc7b7923
7,263
py
Python
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
null
null
null
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
1
2016-04-12T12:39:52.000Z
2016-04-12T12:39:52.000Z
detection.py
40i4/receiptDetection
26234b951c3fd641022901725636e7c45e4b97f0
[ "MIT" ]
null
null
null
# 1) find contours of the receipt # 2) if there are more than 4 vertices, find those which # are the most likely to be receipt vertices, mark and show them import cv2 import numpy as np import imutils from transform import four_point_transform from skimage.filter import threshold_adaptive font = cv2.FONT_HERSHEY_SIM...
33.781395
86
0.569324
10d3f10b652bc3b204660fb2f81053f0ef5ca483
8,549
py
Python
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
1
2018-02-22T01:06:00.000Z
2018-02-22T01:06:00.000Z
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
null
null
null
rwf.py
kbailey4444/rwf
276e0b58922a3014680362dc845a6f3ec594d6b4
[ "MIT" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- from time import time from collections import deque from threading import RLock, Thread from random import Random from httplib import HTTPConnection, responses from argparse import ArgumentParser if __name__ == "__main__": main()
38.859091
79
0.561352
10d3f9c66b9b6f1acf358bee09f3b9bcb84cc122
1,856
py
Python
api.py
vladloh/acm-cli
136ca85cffe16c350977d5bf14e5b7a86962c477
[ "MIT" ]
null
null
null
api.py
vladloh/acm-cli
136ca85cffe16c350977d5bf14e5b7a86962c477
[ "MIT" ]
null
null
null
api.py
vladloh/acm-cli
136ca85cffe16c350977d5bf14e5b7a86962c477
[ "MIT" ]
null
null
null
import argparse from prettytable import PrettyTable from prettytable import from_html_one from worker import Worker from config import login, password, folder_path def initialize_parser(): """Initialize parser for CLI.""" parser = argparse.ArgumentParser( usage='acm [command] [parameters]', ) ...
23.2
104
0.671336
10d6381626e93a981f19d1b84b92f648aacbca47
184
py
Python
log2/package0/module0.py
nkzmsb/howto
bdf5e8aa8dc4b651f9bb132b1d533de90ba45ef4
[ "MIT" ]
null
null
null
log2/package0/module0.py
nkzmsb/howto
bdf5e8aa8dc4b651f9bb132b1d533de90ba45ef4
[ "MIT" ]
2
2021-12-14T00:19:47.000Z
2021-12-14T00:21:53.000Z
log2/package0/module0.py
nkzmsb/howto
bdf5e8aa8dc4b651f9bb132b1d533de90ba45ef4
[ "MIT" ]
null
null
null
# import logging logger=logging.getLogger(__name__) # Note # any Handler is not added to logger
16.727273
49
0.744565
10d657ca9f52a4409a45cadb1528a0462f3303c6
1,169
py
Python
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
wrappers/test_nor.py
twhyntie/task-data-management
a3999886d79fcec18ed8173638bf8229a961189c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #...the usual suspects. import os, inspect #...for the unit testing. import unittest #...for the logging. import logging as lg # The wrapper class to test. from nor import NOR if __name__ == "__main__": lg.basicConfig(filename='log_test_nor.log', filemode='w', l...
21.648148
77
0.582549
10d6a5507e243eccb67ce2f82587bb48708ae834
73
py
Python
Pandas.py
ishitha08/c103
b46d3932868d2fe6b0394a6cabf613cb5c79f083
[ "MIT" ]
null
null
null
Pandas.py
ishitha08/c103
b46d3932868d2fe6b0394a6cabf613cb5c79f083
[ "MIT" ]
null
null
null
Pandas.py
ishitha08/c103
b46d3932868d2fe6b0394a6cabf613cb5c79f083
[ "MIT" ]
null
null
null
import pandas as pd data = [1,2,3,4,5] df = pd.DataFrame(data) print(df)
18.25
23
0.671233
10d7a4e08ece3e0ff7e6d4fe13926d33defb668e
1,506
py
Python
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
90
2015-04-07T10:26:53.000Z
2022-03-07T15:14:57.000Z
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
14
2015-10-13T16:25:59.000Z
2021-01-21T18:31:03.000Z
deprecated/obsolete/src/testavl.py
Anirban166/tstl
73dac02f084b10e1bf2f172a5d1306bb5fbd7f7e
[ "Apache-2.0" ]
32
2015-04-07T10:41:29.000Z
2022-02-26T05:17:28.000Z
import avl import random import sys import coverage import time import numpy start = time.time() branchesHit = set() maxval = int(sys.argv[1]) testlen = int(sys.argv[2]) numtests = int(sys.argv[3]) cov = coverage.coverage(branch=True, source=["avl.py"]) cov.start() for t in xrange(0,numtests): a = avl.AVLTree...
24.688525
57
0.522576
10d929632dae7a58fe9ad2a5c602cd815300085f
2,160
py
Python
tests/test_linked_tmp_dir.py
jessekrubin/pup
2cab5da7b1b39453c44be556b691db83442b0565
[ "BSD-2-Clause" ]
2
2019-03-07T09:26:36.000Z
2019-07-31T17:24:23.000Z
tests/test_linked_tmp_dir.py
jessekrubin/pup
2cab5da7b1b39453c44be556b691db83442b0565
[ "BSD-2-Clause" ]
2
2019-10-26T02:29:54.000Z
2021-06-25T15:28:12.000Z
tests/test_linked_tmp_dir.py
jessekrubin/pup
2cab5da7b1b39453c44be556b691db83442b0565
[ "BSD-2-Clause" ]
1
2019-07-31T17:24:32.000Z
2019-07-31T17:24:32.000Z
# -*- coding: utf-8 -*- import os from os import chdir from os import path from os import sep import pupy.utils from pupy import dirs_gen from pupy import files_gen PWD = path.split(path.realpath(__file__))[0] if __name__ == "__main__": pass
27.341772
78
0.571296
10db58e9449ec9ec50d75caab8c6a1198181a281
8,527
py
Python
questionnaire_core/question_types/base.py
anfema/django-questionnaire-core
82151cf14d00b5a83cb478cc07f9143fd57382c9
[ "MIT" ]
null
null
null
questionnaire_core/question_types/base.py
anfema/django-questionnaire-core
82151cf14d00b5a83cb478cc07f9143fd57382c9
[ "MIT" ]
2
2019-01-30T16:05:15.000Z
2021-06-10T14:45:57.000Z
questionnaire_core/question_types/base.py
anfema/django-questionnaire-core
82151cf14d00b5a83cb478cc07f9143fd57382c9
[ "MIT" ]
2
2019-01-17T12:09:47.000Z
2019-01-30T15:59:01.000Z
import inspect import string from django import forms from django.core.exceptions import MultipleObjectsReturned, ObjectDoesNotExist from django.template.engine import Engine from django.template.exceptions import TemplateDoesNotExist class QuestionTypeMeta(type): """Meta class for question type classes. ...
37.399123
114
0.659669
10dbd95522cfda0f51f8b8c34cf1b090e5b9492f
3,504
py
Python
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
null
null
null
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
null
null
null
list_files/report_data.py
alepuzio/listfiles
cddc329cf773016a4703946c338a6e16d81380f5
[ "MIT" ]
1
2021-06-13T12:44:31.000Z
2021-06-13T12:44:31.000Z
import sys import os from tests.test_single_file import SingleFile from .rootpath import Rootpath from .report_file import RowCSV from .report_file import RowDuplicated
28.958678
102
0.551941
10dcc329b40ad7a19895cdc5735eee49de04563d
197
py
Python
data_collection/gazette/spiders/sc_cunha_pora.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
454
2018-04-07T03:32:57.000Z
2020-08-17T19:56:22.000Z
data_collection/gazette/spiders/sc_cunha_pora.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
254
2020-08-18T14:09:43.000Z
2022-03-28T11:30:51.000Z
data_collection/gazette/spiders/sc_cunha_pora.py
kaiocp/querido-diario
86004049c6eee305e13066cf3607d30849bb099a
[ "MIT" ]
183
2018-04-11T15:09:37.000Z
2020-08-15T18:55:11.000Z
from gazette.spiders.base.fecam import FecamGazetteSpider
24.625
57
0.771574
10dd825e001aa7924f28c1740803cd3a8e44f8f0
320
py
Python
pythonProject/desafio079.py
maisalobao/Python
8b8fa9796853c8f094cb1602e7e45f57905a9057
[ "MIT" ]
1
2022-03-26T08:46:36.000Z
2022-03-26T08:46:36.000Z
pythonProject/desafio079.py
maisalobao/Python
8b8fa9796853c8f094cb1602e7e45f57905a9057
[ "MIT" ]
null
null
null
pythonProject/desafio079.py
maisalobao/Python
8b8fa9796853c8f094cb1602e7e45f57905a9057
[ "MIT" ]
null
null
null
numeros = list() while True: n = (int(input('Digite um valor:'))) if n not in numeros: numeros.append(n) else: print('Valor duplicado!') escolha = str(input('Deseja continuar? [S/N]')).upper().strip()[0] if escolha in 'N': break numeros.sort() print(f'Voc digitou {numeros}')
26.666667
70
0.590625
10ddae9de8ee7cd14d8dcf0dcc4990b53daa7cad
3,228
py
Python
wb/main/jobs/inference_test_image/test_image_classification_explainer.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
23
2022-03-17T12:24:09.000Z
2022-03-31T09:13:30.000Z
wb/main/jobs/inference_test_image/test_image_classification_explainer.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
18
2022-03-21T08:17:44.000Z
2022-03-30T12:42:30.000Z
wb/main/jobs/inference_test_image/test_image_classification_explainer.py
apaniukov/workbench
2f2653ecfd0143d2d53e33ad84379f13443fdfaa
[ "Apache-2.0" ]
16
2022-03-17T12:24:14.000Z
2022-03-31T12:15:12.000Z
""" OpenVINO DL Workbench Test image explainer Copyright (c) 2021 Intel 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 re...
39.851852
111
0.711586
10de9730706a6a2f04643d640b347ca8271e4865
170
py
Python
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc077/abc077_a/11364753.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys s = sys.stdin.read().split() if __name__ == "__main__": main()
13.076923
48
0.488235
10e01d950f12c52f0048a5b825e752558dafbd51
2,540
py
Python
test/ZIP/ZIPROOT.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
1,403
2017-11-23T14:24:01.000Z
2022-03-30T20:59:39.000Z
test/ZIP/ZIPROOT.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
3,708
2017-11-27T13:47:12.000Z
2022-03-29T17:21:17.000Z
test/ZIP/ZIPROOT.py
jcassagnol-public/scons
8eaf585a893757e68c9e4a6e25d375021fa5eab7
[ "MIT" ]
281
2017-12-01T23:48:38.000Z
2022-03-31T15:25:44.000Z
#!/usr/bin/env python # # MIT License # # Copyright The SCons Foundation # # 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 us...
32.987013
88
0.709843
10e0c703082609535db5fb8adcd5ad5028b03e45
1,943
py
Python
tests/macro/scripts/MPI/np_point_to_point_3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
206
2018-06-28T00:28:47.000Z
2022-03-29T05:17:03.000Z
tests/macro/scripts/MPI/np_point_to_point_3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
670
2018-07-23T11:02:24.000Z
2022-03-30T07:28:05.000Z
tests/macro/scripts/MPI/np_point_to_point_3.py
dina-fouad/pyccel
f4d919e673b400442b9c7b81212b6fbef749c7b7
[ "MIT" ]
19
2019-09-19T06:01:00.000Z
2022-03-29T05:17:06.000Z
# pylint: disable=missing-function-docstring, missing-module-docstring/ from mpi4py import MPI from numpy import zeros # we need to declare these variables somehow, # since we are calling mpi subroutines if __name__ == '__main__': size = -1 rank = -1 comm = MPI.COMM_WORLD rank = comm.Get_rank() siz...
22.858824
71
0.478127
10e1b2a4e8a21648b7214c1e5fa50745b33f9851
1,196
py
Python
tests/unit/admin/views/test_core.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
2
2015-11-08T12:57:16.000Z
2020-11-19T09:43:14.000Z
tests/unit/admin/views/test_core.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
11
2020-01-06T18:55:57.000Z
2022-03-11T23:27:05.000Z
tests/unit/admin/views/test_core.py
matt-land/warehouse
0acb5d94528099ed5356253457cf8dc0b4e50aad
[ "Apache-2.0" ]
1
2019-08-26T06:52:55.000Z
2019-08-26T06:52:55.000Z
# 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, software # distributed under the Li...
31.473684
74
0.710702
10e23c5989f6592db2996a27a31a5176cbcc0741
1,061
py
Python
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
Pytorch/classifier.py
sidgairo18/Pytorch-Tensorflow-Practice
fa2fb9f269a8c8f34c8fc667c41da4e9a56d6bd0
[ "WTFPL" ]
null
null
null
''' 1. Load and normalizeing the CIFAR10 training and test datasets using torchvision 2. Define a Convolutional Neural Network 3. Define a loss function 4. Train the network on the training data 5. Test the network on the test data ''' # Reference: Pytorch Tutorial 60 minute Blitz, Training a classifier # Link: https:...
40.807692
112
0.758718
10e2ea010aa21fce8b0f2bb0646438f5615e3cee
637
py
Python
swexpert/d2/sw_1966.py
ruslanlvivsky/python-algorithm
2b49bed33cd0e95b8a1e758008191f4392b3f667
[ "MIT" ]
3
2021-07-18T14:40:24.000Z
2021-08-14T18:08:13.000Z
swexpert/d2/sw_1966.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
swexpert/d2/sw_1966.py
jinsuSang/python-algorithm
524849a0a7e71034d329fef63c4f384930334177
[ "MIT" ]
null
null
null
test_cases = int(input().strip()) for t in range(1, test_cases + 1): n = int(input().strip()) nums = list(map(int, input().strip().split())) sorted_nums = bubble_sort(nums) result = '' for num in sorted_nums: result += str(num) + ' ' print('#{} {}'.format(t, result))
20.548387
59
0.488226
10e4e75e4df7060ce2493ae06b80ee7bd8d94593
883
py
Python
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
1
2021-08-16T20:21:11.000Z
2021-08-16T20:21:11.000Z
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
null
null
null
dualtext_server/dualtext_api/migrations/0013_auto_20210104_0116.py
mathislucka/dualtext
70cf7734cd66e60e482e2df09a3341224687526f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-04 01:16 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
32.703704
153
0.676104
10e63d47bda56a757ae0b4b4f62e29ce5cd1b921
1,166
py
Python
server/setup.py
JayYip/bert-as-service
65f7bc46467ab791f85539c5a931212cb5f1c419
[ "MIT" ]
1
2019-04-20T08:40:24.000Z
2019-04-20T08:40:24.000Z
server/setup.py
JayYip/bert-multitask-service
65f7bc46467ab791f85539c5a931212cb5f1c419
[ "MIT" ]
null
null
null
server/setup.py
JayYip/bert-multitask-service
65f7bc46467ab791f85539c5a931212cb5f1c419
[ "MIT" ]
null
null
null
from os import path import codecs from setuptools import setup, find_packages with codecs.open('README.md', 'r', 'utf8') as reader: long_description = reader.read() with codecs.open('requirements.txt', 'r', 'utf8') as reader: install_requires = list(map(lambda x: x.strip(), reader.readlines())) setup( ...
31.513514
88
0.689537
10e6fa85535b14df08f37fcbddf1bff0af5b97fd
1,418
py
Python
utils/get_zssr_resutls.py
geopi1/Improved_USRNet
06395641c30f3df2986cf70f7ceee6c9a5bc0aa9
[ "MIT" ]
20
2020-08-24T07:21:30.000Z
2021-07-09T04:20:06.000Z
utils/get_zssr_resutls.py
geopi1/Improved_USRNet
06395641c30f3df2986cf70f7ceee6c9a5bc0aa9
[ "MIT" ]
1
2020-10-21T08:02:18.000Z
2021-01-17T23:29:58.000Z
utils/get_zssr_resutls.py
geopi1/Improved_USRNet
06395641c30f3df2986cf70f7ceee6c9a5bc0aa9
[ "MIT" ]
3
2020-11-19T05:17:10.000Z
2021-05-04T11:01:10.000Z
import matplotlib.pyplot as plt import os import numpy as np import cv2 from skimage.metrics import structural_similarity as ssim from USRNet.utils import utils_image as util SMALL_SIZE = 24 MEDIUM_SIZE = 24 BIGGER_SIZE = 24 plt.rc('font', size=SMALL_SIZE) # controls default text sizes plt.rc('axes', titles...
35.45
96
0.74048
10e7411f57c3da0a14d3d7adf2d484d11b51d3c9
1,955
py
Python
task/session.py
ScottWales/tasks
7647c1b3cc7ee631029193d8416fd0f20de7a05d
[ "Apache-2.0" ]
null
null
null
task/session.py
ScottWales/tasks
7647c1b3cc7ee631029193d8416fd0f20de7a05d
[ "Apache-2.0" ]
null
null
null
task/session.py
ScottWales/tasks
7647c1b3cc7ee631029193d8416fd0f20de7a05d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2015 ARC Centre of Excellence for Climate Systems Science author: Scott Wales <scott.wales@unimelb.edu.au> 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 h...
28.333333
83
0.59335
10e78c0fc826ea93b28382039c36ba828ba1ef04
362
py
Python
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
1
2017-10-22T06:12:33.000Z
2017-10-22T06:12:33.000Z
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
null
null
null
happ/api/regular/feedback.py
Mafioso/happ-backend
3a3a57add4ec55985cc37db79c71430ed78b1ee3
[ "MIT" ]
null
null
null
from rest_framework import mixins from rest_framework_mongoengine import viewsets from happ.serializers import FeedbackMessageSerializer
30.166667
79
0.834254
10e7e48e445393fa9cddec8e7e757ee1303b32a4
5,058
py
Python
src/okwugbe/metrics.py
edaiofficial/okwugbe
74233162748a0a583c622e554c08d1d294758f1e
[ "MIT" ]
5
2021-12-22T03:39:16.000Z
2022-01-14T20:52:16.000Z
src/okwugbe/metrics.py
chrisemezue/okwugbe
e93266fc9d1af1104800efc332f76852d97ddf77
[ "MIT" ]
2
2021-12-22T23:50:26.000Z
2021-12-28T03:58:14.000Z
src/okwugbe/metrics.py
chrisemezue/okwugbe
e93266fc9d1af1104800efc332f76852d97ddf77
[ "MIT" ]
3
2021-12-22T03:39:23.000Z
2022-02-18T23:21:34.000Z
import numpy as np
39.515625
89
0.5862
10e801c7c91230517b18b1bc2bbf692c3cbfea50
946
py
Python
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
Day 1/balance_binary.py
queercat/N-Days-Of-Leetcode
abf32ec9bef5afaeed9e5caa3618e2f09418260e
[ "MIT" ]
null
null
null
root = Node(1) root.left = Node(2) root.right = Node(3) root.left.left = Node(4) root.left.right = Node(5) root.right.right = Node(6) root.right.right.right = Node(7) root.right.right.right.right = Node(8) print(root.tree_height()) print(root.is_balanced())
16.310345
55
0.651163
10e8609558f729c1c5d880e7bbeba6d000ba22a8
23,221
py
Python
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
4
2022-03-29T08:50:37.000Z
2022-03-30T12:00:22.000Z
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
torch_complex/tensor.py
Andong-Li-speech/TaylorBeamformer
fc3d0e79a19a0feb2f6faf37c538219d7ea78433
[ "MIT" ]
null
null
null
import numbers from typing import Union, List import numpy import torch EPSILON = torch.finfo(torch.float32).eps __all__ = ["ComplexTensor"] def sum(self, *args, **kwargs) -> "ComplexTensor": """ sum(self, dim, keepdim, *, dtype=None) sum(self, axis, keepdims, *, dtype=None) # numpy sty...
33.078348
88
0.56535
10e8e4534667bb714882b3a04d470fb684fe8e21
1,724
py
Python
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
4
2019-05-27T15:31:24.000Z
2021-02-17T12:55:58.000Z
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
null
null
null
with-javascript-clients/trio-websocket-server/next-server-example.py
anhinga/2019-python-drafts
d312e4c902f650fb4ad91b9ae7df934ab530a6c6
[ "MIT" ]
1
2021-02-17T12:56:00.000Z
2021-02-17T12:56:00.000Z
import trio from trio_websocket import serve_websocket, ConnectionClosed import sys import names who_is_who = SetOfNames('Server Ben') trio.run(main)
38.311111
119
0.611369
10e947bdae89ed7b8db18360f7d290e49b33356b
8,638
py
Python
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
10
2017-04-11T19:18:40.000Z
2019-10-17T18:00:30.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
2
2017-04-20T17:32:57.000Z
2021-10-18T17:15:00.000Z
sca/core.py
open-power-sdk/source-code-advisor
f39d6f59bfd33e5ac1148e1e9b72f472c8429252
[ "Apache-2.0" ]
4
2017-04-12T23:59:37.000Z
2018-04-14T14:34:59.000Z
# -*- coding: utf-8 -*- """ Copyright (C) 2017 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 applicable law or agreed...
35.113821
86
0.607432
10eb2eb1e1c0179f273edc5b429b658630b21635
132
py
Python
lib/fmd/actions.py
GonzaloAlvarez/py-ga-sysadmin
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
2
2018-01-05T15:32:06.000Z
2021-06-02T13:15:05.000Z
lib/fmd/actions.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/fmd/actions.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
null
null
null
from addaction import AddAction from showaction import ShowAction from getaction import GetAction from listaction import ListAction
26.4
33
0.878788
10ec056f054912cb4b0a801c882030b7aec58eb5
5,568
py
Python
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
1
2021-07-19T22:03:13.000Z
2021-07-19T22:03:13.000Z
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
null
null
null
pypdf2_structures/pdf_obj_struct.py
GRV96/pypdf2_structures
a3dd07bef239d7ba899152ce61e1863dda9779a2
[ "MIT" ]
null
null
null
""" This module allows to write a PDF object structure in a file stream. An object structure consists of containers (dictionaries, lists, sets and tuples) embedded in one another and other objects. This module also works on structures that do not contain PDF objects. """ from PyPDF2.generic import BooleanObject, Dict...
25.658986
78
0.713182
10ed97d128b88ac1be3e9146a547173a352d36ad
1,459
py
Python
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
src/ralph/lib/custom_fields/tests/test_models.py
angry-tony/cmdb-ralph
eb2ad2212a133025b698eb48e379c0bfe14cace0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django import forms from django.test import TestCase from ..models import CustomField, CustomFieldTypes from .models import SomeModel
34.738095
72
0.64976
10eddb0bda4ef9a212e7422cec09a64125c85f9d
9,628
py
Python
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
Hw1/hw1_310555029.py
pingggg0629/110-Autumn---ML
0331359e4723984723272823f6fc340f26b783ba
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """hw1_310555029.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1JRZxfH5avZg0896ddvxZSfm2lUtMGKSu #Linear Regression ##(0) Load the data -> Standardize data -> Split the dataset """ import numpy as np import pandas as ...
30.565079
229
0.677399
10ede10483aa85ede7885663a3c53c210a5e7bf4
5,959
py
Python
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
list.py
PriyanshuKumarMishra/list_basic_question.py
5b974cd5c9bd01ae5da0b5c7d6c30766960a6a66
[ "MIT" ]
null
null
null
#### prime , even and odd number ##### # l=int(input("How many input do you need :")) # x=[] # y=[] # z=[] # b=[] # for p in range (l): # t=int(input("Enter the number :")) # x.append(t) # for i in x: # if i > 1: # for j in range(2,i): # if i%j==0: # break # else...
16.833333
77
0.458466
10ee5a867e9442e6f840b47ede6896ae45d15ac9
16,380
py
Python
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/predator/analysis/test/stacktrace_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from analysis.analysis_testcase import AnalysisTestCase from analysis.callstack_detectors import StartOfCallStack from analysis.stacktrace import FunctionLin...
41.052632
80
0.675031
10ee981491e95e5c5b7bf67f7fa5bf9b027269ad
327
py
Python
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
null
null
null
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
null
null
null
Classification/NaiveBayes/Multinomial-Naive-Bayes/mnb_classifier.py
avinashingit/Machine-Learning-in-Python
db63ebee78b396b01430bd4ad8dd4d7b7d5eefe8
[ "MIT" ]
1
2020-01-31T13:09:21.000Z
2020-01-31T13:09:21.000Z
# For building the Gaussioan Naive Bayes classifier, Iris dataset from Scikit Learn is being used. from sklearn.datasets import load_iris # Importing necessary scikit learn libraries from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB from sklearn.metrics import accuracy...
36.333333
98
0.853211
10f0ab8a942c51c67acca8df3fafde0f77b99972
86,336
py
Python
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
null
null
null
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
null
null
null
ChatBot/chatbot_search/chatbot_sentence_vec_by_bert.py
joleo/nlp_xiaojiang
6de490e1e6ef3213b288f447f0a222c2a16dd77b
[ "MIT" ]
2
2021-01-18T10:07:20.000Z
2022-01-12T10:09:47.000Z
# -*- coding: UTF-8 -*- # !/usr/bin/python # @time :2019/5/12 13:16 # @author :Mo # @function :chatbot based search, encode sentence_vec by bert def chatbot_sentence_vec_by_bert_own(): """bert encode is writted by my own""" from FeatureProject.bert.extract_keras_bert_feature import KerasBertVecto...
928.344086
16,060
0.82553
10f257bee6c8b9c72b45debde35fc8220e1d7d09
2,663
py
Python
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-29T03:48:42.000Z
2019-01-29T07:51:31.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
2
2019-01-09T16:03:17.000Z
2019-02-13T13:58:28.000Z
onnxruntime/test/testdata/CNTK/gen.py
jun-yoon/onnxruntime
806e24d5c69693533ed4b6fa56b84095efa5df70
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import cntk as C import numpy as np import onnx import os model_file = 'model.onnx' data_dir = 'test_data_set_0' if __name__=='__main__': np.random.seed(0) GenSimple() GenSharedWeights() GenSimpleMNIST()
32.876543
132
0.676305
10f262341aa17bc9e6c9627fbde97ada1f6bde4c
1,528
py
Python
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
2
2016-10-12T16:11:04.000Z
2017-08-25T18:29:44.000Z
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
null
null
null
setup.py
gpaOliveira/SuperDiffer
1936ead7ab209994892f6bc29a33a47415fa95e8
[ "MIT" ]
null
null
null
import os from setuptools import setup,find_packages project_name = "SuperDiffer" __version__ = "1.0.0" __author__ = "Gabriel Oliveira" __author_email__ = "gabriel.pa.oliveira@gmail.com" __author_username__ = "gpaOliveira" __description__ = "REST Service to calculate the difference between two input string...
34.727273
88
0.659031
10f323886fcda17f4ca99970441ea89c67714915
1,134
py
Python
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
4
2016-01-05T12:21:39.000Z
2016-12-22T15:56:37.000Z
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
132
2015-06-10T09:53:14.000Z
2022-02-01T17:35:54.000Z
mtp_cashbook/apps/cashbook/urls.py
uk-gov-mirror/ministryofjustice.money-to-prisoners-cashbook
d35a621e21631e577faacaeacb5ab9f883c9b4f4
[ "MIT" ]
3
2015-07-07T14:40:33.000Z
2021-04-11T06:20:14.000Z
from django.conf.urls import url from django.views.generic import RedirectView from .views import ( NewCreditsView, ProcessingCreditsView, ProcessedCreditsListView, ProcessedCreditsDetailView, SearchView, CashbookFAQView, CashbookGetHelpView, CashbookGetHelpSuccessView, ) urlpatterns = [ url(r...
42
113
0.722222
10f4e1c3903fa8067c8e89fb4ec897f34d53d80b
3,871
py
Python
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
Products.py
Idimma/api-web-scrapper-to-csv
ff4e11eb78d04b0b263b7e76909405ebd1a2e1b5
[ "MIT" ]
null
null
null
# coding: utf-8 # In[ ]: from bs4 import BeautifulSoup import csv # In[ ]: import requests import pandas as pd from time import sleep # In[ ]: brand = ' ' # header =['BRANDS', 'PRODUCT TITLE', 'PRODUCT GROUP', 'PRODUCT CODE', # 'PRICE', 'PRODUCT IMAGE','PRODUCT', 'DESCRIPTION'] # with open('product...
32.529412
702
0.572204
10f504e4b3eeb9d6415e959e475aa8d56aa55d8f
661
py
Python
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
string_split.py
maneeshdisodia/pythonic_examples
f722bfbe253bbcead111ba082550bdfd1c6046d3
[ "MIT" ]
null
null
null
import re w = 'AbcDefgHijkL' ws= ' .nalf!!213knlsc' wd =' ca++ and mbbs ' loc ='mumbai dombivli' r = re.findall('([A-Z])', w) print(r) r = re.findall('([A-Z][a-z]+)', w) print(r) r = re.findall('([a-z,A-Z,+]+)',wd) print(r) print(' '.join(r)) loc.find('mumcai') join_locations = { 'ncr': ['delhi', 'fari...
16.948718
61
0.568835
10f5a8ade59179bf2b0330345df9e5d84f2210ed
2,724
py
Python
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
11
2018-04-28T14:09:18.000Z
2022-03-04T19:10:00.000Z
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
6
2020-04-06T23:59:52.000Z
2021-02-03T01:49:14.000Z
pdepy/wave.py
OliverTso/PDE
b65fd92f0d62d4160ef93e2a29762025ba869012
[ "MIT" ]
2
2021-02-11T12:27:24.000Z
2021-05-11T16:46:13.000Z
""" Finite-difference solver for wave equation: u_yy = u_xx. Initial and boundary conditions: u(x, 0) = init(x), 0 <= x <= xf, u_y(x, 0) = d_init(x), 0 <= x <= xf, u(0, y) = bound_x0(y), 0 <= y <= yf, u(xf, y) = bound_xf(y), 0 <= y <= yf. """ import numpy as np from scipy import linalg ...
24.763636
89
0.506975
10f666661e1b73d5f929f70df77e0f7256e277cd
8,822
py
Python
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
2
2019-12-02T21:26:01.000Z
2022-03-12T18:35:24.000Z
irbt/cloud.py
tidalf/python-irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
28
2019-10-20T10:56:03.000Z
2019-10-27T13:16:45.000Z
irbt/cloud.py
tidalf/irbt
10a40b1b4c3a8e984bb61b859586aab6b63f4d3d
[ "MIT" ]
null
null
null
""" Cloud class for authentication and connexion setup. It allow interactions with the irbt cloud api """ import json from urllib.parse import urlparse from aws_requests_auth.aws_auth import AWSRequestsAuth import requests from .logger import logging logger = logging.getLogger(__name__)
34.596078
84
0.540807
10f7d07ce41f42aef80a7a8089cabc1552820753
403
py
Python
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
pacote-download/CursoemVideo/ex036.py
pemedeiros/python-CeV
e34eebdfd6f5cf254a9ad1ce076083c735f68f28
[ "MIT" ]
null
null
null
valcasa = float(input('Qual o valor da casa? R$')) sal = float(input('Qual o valor do seu salrio? R$ ')) anos = int(input('Em quantos anos voc vai pagar?')) meses = anos * 12 valprest = valcasa / meses if valprest >= sal * 0.3: print('Seu emprstimo foi aprovado e o valor da prestao de R${:.2f}'.format(valprest)) e...
40.3
94
0.682382
10f9f94a2cb6881a8dc2262a9b2572388d4dc96b
3,524
py
Python
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
921
2015-01-01T15:26:28.000Z
2022-03-29T11:30:38.000Z
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
5
2015-03-17T18:57:47.000Z
2020-10-02T13:24:31.000Z
reviewboard/reviews/tests/test_preview_review_request_email_view.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
285
2015-01-12T06:24:36.000Z
2022-03-29T11:03:50.000Z
"""Unit tests for reviewboard.reviews.views.PreviewReviewRequestEmailView.""" from __future__ import unicode_literals from django.contrib.auth.models import User from reviewboard.site.urlresolvers import local_site_reverse from reviewboard.testing import TestCase
38.725275
79
0.577753
10fadf307cc6cb6a41c77070b0b754a502353b7a
10,067
py
Python
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
tools/fetch_codeforces_examples/fetch_cf_examples.py
adw1n/competitive-programming
b28a166e7c93d7b239c0a6b09eafd6020685afdf
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 import typing import re import os.path import enum import json import urllib import argparse import asyncio import lxml.html import requests import lxml.etree import aiohttp.client HOME = os.path.expanduser("~") USERNAME = "adwin_" # type: str CONTEST_DIR = os.path.join(HOME, "algo_competition...
42.121339
155
0.645674
10fc2e94412f589e0e53ed118f1b0edfd3dbc613
930
py
Python
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2020-12-19T18:48:42.000Z
2020-12-19T18:48:42.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
430
2019-07-03T21:09:12.000Z
2021-11-09T08:09:41.000Z
rough_trade_calendar/urls.py
craiga/rough-trade-calendar
175c61391a50eaa4ada3dbc062158773cf72d9c0
[ "MIT" ]
1
2019-12-20T16:59:18.000Z
2019-12-20T16:59:18.000Z
"""URL Configuration.""" from django.conf import settings from django.contrib import admin from django.urls import include, path from django.views.decorators.csrf import csrf_exempt import debug_toolbar from csp.decorators import csp_exempt from graphene_django.views import GraphQLView from rough_trade_calendar impo...
32.068966
85
0.737634
10fc8f53a38886959ced18253a539de49e8b8476
10,010
py
Python
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
6
2015-01-26T16:14:43.000Z
2019-08-22T01:29:24.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
3
2015-01-06T13:31:28.000Z
2016-10-11T16:52:09.000Z
util/pydevd/pysrc/tests/test_jysimpleTipper.py
hinesmr/mica
82d26b9c6b04e1b8cea7d80c054e2cf482a58520
[ "Apache-2.0" ]
null
null
null
#line to run: #java -classpath D:\bin\jython-2.1\jython.jar;D:\bin\eclipse331_1\plugins\org.junit_3.8.2.v200706111738\junit.jar;D:\bin\eclipse331_1\plugins\org.apache.ant_1.7.0.v200706080842\lib\ant.jar org.python.util.jython w:\org.python.pydev\pysrc\tests\test_jysimpleTipper.py import unittest import os import sys #...
38.79845
266
0.599101
10fc95e15d3a50c2d7236f7e5808fcfc6aa2b291
878
py
Python
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
3
2021-07-07T14:40:09.000Z
2021-09-30T07:07:55.000Z
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
null
null
null
GIL/thread_factorize.py
Chanakya-School-of-AI/pytorch-tutorials
8745db96172c45f6b07a589a88905a00cc555010
[ "MIT" ]
2
2021-07-24T14:52:32.000Z
2021-11-15T10:12:06.000Z
from threading import Thread from time import time numbers = [8402868, 2295738, 5938342, 7925426] # Serial Calculation start = time() for number in numbers: list(factorize(number)) end = time() print('Took %.3f seconds for serial calculation' % (end - start)) # Threaded Calculation start = time() threads = [] f...
23.72973
67
0.665148
10fd71f61fee7303569e1de176660e413458e1b6
8,774
py
Python
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
spinalcordtoolbox/testing/create_test_data.py
valosekj/spinalcordtoolbox
266bfc88d6eb6e96a2c2f1ec88c2e185c6f88e09
[ "MIT" ]
null
null
null
# -*- coding: utf-8 # Collection of functions to create data for testing import numpy as np from datetime import datetime import itertools from skimage.transform import rotate import nibabel as nib from spinalcordtoolbox.image import Image from spinalcordtoolbox.resampling import resample_nib DEBUG = False # Save ...
46.178947
120
0.646114
10ff3de40776e6430bc11e0702e1663303a5590b
7,829
py
Python
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
86
2017-07-04T17:03:33.000Z
2022-03-06T01:00:56.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
17
2017-07-19T11:09:20.000Z
2021-03-17T16:48:06.000Z
UI/ui_main.py
BrunoTh/ETS2Autopilot
72762d4161866a876c11f39ba22eadd8f2aff9a9
[ "MIT" ]
18
2017-07-28T00:50:05.000Z
2021-09-24T06:09:27.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'designer\main.ui' # # Created by: PyQt5 UI code generator 5.9 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets
55.133803
97
0.711968
10ff6f610857fa4da1c2272a7ab5705a925dfc69
98
py
Python
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
core_backend/apps.py
PoieoDev/User-Accounts-Template
1e6586d9a79d3df61d6ae7589415f23e8aeeea07
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16.333333
35
0.77551
800076f2bca31ec7949923ed290ca06ed9e6401a
13,035
py
Python
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
21
2020-07-03T13:14:15.000Z
2020-07-14T14:27:43.000Z
ped_core/keytab.py
jpfxgood/ped
f753ca27e4462c321ed28f00e1ef47fbde62990e
[ "MIT" ]
null
null
null
# Copyright 2009-2012 James P Goodwin ped tiny python editor """ module that contains the symbolic names of the keys """ import curses KEYTAB_NOKEY=chr(0) KEYTAB_ALTA=chr(27)+'a' KEYTAB_ALTB=chr(27)+'b' KEYTAB_ALTC=chr(27)+'c' KEYTAB_ALTD=chr(27)+'d' KEYTAB_ALTE=chr(27)+'e' KEYTAB_ALTF=chr(27)+'f' KEYTAB_ALTG=chr(27)+...
27.043568
60
0.715919
8001f091db832c8853cc1001b477b8ee30ecdde0
19,438
py
Python
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
122
2021-12-10T06:19:03.000Z
2022-03-27T12:30:42.000Z
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
1
2021-12-24T10:07:41.000Z
2021-12-24T10:07:41.000Z
agilegan/transfer.py
open-mmlab/MMGEN-FaceStylor
67e7b17a323ac5a3eae28b88e0b2c921876b50ca
[ "Apache-2.0" ]
12
2021-12-10T10:38:19.000Z
2022-02-08T12:54:46.000Z
from copy import deepcopy import torch import torch.nn.functional as F from mmgen.models.builder import MODELS, build_module from mmgen.models.common import set_requires_grad from mmgen.models.gans.static_unconditional_gan import StaticUnconditionalGAN from torch.nn.parallel.distributed import _find_tensors from .los...
41.712446
85
0.554635
80021b4bd92a24d71fffed003a89ba58002247b3
1,766
py
Python
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
2
2021-11-19T00:06:54.000Z
2021-12-26T02:03:47.000Z
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
null
null
null
tests/unit/utils/aws/test_aws_responses.py
Madajevas/localstack
85c712e50d45183b9703c682de02d5114c50c47c
[ "Apache-2.0" ]
null
null
null
import xml.etree.ElementTree as ET import pytest from localstack.utils.aws.aws_responses import to_xml result_raw = { "DescribeChangeSetResult": { # ... "Changes": [ { "ResourceChange": { "Replacement": False, "Scope": ["Tags"], ...
26.358209
154
0.610985
80033e1784f2fa309970f5133dc3cfd33c45fae1
991
py
Python
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
null
null
null
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
22
2020-06-05T19:56:44.000Z
2022-03-11T23:41:45.000Z
server/accounts/schema.py
kingbar1990/react-apollo-django-subscriptions-boilerplate
e6b948ab7f211157e6ef0592a9d1b943a0d88b13
[ "MIT" ]
null
null
null
import graphene from graphene_django.types import DjangoObjectType from graphql_jwt.decorators import login_required from django.contrib.auth import get_user_model
27.527778
81
0.694248
800640b204af733d917dcb2f2cc81ab285988b93
5,393
py
Python
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
ual_teleop/scripts/joy_teleop.py
ros-ual/ual
9f03926fadf094d6f55a9b75fc1cae39c71c2045
[ "MIT" ]
null
null
null
#!/usr/bin/env python import yaml import argparse import rospy import rospkg import math from joy_handle import JoyHandle, ButtonState from sensor_msgs.msg import Joy from ual_core.srv import TakeOff, Land, SetVelocity from ual_core.msg import State from geometry_msgs.msg import TwistStamped from geometry_msgs.msg impo...
49.027273
142
0.672168
800826e08a1cf06e466211edc2d614832eb36a58
4,910
py
Python
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
pyNastran/femutils/coord_transforms.py
jtran10/pyNastran
4aed8e05b91576c2b50ee835f0497a9aad1d2cb0
[ "BSD-3-Clause" ]
null
null
null
""" Defines general coordinate system related functions including: - xyz_to_rtz_array(xyz) - xyz_to_rtp_array(xyz) - rtz_to_xyz_array(xyz) - rtp_to_xyz_array(xyz) - rtz_to_rtp_array(xyz) - rtp_to_rtz_array(xyz) - coords = cylindrical_rotation_matrix(thetar, dtype='float64') """ # pylint: disable=C0103 from __...
25.706806
74
0.538289
80083609ce2db45581369120327cc17264cf2da4
2,414
py
Python
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/utils/l10n.py
nxkbd/streamlink
0ba7767c024a6d6086d570e342680dc40c05a57b
[ "BSD-2-Clause" ]
null
null
null
import locale from iso639 import languages from iso3166 import countries DEFAULT_LANGUAGE_CODE = "en_US"
33.527778
102
0.60232
800911a43c7133868a3683a5d66978dc4ccb6173
783
py
Python
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
greww/_envs.py
A-Hilaly/greww
0e58bf1a450987202554ee232d013bd717155d1d
[ "Apache-2.0" ]
null
null
null
import os env = lambda var : os.environ[var] try: GREWW_PATH = env('GREWW_PATH') GREWW_CACHE = env('GREWW_CACHE') GREWW_CONFIG = env('GREWW_CONFIG') except: # no scop tests _tmp = str(os.path.abspath(__file__)) _tmp, _ = _dispatch_path(_tmp) _tmp, _ = _dispatch_path(_tmp) GREWW_PATH = ...
23.029412
41
0.52235
8009ef4ae49f5108f510678da5c940c0974957ce
1,464
py
Python
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
kmcsim/buildtools/mklatt.py
vlcekl/kmcpy
b55a23f64d4b6d2871671f4a16346cc897c4a2a5
[ "MIT" ]
null
null
null
#!//anaconda/envs/py36/bin/python # # File name: mklatt.py # Date: 2018/08/02 16:15 # Author: Lukas Vlcek # # Description: # import sys import re if __name__ == "__main__": # dictionary of lattice build functions make_lattice = {'fcc':make_fcc, 'bcc':make_bcc, 'sc':make_sc} # read lattic...
20.619718
65
0.536202
8009f9c9faa56881d77c010013d2d6763c2f0d9f
10,083
py
Python
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
run_experiment.py
weelingtan/LocIT
0795a6cbb64a72b7906824b451d2bbb4559b080d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- """ Run experiments. :author: Vincent Vercruyssen (2019) :license: Apache License, Version 2.0, see LICENSE for details. """ import sys, os, time, argparse import numpy as np import pandas as pd from sklearn.metrics import roc_auc_score # transfer models from models.locit import apply_LocIT...
43.83913
167
0.562829
800b886faa1ae8ac7c6f91868cae769b7429e1cc
3,416
py
Python
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
null
null
null
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
null
null
null
freeze_reqs/pytest_freeze_reqs.py
j-kawa/pytest-freeze-reqs
b0bf088bf4865dae9d6f7b78efeea35e1c113678
[ "MIT" ]
1
2021-07-01T20:45:05.000Z
2021-07-01T20:45:05.000Z
import pytest
31.33945
85
0.596897
800bcb34a09cb433be662372e06e48fe14cfe496
17,760
py
Python
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
src/test/lcv2-2ray-5.0.1-/v2ray_old_3_2019-1-4/client/macos/mods/tool_mac.py
lucycore/lcv2
cfda722b430036e2a2de946b71d81d265e2165dc
[ "MIT" ]
null
null
null
# -- coding:utf-8-- import json import paramiko import re import os from urllib import request #--------------------------------------------------------------------------------------- #--------------------------------------------------------------------------------------- #------------------------------------------...
20.11325
88
0.523536
800d2e58139d60299371e076a22f726713168331
452
py
Python
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
Exercicios/ex054.py
luisgnc/Python-Exercises
94979abb3ca1515145bde54ecd2f784e5d903219
[ "MIT" ]
null
null
null
pessoa_maior = 0 pessoa_menor = 0 for i in range(1, 8): ano_pessoa = int(input(f'Em que ano a {i} pessoa nasceu? ')) if ano_pessoa <= 1900 or ano_pessoa >= 2021: print('Your not alive bitch!') break elif ano_pessoa <= 2002: pessoa_maior += 1 else: pessoa_menor += 1 print(...
32.285714
68
0.646018
8010a7e60e4c67f9ff387b9c7eef7cdff821f6f3
7,427
py
Python
Video-Person-ReID/Graph_ModelDataGen.py
anurag3/2019-CVPR-AIC-Track-2-UWIPL
61ee2c96611e10fe51a52033b1cd0e2804d544ca
[ "MIT" ]
20
2019-06-05T08:43:26.000Z
2021-12-07T08:48:18.000Z
Video-Person-ReID/Graph_ModelDataGen.py
yizhou-wang/2019-CVPR-AIC-Track-2-UWIPL-ETRI
387924b1e33e0594977cd095c26a147e4a7f8192
[ "MIT" ]
8
2019-10-05T11:17:11.000Z
2020-04-04T00:40:20.000Z
Video-Person-ReID/Graph_ModelDataGen.py
yizhou-wang/2019-CVPR-AIC-Track-2-UWIPL-ETRI
387924b1e33e0594977cd095c26a147e4a7f8192
[ "MIT" ]
14
2019-06-16T23:09:15.000Z
2021-09-13T08:36:50.000Z
from __future__ import print_function, absolute_import import os import sys import time import datetime import argparse import os.path as osp import numpy as np import torch import torch.nn as nn import torch.backends.cudnn as cudnn from torch.utils.data import DataLoader from torch.autograd import Variable from torch...
34.225806
136
0.610475
8010d7a2405a42f8001165cec41e8db24b3d32c2
6,024
py
Python
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
test/test_soft_regression.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import matplotlib.pyplot as plt from torch.autograd import Function batch = 5 max_disparity = 128 if batch == 1: t = torch.tensor([80.6]).view(-1, 1) elif batch == 2: t = torch.tensor([20.3, 80.6]).view(-1, 1) elif...
30.57868
92
0.586487
8011547341d55f4226d084d9c454ab332252453a
542
py
Python
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
randomnamegenarator.py
adityar224/Python
5bbb1b86cdd2351c7c851c30d80df5e7b2c8d28b
[ "Apache-2.0" ]
null
null
null
#to generate a random name import tkinter as tk import random r = tk.Tk() name='' r.title('Random Name Generator') button = tk.Button(r, text='Generate', width=25,command=namegen).grid() #button.pack() print() r.mainloop()
23.565217
78
0.621771
801221814dd3561ad89dbc84e1db20b23ada021c
2,467
py
Python
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
src/docs/generator/logger_parser/generate.py
e-ntro-py/win-vind
1ec805420732c82a46e2c79720db728ded792814
[ "MIT" ]
null
null
null
# coding: utf-8 from transitions.extensions import GraphMachine states = [ 'Waiting inputs', 'Waiting inputs in <num>', 'Rejected', 'Rejected while matching with subset', 'Accepted', 'Accepted in <num>', 'Accepted in <any>' ] transitions = [ # Waiting inputs { 'trigger':...
19.579365
68
0.483989