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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2cee64c765350c049d3f0289910d5b8f629efbd1 | 16,464 | py | Python | darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | null | null | null | darling_ansible/python_venv/lib/python3.7/site-packages/oci/waas/models/health_check.py | revnav/sandbox | f9c8422233d093b76821686b6c249417502cf61d | [
"Apache-2.0"
] | 1 | 2020-06-25T03:12:58.000Z | 2020-06-25T03:12:58.000Z | # coding: utf-8
# Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c... | 37.589041 | 479 | 0.672133 |
2cee8c3838a909612dd4cc9396674d4f705e3fa3 | 409 | py | Python | misc/appveyor_filter.py | ppwwyyxx/taichi | ef0c3367bb06ad78b3457b8f93b5370f14b1d9c4 | [
"MIT"
] | 2 | 2020-10-22T14:57:47.000Z | 2020-10-24T07:30:47.000Z | misc/appveyor_filter.py | zf38473013/taichi | ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb | [
"MIT"
] | 3 | 2020-08-24T09:07:15.000Z | 2020-08-24T09:18:29.000Z | misc/appveyor_filter.py | zf38473013/taichi | ad4d7ae04f4e559e84f6dee4a64ad57c3cf0c7fb | [
"MIT"
] | 1 | 2020-09-29T17:56:48.000Z | 2020-09-29T17:56:48.000Z | import sys
import os
msg = os.environ["APPVEYOR_REPO_COMMIT_MESSAGE"]
if msg.startswith('[release]') or sys.version_info[1] == 6:
exit(
0
) # Build for this configuration (starts with '[release]', or python version is 3.6)
else:
print(
f'[appveyor_filer] Not build for [{msg}] with Python {... | 29.214286 | 89 | 0.657702 |
2cf1316f9ee5f955fd15c0e34a1d960d2f6a156f | 303 | py | Python | mysite/SocialApp/migrations/0003_delete_remotefollow.py | asmao7/Cmput404W2021 | 82c1f42492c93048d5f144e2bbb416764d78013b | [
"MIT"
] | 3 | 2021-01-20T18:23:14.000Z | 2021-02-22T19:38:46.000Z | mysite/SocialApp/migrations/0003_delete_remotefollow.py | asmao7/Cmput404W2021 | 82c1f42492c93048d5f144e2bbb416764d78013b | [
"MIT"
] | 24 | 2021-02-18T19:28:46.000Z | 2021-04-14T17:12:21.000Z | mysite/SocialApp/migrations/0003_delete_remotefollow.py | asmao7/Cmput404W2021 | 82c1f42492c93048d5f144e2bbb416764d78013b | [
"MIT"
] | 1 | 2021-05-13T04:43:00.000Z | 2021-05-13T04:43:00.000Z | # Generated by Django 3.1.6 on 2021-04-12 08:45
from django.db import migrations
| 17.823529 | 49 | 0.613861 |
2cf319393483234ff687e05e713a56ff2a047833 | 6,688 | py | Python | api/tests/opentrons/protocol_runner/test_thread_async_queue.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | 2 | 2015-11-10T17:49:51.000Z | 2016-01-15T04:43:37.000Z | api/tests/opentrons/protocol_runner/test_thread_async_queue.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | null | null | null | api/tests/opentrons/protocol_runner/test_thread_async_queue.py | anuwrag/opentrons | 28c8d76a19e367c6bd38f5290faaa32abf378715 | [
"Apache-2.0"
] | null | null | null | """Tests for thread_async_queue."""
from __future__ import annotations
import asyncio
from concurrent.futures import ThreadPoolExecutor
from itertools import chain
from typing import List, NamedTuple
import pytest
from opentrons.protocol_runner.thread_async_queue import (
ThreadAsyncQueue,
QueueClosed,
)
... | 33.273632 | 88 | 0.683014 |
2cf440be4e7f718674833ee056299fd05b2abad8 | 3,062 | py | Python | courses/data_analysis/deepdive/composer-exercises/subdag_example_solution.py | pranaynanda/training-data-analyst | f10ab778589129239fd5b277cfdefb41638eded5 | [
"Apache-2.0"
] | null | null | null | courses/data_analysis/deepdive/composer-exercises/subdag_example_solution.py | pranaynanda/training-data-analyst | f10ab778589129239fd5b277cfdefb41638eded5 | [
"Apache-2.0"
] | null | null | null | courses/data_analysis/deepdive/composer-exercises/subdag_example_solution.py | pranaynanda/training-data-analyst | f10ab778589129239fd5b277cfdefb41638eded5 | [
"Apache-2.0"
] | null | null | null | """Solution for subdag_example.py.
Uses a factory function to return a DAG that can be used as the subdag argument
to SubDagOperator. Notice that:
1) the SubDAG's dag_id is formatted as parent_dag_id.subdag_task_id
2) the start_date and schedule_interval of the SubDAG are copied from the parent
DAG.
"""
from airflo... | 43.126761 | 113 | 0.625408 |
2cf4f7aa04d5ae102d82d9c9bd6e398a5f525f06 | 5,230 | py | Python | src/export_blueprints.py | nutanixdev/export_blueprints | 5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a | [
"MIT"
] | null | null | null | src/export_blueprints.py | nutanixdev/export_blueprints | 5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a | [
"MIT"
] | null | null | null | src/export_blueprints.py | nutanixdev/export_blueprints | 5100dc3342c4b7d01b7fd4276fd69fc2ff150c5a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.8
"""
export_blueprints.py
Connect to a Nutanix Prism Central instance, grab all Calm blueprints and export them to JSON files.
You would need to *heavily* modify this script for use in a production environment so that it contains appropriate error-checking and exception handling.... | 30.231214 | 157 | 0.573231 |
2cf50032fd22989de13d200d7094ccf88a77e1bb | 3,945 | py | Python | public_ssl_drown_scanner/pyx509/pkcs7/asn1_models/X509_certificate.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | public_ssl_drown_scanner/pyx509/pkcs7/asn1_models/X509_certificate.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | public_ssl_drown_scanner/pyx509/pkcs7/asn1_models/X509_certificate.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z |
#* pyx509 - Python library for parsing X.509
#* Copyright (C) 2009-2010 CZ.NIC, z.s.p.o. (http://www.nic.cz)
#*
#* This library is free software; you can redistribute it and/or
#* modify it under the terms of the GNU Library General Public
#* License as published by the Free Software Foundation; either... | 37.932692 | 159 | 0.710773 |
2cf62110e3ab8800a99fcb288cf2cfd2fa6ffec9 | 141 | py | Python | Codewars/you're a square/you're a square.py | adoreblvnk/code_solutions | 03e4261241dd33a4232dabe0e9450d344f7ccc6d | [
"MIT"
] | null | null | null | Codewars/you're a square/you're a square.py | adoreblvnk/code_solutions | 03e4261241dd33a4232dabe0e9450d344f7ccc6d | [
"MIT"
] | null | null | null | Codewars/you're a square/you're a square.py | adoreblvnk/code_solutions | 03e4261241dd33a4232dabe0e9450d344f7ccc6d | [
"MIT"
] | null | null | null | from math import isqrt
is_square = lambda n: isqrt(n) ** 2 == n if n >= 0 else False
print(is_square(-1)) | 15.666667 | 61 | 0.659574 |
2cf720719acd6ee5090e6cba4b8337c7302d552b | 1,575 | py | Python | change_name.py | agk2000/catalyst_project | 6bae324f24d6d6382e84dcf1f2fedf0d896371e1 | [
"MIT"
] | 2 | 2022-01-12T16:34:25.000Z | 2022-03-30T09:48:33.000Z | solar_PV_utils/change_name.py | BensonRen/Drone_based_solar_PV_detection | 4b45307328d94fb7b1eafa318059ddcb86fda21f | [
"MIT"
] | null | null | null | solar_PV_utils/change_name.py | BensonRen/Drone_based_solar_PV_detection | 4b45307328d94fb7b1eafa318059ddcb86fda21f | [
"MIT"
] | 1 | 2021-09-11T14:55:26.000Z | 2021-09-11T14:55:26.000Z | # The function to change the name of a list of folders
# 2021.06.07 Ben wants to change a list of folder names that is too long for plotting
import numpy as np
import os
import shutil
name_change_dir_list = ['/scratch/sr365/Catalyst_data/every_10m/{}0m/images/save_root'.format(i) for i in range(5, 13)]
def append_n... | 41.447368 | 119 | 0.67619 |
2cf7266e9b31c455b918042035a8554f33eeaf4b | 143 | py | Python | test/unit/__init__.py | comtravo/grafana-dashboards | cd0e6f46408aebd2941ae4abc5b94e45124006a2 | [
"MIT"
] | 8 | 2020-12-09T13:14:53.000Z | 2022-01-29T01:56:30.000Z | test/unit/__init__.py | comtravo/grafana-dashboards | cd0e6f46408aebd2941ae4abc5b94e45124006a2 | [
"MIT"
] | 4 | 2021-02-24T08:49:14.000Z | 2022-01-22T18:17:32.000Z | test/unit/__init__.py | comtravo/grafana-dashboards | cd0e6f46408aebd2941ae4abc5b94e45124006a2 | [
"MIT"
] | null | null | null | """
tests module
"""
import os
import sys
import sure
ROOT_DIR = os.path.join(os.path.dirname(__file__), "../..")
sys.path.append(ROOT_DIR)
| 11.916667 | 59 | 0.685315 |
2cf7ede7519b76677c68ab0cf790c978c3c5cc8f | 203 | py | Python | genda/formats/__init__.py | jeffhsu3/genda | 5adbb5b5620c592849fa4a61126b934e1857cd77 | [
"BSD-3-Clause"
] | 5 | 2016-01-12T15:12:18.000Z | 2022-02-10T21:57:39.000Z | genda/formats/__init__.py | jeffhsu3/genda | 5adbb5b5620c592849fa4a61126b934e1857cd77 | [
"BSD-3-Clause"
] | 5 | 2015-01-20T04:22:50.000Z | 2018-10-02T19:39:12.000Z | genda/formats/__init__.py | jeffhsu3/genda | 5adbb5b5620c592849fa4a61126b934e1857cd77 | [
"BSD-3-Clause"
] | 1 | 2022-03-04T06:49:39.000Z | 2022-03-04T06:49:39.000Z | """ Formats submodule contains classes and functions
to parse various formats into pandas dataframes as
well as lookup utilities to various formats
"""
from .gene_utils import *
from .panVCF import VCF
| 25.375 | 52 | 0.79803 |
2cf8d4d1bb868ca0298242ce158fc4c9f8b561f1 | 6,046 | py | Python | src/api/bkuser_core/categories/plugins/plugin.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/api/bkuser_core/categories/plugins/plugin.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/api/bkuser_core/categories/plugins/plugin.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making -(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Yo... | 41.986111 | 116 | 0.662256 |
2cf913172f053454c3779f2bdd6081d51582533f | 175 | py | Python | blog/templatetags/markdownify.py | darkLord19/blog | 16c3b72fef9d22ccfa606934c8b94fc0feb82103 | [
"MIT"
] | 12 | 2018-01-30T00:44:06.000Z | 2020-07-13T05:20:48.000Z | blog/templatetags/markdownify.py | darkLord19/blog | 16c3b72fef9d22ccfa606934c8b94fc0feb82103 | [
"MIT"
] | 36 | 2018-03-06T17:49:50.000Z | 2020-06-23T19:26:00.000Z | web/templatetags/markdown.py | odinje/yactff | d55ece2905ca49114f7ec15bbcd354cacb49b973 | [
"MIT"
] | 3 | 2018-08-03T07:03:09.000Z | 2020-07-09T20:21:10.000Z | from django import template
import mistune
register = template.Library()
| 15.909091 | 33 | 0.754286 |
2cf97b1d907f72ad5a0f43ac1cc591d832dc9a6f | 2,758 | py | Python | hummingbot/connector/exchange/k2/k2_in_flight_order.py | d3alek/hummingbot | 14d6c3b8c4d34c44079c45ef6cd05e9c192f241c | [
"Apache-2.0"
] | null | null | null | hummingbot/connector/exchange/k2/k2_in_flight_order.py | d3alek/hummingbot | 14d6c3b8c4d34c44079c45ef6cd05e9c192f241c | [
"Apache-2.0"
] | null | null | null | hummingbot/connector/exchange/k2/k2_in_flight_order.py | d3alek/hummingbot | 14d6c3b8c4d34c44079c45ef6cd05e9c192f241c | [
"Apache-2.0"
] | null | null | null | import asyncio
from decimal import Decimal
from typing import (
Any,
Dict,
Optional,
)
from hummingbot.connector.exchange.k2.k2_utils import convert_from_exchange_trading_pair
from hummingbot.connector.in_flight_order_base import InFlightOrderBase
from hummingbot.core.event.events import (
OrderType,
... | 31.701149 | 95 | 0.617476 |
2cf9a7344995d303c32d96dce9e5be80b38ca7df | 3,164 | py | Python | finite/storage/factom/__init__.py | FactomProject/finite | 6a55d815073d1015e21c3abe55eb1ca7ea75defa | [
"MIT"
] | null | null | null | finite/storage/factom/__init__.py | FactomProject/finite | 6a55d815073d1015e21c3abe55eb1ca7ea75defa | [
"MIT"
] | null | null | null | finite/storage/factom/__init__.py | FactomProject/finite | 6a55d815073d1015e21c3abe55eb1ca7ea75defa | [
"MIT"
] | null | null | null | import json
from finite.storage import new_uuid
SUPERUSER = '*'
""" role used to bypass all permission checks """
ROOT_UUID = '00000000-0000-0000-0000-000000000000'
""" parent UUID used to initialize a stream """
DEFAULT_SCHEMA = 'base'
""" event schema to use if not provided """
def __call__(self, action, ... | 25.934426 | 109 | 0.520544 |
2cfaa098a5bde08da247bf4b6a018a03f20be4ee | 704 | py | Python | bin/notify.py | nfischer/dotfiles | 40daa50f9375a987cf5c76606e34db08c1ed8a98 | [
"MIT"
] | 4 | 2016-08-30T03:56:31.000Z | 2017-08-16T02:46:49.000Z | bin/notify.py | nfischer/dotfiles | 40daa50f9375a987cf5c76606e34db08c1ed8a98 | [
"MIT"
] | 7 | 2017-09-16T06:32:57.000Z | 2018-07-04T01:15:28.000Z | bin/notify.py | nfischer/dotfiles | 40daa50f9375a987cf5c76606e34db08c1ed8a98 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import dbus
import sys
DEFAULT_TIMEOUT = 4000
# If run as a script, just display the argv as summary
if __name__ == '__main__':
notify(summary=' '.join(sys.argv[1:]))
| 32 | 70 | 0.705966 |
2cfaf45dde9f79b4daea8e34b742698f034e176d | 685 | py | Python | code/exampleStrats/gradualtft.py | protonlaser91/PrisonersDilemmaTournament | 5a24aca5149b4768778de820eaaf6b096c4aff6d | [
"MIT"
] | null | null | null | code/exampleStrats/gradualtft.py | protonlaser91/PrisonersDilemmaTournament | 5a24aca5149b4768778de820eaaf6b096c4aff6d | [
"MIT"
] | null | null | null | code/exampleStrats/gradualtft.py | protonlaser91/PrisonersDilemmaTournament | 5a24aca5149b4768778de820eaaf6b096c4aff6d | [
"MIT"
] | null | null | null | import numpy as np
from random import random
| 27.4 | 81 | 0.643796 |
2cfb8abfe4a94bc0ccc1207406144720bd05773e | 5,558 | py | Python | indico/modules/oauth/provider_test.py | uxmaster/indico | ecd19f17ef6fdc9f5584f59c87ec647319ce5d31 | [
"MIT"
] | 1 | 2019-11-03T11:34:16.000Z | 2019-11-03T11:34:16.000Z | indico/modules/oauth/provider_test.py | NP-compete/indico | 80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549 | [
"MIT"
] | null | null | null | indico/modules/oauth/provider_test.py | NP-compete/indico | 80db7ca0ef9d1f3240a16b9ff2d84bf0bf26c549 | [
"MIT"
] | null | null | null | # This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from datetime import datetime, timedelta
from uuid import uuid4
import pytest
from flask import session
f... | 34.955975 | 112 | 0.725621 |
2cfcfb9e9b672e889b4728cb7b9faa88f7e34168 | 72 | py | Python | 2019/Python/Day_6/__init__.py | airstandley/AdventofCode | 86b7e289d67ba3ea31a78f4a4005253098f47254 | [
"MIT"
] | null | null | null | 2019/Python/Day_6/__init__.py | airstandley/AdventofCode | 86b7e289d67ba3ea31a78f4a4005253098f47254 | [
"MIT"
] | null | null | null | 2019/Python/Day_6/__init__.py | airstandley/AdventofCode | 86b7e289d67ba3ea31a78f4a4005253098f47254 | [
"MIT"
] | null | null | null | """
Day 6: Universal Orbit Map (https://adventofcode.com/2019/day/6)
""" | 24 | 64 | 0.680556 |
2cfe6a6691ee44f3aa077c5ff3abfea13c8da13d | 1,031 | py | Python | tests/service/test_log_cloudwatch.py | wenhaizhu/FBPCS | cf103135acf44e879dab7c9819a5a8f0e22ef702 | [
"MIT"
] | null | null | null | tests/service/test_log_cloudwatch.py | wenhaizhu/FBPCS | cf103135acf44e879dab7c9819a5a8f0e22ef702 | [
"MIT"
] | null | null | null | tests/service/test_log_cloudwatch.py | wenhaizhu/FBPCS | cf103135acf44e879dab7c9819a5a8f0e22ef702 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
from unittest.mock import MagicMock, patch
from fbpcs.service.log_cloudwatch import CloudWatchLogServi... | 38.185185 | 81 | 0.758487 |
2cffde54fce64df2346d3c12e08ed04887efeb6d | 129 | py | Python | build/ARM/arch/arm/ArmSemihosting.py | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/ARM/arch/arm/ArmSemihosting.py | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/arch/arm/ArmSemihosting.py | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:60c08155c02f8c1321979a81a67a2ef5a0bc292b2d26a9e5be7e6e1cb484e248
size 2756
| 32.25 | 75 | 0.883721 |
fa01295cd72e1cc24e99fe0b555865e4e352a352 | 844 | py | Python | cqi_cpp/src/wrapper/discrete.py | AMR-/Conservative-Q-Improvement | f9d47b33fe757475d3216d3c406d147206738c90 | [
"MIT"
] | null | null | null | cqi_cpp/src/wrapper/discrete.py | AMR-/Conservative-Q-Improvement | f9d47b33fe757475d3216d3c406d147206738c90 | [
"MIT"
] | null | null | null | cqi_cpp/src/wrapper/discrete.py | AMR-/Conservative-Q-Improvement | f9d47b33fe757475d3216d3c406d147206738c90 | [
"MIT"
] | null | null | null | import numpy as np
from .space import Space
| 24.823529 | 120 | 0.555687 |
fa01b60aac42da66a6f0eab342c49c8c76904fbf | 87 | py | Python | lab02/eurocv/apps.py | vascoalramos/tpw | e0d1ab14f1e701dd2b2a77522c57cb22fda85e56 | [
"MIT"
] | null | null | null | lab02/eurocv/apps.py | vascoalramos/tpw | e0d1ab14f1e701dd2b2a77522c57cb22fda85e56 | [
"MIT"
] | null | null | null | lab02/eurocv/apps.py | vascoalramos/tpw | e0d1ab14f1e701dd2b2a77522c57cb22fda85e56 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 14.5 | 33 | 0.747126 |
fa025170f51f5c6eb69696b0c97480d3cf254f86 | 1,914 | py | Python | 2020/13/solution2.py | mitchellrj/adventofcode | e7a55d59a51292218b8849a7428fa32bd0371727 | [
"WTFPL"
] | null | null | null | 2020/13/solution2.py | mitchellrj/adventofcode | e7a55d59a51292218b8849a7428fa32bd0371727 | [
"WTFPL"
] | null | null | null | 2020/13/solution2.py | mitchellrj/adventofcode | e7a55d59a51292218b8849a7428fa32bd0371727 | [
"WTFPL"
] | null | null | null | import functools
import math
import operator
import sys
import time
if __name__ == '__main__':
fname = sys.argv[1]
init = int((sys.argv[2:] + [0])[0])
with open(fname, 'r') as fh:
inputs = reader(fh)
start = time.monotonic_ns()
result = main(inputs, init)
end = time.monotonic_ns()
... | 27.342857 | 120 | 0.570533 |
fa035cd8d58bb677605584ef22cf203bfd4ff3ef | 17,693 | py | Python | pyrosetta/models/_overrides.py | blockjoe/rosetta-api-client-python | 707f325f7560ffa6d5dfe361aff4779cc0b7182f | [
"Apache-2.0"
] | null | null | null | pyrosetta/models/_overrides.py | blockjoe/rosetta-api-client-python | 707f325f7560ffa6d5dfe361aff4779cc0b7182f | [
"Apache-2.0"
] | null | null | null | pyrosetta/models/_overrides.py | blockjoe/rosetta-api-client-python | 707f325f7560ffa6d5dfe361aff4779cc0b7182f | [
"Apache-2.0"
] | null | null | null | from textwrap import indent
from ._models import *
SubNetworkIdentifier.__str__ = str_SubNetworkIdentifier
NetworkIdentifier.__str__ = str_NetworkIdentifier
OperationStatus.__str__ = str_OperationStatus
Error.__str__ = str_Error
Currency.__str__ = str_Currency
BalanceExemption.__str__ = str_BalanceExemption
Al... | 39.317778 | 107 | 0.651048 |
fa0387e8bd74f0b0f503dfeea41eb47cd54c1fe4 | 1,331 | py | Python | src/lockstep/models/arheaderinfomodel.py | sfwatanabe/lockstep-sdk-python | b388c818663a4b090debb68c65c18728a082fec0 | [
"MIT"
] | 1 | 2022-03-17T00:23:24.000Z | 2022-03-17T00:23:24.000Z | src/lockstep/models/arheaderinfomodel.py | sfwatanabe/lockstep-sdk-python | b388c818663a4b090debb68c65c18728a082fec0 | [
"MIT"
] | null | null | null | src/lockstep/models/arheaderinfomodel.py | sfwatanabe/lockstep-sdk-python | b388c818663a4b090debb68c65c18728a082fec0 | [
"MIT"
] | null | null | null | #
# Lockstep Software Development Kit for Python
#
# (c) 2021-2022 Lockstep, Inc.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Ted Spence <tspence@lockstep.io>
# @copyright 2021-2022 Lockstep, Inc.
# @version 2022.4
# ... | 28.934783 | 73 | 0.731029 |
fa048e87ea337e5c20190eb2cfaa54ef301156c6 | 3,477 | py | Python | aae/server.py | ez-corp/easy | c0cd3eb8787eb445cbf2ea2fab4f5320aa229012 | [
"MIT"
] | null | null | null | aae/server.py | ez-corp/easy | c0cd3eb8787eb445cbf2ea2fab4f5320aa229012 | [
"MIT"
] | null | null | null | aae/server.py | ez-corp/easy | c0cd3eb8787eb445cbf2ea2fab4f5320aa229012 | [
"MIT"
] | null | null | null | # coding=utf-8
import time
from flask import Flask
from flask import jsonify
from flask import request
from werkzeug.exceptions import BadRequest
from containers import grade_submission, RunStatus
# TODO: move to conf file
TIME_EXCEEDED_MESSAGE = "Programmi kontrollimine letas lubatud kivitusaega."
MEM_EXCEEDED_MES... | 31.609091 | 117 | 0.67702 |
fa04a1e6f72faada0d2891b854d62e5f2153ccd5 | 1,046 | py | Python | code03[efficient].py | inaxia/face_recognition_in_image | 1979e89e22a79b4473b5f629669709da886e3e0b | [
"MIT"
] | 1 | 2020-10-19T20:18:11.000Z | 2020-10-19T20:18:11.000Z | code03[efficient].py | inaxia/face_recognition_in_image | 1979e89e22a79b4473b5f629669709da886e3e0b | [
"MIT"
] | null | null | null | code03[efficient].py | inaxia/face_recognition_in_image | 1979e89e22a79b4473b5f629669709da886e3e0b | [
"MIT"
] | null | null | null | # THIS IS A SHORTENED CODE
# WE ARE COMPARING ONE IMAGE WITH ALL IMAGES IN 'ASSETS' FOLDER
# ALSO CHECKS THE TOTAL TIME TAKEN
# HERE, IMAGES ARE NOT SHOWN
from cv2 import cv2
import face_recognition
import os
import time
# FOR CHECKING THE CPU TIME
startTimer = time.process_time()
# FUNCTION TO GET FACE LOCATION AND... | 32.6875 | 83 | 0.760038 |
fa04b991cc6d146ac7f1dac666aa9bb071d80333 | 908 | py | Python | scripts/media_to_wp.py | benjaminaschultz/pypress | 358e088ac361aa4ae808f0a3d05fb6320d62240c | [
"MIT"
] | 2 | 2015-01-25T17:21:53.000Z | 2020-02-15T08:30:26.000Z | scripts/media_to_wp.py | benjaminaschultz/pypress | 358e088ac361aa4ae808f0a3d05fb6320d62240c | [
"MIT"
] | 1 | 2015-04-22T20:36:01.000Z | 2015-04-22T20:36:01.000Z | scripts/media_to_wp.py | benjaminaschultz/pypress | 358e088ac361aa4ae808f0a3d05fb6320d62240c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os,re,sys
import mimetypes as mt
import argparse
import wordpress_xmlrpc as wp
from pypress import *
if __name__=="__main__":
main(sys.argv[1:])
| 34.923077 | 115 | 0.709251 |
fa05d36ef8abee158f25e36a1d1976c52c9722c5 | 6,577 | py | Python | GOKOTAI/commands/Meteor/entry.py | kantoku-code/Fusion360_GOKOTAI | 1a0644233ca3638c6f864d135f69f90192f31c23 | [
"MIT"
] | 1 | 2022-03-18T13:03:22.000Z | 2022-03-18T13:03:22.000Z | GOKOTAI/commands/Meteor/entry.py | kantoku-code/Fusion360_GOKOTAI | 1a0644233ca3638c6f864d135f69f90192f31c23 | [
"MIT"
] | null | null | null | GOKOTAI/commands/Meteor/entry.py | kantoku-code/Fusion360_GOKOTAI | 1a0644233ca3638c6f864d135f69f90192f31c23 | [
"MIT"
] | null | null | null | import adsk.core
import adsk.fusion
import os
from ...lib import fusion360utils as futil
from ... import config
import math
app = adsk.core.Application.get()
ui = app.userInterface
# TODO *** ID ***
CMD_ID = f'{config.COMPANY_NAME}_{config.ADDIN_NAME}_Meteor'
CMD_NAME = ''
CMD_Description = 'Z'
#
... | 26.203187 | 88 | 0.638285 |
fa0619b095728c9cbe0aa36d7fe788dda554c238 | 3,704 | py | Python | tp/log/es.py | chinapnr/agbot | 9739ce1c2198e50111629db2d1de785edd06876e | [
"MIT"
] | 2 | 2018-06-23T06:48:46.000Z | 2018-06-23T10:11:50.000Z | tp/log/es.py | chinapnr/agbot | 9739ce1c2198e50111629db2d1de785edd06876e | [
"MIT"
] | 5 | 2020-01-03T09:33:02.000Z | 2021-06-02T00:49:52.000Z | tp/log/es.py | chinapnr/agbot | 9739ce1c2198e50111629db2d1de785edd06876e | [
"MIT"
] | 1 | 2021-07-07T07:17:27.000Z | 2021-07-07T07:17:27.000Z | import re
import time
from datetime import datetime
from enum import Enum
from fishbase.fish_logger import logger
from .elk_connector import Es
from ..base.tp_base import TpBase, TestStatus, Conf, VerticalContext
from ..base.tp_base import get_params_dict
# LogTestPoint
#
# 2018.6.12 create by yanan.wu #806640
... | 35.615385 | 140 | 0.601242 |
fa063d565e386e5f6704b88cfa4179fa400be8cb | 5,326 | py | Python | main.py | nmanzini/flashcardipy | a36be3d733d27d5252485d3b9ff71437dc3453cf | [
"MIT"
] | null | null | null | main.py | nmanzini/flashcardipy | a36be3d733d27d5252485d3b9ff71437dc3453cf | [
"MIT"
] | null | null | null | main.py | nmanzini/flashcardipy | a36be3d733d27d5252485d3b9ff71437dc3453cf | [
"MIT"
] | null | null | null | import sqlite3, random, os
import time
name = 'test01.db'
filename = "grelist.txt"
conn = sqlite3.connect(name)
c = conn.cursor()
'''word, definition, example, history, time, seen, right, wrong, streak, reported'''
if __name__ == "__main__":
while True:
test_word = Word(chooser())
result = test_... | 28.481283 | 108 | 0.533421 |
fa078e49a61057ac1da2c5e2c17b188b1fbf01de | 128 | py | Python | shit.py | rangehow/TransformerForMT | 48ec2fb5350003063290f2ad14d55c642517c026 | [
"MIT"
] | null | null | null | shit.py | rangehow/TransformerForMT | 48ec2fb5350003063290f2ad14d55c642517c026 | [
"MIT"
] | null | null | null | shit.py | rangehow/TransformerForMT | 48ec2fb5350003063290f2ad14d55c642517c026 | [
"MIT"
] | null | null | null | import math
from typing import List
import numpy as np
import torch
a = torch.randn(4, 3,2)
print(a)
print(torch.argmax(a, -1)) | 16 | 26 | 0.734375 |
fa07d8d54e3e7e71f0d6bf08b9fe0410c6904351 | 6,536 | py | Python | tcr/status.py | kris-76/thecardroom | 8a527f0a6d8e3339bbd76fe2bebe029517f29deb | [
"MIT"
] | 5 | 2021-11-27T16:40:05.000Z | 2022-02-20T18:46:43.000Z | tcr/status.py | kris-76/thecardroom | 8a527f0a6d8e3339bbd76fe2bebe029517f29deb | [
"MIT"
] | null | null | null | tcr/status.py | kris-76/thecardroom | 8a527f0a6d8e3339bbd76fe2bebe029517f29deb | [
"MIT"
] | 4 | 2022-02-03T08:08:46.000Z | 2022-03-03T07:14:41.000Z | #
# Copyright 2021 Kristofer Henderson
#
# MIT License:
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, ... | 38.674556 | 108 | 0.577264 |
fa0982dc1f168404670380a21142d00f25739e44 | 2,863 | py | Python | aws/ec2/manage.py | amaga38/discord_bot | 99093189ef9e50ca4152b47546deacec78cb6983 | [
"MIT"
] | null | null | null | aws/ec2/manage.py | amaga38/discord_bot | 99093189ef9e50ca4152b47546deacec78cb6983 | [
"MIT"
] | null | null | null | aws/ec2/manage.py | amaga38/discord_bot | 99093189ef9e50ca4152b47546deacec78cb6983 | [
"MIT"
] | null | null | null | import sys
import json
import boto3
from botocore.exceptions import ClientError
from . import config
if __name__ == '__main__':
test()
| 30.457447 | 80 | 0.555012 |
fa0a0031b6771b43d0976594e38309c2e2f0ab94 | 156 | py | Python | submissions/templatetags/auth_extras.py | lesves/acceptor | 07c3e144e93f27e8355effbfe95a1f01dc818a90 | [
"MIT"
] | 1 | 2022-01-03T21:42:37.000Z | 2022-01-03T21:42:37.000Z | submissions/templatetags/auth_extras.py | lesves/acceptor | 07c3e144e93f27e8355effbfe95a1f01dc818a90 | [
"MIT"
] | null | null | null | submissions/templatetags/auth_extras.py | lesves/acceptor | 07c3e144e93f27e8355effbfe95a1f01dc818a90 | [
"MIT"
] | null | null | null | from django import template
register = template.Library()
| 19.5 | 50 | 0.75 |
fa0b649415efbfbba1ac84c2d59ac1cdd94fe947 | 5,081 | py | Python | python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py | zzztimbo/dagster | 5cf8f159183a80d2364e05bb30362e2798a7af37 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py | zzztimbo/dagster | 5cf8f159183a80d2364e05bb30362e2798a7af37 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster-graphql/dagster_graphql/implementation/fetch_pipelines.py | zzztimbo/dagster | 5cf8f159183a80d2364e05bb30362e2798a7af37 | [
"Apache-2.0"
] | null | null | null | import sys
from dagster_graphql.schema.pipelines import DauphinPipeline, DauphinPipelineSnapshot
from graphql.execution.base import ResolveInfo
from dagster import check
from dagster.core.definitions.pipeline import ExecutionSelector
from dagster.core.errors import DagsterInvalidDefinitionError
from dagster.utils.err... | 41.647541 | 98 | 0.739618 |
fa0d80b9aeafc9ccb67f6cea2a2f78fcffb1f863 | 701 | py | Python | tests/snippets/index_overflow.py | khg0712/RustPython | a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae | [
"MIT"
] | 3 | 2019-08-14T02:05:49.000Z | 2020-01-03T08:39:56.000Z | tests/snippets/index_overflow.py | khg0712/RustPython | a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae | [
"MIT"
] | 6 | 2021-10-14T15:55:16.000Z | 2022-03-31T14:04:02.000Z | tests/snippets/index_overflow.py | khg0712/RustPython | a04c19ccb0f5e7e1774d5e6f267ffed3ee27aeae | [
"MIT"
] | 1 | 2020-05-26T15:20:20.000Z | 2020-05-26T15:20:20.000Z | import sys
MAX_INDEX = sys.maxsize + 1
MIN_INDEX = -(MAX_INDEX + 1)
test_str = "test"
expect_cannot_fit_index_error(test_str, MIN_INDEX)
expect_cannot_fit_index_error(test_str, MAX_INDEX)
test_list = [0, 1, 2, 3]
expect_cannot_fit_index_error(test_list, MIN_INDEX)
expect_cannot_fit_index_error(test_list, MAX_INDEX... | 25.962963 | 77 | 0.727532 |
fa0e99500da23e759265befa87f20ecc71948e4b | 7,495 | py | Python | src/spn/experiments/FPGA/RunNative.py | QueensGambit/SPFlow | 2b4d5ec58ff90927177441004df0a49cb69791fb | [
"Apache-2.0"
] | null | null | null | src/spn/experiments/FPGA/RunNative.py | QueensGambit/SPFlow | 2b4d5ec58ff90927177441004df0a49cb69791fb | [
"Apache-2.0"
] | null | null | null | src/spn/experiments/FPGA/RunNative.py | QueensGambit/SPFlow | 2b4d5ec58ff90927177441004df0a49cb69791fb | [
"Apache-2.0"
] | null | null | null | """
Created on March 26, 2018
@author: Alejandro Molina
"""
import glob
import os
import platform
import subprocess
from collections import OrderedDict
import numpy as np
from natsort import natsorted
from spn.algorithms.Inference import likelihood
from spn.experiments.FPGA.GenerateSPNs import load_spn_from_file, fp... | 34.068182 | 112 | 0.598132 |
fa1043f553e1c60667839cc0926b5837cdef559f | 576 | py | Python | api/views.py | AktanKasymaliev/django_blog_site_fullstack | 146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1 | [
"MIT"
] | 1 | 2021-06-29T15:17:06.000Z | 2021-06-29T15:17:06.000Z | api/views.py | AktanKasymaliev/django_blog_site_fullstack | 146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1 | [
"MIT"
] | null | null | null | api/views.py | AktanKasymaliev/django_blog_site_fullstack | 146a03a58c12bf61ff32cadfbb66e7f0ecbcf6b1 | [
"MIT"
] | null | null | null | from rest_framework import generics
from blogs.models import Comments
from .serializers import CommentsSerializer, UsersSerializers
from rest_framework.permissions import AllowAny, IsAuthenticated, IsAdminUser
from customUsers.models import User
# Users
| 33.882353 | 77 | 0.8125 |
fa11053785bbc9426fa980dd1bd5615c9a3ba8c5 | 562 | py | Python | client/__init__.py | mycelium-ethereum/punk-offerbook | 5804a27fe26af0d613fd5281f0f17b9c207f1822 | [
"MIT"
] | null | null | null | client/__init__.py | mycelium-ethereum/punk-offerbook | 5804a27fe26af0d613fd5281f0f17b9c207f1822 | [
"MIT"
] | null | null | null | client/__init__.py | mycelium-ethereum/punk-offerbook | 5804a27fe26af0d613fd5281f0f17b9c207f1822 | [
"MIT"
] | null | null | null | from dotenv import load_dotenv
load_dotenv();
import os
import json
import settings
from web3 import Web3
from client.Mongo import Mongo
from client.Webhook import webhook
from client.Opensea import Opensea
abis = get_raw_abis(settings.ABI_PATHS)
web3 = Web3(Web3.HTTPProvider(os.environ.get("ETH_HTTP_URL")))
mongo = ... | 25.545455 | 62 | 0.731317 |
fa12c48a1797c75639adb55946f33942c0b816e2 | 401 | py | Python | src/indexer.py | HypoChloremic/fcsan | 37f75b69eab0285d309b198ffa51cee9556d849a | [
"MIT"
] | null | null | null | src/indexer.py | HypoChloremic/fcsan | 37f75b69eab0285d309b198ffa51cee9556d849a | [
"MIT"
] | null | null | null | src/indexer.py | HypoChloremic/fcsan | 37f75b69eab0285d309b198ffa51cee9556d849a | [
"MIT"
] | null | null | null | from analyze import Analyze
import argparse
# ap = argparse.ArgumentParser()
# ap.addargument("-f", "--folder")
# opts = ap.parse_args()
run = Analyze()
run.read()
files = run.files
indexer() | 19.095238 | 65 | 0.645885 |
fa12c7d1995b97754015bbb18baea049a24d51b2 | 1,056 | py | Python | Leetcode Practice/strStr.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | 2 | 2020-04-11T14:15:10.000Z | 2020-05-12T09:57:29.000Z | Leetcode Practice/strStr.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | null | null | null | Leetcode Practice/strStr.py | falconcode16/pythonprogramming | fc53a879be473ebceb1d7da061b0e8fc2a20706c | [
"MIT"
] | 1 | 2021-10-10T02:13:42.000Z | 2021-10-10T02:13:42.000Z | # Link - https://leetcode.com/problems/implement-strstr/
"""
28. Implement strStr()
Implement strStr().
Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.
Clarification:
What should we return when needle is an empty string? This is a great question to ask during... | 22 | 138 | 0.660985 |
fa132dcd77d4356013f00fce442c60e3fac1fb8d | 816 | py | Python | skaio/scheduler.py | cipriantarta/skaio | 30716a3bd30d055c0c18d10a899522934bb71613 | [
"BSD-3-Clause"
] | null | null | null | skaio/scheduler.py | cipriantarta/skaio | 30716a3bd30d055c0c18d10a899522934bb71613 | [
"BSD-3-Clause"
] | null | null | null | skaio/scheduler.py | cipriantarta/skaio | 30716a3bd30d055c0c18d10a899522934bb71613 | [
"BSD-3-Clause"
] | null | null | null | import importlib.util
import inspect
from skaio import log
from skaio.core.publisher import Publisher
from skaio.core.base.task import BaseTask
from skaio.utils.common import get_loop
tasks = ['samples.simple_tasks']
| 32.64 | 65 | 0.590686 |
fa14df4a641344d268ffc7e3fb5ac45c848bc4ad | 10,347 | py | Python | rotkehlchen/accounting/export/csv.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 137 | 2018-03-05T11:53:29.000Z | 2019-11-03T16:38:42.000Z | rotkehlchen/accounting/export/csv.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 385 | 2018-03-08T12:43:41.000Z | 2019-11-10T09:15:36.000Z | rotkehlchen/accounting/export/csv.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 59 | 2018-03-08T10:08:27.000Z | 2019-10-26T11:30:44.000Z | import json
import logging
from csv import DictWriter
from pathlib import Path
from tempfile import mkdtemp
from typing import TYPE_CHECKING, Any, Dict, List, Literal, Tuple
from zipfile import ZIP_DEFLATED, ZipFile
from rotkehlchen.accounting.pnl import PnlTotals
from rotkehlchen.constants.misc import ZERO
from rotke... | 35.193878 | 120 | 0.590896 |
fa1575f93b6616c8d5798896a41c353c1200f26e | 551 | py | Python | tests/ut/bq_test_kit/interpolators/test_shell_interpolator.py | tiboun/python-bigquery-test-kit | 8f62bdf21122b615f56088a8e2701e0bb4c71f3b | [
"MIT"
] | 31 | 2021-03-03T21:07:44.000Z | 2022-03-20T22:00:45.000Z | tests/ut/bq_test_kit/interpolators/test_shell_interpolator.py | tiboun/python-bq-test-kit | 8f62bdf21122b615f56088a8e2701e0bb4c71f3b | [
"MIT"
] | 14 | 2020-11-25T20:45:31.000Z | 2021-01-29T13:06:28.000Z | tests/ut/bq_test_kit/interpolators/test_shell_interpolator.py | tiboun/python-bq-test-kit | 8f62bdf21122b615f56088a8e2701e0bb4c71f3b | [
"MIT"
] | null | null | null | # Copyright (c) 2020 Bounkong Khamphousone
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
from bq_test_kit.interpolators.shell_interpolator import ShellInterpolator
| 36.733333 | 93 | 0.669691 |
fa17a8836d0b0829d07d117b80ec33b5f3ae92ce | 1,123 | py | Python | Analytics_Deployment/amls/model_deployment/download_model.py | dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator | 7ce56d00071bd1f521429dd15ea14c0d0b217008 | [
"MIT"
] | 12 | 2021-02-13T06:23:05.000Z | 2022-03-26T05:17:49.000Z | Analytics_Deployment/amls/model_deployment/download_model.py | dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator | 7ce56d00071bd1f521429dd15ea14c0d0b217008 | [
"MIT"
] | 1 | 2021-10-17T00:23:51.000Z | 2021-10-17T00:23:51.000Z | Analytics_Deployment/amls/model_deployment/download_model.py | dciborow/Azure-Synapse-Retail-Recommender-Solution-Accelerator | 7ce56d00071bd1f521429dd15ea14c0d0b217008 | [
"MIT"
] | 13 | 2021-02-13T06:23:07.000Z | 2022-02-25T11:23:24.000Z | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
import os, uuid, sys, pickle, shutil, io, logging
from azure.storage.filedatalake import DataLakeServiceClient
from azure.core._match_conditions import MatchConditions
from azure.storage.filedatalake._models import ContentSet... | 48.826087 | 163 | 0.836153 |
fa17e8b1f375783af0ed86095777f566aaaf4a26 | 15,480 | py | Python | tests/server/test_storage.py | ecoen66/imcsdk | b10eaa926a5ee57cea7182ae0adc8dd1c818b0ab | [
"Apache-2.0"
] | 31 | 2016-06-14T07:23:59.000Z | 2021-09-12T17:17:26.000Z | tests/server/test_storage.py | sthagen/imcsdk | 1831eaecb5960ca03a8624b1579521749762b932 | [
"Apache-2.0"
] | 109 | 2016-05-25T03:56:56.000Z | 2021-10-18T02:58:12.000Z | tests/server/test_storage.py | sthagen/imcsdk | 1831eaecb5960ca03a8624b1579521749762b932 | [
"Apache-2.0"
] | 67 | 2016-05-17T05:53:56.000Z | 2022-03-24T15:52:53.000Z | # Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 38.7 | 101 | 0.581848 |
fa19487e15aeeab2574bd34a25e68c329059d835 | 3,274 | py | Python | parsers/demoty.py | discord-advertiser/api | 81b168f6326a67f3af2927bd9ba54c2a3d8c27a0 | [
"MIT"
] | 18 | 2018-06-08T19:39:11.000Z | 2021-06-04T08:25:57.000Z | parsers/demoty.py | discord-advertiser/api | 81b168f6326a67f3af2927bd9ba54c2a3d8c27a0 | [
"MIT"
] | 17 | 2017-12-05T18:24:38.000Z | 2021-06-01T23:49:28.000Z | parsers/demoty.py | discord-advertiser/api | 81b168f6326a67f3af2927bd9ba54c2a3d8c27a0 | [
"MIT"
] | 6 | 2019-03-20T19:29:41.000Z | 2022-01-25T13:08:24.000Z | from parsel import Selector
from utils import (
download,
remove_big_whitespaces_selector,
find_id_in_url,
catch_errors,
get_last_part_url,
)
from data import VideoContent, GalleryContent, ImageContent, Meme, Author, Page
import re
ROOT = "https://m.demotywatory.pl"
| 27.982906 | 85 | 0.626451 |
fa1c471e585180b23bf9534e145118cd67482d08 | 3,036 | py | Python | evaluate_sklearn.py | syenn2896/batik-recommendation | c1bd88e9e4448d5baa48880524ab9ffa356f5777 | [
"BSD-2-Clause"
] | null | null | null | evaluate_sklearn.py | syenn2896/batik-recommendation | c1bd88e9e4448d5baa48880524ab9ffa356f5777 | [
"BSD-2-Clause"
] | null | null | null | evaluate_sklearn.py | syenn2896/batik-recommendation | c1bd88e9e4448d5baa48880524ab9ffa356f5777 | [
"BSD-2-Clause"
] | null | null | null | import sys
import tables
import numpy as np
import argparse
import pickle
from sklearn.metrics import accuracy_score, confusion_matrix
from sklearn.model_selection import cross_val_score
from sklearn.preprocessing import StandardScaler
from sklearn.tree import DecisionTreeClassifier
from sklearn.svm import SVC... | 38.43038 | 172 | 0.737154 |
fa1ec522fb870aa12118b32f01be14c44f8786bc | 552 | py | Python | 01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0019.py | moacirsouza/nadas | ad98d73b4281d1581fd2b2a9d29001acb426ee56 | [
"MIT"
] | 1 | 2020-07-03T13:54:18.000Z | 2020-07-03T13:54:18.000Z | 01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0019.py | moacirsouza/nadas | ad98d73b4281d1581fd2b2a9d29001acb426ee56 | [
"MIT"
] | null | null | null | 01-DesenvolvimentoDeSistemas/02-LinguagensDeProgramacao/01-Python/01-ListaDeExercicios/02-Aluno/Roberto/exc0019.py | moacirsouza/nadas | ad98d73b4281d1581fd2b2a9d29001acb426ee56 | [
"MIT"
] | null | null | null | print('[-- Um professor quer sortear um dos seus quatro alunos para apagar o quadro. Faa um programa que ajude ele, lendo o nome deles e escrevendo o nome do escolhido. --]\n')
from random import choice
nome01 = input('Digite o nome do primeiro aluno: ')
nome02 = input('Digite o nome do segundo aluno: ')
nome03 = inpu... | 42.461538 | 177 | 0.737319 |
fa1f18445f40e5b73ddd2287b5c90937270ba682 | 624 | py | Python | setup.py | swdream/flyfingers | 1d2422139d0cb2d64605e89646b693dc86cc4d96 | [
"MIT"
] | 2 | 2015-06-29T09:46:11.000Z | 2015-06-29T23:54:44.000Z | setup.py | swdream/flyfingers | 1d2422139d0cb2d64605e89646b693dc86cc4d96 | [
"MIT"
] | null | null | null | setup.py | swdream/flyfingers | 1d2422139d0cb2d64605e89646b693dc86cc4d96 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import flyfingers
requisites = []
setup(
name='flyfingers',
version=flyfingers.__version__,
description='Learn to type 10 fingers',
scripts=['scripts/flyfinge... | 22.285714 | 63 | 0.661859 |
fa1f7e2d0ecc70ad4189a83e4a795841b1fe3bd4 | 7,764 | py | Python | kivy_modules/widget/slider.py | VictorManhani/polingua | 16309ef4b25347e2d114749a24dfec5f9696e30f | [
"MIT"
] | null | null | null | kivy_modules/widget/slider.py | VictorManhani/polingua | 16309ef4b25347e2d114749a24dfec5f9696e30f | [
"MIT"
] | null | null | null | kivy_modules/widget/slider.py | VictorManhani/polingua | 16309ef4b25347e2d114749a24dfec5f9696e30f | [
"MIT"
] | null | null | null | __all__ = ('FlexSlider', )
import os
import sys
root = os.path.abspath(
os.path.dirname(
os.path.dirname(
os.path.dirname(os.path.realpath(__file__)))))
sys.path.insert(0,root)
from kivy.lang import Builder
from kivy_modules.widget.widget import Widget
from kivy.properties import (NumericPrope... | 39.815385 | 229 | 0.578053 |
fa23b5ad8e2d48f157fde43ab9bbb1141bdb0d96 | 676 | py | Python | tests/conftest.py | tohanss/repobee-sanitizer | d7a22dc51f298857db4f0138c04ffd5f3fe43511 | [
"MIT"
] | null | null | null | tests/conftest.py | tohanss/repobee-sanitizer | d7a22dc51f298857db4f0138c04ffd5f3fe43511 | [
"MIT"
] | 137 | 2020-06-18T14:57:11.000Z | 2022-01-16T15:58:27.000Z | tests/conftest.py | tohanss/repobee-sanitizer | d7a22dc51f298857db4f0138c04ffd5f3fe43511 | [
"MIT"
] | 2 | 2020-06-20T21:47:40.000Z | 2020-06-24T13:04:54.000Z | """Global fixtures and setup code for the test suite."""
import sys
import pathlib
import pytest
import repobee
sys.path.append(str(pathlib.Path(__file__).parent / "helpers"))
| 28.166667 | 73 | 0.745562 |
fa258850d54e2ff8a1971affb1d60df347f4e149 | 1,945 | py | Python | query_flight/tests/utils/test_sel.py | eskemojoe007/sw_web_app | 92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e | [
"MIT"
] | null | null | null | query_flight/tests/utils/test_sel.py | eskemojoe007/sw_web_app | 92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e | [
"MIT"
] | 17 | 2018-06-04T16:02:51.000Z | 2021-06-10T20:26:45.000Z | query_flight/tests/utils/test_sel.py | eskemojoe007/sw_web_app | 92e9b6cd3fedcbbeefc9275cdc49db2fdefaa09e | [
"MIT"
] | null | null | null | import pytest
from query_flight import utils
from query_flight.models import Search, Flight, Layover, Airport
from django.utils import timezone
# @pytest.fixture
# def basic_search():
# return Search.objects.create()
| 28.188406 | 67 | 0.659126 |
fa2894498609ba22cccb5fff7dcf91feb33619f2 | 4,857 | py | Python | tests/blockchain_tests.py | AoHRuthless/Doubloon | 9279ac7decd434d43bf9b03487691aa52aab499f | [
"Apache-2.0"
] | 1 | 2018-08-13T10:26:39.000Z | 2018-08-13T10:26:39.000Z | tests/blockchain_tests.py | AoHRuthless/Doubloon | 9279ac7decd434d43bf9b03487691aa52aab499f | [
"Apache-2.0"
] | null | null | null | tests/blockchain_tests.py | AoHRuthless/Doubloon | 9279ac7decd434d43bf9b03487691aa52aab499f | [
"Apache-2.0"
] | null | null | null | import sys
sys.path.append(sys.path[0] + '/src')
from unittest import TestCase
from src.blockchain import Blockchain
from src import constant
PUBLIC_KEY = '30819f300d06092a864886f70d010101050003818d0030818902818100d99c9347b6ecd418b1df48012201c5bd2869a707e45dee91a5c63027dc8020210aa4cf6e34e81fc200f29c893add94fefbf3759... | 50.072165 | 1,230 | 0.774758 |
fa298b5e11ded681d1d7dc27673c2c5d79e5b845 | 487 | py | Python | compte/migrations/0003_auto_20210701_1337.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 8 | 2020-07-23T08:17:28.000Z | 2022-03-09T22:31:36.000Z | compte/migrations/0003_auto_20210701_1337.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 37 | 2020-07-01T08:47:33.000Z | 2022-02-03T19:50:58.000Z | compte/migrations/0003_auto_20210701_1337.py | bzg/acceslibre | 52c7c6990dc132da71a92e856d65f4a983c3b15a | [
"MIT"
] | 4 | 2021-04-08T10:57:18.000Z | 2022-01-31T13:16:31.000Z | from django.contrib.auth import get_user_model
from django.db import migrations
from compte.models import UserPreferences
| 22.136364 | 55 | 0.724846 |
fa29ea4e3eeb4f0c285cf1d53297cc76c1421a6f | 3,846 | py | Python | mechroutines/es/_routines/hr.py | sjklipp/mechdriver | 17c3d9bc82116954b331955e87a60e9adc5e1de9 | [
"Apache-2.0"
] | null | null | null | mechroutines/es/_routines/hr.py | sjklipp/mechdriver | 17c3d9bc82116954b331955e87a60e9adc5e1de9 | [
"Apache-2.0"
] | null | null | null | mechroutines/es/_routines/hr.py | sjklipp/mechdriver | 17c3d9bc82116954b331955e87a60e9adc5e1de9 | [
"Apache-2.0"
] | null | null | null | """ es_runners for coordinate scans
"""
import automol
import elstruct
from mechroutines.es.runner import scan
from mechroutines.es.runner import qchem_params
from mechlib.amech_io import printer as ioprinter
from phydat import phycon
def hindered_rotor_scans(
zma, spc_info, mod_thy_info, thy_save_fs,
... | 31.268293 | 74 | 0.629225 |
fa2aef92f1386e419f64a36bf512725d85f56e94 | 1,725 | py | Python | start_training.py | DrInfy/TheHarvester | dd21194ab2220c8edb73352c299d2bfb0f11d7d6 | [
"MIT"
] | 6 | 2020-03-08T21:04:47.000Z | 2021-05-29T07:14:25.000Z | start_training.py | DrInfy/TheHarvester | dd21194ab2220c8edb73352c299d2bfb0f11d7d6 | [
"MIT"
] | 5 | 2020-04-20T08:41:48.000Z | 2021-01-04T18:15:39.000Z | start_training.py | DrInfy/TheHarvester | dd21194ab2220c8edb73352c299d2bfb0f11d7d6 | [
"MIT"
] | 2 | 2021-01-18T21:07:56.000Z | 2021-11-22T15:24:21.000Z | import subprocess
wsl = "wsl python3.7 /mnt/" + YOUR_PATH_TO_HARVESTER
# to = "--timeout 900 -z"
to = "-p2 ai.terran.hard"
to2 = "-p2 ai.zerg.hard"
to3 = "-p2 ai.protoss.hard"
harvester_test_pattern = (
"harvesterzerg.learning,"
"harvesterzerg.scripted,"
"harvesterzerg.scripted.default.2,"
"harvester... | 33.173077 | 92 | 0.667826 |
fa2cad5b5c8ded6db2143b04e6d358eb00bedb04 | 264 | py | Python | agents/train.py | yamamototakas/fxtrading | 955d247b832de7180b8893edaad0b50df515809f | [
"MIT"
] | null | null | null | agents/train.py | yamamototakas/fxtrading | 955d247b832de7180b8893edaad0b50df515809f | [
"MIT"
] | null | null | null | agents/train.py | yamamototakas/fxtrading | 955d247b832de7180b8893edaad0b50df515809f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from trade_results_loader import *
from model import *
loader = TradeResultsLoader()
data = TradeResults(loader.retrieve_trade_data())
with Trainer() as trainer:
trainer.train(10001, data)
trainer.save("./model.ckpt")
| 22 | 50 | 0.685606 |
fa2e2fc6030354392d7209c8f4bab9713fe2a353 | 1,074 | py | Python | madlib.py | danhuyle508/madlib-cli | 20d50e09a278c441bb7a483f9d2faa331f522655 | [
"MIT"
] | null | null | null | madlib.py | danhuyle508/madlib-cli | 20d50e09a278c441bb7a483f9d2faa331f522655 | [
"MIT"
] | null | null | null | madlib.py | danhuyle508/madlib-cli | 20d50e09a278c441bb7a483f9d2faa331f522655 | [
"MIT"
] | null | null | null | import re
welcome_message = """
Welcome to the Mad Libs game! YOu will be prompted to enter certain types of words. These words will be used in a mad lib and printed out for you.
"""
if __name__ == '__main__':
fill_mad_lib('text.txt') | 37.034483 | 146 | 0.604283 |
fa2fa594594f0295d2e1d08269d1cf3f259f882f | 1,852 | py | Python | src/abundance.py | Ilia-Abolhasani/modify_vamb | f164b5d6dd8a8104d115063b86b3d5001dac85b9 | [
"MIT"
] | 111 | 2019-06-22T15:10:06.000Z | 2022-03-29T06:08:27.000Z | src/abundance.py | neptuneyt/vamb | dfd4f005f56471c0aabbe4e977f4cc3dd893e373 | [
"MIT"
] | 86 | 2019-06-22T02:29:30.000Z | 2022-03-31T06:56:18.000Z | src/abundance.py | neptuneyt/vamb | dfd4f005f56471c0aabbe4e977f4cc3dd893e373 | [
"MIT"
] | 32 | 2019-08-28T09:53:18.000Z | 2022-03-26T03:30:52.000Z | import sys
import os
import argparse
import numpy as np
parser = argparse.ArgumentParser(
description="""Command-line bin abundance estimator.
Print the median RPKM abundance for each bin in each sample to STDOUT.
Will read the RPKM file into memory - beware.""",
formatter_class=argparse.RawDescriptionHelpForm... | 28.9375 | 79 | 0.714363 |
fa30edc5de1f7b51fdc4c2d079353d9aba68b489 | 3,343 | py | Python | miamidade/events.py | jayktee/scrapers-us-municipal | ff52a331e91cb590a3eda7db6c688d75b77acacb | [
"MIT"
] | 67 | 2015-04-28T19:28:18.000Z | 2022-01-31T03:27:17.000Z | miamidade/events.py | jayktee/scrapers-us-municipal | ff52a331e91cb590a3eda7db6c688d75b77acacb | [
"MIT"
] | 202 | 2015-01-15T18:43:12.000Z | 2021-11-23T15:09:10.000Z | miamidade/events.py | jayktee/scrapers-us-municipal | ff52a331e91cb590a3eda7db6c688d75b77acacb | [
"MIT"
] | 54 | 2015-01-27T03:15:45.000Z | 2021-09-10T19:35:32.000Z | from pupa.scrape import Scraper
from pupa.scrape import Event
import lxml.html
from datetime import datetime
import pytz
DUPLICATE_EVENT_URLS = ('http://miamidade.gov/wps/Events/EventDetail.jsp?eventID=445731',
'http://miamidade.gov/wps/Events/EventDetail.jsp?eventID=452515',
... | 43.415584 | 244 | 0.518995 |
fa31418ce189be6854e296ddbd28f6d7bc22e85e | 344 | py | Python | backend/research_note/migrations/0006_remove_researchnote_is_written.py | andy23512/research-note-system | 42a9d67de07a0f32615c4b9c6505b46e7c852f79 | [
"MIT"
] | null | null | null | backend/research_note/migrations/0006_remove_researchnote_is_written.py | andy23512/research-note-system | 42a9d67de07a0f32615c4b9c6505b46e7c852f79 | [
"MIT"
] | 6 | 2021-06-04T23:01:14.000Z | 2022-02-26T19:57:11.000Z | backend/research_note/migrations/0006_remove_researchnote_is_written.py | andy23512/research-note-system | 42a9d67de07a0f32615c4b9c6505b46e7c852f79 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.7 on 2019-11-12 16:03
from django.db import migrations
| 19.111111 | 53 | 0.610465 |
fa3198b66f7c5594775466edadbd3a731696a18b | 1,187 | py | Python | Tools/nm_swift_demangle.py | kylefleming/XVim2 | e5544aba5c1f9b778f0c329a56f8075bf1c48d0e | [
"MIT"
] | null | null | null | Tools/nm_swift_demangle.py | kylefleming/XVim2 | e5544aba5c1f9b778f0c329a56f8075bf1c48d0e | [
"MIT"
] | null | null | null | Tools/nm_swift_demangle.py | kylefleming/XVim2 | e5544aba5c1f9b778f0c329a56f8075bf1c48d0e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import shutil
import subprocess
os.chdir("..")
if os.path.exists("tmp"):
shutil.rmtree("tmp")
os.mkdir("tmp")
os.chdir("tmp")
modules = ['/Applications/Xcode.app/Contents/SharedFrameworks/SourceEditor.framework/SourceEditor'
,'/Applications/Xcode.app/Contents/SharedFram... | 35.969697 | 98 | 0.518113 |
fa34161536fc8808c400b42131d5fc16b6159bc6 | 1,319 | py | Python | retag_push.py | atiasn/sync-images | 2485f74259de2412a0d147ef1093b412bfafc3c9 | [
"Apache-2.0"
] | null | null | null | retag_push.py | atiasn/sync-images | 2485f74259de2412a0d147ef1093b412bfafc3c9 | [
"Apache-2.0"
] | null | null | null | retag_push.py | atiasn/sync-images | 2485f74259de2412a0d147ef1093b412bfafc3c9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import os
if __name__ == '__main__':
retag_push()
| 26.918367 | 61 | 0.578469 |
fa35fd9c4c3f40af307596284bdf4287e3dd908d | 638 | py | Python | Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/04_texte_schreiben/04_texte_schreiben.py | Apop85/Scripts | e71e1c18539e67543e3509c424c7f2d6528da654 | [
"MIT"
] | null | null | null | Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/04_texte_schreiben/04_texte_schreiben.py | Apop85/Scripts | e71e1c18539e67543e3509c424c7f2d6528da654 | [
"MIT"
] | 6 | 2020-12-24T15:15:09.000Z | 2022-01-13T01:58:35.000Z | Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/04_texte_schreiben/04_texte_schreiben.py | Apop85/Scripts | 1d8dad316c55e1f1343526eac9e4b3d0909e4873 | [
"MIT"
] | null | null | null | # 04_texte_schreiben.py
# In diesem Beispiel geht es darum Texte in ein Bild zu schreiben mittels ImageFont aus dem Modul PIL
from PIL import Image, ImageFont, ImageDraw
import os
os.chdir(os.path.dirname(__file__))
target_file='.\\text_in_image.png'
if os.path.exists(target_file):
os.remove(target_file)
windows_... | 31.9 | 101 | 0.763323 |
fa3658cc83397f893af5141259e17243f9b55e03 | 4,060 | py | Python | web.py | dujinle/AccountByTornado | ef76be1d8cfffea2797bf024dcb0eaa887ca0aff | [
"Apache-2.0"
] | null | null | null | web.py | dujinle/AccountByTornado | ef76be1d8cfffea2797bf024dcb0eaa887ca0aff | [
"Apache-2.0"
] | null | null | null | web.py | dujinle/AccountByTornado | ef76be1d8cfffea2797bf024dcb0eaa887ca0aff | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import sys, os
import tornado.ioloop
import tornado.web
import tornado.httpserver
import logging
import logging.handlers
import re
from urllib import unquote
import config
from travellers import *
reload(sys)
sys.setdefaultencoding('utf8')
settings = {
"static_path": os.path.join(os.path.dirname... | 31.230769 | 76 | 0.698276 |
fa372cb86b56c891becb57810223ec547518e2ca | 8,739 | py | Python | fluiddb/data/user.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | 3 | 2021-05-10T14:41:30.000Z | 2021-12-16T05:53:30.000Z | fluiddb/data/user.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | null | null | null | fluiddb/data/user.py | fluidinfo/fluiddb | b5a8c8349f3eaf3364cc4efba4736c3e33b30d96 | [
"Apache-2.0"
] | 2 | 2018-01-24T09:03:21.000Z | 2021-06-25T08:34:54.000Z | import crypt
import random
import re
from string import ascii_letters, digits
from uuid import uuid4
from storm.locals import (
Storm, DateTime, Int, Unicode, UUID, Reference, AutoReload, RawStr)
from fluiddb.data.exceptions import DuplicateUserError, MalformedUsernameError
from fluiddb.data.store import getMainS... | 36.11157 | 79 | 0.669642 |
fa37e3137008518d11130aa95cb3494298511577 | 2,049 | py | Python | marqeta/response_models/business_proprietor_response_model.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 21 | 2019-04-12T09:02:17.000Z | 2022-02-18T11:39:06.000Z | marqeta/response_models/business_proprietor_response_model.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 1 | 2020-07-22T21:27:40.000Z | 2020-07-23T17:38:43.000Z | marqeta/response_models/business_proprietor_response_model.py | marqeta/marqeta-python | 66fa690eb910825c510a391720b0fe717fac0234 | [
"MIT"
] | 10 | 2019-05-08T14:20:37.000Z | 2021-09-20T18:09:26.000Z | from datetime import datetime, date
from marqeta.response_models.address_response_model import AddressResponseModel
from marqeta.response_models.identification_response_model import IdentificationResponseModel
from marqeta.response_models import datetime_object
import json
import re
| 25.936709 | 127 | 0.697413 |
fa3a63f302b46c02ff39a3b03b267bd4f406883d | 241 | py | Python | Books/Book/urls.py | qq292/Books | d3b85829592bcbeb87eeccc568e22c510a289487 | [
"MIT"
] | null | null | null | Books/Book/urls.py | qq292/Books | d3b85829592bcbeb87eeccc568e22c510a289487 | [
"MIT"
] | null | null | null | Books/Book/urls.py | qq292/Books | d3b85829592bcbeb87eeccc568e22c510a289487 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from django.views.generic import TemplateView
from .views import MainPage
urlpatterns = [
path('admin/', admin.site.urls),
path('', MainPage.as_view(), name='books'),
]
| 21.909091 | 47 | 0.73029 |
fa3a73830e5fd5eb0ccec1657d21eb8cfd404d56 | 7,304 | py | Python | tests/test_util.py | markusrobertjonsson/learning_simulator | 91d0c37f51f4af6bfe23de1bc9eca25c6bb6f262 | [
"MIT"
] | 1 | 2021-06-11T08:41:17.000Z | 2021-06-11T08:41:17.000Z | tests/test_util.py | markusrobertjonsson/learning_simulator | 91d0c37f51f4af6bfe23de1bc9eca25c6bb6f262 | [
"MIT"
] | 1 | 2020-12-05T19:24:50.000Z | 2021-09-29T14:11:29.000Z | tests/test_util.py | markusrobertjonsson/learning_simulator | 91d0c37f51f4af6bfe23de1bc9eca25c6bb6f262 | [
"MIT"
] | 2 | 2018-09-21T01:07:09.000Z | 2019-03-18T09:43:05.000Z | import unittest
import LsUtil
| 49.020134 | 99 | 0.502464 |
fa3b56e4a1b754b6421ee0737d4108a2bb149d0a | 3,856 | py | Python | code/vrf-chain-sim/find_pattern.py | filecoin-project/consensus | 8824ad5fb8948706995805692d594f6ccf199176 | [
"Apache-2.0",
"MIT"
] | 43 | 2019-02-14T21:02:53.000Z | 2021-12-10T22:53:02.000Z | code/vrf-chain-sim/find_pattern.py | filecoin-project/consensus | 8824ad5fb8948706995805692d594f6ccf199176 | [
"Apache-2.0",
"MIT"
] | 41 | 2019-02-23T02:16:42.000Z | 2020-06-18T20:17:52.000Z | code/vrf-chain-sim/find_pattern.py | filecoin-project/consensus | 8824ad5fb8948706995805692d594f6ccf199176 | [
"Apache-2.0",
"MIT"
] | 4 | 2019-03-27T09:15:53.000Z | 2022-03-25T07:54:18.000Z | import numpy as np
import time
from math import floor
import multiprocessing as mp
import scipy.special
#Initialize parameters
Num_of_sim_per_proc = 1
start_time = time.time()
e = 5.
alpha = 0.33
ntot = 100
na = int(ntot*alpha)
nh = ntot - na
height = 5 #height of the attack
p=float(e)/float(1*ntot)
unrealistic = 0 #d... | 25.202614 | 97 | 0.616701 |
fa3bda603647c931c3d1f236ad29db629be3ac37 | 1,478 | py | Python | lib/dblatex-0.3.2/lib/dbtexmf/dblatex/grubber/util.py | jonathanmorley/HR-XSL | 799b1075cbec4cda3d686d588eea92a62d59963f | [
"Apache-2.0"
] | 1 | 2017-12-29T23:23:14.000Z | 2017-12-29T23:23:14.000Z | lib/dblatex-0.3.2/lib/dbtexmf/dblatex/grubber/util.py | jonathanmorley/HR-XSL | 799b1075cbec4cda3d686d588eea92a62d59963f | [
"Apache-2.0"
] | null | null | null | lib/dblatex-0.3.2/lib/dbtexmf/dblatex/grubber/util.py | jonathanmorley/HR-XSL | 799b1075cbec4cda3d686d588eea92a62d59963f | [
"Apache-2.0"
] | null | null | null | # This file is part of Rubber and thus covered by the GPL
# (c) Emmanuel Beffara, 2002--2006
"""
This module contains utility functions and classes used by the main system and
by the modules for various tasks.
"""
try:
import hashlib
except ImportError:
# Fallback for python 2.4:
import md5 as hashlib
impo... | 25.482759 | 80 | 0.566982 |
fa3cbfd8b261691f0db27a183a13227b321d7c35 | 1,782 | py | Python | neopixel/main.py | morgulbrut/wemos-mupy | fbe425c6a383c9c28f36f48a23c70aae98bf62cd | [
"MIT"
] | null | null | null | neopixel/main.py | morgulbrut/wemos-mupy | fbe425c6a383c9c28f36f48a23c70aae98bf62cd | [
"MIT"
] | null | null | null | neopixel/main.py | morgulbrut/wemos-mupy | fbe425c6a383c9c28f36f48a23c70aae98bf62cd | [
"MIT"
] | null | null | null | from machine import Pin
import neopixel
import time
# def clear(np):
# set(np)
# def cycle(np,r=0,g=0,b=0,delay=25,cycles=1,invert=False):
# for i in range(cycles):
# bounce(np,r,g,b,delay,1,invert)
# def bounce(np,r=0,g=0,b=0,delay=25,cycles=2,invert=False):
# for i in range(cycles * np.n):
# if invert:
# ... | 20.964706 | 82 | 0.537037 |
fa3d7b7b58127ec40c852f915a22ddc033b65684 | 377 | py | Python | tests/unit/request/request_builders/recurring_get_schedule_builder_test.py | Zhenay/python-sdk | 53161cc591fe2ec54ecfefad4fc4d5625a97afd9 | [
"MIT"
] | 3 | 2018-06-08T12:21:28.000Z | 2020-04-07T12:54:04.000Z | tests/unit/request/request_builders/recurring_get_schedule_builder_test.py | Zhenay/python-sdk | 53161cc591fe2ec54ecfefad4fc4d5625a97afd9 | [
"MIT"
] | 2 | 2017-09-21T15:43:46.000Z | 2019-07-22T08:20:50.000Z | tests/unit/request/request_builders/recurring_get_schedule_builder_test.py | Zhenay/python-sdk | 53161cc591fe2ec54ecfefad4fc4d5625a97afd9 | [
"MIT"
] | 4 | 2020-09-21T07:11:22.000Z | 2022-03-21T09:42:51.000Z | import unittest
from platron.request.request_builders.recurring_get_schedule_builder import RecurringGetScheduleBuilder
| 31.416667 | 103 | 0.787798 |
fa401c88954339276304ae936fc6f58c6bc88be6 | 2,372 | py | Python | malleus/api/domain/protos/timings_pb2.py | joelgerard/malleus | 763850ef270a449829b89a998cdce8febf5020ef | [
"Apache-2.0"
] | null | null | null | malleus/api/domain/protos/timings_pb2.py | joelgerard/malleus | 763850ef270a449829b89a998cdce8febf5020ef | [
"Apache-2.0"
] | 2 | 2021-02-08T20:22:50.000Z | 2021-06-01T22:07:40.000Z | malleus/api/domain/protos/timings_pb2.py | joelgerard/malleus | 763850ef270a449829b89a998cdce8febf5020ef | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: malleus/api/domain/protos/timings.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | 32.493151 | 231 | 0.778246 |
fa404fc0c53d88f5afc112d22c40c258e0d8ffc9 | 2,191 | py | Python | basic_newsletter/utils.py | CIGIHub/newsletter_generator | 2af3e183ffedce55ad26bf998c488282f94d477e | [
"MIT"
] | null | null | null | basic_newsletter/utils.py | CIGIHub/newsletter_generator | 2af3e183ffedce55ad26bf998c488282f94d477e | [
"MIT"
] | null | null | null | basic_newsletter/utils.py | CIGIHub/newsletter_generator | 2af3e183ffedce55ad26bf998c488282f94d477e | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import os.path
from django.core.files.storage import default_storage as storage
from django.core.files.uploadedfile import SimpleUploadedFile
from django.utils.six import StringIO
from django.utils.encoding import smart_text
try:
import Image
except ImportError:
try:
... | 33.19697 | 81 | 0.554998 |
fa4086e519738ecfec5f5446255b7086204a17f6 | 872 | py | Python | Virtual-Air-Painting-master/Virtual-Air-Painting-master/app.py | NikisCodes/Machine-Learning | 649b5edcacd9063e6c37f596c8f930d578c84838 | [
"MIT"
] | 2 | 2021-08-30T08:04:04.000Z | 2021-09-27T06:01:05.000Z | Virtual-Air-Painting-master/Virtual-Air-Painting-master/app.py | NikisCodes/Machine-Learning | 649b5edcacd9063e6c37f596c8f930d578c84838 | [
"MIT"
] | 1 | 2022-02-08T00:01:16.000Z | 2022-02-08T00:01:16.000Z | Virtual-Air-Painting-master/Virtual-Air-Painting-master/app.py | NikisCodes/Machine-Learning | 649b5edcacd9063e6c37f596c8f930d578c84838 | [
"MIT"
] | 2 | 2021-10-02T01:10:57.000Z | 2021-10-02T11:06:32.000Z | from flask import Flask, render_template, Response
import cam
import os
import cv2
app = Flask(__name__,template_folder='templates')
overlay_image=[]
header_img = "Images"
header_img_list = os.listdir(header_img)
for i in header_img_list:
image = cv2.imread(f'{header_img}/{i}')
overlay_image.append(image)
... | 26.424242 | 73 | 0.668578 |
fa41338567fef89f70ecebac376ac6af788cc919 | 3,159 | py | Python | src/kolibree-changelog/commit_parser.py | kolibree-git/gitchangelog | 267c29104b68db2b6665a8e6414876f7fe73d5dc | [
"BSD-3-Clause"
] | 2 | 2021-01-12T15:10:37.000Z | 2021-09-15T03:41:45.000Z | src/kolibree-changelog/commit_parser.py | kolibree-git/gitchangelog | 267c29104b68db2b6665a8e6414876f7fe73d5dc | [
"BSD-3-Clause"
] | 5 | 2021-01-13T11:14:43.000Z | 2021-04-22T08:06:47.000Z | src/kolibree-changelog/commit_parser.py | kolibree-git/gitchangelog | 267c29104b68db2b6665a8e6414876f7fe73d5dc | [
"BSD-3-Clause"
] | null | null | null | import os
import re
from pathlib import Path
from urllib.parse import urlparse
from github import Github
| 40.5 | 110 | 0.639443 |
fa41ceb73f01b6ed99614aa176053160f3a545b8 | 95 | py | Python | flask_api/celery_tasks/sms/constants.py | FanLgchen/Celery- | 409a609f476a84c421f718b9f1266c822bef1366 | [
"MIT"
] | 2 | 2020-06-18T09:39:13.000Z | 2020-10-05T03:11:33.000Z | flask_api/celery_tasks/sms/constants.py | FanLgchen/Celery- | 409a609f476a84c421f718b9f1266c822bef1366 | [
"MIT"
] | null | null | null | flask_api/celery_tasks/sms/constants.py | FanLgchen/Celery- | 409a609f476a84c421f718b9f1266c822bef1366 | [
"MIT"
] | null | null | null | #
SMS_SIGN = 'demo'
# ID
SMS_VERIFICATION_CODE_TEMPLATE_ID = 'SMS_151231777'
| 15.833333 | 52 | 0.747368 |
fa42531a7368418d99794fa9d35b9936dd54e1ab | 1,548 | py | Python | intepreter_DM.py | arkasarius/python-IMDB-TFG | b375861f414b5402d150060479f33bc7391075d8 | [
"MIT"
] | 1 | 2021-12-20T16:41:47.000Z | 2021-12-20T16:41:47.000Z | intepreter_DM.py | arkasarius/python-IMDB-TFG | b375861f414b5402d150060479f33bc7391075d8 | [
"MIT"
] | 13 | 2020-01-28T22:14:38.000Z | 2022-03-11T23:58:02.000Z | intepreter_DM.py | arkasarius/python-IMDB-TFG | b375861f414b5402d150060479f33bc7391075d8 | [
"MIT"
] | null | null | null | import calculos as c
import os
import matplotlib.pyplot as plt
import numpy as np
movie="Men in black"
m="moviesdata"
g="actordata"
s='/'
apidata=os.listdir(m+s+movie)
actordata=os.listdir(g+s+movie)
print(movie)
print(apidata)
print(actordata)
DM=0.0 # 0.0 distancia minima posible
AM=0 # 1.0 angle maxim posible
x=... | 28.145455 | 139 | 0.584625 |
fa4355bb0816a184b890c91eceeef6ab585e1c75 | 6,972 | py | Python | treqs/main.py | doctorgaby/treqs | 3b29d6dcb4e6a8b25682d0e8da936f30d4848f09 | [
"MIT"
] | 1 | 2019-05-20T16:52:41.000Z | 2019-05-20T16:52:41.000Z | treqs/main.py | doctorgaby/treqs | 3b29d6dcb4e6a8b25682d0e8da936f30d4848f09 | [
"MIT"
] | 5 | 2019-05-14T18:27:25.000Z | 2019-05-29T10:51:52.000Z | treqs/main.py | doctorgaby/treqs | 3b29d6dcb4e6a8b25682d0e8da936f30d4848f09 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import getopt, sys, datetime, os
from treqs import mUSProcessor, mSysReqProcessor, mTCProcessor
if __name__ == '__main__':
main(sys.argv)
| 39.84 | 141 | 0.65218 |
fa43b597655c8ece381492f9839c331ed4d476a7 | 1,836 | py | Python | nudging/model/xregressor.py | UtrechtUniversity/nudging | 9eb1b77749f36059d0c03e60338308ed2e1ebe3d | [
"MIT"
] | 1 | 2021-11-08T15:14:07.000Z | 2021-11-08T15:14:07.000Z | nudging/model/xregressor.py | UtrechtUniversity/nudging | 9eb1b77749f36059d0c03e60338308ed2e1ebe3d | [
"MIT"
] | 6 | 2021-12-07T11:05:19.000Z | 2022-03-21T09:05:52.000Z | nudging/model/xregressor.py | UtrechtUniversity/nudging | 9eb1b77749f36059d0c03e60338308ed2e1ebe3d | [
"MIT"
] | null | null | null | import numpy as np
from sklearn.base import clone
from nudging.model.base import BaseModel
from nudging.model.biregressor import BiRegressor
| 41.727273 | 88 | 0.70098 |
fa44f06aa862871b09d8f10126a6cb038bef569f | 47 | py | Python | manabi/apps/manabi_auth/tests.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 14 | 2015-10-03T07:34:28.000Z | 2021-09-20T07:10:29.000Z | manabi/apps/manabi_auth/tests.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 23 | 2019-10-25T08:47:23.000Z | 2022-01-30T02:00:45.000Z | manabi/apps/manabi_auth/tests.py | aehlke/manabi | 1dfdd4ecb9c1214b6a70268be0dcfeda9da8754b | [
"MIT"
] | 7 | 2016-10-04T08:10:36.000Z | 2021-09-20T07:10:33.000Z | from manabi.test_helpers import ManabiTestCase
| 23.5 | 46 | 0.893617 |
fa45ee2b30c21b649c70d296ce4c04a107be0de7 | 437 | py | Python | v1/convert.py | jelson/aqi | 96e3d9646130a8128aba9c190dcb85d7a7efba50 | [
"MIT"
] | 7 | 2021-08-25T08:00:22.000Z | 2022-01-10T19:04:08.000Z | v1/convert.py | jelson/aqi | 96e3d9646130a8128aba9c190dcb85d7a7efba50 | [
"MIT"
] | null | null | null | v1/convert.py | jelson/aqi | 96e3d9646130a8128aba9c190dcb85d7a7efba50 | [
"MIT"
] | 1 | 2021-11-03T04:20:05.000Z | 2021-11-03T04:20:05.000Z | #!/usr/bin/env python3
# One-time use script to convert previous log file format into JSON
import json
out = {}
for line in open("old-airq").readlines():
fields = line.split()
if 'PM 1.0' in line:
date = " ".join(fields[0:3])
out['pm1.0'] = fields[6]
if 'PM 2.5' in line:
out['pm2.5... | 24.277778 | 67 | 0.558352 |
fa4698576c49e303d27410cd349021ad4c704508 | 1,796 | py | Python | src/vocab.py | janoschhaber/textstyletransfer | 0960e695437910b420abbe5cf76dc680b8af7643 | [
"Apache-2.0"
] | null | null | null | src/vocab.py | janoschhaber/textstyletransfer | 0960e695437910b420abbe5cf76dc680b8af7643 | [
"Apache-2.0"
] | null | null | null | src/vocab.py | janoschhaber/textstyletransfer | 0960e695437910b420abbe5cf76dc680b8af7643 | [
"Apache-2.0"
] | null | null | null | import numpy as np
from numpy import linalg as LA
import pickle
from collections import Counter
import csv | 35.92 | 88 | 0.611359 |
fa47561e4fca5e7d0a34320e88d5fab9b997b427 | 4,929 | py | Python | tests/test_ERC721_Pausable.py | georgercarder/cairo-contracts | b661e1b65686820fa020c47c3c29a4951bb04547 | [
"MIT"
] | null | null | null | tests/test_ERC721_Pausable.py | georgercarder/cairo-contracts | b661e1b65686820fa020c47c3c29a4951bb04547 | [
"MIT"
] | null | null | null | tests/test_ERC721_Pausable.py | georgercarder/cairo-contracts | b661e1b65686820fa020c47c3c29a4951bb04547 | [
"MIT"
] | null | null | null | import pytest
import asyncio
from starkware.starknet.testing.starknet import Starknet
from utils import Signer, str_to_felt, assert_revert
signer = Signer(123456789987654321)
# bools (for readability)
false = 0
true = 1
# random uint256 tokenIDs
first_token_id = (5042, 0)
second_token_id = (7921, 1)
third_token_id ... | 27.082418 | 86 | 0.64435 |
fa483b3f10489cad64a57007f1b02b4ab7eddb87 | 445 | py | Python | python_scripts/countries_dates.py | tuxskar/elpythonista | ac0cd45e97dffcf6a40d1566fdee5b01380f535a | [
"MIT"
] | 2 | 2021-09-13T16:26:26.000Z | 2021-10-04T04:40:11.000Z | python_scripts/countries_dates.py | tuxskar/elpythonista | ac0cd45e97dffcf6a40d1566fdee5b01380f535a | [
"MIT"
] | null | null | null | python_scripts/countries_dates.py | tuxskar/elpythonista | ac0cd45e97dffcf6a40d1566fdee5b01380f535a | [
"MIT"
] | null | null | null | from datetime import datetime
import pytz
if __name__ == '__main__':
places_tz = ['Asia/Tokyo', 'Europe/Madrid', 'America/Argentina/Buenos_Aires', 'US/eastern', 'US/Pacific', 'UTC']
cities_name = ['Tokyo', 'Madrid', 'Buenos Aires', 'New York', 'California', 'UTC']
for place_tz, city_name in zip(places_tz, ... | 44.5 | 116 | 0.678652 |
fa48f487c0f61d98b503010843e5e1dd19fce9a8 | 5,871 | py | Python | algebra_utilities/structures/semigroup.py | computational-group-the-golden-ticket/AlgebraUtilities | d5c7c2806b6bd394564ae4146a2c5164f4ebe882 | [
"MIT"
] | null | null | null | algebra_utilities/structures/semigroup.py | computational-group-the-golden-ticket/AlgebraUtilities | d5c7c2806b6bd394564ae4146a2c5164f4ebe882 | [
"MIT"
] | null | null | null | algebra_utilities/structures/semigroup.py | computational-group-the-golden-ticket/AlgebraUtilities | d5c7c2806b6bd394564ae4146a2c5164f4ebe882 | [
"MIT"
] | null | null | null | from algebra_utilities.objects.baseobjects import *
from algebra_utilities.structures.baseobjects import Printable
from algebra_utilities.utils.errors import UnexpectedTypeError
from algebra_utilities.utils.errors import NonAssociativeSetError
from algebra_utilities.utils.errors import ElementsOverflow
| 35.79878 | 107 | 0.607392 |
fa49a5157a06abdd46d0a0ba0bf6a84c8195c2b0 | 254 | py | Python | output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_pattern_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_pattern_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/duration/schema_instance/nistschema_sv_iv_atomic_duration_pattern_1_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.duration.schema_instance.nistschema_sv_iv_atomic_duration_pattern_1_xsd.nistschema_sv_iv_atomic_duration_pattern_1 import NistschemaSvIvAtomicDurationPattern1
__all__ = [
"NistschemaSvIvAtomicDurationPattern1",
]
| 42.333333 | 194 | 0.893701 |
fa4a9590535f2f2f51967fa4d5315e7a3e030581 | 1,590 | py | Python | venv/lib/python3.7/site-packages/tigeropen/common/consts/service_types.py | CatTiger/vnpy | 7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b | [
"MIT"
] | null | null | null | venv/lib/python3.7/site-packages/tigeropen/common/consts/service_types.py | CatTiger/vnpy | 7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b | [
"MIT"
] | 1 | 2020-04-21T02:42:32.000Z | 2020-04-21T02:42:32.000Z | venv/lib/python3.7/site-packages/tigeropen/common/consts/service_types.py | CatTiger/vnpy | 7901a0fb80a5b44d6fc752bd4b2b64ec62c8f84b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on 2018/9/20
@author: gaoan
"""
ORDER_NO = "order_no"
PREVIEW_ORDER = "preview_order"
PLACE_ORDER = "place_order"
CANCEL_ORDER = "cancel_order"
MODIFY_ORDER = "modify_order"
"""
/
"""
ACCOUNTS = "accounts"
ASSETS = "assets"
POSITIONS = "positions"
ORDERS = "orders"
ACTIVE_ORDERS =... | 23.382353 | 69 | 0.784906 |
fa4b58e784df0a2ddab274bac344bf702ab449fb | 540 | py | Python | setup.py | ianhalpern/python-payment-processor | 64fb785373082da19a572097b738da4dd71bd985 | [
"MIT"
] | 12 | 2016-11-11T10:31:25.000Z | 2022-03-25T12:51:22.000Z | setup.py | ianhalpern/python-payment-processor | 64fb785373082da19a572097b738da4dd71bd985 | [
"MIT"
] | null | null | null | setup.py | ianhalpern/python-payment-processor | 64fb785373082da19a572097b738da4dd71bd985 | [
"MIT"
] | 3 | 2017-09-06T15:06:29.000Z | 2019-03-22T14:20:31.000Z | #!/usr/bin/python
from distutils.core import setup
setup(
name = 'payment_processor',
version = '0.2.0',
description = 'A simple payment gateway api wrapper',
author = 'Ian Halpern',
author_email = 'ian@ian-halpern.com',
url = 'https://launchpad.net/python-payment',
download_url = '... | 27 | 65 | 0.681481 |
fa4b934831124cd9b5f4a62ff35dd46a0ab12e15 | 6,513 | py | Python | src/ranking_utils/lightning/datasets.py | fknauf/ranking-utils | ce1a0be4e560d5f156a76cb5c0e3751793c67648 | [
"MIT"
] | null | null | null | src/ranking_utils/lightning/datasets.py | fknauf/ranking-utils | ce1a0be4e560d5f156a76cb5c0e3751793c67648 | [
"MIT"
] | null | null | null | src/ranking_utils/lightning/datasets.py | fknauf/ranking-utils | ce1a0be4e560d5f156a76cb5c0e3751793c67648 | [
"MIT"
] | null | null | null | from pathlib import Path
from typing import Any, Tuple
import abc
import h5py
from torch.utils.data import Dataset
# inputs vary for each model, hence we use Any here
Input = Any
PairwiseTrainingInput = Tuple[Input, Input]
PointwiseTrainingInput = Tuple[Input, int]
ValTestInput = Tuple[int, int, Input, int]
| 29.206278 | 99 | 0.594043 |
fa4c5e2c67d5f8e3cdc1d31a4e00b2fd7c6a269b | 6,301 | py | Python | tests/unit/lib/logs/test_formatter.py | OscarVanL/aws-sam-cli | 13e02ae53ac3a4484acd74c944123921e27823f3 | [
"Apache-2.0"
] | null | null | null | tests/unit/lib/logs/test_formatter.py | OscarVanL/aws-sam-cli | 13e02ae53ac3a4484acd74c944123921e27823f3 | [
"Apache-2.0"
] | null | null | null | tests/unit/lib/logs/test_formatter.py | OscarVanL/aws-sam-cli | 13e02ae53ac3a4484acd74c944123921e27823f3 | [
"Apache-2.0"
] | null | null | null | import json
from unittest import TestCase
from mock import Mock, patch, call
from nose_parameterized import parameterized
from samcli.lib.logs.formatter import LogsFormatter, LambdaLogMsgFormatters, KeywordHighlighter, JSONMsgFormatter
from samcli.lib.logs.event import LogEvent
| 38.187879 | 113 | 0.702746 |
fa4c6f431c760c50f8930890bae505b1e114beff | 3,921 | py | Python | openconnect-cli.py | tcpipuk/OpenConnect-FE | d7d213cedb16b5eb30c7e100848e7e3b53467dd3 | [
"Apache-2.0"
] | null | null | null | openconnect-cli.py | tcpipuk/OpenConnect-FE | d7d213cedb16b5eb30c7e100848e7e3b53467dd3 | [
"Apache-2.0"
] | null | null | null | openconnect-cli.py | tcpipuk/OpenConnect-FE | d7d213cedb16b5eb30c7e100848e7e3b53467dd3 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import argparse, pexpect
from getpass import getpass
from time import sleep
# Set up argument parser
parser = argparse.ArgumentParser(prog='openconnect-cli', description='Automate logins to the OpenConnect SSL VPN client')
# Type of VPN to initiate
parser_type = parser.add_mutually_exclusive_g... | 33.228814 | 132 | 0.683499 |
fa4c79eb3a2bcc3c5bb9874b8d41fc99facf7f36 | 1,047 | py | Python | unittestdemo/unittestdemo01.py | caoyp2/PyProject01 | 1a7d022894908b400fa24da1bb74b47a87ec04e4 | [
"Apache-2.0"
] | null | null | null | unittestdemo/unittestdemo01.py | caoyp2/PyProject01 | 1a7d022894908b400fa24da1bb74b47a87ec04e4 | [
"Apache-2.0"
] | null | null | null | unittestdemo/unittestdemo01.py | caoyp2/PyProject01 | 1a7d022894908b400fa24da1bb74b47a87ec04e4 | [
"Apache-2.0"
] | null | null | null | import unittest
#4.unittest.TestCase
#unittest.TestCasesetUptearDown
#unittest.TestCase
#8(__name____main__),
if __name__=='__main__':
#8.1
#unittest.main()test
#test_case1test_case2
unittest.main() | 26.175 | 67 | 0.726839 |
fa4d864c5607687ad1cc9e70a90a7da7550acda4 | 351 | py | Python | pytools/unit.py | ry-shika/Geister-cpp-lib | d8630185e19fe06c5b2bf63ee0f37d665d7f357b | [
"BSL-1.0"
] | 8 | 2021-03-12T00:06:44.000Z | 2022-01-15T20:09:51.000Z | pytools/unit.py | ry-shika/Geister-cpp-lib | d8630185e19fe06c5b2bf63ee0f37d665d7f357b | [
"BSL-1.0"
] | 40 | 2019-06-19T04:54:55.000Z | 2020-10-25T17:58:31.000Z | pytools/unit.py | ry-shika/Geister-cpp-lib | d8630185e19fe06c5b2bf63ee0f37d665d7f357b | [
"BSL-1.0"
] | 3 | 2021-05-25T08:26:26.000Z | 2021-06-22T08:26:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
| 21.9375 | 43 | 0.532764 |
fa4e2e368a0acbcb5f65a50b8b60acca846de6d5 | 1,752 | py | Python | pull_scp/config.py | FNNDSC/pl-pull_scp | 99b310e5ad88f1afdb1114f14d8cf10bb9b3657d | [
"MIT"
] | null | null | null | pull_scp/config.py | FNNDSC/pl-pull_scp | 99b310e5ad88f1afdb1114f14d8cf10bb9b3657d | [
"MIT"
] | null | null | null | pull_scp/config.py | FNNDSC/pl-pull_scp | 99b310e5ad88f1afdb1114f14d8cf10bb9b3657d | [
"MIT"
] | null | null | null | """Remote host configuration."""
from os import getenv, path
from dotenv import load_dotenv
from .log import LOGGER
import pudb
# Load environment variables from .env
# Originally set to the "installation" directory of the app...
BASE_DIR = path.abspath(path.dirname(__file__))
# But using /tmp might just ... | 31.854545 | 83 | 0.67637 |
fa4f4c3b14304e975b24084156700a6ef4675a21 | 7,468 | py | Python | meltingpot/python/human_players/play_level_test.py | yunfanjiang/meltingpot | d1b93f9af805fc88498fa31617a375a1ca6f8dbd | [
"Apache-2.0"
] | null | null | null | meltingpot/python/human_players/play_level_test.py | yunfanjiang/meltingpot | d1b93f9af805fc88498fa31617a375a1ca6f8dbd | [
"Apache-2.0"
] | null | null | null | meltingpot/python/human_players/play_level_test.py | yunfanjiang/meltingpot | d1b93f9af805fc88498fa31617a375a1ca6f8dbd | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 DeepMind Technologies 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 obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 41.955056 | 88 | 0.713042 |