hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
68df28c169972c991af48446b9d7957487d0a266
15,000
py
Python
tensorflow_probability/python/distributions/beta.py
cafeal/probability
f968a32d601d29ec31a10568ccfe30263cf91ef2
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/beta.py
cafeal/probability
f968a32d601d29ec31a10568ccfe30263cf91ef2
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/beta.py
cafeal/probability
f968a32d601d29ec31a10568ccfe30263cf91ef2
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # 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 o...
39.164491
100
0.699667
5d576e6c379f505a5b53ab5ed57598ea174a0d0c
5,862
py
Python
refactorings/extract_class.py
miladjobs/CodART
f37af3f36c380245b0ae883dda7401e2b9d65980
[ "MIT" ]
null
null
null
refactorings/extract_class.py
miladjobs/CodART
f37af3f36c380245b0ae883dda7401e2b9d65980
[ "MIT" ]
null
null
null
refactorings/extract_class.py
miladjobs/CodART
f37af3f36c380245b0ae883dda7401e2b9d65980
[ "MIT" ]
1
2021-01-30T09:28:54.000Z
2021-01-30T09:28:54.000Z
""" The scripts implements different refactoring operations """ __version__ = '0.1.0' __author__ = 'Morteza' import networkx as nx from antlr4 import * from antlr4.TokenStreamRewriter import TokenStreamRewriter from gen.java9.Java9_v2Parser import Java9_v2Parser from gen.java9 import Java9_v2Listener import visua...
40.993007
126
0.648243
7405352c2afdd40bb91a09b5d47414289494e291
21,227
py
Python
venv1/Lib/site-packages/tensorflow/python/ops/embedding_ops.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
venv1/Lib/site-packages/tensorflow/python/ops/embedding_ops.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
venv1/Lib/site-packages/tensorflow/python/ops/embedding_ops.py
Soum-Soum/Tensorflow_Face_Finder
fec6c15d2df7012608511ad87f4b55731bf99478
[ "Apache-2.0", "MIT" ]
null
null
null
# Copyright 2015 The TensorFlow 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...
42.624498
82
0.656145
5591e952289f7c4b940a6238c5810936ed0373bc
38
py
Python
Build folder/__init__.py
techbliss/Windows_Screenrecorder
7e0167b0cb907e790357f09e59ba0e43fe61e334
[ "MIT" ]
17
2016-09-30T21:26:05.000Z
2021-06-14T13:08:20.000Z
Build folder/__init__.py
techbliss/Windows_Screenrecorder
7e0167b0cb907e790357f09e59ba0e43fe61e334
[ "MIT" ]
null
null
null
Build folder/__init__.py
techbliss/Windows_Screenrecorder
7e0167b0cb907e790357f09e59ba0e43fe61e334
[ "MIT" ]
7
2016-10-06T10:24:37.000Z
2020-07-13T16:57:31.000Z
#auther Storm Shadow www.techbliss.org
38
38
0.842105
ce9d72bc89eeb35d70ac2c4616cc889865b71a43
3,452
py
Python
src/python/pants/backend/kotlin/lint/ktlint/rules.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/kotlin/lint/ktlint/rules.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/kotlin/lint/ktlint/rules.py
wonlay/pants
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import logging from dataclasses import dataclass from pants.backend.kotlin.lint.ktlint.skip_field import SkipKtlintField from pants.backend.kotlin.lint.ktlint.subsystem import KtlintSubsys...
34.52
99
0.762457
a8fe044640830d0817ba8fe9d5268c6f7ba375db
1,919
py
Python
gevent/select.py
PythonCharmers/gevent-future
f0b8be81206b73c6f5fd5c66fab9fbd0c1eac85e
[ "MIT" ]
2
2019-05-12T22:01:32.000Z
2020-06-09T14:11:01.000Z
gevent/select.py
PythonCharmers/gevent-future
f0b8be81206b73c6f5fd5c66fab9fbd0c1eac85e
[ "MIT" ]
null
null
null
gevent/select.py
PythonCharmers/gevent-future
f0b8be81206b73c6f5fd5c66fab9fbd0c1eac85e
[ "MIT" ]
1
2019-05-12T22:01:18.000Z
2019-05-12T22:01:18.000Z
# Copyright (c) 2009-2011 Denis Bilenko. See LICENSE for details. from __future__ import absolute_import from gevent.event import Event from gevent.hub import get_hub __implements__ = ['select'] __all__ = ['error'] + __implements__ import select as __select__ error = __select__.error def get_fileno(obj): try: ...
27.028169
95
0.596144
9b0e3cb037ed4c9212e3a5673318ea6e11386c18
916
py
Python
settings.py
nikgun1984/ketolife_backend
d7c61791646a162061c454f8dedc2512d698cc53
[ "PostgreSQL", "Unlicense", "MIT" ]
1
2021-03-15T19:22:55.000Z
2021-03-15T19:22:55.000Z
settings.py
nikgun1984/ketolife_backend
d7c61791646a162061c454f8dedc2512d698cc53
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
settings.py
nikgun1984/ketolife_backend
d7c61791646a162061c454f8dedc2512d698cc53
[ "PostgreSQL", "Unlicense", "MIT" ]
null
null
null
import os from app import app from forms import LoginForm, UserAddForm from secrets import APP_KEY,APP_ID_RECIPE,APP_KEY_RECIPE CURR_USER_KEY = "curr_user" BASE_URL_SP = "https://api.spoonacular.com" BASE_URL_ED = "https://api.edamam.com" BASE_IMG_LINK = "https://spoonacular.com/cdn/ingredients_250x250"; BASE_URL_SP ...
35.230769
82
0.7631
e6cea76e4d917d4f43a67d39d39ba97b072ea430
6,497
py
Python
baselines/convnets-keras/fcn/fabric_train.py
leix28/ML-Fabri
6776f1b93cc84ab40569af3052ffc30bee7f8910
[ "MIT" ]
null
null
null
baselines/convnets-keras/fcn/fabric_train.py
leix28/ML-Fabri
6776f1b93cc84ab40569af3052ffc30bee7f8910
[ "MIT" ]
null
null
null
baselines/convnets-keras/fcn/fabric_train.py
leix28/ML-Fabri
6776f1b93cc84ab40569af3052ffc30bee7f8910
[ "MIT" ]
null
null
null
""" adapted from keras example cifar10_cnn.py Train ResNet-18 on the CIFAR10 small images dataset. GPU run command with Theano backend (with TensorFlow, the GPU is automatically used): THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python cifar10.py """ from __future__ import print_function import tensorflo...
34.375661
126
0.647837
77329a7454e67dc5c921506a54e18cba177b6346
26,577
py
Python
cmyui/web.py
cmyui/cmyui_pkg
6cef5af9f64763368c102487a19a039df67692e5
[ "MIT" ]
9
2020-11-30T11:46:53.000Z
2021-09-03T13:07:38.000Z
cmyui/web.py
cmyui/cmyui_pkg
6cef5af9f64763368c102487a19a039df67692e5
[ "MIT" ]
3
2021-02-13T01:45:05.000Z
2021-12-28T07:35:14.000Z
cmyui/web.py
cmyui/cmyui_pkg
6cef5af9f64763368c102487a19a039df67692e5
[ "MIT" ]
8
2020-08-20T01:33:31.000Z
2021-09-21T20:23:21.000Z
# -*- coding: utf-8 -*- # Domain-based asynchronous server implementation, written from # sockets, mostly with https://github.com/cmyui/gulag in mind. import asyncio import gzip import http import importlib import inspect import os import re import select import signal import socket import sys import urllib.parse fro...
34.877953
90
0.55311
04cad023afe8c9d57bcf8ba134bbe5389ac180ac
4,406
py
Python
cms/utils/__init__.py
DrMeers/django-cms-2.0
d563d912c99f0c138a66d99829d8d0133226894e
[ "BSD-3-Clause" ]
4
2016-05-07T11:50:25.000Z
2017-12-04T10:30:20.000Z
cms/utils/__init__.py
DrMeers/django-cms-2.0
d563d912c99f0c138a66d99829d8d0133226894e
[ "BSD-3-Clause" ]
1
2015-06-08T08:27:11.000Z
2015-06-08T10:40:27.000Z
cms/utils/__init__.py
DrMeers/django-cms-2.0
d563d912c99f0c138a66d99829d8d0133226894e
[ "BSD-3-Clause" ]
null
null
null
# TODO: this is just stuff from utils.py - should be splitted / moved from django.shortcuts import render_to_response from django.template import RequestContext from django.http import HttpResponse, HttpResponseRedirect from django.conf import settings from cms.utils.i18n import get_default_language # !IMPORTANT: Pag...
37.982759
121
0.660463
d61e50ff17af44ff7a412609a82fd8be0ec289c7
19
py
Python
version.py
alexfikl/PyWENO
224fe7459f00578728b151531367c67c62f57c2b
[ "BSD-3-Clause" ]
26
2015-07-09T13:32:39.000Z
2021-10-13T06:55:07.000Z
version.py
alexfikl/PyWENO
224fe7459f00578728b151531367c67c62f57c2b
[ "BSD-3-Clause" ]
4
2015-03-16T16:11:31.000Z
2021-03-08T17:33:41.000Z
version.py
alexfikl/PyWENO
224fe7459f00578728b151531367c67c62f57c2b
[ "BSD-3-Clause" ]
12
2015-08-14T12:44:37.000Z
2022-01-09T12:03:13.000Z
version = '0.11.2'
9.5
18
0.578947
abf5473a56ccd111e09deec77cc5fa4ffcc19c81
2,548
py
Python
iota/multisig/crypto/addresses.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
347
2016-12-23T14:28:06.000Z
2019-09-30T13:46:30.000Z
iota/multisig/crypto/addresses.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
194
2016-12-22T21:22:47.000Z
2019-10-01T09:01:16.000Z
iota/multisig/crypto/addresses.py
EasonC13/iota.py
f596c1ac0d9bcbceda1cf6109cd921943a6599b3
[ "MIT" ]
147
2017-01-08T13:14:47.000Z
2019-10-01T22:27:31.000Z
from typing import List, Optional from iota.crypto import HASH_LENGTH from iota.crypto.kerl import Kerl from iota.crypto.types import Digest from iota.multisig.types import MultisigAddress __all__ = [ 'MultisigAddressBuilder', ] class MultisigAddressBuilder(object): """ Creates multisig addresses. ...
29.287356
85
0.624804
c85f9aafe0225abdd8337f26c5344509dd7f18f9
3,078
py
Python
app/core/management/utils/notification.py
OpenLXP/openlxp-xms
ad1a33c6e484a327382956b8541b973c0d020ed8
[ "Apache-2.0" ]
null
null
null
app/core/management/utils/notification.py
OpenLXP/openlxp-xms
ad1a33c6e484a327382956b8541b973c0d020ed8
[ "Apache-2.0" ]
6
2020-12-15T18:33:07.000Z
2022-03-18T13:43:22.000Z
app/core/management/utils/notification.py
OpenLXP/openlxp-xms
ad1a33c6e484a327382956b8541b973c0d020ed8
[ "Apache-2.0" ]
null
null
null
import logging from email.mime.application import MIMEApplication import boto3 from botocore.exceptions import ClientError from django.conf import settings from django.core.mail import EmailMessage logger = logging.getLogger('dict_config_logger') # Create SES client def email_verification(email): """Function t...
29.883495
72
0.64295
c1dc66e04e221cf1d5f4f98ab1187340395fe1cc
7,531
py
Python
trading_calendars/tests/test_asex_calendar.py
quantrocket-llc/trading-calendars
b72630cbcb288601c62e61ebe002a9043f9a3112
[ "Apache-2.0" ]
1
2020-07-25T06:18:30.000Z
2020-07-25T06:18:30.000Z
trading_calendars/tests/test_asex_calendar.py
quantrocket-llc/trading-calendars
b72630cbcb288601c62e61ebe002a9043f9a3112
[ "Apache-2.0" ]
13
2021-04-13T06:49:23.000Z
2022-03-31T00:08:10.000Z
trading_calendars/tests/test_asex_calendar.py
quantrocket-llc/trading-calendars
b72630cbcb288601c62e61ebe002a9043f9a3112
[ "Apache-2.0" ]
3
2020-03-05T23:38:14.000Z
2021-12-12T00:31:36.000Z
from unittest import TestCase import pandas as pd from pytz import UTC from trading_calendars.exchange_calendar_asex import ASEXExchangeCalendar from .test_trading_calendar import ExchangeCalendarTestBase class ASEXCalendarTestCase(ExchangeCalendarTestBase, TestCase): answer_key_filename = "asex" calendar...
41.607735
76
0.583721
ddac0540196f118c78055da87e0325db4a9bffcc
133
py
Python
Python/bloombox/__init__.py
sgammon/bloombox-client
61720ab677a577992f84ed73e0d7faebda38d164
[ "Apache-2.0" ]
null
null
null
Python/bloombox/__init__.py
sgammon/bloombox-client
61720ab677a577992f84ed73e0d7faebda38d164
[ "Apache-2.0" ]
null
null
null
Python/bloombox/__init__.py
sgammon/bloombox-client
61720ab677a577992f84ed73e0d7faebda38d164
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __doc__ = """ Bloombox API Client for Python """ from .tool import Bloombox __version__ = (0, 0, 1)
9.5
32
0.593985
08fa0ae611479cbc0414a8eece26a08f791be531
928
py
Python
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
from django.core.management import BaseCommand import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA. # The only thing missing will be the response.body which is not logged. ...
37.12
99
0.774784
caac875e456eff59a6499c7f96d12616452af438
6,367
py
Python
skfem/element/element_global.py
ahhuhtal/scikit-fem
84ad97bfd2a92d28694f54f6897d97966bda31df
[ "BSD-3-Clause" ]
1
2020-05-31T14:07:14.000Z
2020-05-31T14:07:14.000Z
skfem/element/element_global.py
ahhuhtal/scikit-fem
84ad97bfd2a92d28694f54f6897d97966bda31df
[ "BSD-3-Clause" ]
1
2020-06-01T05:39:31.000Z
2020-06-01T05:39:31.000Z
skfem/element/element_global.py
ahhuhtal/scikit-fem
84ad97bfd2a92d28694f54f6897d97966bda31df
[ "BSD-3-Clause" ]
null
null
null
import itertools import numpy as np from .element import Element from .discrete_field import DiscreteField class ElementGlobal(Element): """Elements defined implicitly through global degrees-of-freedom.""" V = None # For caching inverse Vandermonde matrix derivatives = 2 # By default, include first a...
36.176136
79
0.406
e77b04b6fe39679ccc0d5155727901c8018dd5b0
1,693
py
Python
nescient/crypto/tools.py
airilyan/nescient
a32e671e92a378a194c4ca010bcab37aa75d2096
[ "MIT" ]
4
2018-01-23T05:30:15.000Z
2020-07-23T13:08:24.000Z
nescient/crypto/tools.py
airilyan/nescient
a32e671e92a378a194c4ca010bcab37aa75d2096
[ "MIT" ]
4
2018-01-16T18:56:17.000Z
2018-03-13T06:48:24.000Z
nescient/crypto/tools.py
airilyan/nescient
a32e671e92a378a194c4ca010bcab37aa75d2096
[ "MIT" ]
1
2020-07-23T13:08:27.000Z
2020-07-23T13:08:27.000Z
# Nescient: A Python program for packing/unpacking encrypted, salted, and authenticated file containers. # Copyright (C) 2018 Ariel Antonitis. Licensed under the MIT license. # # nescient/crypto/tools.py """ Various functions and tools for general cryptographic purposes, like secure randomness, padding, etc. """ try: ...
36.021277
120
0.688128
8d04b657a87938c30937484ab984bd07a5d6edc6
6,460
py
Python
tests/test/lua/unicode.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
6
2019-01-09T11:55:15.000Z
2021-06-25T19:52:42.000Z
tests/test/lua/unicode.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
65
2018-12-12T08:40:38.000Z
2022-02-28T09:19:45.000Z
tests/test/lua/unicode.py
mace84/script-languages
d586cbe212bbb4efbfb39e095183729c65489360
[ "MIT" ]
9
2018-11-23T08:59:09.000Z
2020-02-04T12:56:35.000Z
#!/usr/bin/env python2.7 import locale import os import subprocess import sys import unicodedata sys.path.append(os.path.realpath(__file__ + '/../../../lib')) import udf from udf import skip locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') @skip('csv data for table fn2.unicodedata is currently not available') class ...
32.626263
82
0.482353
d024814b84e06934465f276762d8af06a7a6170a
474
py
Python
06_magicgui.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
2
2021-05-10T13:44:15.000Z
2022-03-16T20:20:39.000Z
06_magicgui.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
1
2021-05-17T16:11:54.000Z
2021-05-19T19:38:50.000Z
06_magicgui.py
BiAPoL/online_image_processing_napari
680d9ceeef5ae188541a96c7125f0fca07f28af5
[ "Unlicense" ]
2
2021-05-17T16:36:12.000Z
2022-03-18T15:07:14.000Z
import napari from magicgui import magicgui from napari.types import ImageData from skimage.filters import gaussian from skimage.io import imread viewer = napari.Viewer() blobs = imread('blobs.tif') viewer.add_image(blobs) @magicgui(call_button='Run') def gaussian_blur(image : ImageData, sigma : float = 2) -> ImageDa...
21.545455
69
0.746835
0f2fb8d946747b279c6ca69b58c8eb332aae7d0d
1,848
py
Python
tests/queryset_pickle/models.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/queryset_pickle/models.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/queryset_pickle/models.py
Yoann-Vie/esgi-hearthstone
115d03426c7e8e80d89883b78ac72114c29bed12
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
import datetime from django.db import DJANGO_VERSION_PICKLE_KEY, models from django.utils.translation import gettext_lazy as _ def standalone_number(): return 1 class Numbers: @staticmethod def get_static_number(): return 2 class PreviousDjangoVersionQuerySet(models.QuerySet):...
30.295082
81
0.71645
de4abca3aa73f7d5f55a97b231f3f7d075fae41e
3,052
py
Python
trainer/custom_methods/inference.py
SuijkerbuijkP/Detectron2-GCP
927ac14dc584cb4c257444421911aa9d0b6bc5a2
[ "MIT" ]
3
2021-05-10T09:26:47.000Z
2022-03-25T12:38:31.000Z
trainer/custom_methods/inference.py
SuijkerbuijkP/Detectron2-GCP
927ac14dc584cb4c257444421911aa9d0b6bc5a2
[ "MIT" ]
null
null
null
trainer/custom_methods/inference.py
SuijkerbuijkP/Detectron2-GCP
927ac14dc584cb4c257444421911aa9d0b6bc5a2
[ "MIT" ]
1
2022-03-03T10:39:10.000Z
2022-03-03T10:39:10.000Z
import os import cv2 from detectron2.data import DatasetCatalog, MetadataCatalog from detectron2.engine import DefaultPredictor from detectron2.utils.visualizer import Visualizer, ColorMode from custom_methods import load_checkpoint def inference(cfg, args): """ This function is used to perform inference. I...
47.6875
119
0.643185
ff574466e1c5e4b076dfd186ab00acaeaa526178
3,545
py
Python
mars/tensor/tests/test_utils.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
2
2019-03-29T04:11:10.000Z
2020-07-08T10:19:54.000Z
mars/tensor/tests/test_utils.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
mars/tensor/tests/test_utils.py
HarshCasper/mars
4c12c968414d666c7a10f497bc22de90376b1932
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2020 Alibaba Group Holding 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 a...
36.927083
90
0.649083
cfa3e5be6fe7903efd0c0784b614836d7b6acb73
3,264
py
Python
matrixdemos/scripts/DigitalClock.py
nachomonkey/MatrixDemos
b1cdf1c6d5b6ba946a9e5de2c1430d6ee1bf163e
[ "MIT" ]
3
2021-04-07T03:16:17.000Z
2021-09-08T04:03:22.000Z
matrixdemos/scripts/DigitalClock.py
nachomonkey/MatrixDemos
b1cdf1c6d5b6ba946a9e5de2c1430d6ee1bf163e
[ "MIT" ]
null
null
null
matrixdemos/scripts/DigitalClock.py
nachomonkey/MatrixDemos
b1cdf1c6d5b6ba946a9e5de2c1430d6ee1bf163e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Display the time and date on the matrix""" import sys import time from optparse import OptionParser from rgbmatrix import RGBMatrix, RGBMatrixOptions from matrixdemos.scripts.utils import * parser = OptionParser() parser.set_description("""Display the time and date on a matrix. By default, t...
32.969697
118
0.634498
73db823a1b26c6bea9bd690057abf27930711eda
9,389
py
Python
object_detection/models/faster_rcnn_resnet_v1_feature_extractor.py
paulchou0309/obj
d7ae404fa73db60a6fe539d613e48f478b81dbef
[ "MIT" ]
3
2019-03-02T09:09:01.000Z
2019-11-15T02:09:50.000Z
object_detection/models/faster_rcnn_resnet_v1_feature_extractor.py
paulchou0309/obj
d7ae404fa73db60a6fe539d613e48f478b81dbef
[ "MIT" ]
null
null
null
object_detection/models/faster_rcnn_resnet_v1_feature_extractor.py
paulchou0309/obj
d7ae404fa73db60a6fe539d613e48f478b81dbef
[ "MIT" ]
1
2018-04-03T01:33:47.000Z
2018-04-03T01:33:47.000Z
# Copyright 2017 The TensorFlow 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 applica...
37.556
80
0.681329
2b18f53c2745131b925093e7b81aeee823f650ff
2,123
py
Python
src/discord_notifier.py
danielloera/custom-scrape
b3a3286d26348f2066d9333c5bbb548f080c8417
[ "MIT" ]
null
null
null
src/discord_notifier.py
danielloera/custom-scrape
b3a3286d26348f2066d9333c5bbb548f080c8417
[ "MIT" ]
null
null
null
src/discord_notifier.py
danielloera/custom-scrape
b3a3286d26348f2066d9333c5bbb548f080c8417
[ "MIT" ]
null
null
null
import asyncio import discord import os token = "DISCORD_TOKEN" max_files_per_message = 10 def send_scrape_result_messages(scrape_results, channel_name): client = discord.Client() @client.event async def on_ready(): print('Logged in as {0.user}'.format(client)) text_channel = [c for c in...
40.056604
79
0.541215
e27cfc092093b535d85f470025591ab1e367ac6e
4,634
py
Python
nipype/interfaces/ants/base.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/ants/base.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
2
2018-04-26T12:09:32.000Z
2018-04-27T06:36:49.000Z
nipype/interfaces/ants/base.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
1
2019-11-14T14:16:57.000Z
2019-11-14T14:16:57.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The ants module provides basic functions for interfacing with ANTS tools.""" import os # Local imports from ... import logging, LooseVersion from ..base import (CommandLine, Comm...
37.983607
79
0.671558
18c7ee09b22cebf68ce61c9c5b401eccb5c7c7ab
3,419
py
Python
relaax/algorithms/da3c/da3c_config.py
deeplearninc/relaax
a0cf280486dc74dca3857c85ec0e4c34e88d6b2b
[ "MIT" ]
71
2017-01-25T00:26:20.000Z
2021-02-17T12:39:20.000Z
relaax/algorithms/da3c/da3c_config.py
deeplearninc/relaax
a0cf280486dc74dca3857c85ec0e4c34e88d6b2b
[ "MIT" ]
69
2017-01-23T19:29:23.000Z
2018-08-21T13:26:39.000Z
relaax/algorithms/da3c/da3c_config.py
deeplearninc/relaax
a0cf280486dc74dca3857c85ec0e4c34e88d6b2b
[ "MIT" ]
13
2017-01-23T21:18:09.000Z
2019-01-29T23:48:30.000Z
from relaax.common.python.config.loaded_config import options from argparse import Namespace import random config = options.get('algorithm') config.seed = options.get('algorithm/seed', random.randrange(1000000)) config.avg_in_num_batches = options.get('algorithm/avg_in_num_batches', 10) for key, value in [('use_conv...
44.986842
110
0.762211
3cca1f95a026311998b540b53182de2a8d3efab9
640
py
Python
manage.py
craiga/music-from-my-tshirt
d6f051771c8d2c16fadde78df35a09fd9d8818aa
[ "MIT" ]
null
null
null
manage.py
craiga/music-from-my-tshirt
d6f051771c8d2c16fadde78df35a09fd9d8818aa
[ "MIT" ]
9
2020-03-01T16:48:16.000Z
2020-04-29T16:20:26.000Z
manage.py
craiga/music-from-my-tshirt
d6f051771c8d2c16fadde78df35a09fd9d8818aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "music_from_my_tshirt.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: ...
29.090909
84
0.689063
ddd3c632cf43ab044ded93d05504354388163487
814
py
Python
tests/language_understanding/attribute_extraction/extractor_test.py
hamano-takashi/ochiAI-bot
16cf2057ada741c08df6ce471049b9da4caeb3ed
[ "MIT" ]
2
2016-09-01T17:35:45.000Z
2016-09-04T07:09:26.000Z
tests/language_understanding/attribute_extraction/extractor_test.py
okuribito/GiftConcierge
b8b9128303f46965d2a0ac582c120980b9536f2f
[ "MIT" ]
null
null
null
tests/language_understanding/attribute_extraction/extractor_test.py
okuribito/GiftConcierge
b8b9128303f46965d2a0ac582c120980b9536f2f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from dialogue_system.language_understanding.attribute_extraction.rule_based_extractor import RuleBasedAttributeExtractor class AttributeExtractorTest(unittest.TestCase): def setUp(self): self.extractor = RuleBasedAttributeExtractor() def tearDown(self): ...
38.761905
120
0.685504
6bafa5307a1d773ea4fcec3d41ed6f65ba39b0e3
42,870
py
Python
web400-10/db.py
mehrdad-shokri/CTF_web
206529603af3824fc8117166ff978af3495f5a58
[ "MIT" ]
664
2016-08-23T01:03:00.000Z
2022-03-20T17:02:45.000Z
web/db.py
0xlen/learn2web
19cf250b0515992863ea0f7f0cfeaf59918bbb9d
[ "MIT" ]
12
2016-09-09T07:25:12.000Z
2021-10-05T21:11:48.000Z
web/db.py
0xlen/learn2web
19cf250b0515992863ea0f7f0cfeaf59918bbb9d
[ "MIT" ]
203
2016-10-17T02:15:33.000Z
2021-10-17T06:36:37.000Z
""" Database API (part of web.py) """ __all__ = [ "UnknownParamstyle", "UnknownDB", "TransactionError", "sqllist", "sqlors", "reparam", "sqlquote", "SQLQuery", "SQLParam", "sqlparam", "SQLLiteral", "sqlliteral", "database", 'DB', ] import time, os, urllib, urlparse try: import datetime except ImportErr...
33.518374
124
0.540448
89d81fac464384046db5804df4b171df506faecf
1,089
py
Python
LeetCode_Solutions/206. Reverse Linked List.py
foxfromworld/Coding-Interview-Preparation-with-LeetCode-and-An-Algorithm-Book
e0c704d196fe0d8452ea639a92f2a75c3b46a9b0
[ "BSD-2-Clause" ]
null
null
null
LeetCode_Solutions/206. Reverse Linked List.py
foxfromworld/Coding-Interview-Preparation-with-LeetCode-and-An-Algorithm-Book
e0c704d196fe0d8452ea639a92f2a75c3b46a9b0
[ "BSD-2-Clause" ]
null
null
null
LeetCode_Solutions/206. Reverse Linked List.py
foxfromworld/Coding-Interview-Preparation-with-LeetCode-and-An-Algorithm-Book
e0c704d196fe0d8452ea639a92f2a75c3b46a9b0
[ "BSD-2-Clause" ]
null
null
null
# Source : https://leetcode.com/problems/reverse-linked-list/ # Author : foxfromworld # Date : 02/02/2021 # Second attempt class Solution: def reverseList(self, head): # Recursive """ :type head: ListNode :rtype: ListNode """ if not head: return head if not head.next: ...
23.170213
61
0.55831
4128e4eb07a7469218931ef28ab94b81e497c809
15,025
py
Python
talib/StopStrategy.py
isaacdlp/pyalgosamples
e1a6504c6cd0d906ef082c81037b59b137a99105
[ "Apache-2.0" ]
3
2017-12-01T16:21:54.000Z
2020-03-17T01:55:21.000Z
talib/StopStrategy.py
isaacdlp/pyalgosamples
e1a6504c6cd0d906ef082c81037b59b137a99105
[ "Apache-2.0" ]
1
2019-04-17T06:17:09.000Z
2020-05-26T04:00:16.000Z
talib/StopStrategy.py
isaacdlp/pyalgosamples
e1a6504c6cd0d906ef082c81037b59b137a99105
[ "Apache-2.0" ]
2
2017-11-23T10:01:04.000Z
2019-11-06T15:35:41.000Z
# PyAlgoTrade # # Copyright 2011-2015 Gabriel Martin Becedillas Ruiz # # 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 ap...
40.389785
170
0.651514
89617eb32366723ef73b8d3df1f49c4c6ea58cc5
12,751
py
Python
active_code_base/lok_scraper_1.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/lok_scraper_1.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
active_code_base/lok_scraper_1.py
justin-napolitano/USSupremeCourtMetaDataGraph
d2d53915cdba33848bdd81f661d3c496ca518966
[ "Apache-2.0" ]
null
null
null
#library_of_congress_scraper.py from __future__ import print_function from bs4 import BeautifulSoup import requests import lxml.etree as etree import xml.etree.ElementTree as ET import json import pandas as pd import os import time import random import math from pprint import pprint #import load_vars as lv import html ...
33.555263
249
0.643479
3690d63070a5c31e459fb7abc66d13c03767835f
1,715
py
Python
lte/gateway/python/integ_tests/s1aptests/test_attach_dl_udp_data.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
3
2019-08-16T17:03:09.000Z
2019-08-23T21:57:48.000Z
lte/gateway/python/integ_tests/s1aptests/test_attach_dl_udp_data.py
remo5000/magma
1d1dd9a23800a8e07b1ce016776d93e12430ec15
[ "BSD-3-Clause" ]
14
2019-11-15T12:01:18.000Z
2019-12-12T14:37:42.000Z
lte/gateway/python/integ_tests/s1aptests/test_attach_dl_udp_data.py
119Vik/magma-1
107a7b374466a837fc0a49b283ba9d6ff1d702e3
[ "BSD-3-Clause" ]
3
2019-11-15T15:56:25.000Z
2019-11-21T10:34:59.000Z
""" Copyright (c) 2017-present, Facebook, Inc. All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory. """ import unittest import s1a...
31.181818
79
0.631487
dafdab436a1a7a71bf8966cda11df784acbba9b6
285
py
Python
ipymaterialui/_version.py
trungleduc/ipymaterialui
9ced90551d0ee007e4a968d1f35156bdb1a56805
[ "MIT" ]
81
2018-11-23T22:03:11.000Z
2022-03-14T11:04:04.000Z
ipymaterialui/_version.py
trungleduc/ipymaterialui
9ced90551d0ee007e4a968d1f35156bdb1a56805
[ "MIT" ]
16
2018-11-26T18:23:46.000Z
2022-01-22T03:12:11.000Z
ipymaterialui/_version.py
trungleduc/ipymaterialui
9ced90551d0ee007e4a968d1f35156bdb1a56805
[ "MIT" ]
17
2019-01-16T15:19:54.000Z
2022-01-02T18:32:09.000Z
version_info = (0, 1, 4, 'final') _specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''} __version__ = '%s.%s.%s%s' % ( version_info[0], version_info[1], version_info[2], '' if version_info[3] == 'final' else _specifier_[version_info[3]]+str(version_info[4]))
35.625
90
0.617544
f3aca903aec347756c32ee5e9796a2917a798134
2,130
py
Python
alipay/aop/api/response/AlipayMarketingActivityDeliveryCreateResponse.py
Anning01/alipay-sdk-python-all
2adff354483ab7c2e615d6ad646d0b75c9c7803d
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayMarketingActivityDeliveryCreateResponse.py
Anning01/alipay-sdk-python-all
2adff354483ab7c2e615d6ad646d0b75c9c7803d
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayMarketingActivityDeliveryCreateResponse.py
Anning01/alipay-sdk-python-all
2adff354483ab7c2e615d6ad646d0b75c9c7803d
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ErrorDeliveryConfig import ErrorDeliveryConfig from alipay.aop.api.domain.SuccessDeliveryConfig import SuccessDeliveryConfig class AlipayMarketingActivityDeliveryCrea...
42.6
118
0.722535
0cb926b27c1f1fe0b0a98abc4dce32bddb95c12d
17,619
py
Python
scripts/Sorts.py
blackb0x3/Edward
fae35c2bad13a19c7bfb2f0d5d9810762169a086
[ "MIT" ]
2
2019-01-08T00:32:10.000Z
2019-06-24T14:29:24.000Z
scripts/Sorts.py
lukebarker3/Edward
fae35c2bad13a19c7bfb2f0d5d9810762169a086
[ "MIT" ]
5
2021-03-09T01:31:15.000Z
2022-02-17T20:41:27.000Z
scripts/Sorts.py
lukebarker3/Edward
fae35c2bad13a19c7bfb2f0d5d9810762169a086
[ "MIT" ]
null
null
null
from scripts.Algorithm import Algorithm, AlgorithmError from models.Stack import Stack import numpy as np class Sort(Algorithm): """ Base class for algorithms which sort 1-dimensional lists. """ def generate_collection(self, *args, **kwargs): """ Generates a list for a sorting algori...
28.602273
174
0.548783
667fb44da65f1ed89e8088be797743dc6c224cf7
652
py
Python
sql/exec.py
a-was/flask-template
42403b5099a6b54c2f0c0884998b89bdd67258ce
[ "MIT" ]
null
null
null
sql/exec.py
a-was/flask-template
42403b5099a6b54c2f0c0884998b89bdd67258ce
[ "MIT" ]
null
null
null
sql/exec.py
a-was/flask-template
42403b5099a6b54c2f0c0884998b89bdd67258ce
[ "MIT" ]
null
null
null
import os import sqlite3 DB_FILE = '../database.sqlite3' db = sqlite3.connect(DB_FILE) sql_files = [f for f in os.listdir('.') if f.endswith('.sql')] for sql_file in sql_files: with open(sql_file) as f: for command in f.read().split(';'): try: db.execute(command) ...
34.315789
118
0.605828
7cc56b545086a456e747d71b894d38001d92b6e1
13,912
py
Python
tests/test_uri_templates.py
astonm/falcon
90d0cd6c69b527a666912e0d0752cf303c134a0c
[ "Apache-2.0" ]
1
2018-10-07T21:06:10.000Z
2018-10-07T21:06:10.000Z
tests/test_uri_templates.py
astonm/falcon
90d0cd6c69b527a666912e0d0752cf303c134a0c
[ "Apache-2.0" ]
null
null
null
tests/test_uri_templates.py
astonm/falcon
90d0cd6c69b527a666912e0d0752cf303c134a0c
[ "Apache-2.0" ]
null
null
null
"""Application tests for URI templates using simulate_get(). These tests differ from those in test_default_router in that they are a collection of sanity-checks that exercise the full framework code path via simulate_get(), vs. probing the router directly. """ from datetime import datetime import uuid import pytest ...
28.923077
96
0.663959
8892a312c25a77c510e2f5bcdda5dfccb726a542
808
py
Python
samples/findings/create_occurrence_with_context.py
prince737/security-advisor-sdk-python
a06f6fe8180377a6ca8291ba74cff326cb56b539
[ "Apache-2.0" ]
null
null
null
samples/findings/create_occurrence_with_context.py
prince737/security-advisor-sdk-python
a06f6fe8180377a6ca8291ba74cff326cb56b539
[ "Apache-2.0" ]
17
2020-05-30T11:21:06.000Z
2021-04-20T10:01:09.000Z
samples/findings/create_occurrence_with_context.py
prince737/security-advisor-sdk-python
a06f6fe8180377a6ca8291ba74cff326cb56b539
[ "Apache-2.0" ]
4
2020-05-18T12:38:03.000Z
2021-04-20T07:13:47.000Z
from ibm_cloud_security_advisor import FindingsApiV1 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator authenticator = IAMAuthenticator(apikey='abc') findings_service =FindingsApiV1(authenticator=authenticator) findings_service.set_service_url("https://us-south.secadvisor.cloud.ibm.com/findings") respo...
25.25
86
0.699257
15677836385fd481bf78ef94bf5eb5c540aa0f25
4,886
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Codec/RawYUVFramer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Codec/RawYUVFramer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Codec/RawYUVFramer.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ve...
31.522581
94
0.58289
6435733434f639fb8ac729cbe13f584e3d89269e
204
py
Python
alfpy/version.py
hasibaasma/alfpy
c8c0c1300108015746320cede2207ac57e630d3e
[ "MIT" ]
19
2017-02-20T17:42:02.000Z
2021-12-16T19:07:17.000Z
alfpy/version.py
eggleader/alfpy
e0782e9551458ef17ab29df8af13fc0f8925e894
[ "MIT" ]
3
2018-03-12T23:54:27.000Z
2020-12-09T21:53:19.000Z
alfpy/version.py
eggleader/alfpy
e0782e9551458ef17ab29df8af13fc0f8925e894
[ "MIT" ]
6
2016-12-06T09:12:04.000Z
2021-09-24T14:40:47.000Z
# I store the version here so: # 1) I don't load dependencies by storing it in __init__.py # 2) I can import it in setup.py for the same reason. # 3) I can import it into any module. __version__ = '1.0.6'
40.8
59
0.710784
ba12e9a710d19ab220b292d6595884a556c7f01d
2,156
py
Python
myapp/ules_ops.py
CaoJohn/myproject
31474a2cecf4694d50acd9c594f26f241fd41048
[ "Apache-2.0" ]
null
null
null
myapp/ules_ops.py
CaoJohn/myproject
31474a2cecf4694d50acd9c594f26f241fd41048
[ "Apache-2.0" ]
null
null
null
myapp/ules_ops.py
CaoJohn/myproject
31474a2cecf4694d50acd9c594f26f241fd41048
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.http import JsonResponse from django.views.decorators.http import require_http_methods from django.core import serializers import requests import json import sys import os import time import random from random import choice import rstr from selenium import webdriver PACKAGE_PARENT = ...
34.774194
201
0.702226
8b80a641d4fc8c353c87017881b3902f01cf852e
2,978
py
Python
consumers/consumer.py
estarguars113/udacity-kafka-project
a74a074a044d9e5a2b8d2efbf13bbe89248f7dfa
[ "MIT" ]
null
null
null
consumers/consumer.py
estarguars113/udacity-kafka-project
a74a074a044d9e5a2b8d2efbf13bbe89248f7dfa
[ "MIT" ]
null
null
null
consumers/consumer.py
estarguars113/udacity-kafka-project
a74a074a044d9e5a2b8d2efbf13bbe89248f7dfa
[ "MIT" ]
1
2021-09-09T06:00:47.000Z
2021-09-09T06:00:47.000Z
"""Defines core consumer functionality""" import logging from confluent_kafka import Consumer, OFFSET_BEGINNING from confluent_kafka.avro import AvroConsumer, CachedSchemaRegistryClient from confluent_kafka.avro.serializer import SerializerError from tornado import gen logger = logging.getLogger(__name__) SCHEMA_RE...
32.021505
83
0.619879
6b11409ba9acc3e95fdc223e5b009418fe06c989
450
py
Python
Exercicios-Python/081.py
LuizHenriqudesouza419/Exercicios-de-Python3-main
af53cc1eea1e22a304e206a453c4b24bf67615a8
[ "MIT" ]
1
2021-11-08T22:59:33.000Z
2021-11-08T22:59:33.000Z
Exercicios-Python/081.py
LuizHenriqudesouza419/Exercicios-de-Python3-main
af53cc1eea1e22a304e206a453c4b24bf67615a8
[ "MIT" ]
null
null
null
Exercicios-Python/081.py
LuizHenriqudesouza419/Exercicios-de-Python3-main
af53cc1eea1e22a304e206a453c4b24bf67615a8
[ "MIT" ]
null
null
null
# Extraindo dados de uma lista valores = [] while True: valores.append(int(input('Digite um valor: '))) resp = str(input('Quer continuar? S/N ')) if resp in 'Nn': break print('=-' * 30) print(f'Você digitou {len(valores)} elementos.') valores.sort(reverse=True) print(f'Os valores em ordem decresce...
30
55
0.66
ae9d204ff5a7bac18384a99ec1e50ed1ab0903e4
119
py
Python
notifications/admin.py
NSP-Community/NSP-Production
329af474892b911f2025a920fdb3ab390bb6de81
[ "MIT" ]
null
null
null
notifications/admin.py
NSP-Community/NSP-Production
329af474892b911f2025a920fdb3ab390bb6de81
[ "MIT" ]
8
2020-06-05T18:39:09.000Z
2022-03-11T23:26:32.000Z
notifications/admin.py
NSP-Community/NSP-Production
329af474892b911f2025a920fdb3ab390bb6de81
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Notification)
19.833333
33
0.798319
890cddc05af768e5bc35ca59882eae1c61a3fb87
1,552
py
Python
django/authority/urls.py
cmu-lib/authority
9b8d5f2f0b6b5ae50ca1de4f85fde5a3aa003167
[ "MIT" ]
null
null
null
django/authority/urls.py
cmu-lib/authority
9b8d5f2f0b6b5ae50ca1de4f85fde5a3aa003167
[ "MIT" ]
null
null
null
django/authority/urls.py
cmu-lib/authority
9b8d5f2f0b6b5ae50ca1de4f85fde5a3aa003167
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import include, path, re_path from rest_framework import routers import authority.views import entity.views router = routers.DefaultRouter() urlpatterns = [ path("", authority.views.HomeView.as_view(), name="home"), path("api/", include(router.urls)), path...
31.673469
112
0.640464
6dfcc397ca1f7c6668c9cb145eff1d5efff94498
1,224
py
Python
python3-virtualenv/lib/python3.6/site-packages/pip/_vendor/html5lib/filters/whitespace.py
GinaJame/Portfolio_MLH
541709dcf034ddca885a8b08f9922dc352c113f8
[ "MIT" ]
1
2022-03-06T13:06:33.000Z
2022-03-06T13:06:33.000Z
python3-virtualenv/lib/python3.6/site-packages/pip/_vendor/html5lib/filters/whitespace.py
GinaJame/Portfolio_MLH
541709dcf034ddca885a8b08f9922dc352c113f8
[ "MIT" ]
1
2020-05-16T02:22:36.000Z
2020-05-16T02:22:36.000Z
python3-virtualenv/lib/python3.6/site-packages/pip/_vendor/html5lib/filters/whitespace.py
GinaJame/Portfolio_MLH
541709dcf034ddca885a8b08f9922dc352c113f8
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, unicode_literals import re from . import base from ..constants import rcdataElements, spaceCharacters spaceCharacters = "".join(spaceCharacters) SPACES_REGEX = re.compile("[%s]+" % spaceCharacters) class Filter(base.Filter): """Collapses whitespace except in p...
29.142857
90
0.610294
32025083588ea20b5d526464330b3afb8f14ed28
4,109
py
Python
code-merge/ant.py
scrapingredditboys/AI-Fundamentals-TSP
dfafd8e0d9adb87997886ef9a835be5f49b02871
[ "BSD-3-Clause" ]
null
null
null
code-merge/ant.py
scrapingredditboys/AI-Fundamentals-TSP
dfafd8e0d9adb87997886ef9a835be5f49b02871
[ "BSD-3-Clause" ]
null
null
null
code-merge/ant.py
scrapingredditboys/AI-Fundamentals-TSP
dfafd8e0d9adb87997886ef9a835be5f49b02871
[ "BSD-3-Clause" ]
null
null
null
import math import random import sys from threading import * class Ant(Thread): def __init__(self, ID, start_node, colony, beta, q0, rho): Thread.__init__(self) self.ID = ID self.start_node = start_node self.colony = colony self.curr_node = self.start_node self.grap...
32.872
123
0.558043
d7c73f759265caf4926a950d7d40034177299a03
1,893
py
Python
compiler.py
h3ko-ctrl/Demeter
7e725bca45128c783e1fc236d702dd258e3ee95d
[ "MIT" ]
null
null
null
compiler.py
h3ko-ctrl/Demeter
7e725bca45128c783e1fc236d702dd258e3ee95d
[ "MIT" ]
null
null
null
compiler.py
h3ko-ctrl/Demeter
7e725bca45128c783e1fc236d702dd258e3ee95d
[ "MIT" ]
null
null
null
# Compiler for the Demeter language import os import sys from src.option_parser import * from src.lexer.lexer import * import src.parser.parser as analyzer from src.error import FileNotFound class Compiler: DIRNAME, FILENAME = os.path.split(os.path.abspath(__file__)) def __init__(self, options, source=No...
24.269231
98
0.582673
b61a2b2a1a57a2f5ec08888ee665a73fdead769d
64,742
py
Python
public/Python27/Lib/cookielib.py
NingrumFadillah/cekmutasi
1fccb6cafb874c2a80ece9b71d7c682fd44dbd48
[ "MIT" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
public/Python27/Lib/cookielib.py
NingrumFadillah/cekmutasi
1fccb6cafb874c2a80ece9b71d7c682fd44dbd48
[ "MIT" ]
null
null
null
public/Python27/Lib/cookielib.py
NingrumFadillah/cekmutasi
1fccb6cafb874c2a80ece9b71d7c682fd44dbd48
[ "MIT" ]
3
2017-04-07T12:02:22.000Z
2020-03-23T12:11:55.000Z
"""HTTP cookie handling for web clients. This module has (now fairly distant) origins in Gisle Aas' Perl module HTTP::Cookies, from the libwww-perl library. Docstrings, comments and debug strings in this code refer to the attributes of the HTTP cookie system as cookie-attributes, to distinguish them clearly from Pyth...
35.967778
83
0.559328
adf9ce4aead61526e9c4734619b639637db18744
10,995
py
Python
python/paddle/fluid/tests/unittests/ir/inference/test_trt_matmul_quant_dequant.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
8
2016-08-15T07:02:27.000Z
2016-08-24T09:34:00.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_matmul_quant_dequant.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
1
2020-09-08T01:45:28.000Z
2020-09-08T01:45:28.000Z
python/paddle/fluid/tests/unittests/ir/inference/test_trt_matmul_quant_dequant.py
zmxdream/Paddle
04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c
[ "Apache-2.0" ]
5
2021-12-10T11:20:06.000Z
2022-02-18T05:18:12.000Z
# 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...
38.444056
97
0.614097
7aa9b6189235d5029b4cd82b6f7aefaf395a296a
4,155
py
Python
influxdb_service_sdk/model/monitor_config/app_health_config_layer_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
influxdb_service_sdk/model/monitor_config/app_health_config_layer_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
influxdb_service_sdk/model/monitor_config/app_health_config_layer_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: app_health_config_layer.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 goo...
43.28125
463
0.787485
2f770405365d5f98807e2397c0eb50ec905bcf1b
2,120
py
Python
tests/cli/test_cli.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
9,701
2019-04-16T15:46:27.000Z
2022-03-31T11:52:18.000Z
tests/cli/test_cli.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
6,420
2019-04-16T15:58:22.000Z
2022-03-31T17:54:35.000Z
tests/cli/test_cli.py
fintzd/rasa
6359be5509c7d87cd29c2ab5149bc45e843fea85
[ "Apache-2.0" ]
3,063
2019-04-16T15:23:52.000Z
2022-03-31T00:01:12.000Z
from pathlib import Path from typing import Callable from _pytest.pytester import RunResult, Testdir import pytest import sys def test_cli_start_is_fast(testdir: Testdir): """ Checks that a call to ``rasa --help`` does not import any slow imports. If this is failing this means, that a simple "rasa --help...
33.650794
94
0.679245
780d8077ed4d0aa066d88f8ebd44a0e5d3e4aa03
5,256
py
Python
torchfilter/filters/_extended_information_filter.py
brentyi/torchfilter
da0250baf2197f59b6e67f37cafdd63015380cbb
[ "MIT" ]
84
2020-09-08T07:33:04.000Z
2022-03-30T17:25:00.000Z
torchfilter/filters/_extended_information_filter.py
brentyi/diffbayes
da0250baf2197f59b6e67f37cafdd63015380cbb
[ "MIT" ]
4
2020-11-03T14:32:11.000Z
2021-05-12T02:49:49.000Z
torchfilter/filters/_extended_information_filter.py
brentyi/diffbayes
da0250baf2197f59b6e67f37cafdd63015380cbb
[ "MIT" ]
18
2020-11-04T22:20:55.000Z
2021-12-21T10:23:26.000Z
"""Private module; avoid importing from directly. """ from typing import cast import fannypack import torch from overrides import overrides from .. import types from ..base import DynamicsModel, KalmanFilterBase, KalmanFilterMeasurementModel class ExtendedInformationFilter(KalmanFilterBase): """Information form...
38.086957
88
0.670852
3700c9fc100ae36b7da2b47eba2b021b7259562b
38,637
py
Python
pythran/tests/test_numpy_func0.py
wizardxz/pythran
9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_numpy_func0.py
wizardxz/pythran
9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/test_numpy_func0.py
wizardxz/pythran
9a1b1c08cf9d3478be3b6313ac8ebca9e5b88e65
[ "BSD-3-Clause" ]
null
null
null
import unittest from pythran.tests import TestEnv import numpy import sys from pythran.typing import NDArray, List, Tuple @TestEnv.module class TestNumpyFunc0(TestEnv): def test_extended_sum0(self): self.run_test("def numpy_extended_sum0(a): import numpy ; return numpy.sum(a)", num...
54.341772
239
0.628801
38be5b690c82f63d34d7ad782142bf3bec45a076
35,655
py
Python
care/care/doctype/order_receiving/order_receiving.py
mohsinalimat/care
5b2f85839c5fa9882eb0d0097825e149402a6a8c
[ "MIT" ]
null
null
null
care/care/doctype/order_receiving/order_receiving.py
mohsinalimat/care
5b2f85839c5fa9882eb0d0097825e149402a6a8c
[ "MIT" ]
null
null
null
care/care/doctype/order_receiving/order_receiving.py
mohsinalimat/care
5b2f85839c5fa9882eb0d0097825e149402a6a8c
[ "MIT" ]
null
null
null
# Copyright (c) 2021, RF and contributors # For license information, please see license.txt import frappe from frappe import _ from frappe.utils import nowdate, getdate, cstr from frappe.model.document import Document import json from frappe.utils import flt from erpnext.controllers.taxes_and_totals import get_itemise...
52.203514
163
0.507923
5770241404ebe4d30d320d94aae96cf437e5eb0c
141
py
Python
output/models/sun_data/elem_decl/target_ns/target_ns00301m/target_ns00301m2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/sun_data/elem_decl/target_ns/target_ns00301m/target_ns00301m2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/sun_data/elem_decl/target_ns/target_ns00301m/target_ns00301m2_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.sun_data.elem_decl.target_ns.target_ns00301m.target_ns00301m2_xsd.target_ns00301m2 import Root __all__ = [ "Root", ]
23.5
113
0.808511
cfc342aabf9aca5bbafb51076862817bdc39ff98
4,161
py
Python
prediction/src/preprocess/crop_patches.py
yasiriqbal1/concept-to-clinic-1
3b7d34a6b31e8d3924934f3e5c990c49813c670e
[ "MIT" ]
346
2017-08-04T12:26:11.000Z
2018-10-16T06:51:45.000Z
prediction/src/preprocess/crop_patches.py
yasiriqbal1/concept-to-clinic-1
3b7d34a6b31e8d3924934f3e5c990c49813c670e
[ "MIT" ]
296
2017-08-02T10:17:05.000Z
2018-07-31T05:29:43.000Z
prediction/src/preprocess/crop_patches.py
yasiriqbal1/concept-to-clinic-1
3b7d34a6b31e8d3924934f3e5c990c49813c670e
[ "MIT" ]
159
2017-08-04T07:34:52.000Z
2018-10-16T18:34:08.000Z
import itertools import numpy as np import scipy.ndimage from src.preprocess.preprocess_ct import mm_coordinates_to_voxel def crop_patch(ct_array, patch_shape=None, centroids=None, stride=None, pad_value=0): """ Generator yield a patch of a desired shape for each centroid from a given a CT scan. Arg...
40.009615
118
0.631339
8876a6878dfcebd640c8834b68fe870ccb69c794
25,399
py
Python
nipype/sphinxext/plot_workflow.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
1
2015-01-19T13:12:27.000Z
2015-01-19T13:12:27.000Z
nipype/sphinxext/plot_workflow.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
nipype/sphinxext/plot_workflow.py
sebastientourbier/nipype
99c5904176481520c5bf42a501aae1a12184e672
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ :mod:`nipype.sphinxext.plot_workflow` -- Workflow plotting extension ==================================================================== A directive for ...
34.698087
96
0.588645
c4ace5f516b33e937098b071133685702db7752f
6,705
py
Python
pyrsa/inference/boot_testset.py
kshitijd20/pyrsa
3090d88362b26e6b2ee807e62d483a0158530e2a
[ "MIT" ]
4
2015-08-10T18:34:21.000Z
2018-05-15T20:43:15.000Z
pyrsa/inference/boot_testset.py
kshitijd20/pyrsa
3090d88362b26e6b2ee807e62d483a0158530e2a
[ "MIT" ]
null
null
null
pyrsa/inference/boot_testset.py
kshitijd20/pyrsa
3090d88362b26e6b2ee807e62d483a0158530e2a
[ "MIT" ]
2
2018-03-26T03:02:07.000Z
2021-11-10T21:09:48.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ boostrap-testset evaluation methods variants of taking a bootstrap sample and taking the unsampled patterns as a testset """ import numpy as np from pyrsa.util.inference_util import input_check_model from .bootstrap import bootstrap_sample from .bootstrap import boots...
41.645963
76
0.664579
fc035ae32c7c0c7522070444094992e73998f44b
12,538
py
Python
coremltools/converters/tensorflow/_tf_converter.py
Maxkvy33/coremltools
1afb9cb567a8a608b73ed53315319e97d50b85d0
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/tensorflow/_tf_converter.py
Maxkvy33/coremltools
1afb9cb567a8a608b73ed53315319e97d50b85d0
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/tensorflow/_tf_converter.py
Maxkvy33/coremltools
1afb9cb567a8a608b73ed53315319e97d50b85d0
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2019, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import os.path from ...models import MLModel def convert(filename, inputs=None, ...
48.785992
126
0.67435
fe2b5d5819e58f67913b8f20e949f19670416bee
6,563
py
Python
tests/python/pants_test/backend/python/tasks2/test_resolve_requirements.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/tasks2/test_resolve_requirements.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/python/tasks2/test_resolve_requirements.py
mateor/pants
e01cee8959da269c0b526138760847901e4d4a48
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2016 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os import sub...
50.099237
98
0.70227
f6f9b1ad43cf0f02b97b2530c202c642b6b067a5
5,718
py
Python
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/services/list_management/list_items_created_event_request.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
1
2019-02-04T21:07:06.000Z
2019-02-04T21:07:06.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/services/list_management/list_items_created_event_request.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
9
2020-03-24T16:32:57.000Z
2022-03-11T23:37:22.000Z
lambda/us-east-1_Numbers_Trivia/ask_sdk_model/services/list_management/list_items_created_event_request.py
Techievena/Numbers_Trivia
e86daaf7e7bc2c80c703c8496daea6317e986204
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
39.708333
182
0.648478
d5afeec68f8b92334745f5ce1a8fbd56a1e40a3a
204
py
Python
states.py
Kvm99/Pressure-Bot-
4dc5c850f12265dd89150891c2e383c9c32d421f
[ "BSD-3-Clause" ]
null
null
null
states.py
Kvm99/Pressure-Bot-
4dc5c850f12265dd89150891c2e383c9c32d421f
[ "BSD-3-Clause" ]
208
2019-12-06T12:48:58.000Z
2022-03-28T21:10:35.000Z
states.py
Kvm99/Telegram-Pressurebot
4dc5c850f12265dd89150891c2e383c9c32d421f
[ "BSD-3-Clause" ]
null
null
null
class States: START = 1 AGE = 2 SEX = 3 WEIGHT = 4 ADD_PRESSURE = 5 ARM = 6 PRESSURE = 7 GRAPH_FOR_PERIOD = 8 SET_TIMER = 9 REMOVE_TIMER = 10 START_BUTTON = 11
15.692308
24
0.553922
9fbb317c844d1c738200ab42b2c350ee1c6f9d61
4,529
py
Python
jicbioimage/core/util/array.py
JIC-CSB/jicbioimage.core
8a836b3af7c51926b2d18948babec593cf35ce55
[ "MIT" ]
1
2017-07-11T10:51:22.000Z
2017-07-11T10:51:22.000Z
jicbioimage/core/util/array.py
JIC-CSB/jicbioimage.core
8a836b3af7c51926b2d18948babec593cf35ce55
[ "MIT" ]
null
null
null
jicbioimage/core/util/array.py
JIC-CSB/jicbioimage.core
8a836b3af7c51926b2d18948babec593cf35ce55
[ "MIT" ]
null
null
null
"""Module containing utility functions for manipulating numpy arrays.""" import sys from functools import wraps import random import numpy as np from jicbioimage.core.util.color import pretty_color_palette, unique_color_palette def normalise(array): """Return array normalised such that all values are between 0...
32.582734
82
0.682049
286285655c90b73509d61ec047ab55d795b22ece
3,375
py
Python
playbooks/robusta_playbooks/cpu_throttling.py
pavangudiwada/robusta
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
[ "MIT" ]
273
2021-12-28T20:48:48.000Z
2022-03-31T16:03:13.000Z
playbooks/robusta_playbooks/cpu_throttling.py
pavangudiwada/robusta
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
[ "MIT" ]
103
2022-01-10T11:45:47.000Z
2022-03-31T16:31:11.000Z
playbooks/robusta_playbooks/cpu_throttling.py
pavangudiwada/robusta
cc1cb8a2e198f404e275a3947cf64e9f700f56f4
[ "MIT" ]
35
2021-12-30T15:30:14.000Z
2022-03-28T11:43:57.000Z
from robusta.api import * @action def cpu_throttling_analysis_enricher(event: PodEvent): """ Enrich the finding with a deep analysis for the cause of the CPU throttling. Includes recommendations for the identified cause. """ pod = event.get_pod() if not pod: logging.error(f"cannot run...
46.875
147
0.592296
779997555a158f9bfd174d9efd0f3f530524b0c6
1,550
py
Python
zerver/migrations/0032_verify_all_medium_avatar_images.py
sophie200/zulip
c685d368215bbc3d85d7c40f2c1e6fa95e53186a
[ "Apache-2.0" ]
2
2021-02-02T01:29:32.000Z
2021-02-02T01:30:51.000Z
zerver/migrations/0032_verify_all_medium_avatar_images.py
sophie200/zulip
c685d368215bbc3d85d7c40f2c1e6fa95e53186a
[ "Apache-2.0" ]
1
2021-01-07T15:28:54.000Z
2021-01-08T15:38:45.000Z
zerver/migrations/0032_verify_all_medium_avatar_images.py
sophie200/zulip
c685d368215bbc3d85d7c40f2c1e6fa95e53186a
[ "Apache-2.0" ]
1
2020-12-03T17:08:44.000Z
2020-12-03T17:08:44.000Z
import hashlib from unittest.mock import patch from django.conf import settings from django.db import migrations from django.db.backends.postgresql.schema import DatabaseSchemaEditor from django.db.migrations.state import StateApps from zerver.lib.upload import upload_backend from zerver.lib.utils import make_safe_di...
37.804878
93
0.785161
3ba62c7973ec30c2a884a854b55c37220151aba9
609
py
Python
src/playground/migrations/0001_initial.py
malithbc/Mole-AR-Stage1
0776483fa79a2452d1b2b93cfc06291ce713c7c0
[ "MIT" ]
null
null
null
src/playground/migrations/0001_initial.py
malithbc/Mole-AR-Stage1
0776483fa79a2452d1b2b93cfc06291ce713c7c0
[ "MIT" ]
null
null
null
src/playground/migrations/0001_initial.py
malithbc/Mole-AR-Stage1
0776483fa79a2452d1b2b93cfc06291ce713c7c0
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-11 03:23 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Person', fields=[ ('id', models.BigAutoFiel...
25.375
117
0.569787
ff68fbaece0899c7e06fcd6e4edc48a43efa7bf7
47,595
py
Python
rumi/io/demand.py
prayas-energy/Rumi
fd7f0cf4eba08b4efa1a643217caff7f876fb394
[ "Apache-2.0" ]
1
2021-11-24T07:22:15.000Z
2021-11-24T07:22:15.000Z
rumi/io/demand.py
prayas-energy/Rumi
fd7f0cf4eba08b4efa1a643217caff7f876fb394
[ "Apache-2.0" ]
null
null
null
rumi/io/demand.py
prayas-energy/Rumi
fd7f0cf4eba08b4efa1a643217caff7f876fb394
[ "Apache-2.0" ]
1
2022-02-09T11:11:35.000Z
2022-02-09T11:11:35.000Z
# Copyright 2021 Prayas Energy Group(https://www.prayaspune.org/peg/) # # 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...
36.002269
157
0.590734
652b650d8ea0957351322d930d35b5d58df4a268
284
py
Python
tests/artificial/transf_RelativeDifference/trend_LinearTrend/cycle_30/ar_12/test_artificial_1024_RelativeDifference_LinearTrend_30_12_100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_RelativeDifference/trend_LinearTrend/cycle_30/ar_12/test_artificial_1024_RelativeDifference_LinearTrend_30_12_100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_RelativeDifference/trend_LinearTrend/cycle_30/ar_12/test_artificial_1024_RelativeDifference_LinearTrend_30_12_100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 100, ar_order = 12);
40.571429
179
0.746479
22a42c7fe8e75d64abe49976f0ecea349f002295
339
py
Python
RENAME_FILES.py
CaptainVietnam6/GoPro-output-cleaner
fbffc8ff91d2cc9845c2aab1c41a0e0f9c6ac6d4
[ "MIT" ]
null
null
null
RENAME_FILES.py
CaptainVietnam6/GoPro-output-cleaner
fbffc8ff91d2cc9845c2aab1c41a0e0f9c6ac6d4
[ "MIT" ]
null
null
null
RENAME_FILES.py
CaptainVietnam6/GoPro-output-cleaner
fbffc8ff91d2cc9845c2aab1c41a0e0f9c6ac6d4
[ "MIT" ]
null
null
null
import os suffix_count = 0 while True: if os.path.exists(f"./GoPro{suffix_count}.mp4") == True: suffix_count += 1 if os.path.exists(f"./GoPro{suffix_count}.mp4") == False: break for file in os.listdir("./"): if file.endswith(".MP4"): os.rename(file, f"GoPro{suffix_count}.mp4") ...
30.818182
61
0.613569
17c93798a9c2da435fb40d40e168fbd33a887e61
2,624
py
Python
tests/beos_plugin_tests/scenarios/scenarios_various_operations/007_[5.8]_Test_of_issue,_transfer_and_withdraw_.py
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
9
2019-04-04T18:46:14.000Z
2022-03-03T16:22:56.000Z
tests/beos_plugin_tests/scenarios/scenarios_various_operations/007_[5.8]_Test_of_issue,_transfer_and_withdraw_.py
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
null
null
null
tests/beos_plugin_tests/scenarios/scenarios_various_operations/007_[5.8]_Test_of_issue,_transfer_and_withdraw_.py
terradacs/beos-core
31e19170bcad573b1d498811284e62babd478f92
[ "MIT" ]
3
2019-03-19T17:45:08.000Z
2021-03-22T21:45:35.000Z
#!/usr/bin/python3 # Scenario based on test : [5.8]-Test-of-issue,-transfer-and-withdraw import os import sys import time import datetime currentdir = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.dirname(os.path.dirname(currentdir))) from beos_test_utils.beos_utils_pack import init, ActionResu...
43.733333
195
0.728659
acbc1608bf68f67a0b511fe2b0f082fe4ea025ba
2,298
py
Python
chrome/common/extensions/docs/server2/redirector.py
halton/chromium-crosswalk
bfcca582b723b9535907f0b410b920ef99911b70
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:51:34.000Z
2018-02-15T03:11:54.000Z
chrome/common/extensions/docs/server2/redirector.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-12-13T19:44:12.000Z
2021-12-13T19:44:12.000Z
chrome/common/extensions/docs/server2/redirector.py
j4ckfrost/android_external_chromium_org
a1a3dad8b08d1fcf6b6b36c267158ed63217c780
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
4
2017-04-05T01:52:03.000Z
2022-02-13T17:58:45.000Z
# Copyright 2013 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. import posixpath from urlparse import urlsplit from file_system import FileNotFoundError from future import Gettable, Future class Redirector(object): de...
32.828571
79
0.693211
5c31c78b9318c9e9f9f11a0f842c74e6e48ea2c1
1,075
py
Python
RecoLocalTracker/Configuration/python/RecoLocalTrackerHeavyIons_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoLocalTracker/Configuration/python/RecoLocalTrackerHeavyIons_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoLocalTracker/Configuration/python/RecoLocalTrackerHeavyIons_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # # Tracker Local Reco # Initialize magnetic field # from RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitConverter_cfi import * from RecoLocalTracker.SiStripRecHitConverter.SiStripRecHitMatcher_cfi import * from RecoLocalTracker.SiStripRecHitConverter.StripCPEfromTrackAng...
56.578947
107
0.897674
ac08d1fdb4218882feed894675dcf5a20389511e
2,435
py
Python
Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/models/__init__.py
Candida18/Job-Portal-with-Automated-Resume-Screening
19d19464ad3d1714da856656753a4afdfe257b31
[ "MIT" ]
null
null
null
Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/models/__init__.py
Candida18/Job-Portal-with-Automated-Resume-Screening
19d19464ad3d1714da856656753a4afdfe257b31
[ "MIT" ]
null
null
null
Job Portal with Automated Resume Screening/gensim-4.1.2/gensim/models/__init__.py
Candida18/Job-Portal-with-Automated-Resume-Screening
19d19464ad3d1714da856656753a4afdfe257b31
[ "MIT" ]
2
2022-01-15T05:36:58.000Z
2022-02-08T15:25:50.000Z
""" This package contains algorithms for extracting document representations from their raw bag-of-word counts. """ # bring model classes directly into package namespace, to save some typing from .coherencemodel import CoherenceModel # noqa:F401 from .hdpmodel import HdpModel # noqa:F401 from .ldamodel import LdaMod...
38.046875
102
0.726899
d69ab7e018423ff264d2053d8f2bc31058fb51d5
8,158
py
Python
darshan-util/pydarshan/darshan/experimental/plots/matplotlib.py
srini009/darshan
06faec6ae09081078da1d85e3737928361ade8f1
[ "mpich2" ]
31
2021-05-13T08:55:57.000Z
2022-03-17T17:41:01.000Z
darshan-util/pydarshan/darshan/experimental/plots/matplotlib.py
srini009/darshan
06faec6ae09081078da1d85e3737928361ade8f1
[ "mpich2" ]
655
2021-05-12T23:56:25.000Z
2022-03-31T20:35:49.000Z
darshan-util/pydarshan/darshan/experimental/plots/matplotlib.py
srini009/darshan
06faec6ae09081078da1d85e3737928361ade8f1
[ "mpich2" ]
18
2021-05-13T14:47:56.000Z
2022-03-28T19:49:18.000Z
# -*- coding: utf-8 -*- from darshan.report import * import matplotlib import matplotlib.pyplot as plt import numpy as np def plot_access_histogram(self, mod, filter=None, data=None): """ Plots a histogram of access sizes for specified module. :param log: Handle for an opened darshan log. :param...
27.560811
114
0.566683
3bfdcf36684e73f462c89be06bd31b9439608de8
3,946
py
Python
dateparser/data/date_translation_data/br.py
bsekiewicz/dateparser
babc677372376d933de5542010af3097c26e49e9
[ "BSD-3-Clause" ]
1,804
2015-01-01T23:01:54.000Z
2022-03-30T18:36:16.000Z
dateparser/data/date_translation_data/br.py
bsekiewicz/dateparser
babc677372376d933de5542010af3097c26e49e9
[ "BSD-3-Clause" ]
948
2015-01-04T22:18:39.000Z
2022-03-31T16:29:41.000Z
dateparser/data/date_translation_data/br.py
bsekiewicz/dateparser
babc677372376d933de5542010af3097c26e49e9
[ "BSD-3-Clause" ]
463
2015-01-10T08:53:39.000Z
2022-03-18T12:45:49.000Z
info = { "name": "br", "date_order": "YMD", "january": [ "gen", "genver" ], "february": [ "c'hwe", "c'hwevrer" ], "march": [ "meur", "meurzh" ], "april": [ "ebr", "ebrel" ], "may": [ "mae" ], "jun...
17.38326
35
0.254688
abe1258b64a50deb6d6b262e4e9ef7b59caa6d84
448
py
Python
.base_lessons/Loops/Break keyword/break_keyword.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
.base_lessons/Loops/Break keyword/break_keyword.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
.base_lessons/Loops/Break keyword/break_keyword.py
dannymeijer/level-up-with-python
1bd1169aafd0fdc124984c30edc7f0153626cf06
[ "MIT" ]
null
null
null
count = 0 while True: # this condition cannot possibly be false print(count) count += 1 if count >= 5: break # exit loop if count >= 5 zoo = ["lion", "tiger", "elephant"] while True: # this condition cannot possibly be false animal = zoo.pop() # extrac...
28
77
0.5625
332642d9e2c3df865d3b7adc4353eb4716cd068c
26,913
py
Python
tensorflow/python/training/saver_test.py
matsuyama/tensorflow
a27d844e05447e65aa279ae5269a2d75590f46f6
[ "Apache-2.0" ]
1
2016-07-03T20:16:31.000Z
2016-07-03T20:16:31.000Z
tensorflow/python/training/saver_test.py
matsuyama/tensorflow
a27d844e05447e65aa279ae5269a2d75590f46f6
[ "Apache-2.0" ]
null
null
null
tensorflow/python/training/saver_test.py
matsuyama/tensorflow
a27d844e05447e65aa279ae5269a2d75590f46f6
[ "Apache-2.0" ]
1
2021-03-16T21:45:10.000Z
2021-03-16T21:45:10.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.431154
80
0.651953
f37665c1f1472e4e0ad8debc4a113347b1a021d0
580
py
Python
postgresql/python/main.py
srgnk/aiven-examples
d4c959abb45cf5d3e80f4a3db7ee4e34266a68a1
[ "Apache-2.0" ]
14
2020-08-01T06:15:12.000Z
2022-03-07T15:45:10.000Z
postgresql/python/main.py
srgnk/aiven-examples
d4c959abb45cf5d3e80f4a3db7ee4e34266a68a1
[ "Apache-2.0" ]
5
2022-01-11T20:02:47.000Z
2022-01-19T13:19:39.000Z
postgresql/python/main.py
srgnk/aiven-examples
d4c959abb45cf5d3e80f4a3db7ee4e34266a68a1
[ "Apache-2.0" ]
10
2020-06-16T11:31:28.000Z
2022-02-20T20:31:35.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 Aiven, Helsinki, Finland. https://aiven.io/ import argparse import psycopg2 def main(): parser = argparse.ArgumentParser() parser.add_argument('--service-uri', help="Postgres Service URI (obtained from Aiven console)", required=True) args = parser.parse_args() ...
26.363636
114
0.698276
8e908cf508021b496a1e25a6aaa7f9abe8617093
924
py
Python
tests/data/expected/main/main_nested_directory/person.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_nested_directory/person.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_nested_directory/person.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: person.json # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from typing import Any, List, Optional, Union from pydantic import BaseModel, Field, conint from .definitions import food, friends, pet from .definitions.drink import coffee, tea ...
31.862069
74
0.719697
63ee21c01052b1b3d5dbbeead1669b5d77aa4ffd
11,779
py
Python
dspn/data.py
zzirnheld/dspn
e0c248d9e55821847841cf0c67e97225277a6e75
[ "MIT" ]
null
null
null
dspn/data.py
zzirnheld/dspn
e0c248d9e55821847841cf0c67e97225277a6e75
[ "MIT" ]
null
null
null
dspn/data.py
zzirnheld/dspn
e0c248d9e55821847841cf0c67e97225277a6e75
[ "MIT" ]
null
null
null
import os import math import random import json import torch import torch.utils.data import torchvision import torchvision.transforms as transforms import torchvision.transforms.functional as T import h5py import numpy as np import pandas def get_loader(dataset, batch_size, num_workers=8, shuffle=True): dl = tor...
32.810585
125
0.548688
2199aa0fcf31dacd952e97094d7bff9de93a56d7
773
py
Python
Mundo 03/moeda2.py
AlanyLourenco/Python
3c61f246621abf60734ea4c40ea01a2ab079b984
[ "MIT" ]
null
null
null
Mundo 03/moeda2.py
AlanyLourenco/Python
3c61f246621abf60734ea4c40ea01a2ab079b984
[ "MIT" ]
null
null
null
Mundo 03/moeda2.py
AlanyLourenco/Python
3c61f246621abf60734ea4c40ea01a2ab079b984
[ "MIT" ]
null
null
null
def metade(n=0,formato=False): m=n/2 return m if formato is False else moeda(m) def dobro(n=0,formato=False): m=n*2 return m if formato is False else moeda(m) def mais(n=0,d=0,formato=False): m=((d/100)*n)+n return m if formato is False else moeda(m) def desc(n=0,d=0,formato=False): m...
24.15625
59
0.59379
8d1321520065543ffe528c2a8dbd4be0eada74a8
5,291
py
Python
pytorch_translate/test/test_preprocess.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
1
2020-07-24T10:59:17.000Z
2020-07-24T10:59:17.000Z
pytorch_translate/test/test_preprocess.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
null
null
null
pytorch_translate/test/test_preprocess.py
dzhulgakov/translate
018d3eed8d93ff32e86c912e68045c7a3f4ed0b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import os import unittest from pytorch_translate import constants, preprocess from pytorch_translate.data.dictionary import Dictionary from pytorch_translate.test import utils as test_utils class TestPreprocess(unittest.TestCase): def setUp(self): self.source_text_...
38.620438
78
0.67681
4f4adefb804a6f805214667daff0f9052d53bb1c
1,481
py
Python
src/client_libraries/python/dynamics/customerinsights/api/models/role_assignment_py3.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/role_assignment_py3.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
null
null
null
src/client_libraries/python/dynamics/customerinsights/api/models/role_assignment_py3.py
microsoft/Dynamics365-CustomerInsights-Client-Libraries
e00632f7972717b03e0fb1a9e2667e8f9444a0fe
[ "MIT" ]
7
2021-02-11T19:48:57.000Z
2021-12-17T08:00:15.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
38.973684
124
0.60027
8b1e83fabd723eda993e35ff51f18fe72ffe4cbf
747
py
Python
visual_novel/core/middlewares.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
9
2018-03-11T12:53:12.000Z
2020-12-19T14:21:53.000Z
visual_novel/core/middlewares.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
6
2020-02-11T22:19:22.000Z
2022-03-11T23:20:10.000Z
visual_novel/core/middlewares.py
dolamroth/visual_novel
c67379df395561b3bca7e91e2db6547d2e943330
[ "MIT" ]
null
null
null
from django.http import HttpResponseRedirect from django.core.exceptions import PermissionDenied class IsAuthenticatedMiddleware(object): def process_request(self, request): user = request.user if not bool(user.is_authenticated) \ or not hasattr(user, 'profile') \ o...
33.954545
71
0.672021
2957dd1a14ff5bdbe83a5f095bf0f1a79e1694c3
1,878
py
Python
qlcp21a/Q2_phot.py
RapidLzj/QLCP21A
52fb295ac72f79f0e5aa3310ed5849960659bf08
[ "MIT" ]
null
null
null
qlcp21a/Q2_phot.py
RapidLzj/QLCP21A
52fb295ac72f79f0e5aa3310ed5849960659bf08
[ "MIT" ]
null
null
null
qlcp21a/Q2_phot.py
RapidLzj/QLCP21A
52fb295ac72f79f0e5aa3310ed5849960659bf08
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 201901, Dr. Jie Zheng, Beijing & Xinglong, NAOC 202101-? Dr. Jie Zheng & Dr./Prof. Linqiao Jiang Light_Curve_Pipeline v3 (2021A) Upgrade from former version, remove unused code """ import numpy as np import astropy.io.fits as fits import os from .JZ_utils import loadlist, d...
31.3
80
0.642173
c274896071bfcdee50dc83181763e2dde00f6aec
2,981
py
Python
timm/models/layers/classifier.py
datduong/pytorch-image-models
05c9b52ca65b01e57f8cea2b6447882488aba4f6
[ "Apache-2.0" ]
null
null
null
timm/models/layers/classifier.py
datduong/pytorch-image-models
05c9b52ca65b01e57f8cea2b6447882488aba4f6
[ "Apache-2.0" ]
null
null
null
timm/models/layers/classifier.py
datduong/pytorch-image-models
05c9b52ca65b01e57f8cea2b6447882488aba4f6
[ "Apache-2.0" ]
null
null
null
""" Classifier head and layer factory Hacked together by / Copyright 2020 Ross Wightman """ from torch import nn as nn from torch.nn import functional as F from .adaptive_avgmax_pool import SelectAdaptivePool2d def create_classifier(num_features, num_classes, pool_type='avg', use_conv=False): flatten = not use_...
43.202899
99
0.647434
9727d277028cd5b90a244df9728c4e338594d0b9
671
py
Python
venv3/bin/rst2s5.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
null
null
null
venv3/bin/rst2s5.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
null
null
null
venv3/bin/rst2s5.py
paul-romeo/pytest-in-60-minutes
a4817312081347737f87801c0623054eba599418
[ "MIT" ]
null
null
null
#!/home/paul-romeo/pytest_workshop/venv3/bin/python3 # $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Chris Liechti <cliechti@gmx.net> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML slides using the S5 template system. """...
26.84
74
0.745156
06b1326900c7b01de972591a2f61ee6e33795554
3,080
py
Python
benchmark/startCirq2430.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2430.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startCirq2430.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=40 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
36.235294
77
0.680195
5d9f14cee18ff462862f91fc0a7bc17935d59a72
16,878
py
Python
evaluation.py
TUDelftHao/TUDelftHao-4DLongitudinal-MRI-segmentation
c028e3c8b64812a05e39efa80699a327172c095d
[ "MIT" ]
4
2020-07-28T06:03:43.000Z
2021-09-10T09:12:10.000Z
evaluation.py
TUDelftHao/TUDelftHao-4DLongitudinal-MRI-segmentation
c028e3c8b64812a05e39efa80699a327172c095d
[ "MIT" ]
null
null
null
evaluation.py
TUDelftHao/TUDelftHao-4DLongitudinal-MRI-segmentation
c028e3c8b64812a05e39efa80699a327172c095d
[ "MIT" ]
1
2021-09-10T09:12:21.000Z
2021-09-10T09:12:21.000Z
''' Evaluate the segmentation consistancy ''' import SimpleITK as sitk import numpy as np import torch import os import sys import pandas as pd from data_prepara import data_split, data_construction, time_parser import matplotlib.pyplot as plt import matplotlib.ticker as mticker import seaborn as sns ...
44.183246
154
0.647707
462b60efd7f3d2d6f29223bae3f05d27e357126d
36,035
py
Python
ibis/backends/pandas/execution/generic.py
rohankumardubey/ibis
e416dcfdb32792ffeb6f5214b361872582aa8795
[ "Apache-2.0" ]
986
2017-06-07T07:33:01.000Z
2022-03-31T13:00:46.000Z
ibis/backends/pandas/execution/generic.py
rohankumardubey/ibis
e416dcfdb32792ffeb6f5214b361872582aa8795
[ "Apache-2.0" ]
2,623
2017-06-07T18:29:11.000Z
2022-03-31T20:27:31.000Z
ibis/backends/pandas/execution/generic.py
gerrymanoim/ibis
37616bd3df0599f33b28101ca1c19e0c0003cf4d
[ "Apache-2.0" ]
238
2017-06-26T19:02:58.000Z
2022-03-31T15:18:29.000Z
"""Execution rules for generic ibis operations.""" import collections import datetime import decimal import functools import math import numbers import operator from collections.abc import Sized from typing import Dict, Optional import numpy as np import pandas as pd import toolz from pandas.api.types import Datetime...
32.231664
79
0.70784
e04a159af7d2e2392fcdf22023b73c84b1840206
764
py
Python
plugin/core/popups.py
gobijan/LSP
fe6267f7741b24c760f3ca9ec36697a43dab2684
[ "MIT" ]
null
null
null
plugin/core/popups.py
gobijan/LSP
fe6267f7741b24c760f3ca9ec36697a43dab2684
[ "MIT" ]
null
null
null
plugin/core/popups.py
gobijan/LSP
fe6267f7741b24c760f3ca9ec36697a43dab2684
[ "MIT" ]
null
null
null
popup_class = "lsp_popup" popup_css = ''' .lsp_popup { margin: 0.5rem 0.5rem 0 0.5rem; } .lsp_popup .highlight { border-width: 0; border-radius: 0; } .lsp_popup p { margin-bottom: 0.5rem; padding: 0 0.5rem; font-family: system; } .lsp_popup li...
21.828571
62
0.524869
aec0b391e55de664082608f9435db14908f78107
4,180
py
Python
map_of_the_world.py
janiszewskibartlomiej/Hack4Change-join_a_meeting
d5d471e7cd8a405f92635e1c54d693019b7c21a3
[ "MIT" ]
null
null
null
map_of_the_world.py
janiszewskibartlomiej/Hack4Change-join_a_meeting
d5d471e7cd8a405f92635e1c54d693019b7c21a3
[ "MIT" ]
null
null
null
map_of_the_world.py
janiszewskibartlomiej/Hack4Change-join_a_meeting
d5d471e7cd8a405f92635e1c54d693019b7c21a3
[ "MIT" ]
null
null
null
import folium from folium import DivIcon from data_processing import DataProcessing from connect_to_db import ConnectToDb class CreatingMap: def __init__(self): pass def map_of_the_world(self): title = "Hack4Change: <br> Activity Booster" meetup_count = ConnectToDb().select_one_record...
45.434783
270
0.494737
556b3746d636b351db8eb6ec8a74e89b4096e053
1,053
py
Python
text_files/filegen_BASE_21122.py
gthd/pawk
ef32cd0d5f6ed4abc57b414110d5bc2be5ae4c81
[ "Apache-2.0" ]
3
2020-01-11T10:20:26.000Z
2020-01-13T12:54:21.000Z
text_files/filegen_BASE_21122.py
gthd/pawk
ef32cd0d5f6ed4abc57b414110d5bc2be5ae4c81
[ "Apache-2.0" ]
17
2020-03-07T21:44:17.000Z
2020-12-29T20:14:59.000Z
text_files/filegen_BASE_20995.py
gthd/pawk
ef32cd0d5f6ed4abc57b414110d5bc2be5ae4c81
[ "Apache-2.0" ]
1
2021-04-07T23:41:31.000Z
2021-04-07T23:41:31.000Z
import random import string class FileGenerator: def genRandomDigits(self): digits = "".join( [random.choice(string.digits) for i in range(random.randint(1,8))]) return digits def genRandomChars(self): chars = "".join( [random.choice(string.ascii_letters[:26]) for i in range(random.ra...
31.909091
125
0.598291
0d0d43afb3267d4780641fe432419f1c8bf4d0f4
17,206
py
Python
.eggs/pytest-3.6.1-py3.6.egg/_pytest/runner.py
dyspop/responsysrest
7b8e9edab1808f753be6383c7925529775a4fa89
[ "MIT" ]
1
2018-09-19T15:08:08.000Z
2018-09-19T15:08:08.000Z
.eggs/pytest-3.6.1-py3.6.egg/_pytest/runner.py
dyspop/responsysrest
7b8e9edab1808f753be6383c7925529775a4fa89
[ "MIT" ]
22
2018-04-23T13:52:20.000Z
2019-09-20T15:11:32.000Z
.eggs/pytest-3.6.1-py3.6.egg/_pytest/runner.py
dyspop/responsysrest
7b8e9edab1808f753be6383c7925529775a4fa89
[ "MIT" ]
1
2020-04-28T17:03:40.000Z
2020-04-28T17:03:40.000Z
""" basic collect and runtest protocol implementations """ from __future__ import absolute_import, division, print_function import bdb import os import sys from time import time import py from _pytest._code.code import TerminalRepr, ExceptionInfo from _pytest.outcomes import skip, Skipped, TEST_OUTCOME # # pytest pl...
30.345679
86
0.611298
f04913481f1a71107c3cfd0e9a28a5329f68da1f
253
py
Python
text/stick/_line.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/stick/_line.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/stick/_line.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
""" *Stick* A string imbued with plane geometry. """ from dataclasses import dataclass from ..string import String from .geometry import StickGeometry __all__ = ["Stick"] @dataclass class Stick( String, ): geometry: StickGeometry
11
38
0.695652
40e3a5bd242e53abad701b6362f711f7fc79c7ae
1,369
py
Python
solar/dblayer/conflict_resolution.py
Mirantis/solar
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
[ "Apache-2.0" ]
7
2015-09-07T22:52:32.000Z
2016-01-14T09:27:09.000Z
solar/dblayer/conflict_resolution.py
Mirantis/solar
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
[ "Apache-2.0" ]
117
2015-09-08T05:46:16.000Z
2016-04-14T16:46:33.000Z
solar/dblayer/conflict_resolution.py
Mirantis/solar
7d12e56d403d70a923cd1caa9c7e3c8cf6fc57aa
[ "Apache-2.0" ]
21
2015-09-08T06:34:50.000Z
2015-12-09T09:14:24.000Z
# Copyright 2015 Mirantis, Inc. # # 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 ...
37
78
0.692476