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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03e65ebb8db11f83d90833408439680a1da222bc | 3,432 | py | Python | riberry/app/backends/impl/celery/base.py | srafehi/riberry | 2ffa48945264177c6cef88512c1bc80ca4bf1d5e | [
"MIT"
] | 2 | 2019-12-09T10:24:36.000Z | 2019-12-09T10:26:56.000Z | riberry/app/backends/impl/celery/base.py | srafehi/riberry | 2ffa48945264177c6cef88512c1bc80ca4bf1d5e | [
"MIT"
] | 2 | 2018-06-11T11:34:28.000Z | 2018-08-22T12:00:19.000Z | riberry/app/backends/impl/celery/base.py | srafehi/riberry | 2ffa48945264177c6cef88512c1bc80ca4bf1d5e | [
"MIT"
] | null | null | null | from typing import Dict, AnyStr
import celery
import riberry
from . import patch, tasks, addons
from .executor import TaskExecutor
from .tracker import CeleryExecutionTracker
| 34.32 | 108 | 0.668415 |
03e6fbea2bc31d53355d4df0ef6a940806f422a0 | 2,753 | py | Python | amitypes/hsd.py | slac-lcls/amityping | a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d | [
"BSD-3-Clause-LBNL"
] | null | null | null | amitypes/hsd.py | slac-lcls/amityping | a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d | [
"BSD-3-Clause-LBNL"
] | null | null | null | amitypes/hsd.py | slac-lcls/amityping | a9f9c1a0d9077ff093e05a383ecd3bd05e0ce64d | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-13T01:54:32.000Z | 2020-12-13T01:54:32.000Z | import typing
from mypy_extensions import TypedDict
from amitypes.array import Array1d
__all__ = [
'TypedDict',
'PeakTimes',
'HSDSegementPeakTimes',
'HSDPeakTimes',
'Peaks',
'HSDSegmentPeaks',
'HSDPeaks',
'HSDSegmentWaveforms',
'HSDWaveforms',
'HSDAssemblies',
'HSDTypes',
]... | 25.256881 | 64 | 0.392663 |
03e72378fe20cb97a330f6cb48639d89ec4e8658 | 4,975 | py | Python | lib/astc-encoder/Test/astc_test_image_dl.py | atteneder/KTX-Software | 15369663a43d72972dfe0a7e3597d3ef6d90b6b9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-1-Clause",
"BSD-3-Clause"
] | 619 | 2015-04-30T14:55:02.000Z | 2022-03-30T06:56:14.000Z | lib/astc-encoder/Test/astc_test_image_dl.py | atteneder/KTX-Software | 15369663a43d72972dfe0a7e3597d3ef6d90b6b9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-1-Clause",
"BSD-3-Clause"
] | 283 | 2018-02-05T01:42:19.000Z | 2022-03-24T09:26:16.000Z | lib/astc-encoder/Test/astc_test_image_dl.py | atteneder/KTX-Software | 15369663a43d72972dfe0a7e3597d3ef6d90b6b9 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-1-Clause",
"BSD-3-Clause"
] | 167 | 2015-04-30T15:06:25.000Z | 2022-03-24T03:02:00.000Z | #!/usr/bin/env python3
# SPDX-License-Identifier: Apache-2.0
# -----------------------------------------------------------------------------
# Copyright 2019-2020 Arm Limited
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may ob... | 27.638889 | 79 | 0.617085 |
03e945af9ade9cf54e3b850a6b3c0ce9e40fad3b | 1,183 | py | Python | data_visualization/api_blueprint/predefined_configurations.py | danielrenes/car-data-visualization | 9fb18c7bc8ec3e796793178acab350f0b5e7ef5b | [
"MIT"
] | null | null | null | data_visualization/api_blueprint/predefined_configurations.py | danielrenes/car-data-visualization | 9fb18c7bc8ec3e796793178acab350f0b5e7ef5b | [
"MIT"
] | null | null | null | data_visualization/api_blueprint/predefined_configurations.py | danielrenes/car-data-visualization | 9fb18c7bc8ec3e796793178acab350f0b5e7ef5b | [
"MIT"
] | null | null | null | import json
from flask import jsonify, abort, request, url_for
from . import api
from .. import db
from ..models import PredefinedConfiguration
from ..queries import query_all_predefined_configs, query_get_predefined_config_by_id
| 35.848485 | 117 | 0.760778 |
03ea04acda2fa195ba0bef26aa773982feaf40ce | 2,918 | py | Python | web_api/bearings/apis/inventory.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 1 | 2020-12-04T03:15:47.000Z | 2020-12-04T03:15:47.000Z | web_api/bearings/apis/inventory.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 1 | 2021-06-01T22:24:27.000Z | 2021-06-01T22:24:27.000Z | web_api/bearings/apis/inventory.py | zhanghe06/flask_restful | 6ef54f3f7efbbaff6169e963dcf45ab25e11e593 | [
"MIT"
] | 2 | 2020-12-04T03:16:18.000Z | 2021-09-04T14:10:12.000Z | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: inventory.py
@time: 2018-06-28 00:23
"""
import datetime
from libs.mysql_orm_op import DbInstance
from web_api.databases.bearings import db
from web_api.models.bearings import Inventory
db_instance = DbInstance(db)
def get_inve... | 21.29927 | 96 | 0.64976 |
03ea99f6452fd0664caac74940ef228cb2d560ff | 3,549 | py | Python | cmapPy/clue_api_client/clue_api_client.py | RCBiczok/cmapPy | 580b0d656892e72f58047666a94e2769ddf63b3f | [
"BSD-3-Clause"
] | 2 | 2019-03-01T18:20:10.000Z | 2019-05-05T13:04:32.000Z | cmapPy/clue_api_client/clue_api_client.py | RCBiczok/cmapPy | 580b0d656892e72f58047666a94e2769ddf63b3f | [
"BSD-3-Clause"
] | 10 | 2022-03-14T18:40:45.000Z | 2022-03-22T12:45:02.000Z | cmapPy/clue_api_client/clue_api_client.py | RCBiczok/cmapPy | 580b0d656892e72f58047666a94e2769ddf63b3f | [
"BSD-3-Clause"
] | 2 | 2019-01-30T10:37:50.000Z | 2019-01-30T10:45:37.000Z | import requests
import logging
import cmapPy.clue_api_client.setup_logger as setup_logger
import json
__authors__ = "David L. Lahr"
__email__ = "dlahr@broadinstitute.org"
logger = logging.getLogger(setup_logger.LOGGER_NAME)
| 35.848485 | 130 | 0.658495 |
03eaec8f3f1adfdd6c5d23c7746d28621b17b634 | 185 | py | Python | Stock Managment System/__clieinit__.py | AutoSiliconeHoses/SMS | 11a0d8262d8cc87bfb0da94f008f34f9b12df2fd | [
"Unlicense"
] | null | null | null | Stock Managment System/__clieinit__.py | AutoSiliconeHoses/SMS | 11a0d8262d8cc87bfb0da94f008f34f9b12df2fd | [
"Unlicense"
] | 23 | 2019-07-05T10:07:58.000Z | 2021-06-02T00:22:16.000Z | Stock Managment System/__clieinit__.py | AutoSiliconeHoses/SMS | 11a0d8262d8cc87bfb0da94f008f34f9b12df2fd | [
"Unlicense"
] | null | null | null | import sys, string, os, yaml
import Client.client as client
with open("config.yml", 'r') as cfg:
config = yaml.load(cfg, Loader=yaml.FullLoader)
client.runClient("192.168.1.131")
| 23.125 | 51 | 0.713514 |
03ec5ee390c83bab9a9210d74914176c04449ccd | 2,467 | py | Python | src/gtk3/entrycompletion/MainWindow.py | alexandrebarbaruiva/gui-python-gtk | 7b8e8ab05645271ae55e1e2165eefc9c8f5b0250 | [
"MIT"
] | 42 | 2020-05-09T16:23:23.000Z | 2022-03-28T13:05:32.000Z | src/gtk3/entrycompletion/MainWindow.py | alexandrebarbaruiva/gui-python-gtk | 7b8e8ab05645271ae55e1e2165eefc9c8f5b0250 | [
"MIT"
] | 2 | 2020-05-27T19:23:54.000Z | 2022-03-08T01:42:59.000Z | src/gtk3/entrycompletion/MainWindow.py | alexandrebarbaruiva/gui-python-gtk | 7b8e8ab05645271ae55e1e2165eefc9c8f5b0250 | [
"MIT"
] | 8 | 2020-05-09T16:23:28.000Z | 2022-03-31T22:44:45.000Z | # -*- coding: utf-8 -*-
"""GTK.EntryCompletion()."""
import gi
gi.require_version(namespace='Gtk', version='3.0')
from gi.repository import Gtk, GObject, Gio
if __name__ == '__main__':
import sys
app = Application()
app.run(sys.argv)
| 32.038961 | 88 | 0.615728 |
03ee7a6ae2c980b37bf1c84311246a9eeb2654e7 | 21,227 | py | Python | tests/Buffer_Test.py | elmar-hinz/Python.V | 687202f2fbf66affdbb500095bbfa944be0dab5f | [
"MIT"
] | 9 | 2016-01-12T20:32:54.000Z | 2021-02-10T13:41:35.000Z | tests/Buffer_Test.py | elmar-hinz/Python.Vii | 687202f2fbf66affdbb500095bbfa944be0dab5f | [
"MIT"
] | null | null | null | tests/Buffer_Test.py | elmar-hinz/Python.Vii | 687202f2fbf66affdbb500095bbfa944be0dab5f | [
"MIT"
] | null | null | null | from nose.tools import *
from vii.Buffer import *
from vii.Signals import slot
""" copying """
""" deleting """
""" deleting linewise """
""" deleting inside line """
""" deleting mulitline ranges """
""" inserting """
def test_insert_single_line(self):
prefill = "11\n22\n33\n... | 36.28547 | 84 | 0.590286 |
03f0e18a2fb018fcb36f1fa0b744ae71787750e6 | 4,821 | py | Python | Chapter06/chapter_6_utils.py | YongBeomKim/py-finance | 7c7830904b67cd23c47e793e1f47a9702e7765f3 | [
"MIT"
] | 1 | 2021-03-16T04:32:15.000Z | 2021-03-16T04:32:15.000Z | Chapter06/chapter_6_utils.py | YongBeomKim/py-finance | 7c7830904b67cd23c47e793e1f47a9702e7765f3 | [
"MIT"
] | null | null | null | Chapter06/chapter_6_utils.py | YongBeomKim/py-finance | 7c7830904b67cd23c47e793e1f47a9702e7765f3 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.stats import norm
def simulate_gbm(s_0, mu, sigma, n_sims, T, N, random_seed=42, antithetic_var=False):
'''
Function used for simulating stock returns using Geometric Brownian Motion.
Parameters
----------
s_0 : float
Initial stock price
mu : float
... | 31.103226 | 117 | 0.581 |
03f0e951e703bc07082b6a1a6a828adfe88ff594 | 797 | py | Python | CanChickensFly.py | griledchicken/VAMPY-2017-CS | 1bc71734751850b580b481eac51c5c235d0ca9e2 | [
"MIT"
] | null | null | null | CanChickensFly.py | griledchicken/VAMPY-2017-CS | 1bc71734751850b580b481eac51c5c235d0ca9e2 | [
"MIT"
] | null | null | null | CanChickensFly.py | griledchicken/VAMPY-2017-CS | 1bc71734751850b580b481eac51c5c235d0ca9e2 | [
"MIT"
] | null | null | null | answer = input("Can Chickens Fly? YES/NO: ")
if answer == "YES":
answer = input("Can they fly well? YES/NO: ")
if answer == "YES":
answer = input("Have you ever seen a Chicken? YES/NO: ")
if answer == "YES":
print("You're lying to me")
else:
print("Go take a look at one")
else:
answer = input("Have you... | 26.566667 | 58 | 0.607277 |
03f1cc820b06286b1457546292140f6fdb636884 | 552 | py | Python | namedtuple.py | rmayherr/python | 830aec82e3ab155b66d01032eac71bbe6f961fce | [
"MIT"
] | null | null | null | namedtuple.py | rmayherr/python | 830aec82e3ab155b66d01032eac71bbe6f961fce | [
"MIT"
] | null | null | null | namedtuple.py | rmayherr/python | 830aec82e3ab155b66d01032eac71bbe6f961fce | [
"MIT"
] | null | null | null | from collections import namedtuple
import sys
first_line = sys.stdin.readline()
r = namedtuple('r',sys.stdin.readline(),rename=True)
a = [r._make((' '.join(sys.stdin.readline().strip().split())).split(' ')) for i in range(int(first_line))]
print(f'{sum([int(i.MARKS) for i in a]) / int(first_line):.2f}')
| 36.8 | 106 | 0.637681 |
03f2a4a307188ecd417f28abec6cc88bd1e7da2d | 829 | py | Python | tests/test_simulator/test_ff.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 167 | 2017-10-08T00:59:22.000Z | 2022-02-08T00:14:39.000Z | tests/test_simulator/test_ff.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 719 | 2017-08-29T17:58:28.000Z | 2022-03-31T23:39:18.000Z | tests/test_simulator/test_ff.py | leonardt/magma | d3e8c9500ec3b167df8ed067e0c0305781c94ab6 | [
"MIT"
] | 14 | 2017-09-01T03:25:16.000Z | 2021-11-05T13:30:24.000Z | from .test_primitives import PRIM_FF
import magma as m
from magma.simulator import PythonSimulator
from magma.scope import *
| 24.382353 | 62 | 0.651387 |
03f2f46697905dc14454de66877a20450a1d4124 | 2,223 | py | Python | literature-review/q-learning/q-learning.py | ByronDev121/literature-review | 23c276e92534793d85c7af5c24d93603f8ee7678 | [
"MIT"
] | null | null | null | literature-review/q-learning/q-learning.py | ByronDev121/literature-review | 23c276e92534793d85c7af5c24d93603f8ee7678 | [
"MIT"
] | null | null | null | literature-review/q-learning/q-learning.py | ByronDev121/literature-review | 23c276e92534793d85c7af5c24d93603f8ee7678 | [
"MIT"
] | null | null | null | import gym
import time
import os
import matplotlib.pyplot as plt
import numpy as np
from gym.envs.registration import register
from agent import QAgent
register(
id='FrozenLake8x8NoSLip-v0',
entry_point='gym.envs.toy_text:FrozenLakeEnv',
# kwargs={"map_name": "8x8", 'is_slippery': False},
kwargs={'is_s... | 26.783133 | 91 | 0.634728 |
03f309a30afe79b57c7abb4ede08dda5bc7ee303 | 625 | py | Python | data/clean_test.py | iotayo/aivivn-tone | 7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004 | [
"MIT"
] | 40 | 2019-07-31T18:13:13.000Z | 2021-12-07T09:45:07.000Z | data/clean_test.py | iotayo/aivivn-tone | 7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004 | [
"MIT"
] | 5 | 2019-08-07T10:21:52.000Z | 2021-05-26T06:08:48.000Z | data/clean_test.py | iotayo/aivivn-tone | 7f3d5ce41d5a0bd659f3aaeb7d351a7a046c3004 | [
"MIT"
] | 15 | 2019-07-31T17:57:53.000Z | 2021-05-27T10:43:46.000Z | from tqdm import tqdm
input_path = "./test_word_per_line.txt"
output_path = "./test_cleaned.txt"
curr_id = ""
curr_sent = []
with open(output_path, mode="wt", encoding="utf-8") as f:
lines = open(input_path).readlines()
for idx, line in tqdm(enumerate(lines)):
if idx == 0:
continue
line = line.strip()
line_... | 28.409091 | 59 | 0.6288 |
03f39d73c00f084610ed84399b397649419510bb | 229 | py | Python | cntr/utils.py | ethan-iai/tour-recmd | 321ee528b748900eff9d22b176cdcd339fb60681 | [
"MIT"
] | 2 | 2021-08-01T06:39:43.000Z | 2021-08-01T06:39:58.000Z | cntr/utils.py | ethan-iai/tour-recmd | 321ee528b748900eff9d22b176cdcd339fb60681 | [
"MIT"
] | 1 | 2021-06-08T11:24:30.000Z | 2021-06-09T07:47:26.000Z | cntr/utils.py | ethan-iai/tour-recmd | 321ee528b748900eff9d22b176cdcd339fb60681 | [
"MIT"
] | null | null | null | import os
import pathlib
if __name__ == '__main__':
print(get_data_path('data/name.txt')) | 22.9 | 54 | 0.720524 |
03f3ee5a1e2a0e3c2f5c128492384043eac78f5c | 1,583 | py | Python | translators/test.py | uiuc-arc/Storm | afa9cc5d4ef7e163a5255140c27aca4cf1b47036 | [
"MIT"
] | 2 | 2020-01-02T22:55:04.000Z | 2021-12-10T01:21:30.000Z | translators/test.py | uiuc-arc/Storm | afa9cc5d4ef7e163a5255140c27aca4cf1b47036 | [
"MIT"
] | null | null | null | translators/test.py | uiuc-arc/Storm | afa9cc5d4ef7e163a5255140c27aca4cf1b47036 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import argparse
import antlr4
from antlr4 import *
from language.antlr.Template2Lexer import Template2Lexer
from language.antlr.Template2Parser import Template2Parser
from language.antlr.Template2Listener import Template2Listener
from newbackends.pyrotranslator import PyroTranslator
from languag... | 27.293103 | 62 | 0.759949 |
03f524b31fd0d91cd3b0e302abe39bb4f73b97a6 | 6,355 | py | Python | pytc/experiments/base.py | jharman25/pytc | d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac | [
"Unlicense"
] | 20 | 2017-04-27T16:30:03.000Z | 2021-08-12T19:42:05.000Z | pytc/experiments/base.py | jharman25/pytc | d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac | [
"Unlicense"
] | 15 | 2016-12-12T20:40:44.000Z | 2022-02-20T12:05:37.000Z | pytc/experiments/base.py | jharman25/pytc | d9ccde3f04e35a3d821ff37a4ad42e62a048d4ac | [
"Unlicense"
] | 6 | 2016-06-23T00:54:21.000Z | 2020-05-19T05:24:20.000Z | __description__ = \
"""
experiments.py
Classes for loading experimental ITC data and associating those data with a
model.
Units:
Volumes are in microliters
Temperatures are in Kelvin
Concentrations are in molar
Energy is `units`, where `units` is specified when instantiating the
ITCExperiment cl... | 24.631783 | 83 | 0.557671 |
03f8ccce3ecf35b88bf241958bca977a39da0829 | 2,743 | py | Python | tests/_geom/test_path_bezier_3d_continual.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 16 | 2021-04-16T02:01:29.000Z | 2022-01-01T08:53:49.000Z | tests/_geom/test_path_bezier_3d_continual.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | 613 | 2021-03-24T03:37:38.000Z | 2022-03-26T10:58:37.000Z | tests/_geom/test_path_bezier_3d_continual.py | simon-ritchie/apyscript | c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279 | [
"MIT"
] | 2 | 2021-06-20T07:32:58.000Z | 2021-12-26T08:22:11.000Z | import re
from random import randint
from typing import Match
from typing import Optional
from retrying import retry
import apysc as ap
from apysc._expression import var_names
from tests.testing_helper import assert_attrs
| 38.633803 | 78 | 0.582574 |
03fa298b7ad91850feb3603a0d09e4d69c6f4462 | 2,108 | py | Python | cogs/owner.py | SuperYellowSystem/FactorioQuizzBot | 55dfea657c64dd9d92bfa9657de66159cc7e79e9 | [
"MIT"
] | 1 | 2018-04-08T16:47:02.000Z | 2018-04-08T16:47:02.000Z | cogs/owner.py | SuperYellowSystem/FactorioQuizBot | 55dfea657c64dd9d92bfa9657de66159cc7e79e9 | [
"MIT"
] | null | null | null | cogs/owner.py | SuperYellowSystem/FactorioQuizBot | 55dfea657c64dd9d92bfa9657de66159cc7e79e9 | [
"MIT"
] | null | null | null | # NB: Based on the work of Rapptz on RoboDanny
# src: https://github.com/Rapptz/RoboDanny/blob/rewrite/cogs/admin.py
# ======================================================================
# imports
# ======================================================================
from discord.ext import commands as cmds
import... | 33.460317 | 72 | 0.52277 |
03fac18b0bfdebf09b938bb372680e33554a0ff7 | 817 | py | Python | Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null | Problem Solving with Algorithms and Data Structures/Chapter 1/e14.py | ltdangkhoa/Computer-Science-Fundamental | b70ba714e1dd13fcb377125e047c5fc08d3a82b3 | [
"MIT"
] | null | null | null |
from e14_b import MyDeck, MyCard
# demo_a()
demo_b()
| 24.757576 | 63 | 0.662179 |
03fcad1d1936cee28640a02b1c3ebdfc5c4cd278 | 53 | py | Python | python_lessons/MtMk_Test_Files/numpy_test.py | 1986MMartin/coding-sections-markus | e13be32e5d83e69250ecfb3c76a04ee48a320607 | [
"Apache-2.0"
] | null | null | null | python_lessons/MtMk_Test_Files/numpy_test.py | 1986MMartin/coding-sections-markus | e13be32e5d83e69250ecfb3c76a04ee48a320607 | [
"Apache-2.0"
] | null | null | null | python_lessons/MtMk_Test_Files/numpy_test.py | 1986MMartin/coding-sections-markus | e13be32e5d83e69250ecfb3c76a04ee48a320607 | [
"Apache-2.0"
] | null | null | null | import numpy as np
arr = np.arange(0,11)
print(arr) | 17.666667 | 22 | 0.698113 |
03fcf010e806a2ca558ead9b4f75e81efede549f | 135 | py | Python | flask_simple/mocks.py | Forumouth/flask-simple | 0764559fbbc4348cc146aa4dddbc1f90d91bc840 | [
"MIT",
"Unlicense"
] | null | null | null | flask_simple/mocks.py | Forumouth/flask-simple | 0764559fbbc4348cc146aa4dddbc1f90d91bc840 | [
"MIT",
"Unlicense"
] | 5 | 2016-01-30T13:32:23.000Z | 2016-02-06T13:34:11.000Z | flask_simple/mocks.py | Forumouth/flask-simple | 0764559fbbc4348cc146aa4dddbc1f90d91bc840 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# coding=utf-8
from unittest.mock import MagicMock
render_template = MagicMock(return_value="this is a test")
| 16.875 | 58 | 0.762963 |
03ff93fc9d98330d3ad870c21f0120ad11f705f7 | 183 | py | Python | bot/reporting/admin.py | psemdel/py-trading-bot | 69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019 | [
"MIT"
] | null | null | null | bot/reporting/admin.py | psemdel/py-trading-bot | 69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019 | [
"MIT"
] | 1 | 2022-02-07T21:13:55.000Z | 2022-02-07T21:13:55.000Z | bot/reporting/admin.py | psemdel/py-trading-bot | 69da4164b3f6a3ed3e6dc81d5aefc0273b4cb019 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.apps import apps
from reporting.models import *
admin.site.register(Report)
admin.site.register(ActionReport)
admin.site.register(Alert)
| 22.875 | 33 | 0.825137 |
ff002fdb0500e9897354e32946b348260a72d40c | 976 | py | Python | lino/modlib/uploads/__init__.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | 1 | 2019-11-13T19:38:50.000Z | 2019-11-13T19:38:50.000Z | lino/modlib/uploads/__init__.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | null | null | null | lino/modlib/uploads/__init__.py | NewRGB/lino | 43799e42107169ff173d3b8bc0324d5773471499 | [
"BSD-2-Clause"
] | null | null | null | # Copyright 2010-2018 Rumma & Ko Ltd
# License: BSD (see file COPYING for details)
"""Adds functionality for uploading files to the server and managing them. See
:doc:`/specs/uploads`.
"""
from lino import ad, _
| 27.885714 | 79 | 0.659836 |
ff01277f87c5e7fac7a733b20837d1ed277d4304 | 2,097 | py | Python | cloudferrylib/os/actions/upload_file_to_image.py | toha10/CloudFerry | 5f844a480d3326d1fea74cca35b648c32d390fab | [
"Apache-2.0"
] | null | null | null | cloudferrylib/os/actions/upload_file_to_image.py | toha10/CloudFerry | 5f844a480d3326d1fea74cca35b648c32d390fab | [
"Apache-2.0"
] | null | null | null | cloudferrylib/os/actions/upload_file_to_image.py | toha10/CloudFerry | 5f844a480d3326d1fea74cca35b648c32d390fab | [
"Apache-2.0"
] | null | null | null |
from cloudferrylib.base.action import action
from fabric.api import run, settings
from cloudferrylib.utils import utils as utl
CLOUD = 'cloud'
BACKEND = 'backend'
CEPH = 'ceph'
ISCSI = 'iscsi'
COMPUTE = 'compute'
INSTANCES = 'instances'
INSTANCE_BODY = 'instance'
INSTANCE = 'instance'
DIFF = 'diff'
EPHEMERAL = 'ephem... | 34.95 | 106 | 0.560801 |
ff01ccc9f186d9a1a01af517bc0fcb70db7dd2eb | 1,672 | py | Python | application.py | roniemartinez/real-time-charts-with-fastapi | f5f30f8283acafb30a97a5060803fe9d1d872b69 | [
"MIT"
] | 28 | 2022-03-20T14:10:04.000Z | 2022-03-30T21:50:15.000Z | application.py | roniemartinez/real-time-charts-with-fastapi | f5f30f8283acafb30a97a5060803fe9d1d872b69 | [
"MIT"
] | null | null | null | application.py | roniemartinez/real-time-charts-with-fastapi | f5f30f8283acafb30a97a5060803fe9d1d872b69 | [
"MIT"
] | 1 | 2022-03-21T21:50:27.000Z | 2022-03-21T21:50:27.000Z | import json
import logging
import random
import sys
from datetime import datetime
from typing import Iterator
import asyncio
from fastapi import FastAPI
from fastapi.responses import HTMLResponse, StreamingResponse
from fastapi.requests import Request
from fastapi.templating import Jinja2Templates
logging.basicConfig... | 30.962963 | 106 | 0.711124 |
ff0349321664c71151b8b6a6936853d728c7a48f | 2,666 | py | Python | Source/GeniusLyricsGUI.py | Fingolfin7/Music-Metadata-and-Lyrics | 6b26c048b9a0905f0097d2bd212285296ab3ba54 | [
"MIT"
] | 4 | 2021-08-07T00:15:12.000Z | 2021-12-12T20:45:15.000Z | Source/GeniusLyricsGUI.py | Fingolfin7/Music-Metadata-and-Lyrics | 6b26c048b9a0905f0097d2bd212285296ab3ba54 | [
"MIT"
] | 1 | 2021-08-06T23:29:47.000Z | 2021-08-06T23:29:47.000Z | Source/GeniusLyricsGUI.py | Fingolfin7/Music-Metadata-and-Lyrics | 6b26c048b9a0905f0097d2bd212285296ab3ba54 | [
"MIT"
] | 3 | 2021-08-07T01:53:20.000Z | 2021-08-07T23:21:02.000Z | import os
import threading
from tkinter import *
from tkinter import messagebox
from GeniusLyrics import search_song_lyrics, song_dict
if __name__ == "__main__":
main()
| 33.325 | 113 | 0.609152 |
ff03a6d3f532ff9a0b7cb29e49f83b8383befaa7 | 6,300 | py | Python | src/vulkan/helpers/render_pass.py | gabdube/panic-panda | ecbda506eeafe3dbdf932cdb20b938646502f892 | [
"MIT"
] | 67 | 2019-01-06T13:01:46.000Z | 2022-01-04T17:50:58.000Z | src/vulkan/helpers/render_pass.py | gabdube/panic-panda | ecbda506eeafe3dbdf932cdb20b938646502f892 | [
"MIT"
] | 2 | 2019-01-07T18:25:00.000Z | 2021-05-10T09:32:17.000Z | src/vulkan/helpers/render_pass.py | gabdube/panic-panda | ecbda506eeafe3dbdf932cdb20b938646502f892 | [
"MIT"
] | 6 | 2019-07-31T08:16:26.000Z | 2020-12-26T04:34:52.000Z | from .. import vk
from .utils import check_ctypes_members, sequence_to_array, array, array_pointer
from ctypes import byref, c_uint32, c_float
| 40.645161 | 124 | 0.71873 |
ff03dab57925319f515c5c11149dcf10058593ae | 1,124 | py | Python | raspy/components/motors/motor_state_change_event.py | cyrusbuilt/RasPy | 1e34840cc90ea7f19317e881162209d3d819eb09 | [
"MIT"
] | null | null | null | raspy/components/motors/motor_state_change_event.py | cyrusbuilt/RasPy | 1e34840cc90ea7f19317e881162209d3d819eb09 | [
"MIT"
] | null | null | null | raspy/components/motors/motor_state_change_event.py | cyrusbuilt/RasPy | 1e34840cc90ea7f19317e881162209d3d819eb09 | [
"MIT"
] | null | null | null | """This module contains the MotorStateChangeEvent type."""
from raspy.components.motors import motor_state
| 27.414634 | 78 | 0.634342 |
ff04665b138db9fa8f8563e4a316caa05474ffd6 | 2,537 | py | Python | contrib/PyTorch/Official/cv/image_object_detection/RetinaNet/tests/test_model_analysis.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 12 | 2020-12-13T08:34:24.000Z | 2022-03-20T15:17:17.000Z | built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/tests/test_model_analysis.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 1 | 2022-01-20T03:11:05.000Z | 2022-01-20T06:53:39.000Z | built-in/PyTorch/Official/cv/image_object_detection/Faster_Mask_RCNN_for_PyTorch_Dynamic_Shape/tests/test_model_analysis.py | Ascend/modelzoo | f018cfed33dbb1cc2110b9ea2e233333f71cc509 | [
"Apache-2.0"
] | 2 | 2021-07-10T12:40:46.000Z | 2021-12-17T07:55:15.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.... | 35.236111 | 81 | 0.707923 |
ff05c27eae2a6e4a7afcb14ff90aef2245e06be5 | 302 | py | Python | mli/utility.py | karu-bee/ml_interpret_book | c398023dff175118c98e9f6dd3785d6b317b359e | [
"BSD-3-Clause"
] | 18 | 2021-08-11T02:04:53.000Z | 2022-03-26T03:23:47.000Z | mli/utility.py | karu-bee/ml_interpret_book | c398023dff175118c98e9f6dd3785d6b317b359e | [
"BSD-3-Clause"
] | null | null | null | mli/utility.py | karu-bee/ml_interpret_book | c398023dff175118c98e9f6dd3785d6b317b359e | [
"BSD-3-Clause"
] | 11 | 2021-09-19T08:39:01.000Z | 2022-03-28T08:58:45.000Z | import pandas as pd
def get_coef(estimator, var_names):
""""""
#
df = pd.DataFrame(
data={"coef": [estimator.intercept_] + estimator.coef_.tolist()},
index=["intercept"] + var_names
)
return df | 23.230769 | 74 | 0.645695 |
ff07394e395b62d46e9233ac28ffd68f59cd8a96 | 649 | py | Python | app.py | tommorris/ftfyweb | c9bb5b2381b8dc4d831ac7113041988b9e1d2629 | [
"MIT"
] | null | null | null | app.py | tommorris/ftfyweb | c9bb5b2381b8dc4d831ac7113041988b9e1d2629 | [
"MIT"
] | null | null | null | app.py | tommorris/ftfyweb | c9bb5b2381b8dc4d831ac7113041988b9e1d2629 | [
"MIT"
] | null | null | null | import ftfy
from flask import Flask, request, Response
import os
app = Flask(__name__)
if __name__ == "__main__":
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
| 32.45 | 185 | 0.654854 |
ff0849124ea93b7bec63c0f48293d31e29b5e59a | 442 | py | Python | tryouts/withBlessings.py | programmingLego/legoBTLE4PI | d4641eb3e5451f8f64a4ac038ebadb8c3b452ec0 | [
"MIT"
] | 2 | 2021-06-05T18:06:43.000Z | 2021-08-13T12:16:48.000Z | tryouts/withBlessings.py | programmingLego/legoBTLE4PI | d4641eb3e5451f8f64a4ac038ebadb8c3b452ec0 | [
"MIT"
] | 4 | 2021-06-05T18:55:26.000Z | 2021-06-23T19:40:53.000Z | tryouts/withBlessings.py | DietrichChristopeit/project-cimino | 62eaf5e2661200094742c1ab65524128488d84bf | [
"MIT"
] | null | null | null | import time
from blessings import Terminal
term = Terminal()
with term.location():
for i in range(10):
t = i
l = len(str(t))
print(term.move(10, term.height-1) + 'This is', term.underline(str(t)))
time.sleep(1)
print(term.move(10, term.height - 1) + 'This is', l*' ')
... | 31.571429 | 127 | 0.597285 |
ff08e3833e5406d35fb9da8d119e002439370636 | 1,399 | py | Python | python/test.py | yushulx/myget-barcode-sample | f47d79794f439cae4baf33e6299802dd35587da7 | [
"CNRI-Python"
] | null | null | null | python/test.py | yushulx/myget-barcode-sample | f47d79794f439cae4baf33e6299802dd35587da7 | [
"CNRI-Python"
] | null | null | null | python/test.py | yushulx/myget-barcode-sample | f47d79794f439cae4baf33e6299802dd35587da7 | [
"CNRI-Python"
] | null | null | null |
from dbr import DynamsoftBarcodeReader
dbr = DynamsoftBarcodeReader()
if __name__ == "__main__":
#you can change the following three variables' value to your own value.
licenseKey = "Input your own license"
fileName = r"../test.jpg"
InitLicense(licenseKey)
DecodeFile(fileName) | 34.121951 | 71 | 0.593281 |
ff094fcc3bfffb49faac08b0936857ef5e95c080 | 3,963 | py | Python | examples/plotting/AdaptiveW_process_SA.py | JiazhengChai/synergy_DRL | c08e78e5fe39d9d46213e1bf07b8dafc2195b05a | [
"MIT"
] | 2 | 2020-01-07T04:12:42.000Z | 2021-12-21T22:25:31.000Z | examples/plotting/AdaptiveW_process_SA.py | JiazhengChai/synergy_DRL | c08e78e5fe39d9d46213e1bf07b8dafc2195b05a | [
"MIT"
] | 11 | 2019-11-29T02:59:34.000Z | 2022-03-12T00:07:28.000Z | examples/plotting/AdaptiveW_process_SA.py | JiazhengChai/synergy_DRL | c08e78e5fe39d9d46213e1bf07b8dafc2195b05a | [
"MIT"
] | 1 | 2020-04-28T12:06:40.000Z | 2020-04-28T12:06:40.000Z | from sklearn.preprocessing import StandardScaler
import numpy as np
from sklearn.metrics import r2_score
from matplotlib import pyplot as plt
import os
from matplotlib.lines import Line2D
from exp_variant_class import exp_variant#,PCA
from sklearn.decomposition import PCA
import argparse
from scipy import integrate
imp... | 23.873494 | 127 | 0.661368 |
ff098e38a6ea9af6ee303beb724496a6885a6fff | 1,100 | py | Python | p886m/possible_bipartition.py | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | 1 | 2020-02-20T12:04:46.000Z | 2020-02-20T12:04:46.000Z | p886m/possible_bipartition.py | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | p886m/possible_bipartition.py | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | from typing import List
from collections import defaultdict
# TESTS
tests = [
{"N": 4, "dislikes": [[1, 2], [1, 3], [2, 4]], "expected": True},
{"N": 3, "dislikes": [[1, 2], [1, 3], [2, 3]], "expected": False},
{
"N": 5,
"dislikes": [[1, 2], [2, 3], [3, 4], [4, 5], [1, 5]],
"expec... | 28.205128 | 77 | 0.513636 |
ff0ad96003ab263c05c0ef76f377fb269621afc1 | 1,315 | py | Python | misc/wysalem.py | wy2136/wython | 0eaa9db335d57052806ae956afe6a34705407628 | [
"MIT"
] | 1 | 2022-03-21T21:24:40.000Z | 2022-03-21T21:24:40.000Z | misc/wysalem.py | wy2136/wython | 0eaa9db335d57052806ae956afe6a34705407628 | [
"MIT"
] | null | null | null | misc/wysalem.py | wy2136/wython | 0eaa9db335d57052806ae956afe6a34705407628 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Wenchang Yang (wenchang@princeton.edu)
# Fri May 15 13:45:34 EDT 2020
if __name__ == '__main__':
from misc.timer import Timer
tt = Timer(f'start {__file__}')
import sys, os.path, os, glob
import xarray as xr, numpy as np, pandas as pd
#import matplotlib.pyplot as plt
#more imports
import... | 24.811321 | 74 | 0.642586 |
ff0b2afd610385ef75e98eb2924a9e2596709742 | 4,120 | py | Python | ops/update_version.py | DropD/sparkplug | be817103ef32cbc908de004659b538993d14eeb4 | [
"MIT"
] | 5 | 2017-11-28T14:57:53.000Z | 2019-01-16T08:48:10.000Z | ops/update_version.py | DropD/sparkplug | be817103ef32cbc908de004659b538993d14eeb4 | [
"MIT"
] | 49 | 2017-04-11T11:18:58.000Z | 2021-02-10T23:06:20.000Z | ops/update_version.py | DropD/sparkplug | be817103ef32cbc908de004659b538993d14eeb4 | [
"MIT"
] | 8 | 2017-06-16T17:01:33.000Z | 2021-02-09T10:28:03.000Z | """Update version numbers everywhere based on git tags."""
from __future__ import print_function
import os
import re
import json
import fileinput
import contextlib
import subprocess
try:
# prefer the backport for Python <3.5
from pathlib2 import Path
except ImportError:
from pathlib import Path
import colle... | 34.049587 | 134 | 0.65801 |
ff0b92cac5191bfb5cafcf2ad2b6f9c3f1b55cd2 | 1,516 | py | Python | my_twitter_bot.py | Tomonori-Yoshino/Automating_tweets | 117b09973f22a2438335facfdb427dbb2e23d005 | [
"MIT"
] | null | null | null | my_twitter_bot.py | Tomonori-Yoshino/Automating_tweets | 117b09973f22a2438335facfdb427dbb2e23d005 | [
"MIT"
] | null | null | null | my_twitter_bot.py | Tomonori-Yoshino/Automating_tweets | 117b09973f22a2438335facfdb427dbb2e23d005 | [
"MIT"
] | null | null | null | import tweepy
import time
print("this is my twitter bot")
CONSUMER_KEY = 'Xqpf3M4z5poRH6yp17lGXgUSU'
CONSUMER_SECRET = '2RVEN70Ti4QCl0kDMptrY4AnJF6kqEOBFdSEV1aZf3rBEN8AeL'
ACCESS_KEY = '732483098336595968-hH2jZVrpjKy0WxkM6dHzyZJ5kGgCrE9'
ACCESS_SECRET = '98B9BTk2toO3qLIppsMcsPThgOSoOf9GiGZ55OGFIypYE'
auth = tweepy.O... | 28.074074 | 103 | 0.718338 |
ff0d6655608abd51b92ee26a4cf60baaeb0ced3d | 4,038 | py | Python | booktime/settings.py | adityatelange/django-ebook-audiobook-website | c07647df78b1807d585b3f14678e7726ba89f5c7 | [
"MIT"
] | 2 | 2019-09-10T09:42:23.000Z | 2019-11-28T08:56:09.000Z | booktime/settings.py | adityatelange/django-ebook-audiobook-website | c07647df78b1807d585b3f14678e7726ba89f5c7 | [
"MIT"
] | null | null | null | booktime/settings.py | adityatelange/django-ebook-audiobook-website | c07647df78b1807d585b3f14678e7726ba89f5c7 | [
"MIT"
] | null | null | null | """
Django settings for booktime project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | 26.92 | 91 | 0.687717 |
ff0db082700495307506b5163be178a41cbf3825 | 83 | py | Python | paintbot/__init__.py | MimirHQ/paintbot | 486e6a6cf8013adf613f66905f5ed682c05087f9 | [
"MIT"
] | 1 | 2018-06-13T18:03:12.000Z | 2018-06-13T18:03:12.000Z | paintbot/__init__.py | MimirHQ/paintbot | 486e6a6cf8013adf613f66905f5ed682c05087f9 | [
"MIT"
] | null | null | null | paintbot/__init__.py | MimirHQ/paintbot | 486e6a6cf8013adf613f66905f5ed682c05087f9 | [
"MIT"
] | null | null | null | """
paintbot main module
"""
from paintbot.game import ( # noqa
PaintGame
)
| 9.222222 | 35 | 0.638554 |
ff0f2f83aeb478e57ecba0e353fdfa1c90342077 | 73 | py | Python | sonos_pi3_controller/bt_pair_controller/__init__.py | kirkden/sonos_pi3_refresh | cfa997f3a26bd7738eef7b685a9c1e037c53ed7e | [
"MIT"
] | 1 | 2021-03-24T15:14:50.000Z | 2021-03-24T15:14:50.000Z | sonos_pi3_controller/bt_pair_controller/__init__.py | kirkden/sonos_pi3_refresh | cfa997f3a26bd7738eef7b685a9c1e037c53ed7e | [
"MIT"
] | null | null | null | sonos_pi3_controller/bt_pair_controller/__init__.py | kirkden/sonos_pi3_refresh | cfa997f3a26bd7738eef7b685a9c1e037c53ed7e | [
"MIT"
] | null | null | null |
from .bt_pair_controller import set_bt_pairing, update_bt_device_config
| 24.333333 | 71 | 0.890411 |
ff0ff3bb7018607eef270c5c0dfe4b9eddf207b1 | 6,850 | py | Python | crypto.py | souravdas142/LiveChain | f590060e8d77f29694e746459c4e4f780c37295c | [
"MIT"
] | 1 | 2021-05-08T08:12:34.000Z | 2021-05-08T08:12:34.000Z | crypto.py | souravdas142/LiveChain | f590060e8d77f29694e746459c4e4f780c37295c | [
"MIT"
] | null | null | null | crypto.py | souravdas142/LiveChain | f590060e8d77f29694e746459c4e4f780c37295c | [
"MIT"
] | 1 | 2021-05-08T08:13:18.000Z | 2021-05-08T08:13:18.000Z | import random
| 32.464455 | 164 | 0.500292 |
ff1042f2a23ccb08afabbfa3dbb2d4b96cc2e564 | 2,062 | py | Python | fio.py | fabrickit-fablib/benchmark | 48670230ab67192074047dbbc397c2b5e13edcdf | [
"MIT"
] | null | null | null | fio.py | fabrickit-fablib/benchmark | 48670230ab67192074047dbbc397c2b5e13edcdf | [
"MIT"
] | null | null | null | fio.py | fabrickit-fablib/benchmark | 48670230ab67192074047dbbc397c2b5e13edcdf | [
"MIT"
] | null | null | null | # coding: utf-8
import copy
import json
from fabkit import * # noqa
from fablib.base import SimpleBase
| 28.246575 | 84 | 0.461203 |
ff11450e5548a704cb271296b84792ba3051678a | 5,433 | py | Python | knowledgebase/db/mongo.py | linkdd/knowledgebase | 89cd5a6802efd1359863f91b742a43684354b8b2 | [
"MIT"
] | 1 | 2017-03-20T08:48:33.000Z | 2017-03-20T08:48:33.000Z | knowledgebase/db/mongo.py | linkdd/knowledgebase | 89cd5a6802efd1359863f91b742a43684354b8b2 | [
"MIT"
] | null | null | null | knowledgebase/db/mongo.py | linkdd/knowledgebase | 89cd5a6802efd1359863f91b742a43684354b8b2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from knowledgebase.db.base import Vertex as BaseVertex
from knowledgebase.db.base import Edge as BaseEdge
from knowledgebase.db.base import ElementView as BaseElementView
from knowledgebase.db.base import Graph as BaseGraph
from bson.objectid import ObjectId
from pymongo import MongoClient
fro... | 27.029851 | 74 | 0.561936 |
ff11ad37041d3b4e8d72e395cee185f651939aa0 | 85 | py | Python | setup.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | setup.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | setup.py | MrRubyRed/MBRL | fa8e357325611fd8431ce3be5e97592011f010c6 | [
"BSD-3-Clause"
] | null | null | null | from setuptools import setup
setup(name='mbrl', version='0.1.0', packages=['mbrl'])
| 21.25 | 54 | 0.705882 |
ff13684383add06888abbfe0e42239e9acfeb522 | 1,591 | py | Python | visualization/example_and_references/plot_vector_field.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | 1 | 2020-10-23T14:40:09.000Z | 2020-10-23T14:40:09.000Z | visualization/example_and_references/plot_vector_field.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | null | null | null | visualization/example_and_references/plot_vector_field.py | Asap7772/railrl_evalsawyer | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | [
"MIT"
] | 1 | 2021-05-27T20:38:45.000Z | 2021-05-27T20:38:45.000Z | """
Drawing Vector Fields
https://stackoverflow.com/questions/25342072/computing-and-drawing-vector-fields
Adding colorbar to existing axis
https://stackoverflow.com/questions/32462881/add-colorbar-to-existing-axis
"""
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_loc... | 25.66129 | 80 | 0.670647 |
ff166319d7571cbeff470120486344f6e07be45c | 2,809 | py | Python | database/user.py | As-12/Fit-App-backend- | d95b07fdb1aed882d01d3a70b4b0f308374bf304 | [
"MIT"
] | null | null | null | database/user.py | As-12/Fit-App-backend- | d95b07fdb1aed882d01d3a70b4b0f308374bf304 | [
"MIT"
] | null | null | null | database/user.py | As-12/Fit-App-backend- | d95b07fdb1aed882d01d3a70b4b0f308374bf304 | [
"MIT"
] | null | null | null | from main import db
from dataclasses import dataclass
import database
| 29.260417 | 72 | 0.503382 |
ff179049d6a93f539ffdb9a3e5f19fac5a840892 | 2,755 | py | Python | AutoFormer/model/module/Linear_super.py | Inch-Z/Cream | 5adb978db133842dd44f54614a9303dc5d11aa7d | [
"MIT"
] | 307 | 2020-10-29T13:17:02.000Z | 2022-03-30T09:55:49.000Z | AutoFormer/model/module/Linear_super.py | Inch-Z/Cream | 5adb978db133842dd44f54614a9303dc5d11aa7d | [
"MIT"
] | 42 | 2020-10-30T07:09:48.000Z | 2022-03-29T13:54:56.000Z | AutoFormer/model/module/Linear_super.py | Inch-Z/Cream | 5adb978db133842dd44f54614a9303dc5d11aa7d | [
"MIT"
] | 64 | 2020-10-30T10:08:48.000Z | 2022-03-30T06:51:01.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
| 33.597561 | 115 | 0.676951 |
ff17afb225298a2ce7876034f454a6c0c4d8cebd | 1,251 | py | Python | aquascope/util/config.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | null | null | null | aquascope/util/config.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 3 | 2019-04-03T13:22:47.000Z | 2019-12-02T15:49:31.000Z | aquascope/util/config.py | MicroscopeIT/aquascope_backend | 6b8c13ca3d6bd0a96f750fae809b6cf5a0062f24 | [
"MIT"
] | 2 | 2019-05-15T13:30:42.000Z | 2020-06-12T02:42:49.000Z | from collections import abc
import copy
import yaml
| 20.508197 | 74 | 0.544365 |
ff18f8d189b281647e54313083f71e52b26e849f | 5,532 | py | Python | oxasl/gui/calib_tab.py | physimals/oxasl | e583103f3313aed2890b60190b6ca7b265a46e3c | [
"Apache-2.0"
] | 1 | 2021-01-27T05:48:20.000Z | 2021-01-27T05:48:20.000Z | oxasl/gui/calib_tab.py | ibme-qubic/oxasl | 8a0c055752d6e10cd932336ae6916f0c4fc0a2e9 | [
"Apache-2.0"
] | 13 | 2019-01-14T13:22:00.000Z | 2020-09-12T20:34:20.000Z | oxasl/gui/calib_tab.py | physimals/oxasl | e583103f3313aed2890b60190b6ca7b265a46e3c | [
"Apache-2.0"
] | 3 | 2019-03-19T15:46:48.000Z | 2020-03-13T16:55:48.000Z | """
oxasl.gui.calibration_tab.py
Copyright (c) 2019 University of Oxford
"""
from oxasl.gui.widgets import TabPage
| 41.283582 | 124 | 0.625271 |
ff1965ee1d197cb5fef833ce6f16c3119dfdad66 | 295 | py | Python | annodomini/__init__.py | TheDubliner/RedArmy-Cogs | f0ae7ab554e176254a91e322e0cf349b69971e98 | [
"MIT"
] | null | null | null | annodomini/__init__.py | TheDubliner/RedArmy-Cogs | f0ae7ab554e176254a91e322e0cf349b69971e98 | [
"MIT"
] | 5 | 2020-05-16T12:21:26.000Z | 2020-06-01T11:26:50.000Z | annodomini/__init__.py | TheDubliner/RedArmy-Cogs | f0ae7ab554e176254a91e322e0cf349b69971e98 | [
"MIT"
] | null | null | null | from .annodomini import AnnoDomini
__red_end_user_data_statement__ = (
"This cog stores data attached to a user ID for the purpose of running "
" the game and saving statistics.\n"
"This cog supports data removal requests."
)
| 22.692308 | 76 | 0.718644 |
ff19d763570001bb5b3069ee03ffa76d0400a9d7 | 1,303 | py | Python | 3. Linear Regresion/3-6)Mini Batch and Data Load.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 3. Linear Regresion/3-6)Mini Batch and Data Load.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | 3. Linear Regresion/3-6)Mini Batch and Data Load.py | choijiwoong/-ROKA-torch-tutorial-files | c298fdf911cd64757895c3ab9f71ae7c3467c545 | [
"Unlicense"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import TensorDataset
from torch.utils.data import DataLoader
x_train=torch.FloatTensor([[73,80,75],
[93,88,93],
[89,91,90],
[96,98,100],
... | 30.302326 | 89 | 0.623945 |
ff1ad4b17580fbaf7e85b4376dc04a3da6a40153 | 42 | py | Python | src/dcos_e2e_cli/dcos_docker/commands/__init__.py | jongiddy/dcos-e2e | b52ef9a1097a8fb328902064345cc6c8b0bf5779 | [
"Apache-2.0"
] | 63 | 2018-05-17T21:02:14.000Z | 2021-11-15T19:18:03.000Z | src/dcos_e2e_cli/dcos_docker/commands/__init__.py | jongiddy/dcos-e2e | b52ef9a1097a8fb328902064345cc6c8b0bf5779 | [
"Apache-2.0"
] | 225 | 2017-09-08T02:24:58.000Z | 2018-05-16T12:18:58.000Z | src/dcos_e2e_cli/dcos_docker/commands/__init__.py | jongiddy/dcos-e2e | b52ef9a1097a8fb328902064345cc6c8b0bf5779 | [
"Apache-2.0"
] | 21 | 2018-06-14T21:58:24.000Z | 2021-11-15T19:18:06.000Z | """
Commands for ``minidcos docker``.
"""
| 10.5 | 33 | 0.595238 |
205bed737ae851cb6d34930622f0a31f72e6dab8 | 6,792 | py | Python | s3scan.py | abhn/Public-AWS-S3-Finder | 8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d | [
"MIT"
] | 21 | 2017-05-27T07:44:45.000Z | 2022-02-16T14:11:46.000Z | s3scan.py | abhn/Public-AWS-S3-Finder | 8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d | [
"MIT"
] | null | null | null | s3scan.py | abhn/Public-AWS-S3-Finder | 8a1d2d0c2d78fa1a2ca0ae47c0fcf25a640cd28d | [
"MIT"
] | 13 | 2017-06-17T05:22:26.000Z | 2020-10-18T09:36:00.000Z | import re
import sys, os
import httplib2
import boto3, botocore
from BeautifulSoup import BeautifulSoup, SoupStrainer
from optparse import OptionParser
from botocore.client import Config
# Saving myself from passing around these variables
# Sorry!
globalBaseUrl = ""
globalLinkList = []
s3 = None
# https://stackover... | 26.740157 | 102 | 0.665342 |
205d500564f612d825bf5416f85d96a0ea9a3138 | 441 | py | Python | plants/migrations/0013_plant_access_type.py | spalk/Plant-Passport-gitpod | 7b80d84a3c01b08cc1f8cace7cd9fb377605eec8 | [
"MIT"
] | null | null | null | plants/migrations/0013_plant_access_type.py | spalk/Plant-Passport-gitpod | 7b80d84a3c01b08cc1f8cace7cd9fb377605eec8 | [
"MIT"
] | 21 | 2021-08-30T14:52:33.000Z | 2022-02-08T14:24:21.000Z | plants/migrations/0013_plant_access_type.py | spalk/Plant-Passport-gitpod | 7b80d84a3c01b08cc1f8cace7cd9fb377605eec8 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-17 14:38
from django.db import migrations, models
| 23.210526 | 106 | 0.587302 |
205f2e686753d8740c59888037ef43abf26bbe29 | 16,346 | py | Python | src/services/pokemonirc/game_output.py | Telsanyr/Johnny_VI | db9f54457c33b1f70616671611e6bc4fc4c44d1b | [
"WTFPL"
] | 6 | 2018-08-07T14:57:58.000Z | 2020-02-13T18:43:49.000Z | src/services/pokemonirc/game_output.py | Telsanyr/Johnny_VI | db9f54457c33b1f70616671611e6bc4fc4c44d1b | [
"WTFPL"
] | 2 | 2018-08-08T12:12:28.000Z | 2018-08-23T12:46:25.000Z | src/services/pokemonirc/game_output.py | Telsanyr/Johnny_VI | db9f54457c33b1f70616671611e6bc4fc4c44d1b | [
"WTFPL"
] | 1 | 2018-08-07T14:51:15.000Z | 2018-08-07T14:51:15.000Z | #!/usr/bin/env python
# -*- coding: utf8 -*-
# coding: utf8
# Libs imports
import os
import json
import time
from datetime import datetime
# Rule #1: Always print arguments with str() function
# Rule #2: In order to avoid useless ping, add '_' before any player username if the command can be triggered by someone else... | 58.378571 | 229 | 0.587789 |
205f3f36d35279bed8e26e086ddaae4845a10bf2 | 4,211 | py | Python | docs/examples/04/do_mcmc.py | ast0815/likelihood-machine | 4b0ebd193253775c31539c4a0046b79cbec8fa2b | [
"MIT"
] | null | null | null | docs/examples/04/do_mcmc.py | ast0815/likelihood-machine | 4b0ebd193253775c31539c4a0046b79cbec8fa2b | [
"MIT"
] | 1 | 2017-03-15T15:36:48.000Z | 2017-03-15T15:36:48.000Z | docs/examples/04/do_mcmc.py | ast0815/likelihood-machine | 4b0ebd193253775c31539c4a0046b79cbec8fa2b | [
"MIT"
] | null | null | null | import emcee
import numpy as np
from matplotlib import pyplot as plt
from remu import binning, likelihood, likelihood_utils, plotting
with open("../01/reco-binning.yml") as f:
reco_binning = binning.yaml.full_load(f)
with open("../01/optimised-truth-binning.yml") as f:
truth_binning = binning.yaml.full_load(f... | 30.294964 | 82 | 0.722156 |
20628f6d5bc6347f947ff9c3729ba2edb1f796e2 | 4,464 | py | Python | data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 143 | 2021-12-03T02:33:36.000Z | 2022-03-29T00:01:48.000Z | data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 33 | 2021-12-03T10:32:05.000Z | 2022-03-31T02:13:55.000Z | data/tracking/sampler/_sampling_algos/sequence_sampling/triplet/_algo.py | zhangzhengde0225/SwinTrack | 526be17f8ef266cb924c6939bd8dda23e9b73249 | [
"MIT"
] | 24 | 2021-12-04T06:46:42.000Z | 2022-03-30T07:57:47.000Z | import numpy as np
from data.tracking.sampler.SiamFC.type import SiamesePairSamplingMethod
from data.tracking.sampler._sampling_algos.stateless.random import sampling_multiple_indices_with_range_and_mask
from data.tracking.sampler._sampling_algos.sequence_sampling.common._algo import sample_one_positive
from ..SiamF... | 44.19802 | 174 | 0.670475 |
206298366159a32b63385b54342b7c1ecae4f4f8 | 6,887 | py | Python | check.py | imayank/project4 | 3ccab23560dec09180199726fbf252ac934b7bc2 | [
"MIT"
] | null | null | null | check.py | imayank/project4 | 3ccab23560dec09180199726fbf252ac934b7bc2 | [
"MIT"
] | null | null | null | check.py | imayank/project4 | 3ccab23560dec09180199726fbf252ac934b7bc2 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import csv
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from sklearn.model_selection import train_test_split
from keras import regularizers
from keras.models import Sequential
from keras.layers import Dense, Flatten, Lambda, Cropping2D, Conv2D, MaxPooling2D, Ac... | 36.057592 | 121 | 0.684333 |
20643ff79358dd0c7cd7ca78a7b0ae595e1e3aee | 1,183 | py | Python | TalentHunter/accounts/models.py | Hnachik/JobMatchingPfeProjectBack | fdf6e54c51a435681d34e750ee3c53024f76a3ec | [
"bzip2-1.0.6"
] | null | null | null | TalentHunter/accounts/models.py | Hnachik/JobMatchingPfeProjectBack | fdf6e54c51a435681d34e750ee3c53024f76a3ec | [
"bzip2-1.0.6"
] | null | null | null | TalentHunter/accounts/models.py | Hnachik/JobMatchingPfeProjectBack | fdf6e54c51a435681d34e750ee3c53024f76a3ec | [
"bzip2-1.0.6"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
| 35.848485 | 89 | 0.746407 |
20646ade19d84e61c29fbfddf68aea6634664078 | 4,069 | py | Python | editor/translate_new.py | NTUEELightDance/2019-LightDance | 2e2689f868364e16972465abc22801aaeaf3d8ba | [
"MIT"
] | 2 | 2019-07-16T10:40:52.000Z | 2022-03-14T00:26:42.000Z | editor/translate_new.py | NTUEELightDance/2019-LightDance | 2e2689f868364e16972465abc22801aaeaf3d8ba | [
"MIT"
] | null | null | null | editor/translate_new.py | NTUEELightDance/2019-LightDance | 2e2689f868364e16972465abc22801aaeaf3d8ba | [
"MIT"
] | 2 | 2019-12-01T07:40:04.000Z | 2020-02-15T09:58:50.000Z | BPM_1 = 120.000
BPM_2 = 150.000
BPM_3 = 128.000
BPM_4 = 180.000
SEC_BEAT_1 = 60. / BPM_1
SEC_BEAT_2 = 60. / BPM_2
SEC_BEAT_3 = 60. / BPM_3
SEC_BEAT_4 = 60. / BPM_4
N_DANCER = 8
N_PART = 16
'''
2019_eenight_bpm (v9)
00:00.00 - 01:22.00 BPM = 120 (41*4)
01:22.00 - 01:58.80 BPM = 150 (23*4)
01:58.80 - 02:40.05 BPM = 128... | 20.974227 | 71 | 0.482182 |
206543d34f0f4d7d479c2636f88d0e4e3752b2f7 | 90 | py | Python | enthought/envisage/plugin_event.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/envisage/plugin_event.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/envisage/plugin_event.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from envisage.plugin_event import *
| 22.5 | 38 | 0.844444 |
2066d9d51ccdadc9c2fac356ffcd5ca1583c63bd | 5,538 | py | Python | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py | viewdy/phantomjs | eddb0db1d253fd0c546060a4555554c8ee08c13c | [
"BSD-3-Clause"
] | 1 | 2015-05-27T13:52:20.000Z | 2015-05-27T13:52:20.000Z | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtwebkit/Tools/Scripts/webkitpy/style/checkers/python.py | mrampersad/phantomjs | dca6f77a36699eb4e1c46f7600cca618f01b0ac3 | [
"BSD-3-Clause"
] | 1 | 2022-02-18T10:41:38.000Z | 2022-02-18T10:41:38.000Z | # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and... | 42.6 | 117 | 0.68039 |
20672c1e3cc7378701a319c6aa66a5c9cd3fe2a4 | 581 | py | Python | avgamah/modules/NSFW/pussy.py | thenishantsapkota/Avgamah | c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c | [
"MIT"
] | 6 | 2021-11-03T06:37:33.000Z | 2022-01-26T15:09:37.000Z | avgamah/modules/NSFW/pussy.py | thenishantsapkota/Avgamah | c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c | [
"MIT"
] | 7 | 2021-11-03T14:58:38.000Z | 2022-03-29T23:16:21.000Z | avgamah/modules/NSFW/pussy.py | thenishantsapkota/Avgamah | c7f1f9a69f8a3f4c4ea53b25dbf62e272750f76c | [
"MIT"
] | 1 | 2021-08-31T08:04:51.000Z | 2021-08-31T08:04:51.000Z | import hikari
import tanjun
from avgamah.core.client import Client
pussy_component = tanjun.Component()
| 24.208333 | 61 | 0.79346 |
20685d91ffa78a319f6c16393a78a8570e8e34ff | 564 | py | Python | test.py | DougDimmadome7/Virtual-Jenga | 0344b21126b680826ffd13c10e328e04db9b7ade | [
"MIT"
] | null | null | null | test.py | DougDimmadome7/Virtual-Jenga | 0344b21126b680826ffd13c10e328e04db9b7ade | [
"MIT"
] | null | null | null | test.py | DougDimmadome7/Virtual-Jenga | 0344b21126b680826ffd13c10e328e04db9b7ade | [
"MIT"
] | null | null | null | from jenga import Tower, Layer
from bots import StatBot
t1 = Tower(15)
stats = StatBot()
t1.move_piece(4,1)
t1.display()
print(stats.all_valid(t1))
| 25.636364 | 70 | 0.58156 |
2068c0e986090c60cdb370c89725baad0a37fb2d | 83 | py | Python | python/tests/transducer_test.py | DevL/trancedeuce | a1daea44fd8b30f6392dc8ef0724432bef2a99a9 | [
"MIT"
] | null | null | null | python/tests/transducer_test.py | DevL/trancedeuce | a1daea44fd8b30f6392dc8ef0724432bef2a99a9 | [
"MIT"
] | null | null | null | python/tests/transducer_test.py | DevL/trancedeuce | a1daea44fd8b30f6392dc8ef0724432bef2a99a9 | [
"MIT"
] | null | null | null | from transducer import Transducer
| 11.857143 | 33 | 0.746988 |
20692b1ffec59a043c4925ca299dd808accf86ea | 179 | py | Python | Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Polysum.py | Dittz/Learning_Python | 4c0c97075ef5e1717f82e2cf24b0587f0c8504f5 | [
"MIT"
] | null | null | null | Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Polysum.py | Dittz/Learning_Python | 4c0c97075ef5e1717f82e2cf24b0587f0c8504f5 | [
"MIT"
] | null | null | null | Introduction to Computer Science and Programing Using Python/Exercises/Week 2 - Function, Strings and Alogorithms/Polysum.py | Dittz/Learning_Python | 4c0c97075ef5e1717f82e2cf24b0587f0c8504f5 | [
"MIT"
] | null | null | null | from math import pi
from math import tan
| 19.888889 | 44 | 0.581006 |
206a29865133fb8ad4a844440e59032795701c2f | 20,863 | py | Python | test/socializer_test.py | aquanauts/tellus | d1185357b8a2f1106bbd951558dc040c709ff826 | [
"MIT"
] | null | null | null | test/socializer_test.py | aquanauts/tellus | d1185357b8a2f1106bbd951558dc040c709ff826 | [
"MIT"
] | null | null | null | test/socializer_test.py | aquanauts/tellus | d1185357b8a2f1106bbd951558dc040c709ff826 | [
"MIT"
] | null | null | null | # pylint: skip-file
import copy
import random
from tellus.configuration import TELLUS_INTERNAL
from tellus.tell import Tell, SRC_TELLUS_USER
from tellus.tellus_sources.socializer import Socializer, CoffeeBot
from tellus.tellus_utils import datetime_from_string
from tellus.users import UserManager
from test.tells_test ... | 36.991135 | 118 | 0.658247 |
206fa5a515032d90fcee492996c5a515f42a29c6 | 56 | py | Python | enthought/pyface/ui/qt4/python_shell.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/ui/qt4/python_shell.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/ui/qt4/python_shell.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.ui.qt4.python_shell import *
| 18.666667 | 40 | 0.785714 |
20708794a4f17c85e6ca5fdd6d42ecbb66c5770e | 1,149 | py | Python | plugins/trending/weibo.py | su226/IdhagnBot | a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609 | [
"MIT"
] | 2 | 2022-02-14T06:37:05.000Z | 2022-03-30T12:18:15.000Z | plugins/trending/weibo.py | su226/IdhagnBot | a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609 | [
"MIT"
] | null | null | null | plugins/trending/weibo.py | su226/IdhagnBot | a5db1b6ab69fdf67fd6e53a63b34c6bc863d6609 | [
"MIT"
] | null | null | null | from typing import Any
from aiohttp import ClientSession
from .common import Item, strip_html
API = "https://weibo.com/ajax/statuses/hot_band"
IMG = "https://wx4.sinaimg.cn/large/{}.jpg"
SEARCH = "https://s.weibo.com/weibo?q=%23{}%23"
| 26.72093 | 59 | 0.610966 |
2071613e7a408eabf03c6b2b9802aa4339e771ee | 955 | py | Python | WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | WEEKS/CD_Sata-Structures/general/practice/leetCode_30DaysOfCode/day_17/number_of_islands.py | webdevhub42/Lambda | b04b84fb5b82fe7c8b12680149e25ae0d27a0960 | [
"MIT"
] | null | null | null | """
Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water
and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid
are all surrounded by water.
"""
grid = [["1", "1", "0"], ["1", "1", "0"], ["0", "0"... | 25.131579 | 114 | 0.503665 |
2071b7738ea9668595f43aa1c16e6826cb81da1e | 2,607 | py | Python | tests/integration/helpers.py | canonical/alertmanager-operator | 48faea21c701a2edefe853de5b04ac1faf6cd736 | [
"Apache-2.0"
] | 1 | 2021-03-28T14:37:13.000Z | 2021-03-28T14:37:13.000Z | tests/integration/helpers.py | canonical/alertmanager-operator | 48faea21c701a2edefe853de5b04ac1faf6cd736 | [
"Apache-2.0"
] | 14 | 2020-11-12T11:22:28.000Z | 2021-09-23T23:51:05.000Z | tests/integration/helpers.py | canonical/alertmanager-operator | 48faea21c701a2edefe853de5b04ac1faf6cd736 | [
"Apache-2.0"
] | 7 | 2020-11-11T23:10:41.000Z | 2021-11-12T14:11:14.000Z | # Copyright 2021 Canonical Ltd.
# See LICENSE file for licensing details.
"""Helper functions for writing tests."""
import logging
from typing import Dict
from pytest_operator.plugin import OpsTest
log = logging.getLogger(__name__)
def interleave(l1: list, l2: list) -> list:
"""Interleave two lists.
>>>... | 31.792683 | 93 | 0.667817 |
207275b58d80650023d7512a278cfc21b82f461a | 1,841 | py | Python | c3py/regions.py | h0s/c3py | 6fb669dd07e9a8433631b64b08213f5f38606ca1 | [
"MIT"
] | 1 | 2015-11-20T05:43:15.000Z | 2015-11-20T05:43:15.000Z | c3py/regions.py | h0s/c3py | 6fb669dd07e9a8433631b64b08213f5f38606ca1 | [
"MIT"
] | null | null | null | c3py/regions.py | h0s/c3py | 6fb669dd07e9a8433631b64b08213f5f38606ca1 | [
"MIT"
] | null | null | null | from .chart_component import ChartComponentList
| 24.878378 | 116 | 0.516567 |
2072be0c4aa28bf08e6acf94dbe34fa893e5ddc8 | 4,420 | py | Python | projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py | fridtjrg/FYS-STK4155 | 071a039c9c9994c0d125b9432c05ddb08991bca9 | [
"MIT"
] | null | null | null | projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py | fridtjrg/FYS-STK4155 | 071a039c9c9994c0d125b9432c05ddb08991bca9 | [
"MIT"
] | 1 | 2021-10-03T15:16:07.000Z | 2021-10-03T15:16:07.000Z | projects/2project/NeuralNetwork/SolutionNNRegressionKeras.py | fridtjrg/FYS-STK4155 | 071a039c9c9994c0d125b9432c05ddb08991bca9 | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from tensorflow.keras.layers import Dense, Activation
from tensorflow.keras.models import Sequential
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
#====================== DATA
import sys
sys.path.append("../Data")
from DataRegression import X, X_test, X_trai... | 30.482759 | 139 | 0.597285 |
20737648d812b6fad6bec05c7ca144f99ca2d842 | 2,551 | py | Python | src/tf_imgaug/sequential.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | 1 | 2019-01-11T15:36:24.000Z | 2019-01-11T15:36:24.000Z | src/tf_imgaug/sequential.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | null | null | null | src/tf_imgaug/sequential.py | Marselliy/tf-aug | 478a632e1822722a74397a169b0b63bd0c5692e7 | [
"MIT"
] | null | null | null | import random
import tensorflow as tf
| 39.859375 | 141 | 0.531164 |
20752a68676d3d8a6893e798673529b3ef5ebcf1 | 6,585 | py | Python | ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 13 | 2020-09-02T10:27:57.000Z | 2022-03-11T15:28:46.000Z | ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 43 | 2020-09-02T07:00:42.000Z | 2021-07-05T13:22:58.000Z | ifitwala_ed/school_settings/doctype/school_calendar/school_calendar.py | mohsinalimat/ifitwala_ed | 8927695ed9dee36e56571c442ebbe6e6431c7d46 | [
"MIT"
] | 6 | 2020-10-19T01:02:18.000Z | 2022-03-11T15:28:47.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2020, ifitwala and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import json
from frappe import _
from frappe.utils import get_link_to_form, today, getdate, formatdate, date_diff, cint
from frappe.model.docum... | 44.795918 | 202 | 0.672134 |
20779422059fa5a2638b842b8fa63f7290a8df78 | 2,824 | py | Python | inbm/cloudadapter-agent/cloudadapter/cloudadapter.py | ahameedx/intel-inb-manageability | aca445fa4cef0b608e6e88e74476547e10c06073 | [
"Apache-2.0"
] | 5 | 2021-12-13T21:19:31.000Z | 2022-01-18T18:29:43.000Z | inbm/cloudadapter-agent/cloudadapter/cloudadapter.py | ahameedx/intel-inb-manageability | aca445fa4cef0b608e6e88e74476547e10c06073 | [
"Apache-2.0"
] | 45 | 2021-12-30T17:21:09.000Z | 2022-03-29T22:47:32.000Z | inbm/cloudadapter-agent/cloudadapter/cloudadapter.py | ahameedx/intel-inb-manageability | aca445fa4cef0b608e6e88e74476547e10c06073 | [
"Apache-2.0"
] | 4 | 2022-01-26T17:42:54.000Z | 2022-03-30T04:48:04.000Z | #!/usr/bin/python
"""
Agent that monitors and reports the state of critical components of the framework
"""
import platform
from typing import Optional, List
from cloudadapter.client import Client
from cloudadapter.constants import LOGGERCONFIG
from cloudadapter.exceptions import BadConfigError
from cloudadapter.uti... | 27.417476 | 99 | 0.642351 |
2077e6ee17f7f602136cebfbf7dc6c070eaa7ba8 | 4,106 | py | Python | utils/LandFire_TAW/ndvi_processing.py | NMTHydro/Recharge | bbc1a05add92064acffeffb19f04e370b99a7918 | [
"Apache-2.0"
] | 7 | 2016-08-30T15:18:11.000Z | 2021-08-22T00:28:10.000Z | utils/LandFire_TAW/ndvi_processing.py | NMTHydro/Recharge | bbc1a05add92064acffeffb19f04e370b99a7918 | [
"Apache-2.0"
] | 2 | 2016-06-08T06:41:45.000Z | 2016-06-23T20:47:26.000Z | utils/LandFire_TAW/ndvi_processing.py | NMTHydro/Recharge | bbc1a05add92064acffeffb19f04e370b99a7918 | [
"Apache-2.0"
] | 1 | 2018-09-18T10:38:08.000Z | 2018-09-18T10:38:08.000Z | # ===============================================================================
# Copyright 2018 gabe-parrish
#
# 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/licen... | 39.480769 | 107 | 0.681442 |
207a7db873682c7d633f14d1d74adaba1fed2784 | 5,947 | py | Python | prometheus_network_exporter/config/functions/junos.py | networkmess/prometheus-network-exporter | 4e7febb7e13447fd3612e591fbb2f634f97a5101 | [
"MIT"
] | 11 | 2018-12-13T05:39:24.000Z | 2022-01-07T16:59:59.000Z | prometheus_network_exporter/config/functions/junos.py | networkmess/prometheus-network-exporter | 4e7febb7e13447fd3612e591fbb2f634f97a5101 | [
"MIT"
] | 11 | 2018-11-29T20:43:44.000Z | 2020-11-14T22:33:50.000Z | prometheus_network_exporter/config/functions/junos.py | networkmess/prometheus-network-exporter | 4e7febb7e13447fd3612e591fbb2f634f97a5101 | [
"MIT"
] | 2 | 2021-09-11T22:28:56.000Z | 2021-09-11T22:43:19.000Z | from typing import Union
import logging
from ...utitlities import create_list_from_dict
from ..configuration import LabelConfiguration, MetricConfiguration
# The complex Functions
| 34.375723 | 87 | 0.669077 |
207ab28606db0bcb88724f2edd658e5f7978954f | 1,492 | py | Python | lib-python/io/proxies/fragment.py | geoffxy/tandem | 81e76f675634f1b42c8c3070c73443f3f68f8624 | [
"Apache-2.0"
] | 732 | 2018-03-11T03:35:17.000Z | 2022-01-06T12:22:03.000Z | lib-python/io/proxies/fragment.py | geoffxy/tandem | 81e76f675634f1b42c8c3070c73443f3f68f8624 | [
"Apache-2.0"
] | 21 | 2018-03-11T02:28:22.000Z | 2020-08-30T15:36:40.000Z | plugin/tandem_lib/agent/tandem/shared/io/proxies/fragment.py | typeintandem/vim | e076a9954d73ccb60cd6828e53adf8da76462fc6 | [
"Apache-2.0"
] | 24 | 2018-03-14T05:37:17.000Z | 2022-01-18T14:44:42.000Z | from tandem.shared.io.proxies.base import ProxyBase
from tandem.shared.utils.fragment import FragmentUtils
| 30.44898 | 75 | 0.586461 |
207b5782368cc522ab6d38370f4b51ed010dc707 | 8,888 | py | Python | integresql_client_python/__init__.py | msztolcman/integresql-client-python | 8636434f20ab771ac66885f3bdfe819a7e9ebbfe | [
"MIT"
] | 2 | 2021-05-20T18:38:41.000Z | 2021-06-26T23:10:27.000Z | integresql_client_python/__init__.py | msztolcman/integresql-client-python | 8636434f20ab771ac66885f3bdfe819a7e9ebbfe | [
"MIT"
] | null | null | null | integresql_client_python/__init__.py | msztolcman/integresql-client-python | 8636434f20ab771ac66885f3bdfe819a7e9ebbfe | [
"MIT"
] | 2 | 2021-06-02T13:39:56.000Z | 2021-06-14T02:11:05.000Z | __all__ = ['IntegreSQL', 'DBInfo', 'Database', 'Template']
import hashlib
import http.client
import os
import pathlib
import sys
from typing import Optional, NoReturn, Union, List
import requests
from . import errors
__version__ = '0.9.2'
ENV_INTEGRESQL_CLIENT_BASE_URL = 'INTEGRESQL_CLIENT_BASE_URL'
ENV_INTEGRESQL_... | 33.923664 | 121 | 0.6259 |
207b985f54a451ba05a83c7321110571f9b36581 | 97 | py | Python | aws_resources/tests/test_dynamo.py | jottenlips/tinyauth | 2c7e5e65e08627795748656f5b3d4122f836d6cd | [
"MIT"
] | 3 | 2020-06-07T18:43:25.000Z | 2021-03-30T14:42:40.000Z | aws_resources/tests/test_dynamo.py | jottenlips/tinyauth | 2c7e5e65e08627795748656f5b3d4122f836d6cd | [
"MIT"
] | 2 | 2021-04-30T21:09:00.000Z | 2021-05-11T11:10:14.000Z | aws_resources/tests/test_dynamo.py | jottenlips/tinyauth | 2c7e5e65e08627795748656f5b3d4122f836d6cd | [
"MIT"
] | 1 | 2020-04-26T16:24:52.000Z | 2020-04-26T16:24:52.000Z | from aws_resources.dynamo import table
| 16.166667 | 38 | 0.680412 |
207bb34267342365082bfa8ac841a3deb5a45c41 | 1,653 | py | Python | src/euler_python_package/euler_python/medium/p265.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p265.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/medium/p265.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | # In this problem we look at 2^n-digit binary strings and the n-digit substrings of these.
# We are given that n = 5, so we are looking at windows of 5 bits in 32-bit strings.
#
# There are of course 32 possible cyclic windows in a 32-bit string.
# We want each of these windows to be a unique 5-bit string. There are ex... | 44.675676 | 91 | 0.69026 |
207ca71d5a53e255c1c332a5b53aede5e33b9205 | 17,727 | py | Python | scripts/mapping4SNP_v2.0_multipleMaps.py | PerisD/Sac2.0 | 274aeca4f6298b2d1d816e5640bf3f67bb5dd729 | [
"CC0-1.0"
] | null | null | null | scripts/mapping4SNP_v2.0_multipleMaps.py | PerisD/Sac2.0 | 274aeca4f6298b2d1d816e5640bf3f67bb5dd729 | [
"CC0-1.0"
] | null | null | null | scripts/mapping4SNP_v2.0_multipleMaps.py | PerisD/Sac2.0 | 274aeca4f6298b2d1d816e5640bf3f67bb5dd729 | [
"CC0-1.0"
] | null | null | null | __author__ = 'Peris'
#!/usr/bin/env python
#coding: utf-8
import argparse
from subprocess import call
import os
import shutil
import glob
from Bio import SeqIO
helptext="""
This script is to map reads to a reference assembly to generate an alignment for population genomics.
The output requires to convert N sites to ... | 67.660305 | 499 | 0.690416 |
207f20ff7bc96059db1255846744ebb0c03d9e3f | 25,099 | py | Python | lib/geomet/wkb.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | lib/geomet/wkb.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | lib/geomet/wkb.py | davasqueza/eriskco_conector_CloudSQL | 99304b5eed06e9bba3646535a82d7fc98b0838b7 | [
"Apache-2.0"
] | null | null | null | # Copyright 2013 Lars Butler & individual contributors
#
# 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... | 31.217662 | 79 | 0.620742 |
207f55f29edfdd3fe87e918760b34c1f86506336 | 292 | py | Python | algorithms/sorting/bubble_sort.py | Byung-June/coding_test_study | aca82da72ba4a6147e35af3749844dc53de682a3 | [
"MIT"
] | null | null | null | algorithms/sorting/bubble_sort.py | Byung-June/coding_test_study | aca82da72ba4a6147e35af3749844dc53de682a3 | [
"MIT"
] | null | null | null | algorithms/sorting/bubble_sort.py | Byung-June/coding_test_study | aca82da72ba4a6147e35af3749844dc53de682a3 | [
"MIT"
] | null | null | null | nums = [5,2,31,2,5,7, 9, 10]
bubble_sort(nums) | 20.857143 | 39 | 0.455479 |
20803faf55678d4849c7071017ef34216a20319c | 2,104 | py | Python | tests/test_can_delete.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 50 | 2021-08-18T08:08:04.000Z | 2022-03-20T07:23:26.000Z | tests/test_can_delete.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 1 | 2021-02-21T03:18:09.000Z | 2021-03-08T01:07:52.000Z | tests/test_can_delete.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 8 | 2021-07-01T02:39:15.000Z | 2021-12-10T02:20:18.000Z | from __future__ import annotations
from unittest import TestCase
from jsonclasses.excs import UnauthorizedActionException
from tests.classes.gs_product import GSProduct, GSProductUser, GSTProduct
from tests.classes.gm_product import GMProduct, GMProductUser
| 39.698113 | 75 | 0.687738 |
2080689aca7d1f7a58ef8c5ff65a1a1fdd0f61ff | 715 | py | Python | 3-longest-substring-without-repeating-characters.py | XianwuLin/leetcode | 87f3c26f1cf16876a01585857aed6c524c8b31b8 | [
"MIT"
] | null | null | null | 3-longest-substring-without-repeating-characters.py | XianwuLin/leetcode | 87f3c26f1cf16876a01585857aed6c524c8b31b8 | [
"MIT"
] | null | null | null | 3-longest-substring-without-repeating-characters.py | XianwuLin/leetcode | 87f3c26f1cf16876a01585857aed6c524c8b31b8 | [
"MIT"
] | null | null | null | # encoding=utf-8
#
#
# aaa
if __name__ == "__main__":
data = [
"dvdf",
]
for i in data:
print i, "\t\t\t", Solution().lengthOfLongestSubstring(i)
| 22.34375 | 65 | 0.513287 |
208118ac1558f15291a466df173c06353392d5a4 | 2,112 | py | Python | scripts/matplot_hardware_comparison.py | shenweihai1/rolis-eurosys2022 | 59b3fd58144496a9b13415e30b41617b34924323 | [
"MIT"
] | null | null | null | scripts/matplot_hardware_comparison.py | shenweihai1/rolis-eurosys2022 | 59b3fd58144496a9b13415e30b41617b34924323 | [
"MIT"
] | null | null | null | scripts/matplot_hardware_comparison.py | shenweihai1/rolis-eurosys2022 | 59b3fd58144496a9b13415e30b41617b34924323 | [
"MIT"
] | null | null | null | import matplotlib
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.ticker import FuncFormatter
formatter = FuncFormatter(millions)
txt = """
4 381682 159258 1.61E+06
8 773030 366397 3.00E+06
12 1103917 519834 4.30E+06
16 1358805 740740 5.67E+06
20 1850419 884978 6.98E+06
24 2227947 1066185 8.20E+06
2... | 34.622951 | 148 | 0.676136 |
208258846b51fff8cd031222e2f3da0eb301099e | 11,741 | py | Python | bintray-cleanup/bintray_cleanup/main.py | openzipkin/zipkin-release | 4508fca409783e62169382aff06fd7c32ad20a63 | [
"Apache-2.0"
] | 2 | 2017-08-07T10:00:52.000Z | 2019-06-25T01:59:22.000Z | bintray-cleanup/bintray_cleanup/main.py | openzipkin/zipkin-release | 4508fca409783e62169382aff06fd7c32ad20a63 | [
"Apache-2.0"
] | 3 | 2017-04-11T05:20:11.000Z | 2019-07-24T23:22:16.000Z | bintray-cleanup/bintray_cleanup/main.py | openzipkin/zipkin-release | 4508fca409783e62169382aff06fd7c32ad20a63 | [
"Apache-2.0"
] | 1 | 2017-09-19T08:38:07.000Z | 2017-09-19T08:38:07.000Z | #!/usr/bin/env python3
import json
import textwrap
from collections import defaultdict
from dataclasses import dataclass
from datetime import datetime, timedelta, timezone
from typing import Callable, Dict, List, Optional
import click
import pygments
import pygments.formatters
import pygments.lexers
import requests_ca... | 31.226064 | 87 | 0.638106 |
2082b1a4f9ffc658b8fe8bd47773012afce06769 | 688 | py | Python | backup_nanny/ami_cleanup.py | ForwardLine/backup-nanny | 67c687f43d732c60ab2e569e50bc40cc5e696b25 | [
"Apache-2.0"
] | 1 | 2019-11-13T04:15:41.000Z | 2019-11-13T04:15:41.000Z | backup_nanny/ami_cleanup.py | ForwardLine/backup-nanny | 67c687f43d732c60ab2e569e50bc40cc5e696b25 | [
"Apache-2.0"
] | null | null | null | backup_nanny/ami_cleanup.py | ForwardLine/backup-nanny | 67c687f43d732c60ab2e569e50bc40cc5e696b25 | [
"Apache-2.0"
] | 1 | 2019-10-25T21:24:20.000Z | 2019-10-25T21:24:20.000Z | #!/usr/bin/env python
from backup_nanny.util.env_loader import ENVLoader
from backup_nanny.util.log import Log
from backup_nanny.util.backup_helper import BackupHelper
if __name__ == '__main__':
ENVLoader.run()
main('local')
| 25.481481 | 69 | 0.700581 |
208372cd97ff6cd39df211ced3240a7c03da900d | 4,179 | py | Python | msn/tests/test_events.py | mleger45/turnex | 2b805c3681fe6ce3ddad403270c09ac9900fbe7d | [
"MIT"
] | null | null | null | msn/tests/test_events.py | mleger45/turnex | 2b805c3681fe6ce3ddad403270c09ac9900fbe7d | [
"MIT"
] | 1 | 2021-04-12T05:14:28.000Z | 2021-04-12T05:14:28.000Z | msn/tests/test_events.py | mleger45/turnex | 2b805c3681fe6ce3ddad403270c09ac9900fbe7d | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
import json
from django.test import TestCase
from unittest.mock import patch, MagicMock
from msn.events import EventTurnex
| 29.85 | 74 | 0.589375 |
208521b0cff34706ddce62eebc847a4ed84c31d5 | 1,044 | py | Python | tests/test_no_identity.py | iexg/aiohttp-security | 225b0c989e397bc741159e0ccc6b54eb7add3f94 | [
"Apache-2.0"
] | null | null | null | tests/test_no_identity.py | iexg/aiohttp-security | 225b0c989e397bc741159e0ccc6b54eb7add3f94 | [
"Apache-2.0"
] | null | null | null | tests/test_no_identity.py | iexg/aiohttp-security | 225b0c989e397bc741159e0ccc6b54eb7add3f94 | [
"Apache-2.0"
] | null | null | null | from aiohttp import web
from aiohttp_security import remember, forget
| 29.828571 | 57 | 0.64751 |
208788b7bd11e361a5d176ed481e96bc882babed | 5,385 | py | Python | create_TFRecords.py | LemonLov/Create_TFRecords | 4274b3c2bfd2c041d0a8189f63b394b79edcf025 | [
"BSD-2-Clause"
] | 2 | 2020-09-12T03:10:30.000Z | 2020-09-13T06:18:00.000Z | create_TFRecords.py | LemonLov/Create_TFRecords | 4274b3c2bfd2c041d0a8189f63b394b79edcf025 | [
"BSD-2-Clause"
] | null | null | null | create_TFRecords.py | LemonLov/Create_TFRecords | 4274b3c2bfd2c041d0a8189f63b394b79edcf025 | [
"BSD-2-Clause"
] | null | null | null | # *-* coding:utf-8 *-*
import tensorflow as tf
import numpy as np
import os
import cv2
import random
#
#
#
def get_example_nums(tf_records_filenames):
'''
tf_records(or example)
parameters:
tf_records_filenames: tf_records
return:
nums
'''
nums= 0
for record in tf.pyt... | 34.299363 | 125 | 0.659239 |
2087a291b6146f0ef00a3da950e1b29854405f84 | 9,694 | py | Python | curses_interface.py | danomagnum/rpncalc | 0c1242f3716b9bd2bd27cb80b9471ae843c1ee74 | [
"MIT"
] | null | null | null | curses_interface.py | danomagnum/rpncalc | 0c1242f3716b9bd2bd27cb80b9471ae843c1ee74 | [
"MIT"
] | null | null | null | curses_interface.py | danomagnum/rpncalc | 0c1242f3716b9bd2bd27cb80b9471ae843c1ee74 | [
"MIT"
] | null | null | null | import rpncalc
#import readline
import curses
import sys
import os
import math
import pkgutil
import settings
STACK = 0
GRAPH_XY = 1
GRAPH_X = 2
mode = STACK
screen = curses.initscr()
screen.keypad(1)
YMAX, XMAX = screen.getmaxyx()
curses.noecho()
stackbox = curses.newwin(YMAX-4,XMAX -1,0,0)
inputbox = curses.newwi... | 24.356784 | 80 | 0.657726 |
208912d6f6d0a9d6a2c0d77936e735ebc5845e01 | 452 | py | Python | ex081.py | BrianBeyer/pythonExercicios | 062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89 | [
"MIT"
] | null | null | null | ex081.py | BrianBeyer/pythonExercicios | 062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89 | [
"MIT"
] | null | null | null | ex081.py | BrianBeyer/pythonExercicios | 062e2c6a9e6e6f513185f1fb1d4269d8ca1d9e89 | [
"MIT"
] | null | null | null | valores = []
c = 0
resp = 'S'
cinco = 0
while resp in 'Ss':
v = valores.append(int(input('Digite um valor:')))
resp = str(input('Quer continuar? [S/N]:')).upper().strip()[0]
c+=1
print(f'Voc digitou {c} valores')# ou len(valores)
valores.sort(reverse=True)
print(f'Os valores em ordem decrescente so {valores... | 30.133333 | 66 | 0.652655 |
2089574d1cedb0d9edbb6825a3a98e6d9859fb54 | 6,649 | py | Python | config/settings/base.py | SimeonAleksov/shawty | 9c51c0c0d64950045d5b7edf8bf86c4e084e5920 | [
"Apache-2.0"
] | null | null | null | config/settings/base.py | SimeonAleksov/shawty | 9c51c0c0d64950045d5b7edf8bf86c4e084e5920 | [
"Apache-2.0"
] | 3 | 2022-02-28T12:04:19.000Z | 2022-03-02T12:05:29.000Z | config/settings/base.py | SimeonAleksov/shawty | 9c51c0c0d64950045d5b7edf8bf86c4e084e5920 | [
"Apache-2.0"
] | null | null | null | """
Base settings to build other settings files upon.
"""
import os
from pathlib import Path
import environ
# ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
ROOT_DIR = (environ.Path(__file__) - 3)
APPS_DIR = ROOT_DIR.path("shawty")
NUXT_APP_DIR = ROOT_DIR.path('client')
env = environ.Env()
READ_... | 30.360731 | 90 | 0.676342 |
2089e701f232686bde232f252421fe8e4203a707 | 7,468 | py | Python | clairmeta/settings.py | Kariboupseudo/ClairMeta | e0a26073935f07abda84d9abf0f194716854292f | [
"BSD-3-Clause"
] | null | null | null | clairmeta/settings.py | Kariboupseudo/ClairMeta | e0a26073935f07abda84d9abf0f194716854292f | [
"BSD-3-Clause"
] | null | null | null | clairmeta/settings.py | Kariboupseudo/ClairMeta | e0a26073935f07abda84d9abf0f194716854292f | [
"BSD-3-Clause"
] | null | null | null | # Clairmeta - (C) YMAGIS S.A.
# See LICENSE for more information
LOG_SETTINGS = {
'level': 'INFO',
'enable_console': True,
'enable_file': True,
'file_name': '~/Library/Logs/clairmeta.log',
'file_size': 1e6,
'file_count': 10,
}
DCP_SETTINGS = {
# ISDCF Naming Convention enforced
'naming... | 39.935829 | 99 | 0.573246 |