hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
9d59c3349f496e69238e7a34790f0efc78d7e7dc
9,416
py
Python
finetuning/tokenization_reforbert.py
nawnoes/ReforBERT
ae7c8ddf55de2e06080a0e46735ea9609262d8ce
[ "MIT" ]
5
2020-05-24T10:50:25.000Z
2021-06-16T08:34:28.000Z
finetuning/tokenization_reforbert.py
nawnoes/ReforBERT
ae7c8ddf55de2e06080a0e46735ea9609262d8ce
[ "MIT" ]
null
null
null
finetuning/tokenization_reforbert.py
nawnoes/ReforBERT
ae7c8ddf55de2e06080a0e46735ea9609262d8ce
[ "MIT" ]
1
2020-09-21T03:15:48.000Z
2020-09-21T03:15:48.000Z
""" Tokenization classes for reforbert model """ import logging import os import unicodedata from shutil import copyfile from transformers import PreTrainedTokenizer logger = logging.getLogger(__name__) VOCAB_FILES_NAMES = {"vocab_file": "kowiki.model", "vocab_txt": "kowiki.vocab"} PRETRAINED_V...
39.563025
117
0.609494
9159b1e997d72ee1e5aba46c13d504075f7a12bf
1,623
py
Python
xsd2tkform/ui/tooltip.py
Dolgalad/xsd2tkform
27f0d5bd1d9b6816982c18c45323ff7d1191efca
[ "MIT" ]
null
null
null
xsd2tkform/ui/tooltip.py
Dolgalad/xsd2tkform
27f0d5bd1d9b6816982c18c45323ff7d1191efca
[ "MIT" ]
null
null
null
xsd2tkform/ui/tooltip.py
Dolgalad/xsd2tkform
27f0d5bd1d9b6816982c18c45323ff7d1191efca
[ "MIT" ]
null
null
null
import tkinter as tk class ToolTip(object): """ create a tooltip for a given widget """ def __init__(self, widget, text='widget info'): self.waittime = 500 #miliseconds self.wraplength = 2*180 #pixels self.widget = widget self.text = text self.widget.bind("...
29.509091
75
0.556993
21110ed13b7bbf0013e35a2d83fe501e08cf054a
216
py
Python
constrictor/__init__.py
beneboy/deb-constrictor
506736aa35634d7b7872962f6bdb9d61388ad6ec
[ "BSD-3-Clause" ]
null
null
null
constrictor/__init__.py
beneboy/deb-constrictor
506736aa35634d7b7872962f6bdb9d61388ad6ec
[ "BSD-3-Clause" ]
null
null
null
constrictor/__init__.py
beneboy/deb-constrictor
506736aa35634d7b7872962f6bdb9d61388ad6ec
[ "BSD-3-Clause" ]
null
null
null
from .dpkg import DPKGBuilder from .control import BinaryControl __title__ = 'deb-constrictor' __version__ = '0.9' __author__ = 'Ben Shaw' __license__ = 'BSD 3 Clause' __copyright__ = 'Copyright 2016-2021 Ben Shaw'
24
46
0.768519
5a94754870929e0a27ba5e64abe1d19d1f57a724
26,303
py
Python
test/functional/test_runner.py
WeSmartChain/wsc
ce06fc4774ccef7db7644ce41e2096525e4237c8
[ "MIT" ]
null
null
null
test/functional/test_runner.py
WeSmartChain/wsc
ce06fc4774ccef7db7644ce41e2096525e4237c8
[ "MIT" ]
null
null
null
test/functional/test_runner.py
WeSmartChain/wsc
ce06fc4774ccef7db7644ce41e2096525e4237c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Run regression test suite. This module calls down into individual test cases via subprocess. It will f...
41.750794
195
0.600464
f5901fc0bf3e325638b4aaf9f1d3cba00bda0b6f
15,168
py
Python
refinery/lib/structures.py
larsborn/refinery
c8b19156b17e5fa5de5c72bc668a14d646584560
[ "BSD-3-Clause" ]
null
null
null
refinery/lib/structures.py
larsborn/refinery
c8b19156b17e5fa5de5c72bc668a14d646584560
[ "BSD-3-Clause" ]
null
null
null
refinery/lib/structures.py
larsborn/refinery
c8b19156b17e5fa5de5c72bc668a14d646584560
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Interfaces and classes to read structured data. """ from __future__ import annotations import struct import functools import io import enum import weakref from typing import Union, Tuple, Optional, Iterable, ByteString, TypeVar, Generic, Any, Dict T = TypeVar('T', ...
32.067653
109
0.590388
a8079a14f15092cc7b926abd31bb20814ed3e465
3,355
py
Python
deepvariant.py
duceppemo/gbs
8083250ff1df1f98b956393e8de5c5be8736dfab
[ "MIT" ]
null
null
null
deepvariant.py
duceppemo/gbs
8083250ff1df1f98b956393e8de5c5be8736dfab
[ "MIT" ]
null
null
null
deepvariant.py
duceppemo/gbs
8083250ff1df1f98b956393e8de5c5be8736dfab
[ "MIT" ]
null
null
null
#!/usr/local/env python3 # from gbs_methods import Methods import subprocess import os from pathlib import Path class DeepVariant(object): @staticmethod def call_variants(ref, cram_list, deepvariant_folder, cpu): ref_folder = os.path.dirname(ref) ref_name = os.path.basename(ref) cram_...
46.597222
122
0.579732
89862bf43e90dd45ac77f706e994b78f1b8464a0
1,209
py
Python
getopt/setup.py
Carglglz/micropython-lib
07102c56aa1087b97ee313cedc1d89fd20452e11
[ "PSF-2.0" ]
2
2019-06-25T15:19:18.000Z
2019-07-08T12:23:04.000Z
getopt/setup.py
Carglglz/micropython-lib
07102c56aa1087b97ee313cedc1d89fd20452e11
[ "PSF-2.0" ]
null
null
null
getopt/setup.py
Carglglz/micropython-lib
07102c56aa1087b97ee313cedc1d89fd20452e11
[ "PSF-2.0" ]
3
2021-02-24T12:16:11.000Z
2022-01-04T08:35:59.000Z
import sys # Remove current dir from sys.path, otherwise setuptools will peek up our # module instead of system's. sys.path.pop(0) from setuptools import setup sys.path.append("..") import sdist_upip setup(name='micropython-getopt', version='3.3.3-1', description='CPython getopt module ported to MicroPytho...
54.954545
502
0.748553
5c5bf181cddbece2c422c8f2406598954d8f75b7
389
py
Python
data4e/wsgi.py
data4e/data4e
d27fa9580b383ff60134d65227ba9f48870cac52
[ "MIT" ]
null
null
null
data4e/wsgi.py
data4e/data4e
d27fa9580b383ff60134d65227ba9f48870cac52
[ "MIT" ]
null
null
null
data4e/wsgi.py
data4e/data4e
d27fa9580b383ff60134d65227ba9f48870cac52
[ "MIT" ]
null
null
null
""" WSGI config for data4e project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
22.882353
78
0.784062
0b0aeb7707c4be2468fddc5ae07d81d976c1f9eb
515
py
Python
gsdivision/migrations/0007_auto_20180206_2204.py
susahe/gissl
29794d0ed13ce34fe71fe158f5224b02f7a19f9b
[ "MIT" ]
null
null
null
gsdivision/migrations/0007_auto_20180206_2204.py
susahe/gissl
29794d0ed13ce34fe71fe158f5224b02f7a19f9b
[ "MIT" ]
null
null
null
gsdivision/migrations/0007_auto_20180206_2204.py
susahe/gissl
29794d0ed13ce34fe71fe158f5224b02f7a19f9b
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-06 22:04 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gsdivision', '0006_auto_20180206_1916'), ] operations = [ migrations.AlterField( model_name='gramasevadivision',...
25.75
144
0.636893
36069bac71db7add048dce4db474b66ae3418216
6,989
py
Python
mitmproxy/options.py
jcomeauictx/mitmproxy
6d09f5dcad7becb40f2048b2678079b34ca3ea6b
[ "MIT" ]
null
null
null
mitmproxy/options.py
jcomeauictx/mitmproxy
6d09f5dcad7becb40f2048b2678079b34ca3ea6b
[ "MIT" ]
null
null
null
mitmproxy/options.py
jcomeauictx/mitmproxy
6d09f5dcad7becb40f2048b2678079b34ca3ea6b
[ "MIT" ]
null
null
null
from typing import Optional, Sequence from mitmproxy import optmanager from mitmproxy.net import tls CONF_DIR = "~/.mitmproxy" CONF_BASENAME = "mitmproxy" LISTEN_PORT = 8080 CONTENT_VIEW_LINES_CUTOFF = 512 KEY_SIZE = 2048 class Options(optmanager.OptManager): def __init__(self, **kwargs) -> None: supe...
36.025773
99
0.554729
32f475aac3828fc49239cda51302c95380a644d5
15,309
py
Python
contentcuration/contentcuration/tests/viewsets/test_file.py
wahello/studio
732dc12b3d2732b1db5709e291a2c29d4cf98944
[ "MIT" ]
60
2018-03-29T23:33:29.000Z
2022-03-19T12:10:56.000Z
contentcuration/contentcuration/tests/viewsets/test_file.py
wahello/studio
732dc12b3d2732b1db5709e291a2c29d4cf98944
[ "MIT" ]
2,260
2018-03-02T23:14:49.000Z
2022-03-29T20:57:21.000Z
contentcuration/contentcuration/tests/viewsets/test_file.py
wahello/studio
732dc12b3d2732b1db5709e291a2c29d4cf98944
[ "MIT" ]
86
2018-03-19T21:26:35.000Z
2022-03-28T10:09:17.000Z
from __future__ import absolute_import import uuid from django.urls import reverse from le_utils.constants import content_kinds from le_utils.constants import file_formats from le_utils.constants import format_presets from contentcuration import models from contentcuration.tests import testdata from contentcuration....
36.71223
86
0.626364
9e26d76a118f2b808e8ffec8accd6d2f764b58fe
8,154
py
Python
jobs/models.py
Osamao2oo/pythondotorg
3358c3d2e067a64d4901218654aa950c74473f43
[ "Apache-2.0" ]
1
2020-09-20T01:05:39.000Z
2020-09-20T01:05:39.000Z
jobs/models.py
Osamao2o3tt/pythondotorg
3358c3d2e067a64d4901218654aa950c74473f43
[ "Apache-2.0" ]
5
2021-03-31T20:01:36.000Z
2021-12-13T20:47:57.000Z
jobs/models.py
Osamao2o3tt/pythondotorg
3358c3d2e067a64d4901218654aa950c74473f43
[ "Apache-2.0" ]
null
null
null
import datetime from django.conf import settings from django.urls import reverse from django.db import models from django.db.models.signals import post_save from django.dispatch import receiver from django.template.defaultfilters import slugify from django.utils import timezone from markupfield.fields import MarkupFi...
29.436823
90
0.651091
b0ad631c6f591efea0979d9d2edda2b63e108938
1,976
py
Python
tests/utils/test_images.py
svaisakh/magnet
bff6748803ac8efd081f0ddbdca8b1743c674a14
[ "MIT" ]
343
2018-09-03T09:59:36.000Z
2022-02-08T11:32:34.000Z
tests/utils/test_images.py
svaisakh/magnet
bff6748803ac8efd081f0ddbdca8b1743c674a14
[ "MIT" ]
7
2018-09-04T07:03:11.000Z
2019-03-21T07:17:14.000Z
tests/utils/test_images.py
MagNet-DL/magnet
bff6748803ac8efd081f0ddbdca8b1743c674a14
[ "MIT" ]
23
2018-09-03T19:12:04.000Z
2021-02-20T09:23:30.000Z
import pytest import numpy as np import matplotlib matplotlib.use('agg') import torch from magnet.utils.images import show_images class TestShowImages: def test_pass_numpy_array(self): show_images(np.random.randn(64, 28, 28)) show_images(np.random.randn(64, 28, 28, 1)) show_images(np.rando...
33.491525
80
0.647267
07848cb88fb3aa1b0d233539fa68d5701605acaf
29,386
py
Python
cma/restricted_gaussian_sampler.py
yimingpeng/cmaes_baselines
8ba0a37ab305ef98b7806866b39f560a78dfd85b
[ "MIT" ]
1
2019-05-22T08:44:41.000Z
2019-05-22T08:44:41.000Z
cma/restricted_gaussian_sampler.py
yimingpeng/cmaes_baselines
8ba0a37ab305ef98b7806866b39f560a78dfd85b
[ "MIT" ]
null
null
null
cma/restricted_gaussian_sampler.py
yimingpeng/cmaes_baselines
8ba0a37ab305ef98b7806866b39f560a78dfd85b
[ "MIT" ]
null
null
null
"""VD-CMA and VkD-CMA See module `cma.test` for a usage example. TODO: correct the interface of __init__, remove unnecessaries TODO: 2017/05/10: pass the option to sampler 2017/05/10: how to give sigma to update? MEMO: 2017/05/08: line 2958 of evolution_strategy.py: cc is assigned from sp.cc 2017/05/08: line 3021 ...
38.973475
166
0.533519
8fafd41fac19e5f2b03e62665ac3471cf3e44990
1,854
py
Python
code/lexiconBuilder/src/utils/filters.py
siddharth665/Thesis_MSCS_NCIT
374aa42eb7d4c4b29c8d997b935026d84c669b2d
[ "Unlicense" ]
null
null
null
code/lexiconBuilder/src/utils/filters.py
siddharth665/Thesis_MSCS_NCIT
374aa42eb7d4c4b29c8d997b935026d84c669b2d
[ "Unlicense" ]
null
null
null
code/lexiconBuilder/src/utils/filters.py
siddharth665/Thesis_MSCS_NCIT
374aa42eb7d4c4b29c8d997b935026d84c669b2d
[ "Unlicense" ]
1
2020-10-01T21:34:18.000Z
2020-10-01T21:34:18.000Z
from src.utils.regex_util import get_devanagari_regexp, get_latin_regexp, get_emoji_regexp, orRegex, \ get_white_space_regexp, get_special_char_regexp import regex as re def hasDevanagari(text): return hasRegex(text, get_devanagari_regexp()) def hasLatin(text): return hasRegex(text, get_latin_regexp())...
25.054054
115
0.673139
1be7bf04739efa1c3bef543dc26af80743ea902b
4,477
py
Python
envisage/plugins/python_shell/view/namespace_view.py
robmcmullen/envisage
57338fcb0ea69c75bc3c86de18a5967d8e78c6c1
[ "BSD-3-Clause" ]
null
null
null
envisage/plugins/python_shell/view/namespace_view.py
robmcmullen/envisage
57338fcb0ea69c75bc3c86de18a5967d8e78c6c1
[ "BSD-3-Clause" ]
null
null
null
envisage/plugins/python_shell/view/namespace_view.py
robmcmullen/envisage
57338fcb0ea69c75bc3c86de18a5967d8e78c6c1
[ "BSD-3-Clause" ]
null
null
null
""" A view containing the contents of a Python shell namespace. """ import types # Enthought library imports. from envisage.plugins.python_shell.api import IPythonShell from envisage.plugins.python_shell.view.python_shell_view import PythonShellView from pyface.workbench.api import View from traits.api import HasT...
29.453947
85
0.576725
31b70260c828b52c57690b3f0955400352c201c1
3,040
py
Python
conanfile.py
vuo/conan-rtmidi
0aa52f0353aee71650d8530e379401d8a5da8b45
[ "MIT" ]
null
null
null
conanfile.py
vuo/conan-rtmidi
0aa52f0353aee71650d8530e379401d8a5da8b45
[ "MIT" ]
null
null
null
conanfile.py
vuo/conan-rtmidi
0aa52f0353aee71650d8530e379401d8a5da8b45
[ "MIT" ]
null
null
null
from conans import ConanFile, CMake, tools import platform class RtMidiConan(ConanFile): name = 'rtmidi' source_version = '4.0.0' package_version = '1' version = '%s-%s' % (source_version, package_version) build_requires = ( 'llvm/5.0.2-1@vuo/stable', 'macos-sdk/11.0-0@vuo/stable'...
38
127
0.61875
06bfad8d82209d503201d9dfccf0b90d0fd29d26
104
py
Python
beacon_aug/external/DiffJPEG/modules/__init__.py
adobe-research/beacon-aug
9b891e99edd74a0ee88809e0b16a157e5fa90cf0
[ "MIT" ]
11
2021-09-22T20:08:59.000Z
2022-02-16T22:34:09.000Z
beacon_aug/external/DiffJPEG/modules/__init__.py
adobe-research/beacon-aug
9b891e99edd74a0ee88809e0b16a157e5fa90cf0
[ "MIT" ]
null
null
null
beacon_aug/external/DiffJPEG/modules/__init__.py
adobe-research/beacon-aug
9b891e99edd74a0ee88809e0b16a157e5fa90cf0
[ "MIT" ]
null
null
null
from .. import utils from .compression import compress_jpeg from .decompression import decompress_jpeg
20.8
42
0.836538
98aebf2fc8adfeaea59be9b2dcd61d02ed246369
12,296
py
Python
src/pydes/core/metrics/simulation_metrics.py
gmarciani/demule
72168ba3aca84f58a882bebc821bbf85ee08dcde
[ "MIT" ]
1
2021-03-06T11:05:22.000Z
2021-03-06T11:05:22.000Z
src/pydes/core/metrics/simulation_metrics.py
gmarciani/pydes
72168ba3aca84f58a882bebc821bbf85ee08dcde
[ "MIT" ]
null
null
null
src/pydes/core/metrics/simulation_metrics.py
gmarciani/pydes
72168ba3aca84f58a882bebc821bbf85ee08dcde
[ "MIT" ]
null
null
null
from types import SimpleNamespace from pydes.core.metrics.batch_means import BatchedMeasure from pydes.core.metrics.sampling import Sample from pydes.core.simulation.model.scope import SystemScope, TaskScope from pydes.core.utils.csv_utils import save_csv NAN = float("nan") class SimulationMetrics: """ The ...
46.4
115
0.621828
dd5c5f462eed69681f1110bde7f6fad3c16e94ba
1,484
py
Python
core/Engine.py
SpudGunMan/spraykatz
1fb3aa7eb2ee621524587d6b2ad9d9df5f3da9c9
[ "MIT" ]
726
2019-11-20T11:07:42.000Z
2022-03-24T13:19:41.000Z
core/Engine.py
SpudGunMan/spraykatz
1fb3aa7eb2ee621524587d6b2ad9d9df5f3da9c9
[ "MIT" ]
10
2019-11-22T15:22:10.000Z
2021-12-06T02:52:02.000Z
core/Engine.py
SpudGunMan/spraykatz
1fb3aa7eb2ee621524587d6b2ad9d9df5f3da9c9
[ "MIT" ]
125
2019-11-21T03:37:33.000Z
2022-03-27T14:16:12.000Z
# coding: utf-8 # Author: @aas_s3curity # Imports import os, sys, logging, traceback from core.User import User from core.Resources import joinThreads, exit_gracefully from core.Targets import listPwnableTargets from core.SprayLove import sprayLove from core.Colors import warningGre, warningRed, red, blue, white from ...
36.195122
167
0.677224
c67b72e676e9d59d9515a8206b6cd8f9805d949e
375
py
Python
exptune/tqdm.py
shyam196/exptune
be9bb23355ecd1a464dbc93dc35050b7f9d40227
[ "MIT" ]
null
null
null
exptune/tqdm.py
shyam196/exptune
be9bb23355ecd1a464dbc93dc35050b7f9d40227
[ "MIT" ]
null
null
null
exptune/tqdm.py
shyam196/exptune
be9bb23355ecd1a464dbc93dc35050b7f9d40227
[ "MIT" ]
null
null
null
# type: ignore import sys try: ipy_str = str(type(get_ipython())) # noqa if "zmqshell" in ipy_str: from tqdm import tqdm_notebook as tqdm if "terminal" in ipy_str: from tqdm import tqdm # noqa except: # noqa if sys.stderr.isatty(): from tqdm import tqdm else: def...
22.058824
46
0.608
7b1e8e251e696fbff04859486aca5c58cfa43731
2,425
py
Python
tensor2tensor/trax/models/atari_cnn.py
tianhai123/-
b4e5758c69adccea3d393cf419e166369ea8c608
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/models/atari_cnn.py
tianhai123/-
b4e5758c69adccea3d393cf419e166369ea8c608
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/models/atari_cnn.py
tianhai123/-
b4e5758c69adccea3d393cf419e166369ea8c608
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Tensor2Tensor 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...
31.089744
79
0.663918
58fd4ac11a02d5314fb429654031c0d9ae9f284f
193
py
Python
demo/plot_boxplot_dict_demo.py
twolffpiggott/mltb
cb33302c918f6e783b2450ee194c12bd101c84f9
[ "BSD-2-Clause" ]
24
2019-07-02T23:53:41.000Z
2022-01-04T15:07:52.000Z
demo/plot_boxplot_dict_demo.py
twolffpiggott/mltb
cb33302c918f6e783b2450ee194c12bd101c84f9
[ "BSD-2-Clause" ]
56
2019-01-04T16:30:13.000Z
2021-07-24T04:50:03.000Z
demo/plot_boxplot_dict_demo.py
twolffpiggott/mltb
cb33302c918f6e783b2450ee194c12bd101c84f9
[ "BSD-2-Clause" ]
9
2019-07-03T03:21:20.000Z
2021-08-21T11:38:24.000Z
import mltb data = {"D1": [1, 2, 3, 2, 2, 3, 4, 2, 1, 2], "D2": [9, 7, 6, 7, 8, 9, 9, 8, 6, 6, 9]} mltb.plot.boxplot_dict(data, title="My Title", xlabel="x label name", ylabel="y label name")
38.6
92
0.554404
b8ad39a9806c89f81c83112aae2eb0f3a2c82ab8
3,841
py
Python
modules/tools/mobileye_viewer/mobileye_viewer.py
zhuyawen/apollo
91c1811970edf0a43f2b4c3b6070c171e11e646d
[ "Apache-2.0" ]
2
2018-05-31T04:49:40.000Z
2021-03-15T01:21:02.000Z
modules/tools/mobileye_viewer/mobileye_viewer.py
zhuyawen/apollo
91c1811970edf0a43f2b4c3b6070c171e11e646d
[ "Apache-2.0" ]
9
2019-12-07T07:26:32.000Z
2022-02-10T18:26:18.000Z
modules/tools/mobileye_viewer/mobileye_viewer.py
zhuyawen/apollo
91c1811970edf0a43f2b4c3b6070c171e11e646d
[ "Apache-2.0" ]
8
2018-02-16T10:42:46.000Z
2019-08-15T09:18:17.000Z
#!/usr/bin/env python ############################################################################### # Copyright 2017 The Apollo 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 ...
31.743802
79
0.698256
e38c4a300b48232cee7a4c5e490e79a4b6b76622
2,966
py
Python
fias/importer/source/archive.py
aldev12/django-fias
53980ada222f1f4f56c268c0489ab9a50a87d9f6
[ "BSD-3-Clause" ]
null
null
null
fias/importer/source/archive.py
aldev12/django-fias
53980ada222f1f4f56c268c0489ab9a50a87d9f6
[ "BSD-3-Clause" ]
null
null
null
fias/importer/source/archive.py
aldev12/django-fias
53980ada222f1f4f56c268c0489ab9a50a87d9f6
[ "BSD-3-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, absolute_import import zipfile from django.conf import settings import rarfile import tempfile from progress.bar import Bar from fias.compat import urlretrieve, HTTPError from fias.importer.signals import ( pre_download, post_download, pre_unpack, pos...
30.57732
107
0.687795
efcc3541438bb570b0488a00171a15c649bcab28
6,503
py
Python
cloudhands/web/indexer.py
cedadev/cloudhands-web
2e83df3111c286a54ef3957e873c9ea29c523366
[ "BSD-3-Clause" ]
null
null
null
cloudhands/web/indexer.py
cedadev/cloudhands-web
2e83df3111c286a54ef3957e873c9ea29c523366
[ "BSD-3-Clause" ]
null
null
null
cloudhands/web/indexer.py
cedadev/cloudhands-web
2e83df3111c286a54ef3957e873c9ea29c523366
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # encoding: UTF-8 import argparse from collections import namedtuple import functools import logging from logging.handlers import WatchedFileHandler import os import sched import ssl import sys import ldap3 import whoosh.fields import whoosh.index import whoosh.qparser import whoosh.query impor...
29.292793
78
0.612025
f6f1ecf138d6b90f7342e6cb4d823fd8f798427f
23,256
py
Python
Code/Pieces.py
Binary101010011/quantum-chess
01dc2be0db2b11c12a5e0851bb431f0ff55afc32
[ "MIT" ]
null
null
null
Code/Pieces.py
Binary101010011/quantum-chess
01dc2be0db2b11c12a5e0851bb431f0ff55afc32
[ "MIT" ]
null
null
null
Code/Pieces.py
Binary101010011/quantum-chess
01dc2be0db2b11c12a5e0851bb431f0ff55afc32
[ "MIT" ]
null
null
null
import pygame import os from pygame.locals import * import math transparent = (0, 0, 0, 0) # list of centers centers = [] centrans = [] # transpose of centers # required due to indexation issues with centers x_center = 30 y_center = 30 while x_center != 510: while y_center != 510: centers.append((x_ce...
32.893918
141
0.594255
19db44f11d010093100469565f6166f82b9e8180
12,589
py
Python
dnacentercli/cli/v2_1_1/application_policy.py
AltusConsulting/dnacentercli
26ea46fdbd40fc30649ea1d8803158655aa545aa
[ "MIT" ]
null
null
null
dnacentercli/cli/v2_1_1/application_policy.py
AltusConsulting/dnacentercli
26ea46fdbd40fc30649ea1d8803158655aa545aa
[ "MIT" ]
null
null
null
dnacentercli/cli/v2_1_1/application_policy.py
AltusConsulting/dnacentercli
26ea46fdbd40fc30649ea1d8803158655aa545aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import click import json from ..utils.spinner import ( init_spinner, start_spinner, stop_spinner, ) from ..utils.print import ( tbprint, eprint, oprint, opprint, ) @click.group() @click.pass_obj @click.pass_context def application_policy(ctx, obj): """DNA Center...
34.396175
118
0.585273
d4bf3012d254d57ae5058e0682de115723de82bd
7,911
py
Python
backend/test_6405_dev_23351/settings.py
crowdbotics-dev/test-6405-dev-23351
aa2059885e08480d27ea953223608d1632e1084b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/test_6405_dev_23351/settings.py
crowdbotics-dev/test-6405-dev-23351
aa2059885e08480d27ea953223608d1632e1084b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/test_6405_dev_23351/settings.py
crowdbotics-dev/test-6405-dev-23351
aa2059885e08480d27ea953223608d1632e1084b
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for test_6405_dev_23351 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ ...
30.426923
112
0.737201
ac5ac8187e268d9583ef79a8b0e33ef558504dc3
1,284
py
Python
project/sa_driver.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
project/sa_driver.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
project/sa_driver.py
jayson-garrison/EC-Sum-of-Subsets
4de3e5d056f0e91cc2b2049de4199df05176035e
[ "MIT" ]
null
null
null
from csv import reader from random import sample from SimulatedAnnealing import SimulatedAnnealing as sa sample_population = list() key = list() fname = 'dataset1.csv' fkname = 'dataset1_key.csv' dirname = 'dataset1' # open file in read mode with open('project/DataSets/' + fname, 'r') as read_obj: # pass the fil...
30.571429
67
0.699377
0c6f48fd6bf987f7d8a86c0e821201bfdb19d933
258
py
Python
tests/docs/docs_test.py
TonyLianLong/ocfweb
8e6db52e726017e44f36ba2176652a5c21cc8840
[ "Apache-2.0", "CC-BY-4.0" ]
36
2015-08-25T07:57:38.000Z
2022-03-22T21:17:53.000Z
tests/docs/docs_test.py
TonyLianLong/ocfweb
8e6db52e726017e44f36ba2176652a5c21cc8840
[ "Apache-2.0", "CC-BY-4.0" ]
478
2015-08-31T05:05:49.000Z
2022-03-12T00:56:52.000Z
tests/docs/docs_test.py
TonyLianLong/ocfweb
8e6db52e726017e44f36ba2176652a5c21cc8840
[ "Apache-2.0", "CC-BY-4.0" ]
101
2015-09-16T04:14:42.000Z
2022-01-15T20:44:29.000Z
import pytest from ocfweb.docs.urls import DOCS from tests.end_to_end_test import assert_does_not_error @pytest.mark.parametrize('doc_name', DOCS.keys()) def test_doc_does_not_error(client, doc_name): assert_does_not_error(client, '/docs' + doc_name)
25.8
55
0.802326
2ef76736dedb347f9bb8ed053ebcad1e84e246d4
130
py
Python
Stepik1.py
devilnotcry77/devil_not_cry
a9d342d053c788ec6db2d1c5967ed55104b40045
[ "Apache-2.0" ]
null
null
null
Stepik1.py
devilnotcry77/devil_not_cry
a9d342d053c788ec6db2d1c5967ed55104b40045
[ "Apache-2.0" ]
null
null
null
Stepik1.py
devilnotcry77/devil_not_cry
a9d342d053c788ec6db2d1c5967ed55104b40045
[ "Apache-2.0" ]
null
null
null
a = int(input()) b = int(input()) print(a+b) print(a-b) print(a*b) print(a/b) print(a//b) print(a%b) print((a**10 + b **10)**0.5)
13
28
0.561538
2666fbb55c34570b14f002f8de6964ed139e4c30
1,913
py
Python
demo/vgg16_bidirectional_lstm_predict.py
jibinmathew69/VideoClassifier-CNNLSTM
684cce5c2a7c1005d930d8fca6ced5f7ae776b0b
[ "MIT" ]
5
2019-12-17T19:13:52.000Z
2021-09-19T08:30:26.000Z
demo/vgg16_bidirectional_lstm_predict.py
jibinmathew691993/videoclssifierCNNLSTM
684cce5c2a7c1005d930d8fca6ced5f7ae776b0b
[ "MIT" ]
null
null
null
demo/vgg16_bidirectional_lstm_predict.py
jibinmathew691993/videoclssifierCNNLSTM
684cce5c2a7c1005d930d8fca6ced5f7ae776b0b
[ "MIT" ]
null
null
null
import numpy as np import sys import os def main(): sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from keras_video_classifier.library.recurrent_networks import VGG16BidirectionalLSTMVideoClassifier from keras_video_classifier.library.utility.ucf.UCF101_loader import load_ucf, scan_ucf_wi...
38.26
118
0.686879
a032f4306e49ddfd24754bbd57587cdef072b28b
2,677
py
Python
lib/_included_packages/plexnet/audioobject.py
rdcalle/plex-for-kodi
170b0c3614a86bf723019da07be5bdea041de370
[ "BSD-3-Clause" ]
51
2018-09-19T09:59:09.000Z
2022-03-19T12:40:58.000Z
lib/_included_packages/plexnet/audioobject.py
rdcalle/plex-for-kodi
170b0c3614a86bf723019da07be5bdea041de370
[ "BSD-3-Clause" ]
31
2019-07-19T09:16:56.000Z
2022-02-25T06:43:32.000Z
lib/_included_packages/plexnet/audioobject.py
rdcalle/plex-for-kodi
170b0c3614a86bf723019da07be5bdea041de370
[ "BSD-3-Clause" ]
21
2018-11-17T15:03:41.000Z
2021-12-01T05:57:07.000Z
import http import mediadecisionengine import util class AudioObjectClass(object): def __init__(self, item): self.containerFormats = { 'aac': "es.aac-adts" } self.item = item self.choice = mediadecisionengine.MediaDecisionEngine().chooseMedia(item) if self.choi...
32.253012
109
0.624953
a7a775febe6f285f8738d99ea5a9b84249b7e24c
13,763
py
Python
model/backbones/pyconvresnet.py
iduta/pyconvsegnet
8f2d0eda446629176d249ba3a348c2df2173aab5
[ "MIT" ]
32
2020-07-06T07:29:46.000Z
2022-03-06T02:49:39.000Z
model/backbones/pyconvresnet.py
iduta/pyconvsegnet
8f2d0eda446629176d249ba3a348c2df2173aab5
[ "MIT" ]
4
2020-07-23T10:44:05.000Z
2021-11-30T10:33:40.000Z
model/backbones/pyconvresnet.py
iduta/pyconvsegnet
8f2d0eda446629176d249ba3a348c2df2173aab5
[ "MIT" ]
5
2020-07-23T01:11:03.000Z
2021-02-10T10:35:51.000Z
""" PyConv networks for image recognition as presented in our paper: Duta et al. "Pyramidal Convolution: Rethinking Convolutional Neural Networks for Visual Recognition" https://arxiv.org/pdf/2006.11538.pdf """ import torch import torch.nn as nn import os from util.download_from_url import download_from_url tr...
43.416404
121
0.628787
fb0213101c97a9c6243d5183515ceb4af0cdf146
1,917
py
Python
src/train_hparam_search.py
bkoch4142/real-estate-price-prediction
0e47f73396255b8c46a3e36434512096490644c8
[ "MIT" ]
null
null
null
src/train_hparam_search.py
bkoch4142/real-estate-price-prediction
0e47f73396255b8c46a3e36434512096490644c8
[ "MIT" ]
null
null
null
src/train_hparam_search.py
bkoch4142/real-estate-price-prediction
0e47f73396255b8c46a3e36434512096490644c8
[ "MIT" ]
2
2021-07-21T04:57:19.000Z
2021-08-19T13:26:18.000Z
import argparse import os import joblib import pandas as pd from sklearn.model_selection import GridSearchCV import preprocessor_dispatcher import config import model_dispatcher import hparam_grid_dispatcher def train(model, scoring): df = pd.read_pickle(config.TRAINING_DATA_FOLDS) dst_dir = os.path.join(c...
27.385714
86
0.676578
2a0e5f556e9c863471de47d1eb695e3625109e40
18,465
py
Python
conda_helpers/_version.py
wheeler-microfluidics/conda-helpers
1ec971c6bef97499cc32790c4c13eb84717921f6
[ "BSD-3-Clause" ]
null
null
null
conda_helpers/_version.py
wheeler-microfluidics/conda-helpers
1ec971c6bef97499cc32790c4c13eb84717921f6
[ "BSD-3-Clause" ]
4
2017-05-28T21:40:34.000Z
2017-11-30T14:16:31.000Z
conda_helpers/_version.py
wheeler-microfluidics/conda-helpers
1ec971c6bef97499cc32790c4c13eb84717921f6
[ "BSD-3-Clause" ]
1
2021-06-03T19:26:55.000Z
2021-06-03T19:26:55.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.441459
79
0.584782
998c93230078b1876b0d6b296c41a4ad1e89aed5
3,285
py
Python
modules/approval_process/write_offs/code/write_offs_edit_views.py
xuhuiliang-maybe/ace_office
07fae18676a193206802e8fb9aa32a805b1da24c
[ "Apache-2.0" ]
1
2018-11-27T08:08:07.000Z
2018-11-27T08:08:07.000Z
modules/approval_process/write_offs/code/write_offs_edit_views.py
xuhuiliang-maybe/ace_office
07fae18676a193206802e8fb9aa32a805b1da24c
[ "Apache-2.0" ]
null
null
null
modules/approval_process/write_offs/code/write_offs_edit_views.py
xuhuiliang-maybe/ace_office
07fae18676a193206802e8fb9aa32a805b1da24c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import permission_required from django.contrib.messages.views import SuccessMessageMixin from django.core.urlresolvers import reverse from django.views.generic.edit import UpdateView from modules.approval_proce...
35.706522
105
0.775038
b1b070652a520b316c39065f11322f26fd91116e
572
py
Python
guet/commands/usercommands/help/guet_usage.py
sturzl/guet
b8c453f07968b689b303e20e7a31b405c02c54ef
[ "Apache-2.0" ]
null
null
null
guet/commands/usercommands/help/guet_usage.py
sturzl/guet
b8c453f07968b689b303e20e7a31b405c02c54ef
[ "Apache-2.0" ]
null
null
null
guet/commands/usercommands/help/guet_usage.py
sturzl/guet
b8c453f07968b689b303e20e7a31b405c02c54ef
[ "Apache-2.0" ]
null
null
null
from guet.commands.command_factory import CommandFactoryMethod def guet_usage(command_builder_map: dict) -> str: help_message = 'usage: guet <command>\n' for key in command_builder_map: short_help_message = '' if not isinstance(command_builder_map[key], CommandFactoryMethod): short...
40.857143
82
0.708042
c0f31536eccc844804d156828d1e857690faff86
1,621
py
Python
tests/_serialization/test_object_serialization.py
crleblanc/citrine-python
4e89e9efc498352b2eb6b9abd60c14835c3dd686
[ "Apache-2.0" ]
null
null
null
tests/_serialization/test_object_serialization.py
crleblanc/citrine-python
4e89e9efc498352b2eb6b9abd60c14835c3dd686
[ "Apache-2.0" ]
null
null
null
tests/_serialization/test_object_serialization.py
crleblanc/citrine-python
4e89e9efc498352b2eb6b9abd60c14835c3dd686
[ "Apache-2.0" ]
null
null
null
import pytest from typing import Any from citrine._serialization.serializable import Serializable from citrine._serialization.properties import String, Object, Optional from taurus.entity.value.base_value import BaseValue from taurus.entity.value.nominal_real import NominalReal class UnserializableClass: """A du...
36.022222
94
0.73905
b0c1ec07d92c3a495d1040924eec730e29e7931f
17,897
py
Python
src/deps/pretorched/data/datasets/video.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
5
2022-02-22T21:58:10.000Z
2022-03-22T16:19:14.000Z
src/deps/pretorched/data/datasets/video.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
3
2022-02-27T06:43:34.000Z
2022-03-18T08:30:30.000Z
src/deps/pretorched/data/datasets/video.py
ericotjo001/neuron-descriptions
744fbf65c6538edd2fa423108eca7e2cd72f8b59
[ "MIT" ]
1
2022-02-27T05:18:30.000Z
2022-02-27T05:18:30.000Z
import numbers import io import os from pathlib import Path import zipfile from typing import Any, Callable, Dict, Iterator, List, Optional, Tuple, Union import numpy as np import PIL.Image import torch.utils.data from PIL.Image import Image from torchvideo.datasets import RecordSet, VideoDataset from torchvideo.inte...
36.155556
88
0.630553
b67f7cbab433ee21e8526fbe2d2b95f59c86f4c9
7,101
py
Python
anki_vector/escapepod.py
fredericowu/vector-python-sdk
09f3bbf58b41875838b89a5cfce2730ab5461ede
[ "Apache-2.0" ]
11
2021-04-09T15:59:56.000Z
2022-03-26T20:39:53.000Z
anki_vector/escapepod.py
fredericowu/vector-python-sdk
09f3bbf58b41875838b89a5cfce2730ab5461ede
[ "Apache-2.0" ]
3
2021-05-29T09:01:04.000Z
2021-08-09T09:14:46.000Z
anki_vector/escapepod.py
fredericowu/vector-python-sdk
09f3bbf58b41875838b89a5cfce2730ab5461ede
[ "Apache-2.0" ]
4
2021-04-28T19:39:42.000Z
2021-10-19T13:19:58.000Z
# Copyright (c) 2021 cyb3rdog # # 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 in the file LICENSE.txt or at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
41.526316
119
0.652725
0cfb196a126c89ef34aa80954043d63c53ed0340
4,209
py
Python
vdffit/io/solo/pas.py
dstansby/vdffit
1fe6adc5c5ef2ace266f91fa6e29af91544ca768
[ "BSD-2-Clause" ]
null
null
null
vdffit/io/solo/pas.py
dstansby/vdffit
1fe6adc5c5ef2ace266f91fa6e29af91544ca768
[ "BSD-2-Clause" ]
null
null
null
vdffit/io/solo/pas.py
dstansby/vdffit
1fe6adc5c5ef2ace266f91fa6e29af91544ca768
[ "BSD-2-Clause" ]
null
null
null
import pathlib from functools import cached_property import astropy.units as u from vdffit.io.cdf import VDFCDF from vdffit.io.solo.mag import MAGL2 from vdffit.vdf import PASDistribution base_dir = pathlib.Path('/Volumes/Work/Data/solo/swa/pas') u.add_enabled_units([u.def_unit('unitless', u.dimensionless_unscaled)]...
23
71
0.519126
bb8ebbe08e3e5569a60657d7ae98eea6499d12a4
5,219
py
Python
contrib/pyHydrabus/pyHydrabus/hydrabus.py
ghecko/hydrafw
f7538312a5d2a83385cc6701ba82b0a3d1b112c1
[ "Apache-2.0" ]
1
2021-12-15T10:12:49.000Z
2021-12-15T10:12:49.000Z
contrib/pyHydrabus/pyHydrabus/hydrabus.py
ghecko/hydrafw
f7538312a5d2a83385cc6701ba82b0a3d1b112c1
[ "Apache-2.0" ]
null
null
null
contrib/pyHydrabus/pyHydrabus/hydrabus.py
ghecko/hydrafw
f7538312a5d2a83385cc6701ba82b0a3d1b112c1
[ "Apache-2.0" ]
1
2020-07-27T21:19:58.000Z
2020-07-27T21:19:58.000Z
# Copyright 2019 Nicolas OBERLI # # 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 writin...
27.468421
78
0.556045
be4a8ce60e58985ee2fafd466a689c9cf66839d2
619
py
Python
leetcode/209-minimum-size-subarray-sum.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
leetcode/209-minimum-size-subarray-sum.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
leetcode/209-minimum-size-subarray-sum.py
ardakkk/Algorithms-and-Data-Structures
c428bb0bd7eeb6c34448630f88f13e1329b54636
[ "MIT" ]
null
null
null
# Time: O(l + r) # Space: O(1) class Solution: def minSubArrayLen(self, s: int, nums: List[int]) -> int: res = float('inf') sum = 0 left = 0 right = 0 while right < len(nums): sum += nums[right] while sum >= s: # updating the result ...
25.791667
61
0.423263
31408ecbdaa589a5d0cb29f3c112b083b5550da6
462
py
Python
PycharmProjects/novoPrograma/venv/Scripts/easy_install-3.8-script.py
AldenSB/Exercicios_em_python
5f2174e9157bdba1ef0bbb5c6fcadc81a803e9da
[ "MIT" ]
null
null
null
PycharmProjects/novoPrograma/venv/Scripts/easy_install-3.8-script.py
AldenSB/Exercicios_em_python
5f2174e9157bdba1ef0bbb5c6fcadc81a803e9da
[ "MIT" ]
null
null
null
PycharmProjects/novoPrograma/venv/Scripts/easy_install-3.8-script.py
AldenSB/Exercicios_em_python
5f2174e9157bdba1ef0bbb5c6fcadc81a803e9da
[ "MIT" ]
null
null
null
#!C:\Users\Sony\PycharmProjects\novoPrograma\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\...
35.538462
87
0.69697
c0e56a9def236a11a315778f7987f224bb4b2595
19,693
py
Python
restraintmaker/test/test_restraintMaker_PyMol.py
SalomeRonja/restraintmaker
ecb4c524cb11ffffa2ee3a3665056412bef84999
[ "MIT" ]
1
2020-12-19T11:02:46.000Z
2020-12-19T11:02:46.000Z
restraintmaker/test/test_restraintMaker_PyMol.py
SalomeRonja/restraintmaker
ecb4c524cb11ffffa2ee3a3665056412bef84999
[ "MIT" ]
3
2021-10-01T18:35:59.000Z
2022-01-28T14:59:34.000Z
restraintmaker/test/test_restraintMaker_PyMol.py
SalomeRonja/restraintmaker
ecb4c524cb11ffffa2ee3a3665056412bef84999
[ "MIT" ]
3
2020-12-27T12:27:15.000Z
2021-11-01T13:45:14.000Z
import time, typing as t from pymol import cmd from restraintmaker.interface_Pymol import pymol_utilities as pu from restraintmaker.utils.Utilities import print from restraintmaker.algorithm import Optimizer # -----------------------------------------------------------------------------------------------------...
42.997817
204
0.609607
74de9ac8d9a2f3c3615c9009e4165a8a82a46fd6
14,676
py
Python
pysnmp/IPFIX-COLLECTOR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/IPFIX-COLLECTOR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/IPFIX-COLLECTOR-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module IPFIX-COLLECTOR-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/IPFIX-COLLECTOR-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:44:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
124.372881
2,236
0.763423
49366bb0fb7448c62b70b74f8d8ca89d25d99e81
482
py
Python
miamm/recipes/migrations/0003_auto_20150128_2053.py
kimond/miamm
b351ea22c1d48e1ff7012099dda1474e4658a617
[ "BSD-3-Clause" ]
2
2015-01-27T15:03:58.000Z
2015-01-27T16:29:56.000Z
miamm/recipes/migrations/0003_auto_20150128_2053.py
kimond/miamm
b351ea22c1d48e1ff7012099dda1474e4658a617
[ "BSD-3-Clause" ]
null
null
null
miamm/recipes/migrations/0003_auto_20150128_2053.py
kimond/miamm
b351ea22c1d48e1ff7012099dda1474e4658a617
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('recipes', '0002_auto_20150125_1125'), ] operations = [ migrations.AlterField( model_name='recipeingredient', ...
22.952381
85
0.622407
ff19006007157fa8bc220fd7a0b697c96427211e
18,379
py
Python
rubin_sim/maf/batches/metadataBatch.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/maf/batches/metadataBatch.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
rubin_sim/maf/batches/metadataBatch.py
RileyWClarke/flarubin
eb7b1ee21c828523f8a5374fe4510fe6e5ec2a2a
[ "MIT" ]
null
null
null
"""Some basic physical quantity metrics. """ import rubin_sim.maf.metrics as metrics import rubin_sim.maf.slicers as slicers import rubin_sim.maf.stackers as stackers import rubin_sim.maf.plots as plots import rubin_sim.maf.metricBundles as mb from .colMapDict import ColMapDict from .common import standardSummary, exte...
45.605459
109
0.631264
a8253eb432996f039c76604e80169d7dac4bda6e
1,198
py
Python
bot.py
oopsie1412/jobot
dba36804134bdbc3881c4abeadd062cc8d12bbbb
[ "Apache-2.0" ]
1
2021-11-22T18:37:42.000Z
2021-11-22T18:37:42.000Z
bot.py
oopsie1412/jobot
dba36804134bdbc3881c4abeadd062cc8d12bbbb
[ "Apache-2.0" ]
null
null
null
bot.py
oopsie1412/jobot
dba36804134bdbc3881c4abeadd062cc8d12bbbb
[ "Apache-2.0" ]
null
null
null
import discord import config from discord.ext import commands from discord.ext.commands import Bot import platform import sqlite3 from sqlite3 import connect import os intents = discord.Intents.default() intents.members = True client = Bot(description='none', command_prefix='.') client.load_extension("cogs.tags") @c...
27.860465
112
0.648581
bf1060b5d9d03cbf2c1a09e8090ef378d7e1de16
3,773
py
Python
azext_iot/sdk/digitaltwins/controlplane/operations/operations.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
null
null
null
azext_iot/sdk/digitaltwins/controlplane/operations/operations.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
1
2020-09-02T23:25:39.000Z
2020-09-09T14:18:33.000Z
azext_iot/sdk/digitaltwins/controlplane/operations/operations.py
YingXue/azure-iot-cli-extension
efe7897b1ae1d2a9953f501abe7654b84d69372d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
38.896907
144
0.638484
68d524953b30add8921707bdb028c111322062b6
3,998
py
Python
data/p3BR/R1/benchmark/startCirq315.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startCirq315.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p3BR/R1/benchmark/startCirq315.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=3 # total number=58 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...
39.98
77
0.685093
7379b351e32b082b56d9c7110dbf8711653d2170
2,636
py
Python
dev/Tools/Python/3.7.10/linux_x64/lib/python3.7/site-packages/pip/_vendor/urllib3/filepost.py
brianherrera/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Tools/Python/3.7.10/linux_x64/lib/python3.7/site-packages/pip/_vendor/urllib3/filepost.py
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Tools/Python/3.7.10/linux_x64/lib/python3.7/site-packages/pip/_vendor/urllib3/filepost.py
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
from __future__ import absolute_import import binascii import codecs import os from io import BytesIO from .fields import RequestField from .packages import six from .packages.six import b writer = codecs.lookup("utf-8")[3] def choose_boundary(): """ Our embarrassingly-simpl...
26.626263
87
0.593323
a22fb2877bfea9c3149cc409624e883627f42fc3
425
py
Python
py-lang-utils/src/atmfjstc/lib/py_lang_utils/__init__.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
py-lang-utils/src/atmfjstc/lib/py_lang_utils/__init__.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
py-lang-utils/src/atmfjstc/lib/py_lang_utils/__init__.py
goc9000/python-library
0a4a09278df6e84061baedda8997071e2201103f
[ "MIT" ]
null
null
null
""" A collection of utilities potentially useful for any Python program, irrespective of function. The defining feature of these utilities is that they refer to and extend the Python language itself. They do not use any specific operating system features or connect to any specific real-world application. They are just...
53.125
119
0.814118
02b8834700a2658e82468e847038399c2c8b2acf
1,987
py
Python
pitopcommon/formatting.py
cbajumpa/pi-top-Python-Common-Library
28b0301de0c5468714518e669742ef6be7738ce6
[ "Apache-2.0" ]
1
2021-05-12T14:21:12.000Z
2021-05-12T14:21:12.000Z
pitopcommon/formatting.py
cbajumpa/pi-top-Python-Common-Library
28b0301de0c5468714518e669742ef6be7738ce6
[ "Apache-2.0" ]
10
2020-12-01T11:27:24.000Z
2021-07-28T23:29:20.000Z
pitopcommon/formatting.py
cbajumpa/pi-top-Python-Common-Library
28b0301de0c5468714518e669742ef6be7738ce6
[ "Apache-2.0" ]
1
2021-02-01T21:17:56.000Z
2021-02-01T21:17:56.000Z
import re # def bytes2human(n): # """ # >>> bytes2human(10000) # '9K' # >>> bytes2human(100001221) # '95M' # """ # symbols = ('K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y') # prefix = {} # for i, s in enumerate(symbols): # prefix[s] = 1 << (i + 1) * 10 # for s in reversed(symbo...
24.8375
92
0.498239
14094bd34bc602e5b245732379b6f2e193eb06eb
205
py
Python
backend/storages.py
loren-jiang/collov
69329ca92575c91205f09964a34afff068fcd1f8
[ "MIT" ]
null
null
null
backend/storages.py
loren-jiang/collov
69329ca92575c91205f09964a34afff068fcd1f8
[ "MIT" ]
5
2020-06-06T11:45:06.000Z
2022-02-19T02:44:00.000Z
backend/storages.py
loren-jiang/collov
69329ca92575c91205f09964a34afff068fcd1f8
[ "MIT" ]
null
null
null
from storages.backends.s3boto3 import S3Boto3Storage from django.conf import settings class PublicMediaStorage(S3Boto3Storage): location = settings.AWS_PUBLIC_MEDIA_LOCATION file_overwrite = False
34.166667
52
0.839024
ea5c842898b50af3c21c5dd14545a5940006eac3
1,043
py
Python
catkit/conftest.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
1
2020-09-04T22:50:21.000Z
2020-09-04T22:50:21.000Z
catkit/conftest.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
2
2020-09-08T20:50:39.000Z
2020-09-14T17:52:27.000Z
catkit/conftest.py
aidancgray/catkit
c789f20a327faf91f5b34b6818670732eab24040
[ "BSD-3-Clause" ]
null
null
null
import gc import pytest from catkit.testbed import devices from catkit.testbed.caching import DeviceCacheEnum import catkit.util from catkit.multiprocessing import EXCEPTION_SERVER_ADDRESS, SharedMemoryManager catkit.util.simulation = True def pytest_configure(config): config.addinivalue_line("markers", "dont_...
24.833333
126
0.754554
2df86401393886a64fcc02468f433ebfdda7741c
2,148
py
Python
src/closest_colors.py
JasterV/Word-Vectors-Basics
665108f1aba6155c7ff7f75ba9c1351d669af6e4
[ "MIT" ]
null
null
null
src/closest_colors.py
JasterV/Word-Vectors-Basics
665108f1aba6155c7ff7f75ba9c1351d669af6e4
[ "MIT" ]
null
null
null
src/closest_colors.py
JasterV/Word-Vectors-Basics
665108f1aba6155c7ff7f75ba9c1351d669af6e4
[ "MIT" ]
null
null
null
import requests import json from vector_utils import Vector as vec from mpl_toolkits import mplot3d import numpy as np import matplotlib.pyplot as plt import math def get_content(url): response = requests.get(url) content = response.content.decode() return content def get_json(url): content = get_con...
24.976744
99
0.653166
18ffb685c2a877f7f518f970f9a6eafbcd304771
2,099
py
Python
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
10
2015-01-18T02:39:35.000Z
2021-11-09T22:53:10.000Z
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
52
2015-03-02T17:46:23.000Z
2022-02-10T13:23:11.000Z
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
7
2015-03-02T01:23:35.000Z
2021-11-09T22:58:39.000Z
# Generated by Django 1.10.6 on 2017-03-13 04:46 # Modified by Raúl Negrón on 2019-06-22 16:48 import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models import apps.core.models class Migration(migrations.Migration): initial = True ...
31.328358
85
0.45212
a24fa5a09dd43fadab7055fa15ad01794f14a553
655
py
Python
Chapter06/B06246_06_01-renderer.py
mapenthusiast/QGIS-Python-Programming-Cookbook-Second-Edition
1b2fefdb09f614a2005976a451f882a198c6c9c5
[ "MIT" ]
43
2017-03-27T18:58:26.000Z
2022-03-25T15:29:45.000Z
Chapter06/B06246_06_01-renderer.py
mapenthusiast/QGIS-Python-Programming-Cookbook-Second-Edition
1b2fefdb09f614a2005976a451f882a198c6c9c5
[ "MIT" ]
2
2018-07-02T09:23:47.000Z
2018-08-23T13:57:41.000Z
Chapter06/B06246_06_01-renderer.py
mapenthusiast/QGIS-Python-Programming-Cookbook-Second-Edition
1b2fefdb09f614a2005976a451f882a198c6c9c5
[ "MIT" ]
31
2017-03-08T06:37:22.000Z
2021-12-17T21:51:30.000Z
# Creating the Simplest Map Renderer # https://github.com/GeospatialPython/Learn/raw/master/hancock.zip from PyQt4.QtGui import * from PyQt4.QtCore import * lyr = QgsVectorLayer("/qgis_data/hancock/hancock.shp", "Hancock", "ogr") reg = QgsMapLayerRegistry.instance() reg.addMapLayer(lyr) i = QImage(QSize(600,600), QI...
26.2
72
0.735878
ff142a4cda43b0c251db3a7039e19700af339364
259
py
Python
backend/api/middleware/context.py
jklemm/menu-fullstack-challenge
519871e5889a827fbf39afd5dfb8944be8c21f3f
[ "Unlicense" ]
null
null
null
backend/api/middleware/context.py
jklemm/menu-fullstack-challenge
519871e5889a827fbf39afd5dfb8944be8c21f3f
[ "Unlicense" ]
null
null
null
backend/api/middleware/context.py
jklemm/menu-fullstack-challenge
519871e5889a827fbf39afd5dfb8944be8c21f3f
[ "Unlicense" ]
null
null
null
import uuid class ContextMiddleware(object): def process_request(self, req, resp): if not req.context.get("request_id"): req.context["request_id"] = str(uuid.uuid4()) resp.set_header("request-id", req.context["request_id"])
25.9
64
0.656371
8134170d5f3dfc0082a7391dd5f5c95da08e9abb
12,111
py
Python
sdcflows/interfaces/utils.py
a3sha2/sdcflows
d2023f59a278a57cc7e15888fd545c349b8d82d2
[ "Apache-2.0" ]
null
null
null
sdcflows/interfaces/utils.py
a3sha2/sdcflows
d2023f59a278a57cc7e15888fd545c349b8d82d2
[ "Apache-2.0" ]
null
null
null
sdcflows/interfaces/utils.py
a3sha2/sdcflows
d2023f59a278a57cc7e15888fd545c349b8d82d2
[ "Apache-2.0" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: # # Copyright 2021 The NiPreps Developers <nipreps@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may...
31.294574
92
0.652134
e8279f288b5857e25a4b4ef232c4b3612da1f760
3,826
py
Python
tests/test_yolov5model.py
ConservationMetrics/sahi
ce336e199735f6510e046394cbaf8398328a79a7
[ "MIT" ]
null
null
null
tests/test_yolov5model.py
ConservationMetrics/sahi
ce336e199735f6510e046394cbaf8398328a79a7
[ "MIT" ]
null
null
null
tests/test_yolov5model.py
ConservationMetrics/sahi
ce336e199735f6510e046394cbaf8398328a79a7
[ "MIT" ]
null
null
null
# OBSS SAHI Tool # Code written by Fatih C Akyon, 2020. import unittest import numpy as np from sahi.utils.cv import read_image from sahi.utils.yolov5 import ( Yolov5TestConstants, download_yolov5s6_model, ) class TestYolov5DetectionModel(unittest.TestCase): def test_load_model(self): from sahi...
32.151261
92
0.659435
af5073717f0f770b352eaa2f6e82f2fa0b8332e1
2,799
py
Python
lifelong_rl/core/rl_algorithms/offline/mb_offline_rl_algorithm.py
nakamotoo/lifelong_rl
a8376a57cdeff158810e71cd31cba089852399b7
[ "MIT" ]
67
2020-09-17T21:27:20.000Z
2022-03-31T02:52:29.000Z
lifelong_rl/core/rl_algorithms/offline/mb_offline_rl_algorithm.py
nakamotoo/lifelong_rl
a8376a57cdeff158810e71cd31cba089852399b7
[ "MIT" ]
1
2021-04-26T13:25:48.000Z
2021-04-26T13:25:48.000Z
lifelong_rl/core/rl_algorithms/offline/mb_offline_rl_algorithm.py
nakamotoo/lifelong_rl
a8376a57cdeff158810e71cd31cba089852399b7
[ "MIT" ]
8
2020-12-12T19:46:55.000Z
2022-01-13T10:15:30.000Z
import gtimer as gt import abc from lifelong_rl.core.rl_algorithms.offline.offline_rl_algorithm import OfflineRLAlgorithm class OfflineMBRLAlgorithm(OfflineRLAlgorithm, metaclass=abc.ABCMeta): def __init__( self, model_trainer, model_batch_size, model_max_grad_st...
37.824324
109
0.644873
a6017ed6592c4b8a881dd3b64463987c3d7e28aa
2,349
py
Python
google/appengine/ext/mapreduce/main.py
semk/hypergae
ea85fa6a2cb74b8912a95c3c2fa752745cc2006b
[ "Apache-2.0" ]
1
2020-08-03T21:47:05.000Z
2020-08-03T21:47:05.000Z
google/appengine/ext/mapreduce/main.py
semk/hypergae
ea85fa6a2cb74b8912a95c3c2fa752745cc2006b
[ "Apache-2.0" ]
null
null
null
google/appengine/ext/mapreduce/main.py
semk/hypergae
ea85fa6a2cb74b8912a95c3c2fa752745cc2006b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
25.813187
76
0.713069
11c78147315e7eb471fd3af60afe1d559a6b947f
1,864
py
Python
binary_to_decimal.py
the-handsome-monkey-king/binary_to_decimal_python
bf4bab3f7b08995903cc7638d14cfe332032fd02
[ "MIT" ]
null
null
null
binary_to_decimal.py
the-handsome-monkey-king/binary_to_decimal_python
bf4bab3f7b08995903cc7638d14cfe332032fd02
[ "MIT" ]
null
null
null
binary_to_decimal.py
the-handsome-monkey-king/binary_to_decimal_python
bf4bab3f7b08995903cc7638d14cfe332032fd02
[ "MIT" ]
null
null
null
#!/usr/bin/env python """binary_to_decimal.py Convert a given binary integer to a decimal integer or vice versa.""" __author__ = "Ryan Morehouse" __license__ = "MIT" import sys def binary_to_decimal(n): decimal = 0 length = len(n) for i in range(0, length): digit = (int)(n[i]) power = (l...
23.594937
69
0.552039
24f632ea89bf8a4f384438955cf8fcb24c481321
5,572
py
Python
cirq/linalg/tolerance_test.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
null
null
null
cirq/linalg/tolerance_test.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
null
null
null
cirq/linalg/tolerance_test.py
jlmayfield/Cirq
dc1294f54118a9a4f92546ca13780b91615dd675
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
31.480226
74
0.675341
d35536c3d5a32297c95629ffd665fb94c9001282
4,204
py
Python
bybit/flask_app.py
honey96dev/python-aws-lambda-bitmex-csv
5a2d4d24ea22f58906519673dff6def133665e85
[ "MIT" ]
2
2021-07-19T09:55:53.000Z
2021-11-03T15:02:44.000Z
flask_app.py
honey96dev/python-flask-bybit-api
a0d758d3baf73c823174e63cc471e644b7b6bdae
[ "MIT" ]
null
null
null
flask_app.py
honey96dev/python-flask-bybit-api
a0d758d3baf73c823174e63cc471e644b7b6bdae
[ "MIT" ]
null
null
null
import json from flask import Flask, request import bybit_api app = Flask(__name__) @app.route('/order/create', methods=['POST']) def order_create(): params = request.args order_link_id = params.get('order_link_id') order_type = params.get('order_type') price = params.get('price') qty = params....
30.686131
139
0.69529
a33c244a9ebc01e92b8c40774ff9044519687b18
6,565
py
Python
src/py42/clients/alertrules.py
code42/py42
ae748ea737ddcc89a92b2cf17b7e0433198d60bc
[ "MIT" ]
21
2020-04-21T20:33:08.000Z
2022-02-24T19:09:52.000Z
src/py42/clients/alertrules.py
code42/py42
ae748ea737ddcc89a92b2cf17b7e0433198d60bc
[ "MIT" ]
255
2020-03-31T18:56:17.000Z
2022-03-29T17:16:54.000Z
src/py42/clients/alertrules.py
code42/py42
ae748ea737ddcc89a92b2cf17b7e0433198d60bc
[ "MIT" ]
14
2020-03-31T19:11:26.000Z
2022-03-14T20:42:51.000Z
from py42 import settings from py42.exceptions import Py42InternalServerError from py42.exceptions import Py42InvalidRuleOperationError class AlertRulesClient: """`Rest Documentation <https://developer.code42.com/api/#tag/Rules>`__""" def __init__(self, alerts_service, alert_rules_service): self._ale...
39.077381
112
0.656359
e07fc5f0e39a8dde99709db5a8b36346f25926ec
119,693
py
Python
sympy/solvers/diophantine/diophantine.py
naveensaigit/sympy
4028a7f59d16afa9d9e2f55c465d040ceeec06bf
[ "BSD-3-Clause" ]
null
null
null
sympy/solvers/diophantine/diophantine.py
naveensaigit/sympy
4028a7f59d16afa9d9e2f55c465d040ceeec06bf
[ "BSD-3-Clause" ]
null
null
null
sympy/solvers/diophantine/diophantine.py
naveensaigit/sympy
4028a7f59d16afa9d9e2f55c465d040ceeec06bf
[ "BSD-3-Clause" ]
null
null
null
from sympy.core.add import Add from sympy.core.assumptions import check_assumptions from sympy.core.containers import Tuple from sympy.core.compatibility import as_int, is_sequence, ordered from sympy.core.exprtools import factor_terms from sympy.core.function import _mexpand from sympy.core.mul import Mul from sympy.c...
29.990729
125
0.52714
73c04791d6609d8c021c1df77c2dd8cdb3b67093
959
py
Python
cjdata/templatetags/cjdata_filters.py
sunlightlabs/hall-of-justice
8c2ce47f792e0182c84d13dca808564a6ac376b4
[ "BSD-3-Clause" ]
7
2015-05-08T03:48:54.000Z
2016-02-04T01:01:51.000Z
cjdata/templatetags/cjdata_filters.py
themarshallproject/hall-of-justice
8c2ce47f792e0182c84d13dca808564a6ac376b4
[ "BSD-3-Clause" ]
44
2015-03-20T17:16:58.000Z
2016-04-27T20:17:29.000Z
cjdata/templatetags/cjdata_filters.py
sunlightlabs/hall-of-justice
8c2ce47f792e0182c84d13dca808564a6ac376b4
[ "BSD-3-Clause" ]
5
2015-06-22T13:49:08.000Z
2016-01-30T23:19:16.000Z
from django import template import requests import re register = template.Library() url_page_re = re.compile('(\&)?page=\d+') @register.simple_tag(name='doctor_filter_link', takes_context=True) def doctor_filter_link(context, param, value): dict_ = context.request.GET.copy() dict_.__setitem__('page', str(1))...
26.638889
70
0.70073
26c162fcc015ccf54804927b659f0ff858475f05
153
py
Python
tests/flattrs_test/ASimpleByteEnum.py
Tinche/flattrs
6c5725aaaaa89f0bbdf444178dc7c626ec95614a
[ "MIT" ]
7
2018-08-27T16:59:55.000Z
2022-01-20T19:11:28.000Z
tests/flattrs_test/ASimpleByteEnum.py
Tinche/flattrs
6c5725aaaaa89f0bbdf444178dc7c626ec95614a
[ "MIT" ]
1
2019-12-04T12:17:45.000Z
2020-01-14T13:37:32.000Z
tests/flattrs_test/ASimpleByteEnum.py
Tinche/flattrs
6c5725aaaaa89f0bbdf444178dc7c626ec95614a
[ "MIT" ]
2
2019-12-04T12:08:14.000Z
2019-12-04T12:51:57.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: flattrs_test class ASimpleByteEnum(object): ONE = 0 TWO = 1
17
68
0.732026
78e7ee98a852febddde9276ef65087c9869edfd5
453
py
Python
data/scripts/templates/object/building/poi/shared_naboo_gungtrad_medium2.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/building/poi/shared_naboo_gungtrad_medium2.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/building/poi/shared_naboo_gungtrad_medium2.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Building() result.template = "object/building/poi/shared_naboo_gungtrad_medium2.iff" result.attribute_template_id...
26.647059
74
0.730684
69d400490837e1a8f3da52b993215f59aa4714e4
1,714
py
Python
aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/DeleteOutboundCallNumberRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
1,001
2015-07-24T01:32:41.000Z
2022-03-25T01:28:18.000Z
aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/DeleteOutboundCallNumberRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
363
2015-10-20T03:15:00.000Z
2022-03-08T12:26:19.000Z
aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/DeleteOutboundCallNumberRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
682
2015-09-22T07:19:02.000Z
2022-03-22T09:51:46.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.954545
99
0.78063
4e14285b89265318d215a10b81d0c582c1becc4d
2,203
py
Python
test/unit/data/datatypes/test_bam.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
test/unit/data/datatypes/test_bam.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
2
2017-05-18T16:12:55.000Z
2022-03-08T12:08:43.000Z
test/unit/data/datatypes/test_bam.py
beatrizserrano/galaxy
e149d9d32e1bca6c07c38b1a9cdabfee60323610
[ "CC-BY-3.0" ]
null
null
null
import pysam from galaxy.datatypes.binary import Bam from .util import ( get_dataset, get_input_files, get_tmp_path, ) def test_merge_bam(): with get_input_files("1.bam", "1.bam") as input_files, get_tmp_path() as outpath: Bam.merge(input_files, outpath) alignment_count_output = int(p...
33.892308
93
0.662279
dc50893b0f53672e02497bcdb31756bb216dc8de
4,505
py
Python
src/views/sbm_time_series_widget.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
null
null
null
src/views/sbm_time_series_widget.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
8
2021-03-19T06:35:48.000Z
2021-03-31T14:23:24.000Z
src/views/sbm_time_series_widget.py
RubyMarsden/Crayfish
33bbb1248beec2fc40eee59e462711dd8cbc33da
[ "MIT" ]
null
null
null
import math import matplotlib from PyQt5.QtWidgets import QVBoxLayout, QWidget, QHBoxLayout, QLabel, QCheckBox from matplotlib.gridspec import GridSpec from utils import ui_utils matplotlib.use('QT5Agg') import matplotlib.pyplot as plt class SBMTimeSeriesWidget(QWidget): def __init__(self, results_dialog): ...
33.619403
120
0.657936
4c72b9ad4529b69a184f585c089b19c9552d9aea
2,891
py
Python
examples/views/button/paginator.py
RPSMain/disnake
497bbbafd57bbf57201a3c165a67ef42e7f44dec
[ "MIT" ]
12
2021-08-28T10:25:00.000Z
2021-08-29T15:57:59.000Z
examples/views/button/paginator.py
RPSMain/disnake
497bbbafd57bbf57201a3c165a67ef42e7f44dec
[ "MIT" ]
5
2021-09-26T18:59:45.000Z
2021-12-20T19:20:55.000Z
examples/views/button/paginator.py
RPSMain/disnake
497bbbafd57bbf57201a3c165a67ef42e7f44dec
[ "MIT" ]
2
2021-09-26T18:36:39.000Z
2021-09-26T18:39:37.000Z
from typing import List import disnake from disnake.ext import commands bot = commands.Bot(command_prefix="-") # Defines a simple paginator of buttons for the embed. class Menu(disnake.ui.View): def __init__(self, embeds: List[disnake.Embed]): super().__init__(timeout=None) # Sets the embed list...
33.229885
105
0.644068
b31d047e27fe8910245a51286b5d67a337cc53bb
3,766
py
Python
src/ri_distances/SGW/sgw.py
ymentha14/se3_molecule_generation
ec5f043f5905938f6e25d6ffdc246334017cd37f
[ "MIT" ]
null
null
null
src/ri_distances/SGW/sgw.py
ymentha14/se3_molecule_generation
ec5f043f5905938f6e25d6ffdc246334017cd37f
[ "MIT" ]
null
null
null
src/ri_distances/SGW/sgw.py
ymentha14/se3_molecule_generation
ec5f043f5905938f6e25d6ffdc246334017cd37f
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import torch from tqdm import tqdm def get_P(d, L): """ Generate the matrix of projections for sliced gromov wasserstein """ res = np.random.randn(d, L) res /= np.sqrt(np.sum(res**2, 0, keepdims=True)) return res def get_rot(theta): retu...
34.236364
103
0.613383
fa7ec7ad8d8d6fbc31614d59d77505faf189e792
499
py
Python
qaoverflow/users/tests/test_tasks.py
92fueler/qaoverflow
0113ced12d6f298f5c5ddf4156c6194901948f59
[ "MIT" ]
null
null
null
qaoverflow/users/tests/test_tasks.py
92fueler/qaoverflow
0113ced12d6f298f5c5ddf4156c6194901948f59
[ "MIT" ]
null
null
null
qaoverflow/users/tests/test_tasks.py
92fueler/qaoverflow
0113ced12d6f298f5c5ddf4156c6194901948f59
[ "MIT" ]
null
null
null
import pytest from celery.result import EagerResult from qaoverflow.users.tasks import get_users_count from qaoverflow.users.tests.factories import UserFactory pytestmark = pytest.mark.django_db def test_user_count(settings): """A basic test to execute the get_users_count Celery task.""" UserFactory.create_...
29.352941
66
0.791583
1a82f367a7542c33fb006d47f9daf46576fa1c24
1,371
py
Python
Desenvolvimento Python para Redes e Sistemas Operacionais/Etapa6/arquivo_c.py
LC-ardovino/INFNET
3c485f122820f549f6a3c315fe09a537411bea7c
[ "MIT" ]
null
null
null
Desenvolvimento Python para Redes e Sistemas Operacionais/Etapa6/arquivo_c.py
LC-ardovino/INFNET
3c485f122820f549f6a3c315fe09a537411bea7c
[ "MIT" ]
null
null
null
Desenvolvimento Python para Redes e Sistemas Operacionais/Etapa6/arquivo_c.py
LC-ardovino/INFNET
3c485f122820f549f6a3c315fe09a537411bea7c
[ "MIT" ]
1
2022-03-31T11:47:02.000Z
2022-03-31T11:47:02.000Z
import socket, sys, os # Imprime o status de download def imprime_status(bytes, tam): kbytes = bytes/1024 tam_bytes = tam/1024 texto = 'Baixando... ' texto = texto + '{:<.2f}'.format(kbytes) + ' KB ' texto = texto + 'de ' + '{:<.2f}'.format(tam_bytes) + ' KB' print(texto) # Cria o socket s = s...
29.804348
63
0.595915
447809c18903787544eea6fc9617425a67b4c5e9
5,303
py
Python
languagelab/api/serializers.py
grvsmth/languagelab
3f63882cced3b22c149d42f10abba5a2c98e4d32
[ "Unlicense" ]
6
2021-03-27T20:57:40.000Z
2022-01-08T05:17:01.000Z
languagelab/api/serializers.py
grvsmth/languagelab
3f63882cced3b22c149d42f10abba5a2c98e4d32
[ "Unlicense" ]
null
null
null
languagelab/api/serializers.py
grvsmth/languagelab
3f63882cced3b22c149d42f10abba5a2c98e4d32
[ "Unlicense" ]
1
2021-06-19T12:31:59.000Z
2021-06-19T12:31:59.000Z
""" Serializers for LanguageLab Library API """ from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from rest_framework.serializers import ( CharField, CurrentUserDefault, IntegerField, ModelSerializer, PrimaryKeyRelatedField, SerializerMethodField ...
21.733607
74
0.550632
33d4f08ca53a5be12b701a5692cc300cc19a6755
355
py
Python
lineedit/__init__.py
randy3k/lineed
4262e9852aa50b09ff3f0569e1840b003ed00584
[ "MIT" ]
null
null
null
lineedit/__init__.py
randy3k/lineed
4262e9852aa50b09ff3f0569e1840b003ed00584
[ "MIT" ]
3
2018-09-01T15:14:48.000Z
2020-03-17T20:42:03.000Z
lineedit/__init__.py
randy3k/lineed
4262e9852aa50b09ff3f0569e1840b003ed00584
[ "MIT" ]
1
2021-02-09T17:36:29.000Z
2021-02-09T17:36:29.000Z
from .deps import dependencies_loaded if not dependencies_loaded: print("Dependencies not loaded.") from .prompt import Mode, ModalPromptSession # noqa from .history import ModalInMemoryHistory, ModalFileHistory # noqa __all__ = [ "Mode", "ModalPromptSession", "ModalInMemoryHistory", "ModalFile...
19.722222
67
0.735211
cac9d98bb0c4c222ab1c7d2c403b10cb1385ef1c
13,186
py
Python
filter.py
rnc/maven-repository-builder
197adfacf04e21efc075c5bfce5eb2966b7d19a0
[ "Apache-2.0" ]
null
null
null
filter.py
rnc/maven-repository-builder
197adfacf04e21efc075c5bfce5eb2966b7d19a0
[ "Apache-2.0" ]
null
null
null
filter.py
rnc/maven-repository-builder
197adfacf04e21efc075c5bfce5eb2966b7d19a0
[ "Apache-2.0" ]
null
null
null
import copy import logging from multiprocessing.pool import ThreadPool import maven_repo_util from maven_artifact import MavenArtifact class Filter: def __init__(self, config): self.config = config def filter(self, artifactList, threadnum): """ Filter artifactList removing excluded ...
49.385768
120
0.557106
e3f0ba9539a1f398a60935d5561ed2f9ca65146c
6,373
py
Python
docs/source/conf.py
gwbischof/fastapi-chat
a5c8c58d00813f7f3de8dbdfc772619e8b2a2b0e
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
gwbischof/fastapi-chat
a5c8c58d00813f7f3de8dbdfc772619e8b2a2b0e
[ "BSD-3-Clause" ]
null
null
null
docs/source/conf.py
gwbischof/fastapi-chat
a5c8c58d00813f7f3de8dbdfc772619e8b2a2b0e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # fastapi-chat documentation build configuration file, created by # sphinx-quickstart on Thu Jun 28 12:35:56 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
31.394089
135
0.697474
f13a9bdff628199656d4f82e30baf6a9af7ca434
476
py
Python
python/qibuild/test/test_qibuild_set_default.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qibuild/test/test_qibuild_set_default.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
python/qibuild/test/test_qibuild_set_default.py
vbarbaresi/qibuild
eab6b815fe0af49ea5c41ccddcd0dff2363410e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2012-2018 SoftBank Robotics. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the COPYING file. import qibuild.config from qibuild.test.conftest import TestBuildWorkTree def test_simple(qibuild_action): qibuild.config.add_build_config("foo")...
34
72
0.77521
e818f78f2bd370ba22d3b85cf0a83e7f7f314067
842
py
Python
Configuration/Generator/python/MCTunes2017/PythiaCP3TuneUpSettings_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
Configuration/Generator/python/MCTunes2017/PythiaCP3TuneUpSettings_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
Configuration/Generator/python/MCTunes2017/PythiaCP3TuneUpSettings_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms pythia8CP3TuneUpSettingsBlock = cms.PSet( pythia8CP3TuneUpSettings = cms.vstring( 'Tune:pp 14', 'Tune:ee 7', 'PDF:pSet=19', 'MultipartonInteractions:bProfile=2', 'MultipartonInteractions:ecmPow=0.02266', 'MultipartonInteractions:pT0Ref=1.478', '...
31.185185
50
0.713777
43e91368eeae1fab2514111da21e6678b31d6e85
1,126
py
Python
dynamo/preprocessing/__init__.py
yaz62/dynamo-release
3f3edb227fa904664b1b0b9f6038414bc4072cc2
[ "BSD-3-Clause" ]
236
2019-07-09T22:06:21.000Z
2022-03-31T17:56:07.000Z
dynamo/preprocessing/__init__.py
yaz62/dynamo-release
3f3edb227fa904664b1b0b9f6038414bc4072cc2
[ "BSD-3-Clause" ]
115
2019-07-12T19:06:21.000Z
2022-03-31T17:34:18.000Z
dynamo/preprocessing/__init__.py
yaz62/dynamo-release
3f3edb227fa904664b1b0b9f6038414bc4072cc2
[ "BSD-3-Clause" ]
34
2019-07-10T03:34:04.000Z
2022-03-22T12:44:22.000Z
"""Mapping Vector Field of Single Cells """ from .dynast import lambda_correction from .preprocess import ( szFactor, normalize_expr_data, recipe_monocle, recipe_velocyto, Gini, top_table, estimate_dispersion, filter_cells, select_genes, filter_genes, filter_genes_by_cluste...
18.16129
41
0.656306
fc2eabce6d57ce490fcbf11ceaa22ce4d2566cbf
448
py
Python
2021/day02/aim.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
1
2021-03-03T01:40:09.000Z
2021-03-03T01:40:09.000Z
2021/day02/aim.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
null
null
null
2021/day02/aim.py
rycmak/advent-of-code
2a3289516f4c1d0bc1d24a38d495a93edcb19e29
[ "MIT" ]
null
null
null
file = open("input.txt", "r") aim = 0 horizontal = 0 depth = 0 for direction in file: if direction.split(" ")[0] == "forward": horizontal += (int)(direction.split(" ")[1]) depth += aim * (int)(direction.split(" ")[1]) elif direction.split(" ")[0] == "down": aim += (int)(direction.split(" ")[1]) elif...
28
51
0.571429
a17547395f7f76ff573bebb4868a1b5a1c6df0bb
738
py
Python
SMTP.py
ffbskt/msu_graph
bbb7e4e920ce8b1ec232f4f50b4dcb1c08b069d1
[ "Apache-2.0" ]
null
null
null
SMTP.py
ffbskt/msu_graph
bbb7e4e920ce8b1ec232f4f50b4dcb1c08b069d1
[ "Apache-2.0" ]
null
null
null
SMTP.py
ffbskt/msu_graph
bbb7e4e920ce8b1ec232f4f50b4dcb1c08b069d1
[ "Apache-2.0" ]
null
null
null
import smtplib from email.mime.text import MIMEText class SMTP(object): def __init__(self, gmail, password): self.gmail = gmail self.password = password self.raise_server() def raise_server(self): self.server = smtplib.SMTP('smtp.gmail.com', 587) self.server.ehlo() ...
28.384615
65
0.607046
2d375fedad7a0af5cce76e2e955879cad12b965b
317
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/03- fileio02.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/03- fileio02.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/03- fileio02.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
# argv and argc take in command line args import sys if len(sys.argv) != 2: print("usage: 03-fileio02.py filename") sys.exit(1) try: with open(sys.argv[1]) as f: for line in f: print(line) except FileNotFoundError: print(f"{sys.argv[0]}: {sys.argv[1]} not found") sys.exit(2)
22.642857
52
0.611987
62c64c7cf7911a4359539050efc95e9474434c85
454
py
Python
optuna/testing/distribution.py
VladSkripniuk/optuna
81d5b67a81ae14d606e6d6120ce50d02e90b0942
[ "MIT" ]
2
2020-05-04T11:26:02.000Z
2020-07-18T12:59:58.000Z
optuna/testing/distribution.py
VladSkripniuk/optuna
81d5b67a81ae14d606e6d6120ce50d02e90b0942
[ "MIT" ]
2
2020-02-13T01:05:40.000Z
2020-03-12T08:19:02.000Z
optuna/testing/distribution.py
VladSkripniuk/optuna
81d5b67a81ae14d606e6d6120ce50d02e90b0942
[ "MIT" ]
1
2020-12-25T03:27:26.000Z
2020-12-25T03:27:26.000Z
from optuna.distributions import BaseDistribution from optuna import type_checking if type_checking.TYPE_CHECKING: from typing import Dict # NOQA class UnsupportedDistribution(BaseDistribution): def single(self): # type: () -> bool return False def _contains(self, param_value_in_inter...
18.916667
54
0.654185
a80f44b3562f0ea2d150d058184c2423b4d779f9
2,813
py
Python
zerver/lib/zcommand.py
Awawdi/zulip
f2e7b92b024cfec6a9babace8298de9537925347
[ "Apache-2.0" ]
3
2020-11-03T15:18:04.000Z
2021-02-16T11:49:51.000Z
zerver/lib/zcommand.py
Awawdi/zulip
f2e7b92b024cfec6a9babace8298de9537925347
[ "Apache-2.0" ]
18
2021-08-14T01:12:30.000Z
2022-03-04T20:28:51.000Z
zerver/lib/zcommand.py
Awawdi/zulip
f2e7b92b024cfec6a9babace8298de9537925347
[ "Apache-2.0" ]
1
2021-08-29T11:13:05.000Z
2021-08-29T11:13:05.000Z
from typing import Any, Dict from django.utils.translation import gettext as _ from zerver.lib.actions import do_change_user_setting from zerver.lib.exceptions import JsonableError from zerver.models import UserProfile def process_zcommands(content: str, user_profile: UserProfile) -> Dict[str, Any]: def change_...
35.1625
82
0.586918
dd43fd90972c59930b68ad813c82b337a6a8b5d2
2,095
py
Python
com/binghe/hacker/tools/script/wireless/wireless_airplain.py
ffffff0x/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
52
2019-02-11T13:02:20.000Z
2022-02-06T07:43:55.000Z
com/binghe/hacker/tools/script/wireless/wireless_airplain.py
sunshinelyz/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
null
null
null
com/binghe/hacker/tools/script/wireless/wireless_airplain.py
sunshinelyz/python-hacker
a2dc7f9031669a86bd2c87892c0a8c1e54bb2a79
[ "Apache-2.0" ]
15
2019-02-25T03:04:50.000Z
2021-10-19T02:13:52.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- coding: gbk -*- # Date: 2019/2/20 # Created by 冰河 # Description 截获无人机 # 博客 https://blog.csdn.net/l1028386804 import threading import wireless_dup as dup from scapy.all import * conf.iface = 'wlan0mon' NATPORT = 5556 LAND = '290717696' EMER = '290717952' TAKEOFF = '2...
27.565789
65
0.585203
16d3d9d3b985a22fc913340ee71576736dadea8e
139
py
Python
hello.py
shegzee/doer
4926c4e21232cded2b8133bd2cfe8aaca14d7f19
[ "MIT" ]
1
2021-05-12T21:30:15.000Z
2021-05-12T21:30:15.000Z
hello.py
shegzee/doer
4926c4e21232cded2b8133bd2cfe8aaca14d7f19
[ "MIT" ]
null
null
null
hello.py
shegzee/doer
4926c4e21232cded2b8133bd2cfe8aaca14d7f19
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return 'Hello, World!' if __name__ == '__main__': app.run()
13.9
26
0.661871
41615cf8a9724c05af7d5c5c6fca7f6d222223fb
2,985
py
Python
scripts/imbalance.py
mrocklin/task-bench
03bea42b917f10f013966e38024aeeb7007203ee
[ "Apache-2.0" ]
1
2019-06-19T06:05:45.000Z
2019-06-19T06:05:45.000Z
scripts/imbalance.py
mrocklin/task-bench
03bea42b917f10f013966e38024aeeb7007203ee
[ "Apache-2.0" ]
null
null
null
scripts/imbalance.py
mrocklin/task-bench
03bea42b917f10f013966e38024aeeb7007203ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 Stanford University # # 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 applicab...
37.78481
111
0.668007
7acea72c9c4a25cb82cb212a73fbcc46539c298c
568
py
Python
setup.py
gnillev/amqp-rpc
37e9ed683a3c867e94c4a94cda3ec274ac20218d
[ "MIT" ]
null
null
null
setup.py
gnillev/amqp-rpc
37e9ed683a3c867e94c4a94cda3ec274ac20218d
[ "MIT" ]
null
null
null
setup.py
gnillev/amqp-rpc
37e9ed683a3c867e94c4a94cda3ec274ac20218d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Setup file for vrpc. Use setup.cfg to configure your project. This file was generated with PyScaffold 3.2.3. PyScaffold helps you to put up the scaffold of your new Python project. Learn more under: https://pyscaffold.org/ """ import sys from pkg_resources import Versio...
23.666667
75
0.700704
9630668acd0c8ba25009066f97b96819c56233d9
861
py
Python
tests/python/pants_test/core_tasks/test_bash_completion.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2018-12-10T21:31:02.000Z
2018-12-10T21:31:02.000Z
tests/python/pants_test/core_tasks/test_bash_completion.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
tests/python/pants_test/core_tasks/test_bash_completion.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2018-03-08T22:21:44.000Z
2018-03-08T22:21:44.000Z
# coding=utf-8 # Copyright 2015 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) from pants.core_task...
33.115385
93
0.783972
19a8c50739bc70dab9b941811b1db72ccdaf2615
2,692
py
Python
testing/scripts/test_prepackaged_servers.py
markusgay/seldon-core
b9ebfdfd63e5f7b23311b81ba78e36aa08e87640
[ "Apache-2.0" ]
null
null
null
testing/scripts/test_prepackaged_servers.py
markusgay/seldon-core
b9ebfdfd63e5f7b23311b81ba78e36aa08e87640
[ "Apache-2.0" ]
null
null
null
testing/scripts/test_prepackaged_servers.py
markusgay/seldon-core
b9ebfdfd63e5f7b23311b81ba78e36aa08e87640
[ "Apache-2.0" ]
null
null
null
import pytest import time import subprocess from subprocess import run import json from seldon_utils import * from k8s_utils import * from seldon_core.seldon_client import SeldonClient def wait_for_status(name): for attempts in range(7): completedProcess = run("kubectl get sdep "+name+" -o json -n seldon",...
39.588235
125
0.676449
c0ae45a3f9746f749af4e7cd37292682aac8ee0b
8,907
py
Python
mapproxy/client/wms.py
vrsource/mapproxy
7699173f26c933e4ed91750c0b53c0c916138e3f
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-10T21:11:54.000Z
2018-11-10T21:11:54.000Z
mapproxy/client/wms.py
vrsource/mapproxy
7699173f26c933e4ed91750c0b53c0c916138e3f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/client/wms.py
vrsource/mapproxy
7699173f26c933e4ed91750c0b53c0c916138e3f
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
38.392241
95
0.653419