hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
ff2506447fb6079b3a55f705f210b6e67a61af3b
7,810
py
Python
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/btapp.py
leiferikb/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2021-11-15T15:17:43.000Z
2021-11-15T15:17:43.000Z
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/btapp.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
bitpop_specific/extensions/bittorrent_surf/app/lib/falcon-api/python/falcon_api/btapp.py
houseoflifeproperty/bitpop-private
4c967307d228e86f07f2576068a169e846c833ca
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:24:02.000Z
2020-11-04T07:24:02.000Z
from session import Session import logging from util import asyncsleep import json import urllib from tornado import gen from tornado.options import options if options.debug: import pdb class BTFunction(object): #wire_string = '[native function](' wire_string = "[nf](" def __repr__(self): retu...
34.254386
109
0.458643
ff250b49d1c949eab83320eca5c462cbf7a26489
3,889
py
Python
wizard_builder/tests/base.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
16
2016-06-21T04:05:24.000Z
2017-09-26T15:40:24.000Z
wizard_builder/tests/base.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
141
2016-06-21T20:46:46.000Z
2017-09-28T00:20:49.000Z
wizard_builder/tests/base.py
project-callisto/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
7
2017-10-04T22:52:18.000Z
2018-05-31T17:14:39.000Z
import logging import os from datetime import datetime from distutils.util import strtobool from urllib.parse import urlparse from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.wait import WebDriverWait from django.contrib.sites.models import Site from...
32.957627
83
0.638725
ff250e7ba34037b3ae2ed007afa00af810a05874
1,440
py
Python
sodasql/scan/test.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
sodasql/scan/test.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
sodasql/scan/test.py
fbertsch/soda-sql
112fd2efad64795b03dc55143fbf6a8385c93c8c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Soda # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software #...
40
104
0.711111
ff251a141e1759b8ae1bebaf89027505eb762c64
23,779
py
Python
omfitt.py
valq7711/orgapyzer
8f6d8c91e33bea41fc40ce2c1dced864e309506b
[ "MIT" ]
null
null
null
omfitt.py
valq7711/orgapyzer
8f6d8c91e33bea41fc40ce2c1dced864e309506b
[ "MIT" ]
null
null
null
omfitt.py
valq7711/orgapyzer
8f6d8c91e33bea41fc40ce2c1dced864e309506b
[ "MIT" ]
null
null
null
import threading import functools import enum import inspect from collections import UserDict from types import SimpleNamespace __version__ = '0.0.1' __author__ = "Valery Kucherov <valq7711@gmail.com>" __copyright__ = "Copyright (C) 2021 Valery Kucherov" __license__ = "MIT" class OrderedUniqSet(dict): add = lamb...
30.061947
100
0.593423
ff25352da1ffb2df4d967ed5719f6366e8222ce7
2,416
py
Python
venv/Lib/site-packages/pyrogram/raw/types/stats_abs_value_and_prev.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/stats_abs_value_and_prev.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/stats_abs_value_and_prev.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
32.213333
103
0.623758
ff256fce8765adf4422b4718a4bffcd38ff920bf
1,737
py
Python
dataset-tools/export_glove_words_and_embeddings.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
33
2021-04-14T01:27:34.000Z
2022-03-30T03:32:00.000Z
dataset-tools/export_glove_words_and_embeddings.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
null
null
null
dataset-tools/export_glove_words_and_embeddings.py
yekeren/WSSGG
4d20dadffe7584ac2c7f26419960512380b8d06e
[ "Apache-2.0" ]
6
2021-04-14T14:43:19.000Z
2022-01-01T14:36:11.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import app from absl import flags from absl import logging import numpy as np import tensorflow as tf flags.DEFINE_string('glove_file', 'zoo/glove.6B.300d.txt', 'Path to the pre-...
26.723077
79
0.674727
ff2571ef76f3dad5a087b10cf2036bcebf77776a
2,443
py
Python
development/models/layers/mesh_unpool.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
7
2021-04-07T06:31:58.000Z
2022-01-27T09:49:51.000Z
development/models/layers/mesh_unpool.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
null
null
null
development/models/layers/mesh_unpool.py
atomicsulfate/meshcnn-4-cadseg
c0d91ec593293cb58eec422556d1322a3b4f6183
[ "MIT" ]
2
2021-05-19T03:39:04.000Z
2021-08-12T08:20:19.000Z
import torch import torch.nn as nn # Sparse implementation class MeshUnpool(nn.Module): def __init__(self, unroll_target): super(MeshUnpool, self).__init__() self.unroll_target = unroll_target def __call__(self, features, meshes): return self.forward(features, meshes) def pad_grou...
33.930556
114
0.63815
ff257ba29df3d00681df573a62fb7d1e6196e394
47,734
py
Python
Code_for_Signal_Processing/plot_subject_test.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
1
2021-04-20T14:47:40.000Z
2021-04-20T14:47:40.000Z
Code_for_Signal_Processing/plot_subject_test.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
Code_for_Signal_Processing/plot_subject_test.py
puyaraimondii/biometric-classification-of-frequency-following-responses
f5b5dca516592be451a3133acb8fa178519bc991
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 9 17:02:59 2018 @author: bruce """ import pandas as pd import numpy as np from scipy import fftpack from scipy import signal import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap def correlation_matrix(corr_mx, c...
42.505788
153
0.722965
ff257cba09959569e5d3f0149b88eba4fef86aad
4,250
py
Python
pywicta/denoising/null.py
jeremiedecock/pywi-cta
1185f7dfa48d60116472c12ffc423be78a250fc9
[ "MIT" ]
null
null
null
pywicta/denoising/null.py
jeremiedecock/pywi-cta
1185f7dfa48d60116472c12ffc423be78a250fc9
[ "MIT" ]
1
2018-03-23T15:44:10.000Z
2018-03-23T15:44:10.000Z
pywicta/denoising/null.py
jeremiedecock/pywi-cta
1185f7dfa48d60116472c12ffc423be78a250fc9
[ "MIT" ]
1
2018-10-02T08:34:53.000Z
2018-10-02T08:34:53.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2016 Jérémie DECOCK (http://www.jdhp.org) # This script is provided under the terms and conditions of the MIT license: # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (th...
36.956522
161
0.646824
ff258df6469bcb227efffb480d49d53309b65d23
5,061
py
Python
LogicalTrigger.py
wadeguthrie/MonkeyHouse
bff7ca23658e4dfb5c13f13268676baa512013d4
[ "Apache-2.0" ]
null
null
null
LogicalTrigger.py
wadeguthrie/MonkeyHouse
bff7ca23658e4dfb5c13f13268676baa512013d4
[ "Apache-2.0" ]
null
null
null
LogicalTrigger.py
wadeguthrie/MonkeyHouse
bff7ca23658e4dfb5c13f13268676baa512013d4
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python """ Implements Logical Triggers for MonkeyHouse. """ import Trigger import TriggerFactory class LogicalTrigger(Trigger.Trigger): """ Base class for logical triggers. Handles instantiation of sub-triggers and passing 'arm' down the ladder. """ def __init__(self, data, executive...
40.488
78
0.600672
ff259bcca73da1048efb36bf43660eb0b18f29e1
2,372
py
Python
experiments/ashvin/icml2020/mujoco/pendulum/demo_awr4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/mujoco/pendulum/demo_awr4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/mujoco/pendulum/demo_awr4.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.mdp_path_loader import MDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants if __name__ == "__main__": variant = dict( num_e...
26.954545
70
0.578415
ff259f48f29d6d0c077023e87ef39aeba53b1f2a
1,479
py
Python
Gravity_Foundation/overturning_resistance.py
goharShoukat/Selkie_Foundation_Modelling
217d495449fdf10935dcacd99f79e765709800eb
[ "MIT" ]
null
null
null
Gravity_Foundation/overturning_resistance.py
goharShoukat/Selkie_Foundation_Modelling
217d495449fdf10935dcacd99f79e765709800eb
[ "MIT" ]
null
null
null
Gravity_Foundation/overturning_resistance.py
goharShoukat/Selkie_Foundation_Modelling
217d495449fdf10935dcacd99f79e765709800eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 27 10:57:59 2021 @author: goharshoukat This function calculates the overturning resistance This file feeds into foundation_characteristics This will be used as a descriptor for the above class THis script is part of the Selkie Project It is bas...
28.442308
95
0.699121
ff25b9d54542bb7fd4f544227bd836490cabd489
6,420
py
Python
ALREC_Method/sherbrooke/train_deep_aae_model_for_atd.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
6
2019-10-29T03:05:14.000Z
2022-03-18T05:14:25.000Z
ALREC_Method/rouen/train_deep_aae_model_for_atd.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2022-03-11T03:49:34.000Z
2022-03-11T03:49:34.000Z
ALREC_Method/rouen/train_deep_aae_model_for_atd.py
proy3/Abnormal_Trajectory_Classifier
a6b27c6847262e9703a0f3404c85c135415c1d4c
[ "MIT" ]
1
2021-12-15T09:21:26.000Z
2021-12-15T09:21:26.000Z
""" Train Abnormal trajectory detection with deep autoencoder. """ import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import ae_utilities as aeu import input_data as data import abnormal_data_generation as adg import dataset_defines as dd import numpy as np import os abspath = os.path.abs...
44.583333
119
0.69704
ff25bbcf674c4344b4ae85fed5e1539584d9484a
1,024
py
Python
venv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/experimental/__init__.py
rexliu3/StockTradingBotCloud
46b732b9c05f73bc0e856a3c4a16854b6d12e18e
[ "MIT" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
venv/lib/python3.6/site-packages/tensorflow_core/python/keras/api/_v2/keras/experimental/__init__.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
null
null
null
venv/lib/python3.6/site-packages/tensorflow_core/python/keras/api/_v2/keras/experimental/__init__.py
databill86/HyperFoods
9267937c8c70fd84017c0f153c241d2686a356dd
[ "MIT" ]
1
2020-06-28T11:47:47.000Z
2020-06-28T11:47:47.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.keras.experimental namespace. """ from __future__ import print_function as _print_function import sys as _sys from tensorflow.python.feature_column.sequence_feature_c...
48.761905
94
0.875
ff25c15df687335c81c50c71a3622b7c73bc2a60
110,115
py
Python
superset/views/core.py
devsisters/incubator-superset
f9b547688d0e65946d1c55ba91ef1cf8f34d3c59
[ "Apache-2.0" ]
null
null
null
superset/views/core.py
devsisters/incubator-superset
f9b547688d0e65946d1c55ba91ef1cf8f34d3c59
[ "Apache-2.0" ]
2
2019-11-11T11:16:32.000Z
2019-12-13T07:12:09.000Z
superset/views/core.py
devsisters/incubator-superset
f9b547688d0e65946d1c55ba91ef1cf8f34d3c59
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
35.27066
97
0.583544
ff25f31f00cd850f377026d20d32c07341fd2eed
15,061
py
Python
QA/preprocess/cmrc2018_preprocess.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
13
2020-05-09T07:19:15.000Z
2021-11-22T08:30:23.000Z
QA/preprocess/cmrc2018_preprocess.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
null
null
null
QA/preprocess/cmrc2018_preprocess.py
qhjqhj00/Search_QA
155a763c5ef4324d3edaaa8753473a8bd353968e
[ "Apache-2.0" ]
5
2020-07-13T12:19:22.000Z
2021-01-27T08:32:29.000Z
import collections import json import os from tqdm import tqdm from tools import official_tokenization as tokenization SPIECE_UNDERLINE = '▁' def _improve_answer_span(doc_tokens, input_start, input_end, tokenizer, orig_answer_text): """Returns tokenized answer spans that better match t...
41.150273
149
0.54764
ff2620a69abf5c4e9a7aa15449e5e732275f3eba
3,636
py
Python
docs/conf.py
nabobalis/parfive
a19dc00412d4c20f7da7818636b9aec9078b0a1b
[ "MIT" ]
26
2018-10-08T19:46:11.000Z
2022-03-03T17:38:16.000Z
docs/conf.py
nabobalis/parfive
a19dc00412d4c20f7da7818636b9aec9078b0a1b
[ "MIT" ]
67
2018-06-19T14:23:49.000Z
2022-02-08T10:41:43.000Z
docs/conf.py
nabobalis/parfive
a19dc00412d4c20f7da7818636b9aec9078b0a1b
[ "MIT" ]
15
2019-03-12T16:02:22.000Z
2022-01-18T17:50:14.000Z
""" Configuration file for the Sphinx documentation builder. isort:skip_file """ # flake8: NOQA: E402 # -- stdlib imports ------------------------------------------------------------ import datetime from packaging.version import Version # -- Project information -------------------------------------------------------...
32.176991
80
0.672167
ff262672c83dba0628c6e9c64e62d1d8d68be057
1,827
py
Python
demos/main_pubsub_events.py
taskcontrols/py-taskcontrols
0f3f8d64cafc77dfbf23e70b0c86a91fea858ce4
[ "MIT" ]
1
2020-04-17T07:15:14.000Z
2020-04-17T07:15:14.000Z
demos/main_pubsub_events.py
taskcontrols/py-taskcontrols
0f3f8d64cafc77dfbf23e70b0c86a91fea858ce4
[ "MIT" ]
14
2021-11-26T15:18:05.000Z
2021-12-12T03:05:31.000Z
demos/main_pubsub_events.py
taskcontrols/py-taskcontrols
0f3f8d64cafc77dfbf23e70b0c86a91fea858ce4
[ "MIT" ]
1
2021-11-26T15:05:52.000Z
2021-11-26T15:05:52.000Z
from taskcontrol.lib import EPubSubBase def run(data): print("Running Pubsub ", data) def publisher(data): print("Running publisher ", data) def subscriber(data): print("Running subscriber ", data) config = {"name": "new", "handler": run, "queue": None, "maxsize": 10, "queu...
49.378378
148
0.669951
ff2629cc9c164678cd35e03c24220569cf325094
4,129
py
Python
python/openlattice/models/entity_type_property_metadata.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
python/openlattice/models/entity_type_property_metadata.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
1
2021-01-20T00:20:01.000Z
2021-01-20T00:20:01.000Z
python/openlattice/models/entity_type_property_metadata.py
openlattice/api-clients
1d5be9861785b295089b732f37464e31bf80c8ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenLattice API OpenLattice API # noqa: E501 The version of the OpenAPI document: 0.0.1 Contact: support@openlattice.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openlattice.configuration import Configuration ...
27.898649
98
0.591426
ff2632b7afc67d56fc0fa18f46c5cd20e2fce148
7,547
py
Python
alipay/aop/api/domain/MerchantEffectQueryResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MerchantEffectQueryResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MerchantEffectQueryResult.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class MerchantEffectQueryResult(object): def __init__(self): self._accumulative_recharge_nums = None self._accumulative_total_allowance = None self._accumulative_total_days = No...
39.513089
113
0.676428
ff263ada485feb16b79a6a9d1819ff09d7b57299
2,265
py
Python
PyInstaller/hooks/hook-gi.repository.Gtk.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-gi.repository.Gtk.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
PyInstaller/hooks/hook-gi.repository.Gtk.py
BA7JCM/pyinstaller
51ff689509391921bdce42848f3a077dcbb40ca0
[ "Apache-2.0" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2005-2022, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
33.80597
96
0.664018
ff263f7c77cbc6fbe07507f940598a059895caec
914
py
Python
heat/api/openstack/__init__.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/api/openstack/__init__.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/api/openstack/__init__.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
39.73913
78
0.727571
ff2648562222d413f1e339f29b69873f45d84536
4,022
py
Python
alipay/aop/api/request/AlipayBossFncInvoiceLinkamtBatchqueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayBossFncInvoiceLinkamtBatchqueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayBossFncInvoiceLinkamtBatchqueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayBossFncInvoiceLinkamtBatchqueryModel import AlipayBossFncInvoiceLinkamtBatchqueryModel class AlipayBossFncInvoiceLinkamtBatchq...
27.737931
148
0.648931
ff267f7741e47a2ac2bb5a64410831681ee855cf
2,421
py
Python
KNearestNeighbour/knn.py
krp9848/MachineLearningAlgorithms
53b8c2f830c21a7383ba9c2ac608a6b9faeb3dcc
[ "MIT" ]
null
null
null
KNearestNeighbour/knn.py
krp9848/MachineLearningAlgorithms
53b8c2f830c21a7383ba9c2ac608a6b9faeb3dcc
[ "MIT" ]
null
null
null
KNearestNeighbour/knn.py
krp9848/MachineLearningAlgorithms
53b8c2f830c21a7383ba9c2ac608a6b9faeb3dcc
[ "MIT" ]
1
2020-06-03T17:10:23.000Z
2020-06-03T17:10:23.000Z
import numpy as np from collections import Counter import timeit def calculate_mode(arr: list) -> str: """Calculate the mode for the given series Args: arr (list): Given Series Returns: str: mode for the given series """ if not (isinstance(arr, list) or isinstance(arr, np.ndar...
36.134328
99
0.68195
ff26a28d00c1530a89cd367391c449eba47a9ef9
38,539
py
Python
tests/testapp/test_feincms3.py
fabiangermann/feincms3
568ffd1fa939071a4d6dfae0a70568d1522aaa9e
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/test_feincms3.py
fabiangermann/feincms3
568ffd1fa939071a4d6dfae0a70568d1522aaa9e
[ "BSD-3-Clause" ]
null
null
null
tests/testapp/test_feincms3.py
fabiangermann/feincms3
568ffd1fa939071a4d6dfae0a70568d1522aaa9e
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import User from django.core.exceptions import ValidationError from django.db import IntegrityError, transaction from django.forms.models import modelform_factory from django.template import Context, Template from django.test import Client, TestCase from django.urls import set_urlconf fr...
34.196096
106
0.542645
ff26c86f61ee733482790d30d632d8e1f4cc8f43
2,627
py
Python
etc/regen_makefile.py
jjhugues/alectryon
3ef33de5242469b1d0083c20ab7296d70ac248b6
[ "MIT" ]
null
null
null
etc/regen_makefile.py
jjhugues/alectryon
3ef33de5242469b1d0083c20ab7296d70ac248b6
[ "MIT" ]
null
null
null
etc/regen_makefile.py
jjhugues/alectryon
3ef33de5242469b1d0083c20ab7296d70ac248b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re from pathlib import Path from fnmatch import fnmatch CMD_RE = re.compile(r""" (?:^[ ]+(?=alectryon)|To[ ]compile:|[$])[ ]*(?P<cmd>[^\s]+)[ ]+ (?P<args>(?:.|\\\n)*?) # Allow escaped newlines in arguments \s+[#][ ]+ # Allows newline before "#" (?P<comment>.+?)...
26.009901
84
0.569852
ff26d4dd524b1a9bb15e110527df9192ac01722e
3,332
py
Python
src/correlations.py
albertoandreottiATgmail/cs224u-project
c4cc34a2b81283159219d7e1fc06d55d3e06611f
[ "MIT" ]
2
2019-02-03T22:38:15.000Z
2021-09-15T08:07:22.000Z
src/correlations.py
albertoandreottiATgmail/cs224u-project
c4cc34a2b81283159219d7e1fc06d55d3e06611f
[ "MIT" ]
2
2018-06-14T05:27:16.000Z
2019-06-24T22:53:24.000Z
src/correlations.py
albertoandreottiATgmail/cs224u-project
c4cc34a2b81283159219d7e1fc06d55d3e06611f
[ "MIT" ]
7
2018-09-06T21:13:28.000Z
2019-06-23T23:29:34.000Z
import data_readers import numpy as np import os import random from collections import Counter from config import Config from data_readers import read_dataset_splits, read_corpus from model_utils import get_response_time_label, add_cosine_similarity, add_question_length, add_jensen_shannon from scipy.stats import pear...
47.6
217
0.766807
ff26de5c465e748940f5c4175d4c0d14a3d5b901
1,157
py
Python
builder/mypy_boto3_builder/structures/client.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
builder/mypy_boto3_builder/structures/client.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
builder/mypy_boto3_builder/structures/client.py
jbpratt78/mypy_boto3
c1cfc39aa5643ca149dd6a4b16124826fcc28fa0
[ "MIT" ]
null
null
null
""" Boto3 Client. """ from dataclasses import dataclass, field from typing import List from botocore.client import BaseClient from mypy_boto3_builder.service_name import ServiceName, ServiceNameCatalog from mypy_boto3_builder.import_helpers.import_string import ImportString from mypy_boto3_builder.type_annotations.fa...
28.925
88
0.742437
ff2704835a9157351fece21ea88ebd4d72318ced
27,714
py
Python
bot/exts/backend/branding/_cog.py
discord-python/bot
6402e8c014ee77952e72937dd2a91c1a023ca068
[ "MIT" ]
22
2018-02-03T12:39:12.000Z
2018-10-03T22:19:23.000Z
bot/exts/backend/branding/_cog.py
discord-python/bot
6402e8c014ee77952e72937dd2a91c1a023ca068
[ "MIT" ]
52
2018-02-09T14:00:39.000Z
2018-06-06T17:29:32.000Z
bot/exts/backend/branding/_cog.py
discord-python/bot
6402e8c014ee77952e72937dd2a91c1a023ca068
[ "MIT" ]
15
2018-02-09T13:37:17.000Z
2018-05-10T13:17:58.000Z
import asyncio import contextlib import random import types import typing as t from datetime import timedelta from enum import Enum from operator import attrgetter import async_timeout import discord from arrow import Arrow from async_rediscache import RedisCache from discord.ext import commands, tasks from bot.bot i...
42.506135
120
0.677925
ff2734d991b1aaf07e6c6f17df77f157a74b63f6
674
py
Python
ecfs_analyze_logs/src/present_cache_hit_totals.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
ecfs_analyze_logs/src/present_cache_hit_totals.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
ecfs_analyze_logs/src/present_cache_hit_totals.py
zdvresearch/fast15-paper-addons
8001f658ba819202186bf84892f4718eefd021fe
[ "MIT" ]
null
null
null
# #!/usr/bin/env python import os import sys import json ecfs_base_cache_hit_ratio_file = sys.argv[1] with open(ecfs_base_cache_hit_ratio_file, 'r') as f: ratios = json.load(f) disk_requests = 0 tape_requests = 0 disk_bytes = 0 tape_bytes = 0 for date, values in ratios.items(): ...
25.923077
76
0.666172
ff275d454643019705e4c6aac79f5025410bca6f
11,331
py
Python
Tensorflow_OpenCV_Nightly/source/markdown/preprocessors.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Tensorflow_OpenCV_Nightly/source/markdown/preprocessors.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
Tensorflow_OpenCV_Nightly/source/markdown/preprocessors.py
Con-Mi/lambda-packs
b23a8464abdd88050b83310e1d0e99c54dac28ab
[ "MIT" ]
null
null
null
""" PRE-PROCESSORS ============================================================================= Preprocessors work on source text before we start doing anything too complicated. """ import re from . import util from . import odict def build_preprocessors(md_instance, **kwargs): """ Build the default set of pr...
39.897887
85
0.448063
ff276d074d3befc0e78d758d40c92539f33d04b3
8,390
py
Python
test/interfaces/test_shc_client.py
fabaff/smarthomeconnect
611cd0f372d03b5fc5798a2a9a5f962d1da72799
[ "Apache-2.0" ]
null
null
null
test/interfaces/test_shc_client.py
fabaff/smarthomeconnect
611cd0f372d03b5fc5798a2a9a5f962d1da72799
[ "Apache-2.0" ]
null
null
null
test/interfaces/test_shc_client.py
fabaff/smarthomeconnect
611cd0f372d03b5fc5798a2a9a5f962d1da72799
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Michael Thies <mail@mhthies.de> # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
41.127451
120
0.6882
ff27732c4c3facb6bfeda588e368b63c079c38c3
3,707
py
Python
Utilities/nine_sq_recognizer.py
farisdurrani/SpaceshipBattle
13c5f0386255bda5259c598d6d6b2376806b49d2
[ "CC-BY-4.0" ]
null
null
null
Utilities/nine_sq_recognizer.py
farisdurrani/SpaceshipBattle
13c5f0386255bda5259c598d6d6b2376806b49d2
[ "CC-BY-4.0" ]
null
null
null
Utilities/nine_sq_recognizer.py
farisdurrani/SpaceshipBattle
13c5f0386255bda5259c598d6d6b2376806b49d2
[ "CC-BY-4.0" ]
null
null
null
class NineSquareRecognizer: def __init__(self, x_array: list, y_array: list): if len(x_array) != len(y_array): raise IndexError('len(x_array) != len(y_array)') self.templates = dict() self.generate_templates() self.candidate = ["0" for _ in range(9)] self.define...
39.43617
80
0.429728
ff27b6cda8f9753d5574bb7c4d6fffac418f2d98
6,065
py
Python
igm.py
ChenSun-Phys/cosmo_axions
daf68ba72da2e3cde875803eb27ba70eb37fe30f
[ "MIT" ]
null
null
null
igm.py
ChenSun-Phys/cosmo_axions
daf68ba72da2e3cde875803eb27ba70eb37fe30f
[ "MIT" ]
null
null
null
igm.py
ChenSun-Phys/cosmo_axions
daf68ba72da2e3cde875803eb27ba70eb37fe30f
[ "MIT" ]
null
null
null
####################################################### ### Code for probabilities for axion-photon ### ### conversion in the IGM ### ### by Manuel A. Buen-Abad, 2020 ### ### and Chen Sun, 2020 ### ###################################...
38.878205
198
0.546908
ff27bc6f0667b00f300b9dc2b7558d2d7b98cd85
22,109
py
Python
controller/file_operation_controller/file_operation_controller.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/file_operation_controller/file_operation_controller.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
controller/file_operation_controller/file_operation_controller.py
rohandhanraj/Auto-AI-Pipeline
d5f39715c802db45afae0d5978d228bf0bcd2f0a
[ "MIT" ]
null
null
null
import os import sys from flask import render_template, redirect, url_for, jsonify, session from flask import request from werkzeug.utils import secure_filename import json, uuid from integration_layer.file_management.file_manager import FileManager from cloud_storage_layer.aws.amazon_simple_storage_service import Am...
50.020362
117
0.564205
ff27be2e6c131d09e66bde604002a063d1e4c408
370
py
Python
astetik/style/legend.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
8
2019-05-14T07:26:40.000Z
2021-12-21T12:05:20.000Z
astetik/style/legend.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
33
2018-04-04T20:45:59.000Z
2019-03-07T12:54:37.000Z
astetik/style/legend.py
meirm/astetik
ea05ce57a0bf1e8bd7ef18c4d5ca8d7ad3fb4be7
[ "MIT" ]
3
2020-02-09T14:35:00.000Z
2020-12-19T13:47:23.000Z
def _legend(x, legend, legend_labels, legend_position): import matplotlib.pyplot as plt if legend: if legend_labels != None: x = legend_labels if len(legend_position) == 0: plt.legend(x, loc=1, ncol=1, bbox_to_anchor=(1.25, 1.0)) else: plt.legend(x,...
28.461538
74
0.608108
ff2820b76820371d0215f21ca765a0b7928d55a0
6,962
py
Python
lab4_ZHANG_ZHENG_YANG/Python/exercise1_copy.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
lab4_ZHANG_ZHENG_YANG/Python/exercise1_copy.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
lab4_ZHANG_ZHENG_YANG/Python/exercise1_copy.py
cvemeki/Computational-motor-control
cf02c77bff44ffdff63630c445b35b657a1d2b6c
[ "Apache-2.0" ]
null
null
null
""" Lab 4 """ import numpy as np import matplotlib.pyplot as plt from biopack import integrate, DEFAULT, parse_args import biolog from SystemParameters import PendulumParameters from lab4_pendulum import pendulum_system DEFAULT["label"] = [r"$\theta$ [rad]", r"$d\theta/dt$ [rad/s]"] def pendulum_integration(state, ...
32.685446
145
0.563775
ff28342716a0989c9cb04cca4d98607d47b0de92
3,976
py
Python
intersight/models/boot_precision_policy_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/boot_precision_policy_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/boot_precision_policy_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class BootPrecisionPolicyList(object): """ NOTE: Th...
25.818182
89
0.563632
ff283a8def68b158859717f104e8e61237c71d34
65
py
Python
pyjac/pywrap/__init__.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
9
2018-10-08T07:49:20.000Z
2021-06-26T15:28:30.000Z
pyjac/pywrap/__init__.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
13
2018-09-01T14:17:51.000Z
2021-07-30T16:19:33.000Z
pyjac/pywrap/__init__.py
arghdos/spyJac
bdd6940c27681e3b19ee41efb31abd20a89d1be8
[ "MIT" ]
7
2018-09-08T11:57:34.000Z
2022-02-14T13:57:20.000Z
from pyjac.pywrap.pywrap_gen import pywrap __all__ = ['pywrap']
16.25
42
0.769231
ff284d561dcaa88520b7cef79eb46dbcc71319cb
1,927
py
Python
tests/test_utils/admin.py
sparrowme/djangocms-blog
6bbb32a3304d284fb699cf713e45ccd48ee876ae
[ "BSD-3-Clause" ]
1
2022-01-09T20:23:10.000Z
2022-01-09T20:23:10.000Z
tests/test_utils/admin.py
sparrowme/djangocms-blog
6bbb32a3304d284fb699cf713e45ccd48ee876ae
[ "BSD-3-Clause" ]
null
null
null
tests/test_utils/admin.py
sparrowme/djangocms-blog
6bbb32a3304d284fb699cf713e45ccd48ee876ae
[ "BSD-3-Clause" ]
1
2021-05-26T15:17:13.000Z
2021-05-26T15:17:13.000Z
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from django.utils.translation import gettext_lazy as _ from djangocms_blog.admin import PostAdmin from .models import CustomUser, PostExtension @admin.register(CustomUser) class CustomUserAdmin(UserAdmin): model = CustomUser f...
31.080645
112
0.546964
ff2876ce17c3c5dfe61fbeb939bc5592e42029ee
18,055
py
Python
tripleoclient/workflows/deployment.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
39
2015-09-08T14:34:36.000Z
2022-02-20T21:00:44.000Z
tripleoclient/workflows/deployment.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
1
2021-02-28T06:06:29.000Z
2021-02-28T06:06:29.000Z
tripleoclient/workflows/deployment.py
openstack/python-tripleoclient
3712cede1f859f5eb7b1d86b1721272448c219b0
[ "Apache-2.0" ]
33
2015-10-01T17:53:04.000Z
2022-03-10T11:50:38.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
32.827273
79
0.635613
ff289166643e043beb67eb69fee6dfdb841a0761
11,304
py
Python
tests/test_pyghooks.py
deeuu/xonsh
580b675f1a146e7f029eee1b0c1ccc1d770566ab
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_pyghooks.py
deeuu/xonsh
580b675f1a146e7f029eee1b0c1ccc1d770566ab
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
tests/test_pyghooks.py
deeuu/xonsh
580b675f1a146e7f029eee1b0c1ccc1d770566ab
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
"""Tests pygments hooks.""" import pytest import os import stat import pathlib from tempfile import TemporaryDirectory from xonsh.platform import ON_WINDOWS from xonsh.pyghooks import ( XonshStyle, Color, color_name_to_pygments_code, code_by_name, color_file, file_color_tokens, ) from xonsh.e...
33.247059
99
0.584218
ff28a367b9b8307ca9ed38196d9903400e46229a
3,792
py
Python
intersight/models/cond_alarm_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/cond_alarm_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/cond_alarm_list.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class CondAlarmList(object): """ NOTE: This class i...
24.623377
78
0.542458
ff28c77cf964018601c66d1df0c7bf153064c03d
1,294
py
Python
segment_classifier/transformer_classifier2/load_word_vector.py
liuhongbing1220/fundanNLP_task
20c7b3b5d21d4b030dc936b2f0bc54fc17f9a619
[ "MIT" ]
null
null
null
segment_classifier/transformer_classifier2/load_word_vector.py
liuhongbing1220/fundanNLP_task
20c7b3b5d21d4b030dc936b2f0bc54fc17f9a619
[ "MIT" ]
null
null
null
segment_classifier/transformer_classifier2/load_word_vector.py
liuhongbing1220/fundanNLP_task
20c7b3b5d21d4b030dc936b2f0bc54fc17f9a619
[ "MIT" ]
1
2019-12-14T01:31:56.000Z
2019-12-14T01:31:56.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 7 15:46:12 2019 @author: liuhongbing """ import tensorflow as tf import numpy as np import pickle import io import tensorflow_load_csv as lc datapath = '/Users/liuhongbing/Documents/tensorflow/data/' ''' 读取全部对word2vec ''' def load_vectors(fname)...
23.107143
80
0.644513
ff28ca91d0d35aaed6744bbf11dbf6633d7c1c67
2,653
py
Python
stdplugins/sudo_warn.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-08-02T11:14:29.000Z
2020-08-02T11:14:29.000Z
stdplugins/sudo_warn.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2021-02-08T20:41:43.000Z
2021-02-08T20:41:43.000Z
stdplugins/sudo_warn.py
dqanshi/alluka
f1ac5b227f4e12a4363c6e06b8acc0fd5aac6f1c
[ "Apache-2.0" ]
1
2020-05-31T07:19:52.000Z
2020-05-31T07:19:52.000Z
"""Warn the users by replied message Syntax: `.warn` <Reason> `.iswarn` by replying to know user got warn or not. `.rwarn` to remove warns. For SUDO users Customized by: @meanii """ import asyncio import html from telethon import events from telethon.tl.functions.channels import EditBannedRequest f...
37.366197
140
0.6585
ff28d548e20a2c32373d153bf3f066dac36e83aa
3,472
py
Python
build/merge.py
mpky/property_project
f22b8dbd829ceb16a556a5abc99da2bd9c20c5ae
[ "MIT" ]
6
2020-05-01T11:54:12.000Z
2021-05-26T21:05:55.000Z
build/merge.py
mpky/property_project
f22b8dbd829ceb16a556a5abc99da2bd9c20c5ae
[ "MIT" ]
3
2020-02-26T04:22:56.000Z
2021-03-19T12:22:08.000Z
build/merge.py
mpky/property_project
f22b8dbd829ceb16a556a5abc99da2bd9c20c5ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ Run this with PWD being the top level of the repo and python build/merge.py. This script will join the relevant columns from the TX Comptroller data file (texas_corp_merged.h5) with the cleaned Bexar property data (bexar_property_all.h5). """ import pandas as pd import numpy...
36.547368
102
0.68894
ff2917ececc349532f0542ea32ff6f001659cee6
1,992
py
Python
bookworm/continuous_reading.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
18
2019-07-19T22:12:15.000Z
2020-08-26T17:45:19.000Z
bookworm/continuous_reading.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
44
2019-07-15T10:17:00.000Z
2020-07-26T11:22:53.000Z
bookworm/continuous_reading.py
mush42/bookworm
a4bdd89363137a89a1bed1e9e072de4fb55576fd
[ "MIT" ]
9
2019-09-03T13:13:31.000Z
2020-08-25T13:55:27.000Z
# coding: utf-8 import winsound import time import threading import wx from bookworm import config from bookworm.service import BookwormService from bookworm.concurrency import call_threaded from bookworm.signals import ( reader_book_loaded, reader_book_unloaded, reader_page_changed, config_updated, ) ...
31.125
87
0.620984
ff293cebb4e6e572d390257da8ffc5708a9af21e
7,183
py
Python
scripts/api/library_upload_dir.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
scripts/api/library_upload_dir.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
scripts/api/library_upload_dir.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
#!/usr/bin/env python import argparse import os import sys from bioblend import galaxy class Uploader: def __init__(self, url, api, library_id, folder_id, should_link, non_local): self.gi = galaxy.GalaxyInstance(url=url, key=api) self.library_id = library_id self.folder_...
42.005848
158
0.590004
ff2959b8cdc4d982cb5ea0760e97def2336b952d
1,027
py
Python
functions/relay.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
5
2021-09-04T09:08:55.000Z
2022-02-08T00:28:08.000Z
functions/relay.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
2
2021-10-11T21:44:08.000Z
2021-11-05T07:41:23.000Z
functions/relay.py
Brettanda/friday-bot
d103b1c103052b8d6d12f44456fea3823bd22447
[ "CC0-1.0" ]
3
2021-09-04T09:12:34.000Z
2021-12-16T20:02:03.000Z
import logging import os import asyncio import discord from typing import TYPE_CHECKING if TYPE_CHECKING: from index import Friday as Bot from cogs.log import CustomWebhook MISSING = discord.utils.MISSING async def relay_info(msg: str, bot: "Bot", embed: discord.Embed = MISSING, file=MISSING, filefirst=MISSING,...
32.09375
229
0.722493
ff296c5f97975a0cf2ecb6220e11cf18a4c955dc
9,041
py
Python
leo/plugins/importers/xml.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/importers/xml.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
leo/plugins/importers/xml.py
frakel/leo-editor
b574118ee3b7ffe8344fa0d00dac603096117ac7
[ "MIT" ]
null
null
null
#@+leo-ver=5-thin #@+node:ekr.20140723122936.18137: * @file importers/xml.py '''The @auto importer for the xml language.''' import re import leo.core.leoGlobals as g import leo.plugins.importers.linescanner as linescanner Importer = linescanner.Importer Target = linescanner.Target #@+others #@+node:ekr.20161121204146.3...
35.594488
89
0.536666
ff298028a35097faaf7bad29f6dcc20496a5339d
4,361
py
Python
caltest/test_caldetector1/test_linearity.py
jneu/calibration-pipeline-testing-tool
afe1e844c6822d82234a3a9de27e059a8375b922
[ "BSD-3-Clause" ]
1
2022-03-28T05:39:59.000Z
2022-03-28T05:39:59.000Z
caltest/test_caldetector1/test_linearity.py
jneu/calibration-pipeline-testing-tool
afe1e844c6822d82234a3a9de27e059a8375b922
[ "BSD-3-Clause" ]
1
2018-06-20T20:39:07.000Z
2018-06-20T20:39:07.000Z
caltest/test_caldetector1/test_linearity.py
jneu/calibration-pipeline-testing-tool
afe1e844c6822d82234a3a9de27e059a8375b922
[ "BSD-3-Clause" ]
2
2021-04-09T23:52:15.000Z
2021-12-23T16:08:35.000Z
from ..utils import translate_dq, extract_subarray import os import numpy as np import pytest from astropy.io import fits from jwst.linearity import LinearityStep from jwst import datamodels import matplotlib.pyplot as plt import os @pytest.fixture(scope='module') def fits_output(fits_input): fname = fits_input[0...
41.533333
103
0.661775
ff299825ff84a3657709df39b405c5158565a47e
326
py
Python
tests/apps/blazewebtestapp2/components/tests/config/settings.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
null
null
null
tests/apps/blazewebtestapp2/components/tests/config/settings.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
6
2016-11-01T18:42:34.000Z
2020-11-16T16:52:14.000Z
tests/apps/blazewebtestapp2/components/tests/config/settings.py
blazelibs/blazeweb
b120a6a2e38c8b53da2b73443ff242e2d1438053
[ "BSD-3-Clause" ]
1
2020-01-22T18:20:46.000Z
2020-01-22T18:20:46.000Z
from werkzeug.routing import Rule from blazeweb.config import ComponentSettings class Settings(ComponentSettings): def init(self): self.for_me.routes = ([ Rule('/tests/rvbapp2', endpoint='tests:Rvb'), Rule('/tests/underscoretemplates', endpoint='tests:UnderscoreTemplates'), ...
25.076923
85
0.671779
ff29bc4cf78eef69a5b4c1c6a539cd64b1c5c2be
754
py
Python
angle.py
bl44ck/triangle
f31007695662cfde98a233bcc0948310c5259883
[ "Apache-2.0" ]
1
2021-02-06T09:59:16.000Z
2021-02-06T09:59:16.000Z
angle.py
bl44ck/triangle
f31007695662cfde98a233bcc0948310c5259883
[ "Apache-2.0" ]
9
2021-02-06T09:07:08.000Z
2021-03-03T19:19:05.000Z
angle.py
bl44ck/triangle
f31007695662cfde98a233bcc0948310c5259883
[ "Apache-2.0" ]
1
2021-02-06T09:11:04.000Z
2021-02-06T09:11:04.000Z
# Import import math def angle(a, b, c): """Categorizes angles of 3 sides into rectangular,obtuse and acute. Args: a; int; Side a of the Triangle b; int; Side b of the Triangle c; int; Side c of the Triangle Returns: str; String of the category """ ...
22.848485
72
0.551724
ff29beb0b4e45da14381b97dfb43112b64a894f6
604
py
Python
Chapter02/tokenization.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
22
2018-05-04T01:15:12.000Z
2021-12-19T17:14:53.000Z
Chapter02/tokenization.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
1
2021-02-20T12:50:08.000Z
2021-02-24T06:40:07.000Z
Chapter02/tokenization.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
20
2018-07-07T17:20:18.000Z
2021-04-22T17:31:18.000Z
text = "Tokenization is the process of dividing text into a set of meaningful pieces. These pieces are called tokens." # Sentence tokenization from nltk.tokenize import sent_tokenize tokenize_list_sent = sent_tokenize(text) print "\nSentence tokenizer:" print tokenize_list_sent # Create a new word tokenizer from ...
27.454545
118
0.819536
ff2a6fdebe0b98d126ee8c9ee7216d5492afd582
468
py
Python
Image/WorkClass2.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
Image/WorkClass2.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
Image/WorkClass2.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
import cv2 cap = cv2.VideoCapture(1) cap.set(cv2.CAP_PROP_FRAME_WIDTH,640) cap.set(cv2.CAP_PROP_FRAME_HEIGHT,480) while(True): k = cv2.waitKey(1) ret, frame = cap.read() gray_image = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('frame',frame) cv2.imshow('gray',gray_image) if k ...
24.631579
57
0.621795
ff2a9194d880fd79281579d31b616d47730877f7
21,046
py
Python
src/inworldz/maestro/Region.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
3
2016-02-20T00:47:52.000Z
2018-07-27T22:57:36.000Z
src/inworldz/maestro/Region.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
1
2016-07-29T07:19:01.000Z
2016-07-29T07:19:01.000Z
src/inworldz/maestro/Region.py
InWorldz/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
2
2018-04-09T18:15:18.000Z
2018-05-20T16:14:28.000Z
''' Created on Jan 24, 2013 @author: mdickson ''' import subprocess import os.path import shutil import sys from inworldz.util.rdbhost import GetRdbHost, AssignBestRdbHost import inworldz.util.provision as provision import inworldz.util.estate as estate import inworldz.util.properties as DefaultProperties import in...
34.615132
137
0.627483
ff2a9dac2cf83b643369d27497edfe06c20dac03
8,803
py
Python
tests/bgp/test_bgp_speaker.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/bgp/test_bgp_speaker.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/bgp/test_bgp_speaker.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
import pytest from netaddr import * import time import logging import requests from tests.common.fixtures.ptfhost_utils import copy_ptftests_directory # lgtm[py/unused-import] from tests.common.fixtures.ptfhost_utils import change_mac_addresses # lgtm[py/unused-import] from tests.common.fixtures.ptfhost_utils i...
43.579208
159
0.662615
ff2aaca490aadc31252cb6e69591cf4d43e6623a
816
py
Python
src/sentences.py
CGirdlestone/TextAdventure
6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad
[ "MIT" ]
null
null
null
src/sentences.py
CGirdlestone/TextAdventure
6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad
[ "MIT" ]
null
null
null
src/sentences.py
CGirdlestone/TextAdventure
6127d6c98ce3ad4c6e4d4fd0262310e74f2e4fad
[ "MIT" ]
null
null
null
PC_ATTACKS = ["You strike the {}{}{} for {}{}{} damage.", "You wildly swing at the {}{}{} for {}{}{} damage.", "You put all of your strength into the attack, whacking the {}{}{} for {}{}{} damage.", "Expertly breaking through the {}{}{}'s defences, you deal {}{}{} damage...
62.769231
103
0.517157
ff2b1456cbcddade5318f206d4de24d7b408e50b
22,408
py
Python
nnvm/python/nnvm/frontend/mxnet.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
nnvm/python/nnvm/frontend/mxnet.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
nnvm/python/nnvm/frontend/mxnet.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.902778
98
0.627633
ff2b265377c4c28ab49b3420e01c5a2d49c4dc5a
10,854
py
Python
gftool/lattice/sc.py
DerWeh/gftools
a123c3d2aa62bcf9c2c7fcc15121cf60d09df020
[ "MIT" ]
12
2020-10-09T10:05:44.000Z
2022-02-22T14:04:19.000Z
gftool/lattice/sc.py
DerWeh/gftools
a123c3d2aa62bcf9c2c7fcc15121cf60d09df020
[ "MIT" ]
20
2020-01-28T09:15:27.000Z
2022-02-06T16:48:30.000Z
gftool/lattice/sc.py
DerWeh/gftools
a123c3d2aa62bcf9c2c7fcc15121cf60d09df020
[ "MIT" ]
6
2021-03-09T19:10:37.000Z
2022-02-02T14:29:06.000Z
r"""3D simple cubic (sc) lattice. The dispersion of the 3D simple cubic lattice is given by .. math:: ϵ_{k_x, k_y, k_z} = 2t [\cos(k_x) + \cos(k_y) + \cos(k_z)] which takes values in :math:`ϵ_{k_x, k_y, k_z} ∈ [-6t, +6t] = [-D, +D]`. :half_bandwidth: The half_bandwidth corresponds to a nearest neighbor hopping ...
31.369942
98
0.590289
ff2b4f4e7ddd7ffa30e68e36057ececa7be5c4e1
19,768
py
Python
src/graph_transpiler/webdnn/backend/code_generator/allocator.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
1
2018-07-26T13:52:21.000Z
2018-07-26T13:52:21.000Z
src/graph_transpiler/webdnn/backend/code_generator/allocator.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
src/graph_transpiler/webdnn/backend/code_generator/allocator.py
gunpowder78/webdnn
c659ea49007f91d178ce422a1eebe289516a71ee
[ "MIT" ]
null
null
null
from enum import auto, Enum from typing import Dict, List, Set, Union, Tuple import numpy as np from webdnn.graph import traverse from webdnn.graph.graph import Graph from webdnn.graph.operator import Operator from webdnn.graph.operators.attributes.inplace import Inplace from webdnn.graph.placeholder import Placehold...
32.891847
137
0.526153
ff2b596a9240849fd7a81ded1e93e4a413c3a8f5
471
py
Python
setup.py
dstruthers/python-tengwar
583d0fe38f8771ae3cf0a0cc1c2895d9848ec182
[ "MIT" ]
5
2017-02-23T04:18:42.000Z
2022-03-06T01:11:19.000Z
setup.py
dstruthers/python-tengwar
583d0fe38f8771ae3cf0a0cc1c2895d9848ec182
[ "MIT" ]
null
null
null
setup.py
dstruthers/python-tengwar
583d0fe38f8771ae3cf0a0cc1c2895d9848ec182
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='tengwar', version='1.0.0', author='Darren M. Struthers', author_email='dstruthers@gmail.com', py_modules=['tengwar'], description='Tengwar transliteration library', license='MIT', install_requires=[ 'bidict', 'parsin...
27.705882
98
0.624204
ff2b5abc66949f943738ecc1318d95a47cda27bc
482
py
Python
src/7/accessing_variables_defined_inside_a_closure/example1.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/7/accessing_variables_defined_inside_a_closure/example1.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/7/accessing_variables_defined_inside_a_closure/example1.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
# Example of accessing variables inside a closure def sample(): n = 0 # Closure function def func(): print('n=', n) # Accessor methods for n def get_n(): return n def set_n(value): nonlocal n n = value # Attach as function attributes fun...
16.62069
49
0.529046
ff2b79994791a9994a43f11db6897aa3f7ee00d5
2,140
py
Python
contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/plugin_test_base.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/plugin_test_base.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "Apache-2.0" ]
null
null
null
contrib/python/tests/python/pants_test/contrib/python/checks/tasks/checkstyle/plugin_test_base.py
ghthor/pants
450de702414f87f563081ddefaefd8a554de07a3
[ "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, print_function, unicode_literals import copy import os import unittest from pants.util.dirutil import safe_mkdtemp from p...
35.666667
86
0.736449
ff2bb4c44c6469e95d87d0839d9d8429017f05df
1,115
py
Python
gasp/initdb.py
agianchandani2018/ISP
d86a9dd622313294efc86899689c2eb579a901af
[ "MIT" ]
1
2018-06-02T17:50:12.000Z
2018-06-02T17:50:12.000Z
gasp/initdb.py
agianchandani2018/ISP
d86a9dd622313294efc86899689c2eb579a901af
[ "MIT" ]
1
2018-06-03T15:34:00.000Z
2018-06-04T15:50:36.000Z
gasp/initdb.py
agianchandani2018/ISP
d86a9dd622313294efc86899689c2eb579a901af
[ "MIT" ]
null
null
null
import gasp #pls help there are circular dependencies but why is it throwing the error here ;-; ''' app.config.update(dict( DATABASE=os.path.join(app.root_path, 'gasp.db'), DEBUG=True, #SECRET_KEY='development key', #USERNAME='admin', #PASSWORD='default' )) app.config.from_envvar('GASP_SETTINGS', silent=True) #c...
23.229167
83
0.731839
ff2bd5fb37087aca4448435ee22519030f2841fe
2,161
py
Python
gordon/blueprints/blueprints.py
twilio-labs/gordon
05c77a08c725180d21a988c9999cbefc295f4c8f
[ "MIT" ]
12
2021-09-09T00:57:53.000Z
2022-02-11T00:56:12.000Z
gordon/blueprints/blueprints.py
twilio-labs/gordon
05c77a08c725180d21a988c9999cbefc295f4c8f
[ "MIT" ]
null
null
null
gordon/blueprints/blueprints.py
twilio-labs/gordon
05c77a08c725180d21a988c9999cbefc295f4c8f
[ "MIT" ]
1
2021-09-15T15:52:08.000Z
2021-09-15T15:52:08.000Z
from flask import Blueprint from flask import request, jsonify from . import api_exceptions from gordon.services.common.logger import get_logger from gordon.services.github.sender_verification import SenderVerificationProcessor from gordon.services.celery_worker.webhook_async_processor import webhook_async import json...
33.765625
115
0.756594
ff2bd767fa6c7cd9ec015ef255417b547667f584
26,984
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_proximity_placement_groups_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.427673
208
0.68737
ff2bdcb62077e72c0ced04c6731eb49aa682661e
3,618
py
Python
tests/lldp/test_lldp.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/lldp/test_lldp.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/lldp/test_lldp.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
import logging import pytest logger = logging.getLogger(__name__) pytestmark = [ pytest.mark.topology('any'), pytest.mark.device_type('vs') ] @pytest.fixture(scope="module", autouse=True) def setup_check_topo(testbed): if testbed['topo']['type'] == 'ptf': pytest.skip('Unsupported topology') def ...
46.987013
134
0.676064
ff2be2310ebc41cc0b5890cd49efe193c4431b3b
3,959
py
Python
tests/scripts/v1/ts_order_buystop.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
3
2021-07-12T10:50:26.000Z
2022-02-24T10:30:03.000Z
tests/scripts/v1/ts_order_buystop.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
null
null
null
tests/scripts/v1/ts_order_buystop.py
tradepython/pixiu
8f4639c2b3b620e641e5cd19842c007707f26e12
[ "Apache-2.0" ]
null
null
null
ood = GetOpenedOrderUIDs() if len(ood) == 0: pod = GetPendingOrderUIDs() if len(pod) == 0: # point = SymbolInfo("point") volume = 0.01 # Buy all params stop_loss = Bid() - 15 * point take_profit = Ask() + 30 * point magic_number = 4301250 # failed...
38.813725
125
0.624148
ff2be6659e8cc62d00f6d9f368b3d134a623a612
1,022
py
Python
lreid/methods/drop_grad.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
63
2021-03-20T15:33:11.000Z
2022-03-30T03:04:14.000Z
few_shot_learning/methods/drop_grad.py
adkevin3307/NASA_Hackathon2020_Team10
a7d3c3b3a1c1c217090111cfdf2174c755e95780
[ "MIT" ]
5
2021-03-23T08:04:21.000Z
2022-03-10T02:28:43.000Z
lreid/methods/drop_grad.py
TPCD/LifelongReID
cb33f9c29fe398e7546db345fab1c338dda8252f
[ "MIT" ]
10
2021-04-30T11:14:10.000Z
2022-03-18T16:44:55.000Z
import numpy as np import torch class DropGrad(torch.nn.Module): def __init__(self, method='gaussian', rate=0.1, schedule='constant'): super(DropGrad, self).__init__() self.method = method self.rate = rate if self.method != 'gaussian' else np.sqrt(rate/(1 - rate)) self.schedule = schedule def upda...
35.241379
108
0.658513
ff2bf5280a4d27cca228f8cdc1e8f2d5b473b7f1
1,789
py
Python
web/raxauth/tests/test_permissions.py
bunchc/FleetDeploymentReporting
a93af06573f2715e14b4d18b7a394c26fc19a32d
[ "Apache-2.0" ]
1
2018-07-11T20:20:21.000Z
2018-07-11T20:20:21.000Z
web/raxauth/tests/test_permissions.py
bunchc/FleetDeploymentReporting
a93af06573f2715e14b4d18b7a394c26fc19a32d
[ "Apache-2.0" ]
46
2018-08-08T19:46:15.000Z
2019-02-22T20:33:49.000Z
web/raxauth/tests/test_permissions.py
dani4571/FleetDeploymentReporting
8b132a20fa3e9c4e4215feade79f689be6e4b364
[ "Apache-2.0" ]
7
2018-06-26T15:27:55.000Z
2018-12-05T19:41:25.000Z
import mock from django.test import TestCase from django.test import tag from raxauth.permissions import IsRpcRacker TEST_GROUPS = set(['group_1', 'group_2', 'group_3']) class FakeUser: def __init__(self, is_authenticated, roles=None): self.is_authenticated = is_authenticated if roles is None: ...
33.12963
78
0.673561
ff2c13772d8dcae20508bb7ba01015c162ce7b8d
5,972
py
Python
smartva/cause_grapher.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
smartva/cause_grapher.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
smartva/cause_grapher.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
import csv import os import re from collections import defaultdict, OrderedDict import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.ticker as ticker import numpy as np from smartva.data.common_data import MALE, FEMALE, ADULT, CHILD, NEONATE from smartva.grapher_prep import Graphe...
33.363128
117
0.60633
ff2c2ce76038dfd66a400db3ad8d5ffd117c0294
1,338
py
Python
maskrcnn_benchmark/data/datasets/evaluation/__init__.py
alexey-kashapov/maskrcnn-benchmark
b11b8b7c04eee648ee958f3f3352525e665f0710
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/evaluation/__init__.py
alexey-kashapov/maskrcnn-benchmark
b11b8b7c04eee648ee958f3f3352525e665f0710
[ "MIT" ]
null
null
null
maskrcnn_benchmark/data/datasets/evaluation/__init__.py
alexey-kashapov/maskrcnn-benchmark
b11b8b7c04eee648ee958f3f3352525e665f0710
[ "MIT" ]
null
null
null
from maskrcnn_benchmark.data import datasets from .coco import coco_evaluation from .voc import voc_evaluation from .cityscapes import abs_cityscapes_evaluation def evaluate(dataset, predictions, output_folder, **kwargs): """evaluate dataset using different methods based on dataset type. Args: dataset...
39.352941
87
0.718984
ff2c43849dc383d6c55add854289d225be07dacb
233
py
Python
app/user/urls.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
app/user/urls.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
app/user/urls.py
Misiaty-Mat/Event-schedule
15ab5ec3d49b1f16e43a8d90709df5d143401c7a
[ "MIT" ]
null
null
null
from django.urls import path from . import views urlpatterns = [ path('signup/', views.sign_up_user, name='register'), path('login/', views.loginuser, name='login'), path('logout/', views.logoutuser, name='logout'), ]
21.181818
57
0.669528
ff2c5e360b671adeb37c60d39e53b611c58344c5
9,739
py
Python
docs/conf.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
1
2016-09-14T09:53:43.000Z
2016-09-14T09:53:43.000Z
docs/conf.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
null
null
null
docs/conf.py
alecdotico/engineauth
def523f6c0d48f346e552b6638e6f3a6a1717733
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # EngineAuth documentation build configuration file, created by # sphinx-quickstart on Mon Jan 2 01:00:18 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
32.571906
149
0.701612
ff2c61a5a58e46b3df9df56a4bb3093d67e64de8
1,750
py
Python
src/homie-nodes/tests/test_homie_apparatus_cameras.py
cdeck3r/3DScanner
bbd80d676985d2978ed2bc981164b9f72f4c3737
[ "MIT" ]
2
2021-03-26T18:14:24.000Z
2021-10-13T06:32:11.000Z
src/homie-nodes/tests/test_homie_apparatus_cameras.py
cdeck3r/3DScanner
bbd80d676985d2978ed2bc981164b9f72f4c3737
[ "MIT" ]
null
null
null
src/homie-nodes/tests/test_homie_apparatus_cameras.py
cdeck3r/3DScanner
bbd80d676985d2978ed2bc981164b9f72f4c3737
[ "MIT" ]
3
2020-12-01T08:23:46.000Z
2021-10-13T06:32:11.000Z
# # Testing homie description for apparatus's cameras # # Author: cdeck3r # import subprocess import time from datetime import datetime import pytest class TestHomieApparatusCameras: def mqtt_sub(self, pytestconfig, topic, wait=2): broker = pytestconfig.getini('mqttbroker') process = subprocess...
29.661017
78
0.617143
ff2c8764bac0a17d080506dfbf3eb3385cb9a64d
9,191
py
Python
nova/tests/unit/virt/vmwareapi/test_network_util.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2016-04-28T16:20:38.000Z
2021-04-25T11:19:03.000Z
nova/tests/unit/virt/vmwareapi/test_network_util.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/virt/vmwareapi/test_network_util.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
5
2020-04-08T20:24:45.000Z
2020-10-05T19:02:13.000Z
# Copyright (c) 2014 VMware, Inc. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
39.110638
78
0.582309
ff2c978e9516778402bba8d5085527a5ac63d294
35,923
py
Python
metapool/metapool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
metapool/metapool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
metapool/metapool.py
ElDeveloper/metagenomics_pooling_notebook
f72377599084a24775dc6cca7d8fbddb66f82316
[ "MIT" ]
null
null
null
import os import re import numpy as np import pandas as pd import string import sys import seaborn as sns import matplotlib.pyplot as plt import sample_sheet import tempfile import collections import warnings from io import StringIO def read_plate_map_csv(f, sep = '\t'): """ reads tab-delimited plate map into...
33.698874
110
0.611586
ff2cadace752c530476ad5e1f785773f2de2deaa
5,870
py
Python
Exercice 2/implementing_ws_model.py
Yanko96/CS-E5740-Complex-Networks
708af24230218b77f1196c1a0ec5885165491a85
[ "MIT" ]
null
null
null
Exercice 2/implementing_ws_model.py
Yanko96/CS-E5740-Complex-Networks
708af24230218b77f1196c1a0ec5885165491a85
[ "MIT" ]
null
null
null
Exercice 2/implementing_ws_model.py
Yanko96/CS-E5740-Complex-Networks
708af24230218b77f1196c1a0ec5885165491a85
[ "MIT" ]
null
null
null
# In order to understand how the code works, it is a good idea to check the # final section of the file that starts with # if __name__ == '__main__' # # Your task is essentially to replace all the parts marked as TODO or as # instructed through comments in the functions, as well as the filenames # and labels in the m...
32.430939
81
0.624702
ff2caf5ad7a37c449d131c65ff44f79a9e31ca80
7,447
py
Python
ethevents/test/test_client_app.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
2
2018-08-21T01:06:30.000Z
2019-03-05T08:15:55.000Z
ethevents/test/test_client_app.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
1
2018-04-23T14:01:51.000Z
2018-04-23T14:09:51.000Z
ethevents/test/test_client_app.py
ezdac/ethevents
9f4b0ff1ba0d303180abe3b5336805335bc0765b
[ "MIT" ]
1
2022-03-22T04:57:16.000Z
2022-03-22T04:57:16.000Z
from typing import List from unittest import mock import ethereum import pytest import requests_mock from _pytest.monkeypatch import MonkeyPatch from eth_utils import decode_hex, to_normalized_address from web3 import Web3 from web3.contract import Contract from ethevents.client.app import App, uCustomSession from et...
30.900415
94
0.679737
ff2cfb04f8829f7263e3aa3b7883a751b63662ec
20,119
py
Python
deepchem/rl/a3c.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
3
2017-10-07T13:48:48.000Z
2021-06-13T09:09:03.000Z
deepchem/rl/a3c.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
1
2017-08-29T22:08:24.000Z
2017-08-29T22:08:24.000Z
deepchem/rl/a3c.py
rbharath/deepchem
8c3bcdd557abdbb380b64c2d460a73aff76fb303
[ "MIT" ]
5
2017-03-19T01:48:13.000Z
2019-02-22T01:12:03.000Z
"""Asynchronous Advantage Actor-Critic (A3C) algorithm for reinforcement learning.""" from deepchem.models import TensorGraph from deepchem.models.tensorgraph import TFWrapper from deepchem.models.tensorgraph.layers import Feature, Weights, Label, Layer import numpy as np import tensorflow as tf import collections imp...
41.059184
124
0.683483
ff2d3a7218da66eba6f8d1229c713f1a2f4487d4
10,600
py
Python
src/cltk/phonology/middle_english/transcription.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
2
2019-08-18T21:10:01.000Z
2020-05-05T09:19:40.000Z
src/cltk/phonology/middle_english/transcription.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
62
2019-02-01T18:48:11.000Z
2020-08-19T17:52:53.000Z
src/cltk/phonology/middle_english/transcription.py
clemsciences/cltkv1
88bd45419e254f69c9467ce6b2543249c57d1503
[ "MIT" ]
8
2019-04-07T03:47:31.000Z
2020-07-01T07:02:59.000Z
__author__ = ["Eleftheria Chatziargyriou <ele.hatzy@gmail.com>"] __license__ = "MIT License" import re from cltk.stem.enm import stem """ The hyphenation/syllabification algorithm is based on the typical syllable structure model of onset/nucleus/coda. An additional problem arises with the distinction between long a...
28.571429
87
0.508962
ff2d66f3c2d3cca45c646d973fc1ca4cddb90795
7,729
py
Python
venv/Lib/site-packages/pyrogram/raw/types/stats/broadcast_stats.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/stats/broadcast_stats.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/stats/broadcast_stats.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
48.006211
724
0.697762
ff2dc3a8b3f025f68864ce527ececc4a9d22355c
339
py
Python
master/tutorials/cracking-the-coding-interview/ctci-bubble-sort/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
master/tutorials/cracking-the-coding-interview/ctci-bubble-sort/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
master/tutorials/cracking-the-coding-interview/ctci-bubble-sort/solution.py
bitnot/hackerrank-solutions
cb54af3e80f9aa188a7aadf357c5d9bcc0715249
[ "MIT" ]
null
null
null
n = int(input().strip()) a = list(map(int, input().strip().split(' '))) swaps = 0 for i in range(0,n): for j in range(0,n-1): if a[j] > a[j+1]: a[j], a[j+1] = a[j+1], a[j] swaps += 1 print("""Array is sorted in {0} swaps. First Element: {1} Last Element: {2}""".format(s...
26.076923
48
0.480826
ff2df5d5a6064e4fed08a426aeeb5492d4a8ee45
6,643
py
Python
foe.py
QwerTech/foe-automation
9978cd365097a2c9ebec9039642c4e5f6c361018
[ "MIT" ]
null
null
null
foe.py
QwerTech/foe-automation
9978cd365097a2c9ebec9039642c4e5f6c361018
[ "MIT" ]
3
2021-09-08T02:13:20.000Z
2022-03-12T00:36:40.000Z
foe.py
QwerTech/foe-automation
9978cd365097a2c9ebec9039642c4e5f6c361018
[ "MIT" ]
null
null
null
from __future__ import annotations import itertools import threading import traceback from datetime import datetime, timedelta from time import sleep import keyboard as kb # functions to be run, you can change these! from waiting import wait import foe_desktops from foe_bot_army import processArmy from foe_bot_gold ...
28.029536
87
0.663556
ff2e3438d4ec23d541d9f83570547789c50f349e
5,858
py
Python
lightly/openapi_generated/swagger_client/api/mappings_api.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
1,515
2020-10-05T13:04:17.000Z
2022-03-31T16:14:55.000Z
lightly/openapi_generated/swagger_client/api/mappings_api.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
628
2020-10-14T11:38:51.000Z
2022-03-31T14:40:54.000Z
lightly/openapi_generated/swagger_client/api/mappings_api.py
Tekrific/lightly
75a1d56b4cee77f68e0f3166e3a412711d0dbb2d
[ "MIT" ]
108
2020-10-17T08:31:06.000Z
2022-03-20T16:44:22.000Z
# coding: utf-8 """ Lightly API Lightly.ai enables you to do self-supervised learning in an easy and intuitive way. The lightly.ai OpenAPI spec defines how one can interact with our REST API to unleash the full potential of lightly.ai # noqa: E501 OpenAPI spec version: 1.0.0 Contact: support@lightly...
42.449275
220
0.642199
ff2e36a072bb4d631edf69c05aa011fc964fe4b7
2,387
py
Python
spectrum_gmbh/spcerr.py
KCL-BMEIS/spectrumdevice
f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551
[ "MIT" ]
4
2022-01-10T08:35:23.000Z
2022-01-19T12:06:05.000Z
spectrum_gmbh/spcerr.py
KCL-BMEIS/spectrumdevice
f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551
[ "MIT" ]
8
2022-01-05T14:07:10.000Z
2022-03-17T20:03:27.000Z
spectrum_gmbh/spcerr.py
KCL-BMEIS/spectrumdevice
f0eecbd1d3b58dc9a9f226c4c75d7f398b1ea551
[ "MIT" ]
null
null
null
# # ************************************************************************** # # spcerr.py (c) Spectrum GmbH # # ************************************************************************** # # Feel free to use this source for own projects and modify it in any kind. # # ************...
25.393617
76
0.735651
ff2e441d4d78dfee46363a8625a701e0c2276fbe
7,511
py
Python
StructVBERT/tasks/nlvr2.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-08-05T05:41:50.000Z
2021-08-05T05:41:50.000Z
StructVBERT/tasks/nlvr2.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
null
null
null
StructVBERT/tasks/nlvr2.py
onlyrico/AliceMind
a6a070b1610e4c4bfe84ee6c4195b2bc4f725ded
[ "Apache-2.0" ]
1
2021-07-10T09:50:47.000Z
2021-07-10T09:50:47.000Z
# coding=utf-8 # Copyleft 2019 project LXRT. import os import collections from tqdm import tqdm import torch import torch.nn as nn from torch.utils.data.dataloader import DataLoader import logging from param import args from tasks.nlvr2_model import NLVR2Model from tasks.nlvr2_data import NLVR2Dataset, NLVR2TorchDat...
36.285024
117
0.572227
ff2e4eae89fb54f336154a155c84dc4bb93c14f6
163,613
py
Python
salt/modules/dockerng.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/modules/dockerng.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
salt/modules/dockerng.py
rfairburn/salt
7e44444e873e1cb1d2fe13e39b0edea3779a2b5e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Management of Docker Containers .. versionadded:: 2015.8.0 Why Make a Second Docker Module? -------------------------------- We have received a lot of feedback on our Docker support. In the process of implementing recommended improvements, it became obvious that major changes needed to b...
32.566282
146
0.592367
ff2ea7ee93baa58d02cd52613b35a065c4c7e466
18,638
py
Python
rally/plugins/openstack/scenarios/ceilometer/utils.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/ceilometer/utils.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
rally/plugins/openstack/scenarios/ceilometer/utils.py
DeanHwd/rally
d284aa0746c54f1c375470e76dd206d19877a7fd
[ "Apache-2.0" ]
null
null
null
# All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.824786
79
0.614229
ff2eb8cb4d9e47cbdc699579da2d27a62f554181
20,998
py
Python
chess.py
Doormango/pychess
fcec6aeb58ab011c77125654d06a7bc77f69d8a9
[ "MIT" ]
null
null
null
chess.py
Doormango/pychess
fcec6aeb58ab011c77125654d06a7bc77f69d8a9
[ "MIT" ]
null
null
null
chess.py
Doormango/pychess
fcec6aeb58ab011c77125654d06a7bc77f69d8a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from tkinter import * from time import asctime, localtime, time from copy import deepcopy from os import listdir # TODO: Add option to log moves with print() - https://en.wikipedia.org/wiki/Algebraic_notation_%28chess%29 # TODO: Add option to enable chess clock # OPTIONS: cellSize = 80 autoFil...
46.766147
160
0.593199
ff2eba07b71019523747a0262f3b6df48f5c1908
74,991
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/aio/operations/_diagnostics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/aio/operations/_diagnostics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_09_01/aio/operations/_diagnostics_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.505045
986
0.66636
ff2ed03d7d41439e012e14d419106b77118fc16f
1,004
py
Python
src/assignments/main_assignment4.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
src/assignments/main_assignment4.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
1
2018-03-08T19:46:08.000Z
2018-03-08T20:00:47.000Z
src/assignments/main_assignment4.py
acc-cosc-1336/cosc-1336-spring-2018-vcruz350
0cee9fde3d4129c51626c4e0c870972aebec9b95
[ "MIT" ]
null
null
null
from src.assignments.assignment4 import factorial def main():#void function ''' Create a loop that'll run until the user doesn't type the letter 'y' In the loop, Capture one number from the keyboard and validate for a range between 1 and 10. Call the factorial function. Save the result to a var...
31.375
91
0.643426
ff2ed889f69eedda0f61dd7446e19618c48a089a
3,325
py
Python
tests/test_packages/test_skills/test_erc1155_client/test_behaviours.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
tests/test_packages/test_skills/test_erc1155_client/test_behaviours.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
tests/test_packages/test_skills/test_erc1155_client/test_behaviours.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 Valory AG # Copyright 2018-2021 Fetch.AI Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
38.218391
90
0.669474
ff2f1c1fb0d96f9d36def2fdce0cdaba0407cb01
351
py
Python
WebService/config.py
CryptoSalamander/DeepFake-Detection
f3b1c95ce1955a4c203a9f3d1279c5fbade66684
[ "MIT" ]
null
null
null
WebService/config.py
CryptoSalamander/DeepFake-Detection
f3b1c95ce1955a4c203a9f3d1279c5fbade66684
[ "MIT" ]
null
null
null
WebService/config.py
CryptoSalamander/DeepFake-Detection
f3b1c95ce1955a4c203a9f3d1279c5fbade66684
[ "MIT" ]
1
2021-04-11T06:27:48.000Z
2021-04-11T06:27:48.000Z
import os base_dir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get( 'SECRET_KEY') or '21bfd9e51ff7d2385b88973944a6425b' SQLALCHEMY_DATABASE_URI = os.environ.get( 'DATABASE_URL') or 'sqlite:///' + os.path.join(base_dir, 'youtube.db') SQLALCHE...
27
78
0.712251
ff2f33383b63592f7d1bdb2aaa90c2aed32e7d88
1,579
py
Python
reagent/test/models/test_synthetic_reward_net.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
reagent/test/models/test_synthetic_reward_net.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
reagent/test/models/test_synthetic_reward_net.py
j-jiafei/ReAgent
3f377276ca9cb843bfa12cdb325fbec747ade772
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import logging import unittest import torch from reagent.models.synthetic_reward import SingleStepSyntheticRewardNet logger = logging.getLogger(__name__) class TestSyntheticReward(unittest.TestCase): def test_single...
31.58
82
0.59848
ff2f43cd2669b27f5c7c94ae2c44294ad4a3e994
1,713
py
Python
spoffy/exceptions.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
1
2019-04-24T19:50:03.000Z
2019-04-24T19:50:03.000Z
spoffy/exceptions.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
3
2019-10-11T20:31:57.000Z
2020-04-13T16:06:43.000Z
spoffy/exceptions.py
steinitzu/spoffy
40cce0f00accbe006084a610d0d50396c21ec96c
[ "Apache-2.0" ]
null
null
null
from typing import Optional as Opt, Dict class SpotifyException(Exception): """ Base exception for any Spotify API errors :param message: The error message from the API :param status_code: The HTTP status code of the error response :param url: The URL of the failed request :param request_meth...
29.033898
66
0.649737
ff2f5962eec5169c8e063fb96565544addc139b3
41,998
py
Python
custos-client-sdks/custos-python-sdk/custos/server/core/SharingService_pb2_grpc.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
null
null
null
custos-client-sdks/custos-python-sdk/custos/server/core/SharingService_pb2_grpc.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
null
null
null
custos-client-sdks/custos-python-sdk/custos/server/core/SharingService_pb2_grpc.py
hasithajayasundara/airavata-custos
2d341849dd8ea8a7c2efec6cc73b01dfd495352e
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import SharingService_pb2 as SharingService__pb2 class SharingServiceStub(object): """Missing associated documentation comment in .proto file.""" def ...
48.891735
144
0.669341
ff2f5a5e5ac2b0163c213725177ff8a5d40c6530
621
py
Python
Components/ShowDisabledAutomaticAlignment.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
2
2021-02-12T20:36:29.000Z
2021-11-03T08:04:01.000Z
Components/ShowDisabledAutomaticAlignment.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
Components/ShowDisabledAutomaticAlignment.py
protimient/Glyphs-Scripts
0481ea01153844667cff8cfa3fad97c33af09956
[ "Apache-2.0" ]
null
null
null
# MenuTitle: Show Disabled Automatic Alignment # -*- coding: utf-8 -*- __doc__ = """ Opens a new tab with all glyphs containing components where automatic alignment is disabled. """ # from collections import defaultdict # Glyphs.clearLog() # Glyphs.showMacroWindow() def sort_layers(l): return l.parent.name, [m....
28.227273
114
0.753623
ff2f5a6444fc1453c1c8fe9de32cbe43b6d7a103
10,774
py
Python
packet/utils.py
mxmeinhold/packet
d3b7568f9d193f40bc93341de44f08bf978b17eb
[ "MIT" ]
null
null
null
packet/utils.py
mxmeinhold/packet
d3b7568f9d193f40bc93341de44f08bf978b17eb
[ "MIT" ]
16
2021-02-22T06:50:42.000Z
2022-02-21T18:04:25.000Z
packet/utils.py
mxmeinhold/packet
d3b7568f9d193f40bc93341de44f08bf978b17eb
[ "MIT" ]
null
null
null
""" General utilities and decorators for supporting the Python logic """ from datetime import datetime, time, timedelta, date from functools import wraps, lru_cache import requests from flask import session, redirect from packet import auth, app, db, ldap from packet.mail import send_start_packet_mail from packet.mod...
41.598456
115
0.644236