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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4a4404fe1d92ad81158f3995d99e25353d3c8492 | 4,315 | py | Python | NitroGenerator.py | ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version | 65c6e6e18e640afb4fc433394a9e646c7fe4f4fa | [
"MIT"
] | 2 | 2021-07-27T06:57:36.000Z | 2021-08-16T04:17:41.000Z | NitroGenerator.py | ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version | 65c6e6e18e640afb4fc433394a9e646c7fe4f4fa | [
"MIT"
] | null | null | null | NitroGenerator.py | ATRS7391/Discord_Nitro_Generator_And_Checker_Python_Version | 65c6e6e18e640afb4fc433394a9e646c7fe4f4fa | [
"MIT"
] | 1 | 2021-11-06T05:32:40.000Z | 2021-11-06T05:32:40.000Z | import random
import sys
import subprocess
try:
import requests
except:
print("'requests' module not found! Trying to install... ")
pip_install("requests")
import requests
print_header()
user_nitro_type = get_nitro_type()
print("Enter the number of Nitro Codes you want: ")
... | 36.567797 | 145 | 0.526999 |
4a4408798c8290d4f3dfdd7e187e5ce0fde47eee | 1,018 | py | Python | 2015/main/13/part2.py | sgravrock/adventofcode | 1f5263ee242c8446ac1c08d2aef195a0a4595ccb | [
"MIT"
] | null | null | null | 2015/main/13/part2.py | sgravrock/adventofcode | 1f5263ee242c8446ac1c08d2aef195a0a4595ccb | [
"MIT"
] | null | null | null | 2015/main/13/part2.py | sgravrock/adventofcode | 1f5263ee242c8446ac1c08d2aef195a0a4595ccb | [
"MIT"
] | null | null | null | import sys
import itertools
if __name__ == "__main__":
print optimal(readfile(sys.stdin))
| 23.674419 | 76 | 0.650295 |
4a444c988302d74c981cef9771e8cb5c4e9d2945 | 29,855 | py | Python | networking/connection/stun_client.py | bcgrendel/python_networking | b4c847d9eeeea078868b8dcb3d385e02eb0b8e96 | [
"MIT"
] | null | null | null | networking/connection/stun_client.py | bcgrendel/python_networking | b4c847d9eeeea078868b8dcb3d385e02eb0b8e96 | [
"MIT"
] | null | null | null | networking/connection/stun_client.py | bcgrendel/python_networking | b4c847d9eeeea078868b8dcb3d385e02eb0b8e96 | [
"MIT"
] | null | null | null | import socket
import sys
import traceback
import struct
import threading;
from threading import Thread;
import time;
import datetime;
import json
#import buffered_message;
import hashlib
from Crypto.PublicKey import RSA
from connection_state import ConnectionState
# publickey = RSA.importKey(key_string)
import tcp;
im... | 38.374036 | 197 | 0.73589 |
4a4611f60a1d159391b648d9954a9b9efff56f91 | 11,842 | py | Python | tools/wptserve/tests/functional/test_response.py | qanat/wpt | 7c61a4594a95682531367b6956d1c37f8b8fd486 | [
"BSD-3-Clause"
] | 1 | 2021-12-12T18:13:24.000Z | 2021-12-12T18:13:24.000Z | tools/wptserve/tests/functional/test_response.py | qanat/wpt | 7c61a4594a95682531367b6956d1c37f8b8fd486 | [
"BSD-3-Clause"
] | 112 | 2021-09-27T14:39:02.000Z | 2022-03-30T14:26:35.000Z | tools/wptserve/tests/functional/test_response.py | qanat/wpt | 7c61a4594a95682531367b6956d1c37f8b8fd486 | [
"BSD-3-Clause"
] | null | null | null | import os
import unittest
import json
import types
from http.client import BadStatusLine
from io import BytesIO
import pytest
wptserve = pytest.importorskip("wptserve")
from .base import TestUsingServer, TestUsingH2Server, doc_root
if __name__ == '__main__':
unittest.main()
| 36.549383 | 123 | 0.616703 |
4a48326e1bcc0c4ce67dffee3193eed37eb8dfe4 | 2,881 | py | Python | bbc1/core/command.py | ks91/bbc1-pub | 6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0 | [
"Apache-2.0"
] | 89 | 2017-10-31T05:38:30.000Z | 2021-11-06T11:53:19.000Z | bbc1/core/command.py | ks91/bbc1-pub | 6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0 | [
"Apache-2.0"
] | 74 | 2017-11-07T13:06:33.000Z | 2021-05-06T14:26:19.000Z | bbc1/core/command.py | ks91/bbc1-pub | 6b9c33c6c8aec7d410ba9b704eeeb8c3772012d0 | [
"Apache-2.0"
] | 56 | 2017-11-04T13:54:56.000Z | 2021-06-18T18:05:46.000Z | # -*- coding: utf-8 -*-
"""
Copyright (c) 2017 beyond-blockchain.org.
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 l... | 57.62 | 116 | 0.701493 |
4a4861b9f42f405c3f1bc83a1f33fe81d2ee9835 | 33,928 | py | Python | main.py | cmcquinn/cmake-uvision-syncer | 26f34b79b3102a326ced2b0bca2524a98b69abf4 | [
"MIT"
] | null | null | null | main.py | cmcquinn/cmake-uvision-syncer | 26f34b79b3102a326ced2b0bca2524a98b69abf4 | [
"MIT"
] | null | null | null | main.py | cmcquinn/cmake-uvision-syncer | 26f34b79b3102a326ced2b0bca2524a98b69abf4 | [
"MIT"
] | 1 | 2022-03-31T13:47:50.000Z | 2022-03-31T13:47:50.000Z | """
Usage:
main.py [<project>]
Options:
<project> Path to the .uvprojx file (Keil Vision5 Project File).
The .uvoptx file (Keil Vision5 Project Options file) will
be located automatically as it shall be adjacent to the
.uvprojx file, having the same filename.
... | 38.207207 | 122 | 0.528855 |
4a48ec3aeae99c16ed4de0cce8fcde590af1ac0c | 3,434 | py | Python | scipy/weave/base_spec.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/weave/base_spec.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | null | null | null | scipy/weave/base_spec.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z |
import UserList
import base_info
| 35.040816 | 80 | 0.609785 |
4a48f5c7b324b298a0d8541fe2c9610bbecc1796 | 96 | py | Python | xception/test.py | latentai/model-zoo-models | 70a96e955b3b1245f8417613cd9debdae91b1d28 | [
"Apache-2.0"
] | 8 | 2020-05-16T20:14:27.000Z | 2020-07-08T09:23:24.000Z | inceptionv3/test.py | latentai/model-zoo-models | 70a96e955b3b1245f8417613cd9debdae91b1d28 | [
"Apache-2.0"
] | 9 | 2020-03-26T10:25:12.000Z | 2022-02-28T19:54:14.000Z | audio_recognition/test.py | latentai/model-zoo-models | 70a96e955b3b1245f8417613cd9debdae91b1d28 | [
"Apache-2.0"
] | 6 | 2020-03-19T20:52:09.000Z | 2022-03-06T01:33:29.000Z | #!/usr/bin/env python3
from utils.model_config_helpers import run_model_test
run_model_test()
| 16 | 53 | 0.822917 |
4a4b8d448257463b5f6347e3da0f24a94bac2394 | 10,816 | py | Python | mpunet/bin/cv_split.py | alexsosn/MultiPlanarUNet | 2d1cecdee391be8e9f72da95e33077ed82a2183a | [
"MIT"
] | null | null | null | mpunet/bin/cv_split.py | alexsosn/MultiPlanarUNet | 2d1cecdee391be8e9f72da95e33077ed82a2183a | [
"MIT"
] | null | null | null | mpunet/bin/cv_split.py | alexsosn/MultiPlanarUNet | 2d1cecdee391be8e9f72da95e33077ed82a2183a | [
"MIT"
] | 1 | 2020-10-07T12:44:47.000Z | 2020-10-07T12:44:47.000Z | from glob import glob
import sys
import os
import numpy as np
import random
from mpunet.utils import create_folders
import argparse
def _add_to_file_list_fallback(rel_image_path, image_path,
fname="LIST_OF_FILES.txt"):
"""
On some system synlinks are not supported, if --fi... | 41.125475 | 91 | 0.606971 |
4a4cc74674f055ddea956ccb55ba03b1e2719b21 | 1,964 | py | Python | src/client/pydaos/raw/conversion.py | gczsjdy/daos | abbd900010562f3acea9c6b1dc2ca98a8d3c71fa | [
"Apache-2.0"
] | 1 | 2021-12-04T14:57:48.000Z | 2021-12-04T14:57:48.000Z | src/client/pydaos/raw/conversion.py | gczsjdy/daos | abbd900010562f3acea9c6b1dc2ca98a8d3c71fa | [
"Apache-2.0"
] | 52 | 2019-12-04T05:47:10.000Z | 2020-06-09T03:26:12.000Z | src/client/pydaos/raw/conversion.py | gczsjdy/daos | abbd900010562f3acea9c6b1dc2ca98a8d3c71fa | [
"Apache-2.0"
] | 8 | 2019-12-04T08:26:00.000Z | 2020-06-09T07:40:11.000Z | #!/usr/bin/python
"""
(C) Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable ... | 40.081633 | 79 | 0.67057 |
4a4d871b786cc8a162c159d5da63831c271b0be6 | 956 | py | Python | experiments/nmt/utils/vocabulary_coverage.py | lvapeab/GroundHog_INMT | d5ad1d466eaf5040e99b9aaaa1b28c96402436ce | [
"BSD-3-Clause"
] | null | null | null | experiments/nmt/utils/vocabulary_coverage.py | lvapeab/GroundHog_INMT | d5ad1d466eaf5040e99b9aaaa1b28c96402436ce | [
"BSD-3-Clause"
] | null | null | null | experiments/nmt/utils/vocabulary_coverage.py | lvapeab/GroundHog_INMT | d5ad1d466eaf5040e99b9aaaa1b28c96402436ce | [
"BSD-3-Clause"
] | null | null | null | import cPickle
import argparse
parser = argparse.ArgumentParser(
"Computes the coverage of a shortlist in a corpus file")
parser.add_argument("--vocab",
required=True, help="Vocabulary to use (.pkl)")
parser.add_argument("--text",
required=True, help="Beam size, turn... | 28.117647 | 140 | 0.621339 |
4a4d9078d162889cc7a0df9b67742f350806db8d | 13,952 | py | Python | stores/apps/inventory/migrations/0001_initial.py | diassor/CollectorCity-Market-Place | 892ad220b8cf1c0fc7433f625213fe61729522b2 | [
"Apache-2.0"
] | 135 | 2015-03-19T13:28:18.000Z | 2022-03-27T06:41:42.000Z | stores/apps/inventory/migrations/0001_initial.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | null | null | null | stores/apps/inventory/migrations/0001_initial.py | dfcoding/CollectorCity-Market-Place | e59acec3d600c049323397b17cae14fdcaaaec07 | [
"Apache-2.0"
] | 83 | 2015-01-30T01:00:15.000Z | 2022-03-08T17:25:10.000Z | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 76.240437 | 181 | 0.573825 |
4a4e581c499165152bc4c54e7fe90ad3b4939698 | 48,733 | py | Python | src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py | vi4m/ralph | 2af767ee23d89be9e6cec0a537350a1ce8840bd1 | [
"Apache-2.0"
] | 1 | 2018-09-01T14:14:08.000Z | 2018-09-01T14:14:08.000Z | src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py | srikanth4372/sample | 127b5742ae464d42909a14d71e3c10c241ec3a23 | [
"Apache-2.0"
] | 1 | 2019-08-14T10:03:45.000Z | 2019-08-14T10:03:45.000Z | src/ralph/deployment/migrations/0005_auto__add_field_archiveddeployment_service__add_field_archiveddeployme.py | srikanth4372/sample | 127b5742ae464d42909a14d71e3c10c241ec3a23 | [
"Apache-2.0"
] | 1 | 2019-08-14T09:59:42.000Z | 2019-08-14T09:59:42.000Z | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
| 94.996101 | 239 | 0.572487 |
4a4f4bc06c12566c84246f7896cf490e49f35766 | 2,059 | py | Python | SPH/sphbwr_example2.py | RLReed/unotran | b317107e1a39490dda732f86a731872f5207a167 | [
"MIT"
] | null | null | null | SPH/sphbwr_example2.py | RLReed/unotran | b317107e1a39490dda732f86a731872f5207a167 | [
"MIT"
] | null | null | null | SPH/sphbwr_example2.py | RLReed/unotran | b317107e1a39490dda732f86a731872f5207a167 | [
"MIT"
] | 3 | 2019-12-02T23:01:24.000Z | 2022-01-26T04:48:41.000Z | import numpy as np
import sys
sys.path.append('/homes/rlreed/workspace/unotran/src')
from coarseBounds import computeBounds, Grouping
import pickle
from makeDLPbasis import makeBasis as makeDLP
from makeKLTbasis import makeBasis as makeKLT
import sph
import sph_dgm
import pydgm
if __name__ == '__main__':
np.set_p... | 27.453333 | 115 | 0.644973 |
4a4fd2b57960e4af2acbb3603c634154bea6e80b | 9,280 | py | Python | src/oci/management_agent/models/management_agent_aggregation_dimensions.py | CentroidChef/oci-python-sdk | fa406e27a52b40c70e220c20f52dfe2abe6236a3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 249 | 2017-09-11T22:06:05.000Z | 2022-03-04T17:09:29.000Z | src/oci/management_agent/models/management_agent_aggregation_dimensions.py | CentroidChef/oci-python-sdk | fa406e27a52b40c70e220c20f52dfe2abe6236a3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 228 | 2017-09-11T23:07:26.000Z | 2022-03-23T10:58:50.000Z | src/oci/management_agent/models/management_agent_aggregation_dimensions.py | CentroidChef/oci-python-sdk | fa406e27a52b40c70e220c20f52dfe2abe6236a3 | [
"Apache-2.0",
"BSD-3-Clause"
] | 224 | 2017-09-27T07:32:43.000Z | 2022-03-25T16:55:42.000Z | # coding: utf-8
# Copyright (c) 2016, 2021, 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.57085 | 245 | 0.691487 |
4a5059beb09af2b372b1d15c442329a32a505195 | 1,770 | py | Python | py_buycoins/sending.py | Bashorun97/BuyCoins-Python-SDK | 5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b | [
"MIT"
] | 1 | 2021-02-16T14:26:30.000Z | 2021-02-16T14:26:30.000Z | py_buycoins/sending.py | Bashorun97/BuyCoins-Python-SDK | 5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b | [
"MIT"
] | null | null | null | py_buycoins/sending.py | Bashorun97/BuyCoins-Python-SDK | 5b5e1ca6bfbfb56d30e99a737e431ca35b2e712b | [
"MIT"
] | null | null | null | from .gcore.queries import GetNetworkFee, GetBalance
from .gcore.mutations import SendCoin
from typing import List, Optional
from .exc import SendLimitError, InvalidClientObject
| 33.396226 | 114 | 0.627684 |
4a51566e6f537d3c7defee7d9f6dd2e1ce52fbb6 | 2,190 | py | Python | snippet/example/python/url.py | yp2800/snippet | 054af596655007cbec81340bd166489e706fffe6 | [
"MIT"
] | 94 | 2016-09-22T09:13:19.000Z | 2022-03-30T07:35:35.000Z | snippet/example/python/url.py | yp2800/snippet | 054af596655007cbec81340bd166489e706fffe6 | [
"MIT"
] | 1 | 2020-11-22T03:05:05.000Z | 2020-11-22T03:05:05.000Z | snippet/example/python/url.py | yp2800/snippet | 054af596655007cbec81340bd166489e706fffe6 | [
"MIT"
] | 38 | 2017-06-11T22:03:04.000Z | 2022-03-10T07:46:39.000Z | # -*- coding: utf-8 -*-
try:
from urlparse import urlparse, urlunsplit
except ImportError:
from urllib.parse import urlparse, urlunsplit
| 31.73913 | 94 | 0.581279 |
4a533004a2f846794254f71446a4268346a94d9f | 550 | py | Python | netvisor_api_client/services/dimension.py | tristen-tooming/netvisor-api-client | 37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69 | [
"MIT"
] | null | null | null | netvisor_api_client/services/dimension.py | tristen-tooming/netvisor-api-client | 37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69 | [
"MIT"
] | null | null | null | netvisor_api_client/services/dimension.py | tristen-tooming/netvisor-api-client | 37c974dc1e6acf1d0bde7e6298b23ca4d14ffd69 | [
"MIT"
] | null | null | null | from .base import Service
from ..requests.dimension import CreateDimensionsRequest, DimensionsListRequest
| 28.947368 | 79 | 0.616364 |
4a54146d12e005b9045dcbb5b4f63178061f1a78 | 7,338 | py | Python | cishouseholds/filter.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | cishouseholds/filter.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | 252 | 2021-05-19T11:12:43.000Z | 2022-03-02T10:39:10.000Z | cishouseholds/filter.py | ONS-SST/cis_households | e475df5929e6763a46cd05aff1f7e960ccbe8e21 | [
"MIT"
] | null | null | null | from typing import List
from typing import Union
from pyspark.sql import DataFrame
from pyspark.sql import functions as F
from pyspark.sql.window import Window
def filter_all_not_null(df: DataFrame, reference_columns: List[str]) -> DataFrame:
"""
Filter rows which have NULL values in all the specified column... | 38.020725 | 120 | 0.710139 |
4a544c66c68a458b980a2174bdc25da63354dc6e | 6,088 | py | Python | cscs-checks/cuda/multi_gpu.py | hpc-unibe-ch/reframe | 07f97e25cf4e7319782c37dd1923f7e70a368b99 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/cuda/multi_gpu.py | hpc-unibe-ch/reframe | 07f97e25cf4e7319782c37dd1923f7e70a368b99 | [
"BSD-3-Clause"
] | null | null | null | cscs-checks/cuda/multi_gpu.py | hpc-unibe-ch/reframe | 07f97e25cf4e7319782c37dd1923f7e70a368b99 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016-2020 Swiss National Supercomputing Centre (CSCS/ETH Zurich)
# ReFrame Project Developers. See the top-level LICENSE file for details.
#
# SPDX-License-Identifier: BSD-3-Clause
import os
import reframe.utility.sanity as sn
import reframe as rfm
| 42.873239 | 79 | 0.53433 |
4a548d3916f1d9f7cfe21d9195722cae0fa08812 | 5,094 | py | Python | sympy/series/tests/test_demidovich.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/series/tests/test_demidovich.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | sympy/series/tests/test_demidovich.py | msgoff/sympy | 1e7daef7514902f5e89718fa957b7b36c6669a10 | [
"BSD-3-Clause"
] | null | null | null | from sympy import (
limit,
Symbol,
oo,
sqrt,
Rational,
log,
exp,
cos,
sin,
tan,
pi,
asin,
together,
root,
S,
)
# Numbers listed with the tests refer to problem numbers in the book
# "Anti-demidovich, problemas resueltos, Ed. URSS"
x = Symbol("x")
... | 30.686747 | 86 | 0.458186 |
4a54b5369073023cda9e88293fbf883952f8a99e | 493 | py | Python | notion/ctx.py | jfhbrook/notion-tools | dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d | [
"MIT"
] | 1 | 2022-01-19T22:24:35.000Z | 2022-01-19T22:24:35.000Z | notion/ctx.py | jfhbrook/notion-tools | dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d | [
"MIT"
] | 4 | 2021-12-28T05:15:49.000Z | 2021-12-28T05:18:25.000Z | notion/ctx.py | jfhbrook/notion-tools | dd7c7fb07f98deaf5bba236aa5b4ea3d09ff0f3d | [
"MIT"
] | null | null | null | from notion.client import NotionClient
from notion.settings import Settings
| 27.388889 | 84 | 0.6714 |
4a5505f918153846b19b1a912cedc52b11e1b4e9 | 1,552 | py | Python | setup.py | rgooler/bootstrap-pip | 34eaa648c81e3f8213b97cd33bda23b50743122a | [
"Unlicense"
] | null | null | null | setup.py | rgooler/bootstrap-pip | 34eaa648c81e3f8213b97cd33bda23b50743122a | [
"Unlicense"
] | null | null | null | setup.py | rgooler/bootstrap-pip | 34eaa648c81e3f8213b97cd33bda23b50743122a | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as f:
return f.read()
install_requires = []
# install_re... | 30.431373 | 71 | 0.614046 |
4a553a81b1d7bdf7e54e2eefdce19b67fef643fd | 138 | py | Python | cfdata/tabular/converters/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 9 | 2020-10-25T11:52:34.000Z | 2022-01-23T02:45:41.000Z | cfdata/tabular/converters/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 2 | 2020-08-02T01:58:48.000Z | 2021-02-26T11:24:19.000Z | cfdata/tabular/converters/__init__.py | carefree0910/carefree-data | ae0f4ea5724b4efd5d76f2a9d420acf3322c1d19 | [
"MIT"
] | 1 | 2021-11-04T14:34:13.000Z | 2021-11-04T14:34:13.000Z | from .base import *
from .string import *
from .categorical import *
from .numerical import *
__all__ = ["Converter", "converter_dict"]
| 17.25 | 41 | 0.724638 |
4a579bbd92a904600d51867b452bca5458bcdea4 | 114 | py | Python | hello_world.py | BronWang/first_github | 9cdd40458014a448a5121268ebca907e3cba1eee | [
"MIT"
] | null | null | null | hello_world.py | BronWang/first_github | 9cdd40458014a448a5121268ebca907e3cba1eee | [
"MIT"
] | null | null | null | hello_world.py | BronWang/first_github | 9cdd40458014a448a5121268ebca907e3cba1eee | [
"MIT"
] | null | null | null | def hello_world():
"""Hello world"""
message = 'hello world'
print(message.title())
hello_world()
| 14.25 | 27 | 0.622807 |
4a5c703189126174bfc5a0bc0302603a5b45186d | 583 | py | Python | Python/Samples/Observer/UtObserver.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | 9 | 2019-03-14T01:54:31.000Z | 2021-11-26T13:00:32.000Z | Python/Samples/Observer/UtObserver.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | null | null | null | Python/Samples/Observer/UtObserver.py | plasroom46/DesignPattern.Sample | 86c05c5ae356cb01f3d075f248c45da3e6534d07 | [
"MIT"
] | 2 | 2019-08-19T06:00:04.000Z | 2021-07-15T01:23:52.000Z | import unittest
from Observers import Observer, ObserverMailServer, ObserverPbx
from Subjects import Subject, SubjectEflow
if __name__ == '__main__':
unittest.main()
| 21.592593 | 63 | 0.626072 |
4a5f2654f1609f5c5550084dae95f8a37c34d9e6 | 4,247 | py | Python | Python/2021/day_04/day_04.py | JonoRicci/Advent-Of-Code | 1c092410d6ece195f4689788af4b1091acf10fbb | [
"MIT"
] | null | null | null | Python/2021/day_04/day_04.py | JonoRicci/Advent-Of-Code | 1c092410d6ece195f4689788af4b1091acf10fbb | [
"MIT"
] | null | null | null | Python/2021/day_04/day_04.py | JonoRicci/Advent-Of-Code | 1c092410d6ece195f4689788af4b1091acf10fbb | [
"MIT"
] | null | null | null | """
Day 04
"""
from logger import logger
def main() -> None:
"""
Import the puzzle input, process and display the results.
"""
puzzle_input = import_list()
logger.debug(puzzle_input)
final_score = play_bingo(puzzle_input)
for result in final_score:
logger.info(f"The final score i... | 32.419847 | 80 | 0.53732 |
4a612749e70c643dade9a21e3ef7dab25d3f46e9 | 1,982 | py | Python | timeeval_experiments/algorithms/eif.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | 2 | 2022-01-29T03:46:31.000Z | 2022-02-14T14:06:35.000Z | timeeval_experiments/algorithms/eif.py | HPI-Information-Systems/TimeEval | 9b2717b89decd57dd09e04ad94c120f13132d7b8 | [
"MIT"
] | null | null | null | timeeval_experiments/algorithms/eif.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
_eif_parameters: Dict[str, Dict[str, Any]] = {
"extension_level": {
"defaultValue": None,
... | 33.033333 | 180 | 0.676085 |
4a614519b633b8e43e30737c32c7066d2365e9ab | 5,548 | py | Python | deepchem/models/tf_new_models/graph_models.py | KEHANG/deepchem | 367bea14cab47b1093bf106e0c196bb02d55c755 | [
"MIT"
] | null | null | null | deepchem/models/tf_new_models/graph_models.py | KEHANG/deepchem | 367bea14cab47b1093bf106e0c196bb02d55c755 | [
"MIT"
] | null | null | null | deepchem/models/tf_new_models/graph_models.py | KEHANG/deepchem | 367bea14cab47b1093bf106e0c196bb02d55c755 | [
"MIT"
] | 1 | 2021-07-09T19:58:54.000Z | 2021-07-09T19:58:54.000Z | """
Convenience classes for assembling graph models.
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
__author__ = "Han Altae-Tran and Bharath Ramsundar"
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
import tensorflow as tf
f... | 32.635294 | 82 | 0.6469 |
4a618ed57cbfdde42c612f538425cdaf22f7923a | 20,082 | py | Python | yandex/cloud/access/access_pb2.py | IIKovalenko/python-sdk | 980e2c5d848eadb42799132b35a9f58ab7b27157 | [
"MIT"
] | 1 | 2019-06-07T10:45:58.000Z | 2019-06-07T10:45:58.000Z | yandex/cloud/access/access_pb2.py | IIKovalenko/python-sdk | 980e2c5d848eadb42799132b35a9f58ab7b27157 | [
"MIT"
] | null | null | null | yandex/cloud/access/access_pb2.py | IIKovalenko/python-sdk | 980e2c5d848eadb42799132b35a9f58ab7b27157 | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yandex/cloud/access/access.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf i... | 40.900204 | 1,963 | 0.7684 |
4a629d479574b8f27c92b3a96ac0d80522d6e255 | 992 | py | Python | questionbank/users/urls.py | SyafiqTermizi/questionbank | 33e58db1a1610a85bd30a85d2f52e819bc27058b | [
"MIT"
] | 1 | 2018-04-17T23:58:46.000Z | 2018-04-17T23:58:46.000Z | questionbank/users/urls.py | SyafiqTermizi/questionbank | 33e58db1a1610a85bd30a85d2f52e819bc27058b | [
"MIT"
] | 8 | 2019-12-04T23:08:00.000Z | 2022-02-13T22:48:26.000Z | questionbank/users/urls.py | SyafiqTermizi/questionbank | 33e58db1a1610a85bd30a85d2f52e819bc27058b | [
"MIT"
] | null | null | null | from django.urls import path
from .views import (
UserListView, UserUpdateView, UserProfileView, UserDeleteView,
AcceptInvitationView, SpecialtyListView, SpecialtyCreateView, SpecialtyUpdateView,
SpecialtyDeleteView
)
app_name = 'users'
urlpatterns = [
path('', UserListView.as_view(), name='list'),
... | 39.68 | 97 | 0.708669 |
4a6439ff07d926ead0739ddd1b337b6e86927570 | 8,197 | py | Python | qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py | Zoufalc/qiskit-machine-learning | aae3941214cd9667a53b643f229d11d0bff32c60 | [
"Apache-2.0"
] | 1 | 2021-07-07T21:23:38.000Z | 2021-07-07T21:23:38.000Z | qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py | Zoufalc/qiskit-machine-learning | aae3941214cd9667a53b643f229d11d0bff32c60 | [
"Apache-2.0"
] | null | null | null | qiskit_machine_learning/algorithms/regressors/neural_network_regressor.py | Zoufalc/qiskit-machine-learning | aae3941214cd9667a53b643f229d11d0bff32c60 | [
"Apache-2.0"
] | 1 | 2021-04-11T14:30:32.000Z | 2021-04-11T14:30:32.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 39.791262 | 99 | 0.595218 |
4a655d791ecdecd8d04559095721de06fb34dc2a | 2,380 | py | Python | residuals.py | fbob/mplFOAM | 90c9a970ba9975ce115ef5a66eb22fc463b54003 | [
"MIT"
] | 8 | 2016-11-01T05:43:48.000Z | 2022-01-27T02:12:29.000Z | residuals.py | fbob/mplFOAM | 90c9a970ba9975ce115ef5a66eb22fc463b54003 | [
"MIT"
] | null | null | null | residuals.py | fbob/mplFOAM | 90c9a970ba9975ce115ef5a66eb22fc463b54003 | [
"MIT"
] | 3 | 2016-11-01T05:44:01.000Z | 2019-05-15T04:04:57.000Z | #!/usr/bin/env python
# encoding: utf-8
import sys
import getopt
import re
import os
import pylab as plt
import numpy as np
# Define the variables for which the residuals will be plotted
variables = ["Ux", "Uy", "T", "p_rgh", "k", "epsilon"]
# Get the arguments of the script
try:
options, args = getopt.getopt(s... | 34.492754 | 114 | 0.64958 |
4a6725140b49d63b56d6ce94163eb9cfc057133e | 4,295 | py | Python | content_generator/vitae.py | empiricalstateofmind/personal_website | cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c | [
"MIT"
] | null | null | null | content_generator/vitae.py | empiricalstateofmind/personal_website | cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c | [
"MIT"
] | 3 | 2015-09-10T09:26:29.000Z | 2015-10-30T10:47:33.000Z | content_generator/vitae.py | empiricalstateofmind/personal_website | cb361f9fd6bd1b1dc8dd39c87cc003d847ae4a2c | [
"MIT"
] | null | null | null | # Generate the vitae.json file used to populate the Vitae section of the website.
import pandas as pd
import re
from datetime import datetime
from collections import defaultdict
import json
# Publications
if __name__ == "__main__":
# FILEPATH = "D:/Dropbox/projects/personal_cv/vitae.xlsx" # We can p... | 33.818898 | 102 | 0.563213 |
4a6776593c88474050fcd17038b16a7c7bc8d4c6 | 7,509 | py | Python | cement/ext/ext_generate.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 826 | 2015-01-09T13:23:35.000Z | 2022-03-18T01:19:40.000Z | cement/ext/ext_generate.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 316 | 2015-01-14T10:35:22.000Z | 2022-03-08T17:18:10.000Z | cement/ext/ext_generate.py | tomekr/cement | fece8629c48bcd598fd61d8aa7457a5df4c4f831 | [
"BSD-3-Clause"
] | 112 | 2015-01-10T15:04:26.000Z | 2022-03-16T08:11:58.000Z | """
Cement generate extension module.
"""
import re
import os
import inspect
import yaml
import shutil
from .. import Controller, minimal_logger, shell
from ..utils.version import VERSION, get_version
LOG = minimal_logger(__name__)
| 35.088785 | 80 | 0.481555 |
4a681f9f92ee718dd3a1a15638701370f778139a | 169 | py | Python | ditto/core/__init__.py | Kvoti/ditto | eb4efb241e54bf679222d14afeb71d9d5441c122 | [
"BSD-3-Clause"
] | null | null | null | ditto/core/__init__.py | Kvoti/ditto | eb4efb241e54bf679222d14afeb71d9d5441c122 | [
"BSD-3-Clause"
] | 9 | 2015-11-10T15:17:22.000Z | 2015-11-12T11:07:02.000Z | ditto/core/__init__.py | Kvoti/ditto | eb4efb241e54bf679222d14afeb71d9d5441c122 | [
"BSD-3-Clause"
] | null | null | null | from . import forms
from . import views
ADMIN_ROLE = "Administrator"
MEMBER_ROLE = "Member"
GUEST_ROLE = "Guest"
DEFAULT_ROLES = [ADMIN_ROLE, MEMBER_ROLE, GUEST_ROLE]
| 18.777778 | 53 | 0.763314 |
4a6a1474e56bbc2b491bd544f9d2c60a78d79285 | 1,216 | py | Python | training_stats/hrm.py | salwator/training_stats | 3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e | [
"MIT"
] | 4 | 2018-01-02T01:10:03.000Z | 2019-02-09T23:37:13.000Z | training_stats/hrm.py | salwator/training_stats | 3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e | [
"MIT"
] | 4 | 2018-01-05T16:46:35.000Z | 2019-03-19T22:10:36.000Z | training_stats/hrm.py | salwator/training_stats | 3f3bacbaa01e90e8658cf5b66bede42a37e3fb6e | [
"MIT"
] | 2 | 2016-12-09T22:36:58.000Z | 2018-07-22T12:58:06.000Z | from .gpxfile import get_hr_measurements
from .utils import interpolate
from operator import itemgetter
def __calculate_moving_sums(points, window):
""" Calculates hr moving sums of the window len """
time, hrs = zip(*points)
moving_sum = sum(hrs[0:window])
sums = [(time[0], moving_sum)]
for i, t ... | 39.225806 | 80 | 0.693257 |
4a6b2e5b7cf0173afb424be4c44105af0dae9900 | 7,577 | py | Python | scripts/utils/import_languages.py | mozilla-releng/staging-mozilla-vpn-client | f31d3762a607ccf2d7c6a016f7b800305fbf0113 | [
"Apache-2.0"
] | null | null | null | scripts/utils/import_languages.py | mozilla-releng/staging-mozilla-vpn-client | f31d3762a607ccf2d7c6a016f7b800305fbf0113 | [
"Apache-2.0"
] | null | null | null | scripts/utils/import_languages.py | mozilla-releng/staging-mozilla-vpn-client | f31d3762a607ccf2d7c6a016f7b800305fbf0113 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import argparse
import xml.etree.ElementTree as ET
import os
import sys
import shutil
import ate... | 35.57277 | 121 | 0.665171 |
4a6e93c38ff63c100497bb656432f8f40340791b | 1,026 | py | Python | cogs/filter.py | Velgaster/Discord-User-Vote | 4aacc0bf01a11b948fa5355a3775ef8c7ae9751e | [
"MIT"
] | null | null | null | cogs/filter.py | Velgaster/Discord-User-Vote | 4aacc0bf01a11b948fa5355a3775ef8c7ae9751e | [
"MIT"
] | null | null | null | cogs/filter.py | Velgaster/Discord-User-Vote | 4aacc0bf01a11b948fa5355a3775ef8c7ae9751e | [
"MIT"
] | null | null | null | from discord.ext import commands
import discord
| 35.37931 | 84 | 0.665692 |
4a6fe4cb292136ed5cb190cbef1dbace08d2c9c3 | 1,975 | py | Python | api/app.py | sai-krishna-msk/KickAssist | 7fb256e3ef4beff231332f6491ebb975f3fe4b43 | [
"MIT"
] | null | null | null | api/app.py | sai-krishna-msk/KickAssist | 7fb256e3ef4beff231332f6491ebb975f3fe4b43 | [
"MIT"
] | 7 | 2021-06-08T21:18:49.000Z | 2022-03-12T00:24:33.000Z | api/app.py | sai-krishna-msk/KickAssist | 7fb256e3ef4beff231332f6491ebb975f3fe4b43 | [
"MIT"
] | null | null | null | from ml_model.model import KickModel
import numpy as np
import pandas as pd
import eli5
import joblib
import flask
from flask import Flask, render_template, request, jsonify
app = Flask(__name__)
model_oh = joblib.load('ml_model/estimators/model_oh.sav')
model_hel = joblib.load('ml_model/estimators/model_hel.sav')
e... | 33.474576 | 132 | 0.716456 |
4a70669d9d055da240cf688e557bf0a87257569e | 2,810 | py | Python | snowddl/resolver/primary_key.py | littleK0i/SnowDDL | b24cb3676e41fec8876d61a101ba242e7272a18f | [
"Apache-2.0"
] | 21 | 2022-02-10T16:52:03.000Z | 2022-03-18T15:27:18.000Z | snowddl/resolver/primary_key.py | littleK0i/SnowDDL | b24cb3676e41fec8876d61a101ba242e7272a18f | [
"Apache-2.0"
] | null | null | null | snowddl/resolver/primary_key.py | littleK0i/SnowDDL | b24cb3676e41fec8876d61a101ba242e7272a18f | [
"Apache-2.0"
] | 1 | 2022-03-05T11:02:42.000Z | 2022-03-05T11:02:42.000Z | from snowddl.blueprint import PrimaryKeyBlueprint
from snowddl.resolver.abc_schema_object_resolver import AbstractSchemaObjectResolver, ResolveResult, ObjectType
| 36.973684 | 111 | 0.5879 |
4a713700e9c156f74125bcaeca0299290201d914 | 675 | py | Python | modules/module0/02_datastructures_and_geometry/datastructures_2b.py | tetov/ITA19 | 1af68a8885caf83acd98f4136d0286539ccbe63b | [
"MIT"
] | 7 | 2019-11-13T20:29:54.000Z | 2020-02-26T14:30:54.000Z | modules/module0/02_datastructures_and_geometry/datastructures_2b.py | GeneKao/ITA19 | c4b10dc183599eed4ed60d922b6ef5922d173bdb | [
"MIT"
] | 4 | 2019-11-07T20:57:51.000Z | 2020-03-04T11:43:18.000Z | modules/module0/02_datastructures_and_geometry/datastructures_2b.py | GeneKao/ITA19 | c4b10dc183599eed4ed60d922b6ef5922d173bdb | [
"MIT"
] | 6 | 2019-10-30T13:25:54.000Z | 2020-02-14T14:06:09.000Z | import os
import compas
from compas.datastructures import Mesh
from compas_rhino.artists import MeshArtist
HERE = os.path.dirname(__file__)
DATA = os.path.join(HERE, 'data')
FILE = os.path.join(DATA, 'faces.obj')
mesh = Mesh.from_obj(FILE)
artist = MeshArtist(mesh, layer="Mesh")
artist.draw_vertices(
color={ke... | 25 | 94 | 0.722963 |
4a7152ca8736c0b2b62e12278fe928d5690e8c0b | 461 | py | Python | OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | 2 | 2022-03-04T11:39:03.000Z | 2022-03-13T07:13:23.000Z | OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | null | null | null | OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | null | null | null | # The Pokemon class should receive a name (string) and health (int) upon initialization.
# It should also have a method called pokemon_details that returns the information about the pokemon:
# "{pokemon_name} with health {pokemon_health}"
| 35.461538 | 101 | 0.70282 |
4a71705f7aaede9643300a7a698cb26841f08adc | 1,936 | py | Python | tests/test_pandas.py | ONSdigital/ons_utils | 5ff0952c174984deb601af8ad4c21f26c7b24623 | [
"MIT"
] | null | null | null | tests/test_pandas.py | ONSdigital/ons_utils | 5ff0952c174984deb601af8ad4c21f26c7b24623 | [
"MIT"
] | null | null | null | tests/test_pandas.py | ONSdigital/ons_utils | 5ff0952c174984deb601af8ad4c21f26c7b24623 | [
"MIT"
] | 1 | 2022-03-17T08:03:17.000Z | 2022-03-17T08:03:17.000Z | """Tests for the pandas helpers in the pd_helpers.py module."""
import pytest
from pandas.testing import assert_frame_equal
from tests.conftest import create_dataframe
from ons_utils.pandas import *
def test_nested_dict_to_df():
"""Test for nested_dict_to_df."""
input_d = {
'bones': {
'f... | 22.776471 | 63 | 0.591426 |
4a71f720f8188e39f1b7b64f6e15744bd236efe6 | 72 | py | Python | lsf_ibutils/ibsub/__init__.py | seanfisk/lsf-ibutils | a22c738376d656ab38f4bfa3572d4693288098cb | [
"MIT"
] | null | null | null | lsf_ibutils/ibsub/__init__.py | seanfisk/lsf-ibutils | a22c738376d656ab38f4bfa3572d4693288098cb | [
"MIT"
] | null | null | null | lsf_ibutils/ibsub/__init__.py | seanfisk/lsf-ibutils | a22c738376d656ab38f4bfa3572d4693288098cb | [
"MIT"
] | 1 | 2021-06-03T22:32:54.000Z | 2021-06-03T22:32:54.000Z | """:mod:`lsf_ibutils.ibsub` -- Interactive batch submission utility
"""
| 24 | 67 | 0.722222 |
4a72355337ea53a1937c776fab78aa381734b4c1 | 193 | py | Python | build/lib/configger/fishes/__init__.py | PaperDevil/pyconfigger | 75c6e3f74e6e70d8ec9565397e2be9ae8815d44e | [
"MIT"
] | 2 | 2021-02-04T14:29:19.000Z | 2021-03-04T12:56:58.000Z | build/lib/configger/fishes/__init__.py | PaperDevil/pyconfigger | 75c6e3f74e6e70d8ec9565397e2be9ae8815d44e | [
"MIT"
] | null | null | null | build/lib/configger/fishes/__init__.py | PaperDevil/pyconfigger | 75c6e3f74e6e70d8ec9565397e2be9ae8815d44e | [
"MIT"
] | 2 | 2020-08-19T21:50:30.000Z | 2020-11-04T03:51:33.000Z | import os
splited_path = os.path.realpath(__file__).split('\\')[:-1]
fish_path = '\\'.join(splited_path)
fish_json_name = "fish.json"
fish_json_path = os.path.join(fish_path, fish_json_name)
| 24.125 | 58 | 0.735751 |
4a73c0e8a1979c239e091749b325602ad4a40468 | 5,620 | py | Python | setup.py | IntuitionEngineeringTeam/RedBlackPy | 99630408153bea7494415c402eb2d9881f3168ee | [
"Apache-2.0"
] | 12 | 2018-08-24T20:46:38.000Z | 2022-01-20T16:25:23.000Z | setup.py | IntuitionEngineeringTeam/RedBlackPy | 99630408153bea7494415c402eb2d9881f3168ee | [
"Apache-2.0"
] | 1 | 2019-04-02T04:19:58.000Z | 2019-04-02T04:19:58.000Z | setup.py | IntuitionEngineeringTeam/RedBlackPy | 99630408153bea7494415c402eb2d9881f3168ee | [
"Apache-2.0"
] | 3 | 2018-07-05T22:47:27.000Z | 2019-05-25T06:40:40.000Z | #
# Created by Soldoskikh Kirill.
# Copyright 2018 Intuition. All rights reserved.
#
import os
import platform
from setuptools import setup
from setuptools.command.build_ext import build_ext
from distutils.extension import Extension
from Cython.Build import cythonize
from rbp_setup_tools.code_generation import gener... | 44.251969 | 108 | 0.57242 |
4a73d46ee78874a78fab6b3b0aaa918a453b1649 | 8,296 | py | Python | source/accounts/views.py | kishan2064/hashpy1 | 2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264 | [
"BSD-3-Clause"
] | null | null | null | source/accounts/views.py | kishan2064/hashpy1 | 2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264 | [
"BSD-3-Clause"
] | 5 | 2020-02-11T22:31:59.000Z | 2021-06-10T17:45:14.000Z | source/accounts/views.py | kishan2064/hashpy1 | 2f8c6fddb07e80e9a7b37a5632ed8ab8bf68d264 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib.auth import login, authenticate, REDIRECT_FIELD_NAME, get_user_model
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.views import PasswordResetView as BasePasswordResetView, SuccessURLAllowedHostsMixin
from django.shortcuts impor... | 32.155039 | 118 | 0.690333 |
4a7405fc354c53785ef8307b7ce20355175f5c8f | 7,320 | py | Python | conversationkg/kgs/writers.py | INDElab/conversationkg | 8bfe09b0afb4954f633a9287f723c61dcd21ce46 | [
"Apache-2.0"
] | 3 | 2021-01-18T10:07:44.000Z | 2021-05-27T07:39:35.000Z | conversationkg/kgs/writers.py | INDElab/conversationkg | 8bfe09b0afb4954f633a9287f723c61dcd21ce46 | [
"Apache-2.0"
] | 3 | 2020-12-09T23:20:27.000Z | 2021-03-06T11:08:24.000Z | conversationkg/kgs/writers.py | INDElab/conversationkg | 8bfe09b0afb4954f633a9287f723c61dcd21ce46 | [
"Apache-2.0"
] | 1 | 2021-02-19T12:10:11.000Z | 2021-02-19T12:10:11.000Z | from ..conversations.corpus import Conversation
from ..conversations.emails import Email
from collections import Counter
import matplotlib
import pandas as pd
import json
from neo4j import GraphDatabase
| 30.247934 | 124 | 0.454645 |
4a74f67398645a5ea142cd4ebc8cc51cbdd14233 | 590 | py | Python | model-test.py | shikew/Handwriting-calculator | 5e0da9f8ceac6dcc815139c6855dfc6fb5af909f | [
"Apache-2.0"
] | null | null | null | model-test.py | shikew/Handwriting-calculator | 5e0da9f8ceac6dcc815139c6855dfc6fb5af909f | [
"Apache-2.0"
] | null | null | null | model-test.py | shikew/Handwriting-calculator | 5e0da9f8ceac6dcc815139c6855dfc6fb5af909f | [
"Apache-2.0"
] | 1 | 2019-09-11T11:48:47.000Z | 2019-09-11T11:48:47.000Z | import numpy as np
from PIL import Image
from keras.models import load_model
img_gray = Image.open('1002.png')
number = np.array(img_gray)
print(number.shape)
print('shape',number.flatten().shape)
print('number:',number)
number = number.astype('float32')
number = number/255 #
number = number.flatten()
print('number.... | 28.095238 | 48 | 0.749153 |
4a752e0adb3dfdb8832eacdb68f81c47021fa651 | 378 | gyp | Python | deps/libgdal/gyp-formats/ogr_mem.gyp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 42 | 2021-03-26T17:34:52.000Z | 2022-03-18T14:15:31.000Z | deps/libgdal/gyp-formats/ogr_mem.gyp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 29 | 2021-06-03T14:24:01.000Z | 2022-03-23T15:43:58.000Z | deps/libgdal/gyp-formats/ogr_mem.gyp | khrushjing/node-gdal-async | 6546b0c8690f2db677d5385b40b407523503b314 | [
"Apache-2.0"
] | 8 | 2021-05-14T19:26:37.000Z | 2022-03-21T13:44:42.000Z | {
"includes": [
"../common.gypi"
],
"targets": [
{
"target_name": "libgdal_ogr_mem_frmt",
"type": "static_library",
"sources": [
"../gdal/ogr/ogrsf_frmts/mem/ogrmemdatasource.cpp",
"../gdal/ogr/ogrsf_frmts/mem/ogrmemlayer.cpp",
"../gdal/ogr/ogrsf_frmts/mem/ogrmemdriver.cpp"
],
"include... | 18.9 | 55 | 0.595238 |
4a75b7b70277fd3cd807924be5321a95f06ea318 | 72,121 | py | Python | iblviewer/volume.py | nantille/iblviewer | a5dad67e8f4b99a535297ba0803caf07b1107ca1 | [
"MIT"
] | null | null | null | iblviewer/volume.py | nantille/iblviewer | a5dad67e8f4b99a535297ba0803caf07b1107ca1 | [
"MIT"
] | null | null | null | iblviewer/volume.py | nantille/iblviewer | a5dad67e8f4b99a535297ba0803caf07b1107ca1 | [
"MIT"
] | null | null | null | from dataclasses import dataclass, field
from typing import Mapping, List, Any
from datetime import datetime
import logging
import pandas as pd
import glob
import numpy as np
import logging
import os
from collections import OrderedDict
import nrrd
import vtk
import vedo
from vtk.util.numpy_support import numpy_to_vtk
... | 39.867883 | 119 | 0.609892 |
4a76ff4e7600c0692264f843891e33f896e8b3a4 | 12,670 | py | Python | modeling/dataset.py | LaudateCorpus1/ml-cread | b5d5aa87faa0ddad0b41b6b0672395a8bf6147ae | [
"AML"
] | 18 | 2021-05-25T17:06:46.000Z | 2021-11-08T09:47:48.000Z | modeling/dataset.py | LaudateCorpus1/ml-cread | b5d5aa87faa0ddad0b41b6b0672395a8bf6147ae | [
"AML"
] | null | null | null | modeling/dataset.py | LaudateCorpus1/ml-cread | b5d5aa87faa0ddad0b41b6b0672395a8bf6147ae | [
"AML"
] | 6 | 2021-06-03T21:29:34.000Z | 2022-03-26T11:38:37.000Z | #
# For licensing see accompanying LICENSE file.
# Copyright (C) 2021 Apple Inc. All Rights Reserved.
#
'''
Dataset file
'''
import sys
import time
import json
import copy
from itertools import chain
from tqdm import tqdm, trange
import torch
from torch.utils.data import DataLoader, RandomSampler
SPECIAL_TOKENS = {... | 38.510638 | 139 | 0.728808 |
4a770f589bb75a8f2ce9da24f74f5b68103d69bf | 2,431 | py | Python | hy/lex/lexer.py | schuster-rainer/hy | d969ed63d67c4a9070fd41a8fbff35da845e0619 | [
"MIT"
] | 12 | 2015-01-01T21:21:31.000Z | 2021-06-14T19:51:59.000Z | hy/lex/lexer.py | schuster-rainer/hy | d969ed63d67c4a9070fd41a8fbff35da845e0619 | [
"MIT"
] | null | null | null | hy/lex/lexer.py | schuster-rainer/hy | d969ed63d67c4a9070fd41a8fbff35da845e0619 | [
"MIT"
] | 2 | 2016-01-17T21:59:29.000Z | 2016-09-06T20:56:41.000Z | # Copyright (c) 2013 Nicolas Dandrimont <nicolas.dandrimont@crans.org>
#
# 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,... | 34.239437 | 76 | 0.667626 |
4a77208eebfdf92ef53ffabde97b664e8625e12d | 1,319 | py | Python | week6/shuffle.py | solideveloper/afs-210 | 2ba0bb7c7617cd3169907458f657696a6987689d | [
"Apache-2.0"
] | 1 | 2022-01-06T01:22:17.000Z | 2022-01-06T01:22:17.000Z | week6/shuffle.py | solideveloper/afs-210 | 2ba0bb7c7617cd3169907458f657696a6987689d | [
"Apache-2.0"
] | null | null | null | week6/shuffle.py | solideveloper/afs-210 | 2ba0bb7c7617cd3169907458f657696a6987689d | [
"Apache-2.0"
] | null | null | null | # Python provides a built-in method called random.shuffle that will shuffle the list data type. Do not use this.
# For this assignment, you are to create your own shuffle algorithm that will take as input a sorted list and randomly shuffle the items before returning the list. Try to make your algorithm as efficient a... | 54.958333 | 217 | 0.749052 |
4a78cf1db1ffe2307d7c782737a9e5d96a2685ca | 1,254 | py | Python | workbox/workbox/lib/helpers.py | pr3sto/workbox | 558147a1a387dcfbe03be0fbc366d1d793364da6 | [
"MIT"
] | null | null | null | workbox/workbox/lib/helpers.py | pr3sto/workbox | 558147a1a387dcfbe03be0fbc366d1d793364da6 | [
"MIT"
] | null | null | null | workbox/workbox/lib/helpers.py | pr3sto/workbox | 558147a1a387dcfbe03be0fbc366d1d793364da6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Template Helpers used in workbox"""
import logging
import socket
from datetime import datetime
from markupsafe import Markup
import psutil
import tg
log = logging.getLogger(__name__)
def current_year():
""" Return current year. """
now = datetime.now()
return now.strftime('%Y... | 22.392857 | 75 | 0.679426 |
4a79466df9295fa5ad7c3a62c359310229ec684a | 5,647 | py | Python | tadataka/dataset/new_tsukuba.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 54 | 2019-11-15T16:30:34.000Z | 2022-01-13T15:18:54.000Z | tadataka/dataset/new_tsukuba.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 11 | 2019-02-28T08:28:24.000Z | 2020-04-07T04:47:12.000Z | tadataka/dataset/new_tsukuba.py | IshitaTakeshi/Tadataka | 852c7afb904503005e51884408e1492ef0be836f | [
"Apache-2.0"
] | 1 | 2020-02-26T13:59:40.000Z | 2020-02-26T13:59:40.000Z | import csv
import os
from pathlib import Path
from xml.etree import ElementTree as ET
from tqdm import tqdm
from scipy.spatial.transform import Rotation
from skimage.io import imread
import numpy as np
from tadataka.camera import CameraModel, CameraParameters, FOV
from tadataka.dataset.frame import Frame
from tadatak... | 34.644172 | 81 | 0.673278 |
4a798e4f49354ed1b300d7ffad5bbb4e1e929e1a | 2,015 | py | Python | krogon/maybe.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | 1 | 2020-03-02T14:17:02.000Z | 2020-03-02T14:17:02.000Z | krogon/maybe.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | null | null | null | krogon/maybe.py | enamrik/krogon | a41a10ed346b7198509929ed9ba1e9fcf778dc78 | [
"MIT"
] | null | null | null | from typing import Callable, TypeVar, Union, Tuple
from krogon.infix import Infix
A = TypeVar('A')
B = TypeVar('B')
E = TypeVar('E')
Maybe = Union[Tuple['just', A], Tuple['nothing']]
def _cast_to_maybe(result):
if result is None:
return nothing()
if isinstance(result, tuple) and len(result... | 24.573171 | 93 | 0.629777 |
4a7b9c4a8cadc7353c88a38e25dd9423d5d9fd02 | 1,224 | py | Python | Python (desafios)/desafio 009.py | EbersonDias/html-css | b05ec122dc7649656bcfce92dc92ded127bbb2cf | [
"MIT"
] | null | null | null | Python (desafios)/desafio 009.py | EbersonDias/html-css | b05ec122dc7649656bcfce92dc92ded127bbb2cf | [
"MIT"
] | null | null | null | Python (desafios)/desafio 009.py | EbersonDias/html-css | b05ec122dc7649656bcfce92dc92ded127bbb2cf | [
"MIT"
] | null | null | null | # Desafio 009
# Faa um programa que leia um numero inteiro qualquer
# e mostre na tela a sua tabuada.
n = int(input('digite um numero. '))
r1 = n * 1
r2 = (n * 2)
r3 = (n * 3)
r4 = (n * 4)
r5 = (n * 5)
r6 = (n * 6)
r7 = (n * 7)
r8 = (n * 8)
r9 = (n * 9)
r10 = (n * 10)
print('A Tabuada de {} '.format(n))
print ('{} x 1... | 29.142857 | 54 | 0.476307 |
4a7be356f01ce20843ac2c23c55739f318ee8ab2 | 110 | py | Python | tools/__init__.py | supercatex/TelloEdu | 8f434dbc9866be3025cb119175c40f1d2d7fb5f3 | [
"MIT"
] | 1 | 2019-12-04T04:30:06.000Z | 2019-12-04T04:30:06.000Z | tools/__init__.py | supercatex/TelloEdu | 8f434dbc9866be3025cb119175c40f1d2d7fb5f3 | [
"MIT"
] | null | null | null | tools/__init__.py | supercatex/TelloEdu | 8f434dbc9866be3025cb119175c40f1d2d7fb5f3 | [
"MIT"
] | null | null | null | from tools.TelloEdu import TelloEdu
from tools.Controller import *
from tools.SocketObject import SocketClient | 36.666667 | 43 | 0.863636 |
4a7c28f2d0e401facd4b7a43c6ef059a3a83d500 | 1,193 | py | Python | neutron/agent/ovsdb/native/helpers.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 1,080 | 2015-01-04T08:35:00.000Z | 2022-03-27T09:15:52.000Z | neutron/agent/ovsdb/native/helpers.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 24 | 2015-02-21T01:48:28.000Z | 2021-11-26T02:38:56.000Z | neutron/agent/ovsdb/native/helpers.py | congnt95/neutron | 6a73a362c5ff5b7c28c15a49f47a9900c0d2b4e1 | [
"Apache-2.0"
] | 1,241 | 2015-01-02T10:47:10.000Z | 2022-03-27T09:42:23.000Z | # Copyright (c) 2015 Red Hat, 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 ... | 37.28125 | 78 | 0.776194 |
4a7c2f9da4b8409fc6aa35e9cf22595f9dcc870b | 302 | py | Python | conlo/serializer/json_serializer.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | conlo/serializer/json_serializer.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | conlo/serializer/json_serializer.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | import json
from .base_serializer import BaseSerializer
| 21.571429 | 56 | 0.675497 |
4a7c6a7695f0b0415525906b878d73cc448533e5 | 264 | py | Python | console_weather.py | AlBan52/API_weather | 86779a2da622ad7a4537070e5c28a04235415161 | [
"MIT"
] | null | null | null | console_weather.py | AlBan52/API_weather | 86779a2da622ad7a4537070e5c28a04235415161 | [
"MIT"
] | null | null | null | console_weather.py | AlBan52/API_weather | 86779a2da622ad7a4537070e5c28a04235415161 | [
"MIT"
] | null | null | null | import requests
locations = ['', '', '']
payload = {'mnTq': '', 'lang': 'ru'}
for location in locations:
response = requests.get(f'http://wttr.in/{location}', params=payload)
response.raise_for_status()
print(response.text)
| 26.4 | 73 | 0.681818 |
4a7c6e1277408f69b722e24dda7d218cc70dda0f | 1,192 | py | Python | migrations/versions/576712576c48_added_model_for_photo_comments.py | Torniojaws/vortech-backend | f775a97eeae089fa720088d86fe92d40bc5d65bc | [
"MIT"
] | null | null | null | migrations/versions/576712576c48_added_model_for_photo_comments.py | Torniojaws/vortech-backend | f775a97eeae089fa720088d86fe92d40bc5d65bc | [
"MIT"
] | 93 | 2017-09-01T22:24:10.000Z | 2021-12-22T14:07:06.000Z | migrations/versions/576712576c48_added_model_for_photo_comments.py | Torniojaws/vortech-backend | f775a97eeae089fa720088d86fe92d40bc5d65bc | [
"MIT"
] | null | null | null | """Added model for photo comments
Revision ID: 576712576c48
Revises: 75bb906df167
Create Date: 2018-03-30 02:06:22.877079
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '576712576c48'
down_revision = '75bb906df167'
branch_labels = None
depends_o... | 30.564103 | 81 | 0.672819 |
4a7c8678af28d04fe1e6fb14eef66f905c9017b0 | 164 | py | Python | __init__.py | m3sserschmitt/basic-http | bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82 | [
"MIT"
] | null | null | null | __init__.py | m3sserschmitt/basic-http | bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82 | [
"MIT"
] | null | null | null | __init__.py | m3sserschmitt/basic-http | bc09a888b44a11154e2cc9bfaf46fc9fd3a79b82 | [
"MIT"
] | null | null | null | import basic_http.session
basic_http.session.LIB_VERSION = 'v0.0.4-beta'
basic_http.session.DEFAULT_AGENT = 'basic-http version ' + basic_http.session.LIB_VERSION
| 32.8 | 89 | 0.810976 |
4a7f99985562db134bffd977ed750d635522a7a2 | 12,364 | py | Python | usaspending_api/etl/helpers.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | usaspending_api/etl/helpers.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | 3 | 2020-02-12T01:16:46.000Z | 2021-06-10T20:36:57.000Z | usaspending_api/etl/helpers.py | truthiswill/usaspending-api | bd7d915442e2ec94cc830c480ceeffd4479be6c0 | [
"CC0-1.0"
] | null | null | null | from datetime import datetime
import warnings
import logging
from django.db.models import Q, Case, Value, When
from django.core.cache import caches, CacheKeyWarning
import django.apps
from usaspending_api.references.models import Agency, Location, RefCountryCode
from usaspending_api.references.helpers import canonica... | 38.397516 | 119 | 0.63604 |
4a7ff589828eca63a17e67bce0eb8c34992e953a | 158 | py | Python | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py | DevAerial/flask-api-template | 6d3f745f2dacb793c4bdc6aaaceb86eb472efe55 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py | DevAerial/flask-api-template | 6d3f745f2dacb793c4bdc6aaaceb86eb472efe55 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/{{cookiecutter.app_name}}/extensions.py | DevAerial/flask-api-template | 6d3f745f2dacb793c4bdc6aaaceb86eb472efe55 | [
"MIT"
] | null | null | null | from flask_marshmallow import Marshmallow{% if cookiecutter.use_celery == 'yes'%}
from celery import Celery
celery = Celery(){% endif %}
ma = Marshmallow()
| 22.571429 | 81 | 0.740506 |
4a80119456047b966a3757d7fd0f105dc0f5c4f6 | 9,193 | py | Python | code/mapplot.py | young-astronomer/vlpy | 7fd434d307a7cc3593f84a7c6c2f4a4a86865afe | [
"Apache-2.0"
] | null | null | null | code/mapplot.py | young-astronomer/vlpy | 7fd434d307a7cc3593f84a7c6c2f4a4a86865afe | [
"Apache-2.0"
] | null | null | null | code/mapplot.py | young-astronomer/vlpy | 7fd434d307a7cc3593f84a7c6c2f4a4a86865afe | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 21 11:11:56 2020
This program is use to plot polarization map from vlbi fits image.
You should specify the input fits images by -i or --infile,
output file by -o or --output,
contour levs by -l or --levs
contour base by -c or --cmul
polarization... | 30.042484 | 101 | 0.617753 |
4a81890c9e9eec4855a38a91238cf619244d9278 | 2,174 | py | Python | umbrella/api/v1/router.py | pizhi/umbrella | 95027e6e11a6c8df2ab5f7c202b0c1d2183f839a | [
"Apache-2.0"
] | 1 | 2018-01-13T11:45:24.000Z | 2018-01-13T11:45:24.000Z | umbrella/api/v1/router.py | pizhi/umbrella | 95027e6e11a6c8df2ab5f7c202b0c1d2183f839a | [
"Apache-2.0"
] | null | null | null | umbrella/api/v1/router.py | pizhi/umbrella | 95027e6e11a6c8df2ab5f7c202b0c1d2183f839a | [
"Apache-2.0"
] | 2 | 2018-01-01T11:39:49.000Z | 2018-08-07T07:16:45.000Z | # Copyright 2011 OpenStack Foundation
# 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... | 36.233333 | 78 | 0.559798 |
4a8279873b5f73ab9eb14c009ec624c039c590a5 | 943 | py | Python | exemples/test_thomson_simu.py | butala/TomograPy | a1da41f1e0b7406a1b770e56428789c54175de20 | [
"CECILL-B"
] | 7 | 2016-07-05T08:31:42.000Z | 2022-03-31T20:24:13.000Z | exemples/test_thomson_simu.py | esoubrie/TomograPy | a1da41f1e0b7406a1b770e56428789c54175de20 | [
"CECILL-B"
] | null | null | null | exemples/test_thomson_simu.py | esoubrie/TomograPy | a1da41f1e0b7406a1b770e56428789c54175de20 | [
"CECILL-B"
] | 4 | 2018-08-14T01:54:21.000Z | 2022-03-10T19:44:43.000Z | #!/usr/bin/env python
import time
import numpy as np
import tomograpy
import lo
# object
obj = tomograpy.centered_cubic_map(10, 64)
obj[:] = tomograpy.phantom.shepp_logan(obj.shape)
# data
radius = 200
a = tomograpy.fov(obj, radius)
data = tomograpy.centered_stack(a, 128, n_images=60, radius=radius, max_lon=np.pi)
# m... | 30.419355 | 82 | 0.680806 |
4a82ccd998802091de5e9ed946344d30c5ebeba5 | 8,124 | py | Python | geopy/geocoders/google.py | ulope/geopy | 605d0d84137a93949ad03820fa31dc2dab77f089 | [
"MIT"
] | 1 | 2021-03-12T15:31:30.000Z | 2021-03-12T15:31:30.000Z | geopy/geocoders/google.py | ulope/geopy | 605d0d84137a93949ad03820fa31dc2dab77f089 | [
"MIT"
] | null | null | null | geopy/geocoders/google.py | ulope/geopy | 605d0d84137a93949ad03820fa31dc2dab77f089 | [
"MIT"
] | null | null | null | import logging
from urllib import urlencode
from urllib2 import urlopen
import simplejson
import xml
from xml.parsers.expat import ExpatError
from geopy.geocoders.base import Geocoder
from geopy import Point, Location, util
| 41.238579 | 139 | 0.601674 |
4a845cfff802e634071ade849b849c82adc47ef1 | 395 | py | Python | interactive_grabcut/repo/drag2draw.py | hiankun/py_sandbox | 6623edd0c8ab17641e1ce09fba7da34c4865fc4f | [
"MIT"
] | null | null | null | interactive_grabcut/repo/drag2draw.py | hiankun/py_sandbox | 6623edd0c8ab17641e1ce09fba7da34c4865fc4f | [
"MIT"
] | null | null | null | interactive_grabcut/repo/drag2draw.py | hiankun/py_sandbox | 6623edd0c8ab17641e1ce09fba7da34c4865fc4f | [
"MIT"
] | null | null | null | # source: https://www.youtube.com/watch?v=U0sVp1xLiyo
from tkinter import *
master = Tk()
c = Canvas(master, width=600, height=400, bg='white')
c.pack(expand=True, fill=BOTH)
c.bind('<B1-Motion>', paint)
master.mainloop()
| 21.944444 | 55 | 0.648101 |
4a85a5edb74a35f6879d8683f009ca6b7f10f18c | 194 | py | Python | migrations/20220114_03_Heqaz-insert-default-serverinfo.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 126 | 2022-01-15T02:29:07.000Z | 2022-03-30T09:57:40.000Z | migrations/20220114_03_Heqaz-insert-default-serverinfo.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 18 | 2022-01-11T22:24:35.000Z | 2022-03-16T00:13:01.000Z | migrations/20220114_03_Heqaz-insert-default-serverinfo.py | lin483/Funny-Nations | 2bb1cd23a3d5f1e4a4854c73ac27f62c98127ef6 | [
"MIT"
] | 25 | 2022-01-22T15:06:27.000Z | 2022-03-01T04:34:19.000Z | """
insert default serverInfo
"""
from yoyo import step
__depends__ = {'20220114_02_lHBKM-new-table-serverinfo'}
steps = [
step("INSERT INTO `serverInfo` (`onlineMinute`) VALUES (0);")
]
| 16.166667 | 65 | 0.695876 |
4a861f0810192c03917c1a4cb2de99fa5681f49e | 14,913 | py | Python | neutronclient/osc/v2/vpnaas/ipsec_site_connection.py | slawqo/python-neutronclient | ee08644c5f2424a40c70010dcf0fa2ad84809bfc | [
"Apache-2.0"
] | 120 | 2015-01-07T00:38:58.000Z | 2021-12-26T13:05:53.000Z | neutronclient/osc/v2/vpnaas/ipsec_site_connection.py | slawqo/python-neutronclient | ee08644c5f2424a40c70010dcf0fa2ad84809bfc | [
"Apache-2.0"
] | 1 | 2021-08-11T18:42:30.000Z | 2021-08-11T22:25:21.000Z | neutronclient/osc/v2/vpnaas/ipsec_site_connection.py | slawqo/python-neutronclient | ee08644c5f2424a40c70010dcf0fa2ad84809bfc | [
"Apache-2.0"
] | 153 | 2015-01-05T16:50:50.000Z | 2021-09-13T12:01:23.000Z | # Copyright 2017 FUJITSU LIMITED
# 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 req... | 39.768 | 79 | 0.632468 |
4a866ef89141cc4c966674193758ad5f52e83702 | 551 | py | Python | Arknights/flags.py | AlaricGilbert/ArknightsAutoHelper | 9e2db0c4e0d1be30856df731ab192da396121d94 | [
"MIT"
] | null | null | null | Arknights/flags.py | AlaricGilbert/ArknightsAutoHelper | 9e2db0c4e0d1be30856df731ab192da396121d94 | [
"MIT"
] | 1 | 2019-09-10T13:58:24.000Z | 2019-09-10T13:58:24.000Z | Arknights/flags.py | AlaricGilbert/ArknightsAutoHelper | 9e2db0c4e0d1be30856df731ab192da396121d94 | [
"MIT"
] | null | null | null | TINY_WAIT = 1
SMALL_WAIT = 3
MEDIUM_WAIT = 5
BIG_WAIT = 10
SECURITY_WAIT = 15
BATTLE_FINISH_DETECT = 12
BATTLE_NONE_DETECT_TIME = 90
BATTLE_END_SIGNAL_MAX_EXECUTE_TIME = 15
#
FLAGS_START_BATTLE_BIAS = (50, 25)
FLAGS_ENSURE_TEAM_INFO_BIAS = (25, 50)
#
FLAGS_CLICK_BIAS_TINY = (3, 3)
FLAGS_CLICK_BIAS_SMALL = (5, 5)
F... | 21.192308 | 44 | 0.751361 |
4a868fe7e98135f318566006794d9b95f620108a | 3,229 | py | Python | elasticsearch/client/shutdown.py | Conky5/elasticsearch-py | 93543a7fee51c0da6e898c9155bdb5f965c5bb53 | [
"Apache-2.0"
] | 4 | 2021-05-31T19:34:27.000Z | 2021-06-01T18:14:31.000Z | elasticsearch/client/shutdown.py | Conky5/elasticsearch-py | 93543a7fee51c0da6e898c9155bdb5f965c5bb53 | [
"Apache-2.0"
] | 22 | 2021-05-15T00:01:49.000Z | 2022-02-26T00:08:00.000Z | elasticsearch/client/shutdown.py | Conky5/elasticsearch-py | 93543a7fee51c0da6e898c9155bdb5f965c5bb53 | [
"Apache-2.0"
] | null | null | null | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use ... | 33.989474 | 85 | 0.637039 |
4a893fcf944a3942d0a9e7e6cc93c141d9894e31 | 13,620 | py | Python | sushichef.py | RechercheTech/sushi-chef-arvind-gupta-toys | 2b381d8942c16ed16b4a44d8fc020fe0a81a18c0 | [
"MIT"
] | 1 | 2020-05-10T06:16:48.000Z | 2020-05-10T06:16:48.000Z | sushichef.py | RechercheTech/sushi-chef-arvind-gupta-toys | 2b381d8942c16ed16b4a44d8fc020fe0a81a18c0 | [
"MIT"
] | 5 | 2019-10-04T11:35:21.000Z | 2020-05-25T14:19:41.000Z | sushichef.py | RechercheTech/sushi-chef-arvind-gupta-toys | 2b381d8942c16ed16b4a44d8fc020fe0a81a18c0 | [
"MIT"
] | 3 | 2019-09-24T00:15:00.000Z | 2020-02-06T16:25:36.000Z | #!/usr/bin/env python
import os
import requests
import re
import shutil
from arvind import ArvindVideo, ArvindLanguage, YOUTUBE_CACHE_DIR
from bs4 import BeautifulSoup
from bs4.element import NavigableString
from ricecooker.chefs import SushiChef
from ricecooker.classes.files import YouTubeVideoFile
from ricecooker... | 37.01087 | 113 | 0.606608 |
4a89792f0a691e63a2efbaa3d996bdb8f827265c | 1,170 | py | Python | api/views/domain.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | 1 | 2019-08-06T07:31:40.000Z | 2019-08-06T07:31:40.000Z | api/views/domain.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | api/views/domain.py | lndba/apasa_backend | e0bb96e22a22f6e2a5a2826f225388113473e7e2 | [
"Apache-2.0"
] | null | null | null | from rest_framework.viewsets import ModelViewSet,GenericViewSet
from rest_framework.response import Response
from api.serializers.domain import *
from api.pagination.page import MyPageNumberPagination
from api.models import *
| 35.454545 | 82 | 0.737607 |
4a89890f028ab800ae7dcb96dcff01c0b7e8d98a | 1,184 | py | Python | 90-subsets-ii.py | yuenliou/leetcode | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | [
"MIT"
] | null | null | null | 90-subsets-ii.py | yuenliou/leetcode | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | [
"MIT"
] | null | null | null | 90-subsets-ii.py | yuenliou/leetcode | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | [
"MIT"
] | null | null | null | #!/usr/local/bin/python3.7
# -*- coding: utf-8 -*-
from typing import List
'''90. II
nums
:
: [1,2,2]
:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]
LeetCode
https://leetcode-cn.com/problems/subsets-ii
'''
if __name__ == '__main__':
main()
| 19.733333 | 112 | 0.516047 |
4a8a19db97a47f9f1fc1395728868b9d716366fe | 450 | py | Python | tools/output_tool.py | climberwb/bert-pli | 0e6eda7a23b7502c86eab4c0d889fad1bbb57155 | [
"MIT"
] | 5 | 2020-12-24T01:46:40.000Z | 2022-03-18T19:15:10.000Z | tools/output_tool.py | climberwb/bert-pli | 0e6eda7a23b7502c86eab4c0d889fad1bbb57155 | [
"MIT"
] | 1 | 2021-04-05T14:27:24.000Z | 2021-04-05T14:27:24.000Z | tools/output_tool.py | climberwb/bert-pli | 0e6eda7a23b7502c86eab4c0d889fad1bbb57155 | [
"MIT"
] | 4 | 2020-12-28T09:20:13.000Z | 2021-12-10T13:33:21.000Z | import json
from .accuracy_tool import gen_micro_macro_result
| 25 | 77 | 0.653333 |
4a8ae0336fc8e8f4551cb0d621a28672bac709c0 | 27,100 | py | Python | python/drydock_provisioner/ingester/plugins/deckhand.py | Vjrx/airship-drydock | 315fb9864e6d55a66d5266f76c160be55d22c98b | [
"Apache-2.0"
] | 14 | 2018-05-19T11:58:22.000Z | 2019-05-10T12:31:36.000Z | python/drydock_provisioner/ingester/plugins/deckhand.py | Vjrx/airship-drydock | 315fb9864e6d55a66d5266f76c160be55d22c98b | [
"Apache-2.0"
] | 10 | 2019-11-12T17:21:16.000Z | 2021-11-10T18:16:06.000Z | python/drydock_provisioner/ingester/plugins/deckhand.py | Vjrx/airship-drydock | 315fb9864e6d55a66d5266f76c160be55d22c98b | [
"Apache-2.0"
] | 11 | 2018-06-05T16:21:18.000Z | 2019-04-03T11:44:34.000Z | # Copyright 2017 AT&T Intellectual Property. All other rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 37.225275 | 108 | 0.573579 |
4a8ca4ac28e4f99e7596ac67b54b694b5e38191d | 5,517 | py | Python | porting_tools/package_xml_porter.py | nreplogle/ros2-migration-tools | 8e422731dea52df19da6de780319a17516f60f7c | [
"Apache-2.0"
] | 92 | 2018-10-17T22:18:01.000Z | 2022-03-19T22:03:16.000Z | porting_tools/package_xml_porter.py | nreplogle/ros2-migration-tools | 8e422731dea52df19da6de780319a17516f60f7c | [
"Apache-2.0"
] | 12 | 2019-02-21T22:29:15.000Z | 2021-06-28T22:33:31.000Z | porting_tools/package_xml_porter.py | nreplogle/ros2-migration-tools | 8e422731dea52df19da6de780319a17516f60f7c | [
"Apache-2.0"
] | 19 | 2018-10-18T11:47:07.000Z | 2022-02-04T18:41:03.000Z | # Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "licens... | 39.12766 | 104 | 0.649085 |
4a8eaddf7ae51bc116bee8d180b8c5c1f2cfecaf | 4,739 | py | Python | endpoints/api/permission_models_interface.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 2,027 | 2019-11-12T18:05:48.000Z | 2022-03-31T22:25:04.000Z | endpoints/api/permission_models_interface.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 496 | 2019-11-12T18:13:37.000Z | 2022-03-31T10:43:45.000Z | endpoints/api/permission_models_interface.py | giuseppe/quay | a1b7e4b51974edfe86f66788621011eef2667e6a | [
"Apache-2.0"
] | 249 | 2019-11-12T18:02:27.000Z | 2022-03-22T12:19:19.000Z | import sys
from abc import ABCMeta, abstractmethod
from collections import namedtuple
from six import add_metaclass
| 21.15625 | 99 | 0.556447 |
4a8f1c2b21e9f7321bc8056b973b7bad4e6c12de | 754 | py | Python | configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-public.py | sht47/mmtracking | 5a25e418e9c598d1b576bce8702f5e156cbbefe7 | [
"Apache-2.0"
] | 12 | 2021-09-05T20:47:16.000Z | 2022-03-23T07:00:35.000Z | configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-public.py | hellock/mmtracking | a22a36b2055d80cf4a7a5ef3913849abb56defcb | [
"Apache-2.0"
] | 2 | 2021-09-06T13:20:09.000Z | 2022-01-13T05:36:14.000Z | configs/mot/tracktor/tracktor_faster-rcnn_r50_fpn_4e_mot17-public.py | hellock/mmtracking | a22a36b2055d80cf4a7a5ef3913849abb56defcb | [
"Apache-2.0"
] | 1 | 2021-07-15T00:26:35.000Z | 2021-07-15T00:26:35.000Z | _base_ = ['./tracktor_faster-rcnn_r50_fpn_4e_mot17-public-half.py']
model = dict(
pretrains=dict(
detector= # noqa: E251
'https://download.openmmlab.com/mmtracking/mot/faster_rcnn/faster-rcnn_r50_fpn_4e_mot17-ffa52ae7.pth' # noqa: E501
))
data_root = 'data/MOT17/'
test_set = 'test'
data = dict... | 41.888889 | 123 | 0.708223 |
4a8f5a90f2c6e24db504d3e023a88b1bddaccca9 | 2,277 | py | Python | browserstack/first_sample_build.py | Shaimyst/scrive_test | 38e3ea0192885d1776d24afdbea110d73adc4e8b | [
"MIT"
] | null | null | null | browserstack/first_sample_build.py | Shaimyst/scrive_test | 38e3ea0192885d1776d24afdbea110d73adc4e8b | [
"MIT"
] | null | null | null | browserstack/first_sample_build.py | Shaimyst/scrive_test | 38e3ea0192885d1776d24afdbea110d73adc4e8b | [
"MIT"
] | null | null | null | from threading import Thread
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWai... | 42.166667 | 149 | 0.700044 |
4a912235328cee2f8b87e2aaba4351c27f0e4c61 | 2,396 | py | Python | sanitizers/mvj.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 1 | 2021-01-12T08:14:10.000Z | 2021-01-12T08:14:10.000Z | sanitizers/mvj.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 249 | 2017-04-18T14:00:13.000Z | 2022-03-30T12:18:03.000Z | sanitizers/mvj.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 7 | 2017-04-18T08:43:54.000Z | 2021-07-28T07:29:30.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import random
from random import choice
from string import digits
from faker import Faker
fake = Faker("fi_FI")
| 18.866142 | 79 | 0.736227 |
4a914cd003bec02fcf0ace8e2f7e5de8208c8146 | 11,024 | py | Python | ISM_catalog_profile/scripts/ISM/ISM.py | rhmdnd/compliance-trestle-demos | 1d92c91cca1d23cf707f82f035b2d58ec67c953a | [
"Apache-2.0"
] | 10 | 2021-09-03T05:07:19.000Z | 2022-03-26T13:24:51.000Z | ISM_catalog_profile/scripts/ISM/ISM.py | rhmdnd/compliance-trestle-demos | 1d92c91cca1d23cf707f82f035b2d58ec67c953a | [
"Apache-2.0"
] | null | null | null | ISM_catalog_profile/scripts/ISM/ISM.py | rhmdnd/compliance-trestle-demos | 1d92c91cca1d23cf707f82f035b2d58ec67c953a | [
"Apache-2.0"
] | 4 | 2021-12-14T22:15:06.000Z | 2022-03-29T16:16:19.000Z | #!/usr/bin/env python3
# # -*- mode:python; coding:utf-8 -*-
# Copyright (c) 2020 IBM Corp. 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
#
# https://www.apache.org... | 42.4 | 119 | 0.642144 |
4a9299355672fcaae0c15f4927fbd9d0f9c5887b | 642 | py | Python | logistics/permissions.py | geo2tag-logistics/main | 3b55185ea97481bbabe38497e4608abefbf1ece1 | [
"Apache-2.0"
] | null | null | null | logistics/permissions.py | geo2tag-logistics/main | 3b55185ea97481bbabe38497e4608abefbf1ece1 | [
"Apache-2.0"
] | 5 | 2016-09-25T20:01:43.000Z | 2016-09-25T20:32:44.000Z | logistics/permissions.py | geo2tag-logistics/main | 3b55185ea97481bbabe38497e4608abefbf1ece1 | [
"Apache-2.0"
] | null | null | null | from rest_framework import permissions
| 25.68 | 64 | 0.755452 |
4a92c1904e0ba01d29ac9f188cf088ddb5d2ab71 | 1,488 | py | Python | src/python/reduce_fps_parallel.py | blancKaty/alignmentFralework_and_classif | 192565a928dad0d98553e0602e91eed59c4a193d | [
"Apache-2.0"
] | null | null | null | src/python/reduce_fps_parallel.py | blancKaty/alignmentFralework_and_classif | 192565a928dad0d98553e0602e91eed59c4a193d | [
"Apache-2.0"
] | null | null | null | src/python/reduce_fps_parallel.py | blancKaty/alignmentFralework_and_classif | 192565a928dad0d98553e0602e91eed59c4a193d | [
"Apache-2.0"
] | 1 | 2019-10-05T05:40:08.000Z | 2019-10-05T05:40:08.000Z | import os
import shutil
import sys
import multiprocessing
import glob
if __name__ == '__main__':
main()
| 24 | 72 | 0.608871 |
4a93ca990a939c4bbe34b2ca2569173da90ecbc7 | 3,598 | py | Python | ansible/utils/module_docs_fragments/docker.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2021-04-02T08:08:39.000Z | 2021-04-02T08:08:39.000Z | ansible/utils/module_docs_fragments/docker.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | ansible/utils/module_docs_fragments/docker.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 1 | 2020-05-03T01:13:16.000Z | 2020-05-03T01:13:16.000Z | # This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that ... | 38.276596 | 118 | 0.660645 |
4a9405edbd8cfdcda2cba6e2d4bef4fc6c17c93b | 806 | py | Python | setup.py | cyberjunky/python-garminconnect-aio | fb913a15107edee5c5530f3bded7c553ec57923b | [
"MIT"
] | 11 | 2021-06-08T14:55:33.000Z | 2022-02-03T03:12:14.000Z | setup.py | cyberjunky/python-garminconnect-aio | fb913a15107edee5c5530f3bded7c553ec57923b | [
"MIT"
] | 1 | 2021-08-07T09:24:35.000Z | 2021-08-07T17:30:40.000Z | setup.py | cyberjunky/python-garminconnect-aio | fb913a15107edee5c5530f3bded7c553ec57923b | [
"MIT"
] | 2 | 2021-06-04T15:34:22.000Z | 2021-10-02T19:48:13.000Z | #!/usr/bin/env python
from setuptools import setup
with open("README.md") as readme_file:
readme = readme_file.read()
setup(
author="Ron Klinkien",
author_email="ron@cyberjunky.nl",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
... | 29.851852 | 67 | 0.666253 |
4a940fa45e0ab9b5f708abce624a09bc0ed42b1a | 9,513 | py | Python | nova/tests/unit/virt/libvirt/fake_imagebackend.py | ChameleonCloud/nova | 4bb9421b02b71f2b218278aa6f97abace871b111 | [
"Apache-2.0"
] | 1 | 2016-07-18T22:05:01.000Z | 2016-07-18T22:05:01.000Z | nova/tests/unit/virt/libvirt/fake_imagebackend.py | ChameleonCloud/nova | 4bb9421b02b71f2b218278aa6f97abace871b111 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/virt/libvirt/fake_imagebackend.py | ChameleonCloud/nova | 4bb9421b02b71f2b218278aa6f97abace871b111 | [
"Apache-2.0"
] | 1 | 2021-11-12T03:55:41.000Z | 2021-11-12T03:55:41.000Z | # Copyright 2012 Grid Dynamics
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 41.723684 | 79 | 0.654157 |
4a94f180b8cf8188f6c73d72cff2209e4e3ba275 | 8,504 | py | Python | tests/test_email_subscriptions.py | coolboi567/dnstwister | b809ca721a13efc6b59e11587c582f6ba4b11587 | [
"Unlicense"
] | null | null | null | tests/test_email_subscriptions.py | coolboi567/dnstwister | b809ca721a13efc6b59e11587c582f6ba4b11587 | [
"Unlicense"
] | null | null | null | tests/test_email_subscriptions.py | coolboi567/dnstwister | b809ca721a13efc6b59e11587c582f6ba4b11587 | [
"Unlicense"
] | null | null | null | """Tests of the email subscription mechanism."""
import binascii
import flask_webtest
import mock
import pytest
import webtest.app
import dnstwister
import dnstwister.tools
import patches
def test_bad_error_codes(webapp):
"""Test the email error codes being weird doesn't break the page."""
no... | 32.212121 | 118 | 0.688147 |
4a95eafd7882de8499fc568c3c76a78f53505995 | 6,671 | py | Python | ershoufang/crawler_v2.py | zlikun/python-crawler-lianjia | 7e7bf0cbd333486ee62ac015e72b96d6003c8713 | [
"Apache-2.0"
] | 2 | 2018-10-25T05:52:33.000Z | 2021-12-22T06:39:30.000Z | ershoufang/crawler_v2.py | zlikun/python-crawler-lianjia | 7e7bf0cbd333486ee62ac015e72b96d6003c8713 | [
"Apache-2.0"
] | null | null | null | ershoufang/crawler_v2.py | zlikun/python-crawler-lianjia | 7e7bf0cbd333486ee62ac015e72b96d6003c8713 | [
"Apache-2.0"
] | 2 | 2019-02-02T14:38:26.000Z | 2020-07-21T01:57:17.000Z | """
1.
2.
3.
"""
import csv
import datetime
import logging
import multiprocessing as mp
import re
import time
from collections import OrderedDict
import requests
from pyquery import PyQuery
from requests import RequestException
base_url = r'https://sh.lianjia.com/ershoufang'
# URL+
seen_urls = set()
lock = mp.... | 28.75431 | 115 | 0.582072 |
4a960357ff5666b9fe043faf558321c7ac02d8e5 | 8,415 | py | Python | desktop/core/ext-py/pyu2f-0.1.4/pyu2f/convenience/customauthenticator.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 5,079 | 2015-01-01T03:39:46.000Z | 2022-03-31T07:38:22.000Z | desktop/core/ext-py/pyu2f-0.1.4/pyu2f/convenience/customauthenticator.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 4,640 | 2015-07-08T16:19:08.000Z | 2019-12-02T15:01:27.000Z | desktop/core/ext-py/pyu2f-0.1.4/pyu2f/convenience/customauthenticator.py | yetsun/hue | 2e48f0cc70e233ee0e1b40733d4b2a18d8836c66 | [
"Apache-2.0"
] | 2,033 | 2015-01-04T07:18:02.000Z | 2022-03-28T19:55:47.000Z | # Copyright 2016 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 required by applicable law or ag... | 34.487705 | 80 | 0.684848 |
4a9667d37782748097516470365e83980101a92e | 1,681 | py | Python | kive/portal/management/commands/graph_kive.py | dmacmillan/Kive | 76bc8f289f66fb133f78cb6d5689568b7d015915 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T06:10:01.000Z | 2021-12-22T06:10:01.000Z | kive/portal/management/commands/graph_kive.py | dmacmillan/Kive | 76bc8f289f66fb133f78cb6d5689568b7d015915 | [
"BSD-3-Clause"
] | null | null | null | kive/portal/management/commands/graph_kive.py | dmacmillan/Kive | 76bc8f289f66fb133f78cb6d5689568b7d015915 | [
"BSD-3-Clause"
] | null | null | null | import itertools
import os
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand
| 38.204545 | 86 | 0.543129 |
4a971f56d894bd93c1e6642fd2fd7e799cec7a1d | 8,543 | py | Python | summary.py | rpls/openlane_summary | 5057fab80a4acaf08e6503ced7abb932684145a5 | [
"Apache-2.0"
] | null | null | null | summary.py | rpls/openlane_summary | 5057fab80a4acaf08e6503ced7abb932684145a5 | [
"Apache-2.0"
] | null | null | null | summary.py | rpls/openlane_summary | 5057fab80a4acaf08e6503ced7abb932684145a5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import argparse
import os
import glob
import csv
import sys
import re
from shutil import which
import datetime
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="OpenLANE summary tool")
group = parser.add_mutually_exclusive_group(required=True)
# either choose... | 40.29717 | 164 | 0.628 |
4a9a27b8be786f9438239fbfe717a4e94dce8571 | 992 | py | Python | var/spack/repos/builtin/packages/py-cupy/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/py-cupy/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/py-cupy/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
| 35.428571 | 95 | 0.704637 |
4a9acf16b780b19cf351bb2d89e76f1956c1db38 | 1,742 | py | Python | simple_rest_client/decorators.py | cfytrok/python-simple-rest-client | 4896e8226ffe194625c63773ea6f49531293b308 | [
"MIT"
] | null | null | null | simple_rest_client/decorators.py | cfytrok/python-simple-rest-client | 4896e8226ffe194625c63773ea6f49531293b308 | [
"MIT"
] | null | null | null | simple_rest_client/decorators.py | cfytrok/python-simple-rest-client | 4896e8226ffe194625c63773ea6f49531293b308 | [
"MIT"
] | null | null | null | import logging
from functools import wraps
import status
from httpx import exceptions
from .exceptions import AuthError, ClientConnectionError, ClientError, NotFoundError, ServerError
logger = logging.getLogger(__name__)
| 29.033333 | 97 | 0.675086 |
4a9ad45bc6d5f8001c81f4145b812d1bf0d096f9 | 100 | py | Python | HPOBenchExperimentUtils/resource_manager/__init__.py | PhMueller/TrajectoryParser | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | null | null | null | HPOBenchExperimentUtils/resource_manager/__init__.py | PhMueller/TrajectoryParser | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | 1 | 2021-09-01T16:35:21.000Z | 2021-11-05T19:53:25.000Z | HPOBenchExperimentUtils/resource_manager/__init__.py | automl/HPOBenchExperimentUtils | 9c19d37a3ff29a593c9b6d3e7fd3857e8c2d724f | [
"Apache-2.0"
] | null | null | null | from HPOBenchExperimentUtils.resource_manager.file_resource_manager import FileBasedResourceManager
| 50 | 99 | 0.94 |