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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9749b44259b93b94209924f8e12c6a9a0ca07292 | 4,436 | py | Python | Model/manifest.py | llmay98/WSI-online-analysis-framework | 1f2ee084b7ed87d22f9fbf041a6101c600104bfc | [
"Apache-2.0"
] | 2 | 2020-01-07T04:22:04.000Z | 2021-05-06T11:10:15.000Z | Model/manifest.py | llmay98/WSI-online-analysis-framework | 1f2ee084b7ed87d22f9fbf041a6101c600104bfc | [
"Apache-2.0"
] | 4 | 2021-06-02T13:19:46.000Z | 2022-03-12T00:11:11.000Z | Model/manifest.py | llmay98/WSI-online-analysis-framework | 1f2ee084b7ed87d22f9fbf041a6101c600104bfc | [
"Apache-2.0"
] | 1 | 2021-06-03T04:48:00.000Z | 2021-06-03T04:48:00.000Z | import mysql.connector
import configparser
import os
import uuid
| 32.144928 | 113 | 0.578449 |
974ba423ea4fb5779929e4b07f704b1d42077fa3 | 678 | py | Python | giocomo_lab_to_nwb/conversion_tools/nwb_gui.py | jordanhickman/giocomo-lab-to-nwb | 1d0eb0efc2f3b6d881405b08d7bc0232e0cd79d5 | [
"BSD-3-Clause"
] | null | null | null | giocomo_lab_to_nwb/conversion_tools/nwb_gui.py | jordanhickman/giocomo-lab-to-nwb | 1d0eb0efc2f3b6d881405b08d7bc0232e0cd79d5 | [
"BSD-3-Clause"
] | 4 | 2019-07-30T00:57:41.000Z | 2019-11-03T20:14:03.000Z | giocomo_lab_to_nwb/conversion_tools/nwb_gui.py | ben-dichter-consulting/giocomo-lab-to-nwb | a096cdea15291f77793ca334de1eaaa762685c58 | [
"BSD-3-Clause"
] | 2 | 2020-06-12T20:44:11.000Z | 2020-08-06T02:02:12.000Z | # Opens the NWB conversion GUI
# authors: Luiz Tauffer and Ben Dichter
# written for Giocomo Lab
# ------------------------------------------------------------------------------
from nwbn_conversion_tools.gui.nwbn_conversion_gui import nwbn_conversion_gui
metafile = 'metafile.yml'
conversion_module = 'conversion_modul... | 29.478261 | 80 | 0.653392 |
974c1455e15872002bcd7d434f9a4adca9b3db79 | 6,276 | py | Python | tests/cosrlibtests/document/html/test_base.py | commonsearch/cosr-back | 28ca0c1b938dde52bf4f59a835c98dd5ab22cad6 | [
"Apache-2.0"
] | 141 | 2016-02-17T14:27:57.000Z | 2021-12-27T02:56:48.000Z | tests/cosrlibtests/document/html/test_base.py | commonsearch/cosr-back | 28ca0c1b938dde52bf4f59a835c98dd5ab22cad6 | [
"Apache-2.0"
] | 69 | 2016-02-20T02:06:59.000Z | 2017-01-29T22:23:46.000Z | tests/cosrlibtests/document/html/test_base.py | commonsearch/cosr-back | 28ca0c1b938dde52bf4f59a835c98dd5ab22cad6 | [
"Apache-2.0"
] | 38 | 2016-02-25T04:40:07.000Z | 2020-06-11T07:22:44.000Z | from cosrlib.document.html import HTMLDocument
| 40.490323 | 120 | 0.6203 |
974c8da6edc73ac8e72215e9d759fa65c00213a0 | 26 | py | Python | cphttp/__init__.py | computePods/simpleHttpReloadServer | 81dee9128a7e3b1a397378d89f7f76835e120720 | [
"Apache-2.0"
] | null | null | null | cphttp/__init__.py | computePods/simpleHttpReloadServer | 81dee9128a7e3b1a397378d89f7f76835e120720 | [
"Apache-2.0"
] | null | null | null | cphttp/__init__.py | computePods/simpleHttpReloadServer | 81dee9128a7e3b1a397378d89f7f76835e120720 | [
"Apache-2.0"
] | null | null | null | from .cphttp import cphttp | 26 | 26 | 0.846154 |
974d884bdfa3addd83d2c9e41abdc6a7827099cf | 2,975 | py | Python | server/workers/tests/test_helpers.py | chreman/Headstart | 5d8b956faac4389c649f3072b5ac55aaa01644c6 | [
"MIT"
] | 111 | 2016-12-10T17:27:46.000Z | 2022-03-29T02:57:19.000Z | server/workers/tests/test_helpers.py | chreman/Headstart | 5d8b956faac4389c649f3072b5ac55aaa01644c6 | [
"MIT"
] | 338 | 2016-12-04T17:43:28.000Z | 2022-03-04T15:50:33.000Z | server/workers/tests/test_helpers.py | chreman/Headstart | 5d8b956faac4389c649f3072b5ac55aaa01644c6 | [
"MIT"
] | 32 | 2016-12-19T12:48:00.000Z | 2022-02-12T17:47:47.000Z | import os
import json
import uuid
import pathlib
import redis
import pandas as pd
from nltk.corpus import stopwords
from tqdm import tqdm
from .conftest import RANDOM
from ..api.src.apis.utils import get_key
# connect via nginx to APIs and submit tests
KNOWNCASES = get_cases("knowncases")
RANDOMCASES = get_case... | 30.670103 | 84 | 0.655798 |
974de7e9ef11df44462edd9f4f62ba2943c48f7c | 2,446 | py | Python | nvim/pythonx/r_snippet_helpers.py | ryan-heslin/dotfiles | f447bcb10156044171ab6bf123decce515649dde | [
"MIT"
] | null | null | null | nvim/pythonx/r_snippet_helpers.py | ryan-heslin/dotfiles | f447bcb10156044171ab6bf123decce515649dde | [
"MIT"
] | null | null | null | nvim/pythonx/r_snippet_helpers.py | ryan-heslin/dotfiles | f447bcb10156044171ab6bf123decce515649dde | [
"MIT"
] | null | null | null | import re
from regex import sub as rsub
from all_snippet_helpers import *
# Produce roxygen documentation
# Helper to compose these tasks
| 33.506849 | 87 | 0.513083 |
974e0906f60952202f09db80d093bc5842202e9c | 982 | py | Python | tests/test_loader.py | vkubyshko/cloud-custodian | e5e3a0f8b5c85adcbec212d780b453047fb6f4d1 | [
"Apache-2.0"
] | 2,415 | 2018-12-04T00:37:58.000Z | 2022-03-31T12:28:56.000Z | tests/test_loader.py | vkubyshko/cloud-custodian | e5e3a0f8b5c85adcbec212d780b453047fb6f4d1 | [
"Apache-2.0"
] | 3,272 | 2018-12-03T23:58:17.000Z | 2022-03-31T21:15:32.000Z | tests/test_loader.py | vkubyshko/cloud-custodian | e5e3a0f8b5c85adcbec212d780b453047fb6f4d1 | [
"Apache-2.0"
] | 773 | 2018-12-06T09:43:23.000Z | 2022-03-30T20:44:43.000Z | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
from os import path
import tempfile
from textwrap import dedent
from c7n import loader
from .common import BaseTest
| 31.677419 | 68 | 0.5611 |
974eb9da087e6259717b8a906569a4f8425cdd9a | 2,635 | py | Python | Sensor_Hat/src/mod_thread.py | carlodones/thread_SenseHat_2 | 0824a718542b9a42159073190e7498288dc57c3a | [
"Apache-2.0"
] | null | null | null | Sensor_Hat/src/mod_thread.py | carlodones/thread_SenseHat_2 | 0824a718542b9a42159073190e7498288dc57c3a | [
"Apache-2.0"
] | null | null | null | Sensor_Hat/src/mod_thread.py | carlodones/thread_SenseHat_2 | 0824a718542b9a42159073190e7498288dc57c3a | [
"Apache-2.0"
] | 1 | 2018-07-13T08:44:50.000Z | 2018-07-13T08:44:50.000Z | import threading
import time
import mod_measure_list
import mod_sense_hat
# Classe per l'avvio dei thread
| 35.133333 | 119 | 0.554459 |
974eec00dee959b5d38def6fdb40830000173ec8 | 66 | py | Python | notebooks/_solutions/case2_biodiversity_analysis13.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 65 | 2017-03-21T09:15:40.000Z | 2022-02-01T23:43:08.000Z | notebooks/_solutions/case2_biodiversity_analysis13.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 100 | 2016-12-15T03:44:06.000Z | 2022-03-07T08:14:07.000Z | notebooks/_solutions/case2_biodiversity_analysis13.py | rprops/Python_DS-WS | b2fc449a74be0c82863e5fcf1ddbe7d64976d530 | [
"BSD-3-Clause"
] | 52 | 2016-12-19T07:48:52.000Z | 2022-02-19T17:53:48.000Z | survey_data = survey_data_unique.dropna(subset=['species']).copy() | 66 | 66 | 0.787879 |
9755d328b0477713a97ca1a400e325ba08ea0b28 | 316 | py | Python | testCluster.py | Jubas/index-cost-sim | e99a6142b1d76ec12c957b84fd256cf61c30b3ea | [
"MIT"
] | 1 | 2021-02-09T06:49:45.000Z | 2021-02-09T06:49:45.000Z | testCluster.py | Jubas/index-cost-sim | e99a6142b1d76ec12c957b84fd256cf61c30b3ea | [
"MIT"
] | null | null | null | testCluster.py | Jubas/index-cost-sim | e99a6142b1d76ec12c957b84fd256cf61c30b3ea | [
"MIT"
] | null | null | null | import ClusterCreator
import math
c = ClusterCreator.ClusterCreator(35484770, 100, 30, 30, 20, math.floor(131072 / 132))
leaders, clusters, l, c_id = c.create_clusters()
print(len(leaders))
print(len(clusters))
print("---")
print(clusters[0].count)
n = 0
for i in clusters:
n += i.count
print(n) | 21.066667 | 87 | 0.677215 |
975623b461dce10bee7524337b62f5692bc20bae | 770 | py | Python | 136. Single Number(XOR-ed).py | viewv/leetcode | b31e643846bb38978746342e3e3a94991178565a | [
"MIT"
] | 2 | 2018-02-26T09:12:19.000Z | 2019-06-07T13:38:10.000Z | 136. Single Number(XOR-ed).py | viewv/leetcode | b31e643846bb38978746342e3e3a94991178565a | [
"MIT"
] | 1 | 2018-12-24T07:03:34.000Z | 2018-12-24T07:03:34.000Z | 136. Single Number(XOR-ed).py | viewv/leetcode | b31e643846bb38978746342e3e3a94991178565a | [
"MIT"
] | 2 | 2018-12-24T07:01:03.000Z | 2019-06-07T13:38:07.000Z | # copy from Leetcode, really a good way!
'''
if two number is different like 1010 and 1010
1010 xor 1010 = 0 so when a group of number
is contered one number for many time use xor
can make them to 0, but if the 1010 face 0
like this problem single_num=0 meet a single num
it will be a plus, 0000 xo... | 32.083333 | 55 | 0.658442 |
975aceff3bfddebb1d1b1672bcd24556fb99e1af | 630 | py | Python | galaxy_selenium/__init__.py | jmchilton/galaxy-selenium | fa1c4d0d71001399efc54ae432aea04947c47df1 | [
"CC-BY-3.0"
] | null | null | null | galaxy_selenium/__init__.py | jmchilton/galaxy-selenium | fa1c4d0d71001399efc54ae432aea04947c47df1 | [
"CC-BY-3.0"
] | null | null | null | galaxy_selenium/__init__.py | jmchilton/galaxy-selenium | fa1c4d0d71001399efc54ae432aea04947c47df1 | [
"CC-BY-3.0"
] | null | null | null | """Top-level of library designed to ease use of Selenium targetting Galaxy.
galaxy_selenium is purposes being designed to depend on Python selenium,
six, pyyaml, and optional pyvirtualdisplay but not galaxy-lib (or any of Galaxy
or Galaxy's test stuff) currently.
"""
__version__ = '17.9.0.dev0'
PROJECT_NAME = "galax... | 35 | 79 | 0.773016 |
975afa8d06b3b9c7712ca708d7fed99f0a1cdb6b | 8,367 | py | Python | thornode_client/thornode_client/api/tx_api.py | hoodieonwho/thorchain-python-client | fccfd66552e16bdab1dbb90b68022475c7a9693d | [
"MIT"
] | null | null | null | thornode_client/thornode_client/api/tx_api.py | hoodieonwho/thorchain-python-client | fccfd66552e16bdab1dbb90b68022475c7a9693d | [
"MIT"
] | null | null | null | thornode_client/thornode_client/api/tx_api.py | hoodieonwho/thorchain-python-client | fccfd66552e16bdab1dbb90b68022475c7a9693d | [
"MIT"
] | null | null | null | # coding: utf-8
"""
THORChain API
This documentation outlines the API for THORChain. NOTE: This document is a **work in progress**. # noqa: E501
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # no... | 37.186667 | 123 | 0.60643 |
975cf0d24d9f18d9395f61092ba84bd2deba8dbb | 1,570 | py | Python | src/regression_handler.py | bruggerl/gdp-height | e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d | [
"MIT"
] | null | null | null | src/regression_handler.py | bruggerl/gdp-height | e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d | [
"MIT"
] | null | null | null | src/regression_handler.py | bruggerl/gdp-height | e14e9ab737b1f04f3a0c3fff271f0dfe6831c25d | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
import constants as c
| 40.25641 | 132 | 0.663057 |
975e0b8ba97e0a156a85f8001f92c9651a62a699 | 561 | py | Python | server/utils/load_utils.py | caiodeberaldini/intelligent-systems-project | f97d480a7e51c76b0d6335d4ae8d5e6451321fb0 | [
"MIT"
] | null | null | null | server/utils/load_utils.py | caiodeberaldini/intelligent-systems-project | f97d480a7e51c76b0d6335d4ae8d5e6451321fb0 | [
"MIT"
] | null | null | null | server/utils/load_utils.py | caiodeberaldini/intelligent-systems-project | f97d480a7e51c76b0d6335d4ae8d5e6451321fb0 | [
"MIT"
] | null | null | null | import os
import sys
import pickle
from dotenv import load_dotenv
_ = load_dotenv()
| 19.344828 | 50 | 0.627451 |
975e3531e40dee1ce2f945f944351cd7dfba2e8c | 117 | py | Python | lightreid/models/architectures/__init__.py | nataliamiccini/light-reid | 1bd823849e4a40c9a17497bb7d7ec6097635f4d6 | [
"MIT"
] | 296 | 2020-07-20T02:11:34.000Z | 2022-03-27T12:42:11.000Z | lightreid/models/architectures/__init__.py | nataliamiccini/light-reid | 1bd823849e4a40c9a17497bb7d7ec6097635f4d6 | [
"MIT"
] | 33 | 2020-08-27T03:20:43.000Z | 2022-03-14T11:25:07.000Z | lightreid/models/architectures/__init__.py | nataliamiccini/light-reid | 1bd823849e4a40c9a17497bb7d7ec6097635f4d6 | [
"MIT"
] | 61 | 2020-07-20T06:19:22.000Z | 2022-03-28T07:10:39.000Z | from .build import ARCHs_REGISTRY
from .base_arch import BaseReIDModel
from .reduction_arch import ReductionReIDModel | 39 | 46 | 0.880342 |
975feafbb3d220a6ca357a35f22233d761a71bf9 | 31 | py | Python | tests/__init__.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 1,816 | 2018-02-14T01:59:51.000Z | 2022-03-31T17:09:20.000Z | tests/__init__.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 340 | 2018-02-11T00:27:26.000Z | 2022-03-21T12:00:24.000Z | tests/__init__.py | cercos/masonite | f7f220efa7fae833683e9f07ce13c3795a87d3b8 | [
"MIT"
] | 144 | 2018-03-18T00:08:16.000Z | 2022-02-26T01:51:58.000Z | from .TestCase import TestCase
| 15.5 | 30 | 0.83871 |
9760ac4b7c9df5edcac3c9facafdb4273c11312d | 1,297 | py | Python | server.py | kiduyu-klaus/k-books | 1909100aa03e14d5f60e6bc4500b6226a3ce2552 | [
"MIT"
] | 2 | 2019-08-21T08:35:57.000Z | 2021-07-03T19:35:58.000Z | server.py | kiduyu-klaus/k-books | 1909100aa03e14d5f60e6bc4500b6226a3ce2552 | [
"MIT"
] | 1 | 2019-08-21T08:42:24.000Z | 2019-08-21T08:42:24.000Z | server.py | kiduyu-klaus/k-books | 1909100aa03e14d5f60e6bc4500b6226a3ce2552 | [
"MIT"
] | null | null | null | import telegram
import tornado.ioloop
import tornado.web
from tornado.options import define, options
from settings import WEBHOOK_URL, TELEGRAM_ACCESS_TOKEN
from core import bot_handler
define("port", default=5000, help="run on the given port", type=int)
def make_app():
return tornado.web.Application([
... | 25.94 | 68 | 0.683115 |
9764e3ad21b80a26ed1998bb62b14b203c54a3ac | 516 | py | Python | utility/i2cutil.py | zjcers/ecohawks-battery | dd214584fc141aca64702d1093f218a3238ab22a | [
"MIT"
] | 2 | 2016-11-16T05:53:03.000Z | 2017-09-27T15:12:20.000Z | utility/i2cutil.py | zjcers/ecohawks-battery | dd214584fc141aca64702d1093f218a3238ab22a | [
"MIT"
] | 2 | 2016-04-29T01:38:30.000Z | 2016-09-21T15:41:20.000Z | utility/i2cutil.py | zjcers/ecohawks-battery | dd214584fc141aca64702d1093f218a3238ab22a | [
"MIT"
] | null | null | null | #!/usr/bin/python
#Original Author: Zane J Cersovsky
#Original Date: Mar 6 2016
#Last Modified By: Zane J Cersovsky
#Last Modified On: Mar 7 2016
import bitstring
def reverse_word(word):
r"""
Takes in a int and reverse its bytes
"""
assert type(word) == int
assert word >= 0 and word < 65536
msb = word >> 8
lsb =... | 23.454545 | 66 | 0.70155 |
9765225a4e13a87c2f5b956717cfeffe36f729ff | 6,454 | py | Python | certbot_azure/dns_azure_test.py | vladwing/certbot-azure | 85e0da499d313431bcd47ae39e0e4c88bf2c2561 | [
"MIT"
] | 24 | 2019-01-17T20:32:02.000Z | 2021-07-06T15:34:55.000Z | certbot_azure/dns_azure_test.py | vladwing/certbot-azure | 85e0da499d313431bcd47ae39e0e4c88bf2c2561 | [
"MIT"
] | 5 | 2020-04-27T19:55:45.000Z | 2021-12-03T10:26:15.000Z | certbot_azure/dns_azure_test.py | vladwing/certbot-azure | 85e0da499d313431bcd47ae39e0e4c88bf2c2561 | [
"MIT"
] | 11 | 2020-10-28T16:02:26.000Z | 2021-10-17T20:46:09.000Z | """Tests for certbot_azure.authenticator."""
import os
import unittest
import mock
import json
from certbot import errors
from certbot.plugins import dns_test_common_lexicon
from certbot.plugins.dns_test_common import DOMAIN
from certbot.tests import util as test_util
from requests import Response
from msrestazure.... | 37.964706 | 95 | 0.627053 |
97681a1718c4a517019e57b4ad483c882fcd2d37 | 1,797 | py | Python | tests/test_models/test_users.py | 30ideas-Software-Factory/readIT | 74b5e1391b88d6919786f1f93e723913a73e9efe | [
"Unlicense"
] | 5 | 2021-05-28T22:49:46.000Z | 2021-07-02T22:17:37.000Z | tests/test_models/test_users.py | 30ideas-Software-Factory/readIT | 74b5e1391b88d6919786f1f93e723913a73e9efe | [
"Unlicense"
] | 12 | 2021-05-29T18:57:14.000Z | 2021-06-08T14:24:13.000Z | tests/test_models/test_users.py | 30ideas-Software-Factory/readIT | 74b5e1391b88d6919786f1f93e723913a73e9efe | [
"Unlicense"
] | 7 | 2021-06-20T22:11:14.000Z | 2021-06-28T18:58:30.000Z | #!/usr/bin/python3
""" Contains the Test User class """
from models.users import User
from models.baseModel import BaseModel
import unittest
| 36.673469 | 72 | 0.601002 |
97688b09bfb61fdf6e74155a50fefad44a0d8884 | 306 | py | Python | Python/Introduction/Python Print/solution.py | aesavas/HackerRank | c1ffecc92e3e3db923f94594b9115f650dc2983a | [
"MIT"
] | null | null | null | Python/Introduction/Python Print/solution.py | aesavas/HackerRank | c1ffecc92e3e3db923f94594b9115f650dc2983a | [
"MIT"
] | null | null | null | Python/Introduction/Python Print/solution.py | aesavas/HackerRank | c1ffecc92e3e3db923f94594b9115f650dc2983a | [
"MIT"
] | null | null | null | """
author : Ali Emre SAVAS
Link : https://www.hackerrank.com/challenges/python-print/problem
"""
if __name__ == '__main__':
n = int(input())
number = ""
# n+1 -> Because in range function, n+1 is not in the range.
for i in range(1, n+1):
number += str(i)
print(number)
| 25.5 | 69 | 0.588235 |
976907f333c9c096d9fd70e01fdfc99447224539 | 2,532 | py | Python | YatzyPy/data.py | markomanninen/YatzyPy | a6904b22473ae909f588e3b82a67b8b4f2dce0f2 | [
"MIT"
] | null | null | null | YatzyPy/data.py | markomanninen/YatzyPy | a6904b22473ae909f588e3b82a67b8b4f2dce0f2 | [
"MIT"
] | null | null | null | YatzyPy/data.py | markomanninen/YatzyPy | a6904b22473ae909f588e3b82a67b8b4f2dce0f2 | [
"MIT"
] | null | null | null | # data.py
import numpy as np
from itertools import product, combinations
from . func import *
from . const import *
# totally 31 hold options in two dimentional array
all_hold_options = np.array([list(combinations([0,1,2,3,4], r=repeat)) for repeat in range(1, 6)])
# plus one empty option, makes it 32 options
all_hol... | 45.214286 | 148 | 0.639021 |
97691d01b0dc17a421afe81d680dd368bc4cb43f | 2,841 | py | Python | 17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py | g2gcio/course-demo | b0d00a6ac7a6a6a17af963cee67cf13dc5941e95 | [
"MIT"
] | 276 | 2016-04-04T20:57:36.000Z | 2022-03-12T02:42:46.000Z | 17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py | g2gcio/course-demo | b0d00a6ac7a6a6a17af963cee67cf13dc5941e95 | [
"MIT"
] | 37 | 2016-10-13T12:04:27.000Z | 2020-11-22T10:36:53.000Z | 17_logging_and_monitoring/start_17_blue_yellow_app_monitoring/blue_yellow_app/services/albums_service.py | g2gcio/course-demo | b0d00a6ac7a6a6a17af963cee67cf13dc5941e95 | [
"MIT"
] | 163 | 2016-10-03T02:10:00.000Z | 2022-03-25T03:43:01.000Z | from sqlalchemy.orm import joinedload
from blue_yellow_app.data.album import Album
from blue_yellow_app.data.dbsession import DbSessionFactory
from blue_yellow_app.data.track import Track
| 35.962025 | 89 | 0.515312 |
976edec8e9c1b856d33be95bedc79d5a511c5930 | 1,229 | py | Python | mysite/calls/migrations/0003_auto_20190130_1853.py | gurupratap-matharu/django-calls-registration-app | 6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524 | [
"MIT"
] | null | null | null | mysite/calls/migrations/0003_auto_20190130_1853.py | gurupratap-matharu/django-calls-registration-app | 6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524 | [
"MIT"
] | 4 | 2021-04-08T20:34:00.000Z | 2021-09-22T19:41:24.000Z | mysite/calls/migrations/0003_auto_20190130_1853.py | gurupratap-matharu/django-calls-registration-app | 6c2c8f06c2dc8559b1fbb60c9f843c5c0dc11524 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.5 on 2019-01-30 18:53
from django.db import migrations, models
import django.db.models.deletion
| 30.725 | 156 | 0.566314 |
976efa5b7a4cfc7372d6598e6e598ede5da9f96e | 5,230 | py | Python | ooobuild/lo/util/duration.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/util/duration.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/util/duration.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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... | 27.671958 | 313 | 0.585277 |
976fcbf14dd7896daf4f8d49416555bf79ddb30f | 1,250 | py | Python | utils/distance_functions.py | inesnolas/Rank-based-loss_ICASSP22 | 3ebe7345dc26b8fa74543725a51b43b7170c58cc | [
"MIT"
] | null | null | null | utils/distance_functions.py | inesnolas/Rank-based-loss_ICASSP22 | 3ebe7345dc26b8fa74543725a51b43b7170c58cc | [
"MIT"
] | 1 | 2022-03-10T04:08:49.000Z | 2022-03-10T04:08:49.000Z | utils/distance_functions.py | inesnolas/Rank-based-loss_ICASSP22 | 3ebe7345dc26b8fa74543725a51b43b7170c58cc | [
"MIT"
] | null | null | null | import torch
| 39.0625 | 129 | 0.7008 |
97719823db82abe3944497ea3132f94495350607 | 14,309 | py | Python | python/model.py | jakelong0509/Song_Detector | 57ac4b206b985f2c9e40423a9f79deacbc88f64e | [
"MIT"
] | 3 | 2018-11-09T17:56:58.000Z | 2019-05-15T19:43:58.000Z | python/model.py | jakelong0509/Song_Detector | 57ac4b206b985f2c9e40423a9f79deacbc88f64e | [
"MIT"
] | 1 | 2018-11-09T17:45:12.000Z | 2018-11-09T23:12:21.000Z | python/model.py | jakelong0509/Song_Detector | 57ac4b206b985f2c9e40423a9f79deacbc88f64e | [
"MIT"
] | null | null | null | import numpy as np
import os
import sys
import progressbar
import gc
import pickle
import matplotlib.pyplot as plt
from LSTM import LSTM
from wrapper import Bidirectional
from Regularization import regularization
from attention_model import attention_model
from data_preprocessing import song_preprocessing
from function... | 42.20944 | 137 | 0.624991 |
97736b42eb349e18d83972c1a24aef06f993ff03 | 763 | py | Python | tests/test_demo.py | jsam/demo | d644c6a8c4a4e04538abb1c506b00da29429eaa9 | [
"MIT"
] | null | null | null | tests/test_demo.py | jsam/demo | d644c6a8c4a4e04538abb1c506b00da29429eaa9 | [
"MIT"
] | null | null | null | tests/test_demo.py | jsam/demo | d644c6a8c4a4e04538abb1c506b00da29429eaa9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from click.testing import CliRunner
from demo import cli
import os
import pytest
| 24.612903 | 70 | 0.697248 |
97742d434f756859171175e1ee026361918f8086 | 3,151 | py | Python | blueprints/portfolio/build.py | andrenasturas/hausse | 58e7cb71d5105cf1d6ec7d294e85668855bf8336 | [
"MIT"
] | null | null | null | blueprints/portfolio/build.py | andrenasturas/hausse | 58e7cb71d5105cf1d6ec7d294e85668855bf8336 | [
"MIT"
] | 1 | 2021-08-30T21:41:46.000Z | 2021-08-30T21:41:46.000Z | blueprints/portfolio/build.py | andrenasturas/hausse | 58e7cb71d5105cf1d6ec7d294e85668855bf8336 | [
"MIT"
] | 1 | 2021-08-31T19:27:32.000Z | 2021-08-31T19:27:32.000Z | from hausse import Hausse
from hausse.plugins import (
Assets,
DiscoverPartials,
Drop,
Handlebars,
Markdown,
MetadataMarkdown,
Relations,
Collection,
Collections
)
# Collections preparations
# By default, all files in "src/formations" folder will be grouped in this collection
Links... | 41.460526 | 96 | 0.70676 |
97748de95cef6ee43f337f0e5e20ea4c436fc422 | 601 | py | Python | tools/metrics/ukm/codegen_test.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/metrics/ukm/codegen_test.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | tools/metrics/ukm/codegen_test.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | #!/usr/bin/env python
# Copyright 2020 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.
import unittest
import codegen
if __name__ == '__main__':
unittest.main()
| 28.619048 | 72 | 0.760399 |
9774e07a56017bb3a9a3d7425a808039862c2b58 | 13 | py | Python | json_editor/ui/__init__.py | eyalk11/json-editor | 3a865ee04befaee3c258adacf22a15cbabfe2753 | [
"MIT"
] | 7 | 2019-07-31T22:26:44.000Z | 2021-03-31T07:38:31.000Z | tool_dock/ui/__init__.py | rBrenick/tool-dock | cedd012bcdb138f10982f74ab6a1d10cbc50cb15 | [
"MIT"
] | null | null | null | tool_dock/ui/__init__.py | rBrenick/tool-dock | cedd012bcdb138f10982f74ab6a1d10cbc50cb15 | [
"MIT"
] | 5 | 2019-07-31T06:59:55.000Z | 2021-10-17T23:27:00.000Z | # content
| 2.6 | 9 | 0.538462 |
977547a86441dd2f34137210aaba3cb7c65a05a6 | 716 | py | Python | yahoo_fin/ex01.py | stormabq/python-examples | 1c1acfc3863a2cf1a9e202c9299f3a526858eb34 | [
"MIT"
] | 1 | 2021-12-12T04:39:53.000Z | 2021-12-12T04:39:53.000Z | yahoo_fin/ex01.py | stormabq/python-examples | 1c1acfc3863a2cf1a9e202c9299f3a526858eb34 | [
"MIT"
] | null | null | null | yahoo_fin/ex01.py | stormabq/python-examples | 1c1acfc3863a2cf1a9e202c9299f3a526858eb34 | [
"MIT"
] | 6 | 2020-05-05T17:21:28.000Z | 2021-12-12T04:39:57.000Z | from yahoo_fin.stock_info import (
get_data,
tickers_sp500,
tickers_nasdaq,
tickers_other,
get_quote_table,
)
""" pull historical data for Netflix (NFLX) """
# nflx = get_data("NFLX")
""" pull data for Apple (AAPL) """
"""case sensitivity does not matter"""
# aapl = get_data("aapl")
""" get list ... | 24.689655 | 61 | 0.698324 |
97770588e1dec8dd9dbd77471c7aa4e18adc3dbe | 1,158 | py | Python | performancetests/extract_useful_stats.py | phillbarber/polling-vs-sockets | c777c19359c76abfcd13e5ebb55938b03aef11e8 | [
"MIT"
] | null | null | null | performancetests/extract_useful_stats.py | phillbarber/polling-vs-sockets | c777c19359c76abfcd13e5ebb55938b03aef11e8 | [
"MIT"
] | null | null | null | performancetests/extract_useful_stats.py | phillbarber/polling-vs-sockets | c777c19359c76abfcd13e5ebb55938b03aef11e8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import json
import os
import sys
directory = os.getcwd() + "/" + sys.argv[1]
print ("Stats for" + directory)
with open(directory + "/stats-after.json") as after:
afterJson = json.load(after)
with open(directory + "/stats-before.json") as before:
beforeJson = json.load(before)
print... | 28.95 | 94 | 0.653713 |
97777e3bdfdec7925db3bd47283e2b2cd170c9f4 | 3,657 | py | Python | arenarobot/video_call/__init__.py | DaAwesomeP/ARENA-robot | ff771c4f5f587fda1bcc79ae165301129a6b1458 | [
"BSD-3-Clause"
] | null | null | null | arenarobot/video_call/__init__.py | DaAwesomeP/ARENA-robot | ff771c4f5f587fda1bcc79ae165301129a6b1458 | [
"BSD-3-Clause"
] | null | null | null | arenarobot/video_call/__init__.py | DaAwesomeP/ARENA-robot | ff771c4f5f587fda1bcc79ae165301129a6b1458 | [
"BSD-3-Clause"
] | null | null | null | """
__init__.py: Definitions for the video call client.
Created by Perry Naseck on 7/1/21.
Copyright (c) 2021, The CONIX Research Center
All rights reserved.
This source code is licensed under the BSD-3-Clause license found in the
LICENSE file in the root directory of this source tree.
"""
# Some code originally fr... | 33.861111 | 126 | 0.654361 |
977874df3b07698f1618d522fb5395d30d8fd9da | 212 | py | Python | annotate/processing/base_annotation.py | dojo-modeling/dojo | 8abc71790cbb8639a56c89791535b3df59c725ac | [
"MIT"
] | 3 | 2022-01-28T01:43:30.000Z | 2022-02-24T21:42:13.000Z | annotate/processing/base_annotation.py | dojo-modeling/dojo | 8abc71790cbb8639a56c89791535b3df59c725ac | [
"MIT"
] | 8 | 2022-01-12T16:39:57.000Z | 2022-01-31T19:05:45.000Z | annotate/processing/base_annotation.py | dojo-modeling/dojo | 8abc71790cbb8639a56c89791535b3df59c725ac | [
"MIT"
] | null | null | null | import typing
import pandas as pd
| 19.272727 | 69 | 0.669811 |
97793cb16f646ed93a1d2a99e624885f86ec02c8 | 2,006 | py | Python | ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py | sherrytp/bc_f19_econ | 0d393e54441fd38faba275bb3e718704fbd18d0d | [
"Apache-2.0"
] | null | null | null | ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py | sherrytp/bc_f19_econ | 0d393e54441fd38faba275bb3e718704fbd18d0d | [
"Apache-2.0"
] | null | null | null | ADEC7430 Big Data Econometrics/Midterm1/PyCode/_Functions/34_RidgeLassoEN.py | sherrytp/bc_f19_econ | 0d393e54441fd38faba275bb3e718704fbd18d0d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 23 00:14:38 2019
@author: RV
Purpose: use Ridge, Lasso and Elastic Net models on Titanic data
"""
#%% Lasso
from sklearn.linear_model import Lasso
useAlpha = 0.00001
lasso_1 = Lasso(alpha = useAlpha).fit(X, y)
print(lasso_1.coef_)
# OK, got the coefficie... | 27.108108 | 99 | 0.70339 |
977b336843e723764b4e53b212ee10afac5dc75c | 5,340 | py | Python | pyperformance/_pythoninfo.py | oraluben/pyperformance | 74acfa5fbf801ce79fdadc9e92355c99460e91e4 | [
"MIT"
] | 255 | 2016-08-27T05:38:56.000Z | 2019-05-27T16:15:38.000Z | pyperformance/_pythoninfo.py | oraluben/pyperformance | 74acfa5fbf801ce79fdadc9e92355c99460e91e4 | [
"MIT"
] | 43 | 2016-08-30T15:22:01.000Z | 2019-05-24T10:59:54.000Z | pyperformance/_pythoninfo.py | oraluben/pyperformance | 74acfa5fbf801ce79fdadc9e92355c99460e91e4 | [
"MIT"
] | 55 | 2016-08-30T15:19:45.000Z | 2019-05-20T12:41:02.000Z | # A utility library for getting information about a Python executable.
#
# This may be used as a script.
import importlib.util
import json
import os
import os.path
import sys
import sysconfig
INFO = {
# sys
'executable (sys)': 'sys.executable',
'executable (sys;realpath)': 'executable_realpath',
'pre... | 33.584906 | 81 | 0.618352 |
977f46612fc386542c357d0fedcedfdd08752149 | 592 | py | Python | alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py | pchudzik/tweet | 1938dae6be1359d73a8140b994c3db39d2b336da | [
"MIT"
] | null | null | null | alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py | pchudzik/tweet | 1938dae6be1359d73a8140b994c3db39d2b336da | [
"MIT"
] | null | null | null | alembic/versions/6d2dd11ac2fb_20190307204236_tokens_table.py | pchudzik/tweet | 1938dae6be1359d73a8140b994c3db39d2b336da | [
"MIT"
] | null | null | null | """tokens table
Revision ID: 6d2dd11ac2fb
Revises: 908de7ed5813
Create Date: 2019-03-07 20:42:36.328479
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '6d2dd11ac2fb'
down_revision = '908de7ed5813'
branch_labels = None
depends_on = None
| 19.733333 | 69 | 0.697635 |
9780b9be1e720e56671d5b30ede7867d5f95129a | 127 | py | Python | day1/part1.py | MatejBabis/AdventOfCode2k18 | 859044b132079a9bcc0cc6456c255dc3a70e1fbf | [
"MIT"
] | 2 | 2018-12-17T22:02:50.000Z | 2018-12-20T14:30:59.000Z | day1/part1.py | MatejBabis/AdventOfCode2k18 | 859044b132079a9bcc0cc6456c255dc3a70e1fbf | [
"MIT"
] | null | null | null | day1/part1.py | MatejBabis/AdventOfCode2k18 | 859044b132079a9bcc0cc6456c255dc3a70e1fbf | [
"MIT"
] | null | null | null | f = open("input.txt")
total = 0
for number in f.readlines():
total += int(number[:-1])
f.close()
print("Answer:", total)
| 14.111111 | 29 | 0.606299 |
97816564e1874e02b5c0cd54d1cf752b6659b9a3 | 768 | py | Python | graphtiny/api.py | Canicio/pyqtgraph-tiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | 1 | 2018-03-17T12:36:56.000Z | 2018-03-17T12:36:56.000Z | graphtiny/api.py | Canicio/pyqtgraph-tiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | 1 | 2017-08-08T18:31:31.000Z | 2017-08-08T18:31:31.000Z | graphtiny/api.py | Canicio/graphtiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from numpy.core.records import ndarray
from graphtiny.domain import Chart, DataStreamWindow
| 29.538462 | 76 | 0.684896 |
97817d510af0a172a3fa90c3a96fd9cbcae0aadb | 1,307 | py | Python | mailmorth/app/api_version/v1/__init__.py | lintosh/mailship | ce02962a8928417c5837524a63f414498da2b49f | [
"MIT"
] | null | null | null | mailmorth/app/api_version/v1/__init__.py | lintosh/mailship | ce02962a8928417c5837524a63f414498da2b49f | [
"MIT"
] | null | null | null | mailmorth/app/api_version/v1/__init__.py | lintosh/mailship | ce02962a8928417c5837524a63f414498da2b49f | [
"MIT"
] | null | null | null | #~ version one of the mailMorth api which would hold all the functionalities of our version one
#(@: Name): "mailMorth"
#(@:Description): "email Management, and automation api code"
#(@:Author): "inteliJence development team"
#under the license of Apache License 2.0 and intelijence Protective Rights please ed... | 35.324324 | 129 | 0.554705 |
97817fb679923c526b028329f844109b22f3d6ae | 1,655 | py | Python | pineboolib/fllegacy/FLSettings.py | Miguel-J/pineboo-buscar | 41a2f3ee0425d163619b78f32544c4b4661d5fa7 | [
"MIT"
] | null | null | null | pineboolib/fllegacy/FLSettings.py | Miguel-J/pineboo-buscar | 41a2f3ee0425d163619b78f32544c4b4661d5fa7 | [
"MIT"
] | null | null | null | pineboolib/fllegacy/FLSettings.py | Miguel-J/pineboo-buscar | 41a2f3ee0425d163619b78f32544c4b4661d5fa7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from PyQt5 import QtCore
from pineboolib.flcontrols import ProjectClass
from pineboolib import decorators
| 26.269841 | 73 | 0.569184 |
97818d041346c51355d6a36de188f9622c855abf | 35,874 | py | Python | kernel/tracker/tracking.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 39 | 2021-10-12T01:43:27.000Z | 2022-03-28T04:46:35.000Z | kernel/tracker/tracking.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 6 | 2021-10-14T02:11:47.000Z | 2022-03-23T02:41:50.000Z | kernel/tracker/tracking.py | rinceyuan/WeFe | 8482cb737cb7ba37b2856d184cd42c1bd35a6318 | [
"Apache-2.0"
] | 10 | 2021-10-14T09:36:03.000Z | 2022-02-10T11:05:12.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 Tianmian Tech. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 37.682773 | 135 | 0.616073 |
9783ca48fe51d9ac60d3e96b2b562fca5f560392 | 12 | py | Python | Utils/kalman_utils/kf_template.mako.py | martinjaymckee/Chandra-HAL | 337a0cc5d19b20af979145c07cf1d7351754bb27 | [
"MIT"
] | null | null | null | Utils/kalman_utils/kf_template.mako.py | martinjaymckee/Chandra-HAL | 337a0cc5d19b20af979145c07cf1d7351754bb27 | [
"MIT"
] | null | null | null | Utils/kalman_utils/kf_template.mako.py | martinjaymckee/Chandra-HAL | 337a0cc5d19b20af979145c07cf1d7351754bb27 | [
"MIT"
] | null | null | null |
class ${KF} | 6 | 11 | 0.583333 |
97849e29d8bc30894785e486625de3eacbf655df | 570 | py | Python | src/odontology/person/migrations/0008_patient_date_created.py | nanomolina/JP | 248a47bced4dac850f85d28968ddf279cd123400 | [
"Apache-2.0"
] | 2 | 2016-06-23T15:35:29.000Z | 2022-01-11T00:55:21.000Z | src/odontology/person/migrations/0008_patient_date_created.py | nanomolina/JP | 248a47bced4dac850f85d28968ddf279cd123400 | [
"Apache-2.0"
] | 27 | 2016-06-24T12:28:01.000Z | 2022-01-13T00:37:25.000Z | src/odontology/person/migrations/0008_patient_date_created.py | nanomolina/JP | 248a47bced4dac850f85d28968ddf279cd123400 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
| 24.782609 | 124 | 0.64386 |
97856bbd18162d533ea54eb1abdafde5f0b28d54 | 1,358 | py | Python | Sensor_Debug/TestCase/test_01_Openapp.py | sdwfclcyk1/AutoTestCase | 63a6a6a4acf2a9dc572bd917b186638eae65aee7 | [
"MIT"
] | 1 | 2018-09-28T11:35:07.000Z | 2018-09-28T11:35:07.000Z | Sensor_Debug/TestCase/test_01_Openapp.py | sdwfclcyk1/AutoTestCase | 63a6a6a4acf2a9dc572bd917b186638eae65aee7 | [
"MIT"
] | null | null | null | Sensor_Debug/TestCase/test_01_Openapp.py | sdwfclcyk1/AutoTestCase | 63a6a6a4acf2a9dc572bd917b186638eae65aee7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/6/25 18:59
# @Author : Kay
# @Site :
# @File : test_01_openapp.py
# @Software: PyCharm Community Edition
import uiautomator2 as u2
import unittest
from Public.Decorator import *
from Public.BasePage import BasePage
from Public.ReadConfig import Rea... | 24.690909 | 71 | 0.715022 |
97875158322222de017110d6d1abc2e7a57acacd | 1,077 | py | Python | makePlane.py | dluman/NaNoGenMo-2017-2 | d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0 | [
"Unlicense"
] | null | null | null | makePlane.py | dluman/NaNoGenMo-2017-2 | d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0 | [
"Unlicense"
] | null | null | null | makePlane.py | dluman/NaNoGenMo-2017-2 | d5daea27d9f8bbfbfb1d5ea4d246993c8dc60bd0 | [
"Unlicense"
] | null | null | null | import random
| 23.413043 | 90 | 0.680594 |
97876bdf9ec44c4e43b01948ef9cb05a7a5c62d7 | 2,157 | py | Python | species/__init__.py | vandalt/species | 527dd900a60c4d691bd490569cd3b2007f9beead | [
"MIT"
] | null | null | null | species/__init__.py | vandalt/species | 527dd900a60c4d691bd490569cd3b2007f9beead | [
"MIT"
] | null | null | null | species/__init__.py | vandalt/species | 527dd900a60c4d691bd490569cd3b2007f9beead | [
"MIT"
] | null | null | null | from species.analysis.fit_model import FitModel
from species.analysis.fit_spectrum import FitSpectrum
from species.analysis.photometry import SyntheticPhotometry
# from species.analysis.retrieval import AtmosphericRetrieval
from species.read.read_calibration import ReadCalibration
from species.read.read_filter imp... | 30.814286 | 61 | 0.66064 |
978a831843efed4c9a546c08310214668dcc7a6e | 7,009 | py | Python | docs/database_tables.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | 2 | 2021-07-28T08:46:13.000Z | 2022-01-19T17:05:48.000Z | docs/database_tables.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | 3 | 2020-11-10T23:34:17.000Z | 2021-03-31T16:19:21.000Z | docs/database_tables.py | wdr-data/wdr-okr | 71c9e6e8d3521b1bb67d30310a93584389de2127 | [
"MIT"
] | null | null | null | """Read database information from Django models and create a HTML table for the
documentation.
"""
import collections
import os
import sys
import django
from loguru import logger
DOCS_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(DOCS_DIR)
sys.path.insert(0, BASE_DIR)
os.environ["DJANG... | 38.092391 | 194 | 0.542017 |
978c3f0eef7e90463917faf45f6b1c6c86a54b70 | 5,454 | py | Python | LibraryManagementSystem/settings.py | TejasJogi/Library-Management-System-Django-MYSQL | f6dd1910d4270e42ac200b4eb47f2e76cb0c296d | [
"MIT"
] | 2 | 2021-11-26T16:21:05.000Z | 2022-02-25T16:02:48.000Z | LibraryManagementSystem/settings.py | TejasJogi/Library-Management-System-Django-MYSQL | f6dd1910d4270e42ac200b4eb47f2e76cb0c296d | [
"MIT"
] | null | null | null | LibraryManagementSystem/settings.py | TejasJogi/Library-Management-System-Django-MYSQL | f6dd1910d4270e42ac200b4eb47f2e76cb0c296d | [
"MIT"
] | null | null | null | """
Django settings for LibraryManagementSystem project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"... | 24.790909 | 103 | 0.706637 |
978c454e2c28df828f082014fc81cd881d17aa27 | 2,497 | py | Python | device/container/src/baseline_device/service/jobs/sample2.py | MartinMReed/aws-iot-baseline | 61bdc51708e6f4480d0117a43f0adde5f6a63506 | [
"MIT"
] | 1 | 2021-12-31T05:05:30.000Z | 2021-12-31T05:05:30.000Z | device/container/src/baseline_device/service/jobs/sample2.py | nelsestu/thing-expert | 2e105d718c386258d8efdb329ea60da1072ffbe8 | [
"MIT"
] | null | null | null | device/container/src/baseline_device/service/jobs/sample2.py | nelsestu/thing-expert | 2e105d718c386258d8efdb329ea60da1072ffbe8 | [
"MIT"
] | 1 | 2021-04-05T23:44:12.000Z | 2021-04-05T23:44:12.000Z | import json
import logging
import os
import sys
import threading
import time
import paho.mqtt.client as paho
import paho.mqtt.publish as paho_publish
from baseline_device.util.config import config
from baseline_device.util.mqtt import MqttLoggingHandler
logging.basicConfig(level=logging.INFO)
logger = logging.getLog... | 26.284211 | 109 | 0.673208 |
978cde5321a929429de3c79977503bd4e3e5a2f0 | 12,183 | py | Python | odoo-13.0/addons/sale/tests/test_onchange.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 12 | 2021-03-26T08:39:40.000Z | 2022-03-16T02:20:10.000Z | odoo-13.0/addons/sale/tests/test_onchange.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 13 | 2020-12-20T16:00:21.000Z | 2022-03-14T14:55:30.000Z | odoo-13.0/addons/sale/tests/test_onchange.py | VaibhavBhujade/Blockchain-ERP-interoperability | b5190a037fb6615386f7cbad024d51b0abd4ba03 | [
"MIT"
] | 17 | 2020-08-31T11:18:49.000Z | 2022-02-09T05:57:31.000Z | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import Form
from odoo.tests.common import TransactionCase
| 44.790441 | 204 | 0.583682 |
978e392b87cb419fb505337ab4cee06b350097b0 | 8,390 | py | Python | IEX_29id/utils/folders.py | kellyjelly0904/macros_29id | 573946d13eee7f85da049ac666b5dd2d18d19bb1 | [
"MIT"
] | null | null | null | IEX_29id/utils/folders.py | kellyjelly0904/macros_29id | 573946d13eee7f85da049ac666b5dd2d18d19bb1 | [
"MIT"
] | 1 | 2021-11-10T02:00:41.000Z | 2021-11-11T03:02:23.000Z | IEX_29id/utils/folders.py | kellyjelly0904/macros_29id | 573946d13eee7f85da049ac666b5dd2d18d19bb1 | [
"MIT"
] | 2 | 2021-09-28T21:19:47.000Z | 2021-10-12T20:51:43.000Z | from epics import caput
from IEX_29id.utils.exp import Check_run, BL_Mode_Set, BL_ioc
from IEX_29id.mda.file import MDA_CurrentDirectory
from IEX_29id.mda.file import MDA_CurrentRun
import os
import re
def Make_DataFolder(run,folder,UserName,scanIOC,ftp): #JM was here ->print full crontab command and change permi... | 40.143541 | 297 | 0.590703 |
978f1fcb3bef9348f27a0824ad9894eb219d2595 | 2,932 | py | Python | sceance/set_watchlist.py | sjmignot/film-to-cal | 82d5e96b65197ff96522324d6527fca6f18cc76b | [
"MIT"
] | 6 | 2020-02-05T21:31:57.000Z | 2020-03-08T00:35:16.000Z | sceance/set_watchlist.py | sjmignot/film-to-cal | 82d5e96b65197ff96522324d6527fca6f18cc76b | [
"MIT"
] | null | null | null | sceance/set_watchlist.py | sjmignot/film-to-cal | 82d5e96b65197ff96522324d6527fca6f18cc76b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Starts a Firfox headless brower to see if movies on your watchlist are playing
at any of your favorite theaters.
Favorite theaters are taken from a txt file (extracted from "theaters.txt").
These showtimes are compared to a watchlist (extracted from "watchlist.txt")
-samuel mignot-
'''
# ... | 32.21978 | 115 | 0.62824 |
978fc91e48a69b62fda28f8d703d52a062332e01 | 177 | py | Python | app/routes/views.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 4 | 2018-01-29T05:51:32.000Z | 2018-02-08T05:18:47.000Z | app/routes/views.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 3 | 2018-01-30T21:41:09.000Z | 2018-01-31T18:20:01.000Z | app/routes/views.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 1 | 2019-03-29T19:32:28.000Z | 2019-03-29T19:32:28.000Z | from app import app, drinks
from flask import render_template, session, redirect, request
| 22.125 | 61 | 0.745763 |
978fd61709e98a6a4163084a70975c96d6b7f512 | 21,143 | py | Python | ARHMM-code/olfactory_search_xval.py | Smear-Lab/Olfactory_Search | 92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff | [
"MIT"
] | null | null | null | ARHMM-code/olfactory_search_xval.py | Smear-Lab/Olfactory_Search | 92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff | [
"MIT"
] | null | null | null | ARHMM-code/olfactory_search_xval.py | Smear-Lab/Olfactory_Search | 92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff | [
"MIT"
] | null | null | null | #Misc
import os, time, argparse
import h5py, json
import glob, fnmatch,pdb
from tqdm import tqdm
import multiprocessing
#Base
import numpy as np
import pandas as pd
import scipy.stats as st
from sklearn.model_selection import StratifiedKFold
#Plotting
import matplotlib
matplotlib.use('Agg')
import seaborn as sns
from m... | 40.895551 | 185 | 0.62328 |
9793545d6d0e47925c766734e2f8f75b3b0595d3 | 1,402 | py | Python | src/pyeff_io.py | pyflosic/pyeff | 4b76fcc4a0bfb25f9f4106567d01b5ea02db6737 | [
"Apache-2.0"
] | 3 | 2019-06-24T08:04:25.000Z | 2020-05-26T03:45:45.000Z | src/pyeff_io.py | pyflosic/pyeff | 4b76fcc4a0bfb25f9f4106567d01b5ea02db6737 | [
"Apache-2.0"
] | null | null | null | src/pyeff_io.py | pyflosic/pyeff | 4b76fcc4a0bfb25f9f4106567d01b5ea02db6737 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 PyEFF developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | 40.057143 | 131 | 0.574893 |
979375047a16643d63291a0d8aad8d8fc63735f2 | 22,196 | py | Python | declarations_site/catalog/data/mapping_chesno.py | li-ar/declarations.com.ua | 343cd86cc5a4bd895f2859ed896728f6416ac223 | [
"MIT"
] | 32 | 2015-04-01T15:17:35.000Z | 2021-05-02T20:46:33.000Z | declarations_site/catalog/data/mapping_chesno.py | li-ar/declarations.com.ua | 343cd86cc5a4bd895f2859ed896728f6416ac223 | [
"MIT"
] | 52 | 2015-03-23T21:37:04.000Z | 2022-02-10T07:27:13.000Z | declarations_site/catalog/data/mapping_chesno.py | li-ar/declarations.com.ua | 343cd86cc5a4bd895f2859ed896728f6416ac223 | [
"MIT"
] | 18 | 2015-03-16T22:10:44.000Z | 2021-11-01T12:56:12.000Z | from collections import namedtuple
SubDocument = namedtuple("SubDocument", ["path_prefix", "mapping"])
NumericOperation = namedtuple("NumericOperation", ["path_prefix", "field", "operation"])
JoinOperation = namedtuple("JoinOperation", ["paths", "separator"])
MAPPING = {
"_id": "details/id",
"intro": {
... | 34.573209 | 88 | 0.421157 |
9793ec4954370ea87c1224757843713b7976c1e3 | 3,179 | py | Python | common/threads/thread_pool.py | ziizhuwy/cify | 627ae74f6a27d803521df213e8644366dbba183f | [
"Apache-2.0"
] | 8 | 2018-10-11T16:05:14.000Z | 2020-12-30T08:21:15.000Z | common/threads/thread_pool.py | keven1z/cify | 627ae74f6a27d803521df213e8644366dbba183f | [
"Apache-2.0"
] | 1 | 2020-04-22T03:36:59.000Z | 2020-06-11T06:42:42.000Z | common/threads/thread_pool.py | ziizhuwy/cify | 627ae74f6a27d803521df213e8644366dbba183f | [
"Apache-2.0"
] | 4 | 2019-07-10T06:51:45.000Z | 2020-04-19T09:52:09.000Z |
# !/usr/bin/env python
# -*- coding:utf-8 -*-
import queue
import threading
import traceback
from data.config import *
from common.log.log_util import LogUtil as log
logger = log.getLogger(__name__)
| 32.773196 | 113 | 0.557093 |
9794d489e11c9d85b61fcfda17b5fcf122b391c0 | 4,431 | py | Python | whatsappy/group.py | YohananDiamond/whatsappy | 2474839baf32295fea568c4dd30c59edace11e58 | [
"MIT"
] | null | null | null | whatsappy/group.py | YohananDiamond/whatsappy | 2474839baf32295fea568c4dd30c59edace11e58 | [
"MIT"
] | null | null | null | whatsappy/group.py | YohananDiamond/whatsappy | 2474839baf32295fea568c4dd30c59edace11e58 | [
"MIT"
] | null | null | null | from time import sleep
from selenium.webdriver.common.keys import Keys
from os import path
from .tool import *
from .error import BadPathError
import traceback
def change_group_description(self, description: str):
"""Changes the group description
Args:
description (str): New group description
"""... | 31.204225 | 128 | 0.594223 |
97959af172f3896c43a9153dc3a145cbbaa7178b | 365 | py | Python | Books/GodOfPython/P16_Networking/SimplehttpServer.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | 2 | 2020-12-05T07:42:55.000Z | 2021-01-06T23:23:18.000Z | Books/GodOfPython/P16_Networking/SimplehttpServer.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | Books/GodOfPython/P16_Networking/SimplehttpServer.py | Tim232/Python-Things | 05f0f373a4cf298e70d9668c88a6e3a9d1cd8146 | [
"MIT"
] | null | null | null | from http.server import HTTPServer, SimpleHTTPRequestHandler
import sys
ip = '127.0.0.1'
port = 8000
addr = (ip, port)
httpd = HTTPServer(addr, SimpleHTTPRequestHandler)
Servip, Servport = httpd.socket.getsockname()
try:
httpd.serve_forever()
except KeyboardInterrupt:
print('Keyboard interrupt received, exi... | 20.277778 | 60 | 0.750685 |
9796d5c78ed8b8b2d57b57dbb718992d6e9e2e56 | 935 | py | Python | 2020/day10.py | mbmackenzie/advent-of-code | 66ef2723b67c84b9c03e05281106fb2811da17a1 | [
"MIT"
] | null | null | null | 2020/day10.py | mbmackenzie/advent-of-code | 66ef2723b67c84b9c03e05281106fb2811da17a1 | [
"MIT"
] | null | null | null | 2020/day10.py | mbmackenzie/advent-of-code | 66ef2723b67c84b9c03e05281106fb2811da17a1 | [
"MIT"
] | null | null | null | """Day 10: Adapter Array"""
from collections import Counter
from collections import defaultdict
from aoc import Solution
| 25.972222 | 85 | 0.594652 |
97970c5a1a0f3349fb93a725c6270efcd0b82297 | 874 | py | Python | train.py | groverkds/hand_sign_recognition | 4ae05c43af869e990acc636b0a031f903709dfbc | [
"Apache-2.0"
] | 3 | 2020-02-18T07:12:42.000Z | 2022-01-07T14:35:42.000Z | train.py | polawarrushi/hand_sign_recognition | 493b3568c462280533a33cab592008c91da1f999 | [
"Apache-2.0"
] | null | null | null | train.py | polawarrushi/hand_sign_recognition | 493b3568c462280533a33cab592008c91da1f999 | [
"Apache-2.0"
] | 8 | 2019-05-22T15:45:17.000Z | 2021-09-15T17:28:50.000Z | import numpy as np
import pickle
from sklearn.model_selection import train_test_split
from sklearn import svm
from sklearn import metrics
import pandas as pd
with open('data/dataframe.pickle', 'rb') as handle:
df = pickle.load(handle)
data = df.copy()
data.drop('alphabet', axis=1)
target = df.alphabet
X_train, X_tes... | 30.137931 | 125 | 0.771167 |
9797b5af874059d81d0e5f547824f391670ed073 | 56 | py | Python | gnoll/actions/dispatch.py | gnoll-project/gnoll-python | cf2540d2220733ba2203d86ca939fa64f38d0af0 | [
"MIT"
] | null | null | null | gnoll/actions/dispatch.py | gnoll-project/gnoll-python | cf2540d2220733ba2203d86ca939fa64f38d0af0 | [
"MIT"
] | null | null | null | gnoll/actions/dispatch.py | gnoll-project/gnoll-python | cf2540d2220733ba2203d86ca939fa64f38d0af0 | [
"MIT"
] | null | null | null | from pyee import EventEmitter
dispatch = EventEmitter()
| 18.666667 | 29 | 0.821429 |
979851dc526feb93a60dbe69c32893824847ba79 | 1,217 | py | Python | dataclasses_serialization/serializer_base/dataclasses.py | blfoster/python-dataclasses-serialization | 1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d | [
"MIT"
] | 19 | 2019-04-15T15:57:20.000Z | 2021-07-09T07:01:12.000Z | dataclasses_serialization/serializer_base/dataclasses.py | blfoster/python-dataclasses-serialization | 1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d | [
"MIT"
] | 14 | 2019-08-01T13:03:53.000Z | 2021-04-20T13:26:54.000Z | dataclasses_serialization/serializer_base/dataclasses.py | blfoster/python-dataclasses-serialization | 1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d | [
"MIT"
] | 11 | 2019-06-13T21:38:55.000Z | 2022-02-28T08:53:20.000Z | from toolz import curry
from dataclasses_serialization.serializer_base.errors import DeserializationError
from dataclasses_serialization.serializer_base.noop import noop_deserialization
from dataclasses_serialization.serializer_base.typing import (
dataclass_field_types,
isinstance,
)
__all__ = ["dict_to_data... | 29.682927 | 87 | 0.642564 |
97992e047d22c07ba264c49af6fa5aef078bd341 | 905 | py | Python | pydrift/decorators.py | sergiocalde94/pydrift | 8d8968ca80895cc31e86bc55df57ad64712e36d8 | [
"MIT"
] | 18 | 2020-06-27T21:05:18.000Z | 2021-12-20T15:14:57.000Z | pydrift/decorators.py | sergiocalde94/pydrift | 8d8968ca80895cc31e86bc55df57ad64712e36d8 | [
"MIT"
] | 5 | 2021-02-03T17:53:53.000Z | 2021-04-23T14:03:36.000Z | pydrift/decorators.py | sergiocalde94/pydrift | 8d8968ca80895cc31e86bc55df57ad64712e36d8 | [
"MIT"
] | 7 | 2020-06-07T10:51:41.000Z | 2021-06-13T20:23:28.000Z | from functools import wraps
| 31.206897 | 67 | 0.640884 |
979b32ffcbb69c325f9cc6f26076b4bf72ce74b8 | 93 | py | Python | django-version/djversion/apps.py | sarath196/django-mptt-demo-re-version | d570aa8612c0bf838c191a7a8a1b3f57bf2be16f | [
"MIT"
] | null | null | null | django-version/djversion/apps.py | sarath196/django-mptt-demo-re-version | d570aa8612c0bf838c191a7a8a1b3f57bf2be16f | [
"MIT"
] | null | null | null | django-version/djversion/apps.py | sarath196/django-mptt-demo-re-version | d570aa8612c0bf838c191a7a8a1b3f57bf2be16f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 15.5 | 33 | 0.763441 |
979b57b2f520e53382dbdd26bd190261e6e49b86 | 9,359 | py | Python | DQN_Qlearning/agent.py | WoShiDongZhiWu/Reinforcement-learning-Algorithm | 59fdf29e7feb73048b9ddf3b4755b55f0459efcb | [
"Apache-2.0"
] | 1 | 2019-12-23T02:59:13.000Z | 2019-12-23T02:59:13.000Z | DQN_Qlearning/agent.py | WoShiDongZhiWu/reinforcement-learning-algorithm | 59fdf29e7feb73048b9ddf3b4755b55f0459efcb | [
"Apache-2.0"
] | null | null | null | DQN_Qlearning/agent.py | WoShiDongZhiWu/reinforcement-learning-algorithm | 59fdf29e7feb73048b9ddf3b4755b55f0459efcb | [
"Apache-2.0"
] | null | null | null | '''
#################################################################################################
# author wudong
# date 20190812
#
# Srasa(0),Sarsa(),Q-learning,DQN
#################################################################################################
'''
from random import random, choice
from gym... | 35.316981 | 105 | 0.543862 |
979c4c7ab54f0e47ec7248d0082811b92e99c917 | 3,649 | py | Python | DMProject/15.package/15.7.MNIST.py | gongjunhuang/Spider | c683137dafac9c7f4afd359baf9d0717d1a127e2 | [
"Apache-2.0"
] | 1 | 2018-02-26T15:45:17.000Z | 2018-02-26T15:45:17.000Z | DMProject/15.package/15.7.MNIST.py | gongjunhuang/Spider | c683137dafac9c7f4afd359baf9d0717d1a127e2 | [
"Apache-2.0"
] | null | null | null | DMProject/15.package/15.7.MNIST.py | gongjunhuang/Spider | c683137dafac9c7f4afd359baf9d0717d1a127e2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
from sklearn import svm
import matplotlib.colors
import matplotlib.pyplot as plt
from PIL import Image
from sklearn.metrics import accuracy_score
import pandas as pd
import os
import csv
from sklearn.model_selection import train_test_split
from sklearn.model_... | 35.086538 | 132 | 0.64456 |
979c80762641e4c8d009fdd05535ea43eb570cd2 | 4,122 | py | Python | examples/collision-avoid/pyplot_staticplan.py | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | examples/collision-avoid/pyplot_staticplan.py | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | examples/collision-avoid/pyplot_staticplan.py | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | import matplotlib.pyplot as plt
import matplotlib.patches as patches
import matplotlib.animation as animation
import matplotlib.colors as mcolors
from scipy.interpolate import interp1d
from scipy.integrate import solve_ivp
import os
import re
import numpy as np
import h5py
import sys
from os.path import dirname, realpa... | 30.761194 | 83 | 0.607472 |
979eeaea89fd74c57893ede5d89f60a48b582ae8 | 2,394 | py | Python | source/script/FASelector_SRC/Type/.JPG.py | onsoim/FuzzBuilderEx | d0e8bada27677a0f676e92dc48aaa764ba679508 | [
"Apache-2.0"
] | 6 | 2021-03-27T06:07:01.000Z | 2022-03-29T04:54:03.000Z | source/script/FASelector_SRC/Type/.JPG.py | onsoim/FuzzBuilderEx | d0e8bada27677a0f676e92dc48aaa764ba679508 | [
"Apache-2.0"
] | 4 | 2021-03-24T00:10:59.000Z | 2022-03-28T13:41:28.000Z | source/script/FASelector_SRC/Type/.JPG.py | onsoim/FuzzBuilderEx | d0e8bada27677a0f676e92dc48aaa764ba679508 | [
"Apache-2.0"
] | 2 | 2021-04-05T06:22:20.000Z | 2021-10-01T21:07:18.000Z | #-*- coding:utf-8 -*-
import os
import re
if __name__ == "__main__":
import sys
#path = './pictures/'
#folder = folder(path)
folder = folder(sys.argv[1])
path, filelist = folder.path, folder.filelist
markers = ['ffc','ffd','ffe','fff']
JPG = []
if not os.path.isdir('output'):
os.makedirs('output/')
for f... | 27.837209 | 81 | 0.621554 |
979f6be94ead98ea08a3e58188d707e4861320f7 | 3,656 | py | Python | Constants.py | unmonk/Project-Infinity | 63c22fcf4086adf868967cb172434e3ceba4bac5 | [
"CC0-1.0"
] | null | null | null | Constants.py | unmonk/Project-Infinity | 63c22fcf4086adf868967cb172434e3ceba4bac5 | [
"CC0-1.0"
] | null | null | null | Constants.py | unmonk/Project-Infinity | 63c22fcf4086adf868967cb172434e3ceba4bac5 | [
"CC0-1.0"
] | null | null | null | __author__ = 'Scott'
import os
import pygame
SCREEN_WIDTH = 1280
SCREEN_HEIGHT = 720
GAME_TITLE = "Project Infinity"
MAP_COLLISION_LAYER = 2
MAP_DEATH_LAYER = 3
MAP_BACKGROUND_LAYER = 0
MAP_FORGROUND_LAYER = 1
MAP_ENDOFLEVEL_LAYER = 5
MAP_ITEM_LAYER = 4
BACKGROUND_COLOR = (20, 20, 20)
screen = pygame.display.set_mode(... | 34.490566 | 105 | 0.671772 |
97a1ff60f08e5d9b17054c1f2b8239c0c712ac7b | 17,655 | py | Python | vol3/vol3-python-examples/lib/aifh/som.py | Sun-Joong/aifh | 1b6363d26f54b77348020ce88ced0670568ed736 | [
"Apache-2.0"
] | 777 | 2015-01-17T22:48:26.000Z | 2022-03-31T01:10:07.000Z | vol3/vol3-python-examples/lib/aifh/som.py | Sun-Joong/aifh | 1b6363d26f54b77348020ce88ced0670568ed736 | [
"Apache-2.0"
] | 17 | 2015-01-02T14:41:24.000Z | 2017-09-02T02:57:09.000Z | vol3/vol3-python-examples/lib/aifh/som.py | Sun-Joong/aifh | 1b6363d26f54b77348020ce88ced0670568ed736 | [
"Apache-2.0"
] | 445 | 2015-01-26T17:01:49.000Z | 2022-03-24T07:16:58.000Z | #!/usr/bin/env python
"""
Artificial Intelligence for Humans
Volume 3: Deep Learning and Neural Networks
Python Version
http://www.aifh.org
http://www.jeffheaton.com
Code repository:
https://github.com/jeffheaton/aifh
Copyright 2015 by Jeff Heaton
Licensed under the Apache License, V... | 37.886266 | 114 | 0.63625 |
97a29197dc50e799d9651b87306ebbcdd023348a | 458 | py | Python | loader.py | AmaRocket/TMDBMovieBotTelegram | 07d248da0ee5c20e788612814f964917748474ba | [
"MIT"
] | null | null | null | loader.py | AmaRocket/TMDBMovieBotTelegram | 07d248da0ee5c20e788612814f964917748474ba | [
"MIT"
] | null | null | null | loader.py | AmaRocket/TMDBMovieBotTelegram | 07d248da0ee5c20e788612814f964917748474ba | [
"MIT"
] | null | null | null | import logging
import asyncio
from aiogram import Bot, Dispatcher
from aiogram.contrib.fsm_storage.memory import MemoryStorage
import config
loop = asyncio.get_event_loop()
bot = Bot(token=config.token, parse_mode='HTML')
storage = MemoryStorage()
dp = Dispatcher(bot, storage=storage)
logging.basicConfig(format=u'%... | 26.941176 | 105 | 0.69869 |
97a4368e398e0b9f09d0d9196d816ae5a12f9c17 | 4,729 | py | Python | animator/entity/basic_shape.py | sherlockdoyle/Animator | 5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b | [
"MIT"
] | null | null | null | animator/entity/basic_shape.py | sherlockdoyle/Animator | 5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b | [
"MIT"
] | null | null | null | animator/entity/basic_shape.py | sherlockdoyle/Animator | 5c1bec50e7e120db36a8a333fa7ddcdaf10dda3b | [
"MIT"
] | null | null | null | import math
from animator.entity import Entity
from animator.constant import *
__all__ = ["Circle", "Ellipse", "Rect", "Square", "Poly"]
# TODO: Implement Star?
# class Star(Entity):
# def __init__(self, n=5, outradius=UNIT, inradius=None, **kwargs):
# super(Star, self).__init__(**kwargs)
# i... | 33.778571 | 117 | 0.550011 |
97a57543f9dc26b5f9e4368297bf82071ccf16c7 | 1,855 | py | Python | src/GUI/custom_widgets.py | QWERTSKIHACK/peniot | 8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b | [
"MIT"
] | 143 | 2019-12-31T08:12:36.000Z | 2022-03-31T15:59:51.000Z | src/GUI/custom_widgets.py | QWERTSKIHACK/peniot | 8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b | [
"MIT"
] | 5 | 2020-01-28T15:47:23.000Z | 2022-02-23T11:18:55.000Z | src/GUI/custom_widgets.py | QWERTSKIHACK/peniot | 8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b | [
"MIT"
] | 39 | 2019-12-30T22:19:38.000Z | 2022-03-17T10:24:37.000Z | from Tkinter import *
from hard_coded_texts import get_project_name
| 37.1 | 112 | 0.686253 |
97a757d0e58b59160fb7713ada622222e925c521 | 4,479 | py | Python | Code/search.py | Keyology/cs-1.3-2020 | 7b6f02c76dc16f1abafc613ebe6088d51b36b3be | [
"MIT"
] | null | null | null | Code/search.py | Keyology/cs-1.3-2020 | 7b6f02c76dc16f1abafc613ebe6088d51b36b3be | [
"MIT"
] | 4 | 2020-02-17T23:27:06.000Z | 2020-03-10T20:21:22.000Z | Code/search.py | Keyology/cs-1.3-2020 | 7b6f02c76dc16f1abafc613ebe6088d51b36b3be | [
"MIT"
] | null | null | null | #!python
def linear_search(array, item):
"""return the first index of item in array or None if item is not found"""
# implement linear_search_iterative and linear_search_recursive below, then
# change this to call your implementation to verify it passes all tests
# return linear_search_iterative(array,... | 31.542254 | 95 | 0.663764 |
97aa46050ee4e69349797e69e7c1131f9730f6f8 | 5,155 | py | Python | panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py | CKrawczyk/python-reducers-for-caesar | 9c5d9e072906d3fde2497fa61a66e4c8c0113ec2 | [
"Apache-2.0"
] | 1 | 2018-11-27T16:43:37.000Z | 2018-11-27T16:43:37.000Z | panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py | CKrawczyk/python-reducers-for-caesar | 9c5d9e072906d3fde2497fa61a66e4c8c0113ec2 | [
"Apache-2.0"
] | 2 | 2017-07-27T09:05:03.000Z | 2019-04-03T20:28:31.000Z | panoptes_aggregation/tests/reducer_tests/test_survey_reducer.py | CKrawczyk/python-reducers-for-caesar | 9c5d9e072906d3fde2497fa61a66e4c8c0113ec2 | [
"Apache-2.0"
] | 2 | 2017-07-26T17:30:17.000Z | 2017-07-27T09:14:51.000Z | import unittest
from collections import Counter
import copy
import flask
import json
from panoptes_aggregation.reducers.survey_reducer import process_data, survey_reducer
from panoptes_aggregation.reducers.test_utils import extract_in_data
extracted_data = [
{'answers_howmanyanimalsdoyousee': {'1': 1.0}, 'answers_... | 39.653846 | 212 | 0.628904 |
97affcf5430ea542d75da78b8065ecc199a3cc76 | 1,898 | py | Python | PyMess/FIPS/ANN/ConvertData.py | mattkjames7/PyMess | f2c68285a7845a24d98284e20ed4292ed5e58138 | [
"MIT"
] | null | null | null | PyMess/FIPS/ANN/ConvertData.py | mattkjames7/PyMess | f2c68285a7845a24d98284e20ed4292ed5e58138 | [
"MIT"
] | null | null | null | PyMess/FIPS/ANN/ConvertData.py | mattkjames7/PyMess | f2c68285a7845a24d98284e20ed4292ed5e58138 | [
"MIT"
] | null | null | null | import numpy as np
from ... import Globals
from .ReadData import ReadData
import os
import RecarrayTools as RT
def _DateStrToDateUT(s):
'''
convert date on the format YYYY-MM-DDThh:mm:ss.sss to an integer date
and a floating point time.
'''
Y = np.array([np.int32(x[0:4]) for x in s])
M = np.array([np.int32(x[5:7... | 24.025316 | 70 | 0.630664 |
97b17d951641a10dde5adb0978a509ff02ff1d9c | 812 | py | Python | libapp/migrations/0010_notification.py | Nyagah-Tech/library | 2ae1df4e89257c9c7d7f2328ab6c5f6352867997 | [
"MIT"
] | null | null | null | libapp/migrations/0010_notification.py | Nyagah-Tech/library | 2ae1df4e89257c9c7d7f2328ab6c5f6352867997 | [
"MIT"
] | 8 | 2020-06-06T01:24:32.000Z | 2022-02-10T12:26:48.000Z | libapp/migrations/0010_notification.py | Nyagah-Tech/library | 2ae1df4e89257c9c7d7f2328ab6c5f6352867997 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2020-01-23 06:58
from django.conf import settings
from django.db import migrations, models
import tinymce.models
| 31.230769 | 119 | 0.626847 |
97b281cd2e09060653c37e8623382835d9e1206e | 3,891 | py | Python | 2_data_files/plotter.py | Abhipanda4/RQs_in_Regex_Graphs | 80b86b5b3f92ef28102ac0f5049bb495b5cc07f9 | [
"Apache-2.0"
] | 2 | 2018-10-09T09:59:45.000Z | 2021-11-21T17:01:47.000Z | 2_data_files/plotter.py | Abhipanda4/RQs_in_Regex_Graphs | 80b86b5b3f92ef28102ac0f5049bb495b5cc07f9 | [
"Apache-2.0"
] | null | null | null | 2_data_files/plotter.py | Abhipanda4/RQs_in_Regex_Graphs | 80b86b5b3f92ef28102ac0f5049bb495b5cc07f9 | [
"Apache-2.0"
] | null | null | null | import csv
import matplotlib.pyplot as plt
import numpy as np
# pre_process_time()
# hits_vs_miss()
# MC_size_dependence()
# edge_size()
index_sizes()
| 25.431373 | 76 | 0.561809 |
97b47597bcd7e262415d73a5d1a8d5d991bcfe66 | 3,022 | py | Python | generic_editor.py | jcooper-korg/talon_user | ef086f9890448f7d633a4f02b36a18de853581a8 | [
"0BSD"
] | 1 | 2018-09-22T22:34:35.000Z | 2018-09-22T22:34:35.000Z | generic_editor.py | jcooper-korg/talon_user | ef086f9890448f7d633a4f02b36a18de853581a8 | [
"0BSD"
] | null | null | null | generic_editor.py | jcooper-korg/talon_user | ef086f9890448f7d633a4f02b36a18de853581a8 | [
"0BSD"
] | null | null | null | # https://github.com/JonathanNickerson/talon_voice_user_scripts
# jsc added indent/outdent and simplified jolt
from talon.voice import Key, press, Str, Context
ctx = Context('generic_editor') # , bundle='com.microsoft.VSCode')
numeral_map = dict((str(n), n) for n in range(0, 20))
for n in [20, 30, 40, 50, 60, 70, 80... | 26.743363 | 82 | 0.625745 |
97b62ed540d6ffc6ab71d19b389a5534151aeb3d | 4,260 | py | Python | setup.py | blschatz/pyHDT | 9553fd49e1e89a89d248e5d75b3a49ad3b3e124f | [
"MIT"
] | null | null | null | setup.py | blschatz/pyHDT | 9553fd49e1e89a89d248e5d75b3a49ad3b3e124f | [
"MIT"
] | null | null | null | setup.py | blschatz/pyHDT | 9553fd49e1e89a89d248e5d75b3a49ad3b3e124f | [
"MIT"
] | null | null | null | # setup.py
# Author: Thomas MINIER - MIT License 2017-2018
from setuptools import setup, Extension
from os import listdir
import pybind11
import distutils
import platform
__pyhdt_version__ = "1.2.1"
with open('README.rst') as file:
long_description = file.read()
def list_files(path, extension=".cpp", exclude="S... | 37.368421 | 110 | 0.698122 |
97ba1bc69fa28bb340ca97364cb86adfcaf60e62 | 2,880 | py | Python | src/rest_api/mir_coords_to_csv.py | jonathanleinola/radiohead-master | f0854441c07aba0ccf51bf9ec8904b860eefd683 | [
"MIT"
] | null | null | null | src/rest_api/mir_coords_to_csv.py | jonathanleinola/radiohead-master | f0854441c07aba0ccf51bf9ec8904b860eefd683 | [
"MIT"
] | null | null | null | src/rest_api/mir_coords_to_csv.py | jonathanleinola/radiohead-master | f0854441c07aba0ccf51bf9ec8904b860eefd683 | [
"MIT"
] | null | null | null | import time
import sys
import urllib3
from time import sleep
import json
import csv
import datetime
import requests
from datetime import datetime
import subprocess # just for changing file ownership at the end of script
http = urllib3.PoolManager()
######################################################################... | 39.452055 | 87 | 0.518056 |
97bb0bfb2e83efd2bcd29357e37506cc837d9359 | 2,704 | py | Python | arraycw.py | cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ | 1337dacf9568e8e5249ce6aa13bd0e425b31e940 | [
"Apache-2.0"
] | null | null | null | arraycw.py | cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ | 1337dacf9568e8e5249ce6aa13bd0e425b31e940 | [
"Apache-2.0"
] | null | null | null | arraycw.py | cs-fullstack-2019-spring/python-arraycollections-cw-MelaatiJ | 1337dacf9568e8e5249ce6aa13bd0e425b31e940 | [
"Apache-2.0"
] | null | null | null | # problem1()
# problem2()
# problem3()
# problem4()
# problem5()
#
# Create a function with the variable below. After you create the variable do the instructions below that.
# ```
# arrayForProblem2 = ["Kenn", "Kevin", "Erin", "Meka"]
# ```
# a) Print the 3rd element of the numberList.
#
# b)... | 23.719298 | 144 | 0.628698 |
97be40091dbb9d0bd5f45ca454971f59e1fb204d | 3,511 | py | Python | timeeval_experiments/algorithms/mscred.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | 2 | 2022-01-29T03:46:31.000Z | 2022-02-14T14:06:35.000Z | timeeval_experiments/algorithms/mscred.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | null | null | null | timeeval_experiments/algorithms/mscred.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | null | null | null | from durations import Duration
from typing import Any, Dict, Optional
from timeeval import Algorithm, TrainingType, InputDimensionality
from timeeval.adapters import DockerAdapter
from timeeval.params import ParameterConfig
import numpy as np
import numpy as np
from timeeval.utils.window import ReverseWindowing
# p... | 30.530435 | 125 | 0.672173 |
97bf1504b82eb929f132872535cb5630bd14f3ad | 7,470 | py | Python | fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py | vishalbelsare/FEDOT | 3a6f06b29cf2f173008d119f7cb5dc705a45f695 | [
"BSD-3-Clause"
] | null | null | null | fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py | vishalbelsare/FEDOT | 3a6f06b29cf2f173008d119f7cb5dc705a45f695 | [
"BSD-3-Clause"
] | null | null | null | fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py | vishalbelsare/FEDOT | 3a6f06b29cf2f173008d119f7cb5dc705a45f695 | [
"BSD-3-Clause"
] | null | null | null | from typing import Optional
import numpy as np
from sklearn.feature_selection import RFE
from sklearn.linear_model import LinearRegression, LogisticRegression
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
from fedot.core.data.data import OutputData
from fedot.core.operations.evaluation.operat... | 37.35 | 105 | 0.654485 |
97c09d6d0c463e1a6cbc1d5065aab627ff77af00 | 18,595 | py | Python | budou/budou.py | aodag/budou | 97be13eb87745d5ac78e9c42eda97ac923226259 | [
"Apache-2.0"
] | null | null | null | budou/budou.py | aodag/budou | 97be13eb87745d5ac78e9c42eda97ac923226259 | [
"Apache-2.0"
] | null | null | null | budou/budou.py | aodag/budou | 97be13eb87745d5ac78e9c42eda97ac923226259 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2017 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | 33.625678 | 81 | 0.645012 |
97c0da1f40fc823b2243e9c93e971592b96efa4c | 318 | py | Python | backend/api/admin.py | steviemsiy/FindTheGame | f4a86a38c8133089778735f34b04f9ce6b084c48 | [
"MIT"
] | null | null | null | backend/api/admin.py | steviemsiy/FindTheGame | f4a86a38c8133089778735f34b04f9ce6b084c48 | [
"MIT"
] | null | null | null | backend/api/admin.py | steviemsiy/FindTheGame | f4a86a38c8133089778735f34b04f9ce6b084c48 | [
"MIT"
] | null | null | null | from django.contrib import admin
#if ENVIRONMENT == 'PROD':
# from api.models import *
#else:
from api.models import *
# Register your models here.
admin.site.register(Event, EventAdmin)
admin.site.register(ApiKey, ApiKeyAdmin)
admin.site.register(PlayerProfile)
admin.site.register(Group)
admin.site.register(Game)
| 22.714286 | 40 | 0.779874 |
97c0f0316a610972e2430f4b0813c029c750b789 | 1,456 | py | Python | lpd/callbacks/collect_outputs.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 4 | 2020-10-02T10:04:19.000Z | 2022-01-19T12:45:02.000Z | lpd/callbacks/collect_outputs.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 1 | 2020-10-06T17:43:57.000Z | 2020-10-06T17:47:43.000Z | lpd/callbacks/collect_outputs.py | RoySadaka/lpd | 921454d9730d8228f4b0ca5349b0558ebd123c65 | [
"MIT"
] | 1 | 2020-10-03T17:21:32.000Z | 2020-10-03T17:21:32.000Z | from lpd.enums import Phase, State
from lpd.callbacks.callback_base import CallbackBase
from lpd.callbacks.callback_context import CallbackContext
from typing import Union, List
| 37.333333 | 110 | 0.677885 |
97c13a11e20c33272886d8a9d47cf19a001f5c55 | 107 | py | Python | api/constants.py | python-discord/code-jam-management | b6b91357f0afa69f875336917a72ea771eb13556 | [
"MIT"
] | 6 | 2021-06-07T17:29:23.000Z | 2022-02-25T23:36:16.000Z | api/constants.py | python-discord/code-jam-management | b6b91357f0afa69f875336917a72ea771eb13556 | [
"MIT"
] | 4 | 2021-09-04T13:53:40.000Z | 2021-12-30T23:13:59.000Z | api/constants.py | python-discord/code-jam-management | b6b91357f0afa69f875336917a72ea771eb13556 | [
"MIT"
] | 2 | 2021-06-07T17:18:15.000Z | 2021-06-14T19:32:33.000Z | from decouple import config
DATABASE_URL = config("DATABASE_URL")
LOG_LEVEL = config("LOG_LEVEL", "INFO")
| 21.4 | 39 | 0.766355 |
97c42e24a090f424ea4838812d93847accbf8363 | 15,022 | py | Python | snakebot.py | paulolima18/Snake_Python | f872f374c573963b4347333e4a2099a8956c9de4 | [
"MIT"
] | null | null | null | snakebot.py | paulolima18/Snake_Python | f872f374c573963b4347333e4a2099a8956c9de4 | [
"MIT"
] | null | null | null | snakebot.py | paulolima18/Snake_Python | f872f374c573963b4347333e4a2099a8956c9de4 | [
"MIT"
] | null | null | null | 'Game1'
'''
x.type so os seguintes
(Tudo em Capslock)
quit
atctiveevent
keydown
keyup
mousemotion
mousebuttonup
mousebuttondown
videioresize
'''
#40pygame
import pygame_textinput
import pygame
import random
width=800
height=600
bsize=20
thick=20
fps=60
direction = 270
wall = 10
pygame.init()
gdisplay=pygame.display.s... | 34.853828 | 165 | 0.503462 |
97c4ceb646afbf2252dacae9ae06cb0ea8c68412 | 327 | py | Python | simplemap/html_render.py | patrick--/simplemap | 1c0a9de1a9c2e35b73f3068511b9c17bc389ba50 | [
"MIT"
] | 126 | 2015-12-31T17:31:40.000Z | 2020-01-21T19:45:27.000Z | simplemap/html_render.py | ptrks/simplemap | 1c0a9de1a9c2e35b73f3068511b9c17bc389ba50 | [
"MIT"
] | 7 | 2016-01-01T17:10:02.000Z | 2018-08-09T08:16:19.000Z | simplemap/html_render.py | ptrks/simplemap | 1c0a9de1a9c2e35b73f3068511b9c17bc389ba50 | [
"MIT"
] | 14 | 2015-12-31T21:49:29.000Z | 2017-09-13T06:19:32.000Z |
"""
simplemap.html_render
~~~~~~~~~~~~~~~~~~~~~
This module contains everything related to Jinja2 HTML rendering.
"""
from jinja2 import Undefined
| 20.4375 | 70 | 0.718654 |
97c5657c514435f5241d15a78f30c3d6d353de51 | 487 | py | Python | P2.2-Intro Data Science/exercises/lesson_5/aadhaar_generated_quiz/aadhaar_generated_reducer.py | lucasosouza/udacity-data-analysis | 2603565cede0c5269ce643584475929f8f2053ce | [
"MIT"
] | null | null | null | P2.2-Intro Data Science/exercises/lesson_5/aadhaar_generated_quiz/aadhaar_generated_reducer.py | lucasosouza/udacity-data-analysis | 2603565cede0c5269ce643584475929f8f2053ce | [
"MIT"
] | null | null | null | P2.2-Intro Data Science/exercises/lesson_5/aadhaar_generated_quiz/aadhaar_generated_reducer.py | lucasosouza/udacity-data-analysis | 2603565cede0c5269ce643584475929f8f2053ce | [
"MIT"
] | null | null | null | import sys
reducer() | 28.647059 | 57 | 0.679671 |
97c69078a7ae6ebe2e0737e89806854c5deb0cda | 3,999 | py | Python | src/genie/libs/parser/nxos/tests/ShowIpv6RipRouteVrfAll/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/nxos/tests/ShowIpv6RipRouteVrfAll/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/nxos/tests/ShowIpv6RipRouteVrfAll/cli/equal/golden_output_2_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z |
expected_output = {
'vrf': {
'default': {
'address_family': {
'ipv4': {
'instance': {
'rip-1': {
'routes': {
'2001:10:12:120::/64': {
'bes... | 47.607143 | 84 | 0.15954 |
97c76c081c460323a55942e3974a52a93f0623d4 | 804 | py | Python | run_tests.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 11 | 2018-10-10T03:14:33.000Z | 2022-01-05T14:18:15.000Z | run_tests.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 196 | 2018-03-21T19:44:56.000Z | 2021-12-21T21:56:24.000Z | run_tests.py | scottwittenburg/vcs | 5b9f17fb78f7ab186fc0132ab81ada043a7ba348 | [
"BSD-3-Clause"
] | 5 | 2019-12-09T21:54:45.000Z | 2022-03-20T04:22:14.000Z | #!/usr/bin/env python
import os
import sys
import cdat_info
test_suite_name = 'vcs'
workdir = os.getcwd()
runner = VCSTestRunner(test_suite_name, options=["--no-vtk-ui", "--vtk"],
options_files=["tests/vcs_runtests.json"],
get_sample_data=True,
te... | 28.714286 | 75 | 0.618159 |
97c77c550cf0c53433815e5c8467ef4ace730897 | 1,007 | py | Python | pyrl/cli/util.py | jponf/pyrl | 1353d59deee2731c509991a6cca90a7b991779bc | [
"Apache-2.0"
] | 2 | 2021-01-25T15:04:45.000Z | 2021-11-05T06:15:40.000Z | pyrl/cli/util.py | jponf/pyrl | 1353d59deee2731c509991a6cca90a7b991779bc | [
"Apache-2.0"
] | null | null | null | pyrl/cli/util.py | jponf/pyrl | 1353d59deee2731c509991a6cca90a7b991779bc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import random
import six
# SciPy Stack
import numpy as np
# Torch
import torch
###############################################################################
def initialize_seed(seed):
"""Initializes the seed of different PRNGs.
:param seed: Value to initialize the PRNGs.
""... | 20.55102 | 79 | 0.569017 |
97c97448c31c9699860a83ac252dd71c1be4c6a6 | 1,522 | py | Python | code/src/main/python/mos/blocks/contest_meta_block.py | anonfse/COSAL_Anonymized | 709906294fd775131f3e019862bbdd554d83773d | [
"Unlicense"
] | null | null | null | code/src/main/python/mos/blocks/contest_meta_block.py | anonfse/COSAL_Anonymized | 709906294fd775131f3e019862bbdd554d83773d | [
"Unlicense"
] | 1 | 2021-11-03T08:28:31.000Z | 2021-11-03T08:28:31.000Z | code/src/main/python/mos/blocks/contest_meta_block.py | anonfse/COSAL_Anonymized | 709906294fd775131f3e019862bbdd554d83773d | [
"Unlicense"
] | 1 | 2022-03-22T14:24:13.000Z | 2022-03-22T14:24:13.000Z |
import sys
import os
sys.path.append(os.path.abspath("."))
sys.dont_write_bytecode = True
__author__ = "COSAL"
from utils.lib import O
| 24.548387 | 59 | 0.653745 |
97ca9e6d4a2bc51de1e8a75b509fdde60fa6a362 | 1,312 | py | Python | app/Product.py | krishotte/web_sperky | fec2e150c146c69d3b002085407c2cd2d749ec6a | [
"MIT"
] | null | null | null | app/Product.py | krishotte/web_sperky | fec2e150c146c69d3b002085407c2cd2d749ec6a | [
"MIT"
] | null | null | null | app/Product.py | krishotte/web_sperky | fec2e150c146c69d3b002085407c2cd2d749ec6a | [
"MIT"
] | null | null | null | """Product Model."""
from config.database import Model
from orator.orm import belongs_to, belongs_to_many, has_many, has_one
| 27.914894 | 119 | 0.681402 |