hexsha stringlengths 40 40 | size int64 6 1.04M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 247 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | 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 247 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 247 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.04M | avg_line_length float64 1.53 618k | max_line_length int64 1 1.02M | alphanum_fraction float64 0 1 | original_content stringlengths 6 1.04M | filtered:remove_non_ascii int64 0 538k | filtered:remove_decorators int64 0 917k | filtered:remove_async int64 0 722k | filtered:remove_classes int64 -45 1M | filtered:remove_generators int64 0 814k | filtered:remove_function_no_docstring int64 -102 850k | filtered:remove_class_no_docstring int64 -3 5.46k | filtered:remove_unused_imports int64 -1,350 52.4k | filtered:remove_delete_markers int64 0 59.6k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7d9b7841c0014afe5edcc26667fa135680bc684d | 6,061 | py | Python | flask_app/app.py | bulatcute/tatfac | 1bbfcff2622dd11a8caf69ff17268156720bb2c1 | [
"MIT"
] | null | null | null | flask_app/app.py | bulatcute/tatfac | 1bbfcff2622dd11a8caf69ff17268156720bb2c1 | [
"MIT"
] | null | null | null | flask_app/app.py | bulatcute/tatfac | 1bbfcff2622dd11a8caf69ff17268156720bb2c1 | [
"MIT"
] | null | null | null | import atexit
import os
import dotenv
import requests
from apscheduler.schedulers.background import BackgroundScheduler
from flask import (Flask)
from flask_login import (LoginManager)
from flask_sqlalchemy import SQLAlchemy
from flask_app.edutatar import (login_edu)
dotenv.load_dotenv()
application = Flask(__name_... | 31.082051 | 107 | 0.671176 | import asyncio
import atexit
import os
import dotenv
import requests
from apscheduler.schedulers.background import BackgroundScheduler
from flask import (Flask, make_response, redirect, render_template, request,
send_from_directory, url_for)
from flask_login import (
LoginManager, UserMixin, cur... | 52 | 3,848 | 0 | 256 | 0 | 179 | 0 | 334 | 366 |
b7db7352d4a55e0347fe2a602885c256089ac79d | 62 | py | Python | Clase1/HolaNombre.py | JoseCordobaEAN/EstructurasDeDatosUE4P | 86a5c426d83d9d9ae86656c3c78324a1c07f608d | [
"MIT"
] | 2 | 2019-08-17T21:15:47.000Z | 2019-09-21T12:15:19.000Z | Clase1/HolaNombre.py | JoseCordobaEAN/EstructurasDeDatosUE4P | 86a5c426d83d9d9ae86656c3c78324a1c07f608d | [
"MIT"
] | null | null | null | Clase1/HolaNombre.py | JoseCordobaEAN/EstructurasDeDatosUE4P | 86a5c426d83d9d9ae86656c3c78324a1c07f608d | [
"MIT"
] | null | null | null | nombre = input("Cual es tu nombre?")
print(f'Hola {nombre}')
| 20.666667 | 37 | 0.66129 | nombre = input("¿Cual es tu nombre?")
print(f'Hola {nombre}')
| 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
011f123996b9652d7897969a4b6e12700739981a | 765 | py | Python | main/MouseAtlas.py | jimmayxu/scVI | 23cb7597e0b0677736a14c903c8053ad62c74938 | [
"MIT"
] | null | null | null | main/MouseAtlas.py | jimmayxu/scVI | 23cb7597e0b0677736a14c903c8053ad62c74938 | [
"MIT"
] | null | null | null | main/MouseAtlas.py | jimmayxu/scVI | 23cb7597e0b0677736a14c903c8053ad62c74938 | [
"MIT"
] | null | null | null | import os
os.getcwd()
import sys
sys.path.append('scvi')
import scanpy as sc
save_path = "/lustre/scratch117/cellgen/team205/tpcg/backup/backup_20190401/sc_sclassification/CellTypist/data_repo/MouseAtlas/MouseAtlas.total.h5ad"
save_path2 = "/lustre/scratch117/cellgen/team205/tpcg/human_data/HumanAtlas.h5ad"
adata_mo... | 22.5 | 149 | 0.816993 | import os
os.getcwd()
import sys
sys.path.append('scvi')
import torch
import numpy as np
import pandas as pd
import scanpy as sc
save_path = "/lustre/scratch117/cellgen/team205/tpcg/backup/backup_20190401/sc_sclassification/CellTypist/data_repo/MouseAtlas/MouseAtlas.total.h5ad"
save_path2 = "/lustre/scratch117/cell... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 34 | 202 |
c7f59edb3a5c8d3619ad68f6b6967bea28d3ba40 | 3,792 | py | Python | shell/shell.py | kreusada/JackCogs | f1c5b30e0656cb9634fa8bb0d6b00aa7c2384c40 | [
"Apache-2.0"
] | null | null | null | shell/shell.py | kreusada/JackCogs | f1c5b30e0656cb9634fa8bb0d6b00aa7c2384c40 | [
"Apache-2.0"
] | null | null | null | shell/shell.py | kreusada/JackCogs | f1c5b30e0656cb9634fa8bb0d6b00aa7c2384c40 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018-2021 Jakub Kuczys (https://github.com/jack1142)
#
# 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 app... | 35.111111 | 86 | 0.629483 | # Copyright 2018-2021 Jakub Kuczys (https://github.com/jack1142)
#
# 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 app... | 0 | 1,066 | 1,344 | 390 | 0 | 0 | 0 | 93 | 180 |
1aca8312e8b3a002362d2b49a0e848391cf47680 | 2,032 | py | Python | markov.py | AVMatthews/Outlet | c84765ef1288d206f09cdace5841d36192782875 | [
"CC0-1.0"
] | null | null | null | markov.py | AVMatthews/Outlet | c84765ef1288d206f09cdace5841d36192782875 | [
"CC0-1.0"
] | null | null | null | markov.py | AVMatthews/Outlet | c84765ef1288d206f09cdace5841d36192782875 | [
"CC0-1.0"
] | null | null | null | import re;
import random
import sys
if __name__ == '__main__':
k = int(sys.argv[1])
n = int(sys.argv[2])
ma = Markov(n)
for i in sys.argv[3:]:
ma.Feed(open(i, 'r').read())
#print ma.probs
#print ma.Dump(int(sys.argv[1]))
words, hits = ma.Generate(k, random.choice)
print ' '.join... | 32.774194 | 79 | 0.468012 | import re;
import random
import sys
class Markov(object):
splitter = re.compile(r'([\w\'!\?\.,<>="\'/:]+)')
# splitter = re.compile('.', re.MULTILINE)
def __init__(self, n = 1):
self.probs = {}
self.n = n
def Feed(self, str):
self.Update(map(lambda x: x.lower(), self.splitter.fin... | 0 | 0 | 0 | 1,593 | 0 | 0 | 0 | 0 | 23 |
d05ba470162792a18c8b6797afd697c420796a34 | 3,882 | py | Python | batchflow/models/tf/pyramidnet.py | bestetc/batchflow | d2a843640383fbe860654236881483f755227e06 | [
"Apache-2.0"
] | 87 | 2018-11-16T08:04:12.000Z | 2022-03-24T20:08:44.000Z | batchflow/models/tf/pyramidnet.py | bestetc/batchflow | d2a843640383fbe860654236881483f755227e06 | [
"Apache-2.0"
] | 243 | 2018-11-29T02:03:55.000Z | 2022-02-21T08:28:29.000Z | batchflow/models/tf/pyramidnet.py | bestetc/batchflow | d2a843640383fbe860654236881483f755227e06 | [
"Apache-2.0"
] | 35 | 2019-01-29T14:26:14.000Z | 2021-12-30T01:39:02.000Z | """
Dongyoon Han et al. "`Deep Pyramidal Residual Networks
<https://arxiv.org/abs/1610.02915>`_"
"""
| 31.056 | 94 | 0.617723 | """
Dongyoon Han et al. "`Deep Pyramidal Residual Networks
<https://arxiv.org/abs/1610.02915>`_"
"""
from . import ResNet
class PyramidNet(ResNet):
""" The base PyramidNet model
Notes
-----
This class is intended to define custom PyramidNets.
For more convenience use predefined :class:`.tf.Pyram... | 0 | 1,328 | 0 | 2,288 | 0 | 0 | 0 | -1 | 160 |
814151f26dafa0c3a95ca7fedafaed5b2414e027 | 18,627 | py | Python | MiNTiF_Utils/cnn/model_zoos/model_zoo_default.py | CAiM-lab/MiNTiF | b292670d3cc97f884fa02fb60229869df59fccbc | [
"MIT"
] | 2 | 2021-02-25T10:22:10.000Z | 2022-02-09T12:42:31.000Z | MiNTiF_Utils/cnn/model_zoos/model_zoo_default.py | CAiM-lab/MiNTiF | b292670d3cc97f884fa02fb60229869df59fccbc | [
"MIT"
] | null | null | null | MiNTiF_Utils/cnn/model_zoos/model_zoo_default.py | CAiM-lab/MiNTiF | b292670d3cc97f884fa02fb60229869df59fccbc | [
"MIT"
] | 2 | 2021-09-22T12:56:18.000Z | 2021-11-29T18:22:03.000Z | # (c) 2019-2021, Alvaro Gomariz @ ETH Zurich
# Computer-assisted Applications in Medicine (CAiM) Group, Prof. Orcun Goksel
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
| 40.231102 | 137 | 0.543995 | # (c) 2019-2021, Alvaro Gomariz @ ETH Zurich
# Computer-assisted Applications in Medicine (CAiM) Group, Prof. Orcun Goksel
import numpy as np
import tensorflow as tf
from cnn import layers_keras as clayers, losses, metrics_keras as cmetrics
import logging
logger = logging.getLogger(__name__)
logger.setLevel(loggin... | 0 | 0 | 0 | 18,157 | 0 | 0 | 0 | 52 | 205 |
bd11547a58a12b55ae74731078e2652183703ae4 | 3,559 | py | Python | src/euros/en.py | ThbtSprt/euros | 750be3d31eab995b162a916234351e47a2dc27fa | [
"MIT"
] | 5 | 2021-06-11T08:32:35.000Z | 2021-08-13T15:48:22.000Z | src/euros/en.py | ThbtSprt/euros | 750be3d31eab995b162a916234351e47a2dc27fa | [
"MIT"
] | 1 | 2021-07-24T13:47:15.000Z | 2021-07-24T17:19:55.000Z | src/euros/en.py | ThbtSprt/euros | 750be3d31eab995b162a916234351e47a2dc27fa | [
"MIT"
] | null | null | null | from re import sub
chiffres = ['','one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen']
nombres = ['','ten','twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety']
def formater(x):
"""
... | 27.376923 | 178 | 0.503793 | from re import sub
chiffres = ['','one','two','three','four','five','six','seven','eight','nine','ten','eleven','twelve','thirteen','fourteen','fifteen','sixteen','seventeen','eighteen','nineteen']
nombres = ['','ten','twenty','thirty','forty','fifty','sixty','seventy','eighty','ninety']
def formater(x):
"""
... | 12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
17845ad1df35ea63d566e55450a0df8d9184b04b | 6,077 | py | Python | data/external/repositories_2to3/197834/Kaggle_Avito-2015-master/model2.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/197834/Kaggle_Avito-2015-master/model2.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/197834/Kaggle_Avito-2015-master/model2.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | '''
This script runs the ftrl-proximal model on data from combo.gl and extras.gl.
author: David Thaler
date: July 2015
'''
from ftrl_proximal import ftrl_proximal
from hash_features import hash_features
DROP_COLS = ['rowId','SearchID', 'isDS', 'isVal', 'isTest', 'IsClick','ID']
ROUND_COLS = ['HistCTR', 'cat... | 30.691919 | 96 | 0.611486 | '''
This script runs the ftrl-proximal model on data from combo.gl and extras.gl.
author: David Thaler
date: July 2015
'''
import avito2_io
from run_model import compute_offset
import sframes
from ftrl_proximal import ftrl_proximal
from hash_features import hash_features
from eval import logloss
from datet... | 0 | 0 | 0 | 0 | 1,083 | 2,011 | 0 | -10 | 486 |
d295c9c8af4367b5caeee5f1b85613c99b24d519 | 159 | py | Python | python/ql/test/library-tests/modules/__all__/no_all.py | timoles/codeql | 2d24387e9e300bf03be35694816b1e76ae88a50c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | python/ql/test/library-tests/modules/__all__/no_all.py | timoles/codeql | 2d24387e9e300bf03be35694816b1e76ae88a50c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | python/ql/test/library-tests/modules/__all__/no_all.py | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | foo = "foo"
bar = "bar"
baz = "baz"
# When `__all__` is not defined, names starting with underscore is not imported with `from <module> import *`
_qux = "qux"
| 26.5 | 109 | 0.679245 | foo = "foo"
bar = "bar"
baz = "baz"
# When `__all__` is not defined, names starting with underscore is not imported with `from <module> import *`
_qux = "qux"
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1bbc16675a2f5aea15cb82cb075fde95938a9438 | 7,942 | py | Python | deepstreampy/event.py | sapid/deepstreampy-twisted | 78025141bb0ac3aadc248d68f9273bf8993fc3d4 | [
"MIT"
] | 28 | 2016-06-16T08:25:28.000Z | 2022-03-03T06:48:13.000Z | deepstreampy/event.py | sapid/deepstreampy-twisted | 78025141bb0ac3aadc248d68f9273bf8993fc3d4 | [
"MIT"
] | 8 | 2017-05-23T01:38:09.000Z | 2020-03-18T09:21:49.000Z | deepstreampy/event.py | sapid/deepstreampy-twisted | 78025141bb0ac3aadc248d68f9273bf8993fc3d4 | [
"MIT"
] | 11 | 2017-04-25T20:12:24.000Z | 2020-04-21T13:28:32.000Z | """Deepstream event handling."""
from __future__ import absolute_import, division, print_function, with_statement
from __future__ import unicode_literals
| 35.297778 | 80 | 0.568623 | """Deepstream event handling."""
from __future__ import absolute_import, division, print_function, with_statement
from __future__ import unicode_literals
from deepstreampy.constants import actions
from deepstreampy.constants import topic as topic_constants
from deepstreampy.constants import event as event_constants
f... | 0 | 0 | 0 | 7,298 | 0 | 0 | 0 | 242 | 246 |
0a692b3cd1f1f666974a59c77dda0ffc0636b6d0 | 12,132 | py | Python | research/cv/Yolact++/train.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 77 | 2021-10-15T08:32:37.000Z | 2022-03-30T13:09:11.000Z | research/cv/Yolact++/train.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 3 | 2021-10-30T14:44:57.000Z | 2022-02-14T06:57:57.000Z | research/cv/Yolact++/train.py | mindspore-ai/models | 9127b128e2961fd698977e918861dadfad00a44c | [
"Apache-2.0"
] | 24 | 2021-10-15T08:32:45.000Z | 2022-03-24T18:45:20.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 49.518367 | 119 | 0.639219 | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 0 | 0 | 0 | 504 | 0 | 368 | 0 | 39 | 68 |
ac93c64ddf02c37ad59edc10df03a3fbb2005e63 | 5,860 | py | Python | model/Birdview/test.py | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | 1 | 2020-11-21T16:39:51.000Z | 2020-11-21T16:39:51.000Z | model/Birdview/test.py | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | null | null | null | model/Birdview/test.py | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | 1 | 2020-12-13T14:51:44.000Z | 2020-12-13T14:51:44.000Z | import argparse
import torch.nn as nn
parser = argparse.ArgumentParser(description='WayzNetVlad')
# parser.add_argument('--mode', type=str, default='train', help='Mode', choices=['train', 'validation'])
# parser.add_argument('--batch_size', type=int, default=2, help='batch_size')
parser.add_argument('--dataset_dir', t... | 47.258065 | 123 | 0.690785 | import argparse
import os
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from PIL import Image
from torchvision.models import resnet18
from dataset import *
from netvlad import EmbedNet
from netvlad import NetVLAD
parser = argparse.ArgumentParser(description='WayzNetVlad')
# parser.add_argument('... | 0 | 0 | 0 | 0 | 0 | 3,607 | 0 | 20 | 224 |
e0a74c8b5c04dabcccb68f37533b7fb8c88dedad | 5,112 | py | Python | runtool/tests/test_transformations/test_recurse_config.py | arangatang/gluon-ts-tools | 26509b853ddf1039993779f6049eafd4ec434ff7 | [
"Apache-2.0"
] | null | null | null | runtool/tests/test_transformations/test_recurse_config.py | arangatang/gluon-ts-tools | 26509b853ddf1039993779f6049eafd4ec434ff7 | [
"Apache-2.0"
] | null | null | null | runtool/tests/test_transformations/test_recurse_config.py | arangatang/gluon-ts-tools | 26509b853ddf1039993779f6049eafd4ec434ff7 | [
"Apache-2.0"
] | null | null | null | from runtool.recurse_config import (Versions)
def transform(node: dict):
"""
Converts node to a version object if the node has a key "versions"
else it multiplies the node by 2 if the node has key "double"
"""
if "version" in node:
return Versions(node["version"])
elif "double" in node... | 27.336898 | 70 | 0.385563 | from runtool.recurse_config import (
recursive_apply,
recursive_apply_dict,
recursive_apply_list,
Versions,
)
def transform(node: dict):
"""
Converts node to a version object if the node has a key "versions"
else it multiplies the node by 2 if the node has key "double"
"""
if "vers... | 0 | 0 | 0 | 0 | 0 | 4,372 | 0 | 80 | 276 |
07ac0d51e2432251bef3d9eac592921ad7a815a7 | 998 | py | Python | 5-python-dataviz-homework/plotting_charts_with_matplotlib.py | eduardohl/CEBD-1160-winter-2020-code | ffafffff5100b338b7a4842fc05abd7234732d8e | [
"MIT"
] | 1 | 2020-02-11T04:29:14.000Z | 2020-02-11T04:29:14.000Z | 5-python-dataviz-homework/plotting_charts_with_matplotlib.py | eduardohl/CEBD-1160-winter-2020-code | ffafffff5100b338b7a4842fc05abd7234732d8e | [
"MIT"
] | null | null | null | 5-python-dataviz-homework/plotting_charts_with_matplotlib.py | eduardohl/CEBD-1160-winter-2020-code | ffafffff5100b338b7a4842fc05abd7234732d8e | [
"MIT"
] | 5 | 2020-01-18T21:22:04.000Z | 2020-02-27T23:00:07.000Z | # 1 Still using the same DataFrame from the previous exercise insurance.csv plot the chart for charges and save it
# as charges_plot.png
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('data/insurance.csv', header=0)
plt.plot(df['charges'])
plt.title('Charges Plot')
plt.ylabel('Charges')
plt.savefi... | 32.193548 | 120 | 0.749499 | # 1 Still using the same DataFrame from the previous exercise insurance.csv plot the chart for charges and save it
# as charges_plot.png
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('data/insurance.csv', header=0)
plt.plot(df['charges'])
plt.title('Charges Plot')
plt.ylabel('Charges')
plt.savefi... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
a54c7c2864b2796866b44586d232abc572d83805 | 36,346 | py | Python | bank/database/operate.py | zpf0117b/BankingManagementSystem | 7e6c99e827bb0899d2389e8893311a557c336ea9 | [
"MIT"
] | 3 | 2020-09-03T12:39:21.000Z | 2021-06-16T02:37:54.000Z | bank/database/operate.py | zpf0117b/BankingManagementSystem | 7e6c99e827bb0899d2389e8893311a557c336ea9 | [
"MIT"
] | 4 | 2021-05-15T11:10:18.000Z | 2021-05-15T11:10:26.000Z | bank/database/operate.py | zpf0117b/BankingManagementSystem | 7e6c99e827bb0899d2389e8893311a557c336ea9 | [
"MIT"
] | null | null | null | import sys
from os import path
d = path.dirname(__file__) #
sys.path.append(d)
| 41.349261 | 313 | 0.615749 | import sys
from os import path
d = path.dirname(__file__) # 获取当前路径
sys.path.append(d)
from model import BankClient, BankName, Staff, Charge, Cheque, Loan, Lend, Payments, PossessCheque, Saving, PossessSaving, database
from datetime import date, datetime, timedelta
from peewee import DatabaseError, DataError, IntegrityE... | 477 | 0 | 0 | 32,861 | 0 | 2,714 | 0 | 282 | 247 |
581d89ac51782d24c0741d4f545d4bc1a7f38aa1 | 297 | py | Python | tests/settings_test.py | jamesperes/autonomiaBot | bbc90497d29fa16a85477281f87ceaeb7c3e55fc | [
"MIT"
] | 8 | 2018-03-22T21:46:30.000Z | 2021-04-07T07:06:05.000Z | tests/settings_test.py | jamesperes/autonomiaBot | bbc90497d29fa16a85477281f87ceaeb7c3e55fc | [
"MIT"
] | 42 | 2018-03-23T17:20:38.000Z | 2021-06-02T01:19:51.000Z | tests/settings_test.py | jamesperes/autonomiaBot | bbc90497d29fa16a85477281f87ceaeb7c3e55fc | [
"MIT"
] | 3 | 2018-03-26T20:30:53.000Z | 2020-01-18T13:52:32.000Z | # application configuration
DEBUG = True
TESTING = True
LOG_LEVEL = "DEBUG"
WEBHOOK_DOMAIN = "localhost:5000"
WEBHOOK_PATH = "hook"
CHAT_ID = -123456
# Third party configuration
API_TOKEN = "133505823:AAHZFMHno3mzVLErU5b5jJvaeG--qUyLyG0"
REDIS_URL = ""
| 19.8 | 59 | 0.767677 | # application configuration
from autonomia.settings import * # noqa
DEBUG = True
TESTING = True
LOG_LEVEL = "DEBUG"
WEBHOOK_DOMAIN = "localhost:5000"
WEBHOOK_PATH = "hook"
CHAT_ID = -123456
# Third party configuration
API_TOKEN = "133505823:AAHZFMHno3mzVLErU5b5jJvaeG--qUyLyG0"
REDIS_URL = ""
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 30 |
af56ccce5a7ef323f67d85aaae8849e66a22a7f8 | 27,895 | py | Python | napalm_yang/models/openconfig/network_instances/network_instance/mpls/lsps/constrained_path/tunnels/tunnel/p2p_tunnel_attributes/p2p_primary_path/p2p_primary_path_/candidate_secondary_paths/candidate_secondary_path/state/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 64 | 2016-10-20T15:47:18.000Z | 2021-11-11T11:57:32.000Z | napalm_yang/models/openconfig/network_instances/network_instance/mpls/lsps/constrained_path/tunnels/tunnel/p2p_tunnel_attributes/p2p_primary_path/p2p_primary_path_/candidate_secondary_paths/candidate_secondary_path/state/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 126 | 2016-10-05T10:36:14.000Z | 2019-05-15T08:43:23.000Z | napalm_yang/models/openconfig/network_instances/network_instance/mpls/lsps/constrained_path/tunnels/tunnel/p2p_tunnel_attributes/p2p_primary_path/p2p_primary_path_/candidate_secondary_paths/candidate_secondary_path/state/__init__.py | ckishimo/napalm-yang | 8f2bd907bd3afcde3c2f8e985192de74748baf6c | [
"Apache-2.0"
] | 63 | 2016-11-07T15:23:08.000Z | 2021-09-22T14:41:16.000Z | # -*- coding: utf-8 -*-
import six
# PY3 support of some PY2 keywords (needs improved)
if six.PY3:
import builtins as __builtin__
long = int
elif six.PY2:
| 42.587786 | 423 | 0.624628 | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | 0 | 0 | 0 | 27,125 | 0 | 0 | 0 | 267 | 336 |
89fc6f1de5be83c46722245878ac20f1102c60e8 | 555 | py | Python | socialite/preprocess/get_max_degree.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | socialite/preprocess/get_max_degree.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | socialite/preprocess/get_max_degree.py | Wangqge/PowerLog_ae | 8546afbcb9a77d516e8c3f0dfbaf2041a4b888f9 | [
"Apache-2.0"
] | null | null | null | import sys
if len(sys.argv) != 2:
print 'usage: [edge pair input path]'
exit(1)
with open(sys.argv[1], 'r') as fi:
node_dict = {}
for line in fi:
tmp = line.split()
src = int(tmp[0])
if src not in node_dict:
node_dict[src] = 1
else:
node_dict[src]... | 23.125 | 41 | 0.538739 | import sys
if len(sys.argv) != 2:
print 'usage: [edge pair input path]'
exit(1)
with open(sys.argv[1], 'r') as fi:
node_dict = {}
for line in fi:
tmp = line.split()
src = int(tmp[0])
if src not in node_dict:
node_dict[src] = 1
else:
node_dict[src]... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
1658ee280f3440ab4466219888be9de4ead0bb43 | 2,159 | py | Python | derivativetest.py | syangliu/Newton-MR-grad | bf17cac404f0d0c92d5852e265162cc82fe3fefd | [
"Apache-2.0"
] | 1 | 2022-03-31T05:15:31.000Z | 2022-03-31T05:15:31.000Z | derivativetest.py | syangliu/Newton-MR | bf17cac404f0d0c92d5852e265162cc82fe3fefd | [
"Apache-2.0"
] | null | null | null | derivativetest.py | syangliu/Newton-MR | bf17cac404f0d0c92d5852e265162cc82fe3fefd | [
"Apache-2.0"
] | 1 | 2022-03-20T00:11:03.000Z | 2022-03-20T00:11:03.000Z | import numpy as np
import numpy.random as rand
import matplotlib.pyplot as plt
from numpy.linalg import norm
def derivativetest(fun, x0):
"""
Test the gradient and Hessian of a function. A large proportion
parallel in the middle of both plots means accuraccy.
INPUTS:
fun: a function handle tha... | 29.175676 | 76 | 0.548865 | import numpy as np
import numpy.random as rand
import matplotlib.pyplot as plt
from numpy.linalg import norm
def derivativetest(fun, x0):
"""
Test the gradient and Hessian of a function. A large proportion
parallel in the middle of both plots means accuraccy.
INPUTS:
fun: a function handle tha... | 0 | 0 | 0 | 0 | 0 | 75 | 0 | 0 | 23 |
dc248dbf9ee291025d20284dbe3dde3da67d21fa | 6,222 | py | Python | dt_stripe/migrations/0001_initial.py | itsnamgyu/api-demo | ddf726928bd7f1021143c4dbb530e3017a3edda9 | [
"MIT"
] | 1 | 2019-06-02T08:20:38.000Z | 2019-06-02T08:20:38.000Z | dt_stripe/migrations/0001_initial.py | itsnamgyu/api-demo | ddf726928bd7f1021143c4dbb530e3017a3edda9 | [
"MIT"
] | 12 | 2019-07-21T18:40:35.000Z | 2019-10-05T19:57:49.000Z | dt_stripe/migrations/0001_initial.py | itsnamgyu/django-template | 20f64974e0dda69cf8dcf0dac9e0a309f200fb61 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-09-23 23:32
| 69.133333 | 272 | 0.624558 | # Generated by Django 2.2.4 on 2019-09-23 23:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
... | 0 | 0 | 0 | 6,075 | 0 | 0 | 0 | 30 | 68 |
ae20cf10f08092916ececf243f8198d8ffd52c36 | 2,915 | py | Python | tests/sett/test_upgrade_crv_setts.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 99 | 2020-12-02T08:40:48.000Z | 2022-03-15T05:21:06.000Z | tests/sett/test_upgrade_crv_setts.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 115 | 2020-12-15T07:15:39.000Z | 2022-03-28T22:21:03.000Z | tests/sett/test_upgrade_crv_setts.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 56 | 2020-12-11T06:50:04.000Z | 2022-02-21T09:17:38.000Z | from rich.console import Console
console = Console()
| 32.388889 | 71 | 0.797942 | import pytest
from brownie import Contract, chain, interface
from rich.console import Console
from helpers.sett.SnapshotManager import SnapshotManager
from helpers.sett.simulation.SimulationManager import SimulationManager
from helpers.registry import registry
from helpers.registry.artifacts import artifacts
from help... | 0 | 1,658 | 0 | 0 | 0 | 0 | 0 | 870 | 332 |
75331b011bd2fbc98c3034f1d5e7ec1e561ea62b | 780 | py | Python | ursinanetworking/examples/QTChat/server.py | nutanstrek/UrsinaNetworking | f505f073f9a25f9f79fa0a1c059aeed6661377e0 | [
"MIT"
] | 38 | 2021-04-06T05:07:24.000Z | 2022-03-29T01:44:10.000Z | ursinanetworking/examples/QTChat/server.py | nutanstrek/UrsinaNetworking | f505f073f9a25f9f79fa0a1c059aeed6661377e0 | [
"MIT"
] | 3 | 2021-04-11T02:24:19.000Z | 2022-03-29T03:34:19.000Z | ursinanetworking/examples/QTChat/server.py | nutanstrek/UrsinaNetworking | f505f073f9a25f9f79fa0a1c059aeed6661377e0 | [
"MIT"
] | 6 | 2021-04-06T12:01:25.000Z | 2022-03-28T20:12:10.000Z |
Server = UrsinaNetworkingServer("localhost", 25565)
while True:
Server.process_net_events() | 30 | 85 | 0.694872 | from ursinanetworking import *
Server = UrsinaNetworkingServer("localhost", 25565)
def broadcast_message(message, author):
Server.broadcast("receive_message", {"message" : message, "author" : author})
@Server.event
def onClientConnected(client):
client.registered = False
#broadcast_message(f"{client} con... | 4 | 481 | 0 | 0 | 0 | 100 | 0 | 9 | 91 |
43e6bb65360a0bc2d24721dd4aa6582d161eb065 | 2,575 | py | Python | src/day8.py | chao-mu/aoc2021 | 9cb0590a8de100f260a78f22e50d00d6acb13ae4 | [
"CC0-1.0"
] | null | null | null | src/day8.py | chao-mu/aoc2021 | 9cb0590a8de100f260a78f22e50d00d6acb13ae4 | [
"CC0-1.0"
] | null | null | null | src/day8.py | chao-mu/aoc2021 | 9cb0590a8de100f260a78f22e50d00d6acb13ae4 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
Numbers = {
"abcefg": 0,
"cf": 1,
"acdeg": 2,
"acdfg": 3,
"bcdf": 4,
"abdfg": 5,
"abdefg": 6,
"acf": 7,
"abcdefg": 8,
"abcdfg": 9
}
if __name__ == "__main__":
main()
| 22.198276 | 76 | 0.553398 | #!/usr/bin/env python3
from aoc2021.util import print_solutions, import_strs
from math import inf
from itertools import permutations
import copy
def part_1(clock):
uniqs = 0
for face in clock:
_, signals = face
for signal in signals:
if len(signal) in [2, 4, 3, 7]:
... | 0 | 0 | 0 | 0 | 0 | 2,076 | 0 | 34 | 230 |
4344fa9db3e3548e4b2450324536e75bc3e05d90 | 1,660 | py | Python | CUT/experiments/__init__.py | Theomat/colorization-av-enseirb-2020 | c54c2388ea39a62289fa2f1c51b4757bf55d3c4f | [
"Apache-2.0"
] | 1,422 | 2020-07-31T00:31:19.000Z | 2022-03-31T11:35:26.000Z | CUT/experiments/__init__.py | Theomat/colorization-av-enseirb-2020 | c54c2388ea39a62289fa2f1c51b4757bf55d3c4f | [
"Apache-2.0"
] | 123 | 2020-07-31T04:16:03.000Z | 2022-03-21T14:02:20.000Z | CUT/experiments/__init__.py | Theomat/colorization-av-enseirb-2020 | c54c2388ea39a62289fa2f1c51b4757bf55d3c4f | [
"Apache-2.0"
] | 324 | 2020-07-31T00:40:11.000Z | 2022-03-31T10:01:10.000Z | import os
if __name__ == "__main__":
import sys
import pickle
assert len(sys.argv) >= 3
name = sys.argv[1]
Launcher = find_launcher_using_name(name)
cache = "/tmp/tmux_launcher/{}".format(name)
if os.path.isfile(cache):
instance = pickle.load(open(cache, 'r'))
else:
... | 30.181818 | 80 | 0.633735 | import os
import importlib
def find_launcher_using_name(launcher_name):
# cur_dir = os.path.dirname(os.path.abspath(__file__))
# pythonfiles = glob.glob(cur_dir + '/**/*.py')
launcher_filename = "experiments.{}_launcher".format(launcher_name)
launcherlib = importlib.import_module(launcher_filename)
... | 0 | 0 | 0 | 0 | 0 | 927 | 0 | -5 | 45 |
f2c84250d49b0b78d8283962f1d175aafa4b43ad | 2,366 | py | Python | tools/gyp_jc3_handling_editor.py | xforce/jc3-handling-editor | 48485e91ef3ce0e2849ae5f5aae1ef40f989c4c6 | [
"MIT"
] | 4 | 2016-11-25T12:45:35.000Z | 2020-02-20T21:55:49.000Z | tools/gyp_jc3_handling_editor.py | xforce/jc3-handling-editor | 48485e91ef3ce0e2849ae5f5aae1ef40f989c4c6 | [
"MIT"
] | 6 | 2016-11-21T19:32:47.000Z | 2017-03-21T17:18:43.000Z | tools/gyp_jc3_handling_editor.py | xforce/jc3-handling-editor | 48485e91ef3ce0e2849ae5f5aae1ef40f989c4c6 | [
"MIT"
] | 2 | 2016-11-20T21:05:41.000Z | 2022-01-31T02:19:12.000Z | #!/usr/bin/env python
import glob
import os
import shlex
import sys
import platform
script_dir = os.path.dirname(__file__)
jc3_handling_editor_root = os.path.normpath(os.path.join(script_dir, os.pardir))
sys.path.insert(0, os.path.abspath(os.path.join(jc3_handling_editor_root, 'tools')))
sys.path.insert(0, os.path.j... | 35.313433 | 99 | 0.724852 | #!/usr/bin/env python
import glob
import os
import shlex
import sys
import platform
script_dir = os.path.dirname(__file__)
jc3_handling_editor_root = os.path.normpath(os.path.join(script_dir, os.pardir))
sys.path.insert(0, os.path.abspath(os.path.join(jc3_handling_editor_root, 'tools')))
sys.path.insert(0, os.path.j... | 0 | 0 | 0 | 0 | 0 | 80 | 0 | 0 | 23 |
04f5b502729ac86c25e910f36933883cca287f3f | 627 | py | Python | sliceprovider/ResourceManagement.py | fernnf/idc | 6abf0e55467ab2b2cd3a22b869b3e0698ebfc5d2 | [
"Apache-2.0"
] | null | null | null | sliceprovider/ResourceManagement.py | fernnf/idc | 6abf0e55467ab2b2cd3a22b869b3e0698ebfc5d2 | [
"Apache-2.0"
] | 3 | 2018-08-16T14:35:11.000Z | 2018-08-16T14:52:12.000Z | sliceprovider/ResourceManagement.py | fernnf/idc | 6abf0e55467ab2b2cd3a22b869b3e0698ebfc5d2 | [
"Apache-2.0"
] | null | null | null | """
Res. & VM Mgmt. component of the Infrastructure Management & Abstraction (IMA)
Interacts with Docker to replicate the container from origin to destiny
"""
| 27.26087 | 78 | 0.740032 | """
Res. & VM Mgmt. component of the Infrastructure Management & Abstraction (IMA)
Interacts with Docker to replicate the container from origin to destiny
"""
from docker import APIClient
def replicateContainer(containerID, orig_url, dest_url):
orig_client = APIClient(base_url=orig_url, tlf=False)
dest_client = AP... | 0 | 0 | 0 | 0 | 0 | 416 | 0 | 7 | 45 |
1207bd1d9849c7d09ef1136111f4fbe44b5966be | 3,921 | py | Python | src/parser.py | zhexiongliu/Nasdaq-ITCH-5.0-VWAP | aa78482171d2172d4feeb826b78e00dee195c181 | [
"MIT"
] | 9 | 2019-06-04T14:08:17.000Z | 2021-11-24T12:02:57.000Z | src/parser.py | zhexiongliu/Nasdaq-ITCH-5.0-VWAP | aa78482171d2172d4feeb826b78e00dee195c181 | [
"MIT"
] | null | null | null | src/parser.py | zhexiongliu/Nasdaq-ITCH-5.0-VWAP | aa78482171d2172d4feeb826b78e00dee195c181 | [
"MIT"
] | 2 | 2019-10-06T01:47:26.000Z | 2022-01-10T13:20:58.000Z | import gzip
import os
if __name__ == '__main__':
bin_data = gzip.open(os.path.join('..', 'res', '08302019.NASDAQ_ITCH50.gz'), 'rb')
msg_header = bin_data.read(1)
itch = ITCH()
while msg_header:
if msg_header == "S":
message = itch.get_binary(11)
elif msg_header == "R":
... | 29.261194 | 115 | 0.530477 | import gzip
import struct
import datetime
import pandas as pd
import os
class ITCH():
def __init__(self):
self.temp = []
self.flag = None
if not os.path.exists(os.path.join('.', 'output')):
os.makedirs(os.path.join('.', 'output'))
def get_binary(self, size):
read ... | 0 | 0 | 0 | 2,040 | 0 | 0 | 0 | -16 | 89 |
c5ab311027e4d350a3a36cc33e8cee4864e34548 | 198 | py | Python | 4.py | lzbferrari/ljb_python | e545891c707e412bb12601c94b456be721c85573 | [
"MIT"
] | null | null | null | 4.py | lzbferrari/ljb_python | e545891c707e412bb12601c94b456be721c85573 | [
"MIT"
] | null | null | null | 4.py | lzbferrari/ljb_python | e545891c707e412bb12601c94b456be721c85573 | [
"MIT"
] | null | null | null | '''
5103050
'''
ninjas = 5
if ninjas < 10:
print('')
elif ninjas < 30:
print('')
elif ninjas < 50:
print('')
| 15.230769 | 61 | 0.681818 | '''
创造一个变量他等于5如果这个变量小于10会打印我打得过那些忍者,小于30会打印有点难,不过我能应付如果小于50会打印太多了
'''
ninjas = 5
if ninjas < 10:
print('我打得过那些忍者')
elif ninjas < 30:
print('有点难,不过我能应付')
elif ninjas < 50:
print('太多了')
| 225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
0d8cdabb6bfa49bc5a270e7bc3fa38275087f891 | 1,273 | py | Python | tests/ut/python/parallel/test_auto_parallel_inference.py | doc22940/mindspore | 21bcdcd8adb97b9171b2822a7ed2c4c138c99607 | [
"Apache-2.0"
] | 1 | 2020-05-13T11:31:21.000Z | 2020-05-13T11:31:21.000Z | tests/ut/python/parallel/test_auto_parallel_inference.py | doc22940/mindspore | 21bcdcd8adb97b9171b2822a7ed2c4c138c99607 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/parallel/test_auto_parallel_inference.py | doc22940/mindspore | 21bcdcd8adb97b9171b2822a7ed2c4c138c99607 | [
"Apache-2.0"
] | null | null | null |
import mindspore.nn as nn | 34.405405 | 88 | 0.728987 | import numpy as np
import mindspore.nn as nn
from mindspore import Tensor, context
from mindspore.ops import operations as P
from mindspore.nn import WithLossCell, TrainOneStepCell
from mindspore.nn import Momentum
from mindspore.parallel._cost_model_context import set_cost_model_context
class Net(nn.Cell):
def _... | 0 | 0 | 0 | 250 | 0 | 688 | 0 | 131 | 178 |
1102cf09a961527fe7f8f6eccb81022c752e0bfc | 957 | py | Python | subset.py | zygmuntz/phraug2 | ef2a6d42008b31024407208d2b9798ddddc2b7a5 | [
"BSD-2-Clause"
] | 190 | 2015-01-14T15:32:30.000Z | 2022-02-17T08:18:27.000Z | subset.py | zygmuntz/phraug2 | ef2a6d42008b31024407208d2b9798ddddc2b7a5 | [
"BSD-2-Clause"
] | 6 | 2015-04-24T17:07:08.000Z | 2020-01-13T10:07:37.000Z | subset.py | zygmuntz/phraug2 | ef2a6d42008b31024407208d2b9798ddddc2b7a5 | [
"BSD-2-Clause"
] | 69 | 2015-01-25T19:49:42.000Z | 2021-02-10T05:24:34.000Z | 'Save a subset of lines from an input file; start at offset and count n lines'
'default 100 lines starting from 0'
import sys
import argparse
parser = argparse.ArgumentParser( description = "Save a subset of lines from the input file to the output file" )
parser.add_argument( "input_file", help = "path to input file"... | 19.9375 | 113 | 0.668757 | 'Save a subset of lines from an input file; start at offset and count n lines'
'default 100 lines starting from 0'
import sys
import argparse
parser = argparse.ArgumentParser( description = "Save a subset of lines from the input file to the output file" )
parser.add_argument( "input_file", help = "path to input file"... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
6e26e1f0af0b391c2d44a64eeef08c7927ec934b | 13,401 | py | Python | pygw2/core/models/character.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | 1 | 2020-01-19T21:27:53.000Z | 2020-01-19T21:27:53.000Z | pygw2/core/models/character.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | 1 | 2021-12-09T21:18:13.000Z | 2021-12-09T21:18:13.000Z | pygw2/core/models/character.py | Natsku123/pygw2 | c8e579c07f4d33c7afadc8dee510be0a5e71d16e | [
"MIT"
] | null | null | null | from typing import TYPE_CHECKING
if TYPE_CHECKING:
| 23.428322 | 85 | 0.676367 | import datetime
from typing import Optional, List, Union, TYPE_CHECKING
from pygw2.core.enums import *
from pygw2.utils import LazyLoader, BaseModel
if TYPE_CHECKING:
from pygw2.core.models.pvp import PvPEquipment
from pygw2.core.models.sab import SAB
from pygw2.core.models.guild import Guild
from pyg... | 0 | 3,875 | 0 | 8,187 | 0 | 0 | 0 | 244 | 1,011 |
0c09238973033b093fa0969c6f3f3f36233309e5 | 1,906 | py | Python | src/sentry/api/bases/team.py | augustand/sentry | 9e5e0b6744d878d623f483661e40c49bb902047c | [
"BSD-3-Clause"
] | 1 | 2021-08-10T06:07:13.000Z | 2021-08-10T06:07:13.000Z | src/sentry/api/bases/team.py | augustand/sentry | 9e5e0b6744d878d623f483661e40c49bb902047c | [
"BSD-3-Clause"
] | 5 | 2019-12-28T18:13:59.000Z | 2022-03-02T04:32:45.000Z | src/sentry/api/bases/team.py | augustand/sentry | 9e5e0b6744d878d623f483661e40c49bb902047c | [
"BSD-3-Clause"
] | 1 | 2017-04-08T04:09:18.000Z | 2017-04-08T04:09:18.000Z | from __future__ import absolute_import
| 31.245902 | 83 | 0.643757 | from __future__ import absolute_import
from sentry.api.base import Endpoint
from sentry.api.exceptions import ResourceDoesNotExist
from sentry.app import raven
from sentry.models import Team, TeamStatus
from sentry.models.apikey import ROOT_KEY
from .organization import OrganizationPermission
class TeamPermission(O... | 0 | 0 | 0 | 1,562 | 0 | 0 | 0 | 123 | 180 |
8e5dd8d936892226fc66c24989ea52dcf046dedb | 663 | py | Python | PyNEng/To-Do Task 5.2b.py | fugrusha/education | 89712a93e0727e94543cb252482920a503135c7f | [
"MIT"
] | null | null | null | PyNEng/To-Do Task 5.2b.py | fugrusha/education | 89712a93e0727e94543cb252482920a503135c7f | [
"MIT"
] | null | null | null | PyNEng/To-Do Task 5.2b.py | fugrusha/education | 89712a93e0727e94543cb252482920a503135c7f | [
"MIT"
] | null | null | null | # 5.2b
london_co = {
'r1' : {
'location': '21 New Globe Walk',
'vendor': 'Cisco',
'model': '4451',
'ios': '15.4',
'ip': '10.255.0.1'
},
'r2' : {
'location': '21 New Globe Walk',
'vendor': 'Cisco',
'model': '4451',
'ios': '15.4',
'ip': '10.255.0.2'
},
'sw1' :... | 20.090909 | 54 | 0.493213 | # Задание 5.2b
london_co = {
'r1' : {
'location': '21 New Globe Walk',
'vendor': 'Cisco',
'model': '4451',
'ios': '15.4',
'ip': '10.255.0.1'
},
'r2' : {
'location': '21 New Globe Walk',
'vendor': 'Cisco',
'model': '4451',
'ios': '15.4',
'ip': '10.255.0.2'
},
... | 14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
86bc01aa6a0d9b9a74b765460b3330e59f59daef | 1,857 | py | Python | src/snovault/elasticsearch/searches/interfaces.py | caseylitton/snovault | cfaace963bc9b1ca87bca4739b380c559026bcfb | [
"MIT"
] | null | null | null | src/snovault/elasticsearch/searches/interfaces.py | caseylitton/snovault | cfaace963bc9b1ca87bca4739b380c559026bcfb | [
"MIT"
] | null | null | null | src/snovault/elasticsearch/searches/interfaces.py | caseylitton/snovault | cfaace963bc9b1ca87bca4739b380c559026bcfb | [
"MIT"
] | null | null | null | ADVANCED_QUERY_KEY = 'advancedQuery'
ALL = 'all'
AND = 'AND'
AND_JOIN = ' AND '
AND_NOT_JOIN = ' AND NOT '
APPENDED = 'appended'
APPLICATION_JSON = 'application/json'
ASC = 'asc'
AT_ID = '@id'
AT_CONTEXT = '@context'
AT_TYPE = '@type'
AUDIT = 'audit'
AUDIT_TITLE = 'Audit'
BOOL = 'bool'
BOOST_VALUES = 'boost_values'
BUC... | 21.102273 | 51 | 0.706516 | ADVANCED_QUERY_KEY = 'advancedQuery'
ALL = 'all'
AND = 'AND'
AND_JOIN = ' AND '
AND_NOT_JOIN = ' AND NOT '
APPENDED = 'appended'
APPLICATION_JSON = 'application/json'
ASC = 'asc'
AT_ID = '@id'
AT_CONTEXT = '@context'
AT_TYPE = '@type'
AUDIT = 'audit'
AUDIT_TITLE = 'Audit'
BOOL = 'bool'
BOOST_VALUES = 'boost_values'
BUC... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
6c171d09be3d70b2660fd3b47e32ad03e08cc1fc | 29,122 | py | Python | src/charm.py | stgraber/charm-lxd | 48c4b56a50902f9dcaebe6d3f80911927bab09ab | [
"Apache-2.0"
] | null | null | null | src/charm.py | stgraber/charm-lxd | 48c4b56a50902f9dcaebe6d3f80911927bab09ab | [
"Apache-2.0"
] | null | null | null | src/charm.py | stgraber/charm-lxd | 48c4b56a50902f9dcaebe6d3f80911927bab09ab | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""LXD charm."""
import logging
from ops.main import main
logger = logging.getLogger(__name__)
SYSCTL_CONFIGS = {
"fs.aio-max-nr": 524288,
"fs.inotify.max_queued_events": 1048576,
"fs.inotify.max_user_instances": 1048576,
"fs.inotify.max_user_watches": 1048576,
"kernel.dme... | 37.576774 | 99 | 0.571836 | #!/usr/bin/env python3
"""LXD charm."""
import logging
import os
import shutil
import subprocess
import tarfile
import tempfile
from urllib.error import HTTPError, URLError
from urllib.request import urlopen
from ops.charm import (
ActionEvent,
CharmBase,
ConfigChangedEvent,
InstallEvent,
StartEv... | 0 | 0 | 0 | 27,925 | 0 | 0 | 0 | 168 | 244 |
e78f3c1f96b6fb488ed74ffb65acfec6dce420a4 | 5,332 | py | Python | textube.py | mmjakub/textube | 118db7a6734e4484ce9d33916322a912277086ac | [
"BSD-2-Clause"
] | null | null | null | textube.py | mmjakub/textube | 118db7a6734e4484ce9d33916322a912277086ac | [
"BSD-2-Clause"
] | null | null | null | textube.py | mmjakub/textube | 118db7a6734e4484ce9d33916322a912277086ac | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3.9
if __name__ == "__main__":
import argparse
import concurrent.futures as cofu
import logging
import pathlib
parser = argparse.ArgumentParser(
description='Download subtitles for a youtube channel/playlist')
parser.add_argument('-v', '--verbose', action='store_... | 37.027778 | 111 | 0.67123 | #!/usr/bin/env python3.9
import base64
import html
from http.client import HTTPSConnection
import json
import threading
import urllib.parse
class ConnectionManager():
_thread_local = threading.local()
_thread_local.gapis = HTTPSConnection('www.googleapis.com')
_thread_local.yt = HTTPSConnection('www.yout... | 0 | 348 | 0 | 282 | 410 | 1,897 | 0 | -28 | 393 |
fd6f0427dc3f1f96809c38df7ca11b783c62bcca | 6,777 | py | Python | main.py | codewithlennylen/GAS-LAWS | 1420d2e68d029d2fc137cc909b5398e67be4f0c6 | [
"MIT"
] | null | null | null | main.py | codewithlennylen/GAS-LAWS | 1420d2e68d029d2fc137cc909b5398e67be4f0c6 | [
"MIT"
] | null | null | null | main.py | codewithlennylen/GAS-LAWS | 1420d2e68d029d2fc137cc909b5398e67be4f0c6 | [
"MIT"
] | null | null | null | import pygame
pygame.init()
WIDTH, HEIGHT = 960, 700
SCREEN = pygame.display.set_mode((WIDTH, HEIGHT))
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
CLOCK = pygame.time.Clock()
FPS = 30
particles_list = []
container = Container(500, 500)
generate_particles(container, 10)
main... | 35.668421 | 147 | 0.614284 | import pygame
import random
pygame.init()
WIDTH, HEIGHT = 960, 700
SCREEN = pygame.display.set_mode((WIDTH, HEIGHT))
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
RED = (255, 0, 0)
BLUE = (0, 0, 255)
CLOCK = pygame.time.Clock()
FPS = 30
particles_list = []
class Container(object):
def __init__(self, width=600, h... | 0 | 0 | 0 | 4,976 | 0 | 194 | 0 | -8 | 91 |
3363492ff5f446b8195aa3dfd8957d55562fe848 | 4,835 | py | Python | submit_scripts_and_plotting/paper_plots/make_interpretation_plots.py | apizzuto/v2_alert_stacking_FRA | 6b5bd3f6cd1b5e472797a81a389a30198c64cd9f | [
"MIT"
] | null | null | null | submit_scripts_and_plotting/paper_plots/make_interpretation_plots.py | apizzuto/v2_alert_stacking_FRA | 6b5bd3f6cd1b5e472797a81a389a30198c64cd9f | [
"MIT"
] | 4 | 2021-01-08T20:14:23.000Z | 2021-03-25T21:05:15.000Z | submit_scripts_and_plotting/paper_plots/make_interpretation_plots.py | apizzuto/v2_alert_stacking_FRA | 6b5bd3f6cd1b5e472797a81a389a30198c64cd9f | [
"MIT"
] | null | null | null | '''Script to make all interpretation based plots
for the alert followup fast response paper'''
import os
import matplotlib as mpl
from francis import utils
mpl.style.use(utils.initialize_mpl_style())
base_output = os.path.abspath(utils.get_francis_path() + '../figures/paper_plots/') + '/'
palette = sns.light_palette(... | 37.192308 | 96 | 0.583247 | '''Script to make all interpretation based plots
for the alert followup fast response paper'''
import os
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import scipy.stats as st
from francis import utils
from results_utils import *
from francis.universe.universe_plotter import UniversePlott... | 0 | 0 | 0 | 0 | 0 | 3,990 | 0 | 56 | 210 |
b4ffc6d69f9d120135e6f21d3579c97210bec686 | 957 | py | Python | tests/test_igit.py | jmosbacher/igit | 62b613fd5bed28b603160dc998c02106ee4fdef0 | [
"Apache-2.0"
] | null | null | null | tests/test_igit.py | jmosbacher/igit | 62b613fd5bed28b603160dc998c02106ee4fdef0 | [
"Apache-2.0"
] | 107 | 2021-06-28T02:10:11.000Z | 2022-03-30T02:38:03.000Z | tests/test_igit.py | jmosbacher/igit | 62b613fd5bed28b603160dc998c02106ee4fdef0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""Tests for `igit` package."""
# pylint: disable=redefined-outer-name
| 22.255814 | 62 | 0.654127 | #!/usr/bin/env python
"""Tests for `igit` package."""
# pylint: disable=redefined-outer-name
import random
import pytest
import igit
@pytest.fixture(scope="module")
def memory_repo():
return igit.init("memory://igit_test")
def test_interval_tree():
tree = igit.IntervalTree()
tree[1, 10] = 9
asser... | 0 | 72 | 0 | 0 | 0 | 653 | 0 | -26 | 161 |
79a11c886a6c2abb67ccf6ef4d9891b92e62ae1b | 1,191 | py | Python | projects/nncrystal/tools/export_dataset.py | nncrystals/detectron2 | ea5dcbbb135a62807cacded5a381253d1f605427 | [
"Apache-2.0"
] | null | null | null | projects/nncrystal/tools/export_dataset.py | nncrystals/detectron2 | ea5dcbbb135a62807cacded5a381253d1f605427 | [
"Apache-2.0"
] | null | null | null | projects/nncrystal/tools/export_dataset.py | nncrystals/detectron2 | ea5dcbbb135a62807cacded5a381253d1f605427 | [
"Apache-2.0"
] | null | null | null | import argparse
import json
import os
from xml.etree import ElementTree
from cvat.api import CVATAPI
from cvat.argument import cvat_args
from cvat.cvat_xml import cvat_xml_to_coco
if __name__ == '__main__':
parser = argparse.ArgumentParser()
cvat_args(parser)
parser.add_argument("--job_id", action="append... | 34.028571 | 93 | 0.619647 | import argparse
import json
import os
from xml.etree import ElementTree
from cvat.api import CVATAPI
from cvat.argument import cvat_args
from cvat.cvat_xml import cvat_xml_to_coco
if __name__ == '__main__':
parser = argparse.ArgumentParser()
cvat_args(parser)
parser.add_argument("--job_id", action="append... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5522a16200a742cf8ad364ad9d24d6f9e876d0e7 | 1,533 | py | Python | apps/user/views.py | Agrimonia/Mobileshop | 1922572c7652aa85f4676a66fc49e456f560d120 | [
"MIT"
] | 4 | 2017-12-17T13:41:31.000Z | 2018-09-22T06:17:14.000Z | apps/user/views.py | Agrimonia/Mobileshop | 1922572c7652aa85f4676a66fc49e456f560d120 | [
"MIT"
] | 2 | 2017-12-16T08:30:13.000Z | 2020-01-09T03:21:43.000Z | apps/user/views.py | Agrimonia/Mobileshop | 1922572c7652aa85f4676a66fc49e456f560d120 | [
"MIT"
] | 1 | 2017-12-04T13:55:12.000Z | 2017-12-04T13:55:12.000Z | # from django.shortcuts import render
# Create your views here. | 36.5 | 114 | 0.668624 | # from django.shortcuts import render
import json
from rest_framework import status
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import AllowAny
from backend.helpers import InputErrorMessage, JSONResponse
from .models import UserSerialiser, User
... | 0 | 0 | 0 | 1,141 | 0 | 0 | 0 | 127 | 200 |
8bcd980494f45374b1de2cc00e0bbf0dc26ca6bd | 18,357 | py | Python | kafkaesk/consumer.py | onna/kafkaesk | 31480c476a420faebc23cd763b4b039b9378c9f6 | [
"BSD-2-Clause"
] | 24 | 2020-05-18T08:46:18.000Z | 2021-11-01T12:51:54.000Z | kafkaesk/consumer.py | onna/kafkaesk | 31480c476a420faebc23cd763b4b039b9378c9f6 | [
"BSD-2-Clause"
] | 40 | 2020-05-18T20:50:46.000Z | 2021-08-24T17:28:29.000Z | kafkaesk/consumer.py | onna/kafkaesk | 31480c476a420faebc23cd763b4b039b9378c9f6 | [
"BSD-2-Clause"
] | 3 | 2020-09-01T12:08:04.000Z | 2021-01-05T10:11:22.000Z |
import aiokafka
import functools
import inspect
import logging
import opentracing
import typing
if typing.TYPE_CHECKING: # pragma: no cover
from .app import Application
else:
Application = None
logger = logging.getLogger(__name__)
def build_handler(
coro: typing.Callable, app: "Application", con... | 36.935614 | 100 | 0.611538 | from .exceptions import ConsumerUnhealthyException
from .exceptions import HandlerTaskCancelled
from .exceptions import StopConsumer
from .exceptions import UnhandledMessage
from .metrics import CONSUMED_MESSAGE_TIME
from .metrics import CONSUMED_MESSAGES
from .metrics import CONSUMED_MESSAGES_BATCH_SIZE
from .metrics ... | 0 | 71 | 11,154 | 3,567 | 0 | 1,224 | 0 | 212 | 561 |
91abba3d2adc0ce3668a924da98190df043dc094 | 3,661 | py | Python | public_data/migrations/0018_auto_20210926_2332.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | null | null | null | public_data/migrations/0018_auto_20210926_2332.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | 3 | 2022-02-10T11:47:58.000Z | 2022-02-23T18:50:24.000Z | public_data/migrations/0018_auto_20210926_2332.py | MTES-MCT/sparte | 3b8ae6d21da81ca761d64ae9dfe2c8f54487211c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-09-26 23:32
| 32.114035 | 85 | 0.523627 | # Generated by Django 3.2.5 on 2021-09-26 23:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("public_data", "0017_auto_20210924_2219"),
]
operations = [
migrations.RemoveField(
model_name="artificielle2018",
na... | 8 | 0 | 0 | 3,543 | 0 | 0 | 0 | 19 | 46 |
1047e9d75e176b88cd65293400cd5447cff92024 | 15,110 | py | Python | ebook_dl/scraper.py | glenlancer/ebook-dl | 9a8fa9e700e15727de64ecd4219dcb9c2a09c702 | [
"MIT"
] | null | null | null | ebook_dl/scraper.py | glenlancer/ebook-dl | 9a8fa9e700e15727de64ecd4219dcb9c2a09c702 | [
"MIT"
] | null | null | null | ebook_dl/scraper.py | glenlancer/ebook-dl | 9a8fa9e700e15727de64ecd4219dcb9c2a09c702 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- conding:utf-8 -*-
| 40.509383 | 131 | 0.646989 | #!/usr/bin/python3
# -*- conding:utf-8 -*-
from . import config
from .thread_manager import ThreadManager
from .db import Db
from .db import BookInfo
import os
import re
import typer
import time
import requests
import logging
import rich
from urllib.parse import quote
from tomd import Tomd
from bs4 import BeautifulSo... | 0 | 8,524 | 0 | 6,240 | 0 | 0 | 0 | -30 | 333 |
d2c0be59550e7842db850111f2cf4186a92e7a8f | 87 | py | Python | py_proj/__init__.py | maryno-net/py-project | a8db26494087a9a290553ba0bfaa692c9000dde1 | [
"MIT"
] | null | null | null | py_proj/__init__.py | maryno-net/py-project | a8db26494087a9a290553ba0bfaa692c9000dde1 | [
"MIT"
] | null | null | null | py_proj/__init__.py | maryno-net/py-project | a8db26494087a9a290553ba0bfaa692c9000dde1 | [
"MIT"
] | null | null | null | """
py_proj
~~~~~~~
.
"""
__version__ = '0.0.0'
| 7.909091 | 28 | 0.471264 | """
py_proj
~~~~~~~
Пустой проект на питоне.
"""
__version__ = '0.0.0'
| 40 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
6f95a6f47ed3c2841f65cdd72753895f142c67aa | 7,151 | py | Python | tests/test_pybbcsig.py | beyond-blockchain/libbbcsig | 865e7069c682f9fdcea01059171d618bd9dd501e | [
"Apache-2.0"
] | null | null | null | tests/test_pybbcsig.py | beyond-blockchain/libbbcsig | 865e7069c682f9fdcea01059171d618bd9dd501e | [
"Apache-2.0"
] | null | null | null | tests/test_pybbcsig.py | beyond-blockchain/libbbcsig | 865e7069c682f9fdcea01059171d618bd9dd501e | [
"Apache-2.0"
] | 1 | 2021-08-04T10:00:43.000Z | 2021-08-04T10:00:43.000Z | import os
#import unittest
import pybbcsig
import binascii
def _is_windows():
"""
"""
return os.name == "nt"
sig = pybbcsig.PyBBcSigSecp256k1()
in_privkey = b'\xd6Y\xbc#I\xfe\xed\x00\xe1x\xaa\xb4V\xd0\x9c\x01\xe2\x9a\xfd\xd2a\xabf\xcb\x14\xacM\x8e\xca2=\xbb'
in_pubkey = b'\x04\x0fd(\xdd\x8fR\xf7@\x86\x... | 35.053922 | 912 | 0.654734 | import os
#import unittest
import pybbcsig
import binascii
def _is_windows():
"""
"""
return os.name == "nt"
sig = pybbcsig.PyBBcSigSecp256k1()
in_privkey = b'\xd6Y\xbc#I\xfe\xed\x00\xe1x\xaa\xb4V\xd0\x9c\x01\xe2\x9a\xfd\xd2a\xabf\xcb\x14\xacM\x8e\xca2=\xbb'
in_pubkey = b'\x04\x0fd(\xdd\x8fR\xf7@\x86\x... | 15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9e046cf6fd37e43d4432e2c93cba27b61ffda4e6 | 28 | py | Python | mic/__init__.py | 1x-eng/PROTON | 2f27352f7eb9b46642325d800fcdb98ba5c99596 | [
"BSD-3-Clause"
] | 31 | 2018-09-28T05:00:02.000Z | 2021-11-09T11:06:57.000Z | config/__init__.py | PruthviKumarBK/fitbit_webservice | 68ff427311d888b951d48c98ac35f7b181d416c7 | [
"MIT"
] | 23 | 2019-05-17T08:48:07.000Z | 2020-01-20T22:34:28.000Z | nucleus/istore/__init__.py | 1x-eng/PROTON | 2f27352f7eb9b46642325d800fcdb98ba5c99596 | [
"BSD-3-Clause"
] | 7 | 2018-09-28T16:57:35.000Z | 2019-11-23T07:36:41.000Z | __author__ = 'pruthvi kumar' | 28 | 28 | 0.785714 | __author__ = 'pruthvi kumar' | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
d297f8860252eee12e4a3665b01d5afa296e7b75 | 4,542 | py | Python | goss-testing/scripts/python/pyTest-ips-in-dnsmasq_d-in-correct-order.py | Cray-HPE/csm-testing | 9d72e4a8a11102a037b729afbae0bfdefb4e2805 | [
"MIT"
] | 2 | 2021-12-03T20:56:33.000Z | 2022-01-25T06:57:59.000Z | goss-testing/scripts/python/pyTest-ips-in-dnsmasq_d-in-correct-order.py | Cray-HPE/csm-testing | 9d72e4a8a11102a037b729afbae0bfdefb4e2805 | [
"MIT"
] | 25 | 2021-11-12T18:46:06.000Z | 2022-03-30T20:01:35.000Z | goss-testing/scripts/python/pyTest-ips-in-dnsmasq_d-in-correct-order.py | Cray-HPE/csm-testing | 9d72e4a8a11102a037b729afbae0bfdefb4e2805 | [
"MIT"
] | 1 | 2022-02-23T18:10:46.000Z | 2022-02-23T18:10:46.000Z | #!/usr/bin/env python3
#
# MIT License
#
# (C) Copyright 2022 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including withou... | 43.673077 | 132 | 0.655218 | #!/usr/bin/env python3
#
# MIT License
#
# (C) Copyright 2022 Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including withou... | 0 | 0 | 0 | 0 | 0 | 90 | 0 | 10 | 23 |
6cef0f6f343a55bfefa8c00a31e48c45f56fc66b | 94 | py | Python | src/lingrex/__init__.py | lingpy/lingrex | e0a560fd58006caa7a3a82f1a8d25f75f9f6649c | [
"MIT"
] | 3 | 2019-02-14T15:06:45.000Z | 2021-12-30T22:51:49.000Z | src/lingrex/__init__.py | lingpy/lingrex | e0a560fd58006caa7a3a82f1a8d25f75f9f6649c | [
"MIT"
] | 19 | 2018-10-13T09:12:20.000Z | 2021-11-09T07:53:01.000Z | src/lingrex/__init__.py | lingpy/lingrex | e0a560fd58006caa7a3a82f1a8d25f75f9f6649c | [
"MIT"
] | null | null | null | from lingrex.copar import CoPaR, density
assert CoPaR and density
__version__ = "1.1.2.dev0"
| 18.8 | 40 | 0.776596 | from lingrex.copar import CoPaR, density
assert CoPaR and density
__version__ = "1.1.2.dev0"
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
fc29719d78085111882522fb969efafc9ce3d058 | 7,379 | py | Python | westclass/gen.py | JohnGiorgi/WeSTClass | 647ab2a4fe1b45e94e40caa4f2f9a50bc5e9d406 | [
"Apache-2.0"
] | null | null | null | westclass/gen.py | JohnGiorgi/WeSTClass | 647ab2a4fe1b45e94e40caa4f2f9a50bc5e9d406 | [
"Apache-2.0"
] | 2 | 2019-01-03T17:58:58.000Z | 2019-01-04T00:31:14.000Z | westclass/gen.py | JohnGiorgi/WeSTClass | 647ab2a4fe1b45e94e40caa4f2f9a50bc5e9d406 | [
"Apache-2.0"
] | 1 | 2019-01-03T18:31:39.000Z | 2019-01-03T18:31:39.000Z |
import numpy as np
np.random.seed(1234)
| 42.653179 | 118 | 0.622171 | import os
import numpy as np
from spherecluster import VonMisesFisherMixture, sample_vMF
np.random.seed(1234)
def seed_expansion(word_sup_array, prob_sup_array, sz, write_path, vocabulary_inv, embedding_mat):
expanded_seed = []
vocab_sz = len(vocabulary_inv)
for j, word_class in enumerate(word_sup_array... | 0 | 0 | 0 | 0 | 0 | 7,171 | 0 | 26 | 136 |
c5fcc1853db1ba4d840554f6658634f833033af9 | 7,452 | py | Python | tests/test_squeues_request.py | FingerCrunch/scrapy | 3225de725720bba246ba8c9845fe4b84bc0c82e7 | [
"BSD-3-Clause"
] | 41,267 | 2015-01-01T07:39:25.000Z | 2022-03-31T20:09:40.000Z | tests/test_squeues_request.py | FingerCrunch/scrapy | 3225de725720bba246ba8c9845fe4b84bc0c82e7 | [
"BSD-3-Clause"
] | 4,420 | 2015-01-02T09:35:38.000Z | 2022-03-31T22:53:32.000Z | tests/test_squeues_request.py | FingerCrunch/scrapy | 3225de725720bba246ba8c9845fe4b84bc0c82e7 | [
"BSD-3-Clause"
] | 11,080 | 2015-01-01T18:11:30.000Z | 2022-03-31T15:33:19.000Z |
"""
Queues that handle requests
"""
| 34.660465 | 112 | 0.637815 | import shutil
import tempfile
import unittest
import queuelib
from scrapy.squeues import (
PickleFifoDiskQueue,
PickleLifoDiskQueue,
MarshalFifoDiskQueue,
MarshalLifoDiskQueue,
FifoMemoryQueue,
LifoMemoryQueue,
)
from scrapy.http import Request
from scrapy.spiders import Spider
from scrapy.uti... | 0 | 0 | 0 | 6,827 | 0 | 0 | 0 | 169 | 408 |
4056c2a32274bdf16ec752628c55c728c461ea14 | 104 | py | Python | logya/__init__.py | yaph/logya | 9647f58a0b8653b56ad64332e235a76cab3acda9 | [
"MIT"
] | 12 | 2015-03-04T03:23:56.000Z | 2020-11-17T08:09:17.000Z | logya/__init__.py | elaOnMars/logya | a9f256ac8840e21b348ac842b35683224e25b613 | [
"MIT"
] | 78 | 2015-01-05T11:40:41.000Z | 2022-01-23T21:05:39.000Z | logya/__init__.py | elaOnMars/logya | a9f256ac8840e21b348ac842b35683224e25b613 | [
"MIT"
] | 6 | 2015-04-20T06:58:42.000Z | 2022-01-31T00:36:29.000Z | # -*- coding: utf-8 -*-
__author__ = 'Ramiro Gmez'
__email__ = 'code@ramiro.org'
__version__ = '5.0.0'
| 20.8 | 29 | 0.644231 | # -*- coding: utf-8 -*-
__author__ = 'Ramiro Gómez'
__email__ = 'code@ramiro.org'
__version__ = '5.0.0'
| 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
bcca9df667a8ef58947ffa37f575e51e1d6c54dc | 966 | py | Python | code.py | jamesbowman/py-eve | dd2dc7cdd9c5e5ef82f84132ec9a05d989788112 | [
"BSD-3-Clause"
] | 17 | 2020-01-29T04:24:48.000Z | 2021-07-13T18:03:42.000Z | code.py | jamesbowman/py-eve | dd2dc7cdd9c5e5ef82f84132ec9a05d989788112 | [
"BSD-3-Clause"
] | 3 | 2020-12-28T00:48:06.000Z | 2021-05-30T17:46:15.000Z | code.py | jamesbowman/py-eve | dd2dc7cdd9c5e5ef82f84132ec9a05d989788112 | [
"BSD-3-Clause"
] | 4 | 2020-03-08T01:19:14.000Z | 2021-09-08T13:26:46.000Z | import bteve as eve
gd = eve.Gameduino()
gd.init()
import pong
import fruit
import temperature
demos = (pong, fruit, temperature)
# demos[0].run(gd)
sel = 0
prev_touch = False
while True:
gd.finish()
c = gd.controllers()[0]
if not prev_touch:
if c['bdu']:
sel = (sel - 1)
if c[... | 22.465116 | 95 | 0.564182 | import bteve as eve
gd = eve.Gameduino()
gd.init()
import pong
import fruit
import temperature
demos = (pong, fruit, temperature)
# demos[0].run(gd)
sel = 0
prev_touch = False
while True:
gd.finish()
c = gd.controllers()[0]
if not prev_touch:
if c['bdu']:
sel = (sel - 1)
if c[... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
76166cf62baee4f8bac11d60a8d34ccfd53070aa | 8,382 | py | Python | pyDNase/scripts/wellington_bootstrap.py | zoi-mibtp/pyDNase | 047d2f89af6109a530505b370782c4841d710cbf | [
"MIT"
] | 34 | 2015-05-28T17:16:18.000Z | 2022-03-04T11:54:37.000Z | pyDNase/scripts/wellington_bootstrap.py | zoi-mibtp/pyDNase | 047d2f89af6109a530505b370782c4841d710cbf | [
"MIT"
] | 39 | 2015-05-14T09:03:07.000Z | 2020-05-13T11:40:28.000Z | pyDNase/scripts/wellington_bootstrap.py | zoi-mibtp/pyDNase | 047d2f89af6109a530505b370782c4841d710cbf | [
"MIT"
] | 24 | 2015-09-24T07:39:53.000Z | 2021-07-13T02:37:24.000Z | #!/usr/bin/env python
import pyDNase, pyDNase.footprinting
from clint.textui import progress
import multiprocessing as mp
import argparse
__version__ = "0.1.0"
parser = argparse.ArgumentParser(description='Scores Differential Footprints using Wellington-Bootstrap.')
parser.add_argument("-fp", "--footprint-sizes"... | 42.548223 | 125 | 0.605703 | #!/usr/bin/env python
import pyDNase, pyDNase.footprinting
import numpy as np
from clint.textui import progress
import multiprocessing as mp
import argparse
__version__ = "0.1.0"
def write_treat_to_disk(item):
if item.results:
for i in item.results:
print(i, file=treatment_output)
def write_... | 0 | 0 | 0 | 3,966 | 0 | 486 | 0 | -3 | 114 |
09dfd928cdee8310a84bd1f6f85c08f272b1e928 | 623 | py | Python | t1.py | dongmeng168/raspi_robot_car | 893698cd8649ec7d51a4716f5acf415fe2f2d2f5 | [
"BSD-2-Clause"
] | null | null | null | t1.py | dongmeng168/raspi_robot_car | 893698cd8649ec7d51a4716f5acf415fe2f2d2f5 | [
"BSD-2-Clause"
] | null | null | null | t1.py | dongmeng168/raspi_robot_car | 893698cd8649ec7d51a4716f5acf415fe2f2d2f5 | [
"BSD-2-Clause"
] | null | null | null |
ms1 = MyShow()
ms1.showName() | 20.766667 | 43 | 0.532905 | def catch(origin_func):
def wrapper(self, *args, **kwargs):
print("catch start")
# print(self.name)
origin_func(self, *args, **kwargs)
print(self.name)
print("catch end")
return wrapper
class Decorator(object):
def __init__(self, f):
self.f =... | 0 | 70 | 0 | 196 | 0 | 219 | 0 | 0 | 100 |
e4e9eb18487f687ece7b0a8c1f2f0fdfa4595ebf | 6,956 | py | Python | v0/aia_eis_v0/utils/visualize_utils/two_vertical_contour.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | 1 | 2022-03-02T12:57:19.000Z | 2022-03-02T12:57:19.000Z | v0/aia_eis_v0/utils/visualize_utils/two_vertical_contour.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | v0/aia_eis_v0/utils/visualize_utils/two_vertical_contour.py | DreamBoatOve/aia_eis | 458b4d29846669b10db4da1b3e86c0b394614ceb | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm
from matplotlib import ticker
from playground.laiZhaoGui.goa.get_lai_manual_fitting_res import read_lai_manual_fitting_res, read_lai_test_coordinate, pack_lai_manual_fitting_res, wrap_lai_data_4_contour
from playground.laiZha... | 48.985915 | 172 | 0.679845 | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm
from matplotlib.ticker import MaxNLocator
from matplotlib import ticker, cm
from playground.laiZhaoGui.goa.get_lai_manual_fitting_res import read_lai_manual_fitting_res, read_lai_test_coordinate, pack_lai_manual_fitting_res, ... | 768 | 0 | 0 | 0 | 0 | 0 | 0 | 24 | 22 |
055971b4d0f7c1b8931618e17e88c3c031984606 | 384 | py | Python | use_decorater.py | silenceFei/singleton | 970aeacea3541ef215f3a92b83662f3d6243995f | [
"Apache-2.0"
] | null | null | null | use_decorater.py | silenceFei/singleton | 970aeacea3541ef215f3a92b83662f3d6243995f | [
"Apache-2.0"
] | null | null | null | use_decorater.py | silenceFei/singleton | 970aeacea3541ef215f3a92b83662f3d6243995f | [
"Apache-2.0"
] | null | null | null |
test1 = TestClass()
test2 = TestClass()
print test1.a, test2.a
test1.a = 2
print test1.a, test2.a
print id(test1), id(test2) | 18.285714 | 48 | 0.625 | def SingleTon(cls, *args, **kwargs):
instance = {}
def _singleton():
if cls not in instance:
instance[cls] = cls(*args, **kwargs)
return instance[cls]
return _singleton
@SingleTon
class TestClass(object):
a = 1
test1 = TestClass()
test2 = TestClass()
print test1.a, test2.... | 0 | 24 | 0 | 0 | 0 | 188 | 0 | 0 | 45 |
e6e5d499d771424e99b0cd46ef0c30546e830d9b | 1,623 | py | Python | exercises/13_ransom/solution2.py | AnnieBrunton/biosystems-analytics-2020 | 219e961b07e62dae6c27675e1de94cb56c9adb8e | [
"MIT"
] | 1 | 2021-05-19T19:07:56.000Z | 2021-05-19T19:07:56.000Z | exercises/13_ransom/solution2.py | AnnieBrunton/biosystems-analytics-2020 | 219e961b07e62dae6c27675e1de94cb56c9adb8e | [
"MIT"
] | 1 | 2020-02-11T20:15:59.000Z | 2020-02-11T20:15:59.000Z | exercises/13_ransom/solution2.py | AnnieBrunton/biosystems-analytics-2020 | 219e961b07e62dae6c27675e1de94cb56c9adb8e | [
"MIT"
] | 24 | 2020-01-15T17:34:40.000Z | 2021-08-23T05:57:24.000Z | #!/usr/bin/env python3
"""Ransom note"""
import argparse
import os
import random
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Ransom Note',
formatter_class=argparse.ArgumentDefaultsHelpFor... | 22.859155 | 73 | 0.473814 | #!/usr/bin/env python3
"""Ransom note"""
import argparse
import os
import random
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Ransom Note',
formatter_class=argparse.ArgumentDefaultsHelpFor... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
9bcde1745ec8d892e2b966bda42ec9ead442fb6b | 970 | py | Python | tests/test_yourcar.py | SebRut/python-yourcar | fa4b1e52381dd0a96f62dd633409667c6ecd10ef | [
"MIT"
] | null | null | null | tests/test_yourcar.py | SebRut/python-yourcar | fa4b1e52381dd0a96f62dd633409667c6ecd10ef | [
"MIT"
] | 8 | 2020-06-12T04:37:37.000Z | 2020-08-24T04:51:06.000Z | tests/test_yourcar.py | SebRut/python-yourcar | fa4b1e52381dd0a96f62dd633409667c6ecd10ef | [
"MIT"
] | null | null | null |
LAT_ROSTOCK = 54.0833
LON_ROSTOCK = 12.1333
| 23.658537 | 75 | 0.707216 | import pytest
from yourcar import YourCarAPIClient, Place
LAT_ROSTOCK = 54.0833
LON_ROSTOCK = 12.1333
@pytest.fixture
def api_key():
import os
return os.environ.get("YOURCAR_API_KEY", "YEK-IPA")
@pytest.fixture
def client(api_key):
return YourCarAPIClient(api_key)
@pytest.fixture(scope="module", au... | 0 | 770 | 0 | 0 | 0 | 0 | 0 | 14 | 137 |
dc4ae7a785c1e22a2bfd63f37d10be3734760c8f | 487 | py | Python | pystratis/api/wallet/requestmodels/extpubkeyrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/wallet/requestmodels/extpubkeyrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/wallet/requestmodels/extpubkeyrequest.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z |
# noinspection PyUnresolvedReferences
| 30.4375 | 81 | 0.722793 | from typing import Optional
from pydantic import Field
from pystratis.api import Model
# noinspection PyUnresolvedReferences
class ExtPubKeyRequest(Model):
"""A request model for the wallet/extpubkey endpoint.
Args:
wallet_name (str): The wallet name.
account_name (str, optional): The account... | 0 | 0 | 0 | 338 | 0 | 0 | 0 | 21 | 88 |
4b71e32eb21cadefd433af3f99d102a77a149de7 | 2,094 | py | Python | DIL/crypto/AES256.py | HanSooLim/DIL-Project | 069fa7e35a2e1edfff30dc2540d9b87f5db95dde | [
"MIT",
"BSD-3-Clause"
] | 2 | 2021-10-16T15:08:05.000Z | 2021-10-16T15:59:57.000Z | DIL/crypto/AES256.py | HanSooLim/DIL-Project | 069fa7e35a2e1edfff30dc2540d9b87f5db95dde | [
"MIT",
"BSD-3-Clause"
] | 8 | 2021-10-21T04:48:12.000Z | 2021-11-07T03:09:25.000Z | DIL/crypto/AES256.py | HanSooLim/DIL-Project | 069fa7e35a2e1edfff30dc2540d9b87f5db95dde | [
"MIT",
"BSD-3-Clause"
] | 3 | 2021-05-02T13:39:14.000Z | 2021-05-31T14:05:56.000Z | import pandas
DataFrame = pandas.DataFrame
| 24.348837 | 82 | 0.536772 | import pandas, hashlib, base64
from Crypto import Random
from Crypto.Cipher import AES
from util import DataSetting
DataFrame = pandas.DataFrame
class AES256(DataSetting):
"""
| 암호화 기술 중 양방향 암호화(AES-256)를 구현한 클래스
| 모든 메소드는 생성자에 원본 데이터를 인자 값으로 넣으면 원본 데이터를 수정한다.
Args:
datas (pandas.DataFrame)... | 420 | 38 | 0 | 1,745 | 0 | 0 | 0 | 36 | 90 |
7cb58a9fccba2b4158d2532461d1075653bc4ddf | 789 | py | Python | tests/check.py | denik/cython-ifdef | 218162db1c1bd9afe4e06aac1de996fea1ba5bf3 | [
"MIT"
] | 3 | 2015-11-22T19:42:13.000Z | 2020-02-10T08:16:00.000Z | tests/check.py | denik/cython-ifdef | 218162db1c1bd9afe4e06aac1de996fea1ba5bf3 | [
"MIT"
] | null | null | null | tests/check.py | denik/cython-ifdef | 218162db1c1bd9afe4e06aac1de996fea1ba5bf3 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import sys
import testmodule
config = int(sys.argv[1])
if config == 0:
not_debug()
not_windows()
elif config == 1:
not_debug()
windows()
elif config == 2:
debug()
not_windows()
elif config == 3:
debug()
windows()
else:
sys.exit('Invalid argument')
print 'check... | 18.785714 | 54 | 0.653992 | #!/usr/bin/python
import sys
import testmodule
def windows():
assert testmodule.X().windows_only() == 5
assert not hasattr(testmodule.X, 'unix_only')
assert not hasattr(testmodule.X(), 'unix_only')
def not_windows():
assert testmodule.X().unix_only() == 6
assert not hasattr(testmodule.X, 'window... | 0 | 0 | 0 | 0 | 0 | 365 | 0 | 0 | 92 |
e025ba47e89fa915062db3b001e151b6e658b49d | 3,362 | py | Python | hatchet/tests/node.py | slabasan/llnl-hatchet | 5fce542f435952ad93248feac8b0c47c44649b47 | [
"MIT"
] | 55 | 2017-10-06T18:50:15.000Z | 2022-03-10T19:15:52.000Z | hatchet/tests/node.py | slabasan/llnl-hatchet | 5fce542f435952ad93248feac8b0c47c44649b47 | [
"MIT"
] | 172 | 2018-02-01T01:02:04.000Z | 2022-03-11T19:15:21.000Z | hatchet/tests/node.py | slabasan/llnl-hatchet | 5fce542f435952ad93248feac8b0c47c44649b47 | [
"MIT"
] | 28 | 2017-11-22T14:27:22.000Z | 2022-02-22T00:25:33.000Z | # Copyright 2017-2021 Lawrence Livermore National Security, LLC and other
# Hatchet Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: MIT
| 26.896 | 85 | 0.560976 | # Copyright 2017-2021 Lawrence Livermore National Security, LLC and other
# Hatchet Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: MIT
import pytest
from hatchet.node import Node, MultiplePathError
from hatchet.frame import Frame
from hatchet.graph import Graph
def test... | 0 | 0 | 0 | 0 | 0 | 2,812 | 0 | 39 | 320 |
1285a695be87fef4d88cbfbcfbca608ee51ac83b | 7,173 | py | Python | applications/incompressible_fluid_application/python_scripts/trilinos_monolithic_solver_eulerian.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 2 | 2019-10-25T09:28:10.000Z | 2019-11-21T12:51:46.000Z | applications/incompressible_fluid_application/python_scripts/trilinos_monolithic_solver_eulerian.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | 13 | 2019-10-07T12:06:51.000Z | 2020-02-18T08:48:33.000Z | applications/incompressible_fluid_application/python_scripts/trilinos_monolithic_solver_eulerian.py | lcirrott/Kratos | 8406e73e0ad214c4f89df4e75e9b29d0eb4a47ea | [
"BSD-4-Clause"
] | null | null | null | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
| 38.358289 | 210 | 0.72048 | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
from KratosMultiphysics import *
from KratosMultiphysics.mpi import *
from KratosMultiphysics.MetisApplication import *
from KratosMultiphysics.IncompressibleFluidApplication import *
f... | 0 | 0 | 0 | 4,313 | 0 | 2,358 | 0 | 163 | 201 |
d38e1cb36595014c00e80605a97ca80995c9ac7a | 777 | py | Python | tests/integration/test_github_actions.py | vikasbhatia/asyncpraw | 8b9e1bd72945023f6eb4567ff69ba13aa428a2d2 | [
"BSD-2-Clause"
] | null | null | null | tests/integration/test_github_actions.py | vikasbhatia/asyncpraw | 8b9e1bd72945023f6eb4567ff69ba13aa428a2d2 | [
"BSD-2-Clause"
] | null | null | null | tests/integration/test_github_actions.py | vikasbhatia/asyncpraw | 8b9e1bd72945023f6eb4567ff69ba13aa428a2d2 | [
"BSD-2-Clause"
] | 1 | 2020-12-13T05:10:35.000Z | 2020-12-13T05:10:35.000Z | """A test that is run only by Github Actions
This test makes real network requests, so environment variables
should be specified in Github Actions.
"""
| 27.75 | 77 | 0.732304 | """A test that is run only by Github Actions
This test makes real network requests, so environment variables
should be specified in Github Actions.
"""
import os
import pytest
from asyncpraw import Reddit
from asyncpraw.models import Submission
@pytest.mark.skipif(
not os.getenv("NETWORK_TEST_CLIENT_ID"),
... | 0 | 505 | 0 | 0 | 0 | 0 | 0 | 5 | 113 |
8b11b60ed5c0f29b6f6ce3c11d65a04193edc4fe | 216 | py | Python | src/tacotron/app/defaults.py | stefantaubert/tacotron | 9ac37fbf8789b4e7fe1067212a736074181b6fd8 | [
"MIT"
] | null | null | null | src/tacotron/app/defaults.py | stefantaubert/tacotron | 9ac37fbf8789b4e7fe1067212a736074181b6fd8 | [
"MIT"
] | 1 | 2021-11-11T08:50:32.000Z | 2021-11-19T12:39:06.000Z | src/tacotron/app/defaults.py | stefantaubert/tacotron | 9ac37fbf8789b4e7fe1067212a736074181b6fd8 | [
"MIT"
] | null | null | null | from pathlib import Path
DEFAULT_SEED = None
DEFAULT_REPETITIONS = 1
DEFAULT_MAX_DECODER_STEPS = 3000
DEFAULT_SAVE_MEL_INFO_COPY_PATH = Path("/tmp/mel_out.json")
# from paper
DEFAULT_MCD_NO_OF_COEFFS_PER_FRAME = 16
| 24 | 59 | 0.833333 | from pathlib import Path
DEFAULT_SEED = None
DEFAULT_REPETITIONS = 1
DEFAULT_MAX_DECODER_STEPS = 3000
DEFAULT_SAVE_MEL_INFO_COPY_PATH = Path("/tmp/mel_out.json")
# from paper
DEFAULT_MCD_NO_OF_COEFFS_PER_FRAME = 16
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
7b921be17fa34c3ac24248e5fc07fa00295c30e7 | 730 | py | Python | commong-bang-pre/submit.py | a414351664/TRAB-IKE | 3dd07221e1854c974127d7f6d0d95779a25166c0 | [
"MIT"
] | null | null | null | commong-bang-pre/submit.py | a414351664/TRAB-IKE | 3dd07221e1854c974127d7f6d0d95779a25166c0 | [
"MIT"
] | null | null | null | commong-bang-pre/submit.py | a414351664/TRAB-IKE | 3dd07221e1854c974127d7f6d0d95779a25166c0 | [
"MIT"
] | null | null | null | # coding:utf-8
import json
import pandas as pd
pred_file = 'sort_hypo_glge_xsum_ck20_bsz1.txt.dedup'
sub_example = 'test_submission_example.jsonl'
save_file = 'submit.jsonl'
features = []
pred = []
example = []
with open(pred_file, 'r', encoding='utf-8') as infle:
for line in infle.readlines():
pred.appen... | 26.071429 | 66 | 0.694521 | # coding:utf-8
import numpy as np
import json
import pandas as pd
pred_file = 'sort_hypo_glge_xsum_ck20_bsz1.txt.dedup'
sub_example = 'test_submission_example.jsonl'
save_file = 'submit.jsonl'
features = []
pred = []
example = []
with open(pred_file, 'r', encoding='utf-8') as infle:
for line in infle.readlines():... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -3 | 22 |
a06e1acc2651b527e61ef2935b70ffd5915ad8a5 | 908 | py | Python | tests/test_settings.py | Learning-and-Intelligent-Systems/predicators | 0b2e71cacf86ba2bfdc1d9059c3a78016d0a4d7e | [
"MIT"
] | 24 | 2021-11-20T16:35:41.000Z | 2022-03-30T03:49:52.000Z | tests/test_settings.py | Learning-and-Intelligent-Systems/predicators | 0b2e71cacf86ba2bfdc1d9059c3a78016d0a4d7e | [
"MIT"
] | 214 | 2021-10-12T01:17:50.000Z | 2022-03-31T20:18:36.000Z | tests/test_settings.py | Learning-and-Intelligent-Systems/predicators | 0b2e71cacf86ba2bfdc1d9059c3a78016d0a4d7e | [
"MIT"
] | 1 | 2022-02-15T20:24:17.000Z | 2022-02-15T20:24:17.000Z | """Test cases for some parts of the settings.py file."""
from predicators.src import utils
from predicators.src.settings import get_allowed_query_type_names
def test_get_allowed_query_type_names():
"""Test the get_allowed_query_type_names method."""
utils.reset_config()
assert get_allowed_query_type_name... | 32.428571 | 73 | 0.693833 | """Test cases for some parts of the settings.py file."""
from predicators.src import utils
from predicators.src.settings import get_allowed_query_type_names
def test_get_allowed_query_type_names():
"""Test the get_allowed_query_type_names method."""
utils.reset_config()
assert get_allowed_query_type_name... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
46bb17e9bbf8bbd95ddfa29336b52f227f47c75e | 2,515 | py | Python | common/imagebusutil.py | eusholli/imagebus | 79ef67cb5305e3bda7131d5c85a16b985b80c673 | [
"MIT"
] | 1 | 2020-01-20T11:45:57.000Z | 2020-01-20T11:45:57.000Z | common/imagebusutil.py | eusholli/imagebus | 79ef67cb5305e3bda7131d5c85a16b985b80c673 | [
"MIT"
] | 18 | 2019-12-27T01:44:12.000Z | 2022-03-12T00:07:25.000Z | common/imagebusutil.py | eusholli/imagebus | 79ef67cb5305e3bda7131d5c85a16b985b80c673 | [
"MIT"
] | 2 | 2019-12-14T04:07:07.000Z | 2019-12-26T18:19:50.000Z |
if __name__ == "__main__":
print("Welcome to imagebusutil module")
| 26.473684 | 153 | 0.555865 | from enum import Enum
import datetime
import base64
class ImagebusTopic(Enum):
SOURCE_FRAME = 1
IMAGEAI_FRAME = 2
REDACTION_FRAME = 3
def __str__(self):
return self.name
class FrameDetails:
def __init__(
self,
name,
topic,
frameRate=1,
url=None,
... | 0 | 179 | 0 | 2,163 | 0 | 0 | 0 | -14 | 112 |
0c7b858125e1e9c10ccae3e2ccc6d902b5722252 | 894 | py | Python | azdev/operations/linter/rules/command_group_rules.py | qwordy/azure-cli-dev-tools | cb0349814fa3a32744af214a3e0e8607287104fc | [
"MIT"
] | 1 | 2020-03-24T13:33:25.000Z | 2020-03-24T13:33:25.000Z | azdev/operations/linter/rules/command_group_rules.py | qwordy/azure-cli-dev-tools | cb0349814fa3a32744af214a3e0e8607287104fc | [
"MIT"
] | null | null | null | azdev/operations/linter/rules/command_group_rules.py | qwordy/azure-cli-dev-tools | cb0349814fa3a32744af214a3e0e8607287104fc | [
"MIT"
] | 1 | 2019-06-01T15:00:27.000Z | 2019-06-01T15:00:27.000Z | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
| 40.636364 | 119 | 0.646532 | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
fr... | 0 | 448 | 0 | 0 | 0 | 0 | 0 | 36 | 91 |
0fae0ccbf45216853e271858a6b4207da029286b | 779 | py | Python | Python/general/delegation.py | J0shu4B0y/Practice | ea6af3773520f12afcf72f25952a80614d0c13ef | [
"MIT"
] | 1 | 2021-07-18T08:40:05.000Z | 2021-07-18T08:40:05.000Z | Python/general/delegation.py | J0shu4B0y/Practice | ea6af3773520f12afcf72f25952a80614d0c13ef | [
"MIT"
] | 3 | 2020-02-21T13:43:44.000Z | 2020-02-21T13:54:57.000Z | Python/general/delegation.py | J0shu4B0y/Practice-Python | ea6af3773520f12afcf72f25952a80614d0c13ef | [
"MIT"
] | 2 | 2019-07-19T10:09:08.000Z | 2020-09-20T08:07:36.000Z | # Python
file = File()
instance = Upcase(file)
instance.write('test')
instance.open()
print(instance._outfile)
#print(instance.hello())
#print(instance.hello())
#print(instance.write('test'))
#print(instance._outfile)
#print(instance.write('asd'))
#print(instance._outfile)
#print(instance._outfile) | 20.5 | 46 | 0.639281 | # Процесс делегирования в Python
class Upcase():
def __init__(self, out):
self._out = out
def write(self, s):
self._outfile = s.upper()
def __getattr__(self, name):
print('Looking up', name)
return getattr(self._out, name)
class File():
def __init__(self):
s... | 42 | 0 | 0 | 407 | 0 | 0 | 0 | 0 | 46 |
0cfb8ed596ae8e7e5a700f718c6059fbb62623dd | 766 | py | Python | GoogleSheetLocalizationExport.py | muzle/GoogleSheetLocalizationExport | 2fdd5bce7790409b0550db9b8450f3703e7a4e04 | [
"MIT"
] | 2 | 2021-12-29T00:03:58.000Z | 2021-12-29T19:20:24.000Z | GoogleSheetLocalizationExport.py | muzle/GoogleSheetLocalizationExport | 2fdd5bce7790409b0550db9b8450f3703e7a4e04 | [
"MIT"
] | null | null | null | GoogleSheetLocalizationExport.py | muzle/GoogleSheetLocalizationExport | 2fdd5bce7790409b0550db9b8450f3703e7a4e04 | [
"MIT"
] | null | null | null | import sys
from yamlSupport.YamlConfigurationSupport import YamlConfigurationSupport
from googleSheetSupport.GoogleSheetSupport import GoogleSheetSupport
from iosSupport.iOSLocalizationSettings import iOSLocalizationSettings
if __name__ == '__main__':
args = sys.argv
if len(args) < 2:
log_menu()
... | 31.916667 | 100 | 0.72846 | import sys
from yamlSupport.YamlConfigurationSupport import YamlConfigurationSupport
from googleSheetSupport.GoogleSheetSupport import GoogleSheetSupport
from iosSupport.iOSLocalizationSettings import iOSLocalizationSettings
def log_menu():
menu = """commands:\n1. cnfg - create default localization.yml\n2. fetch ... | 0 | 0 | 0 | 0 | 0 | 111 | 0 | 0 | 23 |
db8cdf360eb4b2f9f9181c8aab45f97a431cb628 | 3,005 | py | Python | ds_discovery/sample/map_us_phone_code.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | 2 | 2020-09-21T17:24:16.000Z | 2021-05-28T18:02:54.000Z | ds_discovery/sample/map_us_phone_code.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | null | null | null | ds_discovery/sample/map_us_phone_code.py | project-hadron/discovery-transition-ds | 08229ca3b7617b42ce2dd8e47ff93876c0843810 | [
"BSD-3-Clause"
] | 1 | 2021-07-23T13:52:04.000Z | 2021-07-23T13:52:04.000Z | data={'State': ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana',... | 1,502.5 | 3,004 | 0.465225 | data={'State': ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana',... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
f68c5286b6e457069b84e1113796f3322531cc37 | 1,070 | py | Python | PersianSwear.py | amirshnll/Persian-Swear-Words | 8aa6df8b55262b8cb85731342e78c769d974dff9 | [
"MIT"
] | 180 | 2020-09-22T11:40:11.000Z | 2022-03-25T18:39:37.000Z | PersianSwear.py | Nimaw/Persian-Swear-Words | 8aa6df8b55262b8cb85731342e78c769d974dff9 | [
"MIT"
] | 9 | 2020-11-16T13:19:39.000Z | 2021-08-29T09:34:10.000Z | PersianSwear.py | Nimaw/Persian-Swear-Words | 8aa6df8b55262b8cb85731342e78c769d974dff9 | [
"MIT"
] | 38 | 2020-11-16T12:58:21.000Z | 2022-02-19T11:48:06.000Z | """
swearWords Class
Author : Sorosh Safari @coci
created date : 7 October, 2021
updated date : 11 October, 2021
""" | 19.107143 | 42 | 0.657009 | """
swearWords Class
Author : Sorosh Safari @coci
created date : 7 October, 2021
updated date : 11 October, 2021
"""
class PersianSwear(object):
def __init__(self):
self.data = json.load(open('data.json'))
# return string
def filter_words(self, text, symbol="*"):
if(self.is_empty()):
return text
text = t... | 0 | 0 | 0 | 931 | 0 | 0 | 0 | 0 | 23 |
c1e74d087d61927f3b6d66fade602932fce137bd | 858 | py | Python | centralreport/test.py | Ninir/CentralReport | 655b060ae0aa7df404f3799824e7635f5997e662 | [
"Apache-2.0",
"ZPL-2.0"
] | 1 | 2015-11-03T14:32:01.000Z | 2015-11-03T14:32:01.000Z | centralreport/test.py | Ninir/CentralReport | 655b060ae0aa7df404f3799824e7635f5997e662 | [
"Apache-2.0",
"ZPL-2.0"
] | null | null | null | centralreport/test.py | Ninir/CentralReport | 655b060ae0aa7df404f3799824e7635f5997e662 | [
"Apache-2.0",
"ZPL-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
CentralReport - Test script
Launchs CentralReport in debug mode, without installation.
Please verify CR is not installed on your host before launch this script.
https://github.com/miniche/CentralReport/
"""
import centralreport
import sys
import o... | 26.8125 | 121 | 0.632867 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
CentralReport - Test script
Launchs CentralReport in debug mode, without installation.
Please verify CR is not installed on your host before launch this script.
https://github.com/miniche/CentralReport/
"""
import centralreport
import sys
import o... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
429da5a042a803a782ed7b16c9d0971a3455252e | 15,452 | py | Python | mayan/apps/sources/models/email_sources.py | O2Graphics/Mayan-EDMS | e11e6f47240f3c536764be66828dbe6428dceb41 | [
"Apache-2.0"
] | null | null | null | mayan/apps/sources/models/email_sources.py | O2Graphics/Mayan-EDMS | e11e6f47240f3c536764be66828dbe6428dceb41 | [
"Apache-2.0"
] | 5 | 2021-03-19T22:56:45.000Z | 2022-03-12T00:08:43.000Z | mayan/apps/sources/models/email_sources.py | halsten/mayan-edms | 10372daede6e6dea0bea67eb98767e3be6fbf86f | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
import logging
__all__ = ('IMAPEmail', 'POP3Email')
logger = logging.getLogger(__name__)
| 39.218274 | 120 | 0.563357 | from __future__ import unicode_literals
import imaplib
import logging
import poplib
from django.core.exceptions import ValidationError
from django.core.files.base import ContentFile
from django.db import models
from django.utils.encoding import force_bytes
from django.utils.translation import ugettext_lazy as _
from... | 0 | 3,834 | 0 | 10,579 | 0 | 0 | 0 | 524 | 382 |
c1ffdd25bfab325deac866b7520b17bf16ab3879 | 8,678 | py | Python | maskrcnn_benchmark/modeling/roi_heads/mask_head/roi_mask_feature_extractors.py | SIAAAAAA/MMT-PSM | 0835c01c5010d3337778f452e9d96416e0f8a11a | [
"MIT"
] | 41 | 2020-07-22T03:55:08.000Z | 2022-02-27T12:04:41.000Z | maskrcnn_benchmark/modeling/roi_heads/mask_head/roi_mask_feature_extractors.py | SIAAAAAA/MMT-PSM | 0835c01c5010d3337778f452e9d96416e0f8a11a | [
"MIT"
] | 5 | 2020-11-08T08:47:34.000Z | 2021-07-09T03:53:42.000Z | maskrcnn_benchmark/modeling/roi_heads/mask_head/roi_mask_feature_extractors.py | SIAAAAAA/MMT-PSM | 0835c01c5010d3337778f452e9d96416e0f8a11a | [
"MIT"
] | 5 | 2020-10-13T11:09:53.000Z | 2021-07-28T12:41:53.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from ..box_head.roi_box_feature_extractors import ResNet50Conv5ROIFeatureExtractor
_ROI_MASK_FEATURE_EXTRACTORS = {
"ResNet50Conv5ROIFeatureExtractor": ResNet50Conv5ROIFeatureExtractor,
"MaskRCNNFPNFeatureExtractor": MaskRCNNFPNFeature... | 38.229075 | 114 | 0.623992 | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from torch import nn
from torch.nn import functional as F
import torch
from ..box_head.roi_box_feature_extractors import ResNet50Conv5ROIFeatureExtractor
from maskrcnn_benchmark.modeling.poolers import Pooler
from maskrcnn_benchmark.layers import C... | 0 | 0 | 0 | 7,723 | 0 | 169 | 0 | 50 | 269 |
acc2fe39f661fb7f70cd2a0a0c3f78c6b23bdeb5 | 491 | py | Python | test_fmi/_nbdev.py | asvcode/test_fmi | 43111ef3e88625addd6e2609ea588f425841537d | [
"Apache-2.0"
] | null | null | null | test_fmi/_nbdev.py | asvcode/test_fmi | 43111ef3e88625addd6e2609ea588f425841537d | [
"Apache-2.0"
] | 3 | 2021-05-01T06:54:19.000Z | 2022-02-26T10:17:44.000Z | test_fmi/_nbdev.py | asvcode/test_fmi | 43111ef3e88625addd6e2609ea588f425841537d | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"instance_sort": "02_explore.ipynb",
"instance_dcmread": "02_explore.ipynb",
"instance_show": "02_explore.ipynb",
"get_dicom_image": "02_explore.ipynb"}
modules = ["one.py",
... | 27.277778 | 61 | 0.668024 | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"instance_sort": "02_explore.ipynb",
"instance_dcmread": "02_explore.ipynb",
"instance_show": "02_explore.ipynb",
"get_dicom_image": "02_explore.ipynb"}
modules = ["one.py",
... | 0 | 0 | 0 | 0 | 0 | 18 | 0 | 0 | 23 |
9374d8166bff6d7bca40d0073aa64863e3ce4784 | 1,131 | py | Python | Q3/q3.py | Xascoria/AdventOfCode2021 | 869d6f292f6444fe6bb26bf37049a0949bf49019 | [
"MIT"
] | null | null | null | Q3/q3.py | Xascoria/AdventOfCode2021 | 869d6f292f6444fe6bb26bf37049a0949bf49019 | [
"MIT"
] | null | null | null | Q3/q3.py | Xascoria/AdventOfCode2021 | 869d6f292f6444fe6bb26bf37049a0949bf49019 | [
"MIT"
] | null | null | null | f = open("Q3/inputs.txt","r")
z = f.readlines()
f.close()
a = ""
b = ""
for i in zip(*z):
lst = list(i)
if lst.count("1") > len(lst)//2:
a += "1"
b += "0"
else:
a += "0"
b += "1"
print(int(a,2)*int(b,2))
f = open("Q3/inputs.txt","r")
z = f.readlines()
f.close()
current_ind... | 22.62 | 53 | 0.50221 | f = open("Q3/inputs.txt","r")
z = f.readlines()
f.close()
a = ""
b = ""
for i in zip(*z):
lst = list(i)
if lst.count("1") > len(lst)//2:
a += "1"
b += "0"
else:
a += "0"
b += "1"
print(int(a,2)*int(b,2))
f = open("Q3/inputs.txt","r")
z = f.readlines()
f.close()
current_ind... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
5412dc36e7ca007a4c859648cda01115d199a51d | 449 | py | Python | Section 4/source/cgi-bin/wav2json.py | PacktPublishing/-Deep-Learning-Projects-with-JavaScript | 6842ab1b7611b34735029df47a35790f588e2d8c | [
"MIT"
] | 11 | 2019-01-11T11:37:59.000Z | 2021-10-02T03:20:02.000Z | Section 4/source/cgi-bin/wav2json.py | PacktPublishing/-Deep-Learning-Projects-with-JavaScript | 6842ab1b7611b34735029df47a35790f588e2d8c | [
"MIT"
] | null | null | null | Section 4/source/cgi-bin/wav2json.py | PacktPublishing/-Deep-Learning-Projects-with-JavaScript | 6842ab1b7611b34735029df47a35790f588e2d8c | [
"MIT"
] | 6 | 2019-01-03T18:43:44.000Z | 2020-12-29T10:25:34.000Z | #!/usr/bin/env python3
print('Content-Type: application/json\n\n')
print(wav2json('./test.wav'))
| 26.411765 | 74 | 0.697105 | #!/usr/bin/env python3
import librosa
import sys
import numpy as np
from os import path, listdir
import json
def wav2json(wav, dtype='train'):
x, _=librosa.load(wav, res_type='kaiser_fast', duration=3, offset=0.5)
mx=librosa.feature.mfcc(y=x, n_mfcc=25)
mfccs=np.mean(mx, axis=0)
mfccs=[-(mfccs/100)]
... | 0 | 0 | 0 | 0 | 0 | 243 | 0 | -24 | 133 |
cb016f676082c29f82bfac8bc0749261eb089730 | 679 | py | Python | src/mfactcheck/models/sent_mbert.py | D-Roberts/multilingual_nli_ECIR | e7466f5e6c6b6246ae37c1c951003c13f56d84c8 | [
"Apache-2.0"
] | 2 | 2021-02-13T22:57:33.000Z | 2021-03-29T09:41:08.000Z | src/mfactcheck/models/sent_mbert.py | D-Roberts/multilingual_nli_ECIR | e7466f5e6c6b6246ae37c1c951003c13f56d84c8 | [
"Apache-2.0"
] | null | null | null | src/mfactcheck/models/sent_mbert.py | D-Roberts/multilingual_nli_ECIR | e7466f5e6c6b6246ae37c1c951003c13f56d84c8 | [
"Apache-2.0"
] | null | null | null | import os
from mfactcheck.utils.log_helper import LogHelper
LogHelper.setup()
logger = LogHelper.get_logger(os.path.splitext(os.path.basename(__file__))[0])
| 33.95 | 79 | 0.734904 | import os
from mfactcheck.utils.log_helper import LogHelper
from mfactcheck.multi_retriever.sentences.data import SentProcessor
from .mbert import MBert
LogHelper.setup()
logger = LogHelper.get_logger(os.path.splitext(os.path.basename(__file__))[0])
class SentMBert(MBert):
def __init__(self, output_dir, module=... | 0 | 0 | 0 | 403 | 0 | 0 | 0 | 49 | 67 |
7423fea9e86c8e28e9deff5e6e14b0bb00592b33 | 1,376 | py | Python | editregions/contrib/textfiles/models.py | kezabelle/django-editregions | 961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2015-01-11T18:21:27.000Z | 2015-01-11T18:21:27.000Z | editregions/contrib/textfiles/models.py | kezabelle/django-editregions | 961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | editregions/contrib/textfiles/models.py | kezabelle/django-editregions | 961ddeffb37d30d40fb4e3e9224bc3f956b7a5b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
logger = logging.getLogger(__name__)
| 30.577778 | 79 | 0.719477 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import logging
from CommonMark import DocParser
from CommonMark import HTMLRenderer
from django.template import TemplateDoesNotExist
from django.template.loader import render_to_string
from django.utils.encoding import python_2_unicode_compatible
from djan... | 0 | 775 | 0 | 0 | 0 | 0 | 0 | 239 | 243 |
cef7b3d2334bb46f89d544ad87c82f3b738b72db | 1,007 | py | Python | tests/python/pants_test/backend/python/tasks/checkstyle/test_new_style_classes.py | qma/pants | 604f58a366b66bc5cfa83e7250cb8af8130832cf | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/backend/python/tasks/checkstyle/test_new_style_classes.py | qma/pants | 604f58a366b66bc5cfa83e7250cb8af8130832cf | [
"Apache-2.0"
] | null | null | null | tests/python/pants_test/backend/python/tasks/checkstyle/test_new_style_classes.py | qma/pants | 604f58a366b66bc5cfa83e7250cb8af8130832cf | [
"Apache-2.0"
] | null | null | null | # 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)
| 27.972222 | 96 | 0.706058 | # 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.backend.p... | 0 | 0 | 0 | 502 | 0 | 0 | 0 | 137 | 68 |
78a08b1094138b77ca2c90ed9e478ef2099e432f | 2,842 | py | Python | main.py | asa-leholland/TaskmasterDataAcquisition | 1e40f8320053ceb3c4f1119562139556f430fbcc | [
"MIT"
] | null | null | null | main.py | asa-leholland/TaskmasterDataAcquisition | 1e40f8320053ceb3c4f1119562139556f430fbcc | [
"MIT"
] | null | null | null | main.py | asa-leholland/TaskmasterDataAcquisition | 1e40f8320053ceb3c4f1119562139556f430fbcc | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
dir_path_to_temp_csvs="temp_csvs"
dir_path_final_csvs="final_season_csvs"
create_final_raw_csv(dir_path_to_temp_csvs, dir_path_final_csvs)
merge_final_dataset(inpath_final_individual_csvs=dir_path_final_csvs) | 35.974684 | 104 | 0.692822 |
import urllib.request
from pprint import pprint
from html_table_parser.parser import HTMLTableParser
import pandas as pd
import os
from parse import parse_taskmaster_csv
def url_get_contents(url):
req = urllib.request.Request(url=url)
f = urllib.request.urlopen(req)
return f.read()
def scrape_tm_detail... | 0 | 0 | 0 | 0 | 0 | 2,279 | 0 | 38 | 271 |
708386fb48531f9d717c745431894bfffde53abf | 9,715 | py | Python | assignments/ps01/ps1.py | jperuggia/ComputerVision | 6a36cf96dec40fe4cd5584fbc2d8e384a74a66cf | [
"MIT"
] | null | null | null | assignments/ps01/ps1.py | jperuggia/ComputerVision | 6a36cf96dec40fe4cd5584fbc2d8e384a74a66cf | [
"MIT"
] | null | null | null | assignments/ps01/ps1.py | jperuggia/ComputerVision | 6a36cf96dec40fe4cd5584fbc2d8e384a74a66cf | [
"MIT"
] | 2 | 2020-11-02T08:36:01.000Z | 2022-01-05T19:08:53.000Z | import numpy as np
import cv2
# # Implement the functions below.
def extract_red(image):
""" Returns the red channel of the input image. It is highly recommended to make a copy of the
input image in order to avoid modifying the original array. You can do this by calling:
temp_image = np.copy(image)
... | 37.509653 | 113 | 0.68142 | import math
import numpy as np
import cv2
import sys
# # Implement the functions below.
def extract_red(image):
""" Returns the red channel of the input image. It is highly recommended to make a copy of the
input image in order to avoid modifying the original array. You can do this by calling:
temp_image... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -21 | 44 |
72bbc3885b283ceb98305b72a26a6cdb3e96e915 | 1,850 | py | Python | booksim2/utils/plot_reconfig_overhead.py | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | 3 | 2020-11-01T08:23:10.000Z | 2021-12-21T02:53:36.000Z | booksim2/utils/plot_reconfig_overhead.py | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | null | null | null | booksim2/utils/plot_reconfig_overhead.py | jyhuang91/flyover | 952a0fffee952c9f88b93017b6bba65a84d562cb | [
"MIT"
] | 1 | 2020-12-07T00:57:30.000Z | 2020-12-07T00:57:30.000Z | #!/usr/bin/python
if __name__ == '__main__':
main()
| 27.205882 | 72 | 0.564324 | #!/usr/bin/python
import sys
import numpy as np
import matplotlib.pyplot as plt
from easypyplot import pdf, color
from easypyplot import format as fmt
def main():
schemes = ['RP', 'FLOV']
latencies = []
filename = '../results/reconfig/latency.txt'
infile = open(filename)
for l, line in enumerat... | 0 | 0 | 0 | 0 | 0 | 1,634 | 0 | 23 | 134 |
d8a8055897358a6f2081ccf724dd6e593ed1588a | 1,450 | py | Python | nipyapi/webui/nifi_web/migrations/0003_auto_20191105_1616.py | achristianson/nipyapi-ds | d027433abf0c2fd08a35b5ec95534346e205c681 | [
"Apache-2.0"
] | 3 | 2019-10-11T02:58:04.000Z | 2022-02-26T06:48:24.000Z | nipyapi/webui/nifi_web/migrations/0003_auto_20191105_1616.py | achristianson/nipyapi-ds | d027433abf0c2fd08a35b5ec95534346e205c681 | [
"Apache-2.0"
] | 2 | 2021-03-09T19:35:35.000Z | 2021-05-10T16:46:23.000Z | nipyapi/webui/nifi_web/migrations/0003_auto_20191105_1616.py | achristianson/nipyapi-ds | d027433abf0c2fd08a35b5ec95534346e205c681 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.6 on 2019-11-05 16:16
| 37.179487 | 118 | 0.590345 | # Generated by Django 2.2.6 on 2019-11-05 16:16
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('nifi_web', '0002_nifiinstance_hostname'),
]
operations = [
migrations.CreateModel(
name='NifiIm... | 0 | 0 | 0 | 1,303 | 0 | 0 | 0 | 30 | 68 |
7a49b5a24a8d918efad9ff2cfdfd4e6763f07d4f | 27,448 | py | Python | Scripts/build/lib.linux-x86_64-2.7/rdpy/protocol/rdp/sec.py | FurqanKhan1/Dictator | 74e29c12a8f92292ab3275661622c0632cdd0a7b | [
"Unlicense"
] | 5 | 2019-03-14T10:17:22.000Z | 2019-10-23T14:04:12.000Z | Scripts/build/lib.linux-x86_64-2.7/rdpy/protocol/rdp/sec.py | FurqanKhan1/Dictator | 74e29c12a8f92292ab3275661622c0632cdd0a7b | [
"Unlicense"
] | null | null | null | Scripts/build/lib.linux-x86_64-2.7/rdpy/protocol/rdp/sec.py | FurqanKhan1/Dictator | 74e29c12a8f92292ab3275661622c0632cdd0a7b | [
"Unlicense"
] | 14 | 2019-03-14T10:34:02.000Z | 2021-10-31T17:34:13.000Z | #
# Copyright (c) 2014-2015 Sylvain Peyrefitte
#
# This file is part of rdpy.
#
# rdpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | 37.497268 | 196 | 0.652579 | #
# Copyright (c) 2014-2015 Sylvain Peyrefitte
#
# This file is part of rdpy.
#
# rdpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
... | 0 | 0 | 0 | 19,167 | 0 | 0 | 0 | 120 | 350 |
25c0f6f874faa9aa47653224c9fd47dbdd6c61ee | 4,474 | py | Python | scripts/sync.py | bastionhost/dbhub | 825ce53f0b1c0e3c2e033ebe2c92bfcfbf51bd9e | [
"MIT"
] | 15 | 2018-09-13T00:53:57.000Z | 2022-03-28T02:13:01.000Z | scripts/sync.py | bastionhost/dbhub | 825ce53f0b1c0e3c2e033ebe2c92bfcfbf51bd9e | [
"MIT"
] | 1 | 2018-12-17T05:52:53.000Z | 2018-12-17T05:52:53.000Z | scripts/sync.py | huifenqi/dbhub | 825ce53f0b1c0e3c2e033ebe2c92bfcfbf51bd9e | [
"MIT"
] | 3 | 2018-11-16T08:56:24.000Z | 2019-01-26T03:51:42.000Z |
if __name__ == '__main__':
run()
| 37.915254 | 97 | 0.601475 | import pymongo
from django.conf import settings
from sqlalchemy import create_engine, inspect
from sqlalchemy import MetaData
from pymongo_schema.extract import extract_pymongo_client_schema
from pymongo_schema.tosql import mongo_schema_to_mapping
from apps.schema.models import Database, Table, Column, Index
class R... | 0 | 1,121 | 0 | 2,199 | 0 | 708 | 0 | 156 | 247 |
c47f4ce83c15b758edbdd15a5d99eac73f06c99d | 1,969 | py | Python | examples/pick_and_place_CGO.py | bgheneti/rai-python | 2956004853525795dfde210266d9bbf3292d27ee | [
"MIT"
] | null | null | null | examples/pick_and_place_CGO.py | bgheneti/rai-python | 2956004853525795dfde210266d9bbf3292d27ee | [
"MIT"
] | null | null | null | examples/pick_and_place_CGO.py | bgheneti/rai-python | 2956004853525795dfde210266d9bbf3292d27ee | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import sys
sys.path.append('../ry')
K = Config()
D = K.view()
K.addFile('../test/kitchen.g')
K.addFile('../rai-robotModels/pr2/pr2.g')
K.addFrame('item1', 'sink1', 'type:ssBox Q:<t(-.1 -.1 .52)> size:[.1 .1 .25 .02] color:[1. 0. 0.], contact' )
K.addFrame('item2', 'sink1', 'type:ssBox Q:<t(.1 .1 .... | 30.292308 | 127 | 0.681056 | #!/usr/bin/python3
import sys
sys.path.append('../ry')
from libry import *
K = Config()
D = K.view()
K.addFile('../test/kitchen.g')
K.addFile('../rai-robotModels/pr2/pr2.g')
K.addFrame('item1', 'sink1', 'type:ssBox Q:<t(-.1 -.1 .52)> size:[.1 .1 .25 .02] color:[1. 0. 0.], contact' )
K.addFrame('item2', 'sink1', 'typ... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -2 | 22 |
91285f0c3a7a9c77f819019ebc7ea7e3b259c995 | 5,902 | py | Python | app/__init__.py | winlongit/shop_pc_server | 376fa5c0504e50a863aad68ead67e0a149ef5dd2 | [
"Apache-2.0"
] | 1 | 2021-12-08T13:59:32.000Z | 2021-12-08T13:59:32.000Z | app/__init__.py | winlongit/shop_pc_server | 376fa5c0504e50a863aad68ead67e0a149ef5dd2 | [
"Apache-2.0"
] | null | null | null | app/__init__.py | winlongit/shop_pc_server | 376fa5c0504e50a863aad68ead67e0a149ef5dd2 | [
"Apache-2.0"
] | 1 | 2021-12-08T13:59:34.000Z | 2021-12-08T13:59:34.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@ Author : pengj
@ date : 2019/11/25 21:07
@ IDE : PyCharm
@ GitHub : https://github.com/JackyPJB
@ Contact : pengjianbiao@hotmail.com
---------------... | 40.986111 | 230 | 0.596069 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
@ Author : pengj
@ date : 2019/11/25 21:07
@ IDE : PyCharm
@ GitHub : https://github.com/JackyPJB
@ Contact : pengjianbiao@hotmail.com
---------------... | 1,230 | 3,426 | 0 | 0 | 0 | 1,341 | 0 | 62 | 201 |
93e92d07bd7ae1362f4f38832f8ccfdd0576d278 | 173 | py | Python | tasks.py | MinchinWeb/prjct | 182c4b5c849c920fcc1d84fd7431aaae36bd8760 | [
"MIT"
] | 1 | 2020-05-29T00:26:52.000Z | 2020-05-29T00:26:52.000Z | tasks.py | MinchinWeb/prjct | 182c4b5c849c920fcc1d84fd7431aaae36bd8760 | [
"MIT"
] | 46 | 2016-10-18T00:57:24.000Z | 2022-01-01T17:22:29.000Z | tasks.py | MinchinWeb/prjct | 182c4b5c849c920fcc1d84fd7431aaae36bd8760 | [
"MIT"
] | 1 | 2018-09-17T14:30:09.000Z | 2018-09-17T14:30:09.000Z |
#import minchin.releaser
try:
except ImportError:
print("[WARN] minchin.releaser not installed")
| 21.625 | 56 | 0.780347 | import invoke
#import minchin.releaser
try:
from minchin.releaser import make_release, vendorize
except ImportError:
print("[WARN] minchin.releaser not installed")
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 23 | 48 |
7ad5d1bd4a4bcd3a0020da28df929a858e7a36db | 1,421 | py | Python | rpi-rgb-led-matrix-master/snappsvisa1.py | hammal/macapar | 05fb84b8f5e967ed6d3edb0891ac58674e6b60bc | [
"MIT"
] | null | null | null | rpi-rgb-led-matrix-master/snappsvisa1.py | hammal/macapar | 05fb84b8f5e967ed6d3edb0891ac58674e6b60bc | [
"MIT"
] | null | null | null | rpi-rgb-led-matrix-master/snappsvisa1.py | hammal/macapar | 05fb84b8f5e967ed6d3edb0891ac58674e6b60bc | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
from __future__ import unicode_literals
import Image
import ImageDraw
import time
import ImageFont
from rgbmatrix import Adafruit_RGBmatrix
# Rows and chain length are both required parameters:
matrix = Adafruit_RGBmatrix(32, 4)
font=ImageFont.load_default()
font=ImageFont.truetype("DejaVuSerif.... | 26.811321 | 54 | 0.701619 | #-*- coding: utf-8 -*-
from __future__ import unicode_literals
import Image
import ImageDraw
import time
import ImageFont
from rgbmatrix import Adafruit_RGBmatrix
# Rows and chain length are both required parameters:
matrix = Adafruit_RGBmatrix(32, 4)
font=ImageFont.load_default()
font=ImageFont.truetype("DejaVuSerif.... | 34 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
2a2404f29f3a92e6c43d59dd176c1c34c49e5597 | 1,478 | py | Python | projects/pico/deployment/plates/plates-consumer.py | henriwoodcock/developer | 7ddd7f0b56564c0c13d5505c16b6f89c0c29886a | [
"CC-BY-4.0"
] | 47 | 2020-08-10T12:58:13.000Z | 2022-03-18T18:11:44.000Z | projects/pico/deployment/plates/plates-consumer.py | henriwoodcock/developer | 7ddd7f0b56564c0c13d5505c16b6f89c0c29886a | [
"CC-BY-4.0"
] | 7 | 2021-02-13T02:13:52.000Z | 2021-08-18T14:03:49.000Z | projects/pico/deployment/plates/plates-consumer.py | henriwoodcock/developer | 7ddd7f0b56564c0c13d5505c16b6f89c0c29886a | [
"CC-BY-4.0"
] | 27 | 2020-08-07T19:44:52.000Z | 2022-03-08T19:16:46.000Z |
# coding: utf-8
# In[17]:
from kafka import KafkaConsumer
import boto3
import json
import base64
# Fire up the Kafka Consumer
topic = "testpico"
brokers = ["35.189.130.4:9092"]
# Initialising Kafka consumer(Lambda) with topic
consumer = KafkaConsumer(
topic,
bootstrap_servers=brokers,
value_deserial... | 24.229508 | 93 | 0.675237 |
# coding: utf-8
# In[17]:
import datetime
from kafka import KafkaConsumer
import boto3
import json
import base64
# Fire up the Kafka Consumer
topic = "testpico"
brokers = ["35.189.130.4:9092"]
# Initialising Kafka consumer(Lambda) with topic
consumer = KafkaConsumer(
topic,
bootstrap_servers=brokers,
... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | -6 | 23 |
0a0e643e3f48f6fc458be3375ed09d7479d57e9a | 53,021 | py | Python | msgraph/cli/command_modules/devicescorpmgt/azext_devicescorpmgt/generated/action.py | microsoftgraph/msgraph-cli-archived | 489f70bf4ede1ce67b84bfb31e66da3e4db76062 | [
"MIT"
] | null | null | null | msgraph/cli/command_modules/devicescorpmgt/azext_devicescorpmgt/generated/action.py | microsoftgraph/msgraph-cli-archived | 489f70bf4ede1ce67b84bfb31e66da3e4db76062 | [
"MIT"
] | 22 | 2022-03-29T22:54:37.000Z | 2022-03-29T22:55:27.000Z | msgraph/cli/command_modules/devicescorpmgt/azext_devicescorpmgt/generated/action.py | microsoftgraph/msgraph-cli-archived | 489f70bf4ede1ce67b84bfb31e66da3e4db76062 | [
"MIT"
] | null | null | null | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incor... | 35.370914 | 120 | 0.534486 | # --------------------------------------------------------------------------
# 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 may cause incor... | 0 | 0 | 0 | 51,689 | 0 | 0 | 0 | 18 | 757 |
3ed27044adeb49e0f6f0eacd3dfe8a1f38c4d1a1 | 24,701 | py | Python | Reinforcement Learning/examples/envs/mobile_robot_vrep_env.py | HusseinLezzaik/Consensus-Algorithm-for-2-Mobile-Robots | 0109c78106dff7640a8fc5601e0333b5397f5b4e | [
"MIT"
] | 9 | 2021-04-20T08:12:47.000Z | 2022-02-18T02:25:29.000Z | Reinforcement Learning/examples/envs/mobile_robot_vrep_env.py | HusseinLezzaik/Deep-Learning-for-Multi-Robotics | ecdb28793cc1f5fa6cded752908105ec37e9bfc7 | [
"MIT"
] | null | null | null | Reinforcement Learning/examples/envs/mobile_robot_vrep_env.py | HusseinLezzaik/Deep-Learning-for-Multi-Robotics | ecdb28793cc1f5fa6cded752908105ec37e9bfc7 | [
"MIT"
] | 1 | 2021-11-16T08:16:36.000Z | 2021-11-16T08:16:36.000Z | """
Defining Class of custom environment for V-Rep
@author: hussein
"""
import os
vrep_scenes_path = os.environ['/home/hussein/Desktop/Multi-agent-path-planning/Reinforcement Learning/examples/scenes']
import sim
import numpy as np
L = 1 # Parameter of robot
d = 0.5 # Parameter of robot
A = np.ones(6) - np.identity... | 39.1458 | 271 | 0.52759 | """
Defining Class of custom environment for V-Rep
@author: hussein
"""
import vrep_env
from vrep_env import vrep
import os
vrep_scenes_path = os.environ['/home/hussein/Desktop/Multi-agent-path-planning/Reinforcement Learning/examples/scenes']
import rclpy
from rclpy.node import Node
from tf2_msgs.msg import TFMes... | 0 | 0 | 0 | 22,543 | 0 | 167 | 0 | -3 | 291 |
f723f8c5703335b1a0fa5a181861df8ecc2a13f8 | 6,240 | py | Python | python/istio_api/mixer/v1/config/client/service_pb2.py | mt-inside/api | 3197d4dee332beb55f830899f37091c9899833f9 | [
"Apache-2.0"
] | 3 | 2020-11-30T15:35:37.000Z | 2022-01-06T14:17:18.000Z | python/istio_api/mixer/v1/config/client/service_pb2.py | mt-inside/api | 3197d4dee332beb55f830899f37091c9899833f9 | [
"Apache-2.0"
] | 54 | 2020-06-23T17:34:04.000Z | 2022-03-31T02:04:06.000Z | python/istio_api/mixer/v1/config/client/service_pb2.py | mt-inside/api | 3197d4dee332beb55f830899f37091c9899833f9 | [
"Apache-2.0"
] | 12 | 2020-07-14T23:59:57.000Z | 2022-03-22T09:59:18.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mixer/v1/config/client/service.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
f... | 41.6 | 624 | 0.747276 | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mixer/v1/config/client/service.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
f... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
89707121790cc25aa1f25ca1fe56ce628f54fe0a | 548 | py | Python | src/consensus/weight_verifier.py | nondejus/chia-blockchain | 67373400e7f88adff0c86e3bae2ddeadb49429ae | [
"Apache-2.0"
] | null | null | null | src/consensus/weight_verifier.py | nondejus/chia-blockchain | 67373400e7f88adff0c86e3bae2ddeadb49429ae | [
"Apache-2.0"
] | null | null | null | src/consensus/weight_verifier.py | nondejus/chia-blockchain | 67373400e7f88adff0c86e3bae2ddeadb49429ae | [
"Apache-2.0"
] | null | null | null | from typing import List
from src.types.header_block import HeaderBlock
def verify_weight(
tip: HeaderBlock, proof_blocks: List[HeaderBlock], fork_point: HeaderBlock
) -> bool:
"""
Verifies whether the weight of the tip is valid or not. Naively, looks at every block
from genesis, verifying proof of sp... | 28.842105 | 89 | 0.698905 | from typing import List
from src.types.header_block import HeaderBlock
def verify_weight(
tip: HeaderBlock, proof_blocks: List[HeaderBlock], fork_point: HeaderBlock
) -> bool:
"""
Verifies whether the weight of the tip is valid or not. Naively, looks at every block
from genesis, verifying proof of sp... | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
86730fd27a0440e8d0df28be564156a50855e775 | 9,755 | py | Python | honeybot/lib/utils.py | RogerDeng/HoneyBot | 3843ec6d684786091ced053857d1718ef1fa495c | [
"MIT"
] | 67 | 2019-08-16T05:03:19.000Z | 2021-11-25T01:48:23.000Z | honeybot/lib/utils.py | RogerDeng/HoneyBot | 3843ec6d684786091ced053857d1718ef1fa495c | [
"MIT"
] | null | null | null | honeybot/lib/utils.py | RogerDeng/HoneyBot | 3843ec6d684786091ced053857d1718ef1fa495c | [
"MIT"
] | 16 | 2020-02-20T12:38:40.000Z | 2022-03-22T17:45:25.000Z | """
__author__: Jamin Becker (jamin@packettotal.com)
"""
import os
import sys
import time
import socket
import logging
import pathlib
import warnings
from hashlib import md5
import psutil
import pyshark
import progressbar
from magic import from_buffer
from terminaltables import AsciiTable
from honeybot.lib import ... | 34.348592 | 115 | 0.476371 | """
__author__: Jamin Becker (jamin@packettotal.com)
"""
import os
import sys
import time
import socket
import logging
import pathlib
import warnings
from hashlib import md5
import psutil
import pyshark
import progressbar
from magic import from_buffer
from terminaltables import AsciiTable
from packettotal_sdk.packet... | 455 | 0 | 0 | 0 | 383 | 1,355 | 0 | 37 | 114 |