hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7960cdb285d6dd5c4c71de1f2286b8e8d673adb | 547 | py | Python | skynet-agent/plugins/extension/loadavg.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | 3 | 2016-09-12T08:54:46.000Z | 2016-09-18T07:54:10.000Z | skynet-agent/plugins/extension/loadavg.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | skynet-agent/plugins/extension/loadavg.py | skynetera/skynet | 24a50f2a2eb95b777802934a2b66f162bf4b2d53 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
__author__ = 'whoami'
"""
@version: 1.0
@author: whoami
@license: Apache Licence 2.0
@contact: skutil@gmail.com
@site: http://www.itweet.cn
@software: PyCharm Community Edition
@file: loadavg.py
@time: 2015-11-28 1:51
"""
if __name__ == '__main__':
print monitor()
| 17.645161 | 36 | 0.6234 |
e79e7ea88c51825b1ee8f322458db326ca24c050 | 1,129 | py | Python | datasets/augmentations.py | sithu31296/re_identification | 28c2cf32c6c8c9d79330e1419a7156fe10d8ac95 | [
"MIT"
] | null | null | null | datasets/augmentations.py | sithu31296/re_identification | 28c2cf32c6c8c9d79330e1419a7156fe10d8ac95 | [
"MIT"
] | null | null | null | datasets/augmentations.py | sithu31296/re_identification | 28c2cf32c6c8c9d79330e1419a7156fe10d8ac95 | [
"MIT"
] | null | null | null | from torchvision import transforms | 51.318182 | 169 | 0.59876 |
e79f9590300eb19ba909c0b5322d32b4049e33b7 | 2,056 | py | Python | dora/tests/test_xp.py | kingjr/dora | f70fab1620c6cad6fc094be15ab22994bd08dd01 | [
"MIT"
] | 98 | 2021-09-21T14:27:21.000Z | 2022-03-18T17:46:45.000Z | dora/tests/test_xp.py | kingjr/dora | f70fab1620c6cad6fc094be15ab22994bd08dd01 | [
"MIT"
] | 6 | 2021-09-22T13:29:48.000Z | 2022-03-14T16:45:30.000Z | dora/tests/test_xp.py | kingjr/dora | f70fab1620c6cad6fc094be15ab22994bd08dd01 | [
"MIT"
] | 5 | 2021-09-21T12:42:01.000Z | 2022-01-27T17:22:17.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
from pathlib import Path
import torch
import pytest
from ..conf import DoraConfig
from ..xp import XP
| 26.701299 | 76 | 0.618191 |
e7a08c3c2295908e12651250df01fbce4284f4fe | 3,227 | py | Python | crawler/scheduler.py | dukov/simplecrawler | eb6c44b9e3c43cab34ee4a2b39c7283136ce9352 | [
"Apache-2.0"
] | null | null | null | crawler/scheduler.py | dukov/simplecrawler | eb6c44b9e3c43cab34ee4a2b39c7283136ce9352 | [
"Apache-2.0"
] | null | null | null | crawler/scheduler.py | dukov/simplecrawler | eb6c44b9e3c43cab34ee4a2b39c7283136ce9352 | [
"Apache-2.0"
] | null | null | null | # 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... | 34.329787 | 75 | 0.570499 |
e7a093439e75bee53c35c1b7acda09ddedee4b02 | 1,897 | py | Python | pyqtgraph_extensions/examples/demo_axis_alignment.py | draustin/pyqtgraph_extensions | 9f53756bdab8c61749c3596d40024971d77c893a | [
"MIT"
] | 10 | 2019-05-22T17:10:07.000Z | 2022-02-09T08:14:28.000Z | pyqtgraph_extensions/examples/demo_axis_alignment.py | draustin/pyqtgraph_extensions | 9f53756bdab8c61749c3596d40024971d77c893a | [
"MIT"
] | 3 | 2020-06-09T22:36:43.000Z | 2021-07-19T21:31:57.000Z | pyqtgraph_extensions/examples/demo_axis_alignment.py | draustin/pyqtgraph_extensions | 9f53756bdab8c61749c3596d40024971d77c893a | [
"MIT"
] | null | null | null | """Show how multiple AlignedPlotItems have aligned AxisItems by using their parent's graphics layout."""
import sys
from textwrap import wrap
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import pyqtgraph_extensions as pgx
if QtGui.QApplication.instance() is None:
qapp=QtGui.QApplication(sys.argv)
... | 43.113636 | 120 | 0.732736 |
e7a16d2263756e23b3fd10f42e7ec1fd27b2c6d0 | 377 | py | Python | generators/cfg.py | Zarux/Steam-friend-graph-V2 | 1670a7e49904812b4f86b0d2590a25d77c05c6ee | [
"MIT"
] | null | null | null | generators/cfg.py | Zarux/Steam-friend-graph-V2 | 1670a7e49904812b4f86b0d2590a25d77c05c6ee | [
"MIT"
] | 6 | 2021-03-09T09:46:03.000Z | 2022-02-26T12:28:11.000Z | generators/cfg.py | Zarux/Steam-friend-graph-V2 | 1670a7e49904812b4f86b0d2590a25d77c05c6ee | [
"MIT"
] | null | null | null | import json
| 20.944444 | 47 | 0.559682 |
e7a293afddd2a5b54862d63c4e761125a74a8ae5 | 73 | py | Python | Python/Reals/river_in_brazil/matrix_rotation.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | Python/Reals/river_in_brazil/matrix_rotation.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | Python/Reals/river_in_brazil/matrix_rotation.py | Mr-Perfection/coding_practice | 41df85292a151eef3266b01545124aeb4e831286 | [
"Unlicense"
] | null | null | null | """
Rotate a matrix 90 degrees a certain direction based on the flag
"""
| 18.25 | 64 | 0.726027 |
e7a2a74212459c5c2d287344ef757f817b24bd0e | 58 | py | Python | vector3d/__init__.py | jayman39tx/vector3d | 6ea8a759b5102b65aea33173da1ed78cde9a67b0 | [
"MIT"
] | 2 | 2020-11-17T05:16:16.000Z | 2021-11-07T19:48:30.000Z | vector3d/__init__.py | jayman39tx/vector3d | 6ea8a759b5102b65aea33173da1ed78cde9a67b0 | [
"MIT"
] | null | null | null | vector3d/__init__.py | jayman39tx/vector3d | 6ea8a759b5102b65aea33173da1ed78cde9a67b0 | [
"MIT"
] | 3 | 2020-08-10T19:32:01.000Z | 2021-04-09T12:58:50.000Z | name = "Vector3D"
from . import vector
from . import point | 19.333333 | 20 | 0.741379 |
e7a3a8f3dbc80823b966705e8802def2ed85da11 | 102 | py | Python | Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/simple_py3.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 1 | 2022-01-08T12:30:44.000Z | 2022-01-08T12:30:44.000Z | Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/simple_py3.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/pass/simple_py3.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 1 | 2021-04-26T22:41:56.000Z | 2021-04-26T22:41:56.000Z | import numpy as np
array = np.array([1, 2])
# The @ operator is not in python 2
array @ array
| 14.571429 | 36 | 0.627451 |
e7a5af266194fe6108245ee31d8f2544211c0ebb | 2,518 | py | Python | __init__.py | devsysenv/usr | 989ad012b790b6d20f8dae90f0724109cd27b761 | [
"MIT"
] | null | null | null | __init__.py | devsysenv/usr | 989ad012b790b6d20f8dae90f0724109cd27b761 | [
"MIT"
] | null | null | null | __init__.py | devsysenv/usr | 989ad012b790b6d20f8dae90f0724109cd27b761 | [
"MIT"
] | 1 | 2022-03-09T12:24:37.000Z | 2022-03-09T12:24:37.000Z | #!/usr/bin/env python
"""User package initialization module."""
import os
import sys
import dselib
def _context(varfile=None):
"""returns the DSE context object for this script."""
try:
myself = __file__
except NameError:
myself = sys.argv[0]
return dselib.DSEContext... | 32.282051 | 105 | 0.645751 |
e7a69e21b01e752968007e111248ff8bffeec7d2 | 3,833 | py | Python | migrations/utils/sql_enum_migrator.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 23 | 2022-03-17T12:24:09.000Z | 2022-03-31T09:13:30.000Z | migrations/utils/sql_enum_migrator.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 18 | 2022-03-21T08:17:44.000Z | 2022-03-30T12:42:30.000Z | migrations/utils/sql_enum_migrator.py | apaniukov/workbench | 2f2653ecfd0143d2d53e33ad84379f13443fdfaa | [
"Apache-2.0"
] | 16 | 2022-03-17T12:24:14.000Z | 2022-03-31T12:15:12.000Z | """
OpenVINO DL Workbench
Helping Class to migrate enums in database
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/... | 38.717172 | 111 | 0.66658 |
e7a75ab051e3341f6c0083af645a52d0c765ee59 | 4,542 | py | Python | post_process/box_sphere_SMC_NSC.py | Milad-Rakhsha/Friction-Contact | 59d17b231c5dd764c741c941e5443141d43ec7e8 | [
"BSD-3-Clause"
] | null | null | null | post_process/box_sphere_SMC_NSC.py | Milad-Rakhsha/Friction-Contact | 59d17b231c5dd764c741c941e5443141d43ec7e8 | [
"BSD-3-Clause"
] | null | null | null | post_process/box_sphere_SMC_NSC.py | Milad-Rakhsha/Friction-Contact | 59d17b231c5dd764c741c941e5443141d43ec7e8 | [
"BSD-3-Clause"
] | null | null | null | import csv,os,sys
import subprocess,re
import matplotlib
#matplotlib.use('TkAgg')
matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab!
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from decimal import Decimal
from collections import OrderedDict
from matplotlib.ticker ... | 34.671756 | 90 | 0.528181 |
e7a7a001dc96d78bf26c54dfa2c539b4c6caf7e2 | 19,323 | py | Python | codes/sensitivity_analysis_withRealParameters.py | atsoukevin93/tumorgrowth | 96bda28a6ae6455c53c3b573c05746b6d4f2e802 | [
"CC0-1.0"
] | null | null | null | codes/sensitivity_analysis_withRealParameters.py | atsoukevin93/tumorgrowth | 96bda28a6ae6455c53c3b573c05746b6d4f2e802 | [
"CC0-1.0"
] | null | null | null | codes/sensitivity_analysis_withRealParameters.py | atsoukevin93/tumorgrowth | 96bda28a6ae6455c53c3b573c05746b6d4f2e802 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from fipy import *
from numpy import *
import scipy.sparse as sp
import scipy.sparse.linalg as la
import parameterFunctions.immuneResponse as delt
import parameterFunctions.sigmaF as sigmaF
import inspect
from collections import OrderedDict
import pygpc
from pygpc.sobol_s... | 40.006211 | 123 | 0.549915 |
e7a8eb29f59a7169a8670d3bd2d5361afff30ad8 | 1,509 | py | Python | setup.py | StreetHawkInc/behave-http | 236f62faaa7448c55d13767c21bfd2711b11456c | [
"BSD-2-Clause"
] | null | null | null | setup.py | StreetHawkInc/behave-http | 236f62faaa7448c55d13767c21bfd2711b11456c | [
"BSD-2-Clause"
] | null | null | null | setup.py | StreetHawkInc/behave-http | 236f62faaa7448c55d13767c21bfd2711b11456c | [
"BSD-2-Clause"
] | null | null | null | import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__),
'README.rst')) as readme_file:
long_description = readme_file.read()
setup_requires = ['wheel']
install_requires = [
'behave>=1.2.4',
'Jinja2>=2.5',
'jpath>=1.1',
'ensure>=0.1.6',
... | 30.18 | 71 | 0.609013 |
e7a94a2ff34c1076fb500ca11f0f92ab4291d4b0 | 2,314 | py | Python | src/day11.py | birdman74/advent-of-code-2021 | 190cd4110ef3553258a26c8521bdf372c006a77c | [
"Apache-2.0"
] | null | null | null | src/day11.py | birdman74/advent-of-code-2021 | 190cd4110ef3553258a26c8521bdf372c006a77c | [
"Apache-2.0"
] | null | null | null | src/day11.py | birdman74/advent-of-code-2021 | 190cd4110ef3553258a26c8521bdf372c006a77c | [
"Apache-2.0"
] | null | null | null | import os
from typing import List
MODULE_DIR = os.path.dirname(os.path.realpath(__file__))
PROJECT_DIR = os.path.join(MODULE_DIR, "..")
INPUT_SOURCE_DIR = os.path.join(PROJECT_DIR, "input")
day_11_do("day11.txt")
day_11_do_2("day11.txt")
| 27.223529 | 98 | 0.639585 |
e7a9abe833ad06b98a4c2551f4c70ddffb9249c0 | 30 | py | Python | a.py | Ankitgarg453/resume_builder | 8ccffb4191d270685da446f0b2808409f282cecd | [
"MIT"
] | null | null | null | a.py | Ankitgarg453/resume_builder | 8ccffb4191d270685da446f0b2808409f282cecd | [
"MIT"
] | null | null | null | a.py | Ankitgarg453/resume_builder | 8ccffb4191d270685da446f0b2808409f282cecd | [
"MIT"
] | null | null | null | print "ankit"
print "Saimon"
| 7.5 | 14 | 0.7 |
e7a9c1267f6e65a3675addd7271b9a0a997345e4 | 3,430 | py | Python | src/models/adversarial_validation.py | solery-git/Yandex_MIPT_user_identification | 6861c14ebeeaef963b1d180080b87637a9578dd5 | [
"FTL"
] | null | null | null | src/models/adversarial_validation.py | solery-git/Yandex_MIPT_user_identification | 6861c14ebeeaef963b1d180080b87637a9578dd5 | [
"FTL"
] | null | null | null | src/models/adversarial_validation.py | solery-git/Yandex_MIPT_user_identification | 6861c14ebeeaef963b1d180080b87637a9578dd5 | [
"FTL"
] | null | null | null | # -*- coding: utf-8 -*-
import warnings
warnings.filterwarnings('ignore')
import pickle
import yaml
from pathlib import Path
import numpy as np
import pandas as pd
from scipy.sparse import csr_matrix, hstack as sparse_hstack, vstack as sparse_vstack
from sklearn.linear_model import LogisticRegression
from sklearn.metri... | 37.692308 | 151 | 0.732653 |
e7aa8cac8e96224781686bd1388c518adf6e852b | 3,803 | py | Python | U3/src/e6.py | craciunescu/algo | 81e91fa72d8896b459900510ee270d25de15f6fd | [
"MIT"
] | null | null | null | U3/src/e6.py | craciunescu/algo | 81e91fa72d8896b459900510ee270d25de15f6fd | [
"MIT"
] | null | null | null | U3/src/e6.py | craciunescu/algo | 81e91fa72d8896b459900510ee270d25de15f6fd | [
"MIT"
] | null | null | null | """
@author: David E. Craciunescu
@date: 2020/04/30 (yyyy/mm/dd)
6. After passing through the Tile Room and stealing the Craddle of Life,
Indiana Croft faces a new challenge before leaving the Cursed Temple! The
Temple itself is located on a bridge under which there is a deep darkness.
Fortu... | 43.215909 | 80 | 0.720221 |
e7ab93c674e1c7b0c7b235ef1ec15c5f79897159 | 184 | py | Python | ptb/ledger/views.py | vkpdeveloper/ShaktiDeep-Traders-Bill-Management-Project | 566a64268fabf256e80bee680d1fbde2c6c0787d | [
"MIT"
] | 2 | 2019-11-26T11:57:56.000Z | 2020-06-17T05:16:47.000Z | ptb/ledger/views.py | vkpdeveloper/ShaktiDeep-Traders-Bill-Management-Project | 566a64268fabf256e80bee680d1fbde2c6c0787d | [
"MIT"
] | null | null | null | ptb/ledger/views.py | vkpdeveloper/ShaktiDeep-Traders-Bill-Management-Project | 566a64268fabf256e80bee680d1fbde2c6c0787d | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.shortcuts import render
from django.http import HttpResponse
| 26.285714 | 47 | 0.777174 |
e7ad41b8d693a843781c9b1f0c9248a6d00b3029 | 492 | py | Python | olamundo.py/exercicios_refeitos/ex024.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex024.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | olamundo.py/exercicios_refeitos/ex024.py | gabrielviticov/exercicios-python | 4068cb0029513f8ab8bd12fa3a9055f37b4040d4 | [
"MIT"
] | null | null | null | '''
ex024: Crie um programa que leia o nome de uma cidade e diga se ela comea ou no com o nome SANTO
'''
from colorise import set_color, reset_color
cores = {
'limpa': '\033[m',
'white': '\033[1;97m',
}
set_color(fg='cyan')
nome_cidade = str(input('Informe o nome de uma cidade: ')).strip().title()
separador =... | 28.941176 | 100 | 0.658537 |
e7ae68bcd377bc20a3f17e6c42c1085c7778f122 | 3,154 | py | Python | preprocessing/preprocessTrainingfiles_generateFasttextinput.py | gerbentimmerman/community-based-abuse-detection | 8ac03ccf1e594c2588b243e45ac535a0977bbcb0 | [
"MIT"
] | null | null | null | preprocessing/preprocessTrainingfiles_generateFasttextinput.py | gerbentimmerman/community-based-abuse-detection | 8ac03ccf1e594c2588b243e45ac535a0977bbcb0 | [
"MIT"
] | null | null | null | preprocessing/preprocessTrainingfiles_generateFasttextinput.py | gerbentimmerman/community-based-abuse-detection | 8ac03ccf1e594c2588b243e45ac535a0977bbcb0 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pandas as pd
import csv
import re
import emoji
import redditcleaner
from nltk.tokenize import TweetTokenizer
def createFasttextEmbeddingInput(dataset):
"""
Create file for training the fasttext embeddings
"""
readfile = "../data/reddit/preprocessed_reddit_{}_large.csv".format(dataset)... | 27.666667 | 112 | 0.657895 |
e7b099e6d68f75cea2e020cf38d8d5668c1b2d20 | 644 | py | Python | chunked/models.py | grschafer/django-meetup-fileupload | e89e158e3d26a5ce41571f8d164e3f7aa0f1f079 | [
"MIT"
] | null | null | null | chunked/models.py | grschafer/django-meetup-fileupload | e89e158e3d26a5ce41571f8d164e3f7aa0f1f079 | [
"MIT"
] | null | null | null | chunked/models.py | grschafer/django-meetup-fileupload | e89e158e3d26a5ce41571f8d164e3f7aa0f1f079 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.db import models
# Create your models here.
| 37.882353 | 86 | 0.745342 |
e7b0d46435cdec670279bd998320fd1810c2643c | 918 | py | Python | fp_demo/functional3.py | AegirAexx/python-sandbox | fa1f584f615c6ed04f80b9dd92d2b241248c9ebe | [
"Unlicense"
] | null | null | null | fp_demo/functional3.py | AegirAexx/python-sandbox | fa1f584f615c6ed04f80b9dd92d2b241248c9ebe | [
"Unlicense"
] | null | null | null | fp_demo/functional3.py | AegirAexx/python-sandbox | fa1f584f615c6ed04f80b9dd92d2b241248c9ebe | [
"Unlicense"
] | null | null | null | """" Playing around with MAP higher order function and lambdas. """
from datetime import datetime
from pprint import pprint
from scientist import scientists
def age(yob):
""" Accepts year of birth and returns the persons age. """
return datetime.now().year - yob
NAMES_AND_AGES = tuple(
map(lambda x: {'n... | 24.810811 | 79 | 0.652505 |
e7b19bb8fade9b6e53704f91808df520b32c215d | 1,217 | py | Python | src/mqtt_bridge/app.py | dftossem/mqtt_ros_aws_iot | 0e0ae8d30d25753c5a12d936d07ae94730f3eccd | [
"MIT"
] | 5 | 2021-07-23T09:52:40.000Z | 2021-09-22T21:11:53.000Z | src/mqtt_bridge/app.py | dftossem/mqtt_ros_aws_iot | 0e0ae8d30d25753c5a12d936d07ae94730f3eccd | [
"MIT"
] | null | null | null | src/mqtt_bridge/app.py | dftossem/mqtt_ros_aws_iot | 0e0ae8d30d25753c5a12d936d07ae94730f3eccd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import inject
import rospy
import time
import json
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
from .bridge import create_bridge
from .util import lookup_object
__all__ = ['mqtt_bridge_node'] | 24.836735 | 65 | 0.72309 |
e7b35b10fd121d0b29cd1d39fc4c75e4f568a1f4 | 25 | py | Python | chapter2_ws/devel/lib/python3/dist-packages/mastering_ros_demo_pkg/srv/__init__.py | Rajat-Arora/ros_packt_book | a715485ea6e36d298bc6f6f306af0595d89e1174 | [
"MIT"
] | null | null | null | chapter2_ws/devel/lib/python3/dist-packages/mastering_ros_demo_pkg/srv/__init__.py | Rajat-Arora/ros_packt_book | a715485ea6e36d298bc6f6f306af0595d89e1174 | [
"MIT"
] | null | null | null | chapter2_ws/devel/lib/python3/dist-packages/mastering_ros_demo_pkg/srv/__init__.py | Rajat-Arora/ros_packt_book | a715485ea6e36d298bc6f6f306af0595d89e1174 | [
"MIT"
] | null | null | null | from ._demo_srv import *
| 12.5 | 24 | 0.76 |
e7b5ecbc66cbd464a70b67852e8b57e73a22b34a | 422 | py | Python | system-test/tweet/test_tweet.py | jaimebuelta/django-docker-template | f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1 | [
"MIT"
] | 94 | 2017-07-30T21:33:46.000Z | 2022-01-10T13:41:03.000Z | system-test/tweet/test_tweet.py | jaimebuelta/django-docker-template | f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1 | [
"MIT"
] | 1 | 2019-02-01T13:45:42.000Z | 2019-02-01T13:45:42.000Z | system-test/tweet/test_tweet.py | jaimebuelta/django-docker-template | f850626a3bc6ac7ccf791ca56b859a7b1d3d87a1 | [
"MIT"
] | 19 | 2017-07-31T12:03:12.000Z | 2021-11-27T05:43:04.000Z | import os
import requests
HOSTPORT = os.environ.get('SYSTEM_TEST_HOSTPORT')
TWEET_URL = HOSTPORT + 'tweet/'
| 23.444444 | 49 | 0.651659 |
e7b5f75431381733711c32b614a4943fecd06b68 | 348 | py | Python | src/PrintSubscriber.py | mansandersson/modbus-monitor | 092c7f05c54a912a60d69f1461aeb54105d7b660 | [
"MIT"
] | null | null | null | src/PrintSubscriber.py | mansandersson/modbus-monitor | 092c7f05c54a912a60d69f1461aeb54105d7b660 | [
"MIT"
] | null | null | null | src/PrintSubscriber.py | mansandersson/modbus-monitor | 092c7f05c54a912a60d69f1461aeb54105d7b660 | [
"MIT"
] | null | null | null | import Constants
from pubsub import pub | 29 | 73 | 0.678161 |
e7bc9e4e1a533046092b0e42330e482c0a72d04c | 3,990 | py | Python | PressCurve.py | RichBu/PressCurve | 4c89f04489abae5d3c87be2663133b8c974457bf | [
"MIT"
] | null | null | null | PressCurve.py | RichBu/PressCurve | 4c89f04489abae5d3c87be2663133b8c974457bf | [
"MIT"
] | null | null | null | PressCurve.py | RichBu/PressCurve | 4c89f04489abae5d3c87be2663133b8c974457bf | [
"MIT"
] | null | null | null | """
This program uses Digital Oscilliscope data read in from a PicScope.
The PicoScope outputs the data as a CSV and this Python app reads it in.
Then, we plot on an X-Y chart
By Rich Budek 02/12/2021 in Python 3.8
"""
import pandas as pd
import numpy as np
import jinja2
import math
import re
from pandas import DataF... | 31.171875 | 121 | 0.69599 |
e7bca805299e41e9d298d69596d25e7ce1959ef5 | 580 | py | Python | src/model/bow.py | slein89/BOW_transferlearning | 785fe5e48da0dc0e9170e526f221daee154bebec | [
"MIT"
] | 1 | 2019-03-05T11:23:26.000Z | 2019-03-05T11:23:26.000Z | src/model/bow.py | slein89/BOW_transferlearning | 785fe5e48da0dc0e9170e526f221daee154bebec | [
"MIT"
] | null | null | null | src/model/bow.py | slein89/BOW_transferlearning | 785fe5e48da0dc0e9170e526f221daee154bebec | [
"MIT"
] | null | null | null | from sklearn.pipeline import Pipeline
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from sklearn.ensemble import GradientBoostingClassifier
| 38.666667 | 77 | 0.624138 |
e7bd68b12a5e8867bbc35ac7cd372730ec172944 | 3,967 | py | Python | train_offline.py | denisyarats/exorl | a3fb07a420939280aa0918150923dcca7e82bf2a | [
"MIT"
] | 23 | 2022-02-08T20:28:47.000Z | 2022-03-31T11:00:25.000Z | train_offline.py | denisyarats/exorl | a3fb07a420939280aa0918150923dcca7e82bf2a | [
"MIT"
] | 1 | 2022-03-10T04:45:19.000Z | 2022-03-10T04:45:19.000Z | train_offline.py | denisyarats/exorl | a3fb07a420939280aa0918150923dcca7e82bf2a | [
"MIT"
] | null | null | null | import warnings
warnings.filterwarnings('ignore', category=DeprecationWarning)
import os
os.environ['MKL_SERVICE_FORCE_INTEL'] = '1'
os.environ['MUJOCO_GL'] = 'egl'
from pathlib import Path
import hydra
import numpy as np
import torch
from dm_env import specs
import dmc
import utils
from logger import Logger
from... | 30.992188 | 79 | 0.637509 |
e7bf132349c97d22d52cdb3650636fe8ed882551 | 1,606 | py | Python | December-15/python3_ASHIK11ab.py | ASHIK11ab/A-December-of-Algorithms-2021 | 2eeb1192c69b67b1c64033c1df155a705d1219c4 | [
"MIT"
] | null | null | null | December-15/python3_ASHIK11ab.py | ASHIK11ab/A-December-of-Algorithms-2021 | 2eeb1192c69b67b1c64033c1df155a705d1219c4 | [
"MIT"
] | null | null | null | December-15/python3_ASHIK11ab.py | ASHIK11ab/A-December-of-Algorithms-2021 | 2eeb1192c69b67b1c64033c1df155a705d1219c4 | [
"MIT"
] | null | null | null | import ast
def find_cont_sub_arrays(array, y):
""" Returns the continuous sub arrays where each sub array sum is <= y. """
cont_sub_arrays = []
outer_index = 0
while array != [] :
temp = []
for j in range(len(array)):
cont_sub_array = array[:j+1]
# Store the continuous sub arrays temporar... | 27.220339 | 77 | 0.620174 |
e7bf5114270c4c1ba3fa4db47d240b4427db5d56 | 31 | py | Python | is_ipfs/__init__.py | Barabazs/py-is_ipfs | c8ac622879b2223e298d9cc4a59ae7da89eb0479 | [
"MIT"
] | 1 | 2022-03-09T14:23:44.000Z | 2022-03-09T14:23:44.000Z | is_ipfs/__init__.py | Barabazs/py-is_ipfs | c8ac622879b2223e298d9cc4a59ae7da89eb0479 | [
"MIT"
] | null | null | null | is_ipfs/__init__.py | Barabazs/py-is_ipfs | c8ac622879b2223e298d9cc4a59ae7da89eb0479 | [
"MIT"
] | null | null | null | from .is_ipfs import Validator
| 15.5 | 30 | 0.83871 |
e7c296cbcbe2a40314c5ebd466c9648b4f998c96 | 3,993 | py | Python | Assignment_3/marbles.py | cVoltic/MIDS | 417b7d2e6e7eff20292c5429cbe5245813e9a1d9 | [
"MIT"
] | null | null | null | Assignment_3/marbles.py | cVoltic/MIDS | 417b7d2e6e7eff20292c5429cbe5245813e9a1d9 | [
"MIT"
] | null | null | null | Assignment_3/marbles.py | cVoltic/MIDS | 417b7d2e6e7eff20292c5429cbe5245813e9a1d9 | [
"MIT"
] | null | null | null | # A Marbles Game
# A Marbles Game - Problem
# Cuong Trinh
import sys
def main(sequence):
board = MarblesBoard(sequence)
player = Solver(board)
player.solve()
if __name__ == "__main__":
"""
Big O Complexity for this Algorithm (Logic/Deduction):
1) The Algorithm repeatedly call onto s... | 35.651786 | 169 | 0.569747 |
e7c5214a6861e2cb908a3d5d48328445859dbfbd | 4,237 | py | Python | windows.py | dcxSt/pfb-mod | 1615790d0782f3becbba72a3e40c5b79ca4dc28b | [
"MIT"
] | 1 | 2021-11-09T13:02:29.000Z | 2021-11-09T13:02:29.000Z | windows.py | dcxSt/pfb-mod | 1615790d0782f3becbba72a3e40c5b79ca4dc28b | [
"MIT"
] | null | null | null | windows.py | dcxSt/pfb-mod | 1615790d0782f3becbba72a3e40c5b79ca4dc28b | [
"MIT"
] | null | null | null | #!/usr/bin/python3.8
"""
Created on 2021-06-07
Author : Stephen Fay
"""
import numpy as np
from constants import *
import helper as h
#%% spectrum transformers (spectrum ~ ft_block)
f3 = lambda x:x*(1/(np.abs(x)+0.1)+0.3)
f4 = lambda x:x*(1/(np.abs(x)+0.000001))
f5 = lambda x:x*(1/(np.abs(x)+0.01))
f6 = lambda x:x*... | 30.482014 | 123 | 0.671702 |
e7c7b17b656904abd64163333b17badb2111d9ac | 986 | py | Python | Train/test.py | fanchy888/digit_ANN | 5faf0e574321ff5e3c6b8ec82992d20177be15a0 | [
"MIT"
] | null | null | null | Train/test.py | fanchy888/digit_ANN | 5faf0e574321ff5e3c6b8ec82992d20177be15a0 | [
"MIT"
] | null | null | null | Train/test.py | fanchy888/digit_ANN | 5faf0e574321ff5e3c6b8ec82992d20177be15a0 | [
"MIT"
] | null | null | null | #-*- coding:utf-8 -*-
from PIL import Image
import numpy as np
from scipy.io import loadmat
from scipy.io import savemat
img=Image.open('test.png')
img=img.convert('L')
grey=img.getdata()
X=np.asarray(grey)
X=np.mat(X.ravel())
theta=loadmat('theta')
theta1=theta['theta1']
theta2=theta['theta2']
theta3=theta['theta3']... | 21.434783 | 41 | 0.679513 |
e7c8356eb7291024a35ca2cbb8863750d4cda4f4 | 3,465 | py | Python | dateien_lesen.py | hansalemaos/Everything2TXT | 33dc7f15d9003441d7e38a8d872c3b7f6b3fa00b | [
"MIT"
] | 1 | 2022-02-27T19:07:08.000Z | 2022-02-27T19:07:08.000Z | dateien_lesen.py | hansalemaos/Everything2TXT | 33dc7f15d9003441d7e38a8d872c3b7f6b3fa00b | [
"MIT"
] | null | null | null | dateien_lesen.py | hansalemaos/Everything2TXT | 33dc7f15d9003441d7e38a8d872c3b7f6b3fa00b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import docx2txt
from pdfminer.high_level import extract_text
from pptx import Presentation
from bs4 import BeautifulSoup
from epubextract import epub2txt
from xlsx2html import xlsx2html
import tempfile
from tkinter import Tk
from tkinter.filedialog import askopenfilename
import re
if ... | 27.283465 | 73 | 0.621356 |
e7c92ca14bcce898f8943bb76fd1a82f7d605a8a | 307 | py | Python | tests/test_source.py | Kadas36/NEWS-App | ee0504ed04f5e3d8c7e06ea478d163e8209ac425 | [
"MIT"
] | null | null | null | tests/test_source.py | Kadas36/NEWS-App | ee0504ed04f5e3d8c7e06ea478d163e8209ac425 | [
"MIT"
] | null | null | null | tests/test_source.py | Kadas36/NEWS-App | ee0504ed04f5e3d8c7e06ea478d163e8209ac425 | [
"MIT"
] | null | null | null | import unittest
from app.models import Source | 30.7 | 112 | 0.70684 |
e7c9f67c367034f596fa0db99d380d2232e79275 | 195 | py | Python | steppygraph/test/utils_test.py | mfrawley/steppy-graph | 2094c95d2cfe3145ecc42311d799dad8ba2f007b | [
"MIT"
] | 4 | 2019-02-12T21:56:03.000Z | 2020-10-19T07:14:44.000Z | steppygraph/test/utils_test.py | mfrawley/steppy-graph | 2094c95d2cfe3145ecc42311d799dad8ba2f007b | [
"MIT"
] | null | null | null | steppygraph/test/utils_test.py | mfrawley/steppy-graph | 2094c95d2cfe3145ecc42311d799dad8ba2f007b | [
"MIT"
] | null | null | null | from steppygraph.utils import filter_props
d = {
"_foo": True,
"foo": 1
}
| 15 | 42 | 0.605128 |
e7cc0e525cff12bc2b3486753006977533ce881a | 9,346 | py | Python | train.py | WKUAILAB/Risk_Level_Prediction | 7074953cf2c19cf2f2ad5c1cad5df0ad30637418 | [
"MIT"
] | null | null | null | train.py | WKUAILAB/Risk_Level_Prediction | 7074953cf2c19cf2f2ad5c1cad5df0ad30637418 | [
"MIT"
] | null | null | null | train.py | WKUAILAB/Risk_Level_Prediction | 7074953cf2c19cf2f2ad5c1cad5df0ad30637418 | [
"MIT"
] | 1 | 2022-02-28T06:29:08.000Z | 2022-02-28T06:29:08.000Z | import numpy as np
import pandas as pd
import os
from joblib import dump
from sklearn.model_selection import train_test_split, RandomizedSearchCV, GridSearchCV
from sklearn.metrics import classification_report, recall_score, precision_recall_fscore_support
from sklearn.ensemble import GradientBoostingClassifier
from ... | 43.469767 | 492 | 0.675904 |
e7cd2f7b970a9548bf93ebb125e5939b4572b405 | 2,543 | py | Python | mptb/models/commons.py | to-aoki/my-pytorch-bert | 8e412ae6331f5f19fee55b430be389de2f5c49a6 | [
"Apache-2.0"
] | 21 | 2019-03-04T03:43:19.000Z | 2022-02-14T15:50:41.000Z | mptb/models/commons.py | to-aoki/my-pytorch-bert | 8e412ae6331f5f19fee55b430be389de2f5c49a6 | [
"Apache-2.0"
] | 1 | 2019-10-07T17:49:21.000Z | 2019-12-14T11:50:10.000Z | mptb/models/commons.py | to-aoki/my-pytorch-bert | 8e412ae6331f5f19fee55b430be389de2f5c49a6 | [
"Apache-2.0"
] | 5 | 2019-07-19T07:04:55.000Z | 2020-07-01T13:24:14.000Z | # This file is based on
# https://github.com/huggingface/pytorch-pretrained-BERT/blob/master/pytorch_pretrained_bert/modeling.py.
# changing class names and variables names for my understanding of BERT.
# and Modified a bit to visualize with bertviz.
#
# Copyright 2018 The Google AI Language Team Authors and The Huggin... | 40.365079 | 105 | 0.701534 |
e7cd8e5b68df4a3597e07017cc8ad1f64fc2dc4a | 1,388 | py | Python | simple_server.py | mlacayoemery/owslib-pywps-echo | 9b19936989d8261986f6184547206386afb8c1fe | [
"Unlicense"
] | null | null | null | simple_server.py | mlacayoemery/owslib-pywps-echo | 9b19936989d8261986f6184547206386afb8c1fe | [
"Unlicense"
] | null | null | null | simple_server.py | mlacayoemery/owslib-pywps-echo | 9b19936989d8261986f6184547206386afb8c1fe | [
"Unlicense"
] | null | null | null | import flask
import pywps
app = flask.Flask(__name__)
wps_processes = [EchoVector()]
service = pywps.Service(wps_processes)
bind_host='127.0.0.1'
app.run(threaded=True,host=bind_host)
| 30.844444 | 96 | 0.53098 |
e7cdb089436833732bfa37700ee373f489662c99 | 889 | py | Python | tests/test_jaccard_score.py | jo-mueller/biapol-utilities | 773b60a64fa12641ba869addd7b4be9a4ab87ecd | [
"BSD-3-Clause"
] | 4 | 2021-12-17T19:37:11.000Z | 2022-03-29T16:39:31.000Z | tests/test_jaccard_score.py | jo-mueller/biapol-utilities | 773b60a64fa12641ba869addd7b4be9a4ab87ecd | [
"BSD-3-Clause"
] | 34 | 2021-11-04T14:10:24.000Z | 2022-01-31T13:23:44.000Z | tests/test_jaccard_score.py | jo-mueller/biapol-utilities | 773b60a64fa12641ba869addd7b4be9a4ab87ecd | [
"BSD-3-Clause"
] | 2 | 2021-12-14T13:53:16.000Z | 2021-12-15T12:30:51.000Z | # -*- coding: utf-8 -*-
from biapol_utilities import label
import numpy as np
if __name__ == "__main__":
test_compare_labels()
test_compare_labels2()
test_compare_labels3()
| 21.166667 | 72 | 0.598425 |
e7ce0818904d46d11eb74c9bc1c1d5e0067a9008 | 68,039 | py | Python | GraphTrace.py | a-dera/Graphe | 70886565cc1dbda9f343dc11edcc480e2372934f | [
"MIT"
] | null | null | null | GraphTrace.py | a-dera/Graphe | 70886565cc1dbda9f343dc11edcc480e2372934f | [
"MIT"
] | null | null | null | GraphTrace.py | a-dera/Graphe | 70886565cc1dbda9f343dc11edcc480e2372934f | [
"MIT"
] | null | null | null | ##################################################
# Importation des Bibliotheques et fonctions:
from tkinter import *
from PIL import ImageGrab
from tkinter import PhotoImage
import tkinter as tk
from tkinter import ttk
from collections import defaultdict
##########################################
#####... | 37.322545 | 152 | 0.657667 |
e7cfb5f65289821950b5026983f1eb4b8e97063e | 1,829 | py | Python | xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2018-02-02T00:15:26.000Z | 2018-02-02T00:15:26.000Z | xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | null | null | null | xen/xen-4.2.2/tools/xm-test/tests/unpause/01_unpause_basic_pos.py | zhiming-shen/Xen-Blanket-NG | 47e59d9bb92e8fdc60942df526790ddb983a5496 | [
"Apache-2.0"
] | 1 | 2019-05-27T09:47:18.000Z | 2019-05-27T09:47:18.000Z | #!/usr/bin/python
# Copyright (C) International Business Machines Corp., 2005
# Author: Paul Larson <pl@us.ibm.com>
# Description:
# Positive Tests:
# Tests for xm unpause
# 1) Create domain, verify it's up with console
# 2) randomly pause and unpause the domain
# 3) unpause it one last time
# 4) verify it's still a... | 23.753247 | 73 | 0.663204 |
e7d05b674fc0a756fe709726953552b8a0021a86 | 1,420 | py | Python | commands/elections.py | Nichodon/Democracy-Bot | 708613944b25f7331b18153e5f90c18f44e38aff | [
"MIT"
] | null | null | null | commands/elections.py | Nichodon/Democracy-Bot | 708613944b25f7331b18153e5f90c18f44e38aff | [
"MIT"
] | null | null | null | commands/elections.py | Nichodon/Democracy-Bot | 708613944b25f7331b18153e5f90c18f44e38aff | [
"MIT"
] | null | null | null | import asyncio
from demobot.utils import *
from demobot.handlers import add_message_handler, nested_get, nested_set, nested_pop
from commands.utilities import save
add_message_handler(running, r'I\s*(?:(?:want|would\s*like)\s*to\s*run|am\s*running)\s*for\s*(?P<pos>.*?)\Z')
| 43.030303 | 117 | 0.619718 |
e7d0a01dfe244608cccd3bc500765f871dee666f | 861 | py | Python | python/p-test.py | kettlewell/bashisms | c6222424984264c7c6488f20ea5591ff5078d040 | [
"MIT"
] | null | null | null | python/p-test.py | kettlewell/bashisms | c6222424984264c7c6488f20ea5591ff5078d040 | [
"MIT"
] | null | null | null | python/p-test.py | kettlewell/bashisms | c6222424984264c7c6488f20ea5591ff5078d040 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
'''
Force Python3
'''
from __future__ import print_function
from pprint import pprint
from pssh.pssh_client import ParallelSSHClient
from pssh.exceptions import AuthenticationException, \
UnknownHostException, ConnectionErrorException
import pssh.utils
pssh.utils.enable_host_logger()
hosts... | 23.27027 | 83 | 0.732869 |
e7d2d32363335e20bef823b3804fd88486bdc7c4 | 122 | py | Python | blocky_hardware.py | curlyz/blocky | ef23f81bd27a7a5cf34ec10b35dd9ca3fbd67691 | [
"MIT"
] | null | null | null | blocky_hardware.py | curlyz/blocky | ef23f81bd27a7a5cf34ec10b35dd9ca3fbd67691 | [
"MIT"
] | null | null | null | blocky_hardware.py | curlyz/blocky | ef23f81bd27a7a5cf34ec10b35dd9ca3fbd67691 | [
"MIT"
] | null | null | null | Port1 = { "pin1" : 33 , "pin2" : 32 , "adc" : 33} #ICSP Cable
Port2 = { "pin1" : 13 , "pin2" : 14 , "adc" : 34} #MP3 Port | 61 | 62 | 0.491803 |
e7d2ffd3f7f2be532081ab4ccbd72d2f7d534660 | 1,968 | py | Python | text_mode.py | JacekPrzemieniecki/UNIFAC | c32702aeffd695a9fd3883cf150500e902df7a97 | [
"MIT"
] | 6 | 2016-01-04T02:33:13.000Z | 2021-07-18T08:32:51.000Z | text_mode.py | JacekPrzemieniecki/UNIFAC | c32702aeffd695a9fd3883cf150500e902df7a97 | [
"MIT"
] | 1 | 2020-07-27T17:56:23.000Z | 2020-08-10T06:30:06.000Z | text_mode.py | JacekPrzemieniecki/UNIFAC | c32702aeffd695a9fd3883cf150500e902df7a97 | [
"MIT"
] | 6 | 2015-01-02T19:18:16.000Z | 2021-04-16T08:12:14.000Z | '''
Created on 16-10-2012
@author: Jacek Przemieniecki
'''
from unifac.facade import Facade #@UnresolvedImport
ui = UI()
while 1:
ui.run_command(input())
| 31.741935 | 102 | 0.571138 |
e7d451a5141cd5cf0b8b79bacc909a39ece22eab | 848 | py | Python | ping.py | FoxUnderGround/Ping-Plot | 4a61b147c2e1f4ee79cd77ea8500fc70175b59c7 | [
"MIT"
] | 1 | 2020-03-06T14:18:34.000Z | 2020-03-06T14:18:34.000Z | ping.py | FoxUnderGround/Ping-Plot | 4a61b147c2e1f4ee79cd77ea8500fc70175b59c7 | [
"MIT"
] | null | null | null | ping.py | FoxUnderGround/Ping-Plot | 4a61b147c2e1f4ee79cd77ea8500fc70175b59c7 | [
"MIT"
] | null | null | null | from pythonping import ping
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib import style
style.use('fivethirtyeight')
fig = plt.figure()
ax1 = fig.add_subplot(1,1,1)
xs_min=[0]
ys_min=[5]
ani = animation.FuncAnimation(fig, animate, interval=50)
plt.show()... | 21.74359 | 64 | 0.610849 |
e7d57733a14bd14b22ac54f00ccfc5903ce8b1c4 | 669 | py | Python | cumulusci/tasks/robotframework/tests/TestLibrary.py | jdominiczak/CumulusCI | f706c1906f9eb6d604c571a9dd16f5d0ed38599f | [
"BSD-3-Clause"
] | 163 | 2018-09-13T18:49:34.000Z | 2022-03-25T08:37:15.000Z | cumulusci/tasks/robotframework/tests/TestLibrary.py | jdominiczak/CumulusCI | f706c1906f9eb6d604c571a9dd16f5d0ed38599f | [
"BSD-3-Clause"
] | 1,280 | 2018-09-11T20:09:37.000Z | 2022-03-31T18:40:21.000Z | cumulusci/tasks/robotframework/tests/TestLibrary.py | jdominiczak/CumulusCI | f706c1906f9eb6d604c571a9dd16f5d0ed38599f | [
"BSD-3-Clause"
] | 125 | 2015-01-17T16:05:39.000Z | 2018-09-06T19:05:00.000Z | # from cumulusci.robotframework.utils import selenium_retry
# The following decorator is commented out, because with it the
# library gets two extra keywords. I'm not certain if that's what
# should be happening, or if those two keywords are actually just
# helper functions that are accidentially ending up as keywords... | 35.210526 | 65 | 0.748879 |
e7d5c15d7006467f20bff9ef1db02036b30e8aa0 | 3,875 | py | Python | python/spellcheck.py | andrewgaul/src | 4dd18eaf692c1a3740b00c68b3c088842d958e7a | [
"MIT"
] | null | null | null | python/spellcheck.py | andrewgaul/src | 4dd18eaf692c1a3740b00c68b3c088842d958e7a | [
"MIT"
] | null | null | null | python/spellcheck.py | andrewgaul/src | 4dd18eaf692c1a3740b00c68b3c088842d958e7a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
'''spellcheck.py - parse source code and spell check comments, strings, or all
tokens.
Usage: find $SRCDIR -name \*.java | spellcheck.py --dict /usr/share/dict/words
Most users will need a large custom dictionary of technical terms, e.g.,
HTTP, malloc, etc. Users may want to pipe output throug... | 33.405172 | 79 | 0.594065 |
e7d8a57bd82d83430fc2050120ea5bf3d037a7e3 | 1,981 | py | Python | sliding_racket/Environment.py | alizindari/Deep-Reinforcement-Learning | 315aedcaaa2ba134e77c95270fd30ed5d814182c | [
"MIT"
] | 1 | 2022-01-24T06:11:18.000Z | 2022-01-24T06:11:18.000Z | sliding_racket/Environment.py | alizindari/Deep-Reinforcement-Learning | 315aedcaaa2ba134e77c95270fd30ed5d814182c | [
"MIT"
] | null | null | null | sliding_racket/Environment.py | alizindari/Deep-Reinforcement-Learning | 315aedcaaa2ba134e77c95270fd30ed5d814182c | [
"MIT"
] | null | null | null |
import numpy as np
from collections import deque
from experience_replay import *
from brain import *
from agent import *
from Hyperparameters import *
| 27.513889 | 98 | 0.498233 |
e7da5c2603cd6fccdacd996246a799e84c9ef725 | 2,040 | py | Python | restful_falcon/contrib/celery_results/db/model/task.py | wynterwang/restful-falcon | f246e14c8442f358c862c118ae1dfdbd93d9e0a0 | [
"MIT"
] | null | null | null | restful_falcon/contrib/celery_results/db/model/task.py | wynterwang/restful-falcon | f246e14c8442f358c862c118ae1dfdbd93d9e0a0 | [
"MIT"
] | null | null | null | restful_falcon/contrib/celery_results/db/model/task.py | wynterwang/restful-falcon | f246e14c8442f358c862c118ae1dfdbd93d9e0a0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# __author__ = "wynterwang"
# __date__ = "2020/9/18"
from __future__ import absolute_import
from datetime import datetime
from celery import states
from restful_falcon.core.db.model import Column
from restful_falcon.core.db.model import Model
from restful_falcon.core.db.model import Sequence
... | 31.384615 | 98 | 0.736275 |
e7db7546214ecb41828bad2746f7c33166640ce9 | 700 | py | Python | mirari/SV/urls.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | mirari/SV/urls.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | 18 | 2019-12-27T19:58:20.000Z | 2022-02-27T08:17:49.000Z | mirari/SV/urls.py | gcastellan0s/mirariapp | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | [
"MIT"
] | null | null | null | from mirari.mirari.urls import *
from django.views.generic.base import RedirectView
from .views import *
from .vars import *
app_name = APP
urlpatterns = [
path('sv/', sv__Sellpoint__TemplateView.as_view(), name='sv__Sellpoint__TemplateView'),
path('api/SellpointApiView/<slug:app>/<slug:action>/<slug:model>/... | 46.666667 | 129 | 0.775714 |
e7db7db77f02f9ba4f004fea0210493ed47227bf | 168 | py | Python | My/test.py | wangzihan424/Myblog | 480443f2b6209f69dc8ab4e36349a41bf3c5c0a1 | [
"MIT"
] | 1 | 2018-01-01T12:31:51.000Z | 2018-01-01T12:31:51.000Z | My/test.py | wangzihan424/Myblog | 480443f2b6209f69dc8ab4e36349a41bf3c5c0a1 | [
"MIT"
] | null | null | null | My/test.py | wangzihan424/Myblog | 480443f2b6209f69dc8ab4e36349a41bf3c5c0a1 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
p = People()
print p
p1 = People1()
print p1 | 12.923077 | 22 | 0.60119 |
e7dbfa3534c103b51f102189f319e15ea8011535 | 7,178 | py | Python | helpers.py | jyh764790374/R-Net-in-CNTK | 2eac05cb45bc52635bb4698729805d7e12af436e | [
"Unlicense"
] | 17 | 2018-07-27T07:09:18.000Z | 2021-02-27T17:08:36.000Z | helpers.py | jyh764790374/R-Net-in-CNTK-MS-MARCO- | 2eac05cb45bc52635bb4698729805d7e12af436e | [
"Unlicense"
] | null | null | null | helpers.py | jyh764790374/R-Net-in-CNTK-MS-MARCO- | 2eac05cb45bc52635bb4698729805d7e12af436e | [
"Unlicense"
] | 2 | 2018-10-17T02:51:06.000Z | 2018-10-21T11:47:54.000Z | import numpy as np
import cntk as C
from cntk.layers.blocks import _INFERRED
'''
def attention_pooling(inputs, inputs_weights, decode, decode_weights, keys):
"""
inputs: shape=(dim, n)
inputs_weight: shape=(dim, dim)
decode: shape=(1, dec_dim)
decode_weights: shape=(dim, dec_dim)
key... | 41.976608 | 132 | 0.639454 |
e7dd0fd747c77ccfad30186eb48f1feb9667fdbd | 7,400 | py | Python | submodules/hal/assemblyHub/prepareHubFiles.py | pbasting/cactus | 833d8ca015deecdfa5d0aca01211632cdaca9e58 | [
"MIT-0"
] | null | null | null | submodules/hal/assemblyHub/prepareHubFiles.py | pbasting/cactus | 833d8ca015deecdfa5d0aca01211632cdaca9e58 | [
"MIT-0"
] | null | null | null | submodules/hal/assemblyHub/prepareHubFiles.py | pbasting/cactus | 833d8ca015deecdfa5d0aca01211632cdaca9e58 | [
"MIT-0"
] | null | null | null | #!/usr/bin/env python
#Copyright (C) 2013 by Ngan Nguyen
#
#Released under the MIT license, see LICENSE.txt
"""
Make "hub.txt", "groups.txt", files that are required by AssemblyHub
Also prepare description.html files
"""
import os, sys
from sonLib.bioio import system
from optparse import OptionGroup
from hal.as... | 40.217391 | 277 | 0.662027 |
e7defab092a8c6a31ee2f6d14dfbb7eb3596456d | 475 | py | Python | src/sqlfluff/core/__init__.py | pvonglehn/sqlfluff | 61eb251ee96b1b70aa477f3a2f2b9c351a04c1e8 | [
"MIT"
] | null | null | null | src/sqlfluff/core/__init__.py | pvonglehn/sqlfluff | 61eb251ee96b1b70aa477f3a2f2b9c351a04c1e8 | [
"MIT"
] | null | null | null | src/sqlfluff/core/__init__.py | pvonglehn/sqlfluff | 61eb251ee96b1b70aa477f3a2f2b9c351a04c1e8 | [
"MIT"
] | 1 | 2021-03-07T21:49:52.000Z | 2021-03-07T21:49:52.000Z | """The core elements of sqlfluff."""
# flake8: noqa: F401
# Config objects
from sqlfluff.core.config import FluffConfig
# Public classes
from sqlfluff.core.linter import Linter
from sqlfluff.core.parser import Lexer, Parser
# Dialect introspection
from sqlfluff.core.dialects import dialect_selector, dialect_readout... | 20.652174 | 68 | 0.768421 |
e7e190c401cd34896ce2b8d4d09a1b734e5c48e3 | 6,698 | py | Python | tools/fastqc/rgFastQC.py | bebatut/tools-iuc | 4fb528145289ad4db04e4589c02e9ddaa1194138 | [
"MIT"
] | null | null | null | tools/fastqc/rgFastQC.py | bebatut/tools-iuc | 4fb528145289ad4db04e4589c02e9ddaa1194138 | [
"MIT"
] | null | null | null | tools/fastqc/rgFastQC.py | bebatut/tools-iuc | 4fb528145289ad4db04e4589c02e9ddaa1194138 | [
"MIT"
] | null | null | null | """
Rewrite of rgFastQC.py for Version 0.11.2 of FastQC.
Changes implemented from tmcgowan at
https://testtoolshed.g2.bx.psu.edu/view/tmcgowan/fastqc
and iuc at https://toolshed.g2.bx.psu.edu/view/iuc/fastqc
with minor changes and bug fixes
SYNOPSIS
rgFastQC.py -i input_file -j input_file.name -o output_html_fil... | 39.169591 | 148 | 0.627351 |
99adaa9fbb76e38861e85eb3688d0298edfd1677 | 5,563 | py | Python | appengine/monorail/framework/test/paginate_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | appengine/monorail/framework/test/paginate_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | 7 | 2022-02-15T01:11:37.000Z | 2022-03-02T12:46:13.000Z | appengine/monorail/framework/test/paginate_test.py | allaparthi/monorail | e18645fc1b952a5a6ff5f06e0c740d75f1904473 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
"""Unit tests for pagination classes."""
from __future__ import print_function
from __future__ ... | 38.10274 | 77 | 0.729642 |
99addb00927f314ffddb52609797a63c1bd4e073 | 4,022 | py | Python | backend/google_calendar.py | engineerjoe440/djjoecalendar | 02e88861d460d71527bf5d714913fd148579b258 | [
"MIT"
] | null | null | null | backend/google_calendar.py | engineerjoe440/djjoecalendar | 02e88861d460d71527bf5d714913fd148579b258 | [
"MIT"
] | null | null | null | backend/google_calendar.py | engineerjoe440/djjoecalendar | 02e88861d460d71527bf5d714913fd148579b258 | [
"MIT"
] | null | null | null | ################################################################################
"""
DJ JOE Website Availability Calendar
------------------------------------
(c) 2021 - Stanley Solutions - Joe Stanley
This application serves the React frontend required to demonstrate the available
dates for DJ Joe Services.
"""
####... | 34.973913 | 83 | 0.592491 |
99aff1381f53e0fd438acad0daa71781fe93be07 | 5,764 | py | Python | seutil/Stream.py | JiyangZhang/seutil | 6a2d0961a5f78f2adbf9f0b5f292f6be71780ca2 | [
"Apache-2.0"
] | 6 | 2020-07-02T02:39:59.000Z | 2022-02-08T18:38:39.000Z | seutil/Stream.py | JiyangZhang/seutil | 6a2d0961a5f78f2adbf9f0b5f292f6be71780ca2 | [
"Apache-2.0"
] | 5 | 2020-11-29T02:26:50.000Z | 2022-01-24T16:26:54.000Z | seutil/Stream.py | JiyangZhang/seutil | 6a2d0961a5f78f2adbf9f0b5f292f6be71780ca2 | [
"Apache-2.0"
] | 1 | 2020-10-09T23:31:22.000Z | 2020-10-09T23:31:22.000Z | from pathlib import Path
import numpy as np
import random
import subprocess
from typing import *
from .IOUtils import IOUtils
def sorted(self, key: Callable[[str], object] = lambda f: f,
reverse: bool = False):
"""
Sorts the list of files in the dataset.
"""
list.so... | 32.022222 | 124 | 0.566967 |
99b7f2669bc39124ccbb858ced46317dfc7b5280 | 7,789 | py | Python | packages/dinesti/python/_grab.py | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 3 | 2019-06-10T18:04:14.000Z | 2020-12-05T18:11:40.000Z | packages/dinesti/python/_grab.py | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | null | null | null | packages/dinesti/python/_grab.py | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 2 | 2020-09-24T19:04:14.000Z | 2020-12-05T18:11:43.000Z | # Copyright (2013) Sandia Corporation. Under the terms of Contract
# DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government
# retains certain rights in this software.
#
# This software is released under the FreeBSD license as described
# in License.txt
import time
import string
import subprocess
import os
im... | 7,789 | 7,789 | 0.705867 |
99b9d977ad5ba85f80dfdf899e7e306d68769703 | 246 | py | Python | main.py | FlamptX/topgg-webhook-cog | b937bbef71ada9a00b6e748475fa55e5cedbf6ee | [
"MIT"
] | 1 | 2021-05-11T16:22:00.000Z | 2021-05-11T16:22:00.000Z | main.py | FlamptX/topgg-webhook-cog | b937bbef71ada9a00b6e748475fa55e5cedbf6ee | [
"MIT"
] | null | null | null | main.py | FlamptX/topgg-webhook-cog | b937bbef71ada9a00b6e748475fa55e5cedbf6ee | [
"MIT"
] | null | null | null | from discord.ext import commands
from configparser import ConfigParser
parser = ConfigParser()
parser.read("config.txt")
TOKEN = parser.get('config', 'token')
bot = commands.Bot(command_prefix='!')
bot.load_extension("Webhook")
bot.run(TOKEN)
| 20.5 | 38 | 0.760163 |
99b9dbb04990991f85b416338b39b80cb298f798 | 567 | py | Python | test_ghost/test_01_basic_functionality.py | prosky-pmaj/python-framework-for-web-ui-and-api-testing | 6218aca2e5a45f26507ab624724e1f17dca5546f | [
"MIT"
] | null | null | null | test_ghost/test_01_basic_functionality.py | prosky-pmaj/python-framework-for-web-ui-and-api-testing | 6218aca2e5a45f26507ab624724e1f17dca5546f | [
"MIT"
] | null | null | null | test_ghost/test_01_basic_functionality.py | prosky-pmaj/python-framework-for-web-ui-and-api-testing | 6218aca2e5a45f26507ab624724e1f17dca5546f | [
"MIT"
] | null | null | null | from components.ghost.blogPage import BlogPage
from components.ghost.adminPanelPage import AdminPanelPage
| 27 | 58 | 0.714286 |
99ba4295d40e9eb27422490957fc057fa213b493 | 1,038 | py | Python | data_prep/yelp_dataset/fix_user.py | Nithanaroy/GeoReachRecommender | 74443bad1cb363582736f8fa9294a91321848def | [
"MIT"
] | 1 | 2020-03-25T17:39:10.000Z | 2020-03-25T17:39:10.000Z | data_prep/yelp_dataset/fix_user.py | Nithanaroy/GeoReachRecommender | 74443bad1cb363582736f8fa9294a91321848def | [
"MIT"
] | null | null | null | data_prep/yelp_dataset/fix_user.py | Nithanaroy/GeoReachRecommender | 74443bad1cb363582736f8fa9294a91321848def | [
"MIT"
] | 4 | 2017-01-21T15:16:55.000Z | 2020-03-28T17:43:47.000Z | """
{
'type': 'user',
'user_id': (encrypted user id),
'name': (first name),
'review_count': (review count),
'average_stars': (floating point average, like 4.31),
'votes': {(vote type): (count)},
'friends': [(friend user_ids)],
'elite': [(years_elite)],
'yelping_since': (date, formatt... | 25.95 | 58 | 0.504817 |
99bb6a49211d151c035db736f93150d9bd8b0d82 | 5,085 | py | Python | src/GlobalTracker/scene.py | lleon95/NanoSciTracker-Python | f682c1f3b9b9f76a6de8ea816df910715539edf1 | [
"Apache-2.0"
] | null | null | null | src/GlobalTracker/scene.py | lleon95/NanoSciTracker-Python | f682c1f3b9b9f76a6de8ea816df910715539edf1 | [
"Apache-2.0"
] | null | null | null | src/GlobalTracker/scene.py | lleon95/NanoSciTracker-Python | f682c1f3b9b9f76a6de8ea816df910715539edf1 | [
"Apache-2.0"
] | null | null | null | # NanoSciTracker - 2020
# Author: Luis G. Leon Vega <luis@luisleon.me>
#
# 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 y... | 33.019481 | 86 | 0.627139 |
99bbb76447ce3721bfcbb6a8e1979553d2d5700b | 310 | py | Python | latex/code/paradigms/oop/class_abstract.py | nikoladze/icsc-paradigms-and-patterns | 019e51b6fa7747a9a7ee24ca48315e1988565ef2 | [
"CC0-1.0",
"CC-BY-4.0"
] | 10 | 2020-09-28T12:14:31.000Z | 2021-09-22T18:38:13.000Z | latex/code/paradigms/oop/class_abstract.py | nikoladze/icsc-paradigms-and-patterns | 019e51b6fa7747a9a7ee24ca48315e1988565ef2 | [
"CC0-1.0",
"CC-BY-4.0"
] | 5 | 2020-09-28T13:40:52.000Z | 2021-12-06T16:38:09.000Z | latex/code/paradigms/oop/class_abstract.py | nikoladze/icsc-paradigms-and-patterns | 019e51b6fa7747a9a7ee24ca48315e1988565ef2 | [
"CC0-1.0",
"CC-BY-4.0"
] | 5 | 2020-09-28T13:10:45.000Z | 2021-12-06T16:05:16.000Z | from abc import ABC, abstractmethod
| 15.5 | 38 | 0.619355 |
99bc36674ac9930132b7fa40a1504d6148e42d4d | 7,573 | py | Python | jmeter_api/configs/http_cookie_manager/elements.py | dashawn888/jmeter_api | 1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd | [
"Apache-2.0"
] | 11 | 2020-03-22T13:30:21.000Z | 2021-12-25T06:23:44.000Z | jmeter_api/configs/http_cookie_manager/elements.py | dashawn888/jmeter_api | 1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd | [
"Apache-2.0"
] | 37 | 2019-12-18T13:12:50.000Z | 2022-02-10T10:52:37.000Z | jmeter_api/configs/http_cookie_manager/elements.py | dashawn888/jmeter_api | 1ab5b02f3a7c8ad1b84fc50db4fe1fc2fa7c91bd | [
"Apache-2.0"
] | 5 | 2019-12-06T10:55:56.000Z | 2020-06-01T19:32:32.000Z | import logging
from typing import List, Optional
from enum import Enum
from xml.etree.ElementTree import Element
from jmeter_api.basics.config.elements import BasicConfig
from jmeter_api.basics.utils import Renderable, FileEncoding, tree_to_str
class HTTPCookieManager(BasicConfig, Renderable):
root_eleme... | 32.502146 | 88 | 0.575201 |
99bc394d69ac0c2ddde0ba6fd63c903bf2c13144 | 13,338 | py | Python | electionBuster.py | RarW0lf/electionBuster | 394e92a972c0a6af260811985a8051af40ffa25d | [
"MIT"
] | 16 | 2015-10-22T01:37:28.000Z | 2018-10-17T13:05:44.000Z | electionBuster.py | RarW0lf/electionBuster | 394e92a972c0a6af260811985a8051af40ffa25d | [
"MIT"
] | 2 | 2018-02-10T00:05:43.000Z | 2018-05-17T22:48:22.000Z | electionBuster.py | thorshand/electionBuster | 394e92a972c0a6af260811985a8051af40ffa25d | [
"MIT"
] | 4 | 2017-08-02T12:41:44.000Z | 2018-08-14T16:16:41.000Z | #!/usr/bin/python3.5
##################################################
## Author: Joshua Franklin, Kevin Franklin
## Example input to start:
## sudo ./electionBuster.py -f josh -l franklin -y 2014 -e senate -s pennsyltucky
## 6 arguments are passed:
## 1: The first name of the candidate (mandatory)
## 2: The mi... | 35.568 | 204 | 0.647623 |
99bc54e60d9317663e39e91ec8fe0cf6bc80d209 | 20,227 | py | Python | core/authentication/__init__.py | Sick-codes/core | da9250f27a5de4fc3a08e9c47064b19f484b042b | [
"Apache-2.0"
] | null | null | null | core/authentication/__init__.py | Sick-codes/core | da9250f27a5de4fc3a08e9c47064b19f484b042b | [
"Apache-2.0"
] | null | null | null | core/authentication/__init__.py | Sick-codes/core | da9250f27a5de4fc3a08e9c47064b19f484b042b | [
"Apache-2.0"
] | null | null | null | """Initialization of authentication."""
import json
import logging
import secrets
import uuid
from typing import TYPE_CHECKING, List, Optional
if TYPE_CHECKING:
from core.core import ApplicationCore
import aiohttp_jinja2
from aiohttp import hdrs, web
from ..const import CONF_TOKEN_LIFETIME
from .auth_client impo... | 39.738703 | 145 | 0.565531 |
99bc74d2f622c7d0048f1d7a1244333cdfa0d30a | 785 | py | Python | Utils/Image_processing.py | philshams/FC_analysis | cabe2385d5061d206a21b230605bfce9e39ec7f2 | [
"MIT"
] | null | null | null | Utils/Image_processing.py | philshams/FC_analysis | cabe2385d5061d206a21b230605bfce9e39ec7f2 | [
"MIT"
] | null | null | null | Utils/Image_processing.py | philshams/FC_analysis | cabe2385d5061d206a21b230605bfce9e39ec7f2 | [
"MIT"
] | null | null | null | import cv2
def process_background(background, track_options):
""" extract background: first frame of first video of a session
Allow user to specify ROIs on the background image """
print(' ... extracting background')
cv2.startWindowThread()
if len(background.shape) == 3:
gray = cv2.cv... | 29.074074 | 78 | 0.628025 |
99bcdcd5e66866adeb754619341836bf5daa27c7 | 1,553 | py | Python | python/ctci-merge-sort.py | gajubadge11/hackerrank-3 | 132a5019b7ed21507bb95b5063fa66c446b0eff7 | [
"MIT"
] | 21 | 2015-02-09T18:08:38.000Z | 2021-11-08T15:00:48.000Z | python/ctci-merge-sort.py | gajubadge11/hackerrank-3 | 132a5019b7ed21507bb95b5063fa66c446b0eff7 | [
"MIT"
] | 7 | 2020-04-12T23:00:19.000Z | 2021-01-30T23:44:24.000Z | python/ctci-merge-sort.py | gajubadge11/hackerrank-3 | 132a5019b7ed21507bb95b5063fa66c446b0eff7 | [
"MIT"
] | 27 | 2015-07-22T18:08:12.000Z | 2022-02-28T19:50:26.000Z | #!/bin/python3
import math
import os
import random
import re
import sys
# This solution times out on Hackerrank with Python 3
# However, it passes all test cases with Pypy 3
if __name__ == '__main__':
fptr = open(os.environ['OUTPUT_PATH'], 'w')
num_test_cases = int(input())
for _test_case in range(nu... | 24.650794 | 67 | 0.647135 |
99bd70b0b1f3c2fefc5fbd3c5e4dfb7838ccf414 | 447 | py | Python | blogapp/models.py | FnK-Lap/Unchained | 3a78d0597ab34737fdcc6d347c87063e93fad9cf | [
"MIT"
] | null | null | null | blogapp/models.py | FnK-Lap/Unchained | 3a78d0597ab34737fdcc6d347c87063e93fad9cf | [
"MIT"
] | null | null | null | blogapp/models.py | FnK-Lap/Unchained | 3a78d0597ab34737fdcc6d347c87063e93fad9cf | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here. | 29.8 | 66 | 0.693512 |
99be8e0ad90bd5d8dfd03aaa447d0efe4fc69820 | 267 | py | Python | FusionIIIT/applications/gymkhana/migrations/0014_merge_20200606_1238.py | sabhishekpratap5/sonarcubeTest2 | 9bd8105e457f6feb8c38fa94b335e54783fca99e | [
"bzip2-1.0.6"
] | 2 | 2020-06-17T11:59:08.000Z | 2020-07-10T12:17:35.000Z | FusionIIIT/applications/gymkhana/migrations/0014_merge_20200606_1238.py | sabhishekpratap5/sonarcubeTest2 | 9bd8105e457f6feb8c38fa94b335e54783fca99e | [
"bzip2-1.0.6"
] | 19 | 2019-09-08T06:01:14.000Z | 2020-05-21T09:08:20.000Z | FusionIIIT/applications/gymkhana/migrations/0014_merge_20200606_1238.py | sabhishekpratap5/sonarcubeTest2 | 9bd8105e457f6feb8c38fa94b335e54783fca99e | [
"bzip2-1.0.6"
] | 14 | 2019-08-31T12:25:42.000Z | 2022-01-12T08:05:33.000Z | # Generated by Django 3.0.6 on 2020-06-06 12:38
from django.db import migrations
| 17.8 | 48 | 0.640449 |
99bf91ac2f49e24944ae85032ce5745ad6b70267 | 21,009 | py | Python | ENCODE_publications.py | T2DREAM/pyencoded-tools | 75fa636995bfc9fe181f9af490ce70dde3f6ce21 | [
"MIT"
] | null | null | null | ENCODE_publications.py | T2DREAM/pyencoded-tools | 75fa636995bfc9fe181f9af490ce70dde3f6ce21 | [
"MIT"
] | null | null | null | ENCODE_publications.py | T2DREAM/pyencoded-tools | 75fa636995bfc9fe181f9af490ce70dde3f6ce21 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: latin-1 -*-
from Bio import Entrez
from Bio import Medline
import argparse
import os
import csv
import logging
import encodedcc
EPILOG = '''
Takes in a VERY specific file format to use for updating the publications
Also can update the existing publications using the pubmed database... | 48.85814 | 228 | 0.524775 |
99c06645644d0ffeca98076ebecceb6c2c273402 | 2,044 | py | Python | clusters/server/tests/day_test.py | ashsawh/stocks | 3f8f0b10d606062ef3abb5160836eb23696f48b0 | [
"Apache-2.0"
] | 1 | 2019-07-29T20:23:39.000Z | 2019-07-29T20:23:39.000Z | clusters/server/tests/day_test.py | ashsawh/stocks | 3f8f0b10d606062ef3abb5160836eb23696f48b0 | [
"Apache-2.0"
] | null | null | null | clusters/server/tests/day_test.py | ashsawh/stocks | 3f8f0b10d606062ef3abb5160836eb23696f48b0 | [
"Apache-2.0"
] | null | null | null | import unittest
from src.factory import DayFactory, TransactionsFactory
from src.value_objects import Stock, StockTransaction, CashTransaction
from src.day import Day
if __name__ == '__main__':
unittest.main()
| 32.444444 | 103 | 0.631115 |
99c08d33e58da9e15438ec52e98fb7ac7d97d9d5 | 2,832 | py | Python | src/export_quantized.py | mbuckler/squeezeDet-low-precision | 2c5c700d9e7c36cb611bb905e209f718dfbf177a | [
"BSD-2-Clause"
] | 2 | 2019-08-07T21:18:03.000Z | 2020-07-26T16:27:31.000Z | src/export_quantized.py | mbuckler/squeezeDet-low-precision | 2c5c700d9e7c36cb611bb905e209f718dfbf177a | [
"BSD-2-Clause"
] | null | null | null | src/export_quantized.py | mbuckler/squeezeDet-low-precision | 2c5c700d9e7c36cb611bb905e209f718dfbf177a | [
"BSD-2-Clause"
] | null | null | null | # Author: Mark Buckler
"""Quantization"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cv2
from datetime import datetime
import os.path
import sys
import time
import numpy as np
from six.moves import xrange
import tensorflow as tf
from config i... | 29.810526 | 82 | 0.641243 |
99c11294cdaedfbcacc68dc5da7e71c76a3c5c19 | 579 | py | Python | medium/remove_nth_node_from_end_of_list.py | Jswig/leetcode | ca9ca182ab7824d642aa5ebbe5974669d2a6221c | [
"MIT"
] | null | null | null | medium/remove_nth_node_from_end_of_list.py | Jswig/leetcode | ca9ca182ab7824d642aa5ebbe5974669d2a6221c | [
"MIT"
] | null | null | null | medium/remove_nth_node_from_end_of_list.py | Jswig/leetcode | ca9ca182ab7824d642aa5ebbe5974669d2a6221c | [
"MIT"
] | null | null | null | # Anders Poirel
| 21.444444 | 67 | 0.462867 |
99c2e61e389f9dd7c525b31829b0d447fc52f4de | 1,674 | py | Python | tests/community/test_pushbullet.py | soasme/runflow | b23086c2487a157b8c2d40f6225a1bcd9e8b6c60 | [
"Apache-2.0"
] | 6 | 2021-06-07T01:26:19.000Z | 2021-07-02T12:57:07.000Z | tests/community/test_pushbullet.py | soasme/runflow | b23086c2487a157b8c2d40f6225a1bcd9e8b6c60 | [
"Apache-2.0"
] | 2 | 2021-06-06T02:56:37.000Z | 2021-06-07T04:06:23.000Z | tests/community/test_pushbullet.py | soasme/runflow | b23086c2487a157b8c2d40f6225a1bcd9e8b6c60 | [
"Apache-2.0"
] | null | null | null | import pytest
from runflow import runflow
pytest.importorskip('slack_sdk')
| 23.914286 | 60 | 0.635006 |
99c393d65fd469c4d0c7d4d4470fc5c12bb10a44 | 3,269 | py | Python | ch02/dateandtime.py | ibiscum/Learn-Python-Programming-Third-Edition | c8e0061e97b16c9b55250cc720a8bc7613cb6cca | [
"MIT"
] | null | null | null | ch02/dateandtime.py | ibiscum/Learn-Python-Programming-Third-Edition | c8e0061e97b16c9b55250cc720a8bc7613cb6cca | [
"MIT"
] | null | null | null | ch02/dateandtime.py | ibiscum/Learn-Python-Programming-Third-Edition | c8e0061e97b16c9b55250cc720a8bc7613cb6cca | [
"MIT"
] | null | null | null | """Date and time"""
# imports
import arrow
from datetime import date, datetime, timedelta, timezone
import time
import calendar as cal
from zoneinfo import ZoneInfo
# arrow small demo
# date
today = date.today()
print(today)
# datetime.date(2021, 3, 28)
print(today.ctime())
print(today.isoformat())
print(today.we... | 20.955128 | 91 | 0.67513 |
99c5edc4f3f5114316b3f4fae670cf161eac7a79 | 15,176 | py | Python | utils.py | Soft8Soft/verge3d-blender-addon | 20a7ca153285e4744a7079bc015584271a50a252 | [
"Apache-2.0"
] | 86 | 2018-08-14T17:08:27.000Z | 2022-03-22T10:35:28.000Z | utils.py | Soft8Soft/verge3d-blender-addon | 20a7ca153285e4744a7079bc015584271a50a252 | [
"Apache-2.0"
] | 3 | 2018-08-16T16:32:26.000Z | 2021-01-31T11:09:01.000Z | utils.py | Soft8Soft/verge3d-blender-addon | 20a7ca153285e4744a7079bc015584271a50a252 | [
"Apache-2.0"
] | 18 | 2018-08-15T10:32:19.000Z | 2022-02-28T16:41:51.000Z | # Copyright (c) 2017-2019 Soft8Soft LLC
#
# This program 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.
#
# This program is distribute... | 29.525292 | 95 | 0.669412 |
99c67008a5b97aeb98ea7d651117dafc25583098 | 531 | py | Python | scripts/generate_story_map.py | afit/rimworld-save-migrator | a142dcef807e58a471b8bd840e4c4416ced73173 | [
"MIT"
] | 3 | 2018-07-02T23:36:52.000Z | 2019-01-21T17:16:35.000Z | scripts/generate_story_map.py | afit/rimworld-save-migrator | a142dcef807e58a471b8bd840e4c4416ced73173 | [
"MIT"
] | null | null | null | scripts/generate_story_map.py | afit/rimworld-save-migrator | a142dcef807e58a471b8bd840e4c4416ced73173 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Look at the story mappings from rimworld.log
# cat rimworld.log | grep backstory | sort -u > stories.txt
# RimWorld handles the mappings, but pollutes its log when it does so.
f = open( 'stories.txt' )
print 'mappings = {'
for l in f.readlines():
x = l.strip().split(' ')
if 'Giving rand... | 24.136364 | 73 | 0.563089 |
99c8bc3429d14ce3a02ee120f70154934756c968 | 37,815 | py | Python | VESIcal/vplot.py | kaylai/VESIcal | 3ea18b0ce30b30fb55786346c37ef8f428ee5034 | [
"MIT"
] | 16 | 2020-06-22T09:07:32.000Z | 2022-01-12T13:42:12.000Z | VESIcal/vplot.py | kaylai/VESIcal | 3ea18b0ce30b30fb55786346c37ef8f428ee5034 | [
"MIT"
] | 136 | 2020-05-22T21:43:23.000Z | 2022-03-07T22:06:33.000Z | build/lib/VESIcal/vplot.py | kaylai/VESIcal | 3ea18b0ce30b30fb55786346c37ef8f428ee5034 | [
"MIT"
] | 3 | 2021-05-18T08:21:02.000Z | 2022-03-25T01:08:10.000Z | from VESIcal import core
from VESIcal import calibrations
from VESIcal.tasplot import add_LeMaitre_fields
import pandas as pd
import numpy as np
import warnings as w
import matplotlib as mpl
import matplotlib.pyplot as plt
# ---------- DEFINE CUSTOM PLOTTING FORMATTING ------------ #
style = "seaborn-colorblind"
plt... | 40.100742 | 80 | 0.532276 |
99c9d0224c8f3e8cd2f2000caf10456ad5cb58d3 | 824 | py | Python | test/test_tools.py | translationalneurosurgery/tool-dimep | d2e3f8847d8a43d75b9ffc2dfaf65e5d1662c8ae | [
"MIT"
] | 2 | 2021-11-01T11:48:59.000Z | 2021-11-03T19:07:16.000Z | test/test_tools.py | agricolab/tool-dimep | d2e3f8847d8a43d75b9ffc2dfaf65e5d1662c8ae | [
"MIT"
] | 2 | 2021-03-31T10:47:46.000Z | 2021-03-31T11:31:51.000Z | test/test_tools.py | neuromti/tool-dimep | 36f9f404c99a53e85c9c492c4b0a281f832e07ba | [
"MIT"
] | null | null | null | from dimep.tools import *
import numpy as np
import pytest
| 34.333333 | 77 | 0.583738 |
99cba028d63bd0b3002ecf1a8511685b7a12c347 | 6,825 | py | Python | crypto_comparison.py | tomsch1/defichain-arbitrage-telegram-bot | b9f5291eaa60771c0ae28f832467393611de3da4 | [
"MIT"
] | 1 | 2022-03-01T14:19:49.000Z | 2022-03-01T14:19:49.000Z | crypto_comparison.py | tomsch1/defichain-arbitrage-telegram-bot | b9f5291eaa60771c0ae28f832467393611de3da4 | [
"MIT"
] | null | null | null | crypto_comparison.py | tomsch1/defichain-arbitrage-telegram-bot | b9f5291eaa60771c0ae28f832467393611de3da4 | [
"MIT"
] | null | null | null | import cexdatacollect
import dfi_dex_prices
from symbols import CryptoExchangeSymbols
| 46.114865 | 203 | 0.670183 |
99cc57d801b28345067bcc1957c433411f4b1448 | 3,915 | py | Python | HackyEaster/he2022/level8/ch37/solve37_unlink.py | tbrup/ctf-writeups | dfac11abb3051af657ed3384c3c389c14a40c10e | [
"MIT"
] | null | null | null | HackyEaster/he2022/level8/ch37/solve37_unlink.py | tbrup/ctf-writeups | dfac11abb3051af657ed3384c3c389c14a40c10e | [
"MIT"
] | null | null | null | HackyEaster/he2022/level8/ch37/solve37_unlink.py | tbrup/ctf-writeups | dfac11abb3051af657ed3384c3c389c14a40c10e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This exploit template was generated via:
# $ pwn template --host 46.101.107.117 --port 2208 ./eggo
from pwn import *
# Set up pwntools for the correct architecture
exe = context.binary = ELF('./eggo')
# libc = ELF('./libc-2.33.so')
# Many built-in settings can be contr... | 29 | 150 | 0.614304 |
99ccf27382ed8c167f71ca16ab953e0670010da4 | 481 | py | Python | test/TestClasse.py | AMadianov/Calc-python | 449b6747d3ba6558eaf950a45aa33563aee06238 | [
"MIT"
] | null | null | null | test/TestClasse.py | AMadianov/Calc-python | 449b6747d3ba6558eaf950a45aa33563aee06238 | [
"MIT"
] | null | null | null | test/TestClasse.py | AMadianov/Calc-python | 449b6747d3ba6558eaf950a45aa33563aee06238 | [
"MIT"
] | null | null | null | import unittest
if __name__ == '__main__':
unittest.main() | 22.904762 | 62 | 0.632017 |
99ce937a922710b30381f8493591068886a8598c | 25,467 | gyp | Python | groups/bsl/bslmf/bslmf.gyp | zhanzju/bsl | 1bb79982cff9bbaa3fb6d038604f04283ba76f07 | [
"MIT"
] | 1 | 2015-11-06T05:25:03.000Z | 2015-11-06T05:25:03.000Z | groups/bsl/bslmf/bslmf.gyp | zhanzju/bsl | 1bb79982cff9bbaa3fb6d038604f04283ba76f07 | [
"MIT"
] | null | null | null | groups/bsl/bslmf/bslmf.gyp | zhanzju/bsl | 1bb79982cff9bbaa3fb6d038604f04283ba76f07 | [
"MIT"
] | null | null | null | {
'variables': {
'bslmf_sources': [
'bslmf_addconst.cpp',
'bslmf_addcv.cpp',
'bslmf_addlvaluereference.cpp',
'bslmf_addpointer.cpp',
'bslmf_addreference.cpp',
'bslmf_addrvaluereference.cpp',
'bslmf_addvolatile.cpp',
'bslmf_arraytopointer.cpp',
'bslmf_assert.cp... | 34.64898 | 77 | 0.539247 |
99cf64985f998c65d2cacfaacd8edb39224b3b22 | 558 | py | Python | swig/openql/__init__.py | mmoelle1/OpenQL | 7d9e084cd3ecd237c9ea280801529d96cf67369a | [
"Apache-2.0"
] | null | null | null | swig/openql/__init__.py | mmoelle1/OpenQL | 7d9e084cd3ecd237c9ea280801529d96cf67369a | [
"Apache-2.0"
] | null | null | null | swig/openql/__init__.py | mmoelle1/OpenQL | 7d9e084cd3ecd237c9ea280801529d96cf67369a | [
"Apache-2.0"
] | 1 | 2022-01-04T20:51:43.000Z | 2022-01-04T20:51:43.000Z | # Author Imran Ashraf
# The import syntax changes slightly between python 2 and 3, so we
# need to detect which version is being used:
from sys import version_info
if version_info[0] == 3:
PY3 = True
elif version_info[0] == 2:
PY3 = False
else:
raise EnvironmentError("sys.version_info refers to a version ... | 25.363636 | 69 | 0.689964 |
99cf8bd15e6bfe4f73e426de65fa4c30ca3db7fc | 573 | py | Python | campaigns/migrations/0010_auto_20181117_2234.py | alimahdiyar/Developing-Community-Web | a663a687e0f286f197d4a7bf347f67cd130275f7 | [
"MIT"
] | 2 | 2018-06-02T12:30:00.000Z | 2018-07-19T14:41:39.000Z | campaigns/migrations/0010_auto_20181117_2234.py | Developing-Community/Developing-Community-Web | a663a687e0f286f197d4a7bf347f67cd130275f7 | [
"MIT"
] | 5 | 2021-06-08T19:09:00.000Z | 2022-03-11T23:25:14.000Z | campaigns/migrations/0010_auto_20181117_2234.py | Developing-Community/web | a663a687e0f286f197d4a7bf347f67cd130275f7 | [
"MIT"
] | 2 | 2018-05-27T14:58:34.000Z | 2018-05-27T15:03:04.000Z | # Generated by Django 2.0.9 on 2018-11-17 22:34
import campaigns.models
from django.db import migrations
import sorl.thumbnail.fields
| 27.285714 | 189 | 0.685864 |
99cfce15f277b305b1d6cfb0628ad6ec4ccc88f5 | 16,919 | py | Python | pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_traffic_class_exp_map_name/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_traffic_class_exp_map_name/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/qos_mpls/map_apply/apply_traffic_class_exp_map_name/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 74.20614 | 665 | 0.729594 |
99d0ec460ef85f6b78235bb1df6008162b91ab1f | 904 | py | Python | dypy/tests/test_variables.py | nickrsan/dypy | 78ebdc02ce1908446d4cc6e0ee1927c91f820d9f | [
"MIT"
] | 3 | 2019-03-12T21:13:45.000Z | 2022-02-18T09:55:07.000Z | dypy/tests/test_variables.py | nickrsan/dypy | 78ebdc02ce1908446d4cc6e0ee1927c91f820d9f | [
"MIT"
] | 2 | 2019-04-03T02:13:54.000Z | 2019-04-03T02:18:56.000Z | dypy/tests/test_variables.py | nickrsan/dypy | 78ebdc02ce1908446d4cc6e0ee1927c91f820d9f | [
"MIT"
] | null | null | null | import unittest
import dypy
| 25.828571 | 97 | 0.724558 |
99d12e7d29fef5924937d4cc8ce631b58a0747b3 | 740 | py | Python | tests/testoctal.py | antoniovilarinholopes/converttodecimal | 8fe58c4b7409d83ed66fb4b99f8953acf47bad88 | [
"MIT"
] | null | null | null | tests/testoctal.py | antoniovilarinholopes/converttodecimal | 8fe58c4b7409d83ed66fb4b99f8953acf47bad88 | [
"MIT"
] | null | null | null | tests/testoctal.py | antoniovilarinholopes/converttodecimal | 8fe58c4b7409d83ed66fb4b99f8953acf47bad88 | [
"MIT"
] | null | null | null | import unittest
import baseconverter as bctr
| 28.461538 | 73 | 0.697297 |
99d3397248d3d1b7a9a0b3eafedbd9115d28514f | 544 | py | Python | sgfood/forms.py | kylerlee/Restaurant-Reviews-Web-App | 795c46a2122717b94830249db005850898dd572a | [
"MIT"
] | null | null | null | sgfood/forms.py | kylerlee/Restaurant-Reviews-Web-App | 795c46a2122717b94830249db005850898dd572a | [
"MIT"
] | null | null | null | sgfood/forms.py | kylerlee/Restaurant-Reviews-Web-App | 795c46a2122717b94830249db005850898dd572a | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
| 32 | 58 | 0.681985 |
99d362a541a18ec8d12caecd6f148f337e916cdc | 1,391 | py | Python | src/external_script_runner.py | salvatorenovelli/python-automation-runner | 7d18d02f3e60980d18e97991e7991ba3aa43e79a | [
"Apache-2.0"
] | 1 | 2019-06-05T00:56:13.000Z | 2019-06-05T00:56:13.000Z | src/external_script_runner.py | salvatorenovelli/python-automation-runner | 7d18d02f3e60980d18e97991e7991ba3aa43e79a | [
"Apache-2.0"
] | null | null | null | src/external_script_runner.py | salvatorenovelli/python-automation-runner | 7d18d02f3e60980d18e97991e7991ba3aa43e79a | [
"Apache-2.0"
] | null | null | null | import logging
import os
import signal
import time
from multiprocessing import Process
| 30.23913 | 101 | 0.615385 |
99d682c3f29dd2435974d682aa3469e2490bd049 | 220 | py | Python | spotui/src/Logging.py | dbkosky/spotui | cabc6fbde3c0fbbc73fd94055661185ad51969c1 | [
"MIT"
] | 410 | 2020-01-08T17:23:52.000Z | 2022-03-31T03:19:01.000Z | spotui/src/Logging.py | octoshrimpy/spotui | b0d195d1cdc803839e8421472ed897521c6124d4 | [
"MIT"
] | 28 | 2020-01-09T00:10:10.000Z | 2022-03-19T01:22:39.000Z | spotui/src/Logging.py | octoshrimpy/spotui | b0d195d1cdc803839e8421472ed897521c6124d4 | [
"MIT"
] | 22 | 2020-01-10T04:08:22.000Z | 2022-03-17T13:31:13.000Z | import logging
import os
user_config_dir = os.path.expanduser("~")
logging.basicConfig(filename=user_config_dir + '/.cache/spotui.log', filemode='w',
format='%(name)s - %(levelname)s - %(message)s')
| 31.428571 | 82 | 0.659091 |
99d6b69bacc16386a2d51e2e47e08c035278f928 | 1,029 | py | Python | drone/remote_control/start.py | dpm76/eaglebone | 46403d03359a780f385ccb1f05b462869eddff89 | [
"ISC"
] | null | null | null | drone/remote_control/start.py | dpm76/eaglebone | 46403d03359a780f385ccb1f05b462869eddff89 | [
"ISC"
] | 18 | 2016-03-30T08:43:45.000Z | 2017-03-27T11:14:17.000Z | drone/remote_control/start.py | dpm76/eaglebone | 46403d03359a780f385ccb1f05b462869eddff89 | [
"ISC"
] | 2 | 2016-03-06T20:38:06.000Z | 2019-09-10T14:46:35.000Z | # -*- coding: utf-8 -*-
'''
Created on 15/06/2015
@author: david
'''
import sys
if sys.version_info.major < 3:
from SocketServer import TCPServer
else:
from socketserver import TCPServer
import datetime
import logging
from remote_control.dispatching import Dispatcher
if __name__ == '__main__':
... | 21.4375 | 118 | 0.594752 |
99d6c24393f666e309f1685a7bc70884ed6cd31a | 2,390 | py | Python | src/threadpool.py | forumulator/pySlader | b2300da6c10f46f0fa9933be722462a42a98bdbc | [
"MIT"
] | 1 | 2018-10-28T23:33:57.000Z | 2018-10-28T23:33:57.000Z | src/threadpool.py | forumulator/pySlader | b2300da6c10f46f0fa9933be722462a42a98bdbc | [
"MIT"
] | null | null | null | src/threadpool.py | forumulator/pySlader | b2300da6c10f46f0fa9933be722462a42a98bdbc | [
"MIT"
] | null | null | null | from queue import Queue, Empty
import threading
from threading import Thread
def create_task(func, *args, **kwargs):
return (func, args, kwargs)
if __name__ == '__main__':
from random import randrange
from time import sleep
delays = [randrange(1, 10) for i in range(30)]
pool = ThreadPool(20)... | 27.471264 | 79 | 0.562762 |
99d87c84c1f650596334fdedf093088152cfe4fd | 1,069 | py | Python | isaactest/tests/questionnaire.py | jsharkey13/isaac-selenium-testing | fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8 | [
"MIT"
] | null | null | null | isaactest/tests/questionnaire.py | jsharkey13/isaac-selenium-testing | fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8 | [
"MIT"
] | 1 | 2016-01-15T11:28:06.000Z | 2016-01-25T17:09:18.000Z | isaactest/tests/questionnaire.py | jsharkey13/isaac-selenium-testing | fc57ec57179cf7d9f0bb5ef46d759792b2af3bc8 | [
"MIT"
] | 1 | 2019-05-14T16:53:49.000Z | 2019-05-14T16:53:49.000Z | from ..utils.log import log, INFO, ERROR, PASS
from ..utils.isaac import kill_irritating_popup, disable_irritating_popup
from ..utils.i_selenium import assert_tab
from ..tests import TestWithDependency
__all__ = ["questionnaire"]
#####
# Test : Questionnaire Popup
#####
| 36.862069 | 95 | 0.707203 |