hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
e88904f4cc0e311b2d511e320d3f1fe06e464135
1,729
py
Python
src/kol/Session.py
thedufer/pykol
bad8ff4bf2f4bc6a7a5b6dbbd9333ef5aaf3432a
[ "BSD-3-Clause" ]
1
2016-05-08T12:10:32.000Z
2016-05-08T12:10:32.000Z
src/kol/Session.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
src/kol/Session.py
ZJ/pykol
c0523a4a4d09bcdf16f8c86c78da96914e961076
[ "BSD-3-Clause" ]
null
null
null
from kol.request.AccountRequest import AccountRequest from kol.request.HomepageRequest import HomepageRequest from kol.request.LoginRequest import LoginRequest from kol.request.LogoutRequest import LogoutRequest import cookielib import hashlib import urllib2 class Session(object): "This class represents a user's ses...
33.25
90
0.768652
e8890e1d76918fb92b9aec5c34f611542b1fe7f4
3,304
py
Python
sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/authoring/sample_export_import_project.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/authoring/sample_export_import_project.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/cognitivelanguage/azure-ai-language-questionanswering/samples/authoring/sample_export_import_project.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """ FILE: sample_export_import_project.py DESCRIPTION: This sample demonstrates how to export and import a Qna project. USAGE: python sample_ex...
32.07767
92
0.589891
e8891ce431042e2138310bc5803991376a029e6a
961
py
Python
test/test_hyvaterveys.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
null
null
null
test/test_hyvaterveys.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
14
2016-10-14T15:09:42.000Z
2017-03-01T14:29:29.000Z
test/test_hyvaterveys.py
joniok/hybra-medialoader
ebc6df58287b5146917d66de69d807309cea4a8f
[ "MIT" ]
1
2020-11-18T13:06:48.000Z
2020-11-18T13:06:48.000Z
import sys import os import filecmp import importlib import datetime import common path = os.path.abspath('.') sys.path.append(path) domain = 'hyvaterveys' url = 'http://www.hyvaterveys.fi/artikkeli/terveys/kauhea-kutina-mika-ihmeen-nokkosrokko' out = 'test/parser_out.txt' module = importlib.import_module( 'sites.' ...
23.439024
89
0.734651
e889369a8d71eacf66a18cba57330e8f684d5f5d
6,371
py
Python
tf_agents/policies/scripted_py_policy_test.py
wookayin/tensorflow-agents
ae3751dfeed52422a350227047648dd82297960b
[ "Apache-2.0" ]
2
2018-12-20T01:49:33.000Z
2019-12-09T13:17:05.000Z
tf_agents/policies/scripted_py_policy_test.py
Akshay22121995/agents
1455410dffed3cfdede793b87c179965cdd27d22
[ "Apache-2.0" ]
null
null
null
tf_agents/policies/scripted_py_policy_test.py
Akshay22121995/agents
1455410dffed3cfdede793b87c179965cdd27d22
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2018 The TF-Agents Authors. # # 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...
32.840206
75
0.626746
e889ac3b17fb6312df26234675c69c401545003b
12,723
py
Python
tests/unit/driver/network/test_async_driver.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
tests/unit/driver/network/test_async_driver.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
tests/unit/driver/network/test_async_driver.py
dmfigol/scrapli
d1f8641a1e3f490dab6bae704f092255efe6655c
[ "MIT" ]
null
null
null
import pytest from scrapli.exceptions import ScrapliPrivilegeError @pytest.mark.asyncio async def test_escalate(monkeypatch, async_network_driver): async def _send_input(cls, channel_input, **kwargs): assert channel_input == "configure terminal" return b"raw", b"processed" monkeypatch.setatt...
34.953297
102
0.737012
e889c7702d9d3f627d8cdfd3c24e886b6ba9354e
8,269
py
Python
tests/test_crypto.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
3
2020-10-05T14:34:46.000Z
2020-11-27T07:44:57.000Z
tests/test_crypto.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2022-02-15T16:01:12.000Z
2022-02-15T16:01:12.000Z
tests/test_crypto.py
Quirinwierer/dracoon-python-api
7fad8cdb95069fb80069e76c740547f3ad02b910
[ "Apache-2.0" ]
1
2021-03-04T08:16:07.000Z
2021-03-04T08:16:07.000Z
import unittest import sys from dracoon import crypto from dracoon.crypto_models import FileKey, FileKeyVersion, PlainFileKey, PlainFileKeyVersion, PlainUserKeyPairContainer, UserKeyPairContainer, UserKeyPairVersion class TestDRACOONCrypto(unittest.TestCase): """ Test cases for the DRACOON Python Crypto package ""...
49.51497
161
0.748821
e88a1cf1ae6c95a800d229fe3f888d173a3a2ad7
4,130
py
Python
detectron2/engine/launch.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
45
2021-04-09T12:52:44.000Z
2022-03-30T09:08:58.000Z
detectron2/engine/launch.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
8
2021-06-29T07:47:07.000Z
2022-03-23T04:21:00.000Z
detectron2/engine/launch.py
superclass-FSIS/test
9bb2844c77704a609291135b75e94a794f235aa0
[ "Apache-2.0" ]
10
2021-05-23T05:48:29.000Z
2022-03-16T06:42:13.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import logging import torch import torch.distributed as dist import torch.multiprocessing as mp from detectron2.utils import comm __all__ = ["launch"] def _find_free_port(): import socket sock = socket.socket(socket.AF_INET, socket.SOCK...
39.333333
113
0.672881
e88a36c93c5123184ab63ae683c3683c3ec5bd31
5,640
py
Python
utils/getTeamParts.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
null
null
null
utils/getTeamParts.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
3
2015-09-21T21:50:45.000Z
2015-09-22T15:42:28.000Z
utils/getTeamParts.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
2
2020-03-28T01:33:51.000Z
2021-07-18T13:56:27.000Z
import os import django import csv import sys from BeautifulSoup import BeautifulSoup import urllib2 import xml.etree.ElementTree as ET pro_dir = os.getcwd() sys.path.append(pro_dir) os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BioDesigner.settings") from design.models import teams, team_parts, parts regionList2...
36.153846
179
0.657092
e88a3ea76b07d3656e1696f11a5228214738d332
1,627
py
Python
python/phonenumbers/data/region_EH.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
2
2019-03-30T02:12:54.000Z
2021-03-08T18:59:40.000Z
python/phonenumbers/data/region_EH.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
null
null
null
python/phonenumbers/data/region_EH.py
Eyepea/python-phonenumbers
0336e191fda80a21ed5c19d5e029ad8c70f620ee
[ "Apache-2.0" ]
1
2018-11-10T03:47:34.000Z
2018-11-10T03:47:34.000Z
"""Auto-generated file, do not edit by hand. EH metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_EH = PhoneMetadata(id='EH', country_code=212, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[5689]\\d{8}', possible_number_pattern='...
81.35
162
0.776275
e88a4b330455464ebdec97be6c9f1c20ea656675
662
py
Python
tools/test_StereoCamera.py
chaowu2009/stereo-vo
56ce2295c80935016d015f72ebc7f81c5ee8d898
[ "MIT" ]
4
2017-06-03T02:01:46.000Z
2020-02-22T14:57:15.000Z
tools/test_StereoCamera.py
chaowu2009/stereo-vo
56ce2295c80935016d015f72ebc7f81c5ee8d898
[ "MIT" ]
null
null
null
tools/test_StereoCamera.py
chaowu2009/stereo-vo
56ce2295c80935016d015f72ebc7f81c5ee8d898
[ "MIT" ]
1
2019-09-29T13:33:14.000Z
2019-09-29T13:33:14.000Z
import numpy as np import cv2 import matplotlib.pylab as plt left = 1 rght = 2 while(True): cap1 = cv2.VideoCapture(left) cap2 = cv2.VideoCapture(right) # Capture frame-by-frame ret, frame1 = cap1.read() ret, frame2 = cap2.read() # Display the resulting frame plt.subplot(121) plt.imsh...
20.060606
47
0.643505
e88a50cd790353898e79679a79a382973a28b294
3,211
py
Python
st2common/st2common/validators/api/action.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2common/st2common/validators/api/action.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2common/st2common/validators/api/action.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
42.25
93
0.712862
e88a56271360a95349b0c3624178ef9087c43e40
727
py
Python
sdk/schemaregistry/azure-schemaregistry-avroencoder/tests/perfstress_tests/encode_content.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/schemaregistry/azure-schemaregistry-avroencoder/tests/perfstress_tests/encode_content.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/schemaregistry/azure-schemaregistry-avroencoder/tests/perfstress_tests/encode_content.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.764706
94
0.540578
e88a62d9e650547ea0e1d74e9d29f374f53a3a65
9,834
py
Python
experiments/ashvin/icra2021/widowx/sawyer_obj2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_obj2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icra2021/widowx/sawyer_obj2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.demos.source.dict_to_mdp_path_loader import EncoderDictToMDPPathLoader from rlkit.launchers.experiments.ashvin.awac_rig import awac_rig_experiment from rlkit.launchers.launcher_util import run_experiment from rlkit.launchers.arglauncher import run_variants from rlkit.t...
36.154412
126
0.610433
e88a795bf8dbc524e722e7076270df50ffc77c90
2,471
py
Python
dockermix/container.py
kstaken/dockermix
59ae7814914dc5b405188bfc975c3827acd2d629
[ "MIT" ]
3
2015-08-02T13:28:21.000Z
2018-10-09T06:55:03.000Z
dockermix/container.py
kstaken/dockermix
59ae7814914dc5b405188bfc975c3827acd2d629
[ "MIT" ]
null
null
null
dockermix/container.py
kstaken/dockermix
59ae7814914dc5b405188bfc975c3827acd2d629
[ "MIT" ]
3
2015-06-16T11:10:50.000Z
2020-03-07T07:01:27.000Z
import os import docker import dockermix import utils, StringIO class Container: def __init__(self, name, container_desc={}): self.log = utils._setupLogging() if 'config' not in container_desc: raise dockermix.ContainerError('No Docker configuration parameters found.') self.desc = container_d...
33.391892
111
0.683124
e88a8f3b8f81e9ea359d84048c5f258d1a1d88cf
858
py
Python
migrations/versions/b6f5ce3efbef_.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
1
2021-10-17T13:28:51.000Z
2021-10-17T13:28:51.000Z
migrations/versions/b6f5ce3efbef_.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
migrations/versions/b6f5ce3efbef_.py
Simple2B/cortex-backend
9cf6802b0eff9254875bcbe553517500ccfc9082
[ "MIT" ]
null
null
null
"""empty message Revision ID: b6f5ce3efbef Revises: 4f3a5a86655a Create Date: 2021-12-16 14:24:08.653437 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b6f5ce3efbef' down_revision = '4f3a5a86655a' branch_labels = None depends_on = None def upgrade(): # ...
27.677419
103
0.717949
e88ad333a7ef3dddeb486faab09fc107efb83400
4,366
py
Python
quartic_sdk/utilities/constants.py
Quarticai/QuarticSDK
443b2a35c0e0c6ee9eb3f9d073b7108e0b61f0d4
[ "MIT" ]
1
2021-03-26T12:39:44.000Z
2021-03-26T12:39:44.000Z
quartic_sdk/utilities/constants.py
Quarticai/QuarticSDK
443b2a35c0e0c6ee9eb3f9d073b7108e0b61f0d4
[ "MIT" ]
95
2021-02-18T03:15:38.000Z
2022-03-25T05:39:12.000Z
quartic_sdk/utilities/constants.py
Quarticai/QuarticSDK
443b2a35c0e0c6ee9eb3f9d073b7108e0b61f0d4
[ "MIT" ]
1
2021-09-03T12:46:18.000Z
2021-09-03T12:46:18.000Z
# Authentication types OAUTH = 1 BASIC = 2 # MODEL Constants NUM_ROW_PER_PREDICTION = 100 MAX_PREDICTION_PROCESSING_TIME = 10 # In seconds MAX_MODEL_SIZE = 100 * 1024 * 1024 # 100 MB MODEL = "model" MODEL_NAME = "model_name" OUTPUT_TAG_NAME = "output_tag_name" FEATURE_TAGS = "feature_tags" TARGET_TAG_ID = "target_ta...
21.091787
68
0.709574
e88ad8f3e33c7168fa9594f5e3636805404b4a0f
3,946
py
Python
workon/forms/icon.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2018-01-19T16:08:54.000Z
2018-01-19T16:08:54.000Z
workon/forms/icon.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
1
2020-07-06T08:35:18.000Z
2020-07-06T08:35:18.000Z
workon/forms/icon.py
devittek/django-workon
c39ddecac2649406a7a58922646478c5615d4cfd
[ "BSD-3-Clause" ]
4
2020-04-08T06:14:46.000Z
2020-12-11T14:28:06.000Z
import re import os import logging import locale import json import datetime, time from django import forms from django.conf import settings from django.db.models import CharField from django.core.exceptions import ValidationError from django.forms.utils import flatatt from django.utils.safestring import mark_safe impo...
33.159664
127
0.521034
e88adbae3f599ce690081391f514af4b93d43a43
23,697
py
Python
test/test_utils/eks.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
test/test_utils/eks.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
test/test_utils/eks.py
laurenyu/deep-learning-containers
0714377fcb075a3bce06b444787beb34cc13c9fc
[ "Apache-2.0" ]
null
null
null
""" Helper functions for EKS Integration Tests """ import os import sys import json import logging import random import boto3 from botocore.exceptions import ClientError from retrying import retry from invoke import run, Context DEFAULT_REGION = "us-west-2" # Path till directory test/ ROOT_DIR = os.path.abspath(os....
38.531707
181
0.662953
e88af8af10bd06f5e3fc28a83ae438b35ad9fd9b
133,182
py
Python
chroma_core/south_migrations/0043_alter_power_control_type_option_default.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/south_migrations/0043_alter_power_control_type_option_default.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/south_migrations/0043_alter_power_control_type_option_default.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'PowerControlType.default_options' db.alter_column(u'chr...
87.908911
253
0.577863
e88b1a8d1f22dcd9ce48f97ee29691126c57f473
1,733
py
Python
proxy/core/connection/server.py
GDGSNF/proxy.py
3ee2824217286df3c108beadf3185eee35c28b49
[ "BSD-3-Clause" ]
null
null
null
proxy/core/connection/server.py
GDGSNF/proxy.py
3ee2824217286df3c108beadf3185eee35c28b49
[ "BSD-3-Clause" ]
null
null
null
proxy/core/connection/server.py
GDGSNF/proxy.py
3ee2824217286df3c108beadf3185eee35c28b49
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ proxy.py ~~~~~~~~ ⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging. :copyright: (c) 2013-present by Abhinav Singh and contributors. :license: BSD, see LICENSE...
32.698113
94
0.668782
e88b1ca31cc330fe016207bc6c05f565e4a744f2
5,951
py
Python
ros/src/twist_controller/dbw_node.py
simonry14/SDC_Capstone
b09f076ed1e635343fe37c6f94c5df2a4c1e2cf2
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
simonry14/SDC_Capstone
b09f076ed1e635343fe37c6f94c5df2a4c1e2cf2
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
simonry14/SDC_Capstone
b09f076ed1e635343fe37c6f94c5df2a4c1e2cf2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller ''' You can build this node only after you have built (or partially built) th...
44.081481
101
0.605781
e88b2dfcf012f071efca01ba8eb1ffe1bbb8df47
462
py
Python
examples/curseDimensionality.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/curseDimensionality.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
examples/curseDimensionality.py
Duane321/pyprobml
6d0ba29f22dc7fec9dfc73788bc5520e97663bdb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Show the curse of dimensionality. import matplotlib.pyplot as pl import numpy as np from utils.util import save_fig ds = [1., 3., 5., 7., 10.] # element is float, to make python2 work s = np.linspace(0, 1, 100) for d in ds: y = s ** (1 / d) pl.plot(s, y, 'b-') pl.text(0.3, 0.3**(1/d), ...
23.1
68
0.645022
e88b513f73f28bad283cff0940e068ea7246deeb
232
py
Python
terrascript/data/invidian/sshcommand.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/data/invidian/sshcommand.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/data/invidian/sshcommand.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/data/invidian/sshcommand.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:27:44 UTC) import terrascript class sshcommand_command(terrascript.Data): pass __all__ = [ "sshcommand_command", ]
17.846154
73
0.758621
e88b8d870562ca5d3e012ba103122e84c106ea27
6,863
py
Python
slim/nets/nets_factory.py
stevenygd/TensorQuant-Experiment
f084b57c22a3c2d4fa49d77b56a35e9017149789
[ "Apache-2.0" ]
null
null
null
slim/nets/nets_factory.py
stevenygd/TensorQuant-Experiment
f084b57c22a3c2d4fa49d77b56a35e9017149789
[ "Apache-2.0" ]
null
null
null
slim/nets/nets_factory.py
stevenygd/TensorQuant-Experiment
f084b57c22a3c2d4fa49d77b56a35e9017149789
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. 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 ...
43.99359
90
0.657147
e88b8ddb7abdd5dcb24ba53f2e11b4722cc1ca1b
8,453
py
Python
tests/mock_env.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
16
2019-07-04T16:00:13.000Z
2022-01-28T19:51:58.000Z
tests/mock_env.py
containerbuildsystem/atomic-reactor
5734a189fc79245d99610f3a81b3aee9913db355
[ "BSD-3-Clause" ]
577
2019-06-03T07:53:16.000Z
2022-03-31T04:01:23.000Z
tests/mock_env.py
ben-alkov/atomic-reactor
be6b626b7d822f77999f245193fefcc00c501ca9
[ "BSD-3-Clause" ]
17
2020-02-21T13:30:06.000Z
2022-02-15T10:42:32.000Z
""" Copyright (c) 2020 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from typing import Iterable, List, Union from atomic_reactor.constants import (PLUGIN_BUILD_ORCHESTRATE_KEY, ...
36.435345
98
0.644742
e88bb6e865edd766624faaec1174819c5c788461
1,740
py
Python
tests/st/ops/test_gather_nd.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
tests/st/ops/test_gather_nd.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
tests/st/ops/test_gather_nd.py
tianjiashuo/akg
a9cbf642063fb1086a93e8bc6be6feb145689817
[ "Apache-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.8
102
0.652299
e88bb8facd3558a4065d8255a1180414e075c858
3,317
py
Python
csharp_extractor.py
westtunger/pybabel-godot-thrive
9b109b49bb794867b543d070537819758bdd9d68
[ "BSD-3-Clause" ]
2
2022-01-11T16:22:07.000Z
2022-03-09T12:23:46.000Z
csharp_extractor.py
westtunger/pybabel-godot-thrive
9b109b49bb794867b543d070537819758bdd9d68
[ "BSD-3-Clause" ]
2
2021-07-04T15:04:38.000Z
2021-07-04T15:46:16.000Z
csharp_extractor.py
Revolutionary-Games/pybabel-godot-thrive
9b109b49bb794867b543d070537819758bdd9d68
[ "BSD-3-Clause" ]
null
null
null
from babel.messages.jslexer import tokenize, unquote_string # This helper is copied to all necessary files because once again python imports are being a pain def reopen_normal_read(file_obj, encoding): """Re-open a file obj in plain read mode""" return open(file_obj.name, "r", encoding=encoding) class Activ...
30.431193
97
0.586072
e88bbb4f566bb4111c306b4843f5e0d12323df41
709
py
Python
data/transcoder_evaluation_gfg/python/POSITION_OF_RIGHTMOST_SET_BIT_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/POSITION_OF_RIGHTMOST_SET_BIT_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/POSITION_OF_RIGHTMOST_SET_BIT_1.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( n ) : position = 1 m = 1 while ( not ( n & m ) ) : m = m << 1 position += 1 return ...
20.257143
64
0.531735
e88bc0f05fcf8517144a43ce134a7270245bfafd
93
py
Python
pricelist/apps.py
WillieIlus/jobscorner
ed3734468ea0e88a306a1d29bc876562e940f4fb
[ "bzip2-1.0.6" ]
2
2020-04-12T13:18:35.000Z
2021-04-02T04:18:17.000Z
pricelist/apps.py
WillieIlus/jobscorner
ed3734468ea0e88a306a1d29bc876562e940f4fb
[ "bzip2-1.0.6" ]
3
2020-02-11T23:58:53.000Z
2020-09-06T18:46:17.000Z
pricelist/apps.py
WillieIlus/jobscorner
ed3734468ea0e88a306a1d29bc876562e940f4fb
[ "bzip2-1.0.6" ]
1
2020-08-17T08:29:41.000Z
2020-08-17T08:29:41.000Z
from django.apps import AppConfig class PricelistConfig(AppConfig): name = 'pricelist'
15.5
33
0.763441
e88c061aedbfa7c3af7939f5f94e195066ecc350
477
py
Python
app/__init__.py
John-Trager/Kettle
e06547c3d89988bc32005e7e4d08d4970970ab04
[ "Apache-2.0" ]
1
2021-02-08T07:17:08.000Z
2021-02-08T07:17:08.000Z
app/__init__.py
John-Trager/Kettle
e06547c3d89988bc32005e7e4d08d4970970ab04
[ "Apache-2.0" ]
null
null
null
app/__init__.py
John-Trager/Kettle
e06547c3d89988bc32005e7e4d08d4970970ab04
[ "Apache-2.0" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_bcrypt import Bcrypt from flask_login import LoginManager app = Flask(__name__) # TODO: add your own secret key app.config['SECRET_KEY'] = 'a_very_secret_key' app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db' db = SQLAlchemy(app) bc...
26.5
59
0.796646
e88c1859d39aa25dbcbfea5be694df2121052bcd
1,790
py
Python
tests/_type/test_expression_string.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
16
2021-04-16T02:01:29.000Z
2022-01-01T08:53:49.000Z
tests/_type/test_expression_string.py
ynsnf/apysc
b10ffaf76ec6beb187477d0a744fca00e3efc3fb
[ "MIT" ]
613
2021-03-24T03:37:38.000Z
2022-03-26T10:58:37.000Z
tests/_type/test_expression_string.py
simon-ritchie/apyscript
c319f8ab2f1f5f7fad8d2a8b4fc06e7195476279
[ "MIT" ]
2
2021-06-20T07:32:58.000Z
2021-12-26T08:22:11.000Z
from random import randint from retrying import retry from apysc._type.expression_string import ExpressionString class TestExpressionString: @retry(stop_max_attempt_number=15, wait_fixed=randint(10, 3000)) def test___init__(self) -> None: exp_str: ExpressionString = ExpressionString(valu...
41.627907
76
0.707263
e88c3ab60e1e1534939273c46b8b9d7bd23944d5
9,374
py
Python
mininet/mininet/topo.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2016-11-16T16:26:16.000Z
2021-04-26T17:20:28.000Z
mininet/mininet/topo.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
3
2017-04-20T11:29:17.000Z
2017-11-06T17:12:12.000Z
mininet/mininet/topo.py
5GExchange/escape
eb35d460597a0386b18dd5b6a5f62a3f30eed5fa
[ "Apache-2.0" ]
10
2017-03-27T13:58:52.000Z
2020-06-24T22:42:51.000Z
#!/usr/bin/env python '''@package topo Network topology creation. @author Brandon Heller (brandonh@stanford.edu) This package includes code to represent network topologies. A Topo object can be a topology database for NOX, can represent a physical setup for testing, and can even be emulated with the Mininet package...
31.456376
78
0.572008
e88c5fc3e0cc1a484f347a518d34351aa2529585
20,564
py
Python
ibis/tests/backends.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/tests/backends.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
ibis/tests/backends.py
jreback/ibis
fdcca59b085416b1311eb268be3886abad1db230
[ "Apache-2.0" ]
null
null
null
import abc import os from pathlib import Path from typing import Any, Callable, Mapping, Optional import numpy as np import pandas as pd import pandas.testing as tm import pytest from pkg_resources import parse_version import ibis import ibis.backends.base_sqlalchemy.compiler as comp import ibis.expr.datatypes as dt ...
32.031153
79
0.613937
e88c82080bcf85a2446dbd52d6f7b8049508a1ce
1,158
py
Python
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/virtual_event/cameras/virtual_event_agent_camera_model.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
3
2021-07-25T15:10:35.000Z
2021-10-30T02:35:33.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/virtual_event/cameras/virtual_event_agent_camera_model.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/virtual_event/cameras/virtual_event_agent_camera_model.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
3
2021-07-25T15:16:06.000Z
2022-03-28T14:13:22.000Z
import os from markov.defaults import DEFAULT_MAIN_CAMERA from markov.virtual_event.cameras.virtual_event_abs_camera_model import VirtualEventAbsCameraModel class VirtualEventAgentCameraModel(VirtualEventAbsCameraModel): """ VirtualEventCameraManager class """ def __init__(self, camera_namespace, sta...
29.692308
98
0.605354
e88c82fbfe67ee743e720170ac3fe31916c9b6bb
3,681
py
Python
dudley/test/python/FCT_test1.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
dudley/test/python/FCT_test1.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
1
2019-01-14T03:07:43.000Z
2019-01-14T03:07:43.000Z
dudley/test/python/FCT_test1.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Copyright (c) 2003-2018 by The University of Queensland # http://www.uq.edu.au # # Primary Business: Queensland, Australia # Licensed under the Apache License, version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Development unt...
29.448
107
0.598479
e88cb491061b98b613cb5e2a89102bed3c633ff5
20,062
py
Python
RobustMMLL/nodes/WorkerNode.py
Musketeer-H2020/RobustMMLL
d3a4aa82af8d6da7d6c7234fa4d9a13d7810de31
[ "Apache-2.0" ]
1
2020-11-24T13:20:17.000Z
2020-11-24T13:20:17.000Z
RobustMMLL/nodes/WorkerNode.py
Musketeer-H2020/RobustMMLL
d3a4aa82af8d6da7d6c7234fa4d9a13d7810de31
[ "Apache-2.0" ]
null
null
null
RobustMMLL/nodes/WorkerNode.py
Musketeer-H2020/RobustMMLL
d3a4aa82af8d6da7d6c7234fa4d9a13d7810de31
[ "Apache-2.0" ]
1
2021-03-11T12:59:55.000Z
2021-03-11T12:59:55.000Z
# -*- coding: utf-8 -*- ''' Worker node object ''' __author__ = "Angel Navia-Vázquez, Marcos Fernández" __date__ = "May 2020" import numpy as np import pickle from RobustMMLL.Common_to_all_objects import Common_to_all_objects import time import json class WorkerNode(Common_to_all_objects): """ This class rep...
46.439815
218
0.593012
e88cb7b605ffcea0bde94433f0c016ad12672da8
297
py
Python
account/forms.py
FerdiantJoshua/alkafgrosir-administration
e7ef86b117a98e7f5503d7b5fee91079d0d86932
[ "MIT" ]
null
null
null
account/forms.py
FerdiantJoshua/alkafgrosir-administration
e7ef86b117a98e7f5503d7b5fee91079d0d86932
[ "MIT" ]
9
2020-07-12T23:23:49.000Z
2022-03-12T00:41:04.000Z
account/forms.py
FerdiantJoshua/alkafgrosir-administration
e7ef86b117a98e7f5503d7b5fee91079d0d86932
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm from alkaf_administration.utils import set_fields_css_class class LoginForm(AuthenticationForm): def __init__(self, *args, **kwargs): super(LoginForm, self).__init__(*args, **kwargs) set_fields_css_class(self.fields)
29.7
59
0.767677
e88ccb870af5ace89ee6517dfee1293cb63ca523
24,643
py
Python
py/gui_solution_view.py
j-kun/Irre-Katze-Level-Editor
b73e0a9e568b7a576ba6846b0af0a3c7fbd2c06e
[ "WTFPL" ]
null
null
null
py/gui_solution_view.py
j-kun/Irre-Katze-Level-Editor
b73e0a9e568b7a576ba6846b0af0a3c7fbd2c06e
[ "WTFPL" ]
null
null
null
py/gui_solution_view.py
j-kun/Irre-Katze-Level-Editor
b73e0a9e568b7a576ba6846b0af0a3c7fbd2c06e
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python # standard libraries import os.path # other libraries import tkinter_extensions as tkx tk = tkx.tk tkc = tkx.tkc tkSimpleDialog = tkx.tkSimpleDialog import locales _ = locales._ import gui_image_opener as imageOpener import gui_catalog import model import model_object_catalog as objects #...
34.226389
208
0.598669
e88cfec872da917d5008275b80f1dbfdddb0d070
9,264
py
Python
assignment2/cs231n/data_utils.py
hchen3368/cs231n
f361819bb43ab0229c8ec44d9ca2fcb92e37b62d
[ "Unlicense" ]
10
2020-09-14T09:54:05.000Z
2022-02-27T17:46:24.000Z
assignment2/cs231n/data_utils.py
hchen3368/cs231n
f361819bb43ab0229c8ec44d9ca2fcb92e37b62d
[ "Unlicense" ]
32
2020-09-17T19:43:53.000Z
2022-03-12T00:55:26.000Z
assignment2/cs231n/data_utils.py
hchen3368/cs231n
f361819bb43ab0229c8ec44d9ca2fcb92e37b62d
[ "Unlicense" ]
4
2020-11-26T14:59:58.000Z
2022-01-31T08:23:13.000Z
from __future__ import print_function from builtins import range from six.moves import cPickle as pickle import numpy as np import os from imageio import imread import platform def load_pickle(f): version = platform.python_version_tuple() if version[0] == "2": return pickle.load(f) elif version[0...
34.184502
86
0.613234
e88d014e612fc6fac2c327b383f44af2edfbc8ef
27,712
py
Python
LunarCalendarDesklet@x/python/manage_events.py
comnuoc/vietnamese-lunar-calendar-desklet
0ec84fbda2b793799102bba40f4f35499ad02929
[ "MIT" ]
null
null
null
LunarCalendarDesklet@x/python/manage_events.py
comnuoc/vietnamese-lunar-calendar-desklet
0ec84fbda2b793799102bba40f4f35499ad02929
[ "MIT" ]
null
null
null
LunarCalendarDesklet@x/python/manage_events.py
comnuoc/vietnamese-lunar-calendar-desklet
0ec84fbda2b793799102bba40f4f35499ad02929
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys import gi import argparse import gettext gi.require_version('Gtk', '3.0') from gi.repository import Gtk from ConfigFileManager import ConfigFileManager from datetime import datetime home = os.path.expanduser("~") gettext.install("LunarCalendar@x", home + "/.local/share/loca...
41.67218
130
0.61338
e88d0541e4f64f289cd78a5effe110616b0cf21c
400
py
Python
tests/test_helpers.py
dhirschfeld/boa
e29aca2c458c211627874a568de3d71545881f27
[ "BSD-3-Clause" ]
33
2020-06-01T11:02:02.000Z
2020-09-01T17:07:00.000Z
tests/test_helpers.py
dhirschfeld/boa
e29aca2c458c211627874a568de3d71545881f27
[ "BSD-3-Clause" ]
17
2020-06-01T16:10:18.000Z
2020-08-28T20:42:26.000Z
tests/test_helpers.py
dhirschfeld/boa
e29aca2c458c211627874a568de3d71545881f27
[ "BSD-3-Clause" ]
8
2020-06-24T14:07:51.000Z
2020-08-31T02:55:46.000Z
from boa.helpers.ast_extract_syms import ast_extract_syms def test_helpers(): assert ast_extract_syms("vc <14") == ["vc"] assert ast_extract_syms("python > (3,6)") == ["python"] assert ast_extract_syms("somevar==(3,6)") == ["somevar"] assert ast_extract_syms("somevar<=linux") == ["somevar", "linux"] ...
40
80
0.68
e88d14fa9bec9c34c7414a2e4dd0661b04f25fbd
559
py
Python
authors/apps/profiles/tests/test_data.py
andela/ah-backend-prime
0708463d4565a4977a5a5dcb839f1dfed52fdc90
[ "BSD-3-Clause" ]
1
2019-09-19T14:30:05.000Z
2019-09-19T14:30:05.000Z
authors/apps/profiles/tests/test_data.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
22
2019-03-25T16:10:53.000Z
2022-03-11T23:44:21.000Z
authors/apps/profiles/tests/test_data.py
e-ian/authors-haven-frontend
05829c8088ca49ef2cf0863dc87ec55b44b13534
[ "BSD-3-Clause" ]
6
2019-03-25T09:39:39.000Z
2021-03-11T23:54:12.000Z
VALID_USER_DATA = { "user": { "username": "anyatijude", "email": "anyatijude@glo.com", "password": "Password@123" } } VALID_USER_DATA_2 = { "user": { "username": "genza", "email": "genza@glo.com", "password": "Password@123" }} VALID_LOGIN_DATA_2 = { "user": ...
18.633333
41
0.525939
e88d2262e5f8892c2b02a0cf076bab0f143bfb03
5,086
py
Python
collections/ansible_collections/ansible/tower/plugins/modules/tower_export.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/tower/plugins/modules/tower_export.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
null
null
null
collections/ansible_collections/ansible/tower/plugins/modules/tower_export.py
hindman-redhat/automated-smart-management-2
5450ccd71f2a4ba568a7f11b03466e1554ae0087
[ "MIT" ]
2
2021-03-30T14:26:02.000Z
2021-04-01T18:17:29.000Z
#!/usr/bin/python # coding: utf-8 -*- # (c) 2017, John Westcott IV <john.westcott.iv@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': ...
30.094675
119
0.671058
e88d84f6bb0634035ad7a2f9798d1f0de22ff8e7
2,857
py
Python
venv/Lib/site-packages/pyrogram/raw/types/photo_size.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/photo_size.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/photo_size.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.72043
107
0.580329
e88d879519a3744c2a5b1838c1f2e8aaa3b2924f
2,808
py
Python
order/views.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
1
2021-01-28T20:10:36.000Z
2021-01-28T20:10:36.000Z
order/views.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
150
2016-08-27T21:38:36.000Z
2021-10-16T23:32:05.000Z
order/views.py
RevolutionTech/seared-quail
ef2b87146850509e2f6f4057344fdc037c8a2808
[ "0BSD" ]
2
2016-08-27T21:35:12.000Z
2018-01-13T08:11:33.000Z
""" :Created: 10 May 2015 :Author: Lucas Connors """ import functools import json from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.contrib.auth import logout as auth_logout from django.contrib.auth.decorators import login_required from django.http import Ht...
28.363636
83
0.688034
e88d8e4eb219ca72c2a75e733e8c6a37fb6694fd
532
py
Python
python/greedy/1029_two_city_scheduling.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/greedy/1029_two_city_scheduling.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/greedy/1029_two_city_scheduling.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def twoCitySchedCost(self, costs): """ :type costs: List[List[int]] :rtype: int """ scs = sorted(costs, key=lambda cost: cost[0] - cost[1]) mid = len(scs) // 2 r = 0 for i in range(mid): r += scs[i][0] for i ...
25.333333
63
0.483083
e88d978ae9209fe6b2c713dbfcb07d1eb3a4d2e5
2,559
py
Python
zerver/views/events_register.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/views/events_register.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
zerver/views/events_register.py
dehnert/zulip
f5935e81c7cf2f11ff4ccfcd31d2a1061b8d7ff5
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from django.http import HttpRequest, HttpResponse from six import text_type from typing import Iterable, Optional, Sequence from zerver.lib.actions import do_events_register from zerver.lib.request import REQ, has_request_variables from zerver.lib.response import json_success fr...
49.211538
137
0.716686
e88d9d715da8dcd6b0d487ed3ca30346c97b7d97
1,513
py
Python
hivemind/utils/networking.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
11
2021-06-21T19:56:01.000Z
2021-12-22T09:06:09.000Z
hivemind/utils/networking.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
hivemind/utils/networking.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
import socket from contextlib import closing from typing import Optional Hostname, Port = str, int # flavour types Endpoint = str # e.g. 1.2.3.4:1337 or [2a21:6с8:b192:2105]:8888, https://networkengineering.stackexchange.com/a/9435 LOCALHOST = '127.0.0.1' def get_port(endpoint: Endpoint) -> Optional[Port]: """...
38.794872
117
0.674157
e88dc2d3fde3a00f36af8f6900a76b6173dd47b6
2,420
py
Python
toontown/hood/GZHoodAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/hood/GZHoodAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/hood/GZHoodAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import * from toontown.dna.DNAParser import DNAGroup, DNAVisGroup from toontown.hood import HoodAI from toontown.hood import ZoneUtil from toontown.safezone.DistributedGolfKartAI import DistributedGolfKartAI from toontown.toonbase import ToontownGlobals class GZHoodAI(HoodAI.HoodAI): def ...
42.45614
110
0.619008
e88de6ebaf53b25e1f07f15f8da90c507b18271b
1,888
py
Python
test/utilities.py
InnovativeDigitalSolution/NASA_harmony-qgis
e818fc410809811fa9af79a92599c04fdb820fa5
[ "Apache-2.0", "0BSD" ]
2
2021-03-22T19:07:34.000Z
2021-07-23T23:02:21.000Z
test/utilities.py
InnovativeDigitalSolution/NASA_harmony-qgis
e818fc410809811fa9af79a92599c04fdb820fa5
[ "Apache-2.0", "0BSD" ]
null
null
null
test/utilities.py
InnovativeDigitalSolution/NASA_harmony-qgis
e818fc410809811fa9af79a92599c04fdb820fa5
[ "Apache-2.0", "0BSD" ]
1
2021-07-18T01:44:39.000Z
2021-07-18T01:44:39.000Z
# coding=utf-8 """Common functionality used by regression tests.""" import sys import logging import traceback LOGGER = logging.getLogger('QGIS') QGIS_APP = None # Static variable used to hold hand to running QGIS app CANVAS = None PARENT = None IFACE = None def get_qgis_app(): """ Start one QGIS application ...
28.606061
77
0.673729
e88dfc1573c2f2de8aa0bf916c9e3520ef4ab5fe
2,896
py
Python
mobiletrans/mtimport/importers/importer_library.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
1
2015-04-28T14:48:27.000Z
2015-04-28T14:48:27.000Z
mobiletrans/mtimport/importers/importer_library.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
null
null
null
mobiletrans/mtimport/importers/importer_library.py
JoeJasinski/WindyTransit
b883c7eebe618923ecc7b1914a696543d8864215
[ "MIT" ]
null
null
null
from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned from django.contrib.gis.geos import Point, fromstr, fromfile, GEOSGeometry, MultiPoint, MultiPolygon, Polygon from autoslug.settings import slugify from mobiletrans.mtimport.importer import JSONImportBase from mobiletrans.mtlocation import m...
31.478261
109
0.55076
e88e1545c0cf68a8b642832fb5dbca3ce02800de
6,823
py
Python
lib/charms/alertmanager_karma/v0/karma.py
xavpaice/charm-alertmanager-karma-proxy
d5e86e74e2c2118b72ceebb83c9905bcdbfbb6e5
[ "Apache-2.0" ]
1
2021-07-05T09:18:50.000Z
2021-07-05T09:18:50.000Z
lib/charms/alertmanager_karma/v0/karma.py
xavpaice/charm-alertmanager-karma
f4e6f0a1d9d7e2ed8bb8f18d5365719ac128b967
[ "Apache-2.0" ]
2
2021-06-11T12:17:15.000Z
2021-06-16T23:29:28.000Z
lib/charms/alertmanager_karma/v0/karma.py
xavpaice/charm-alertmanager-karma-proxy
d5e86e74e2c2118b72ceebb83c9905bcdbfbb6e5
[ "Apache-2.0" ]
1
2021-07-06T15:22:39.000Z
2021-07-06T15:22:39.000Z
""" # Karma Library This library provides the interface needed in order to provide Alertmanager URIs and associated information to the Karma application. To have your charm provide URIs to Karma, you need to declare the interface's use in your charm's metadata.yaml file: ```yaml provides: karmamanagement: inte...
30.324444
86
0.636377
e88e338eee997cb648cbd4a332eaf16d0130b5d3
55
py
Python
neuralmonkey/trainers/__init__.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-24T21:10:03.000Z
2019-05-22T13:19:35.000Z
neuralmonkey/trainers/__init__.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
null
null
null
neuralmonkey/trainers/__init__.py
Simon-Will/neuralmonkey
b686a9d302cb10eda5fca991e1d7ee6b9e84b75a
[ "BSD-3-Clause" ]
5
2017-04-25T01:36:44.000Z
2019-12-13T15:04:03.000Z
from .cross_entropy_trainer import CrossEntropyTrainer
27.5
54
0.909091
e88e917491c3bd569ba0f7a048a377322b16dcd6
8,386
py
Python
holoviews/plotting/mpl/stats.py
jsignell/holoviews
4f9fd27367f23c3d067d176f638ec82e4b9ec8f0
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/mpl/stats.py
jsignell/holoviews
4f9fd27367f23c3d067d176f638ec82e4b9ec8f0
[ "BSD-3-Clause" ]
null
null
null
holoviews/plotting/mpl/stats.py
jsignell/holoviews
4f9fd27367f23c3d067d176f638ec82e4b9ec8f0
[ "BSD-3-Clause" ]
null
null
null
import param import numpy as np from ...core.ndmapping import sorted_context from .chart import AreaPlot, ChartPlot from .path import PolygonPlot from .plot import AdjoinedPlot class DistributionPlot(AreaPlot): """ DistributionPlot visualizes a distribution of values as a KDE. """ bandwidth = param....
39.186916
89
0.592535
e88e9fa4221b6a4c866642a5c9d85b166fd3d973
11,265
py
Python
tests/infra/libbyz/e2e_test.py
g-ongetta/CCF
190b3ca4c41d83719df6aa37c6493cff976ed163
[ "Apache-2.0" ]
null
null
null
tests/infra/libbyz/e2e_test.py
g-ongetta/CCF
190b3ca4c41d83719df6aa37c6493cff976ed163
[ "Apache-2.0" ]
null
null
null
tests/infra/libbyz/e2e_test.py
g-ongetta/CCF
190b3ca4c41d83719df6aa37c6493cff976ed163
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import argparse import os import socket import time import math import json import create_config from node import LocalNode from subprocess import PIPE, Popen, run import netifaces from loguru import logger class Node(LocalNode): def run(sel...
33.035191
99
0.557745
e88f000fc055e27a9e511b029e83598ba53cbee7
56,968
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/locks/v2016_09_01/aio/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
44.750982
1,017
0.666988
e88f02a5a7c8def36cbd611f29d95047c6ed62fd
907
py
Python
python/tvm/relay/backend/_vm.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
python/tvm/relay/backend/_vm.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
python/tvm/relay/backend/_vm.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
41.227273
62
0.771775
e88f177174d7783f3846e17363635bd97615c4a1
9,808
py
Python
dnacentersdk/models/validators/v2_1_2/jsd_4f947a1c4fc884f6.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_4f947a1c4fc884f6.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/models/validators/v2_1_2/jsd_4f947a1c4fc884f6.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Update Device Credentials data model. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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 restrictio...
26.724796
78
0.310053
e88f3ae8dd1e63db2b092ede82481c84b097aed2
57,251
py
Python
roles/lib_openshift/library/oc_storageclass.py
Ravichandramanupati/openshift
1720af442f0b02359ce4cc70d32adca15d9d26ab
[ "Apache-2.0" ]
1
2017-11-01T05:46:27.000Z
2017-11-01T05:46:27.000Z
roles/lib_openshift/library/oc_storageclass.py
gloria-sentinella/openshift-ansible
e03493f33073965ddf8c49256df80143059a2a51
[ "Apache-2.0" ]
3
2016-12-01T23:01:36.000Z
2016-12-02T00:16:48.000Z
roles/lib_openshift/library/oc_storageclass.py
gloria-sentinella/openshift-ansible
e03493f33073965ddf8c49256df80143059a2a51
[ "Apache-2.0" ]
1
2018-01-30T05:44:59.000Z
2018-01-30T05:44:59.000Z
#!/usr/bin/env python # pylint: disable=missing-docstring # flake8: noqa: T001 # ___ ___ _ _ ___ ___ _ _____ ___ ___ # / __| __| \| | __| _ \ /_\_ _| __| \ # | (_ | _|| .` | _|| / / _ \| | | _|| |) | # \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____ # | \ / _ \ | \| |/ _ \_ _| | __| \_ ...
33.976855
118
0.548235
e88f43e7d8631cf1b6e1c0c80c6305ebafd45731
4,116
py
Python
setup.py
sthagen/thombashi-pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
81
2017-03-18T02:57:29.000Z
2022-03-26T16:54:59.000Z
setup.py
sthagen/pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
4
2017-08-09T14:58:48.000Z
2020-04-17T12:59:29.000Z
setup.py
sthagen/pytablereader
b59859da6fdcc94035933dd253e6e380b04a233b
[ "MIT" ]
11
2017-05-02T16:23:59.000Z
2021-12-10T15:05:39.000Z
#!/usr/bin/env python3 """ .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import os.path import setuptools MODULE_NAME = "pytablereader" REPOSITORY_URL = f"https://github.com/thombashi/{MODULE_NAME:s}" REQUIREMENT_DIR = "requirements" ENCODING = "utf8" pkg_info = {} def get_release_command_...
29.611511
96
0.628037
e88f9afd33cdd3b0fcf59d54baf5f7d5923daa1d
5,930
py
Python
unit6_assignment_03.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
unit6_assignment_03.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
unit6_assignment_03.py
AbhishekKumar1277/Mission-RnD-Python-
3e039dd3016db7ff0d67ad1cce2123852f15d093
[ "MIT" ]
null
null
null
__author__ = 'Kalyan' notes = ''' This problem will require you to put together many things you have learnt in earlier units to solve a problem. In particular you will use functions, nested functions, file i/o, functions, lists, dicts, iterators, generators, comprehensions, sorting etc. Read the const...
36.604938
115
0.560034
e88fa3234546fdc5af4e4f4176599e125704e5fb
5,207
py
Python
atomdb/nosql.py
codelv/atom-db
6ee50000aec0f1467679e830a2b62cf5f13ae62c
[ "MIT" ]
12
2019-02-22T08:02:41.000Z
2022-01-17T10:08:56.000Z
atomdb/nosql.py
codelv/atom-db
6ee50000aec0f1467679e830a2b62cf5f13ae62c
[ "MIT" ]
20
2019-03-12T02:06:16.000Z
2022-02-18T19:01:59.000Z
atomdb/nosql.py
codelv/atom-db
6ee50000aec0f1467679e830a2b62cf5f13ae62c
[ "MIT" ]
3
2019-09-10T14:24:47.000Z
2022-01-01T20:48:35.000Z
""" Copyright (c) 2018-2020, Jairus Martin. Distributed under the terms of the MIT License. The full license is in the file LICENSE.text, distributed with this software. Created on Jun 12, 2018 @author: jrm """ import bson import weakref from atom.api import Atom, Instance, Value, Dict, Typed from .base import ( ...
29.418079
78
0.601882
e88fad13adf0b25bd6109131bcdac46da38979f8
1,854
py
Python
tests/test_stateEngine.py
clockworksspheres/eisenban
9a61e45a43c57207bded5d1ad69dd9dabb2167e3
[ "Unlicense" ]
null
null
null
tests/test_stateEngine.py
clockworksspheres/eisenban
9a61e45a43c57207bded5d1ad69dd9dabb2167e3
[ "Unlicense" ]
null
null
null
tests/test_stateEngine.py
clockworksspheres/eisenban
9a61e45a43c57207bded5d1ad69dd9dabb2167e3
[ "Unlicense" ]
null
null
null
#!/usr/bin/env -S python -u """ Template for tests """ #--- Native python libraries import re import os import sys import time import unittest import tempfile import ctypes as C from datetime import datetime ##### # Include the parent project directory in the PYTHONPATH appendDir = "/".join(os.path.abspath(os.path.d...
20.6
83
0.428263
e88fb48e26219afe1d5eae25f023666069474e9a
3,317
py
Python
prediction.py
ugurcancakal/stockPrediction
af687b6bfdda306f2b1297faf83d1cdc83047177
[ "MIT" ]
null
null
null
prediction.py
ugurcancakal/stockPrediction
af687b6bfdda306f2b1297faf83d1cdc83047177
[ "MIT" ]
null
null
null
prediction.py
ugurcancakal/stockPrediction
af687b6bfdda306f2b1297faf83d1cdc83047177
[ "MIT" ]
1
2022-03-09T09:59:24.000Z
2022-03-09T09:59:24.000Z
''' Google Stock Price Prediction Project author: Ugurcan Cakal 201209 ''' import time import torch import os import numpy as np import pandas as pd import dataset as sd import torch.nn as nn from torch.utils.data import DataLoader from utils import create_variable, model_parallel # As a metric # https://colab.res...
28.594828
127
0.7142
e88fd1688dc1f5cf2c5da6be690895023b8ff351
6,553
py
Python
smartva/data/word_conversions.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-23T12:57:47.000Z
2020-04-18T17:13:08.000Z
smartva/data/word_conversions.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
4
2019-01-09T22:10:07.000Z
2022-02-16T04:57:06.000Z
smartva/data/word_conversions.py
rileyhazard/SmartVA-Analyze-1
0573eeff27d03f54e7506db4f1631c0cd9f54bbb
[ "MIT" ]
11
2018-12-11T22:01:13.000Z
2022-01-07T11:38:02.000Z
ADULT_WORDS_TO_VARS = { 'abdomen': 's99991', 'arteri': 's999910', 'kill': 's9999100', 'knee': 's9999101', 'labor': 's9999102', 'leukemia': 's9999103', 'liver': 's9999104', 'lump': 's9999105', 'lung': 's9999106', 'lymphoma': 's9999107', 'malaria': 's9999108', 'mass': 's999...
24.635338
32
0.526324
e88fe630812e3694502cd5037cbf260636def0ac
5,745
py
Python
test/registry/protocols.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
1
2020-10-16T19:30:41.000Z
2020-10-16T19:30:41.000Z
test/registry/protocols.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
15
2020-06-18T15:32:06.000Z
2022-03-03T23:06:24.000Z
test/registry/protocols.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import json import tarfile from abc import ABCMeta, abstractmethod from collections import namedtuple from cStringIO import StringIO from enum import Enum, unique from six import add_metaclass from image.docker.schema2 import EMPTY_LAYER_BYTES Image = namedtuple( "Image", ["id", "parent_id", "bytes", "size", "co...
28.300493
99
0.640557
e8900c7366572905737bb8e197c43ee2396e32e9
11,535
py
Python
buildingboundary/components/segment.py
StOriJimmy/building-boundary
db582c40f46f250a6fa8244a867501cf3149330a
[ "MIT" ]
null
null
null
buildingboundary/components/segment.py
StOriJimmy/building-boundary
db582c40f46f250a6fa8244a867501cf3149330a
[ "MIT" ]
null
null
null
buildingboundary/components/segment.py
StOriJimmy/building-boundary
db582c40f46f250a6fa8244a867501cf3149330a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Chris Lucas """ import math import numpy as np from ..utils.error import ThresholdError from ..utils.angle import min_angle_difference def PCA(points): """ Does a Principle Component Analysis (PCA) for a set of 3D points (the structure tensor) by computing the eigen...
32.769886
125
0.535501
e8900f3a8e130e5820d34b117e834bd608116d28
45,540
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_09_30/operations/_disks_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.049861
190
0.660277
e8903690a14b89e4bc1b4e5c994e5bbce30e377b
7,916
py
Python
user_data_store/models/deleted_user_site_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
null
null
null
user_data_store/models/deleted_user_site_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
90
2018-01-23T10:30:01.000Z
2019-01-31T10:53:42.000Z
user_data_store/models/deleted_user_site_create.py
hedleyroos/core-management-layer
2a25bf5fb44fd511b8b2626ec09a4bc05098334c
[ "BSD-3-Clause" ]
1
2021-08-17T14:16:23.000Z
2021-08-17T14:16:23.000Z
# coding: utf-8 """ User Data API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class DeletedUserSit...
32.310204
187
0.649318
e89074b10ef7df900573f7a0caeaeb1fd86c8e32
2,727
py
Python
custom_components/bmstools/binary_sensor.py
ElD4n1/home_assistant_bms_tools_integration
74b763f324bb89c10889a7d84d80b1078a808e41
[ "MIT" ]
null
null
null
custom_components/bmstools/binary_sensor.py
ElD4n1/home_assistant_bms_tools_integration
74b763f324bb89c10889a7d84d80b1078a808e41
[ "MIT" ]
null
null
null
custom_components/bmstools/binary_sensor.py
ElD4n1/home_assistant_bms_tools_integration
74b763f324bb89c10889a7d84d80b1078a808e41
[ "MIT" ]
null
null
null
"""Support for BMS Tools binary sensors.""" from __future__ import annotations import logging from typing import Any, Mapping from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEn...
32.464286
87
0.704804
e890b238053ce0b8bdeb571cc61d020c0608e40b
1,293
py
Python
src/bst/pygasus/resources/boostrap.py
codeix/bst.pygasus.resources
4b617f4d2b9b45db7926a7c1a96c9b766cf3267a
[ "ZPL-2.1" ]
null
null
null
src/bst/pygasus/resources/boostrap.py
codeix/bst.pygasus.resources
4b617f4d2b9b45db7926a7c1a96c9b766cf3267a
[ "ZPL-2.1" ]
null
null
null
src/bst/pygasus/resources/boostrap.py
codeix/bst.pygasus.resources
4b617f4d2b9b45db7926a7c1a96c9b766cf3267a
[ "ZPL-2.1" ]
null
null
null
import json import fanstatic from zope.interface import implementer from zope.component import subscribers from grokcore import component from bst.pygasus.core.interfaces import IBaseUrl from bst.pygasus.core.interfaces import IApplicationContext from bst.pygasus.wsgi.interfaces import IRequest from bst.pygasus.wsg...
30.069767
79
0.745553
e891354df0cdb4d0cbf89c15ba7173a1a019f7cb
3,760
py
Python
webapp.py
joefutrelle/noaa_floats
9f5e7620605104396e136c615f54b7dc9dd03c77
[ "MIT" ]
null
null
null
webapp.py
joefutrelle/noaa_floats
9f5e7620605104396e136c615f54b7dc9dd03c77
[ "MIT" ]
null
null
null
webapp.py
joefutrelle/noaa_floats
9f5e7620605104396e136c615f54b7dc9dd03c77
[ "MIT" ]
null
null
null
import json from flask import Flask, Response, request, redirect, url_for from flask import render_template from query import query_data, query_geom_data, query_floats, all_floats, query_geom_floats from query import get_track, get_metadata, METADATA_COLS, all_experiments from query import choose_random_float app = ...
35.471698
105
0.742287
e8913e4c6c0de9251c3dd976a98ba9cea0a7ca44
16,342
py
Python
excel2sbol/excel2sbol/compiler_test.py
SynBioHub/Excel-to-SBOL
f0fa84e04d438aafd34dba9a45526e875fca8065
[ "BSD-3-Clause" ]
null
null
null
excel2sbol/excel2sbol/compiler_test.py
SynBioHub/Excel-to-SBOL
f0fa84e04d438aafd34dba9a45526e875fca8065
[ "BSD-3-Clause" ]
null
null
null
excel2sbol/excel2sbol/compiler_test.py
SynBioHub/Excel-to-SBOL
f0fa84e04d438aafd34dba9a45526e875fca8065
[ "BSD-3-Clause" ]
null
null
null
from multiprocessing.sharedctypes import Value import pandas as pd import excel2sbol.helper_functions as hf import excel2sbol.lookup_compiler as lk import excel2sbol.comp_column_functions as cf import logging import sbol2 import sbol3 import math import re # the homespace only works if the change is made to pysbol2 sh...
47.644315
209
0.534941
e8917748d1cc4f4d55f8e9a9e54c6e6ffa15a64a
1,861
py
Python
test/test_step_number_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
2
2020-01-30T23:28:59.000Z
2020-05-06T16:43:47.000Z
test/test_step_number_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
1
2020-10-02T18:00:25.000Z
2020-10-02T18:00:25.000Z
test/test_step_number_input.py
pollination/python-sdk
599e8dbfc6e547c5e18aa903b27c70d7ffef84e5
[ "RSA-MD" ]
null
null
null
# coding: utf-8 """ pollination-server Pollination Server OpenAPI Definition # noqa: E501 The version of the OpenAPI document: 0.16.0 Contact: info@pollination.cloud Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import...
27.367647
90
0.581945
e89193ee09948c64ac7a58922cc83425b3e9dbc3
22,693
py
Python
scrabbler/scrabbler.py
jfoley-yw/scrabble
049a69572138b06341af163ec69e18a1eb20b737
[ "MIT" ]
1
2021-04-01T14:24:17.000Z
2021-04-01T14:24:17.000Z
scrabbler/scrabbler.py
jfoley-yw/scrabble
049a69572138b06341af163ec69e18a1eb20b737
[ "MIT" ]
3
2021-04-05T01:09:16.000Z
2021-04-19T20:19:30.000Z
scrabbler/scrabbler.py
jfoley-yw/scrabble
049a69572138b06341af163ec69e18a1eb20b737
[ "MIT" ]
null
null
null
import os import pickle import string import json import gzip from enum import Enum from scrabbler.dictionary import Dictionary, DELIMITER, Arc import utilities.logger as logger import utilities.errors as errors script_dir = os.path.dirname(__file__) resource_dir = os.path.join(script_dir, "../resources") full_saved_g...
43.060721
119
0.615741
e891a1c61d863adeb3f9baa71be86abf598b3179
14,948
py
Python
tests/test_bucketers.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
31
2021-06-10T13:35:07.000Z
2022-03-30T12:34:26.000Z
tests/test_bucketers.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
50
2021-06-10T10:56:34.000Z
2022-01-26T18:23:31.000Z
tests/test_bucketers.py
satya-pattnaik/skorecard
ba31821799985052ffb498569b41e969034ea28e
[ "MIT" ]
2
2021-09-09T00:44:17.000Z
2021-09-24T17:08:32.000Z
import pytest import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.pipeline import make_pipeline from sklearn.utils.validation import check_is_fitted from sklearn.exceptions import NotFittedError from skorecard.bucketers.bucketers import UserInputBucketer from skorecard.bucketers import ( ...
38.426735
118
0.662564
e891bded0f162d88bc58b9b03fae664a7cad3df1
644
py
Python
python_modules/libraries/dagster-msteams/dagster_msteams_tests/test_sensors.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-msteams/dagster_msteams_tests/test_sensors.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/libraries/dagster-msteams/dagster_msteams_tests/test_sensors.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import os from dagster_msteams.sensors import make_teams_on_pipeline_failure_sensor from dagster import repository from dagster.core.test_utils import environ def test_teams_pipeline_failure_sensor_def(): with environ({"TEAMS_WEBHOOK_URL": "https://some_url_here/"}): sensor_name = "my_failure_sensor" ...
25.76
73
0.704969
e891bf136ba21dfc9d79c53e00d1c9119c7a3e87
3,528
py
Python
tools/mo_mapping.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
tools/mo_mapping.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
tools/mo_mapping.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python from functools import reduce import numpy import scipy.linalg from pyscf import gto from pyscf.lib import logger from pyscf import lo def mo_map(mol1, mo1, mol2, mo2, base=0, tol=.5): '''Given two orbitals, based on their overlap <i|j>, search all orbital-pairs which have significant ove...
31.783784
80
0.585884
e891da21b1328a075c6da4fc5519e0733961a555
2,916
py
Python
src/VideoPlayer/VideoPlayer.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
src/VideoPlayer/VideoPlayer.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
src/VideoPlayer/VideoPlayer.py
bhasha-lip-reading/dataset-manager
c17d1caefb43dd58ba04b9673f8249a06cf2b33a
[ "Apache-2.0" ]
null
null
null
import cv2 from ffpyplayer.player import MediaPlayer from glob import glob # from Utilities import Utilities as util from tqdm import tqdm, trange import time import numpy as np import os MOUTH_EXTRACTED_VIDEO_MUTE_VIDEO_DIR = './asset/mouth-extracted-mute-video' MOUTH_EXTRACTED_VIDEO_WITH_SOUND_DIR = './asset/mouth-...
30.061856
129
0.624143
e891e0fc9230c92c7629b8dd8e14969486d96562
47,974
py
Python
resolwe_bio/tests/processes/test_support_processors.py
MiaZganjar/resolwe-bio
1559435796cb40905d81c8fd14872f7ac66e66e8
[ "Apache-2.0" ]
null
null
null
resolwe_bio/tests/processes/test_support_processors.py
MiaZganjar/resolwe-bio
1559435796cb40905d81c8fd14872f7ac66e66e8
[ "Apache-2.0" ]
null
null
null
resolwe_bio/tests/processes/test_support_processors.py
MiaZganjar/resolwe-bio
1559435796cb40905d81c8fd14872f7ac66e66e8
[ "Apache-2.0" ]
null
null
null
import os from resolwe.flow.models import Data, Process from resolwe.test import tag_process, with_resolwe_host from resolwe_bio.models import Sample from resolwe_bio.utils.filter import filter_comment_lines from resolwe_bio.utils.test import KBBioProcessTestCase class SupportProcessorTestCase(KBBioProcessTestCase)...
33.454672
112
0.446408
e891e73342b69e541acabf4371fc28243528043d
5,808
py
Python
test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
null
null
null
test/vanilla/low-level/Expected/AcceptanceTests/BodyFormDataLowLevel/bodyformdatalowlevel/rest/formdata/_request_builders.py
cfculhane/autorest.python
8cbca95faee88d933a58bbbd17b76834faa8d387
[ "MIT" ]
1
2022-03-28T08:58:03.000Z
2022-03-28T08:58:03.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
35.851852
106
0.653581
e8923d5eaea6b67b802005ce49e14bc3165beab5
3,143
py
Python
util/config/validators/validate_ldap.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
util/config/validators/validate_ldap.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
util/config/validators/validate_ldap.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
import os import ldap import subprocess from data.users import LDAP_CERT_FILENAME from data.users.externalldap import LDAPConnection, LDAPUsers from util.config.validators import BaseValidator, ConfigValidationException class LDAPValidator(BaseValidator): name = "ldap" @classmethod def validate(cls, val...
36.976471
99
0.637289
e89241ae4e2cb4dd6f24ab2baf4fe15b3975b82a
4,719
py
Python
PyFunceble/url.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
PyFunceble/url.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
PyFunceble/url.py
mitchellkrogza/PyFunceble
b2b0d3fc18097cd630eed849ee99d961263d607b
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██...
37.452381
88
0.602882
e892502bba480190357b426feb7fc65fc5ef32d6
1,184
py
Python
docker_contexts/stac-api-docker/migrations/versions/f40c1c5cd3b7_users.py
therealspring/global-modeling-engine
70e4240cf1734c04867aef5ef25d5db4a21616ab
[ "Apache-2.0" ]
2
2020-08-08T02:24:48.000Z
2021-03-31T19:12:08.000Z
library-platform/docker_contexts/stac-api-docker/migrations/versions/f40c1c5cd3b7_users.py
therealspring/ecoshard-library
15d811017b1f6ad109ea47b2b3fe7f31bd1bc9e0
[ "Apache-2.0" ]
null
null
null
library-platform/docker_contexts/stac-api-docker/migrations/versions/f40c1c5cd3b7_users.py
therealspring/ecoshard-library
15d811017b1f6ad109ea47b2b3fe7f31bd1bc9e0
[ "Apache-2.0" ]
null
null
null
"""Users table Revision ID: 3f77f5e4567d Revises: Create Date: 2020-06-01 21:15:32.203132 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3f77f5e4567d' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto genera...
29.6
70
0.684122
e89263ac8cb119ff6414120619326a80e8ee79c9
605
py
Python
Libraries/ComputerVisionAssett/XpmImageConverter.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
Libraries/ComputerVisionAssett/XpmImageConverter.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
Libraries/ComputerVisionAssett/XpmImageConverter.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
import numpy as np import cv2 import shutil if __name__ == "__main__": with open("image_data.txt", "r") as file: lines = file.readline() row_count = 0 col_count = 0 image = np.zeros((140, 140, 1)) for index, character in enumerate(lines): pixel_value = int(character, 16) * 255 / 16 ...
24.2
53
0.561983
e892b027b5b71d2e300fa377abfa7a141a34d850
1,382
py
Python
sheets_example.py
PhysiCell-Tools/DAPT-example
a0a4a27738ee75bbd6f60d28a7dbccccbfbbb612
[ "BSD-3-Clause" ]
1
2021-03-07T22:07:32.000Z
2021-03-07T22:07:32.000Z
sheets_example.py
PhysiCell-Tools/DAPT-example
a0a4a27738ee75bbd6f60d28a7dbccccbfbbb612
[ "BSD-3-Clause" ]
1
2021-03-07T21:16:23.000Z
2021-03-07T21:16:23.000Z
sheets_example.py
PhysiCell-Tools/DAPT-example
a0a4a27738ee75bbd6f60d28a7dbccccbfbbb612
[ "BSD-3-Clause" ]
null
null
null
import os, platform import dapt, gspread # Update these variables spreedsheet_id = '17QJFFXto0MbOX5dH9GFP3NevNHiuxj7eZf7Pevcg96U' credentials_path = '/Users/ben/Documents/mathcancer/configs/credentials.json' config = dapt.Config(path='config.json') db = dapt.db.Sheet(spreedsheet_id=spreedsheet_id, creds=credentials_...
28.204082
123
0.659913
e892c03f9da6c4728bfeb2dae7520c53e2dbbff9
3,195
py
Python
services/web/server/src/simcore_service_webserver/rest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
services/web/server/src/simcore_service_webserver/rest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
services/web/server/src/simcore_service_webserver/rest.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
""" Restful API - Loads and validates openapi specifications (oas) - Adds check and diagnostic routes - Activates middlewares """ import asyncio import logging #from copy import deepcopy from aiohttp import web from tenacity import before_sleep_log, retry, stop_after_attempt, wait_fixed from servicelib ...
31.633663
84
0.67543
e892e20b5dd24d29085937dd92bbaf409e306ce3
4,479
py
Python
model/fastspeech2.py
ttslr/Expressive-FastSpeech2
7f1c463d0f10053596de62e5c112ee952f58d924
[ "MIT" ]
79
2021-05-17T10:19:40.000Z
2022-03-27T09:01:58.000Z
model/fastspeech2.py
KunZhou9646/Expressive-FastSpeech2
7f1c463d0f10053596de62e5c112ee952f58d924
[ "MIT" ]
13
2021-05-16T23:07:29.000Z
2022-03-20T23:45:04.000Z
model/fastspeech2.py
KunZhou9646/Expressive-FastSpeech2
7f1c463d0f10053596de62e5c112ee952f58d924
[ "MIT" ]
22
2021-05-16T09:35:50.000Z
2022-03-04T09:52:58.000Z
import os import json import torch import torch.nn as nn import torch.nn.functional as F from transformer import Encoder, Decoder, PostNet from .modules import VarianceAdaptor from utils.tools import get_mask_from_lengths class FastSpeech2(nn.Module): """ FastSpeech2 """ def __init__(self, p...
30.060403
123
0.509042
e892f8f34a575760c4ccee9a22f334134040c7e9
6,732
py
Python
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/_vendor/cachecontrol/serialize.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import base64 import io import json import zlib from pip._vendor.requests.structures import CaseInsensitiveDict from .compat import HTTPResponse, pickle, text_type def _b64_encode_bytes(b): return base64.b64encode(b).decode("ascii") def _b64_encode_str(s): return _b64_encode_bytes(s.encode(...
34.172589
79
0.546197
e8930217560485e363fb626dc2d78b0d5214032a
3,723
py
Python
intersight/models/compute_server_operation_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_server_operation_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/compute_server_operation_task_ref.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class ComputeServerOperationTaskRef(object): """ NO...
24.82
82
0.555466
e8930b515ac98dc99423fce1b148ba79584b1c9e
786
py
Python
p30.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
p30.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
p30.py
kmark1625/Project-Euler
e80c4f2044fdbff93331117b8f02aa0becbb0706
[ "MIT" ]
null
null
null
def main(): return sum_of_nth_sum(5) def sum_of_nth_sum(n): sum = 0 for i in range(1, 1000000): if is_valid_nth_sum(i, n): sum += i return sum def is_valid_nth_sum(num, n): string_num = str(num) if len(string_num) == 1: return False sum = 0 for d in string_num: sum += int(d)**n if ...
20.684211
43
0.673028
e89315b70ef7bcdd8e663079af2ac041f9101f6c
513
py
Python
dstructure/Queue.py
vivekpisal/Dstructure
24c9c168290eeb609f0898a68b9a6fba38584883
[ "MIT" ]
1
2021-02-26T14:38:24.000Z
2021-02-26T14:38:24.000Z
dstructure/Queue.py
vivekpisal/Dstructure
24c9c168290eeb609f0898a68b9a6fba38584883
[ "MIT" ]
null
null
null
dstructure/Queue.py
vivekpisal/Dstructure
24c9c168290eeb609f0898a68b9a6fba38584883
[ "MIT" ]
null
null
null
class Queue: def __init__(self,size): self.queue=[] self.size=size def enqueue(self,element): if len(self.queue)>=size: print('Queue is Full') else: self.queue.append(element) def dequeue(self): if len(self.queue)==0: print("Queue is Empty") else: self.pop(0) def printqueue(self): ...
13.864865
29
0.643275
e89317494f9b7171a93b2706d9d612d456ddf937
3,631
py
Python
tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/examples/tutorials/mnist/mnist_softmax_xla.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2015 The TensorFlow Authors. 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 applica...
33.934579
80
0.683007
e893307199051c4e6242d880f5f099ed64b2a272
1,091
py
Python
fomo_social_harvester/scraper/telegram.py
dgnsrekt/fomo-social-harvester
accae1c91741ded911da53050331c39bf461c2e7
[ "MIT" ]
null
null
null
fomo_social_harvester/scraper/telegram.py
dgnsrekt/fomo-social-harvester
accae1c91741ded911da53050331c39bf461c2e7
[ "MIT" ]
null
null
null
fomo_social_harvester/scraper/telegram.py
dgnsrekt/fomo-social-harvester
accae1c91741ded911da53050331c39bf461c2e7
[ "MIT" ]
null
null
null
from time import sleep import logging from .base import fetch_page def clean_member_count(string): cleaned = string.replace('members', '') cleaned = cleaned.replace(' ', '') return int(cleaned) def parse_member_count(row): sleep(5) name = row.get('name') telegram_link = row.get('link') ...
28.710526
129
0.598533
e89338b6187ea4782305d64de8fd2ba747a8c870
230
py
Python
mdb.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
1
2020-06-16T17:26:45.000Z
2020-06-16T17:26:45.000Z
mdb.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
mdb.py
mgroth0/mlib
0442ed51eab417b6972f885605afd351892a3a9a
[ "MIT" ]
null
null
null
INTERACT_STR = '__INTERACT_NOW__' def remote_breakpoint(): import mlib.err mlib.err.auto_quit_on_exception = False print(INTERACT_STR) import pdb; pdb.set_trace() # need to find way to automatically return
25.555556
46
0.726087
e8933ee111c92648049c07c555220876039f0e63
8,284
py
Python
neuro-sdk/src/neuro_sdk/core.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-sdk/src/neuro_sdk/core.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-sdk/src/neuro_sdk/core.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
import contextlib import errno import json as jsonmodule import logging import sqlite3 import sys import time from http.cookies import Morsel, SimpleCookie from types import SimpleNamespace from typing import Any, AsyncIterator, Dict, List, Mapping, Optional, Sequence import aiohttp from aiohttp import WSMessage from ...
30.795539
88
0.590777
e89346ac836a258360ff400f8c5cad8d3985a653
15,055
py
Python
neutron/tests/fullstack/test_securitygroup.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/fullstack/test_securitygroup.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
neutron/tests/fullstack/test_securitygroup.py
kklimonda/neutron
ccdddad358a4bf802d59b3fbbfe88a1e9881c96c
[ "Apache-2.0" ]
null
null
null
# Copyright 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 agre...
40.254011
79
0.612089
e89352b7e8a28378e391ed5cf2e2d1bbbe71206a
18,207
py
Python
tools/installer/deps/espsecure.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
tools/installer/deps/espsecure.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
tools/installer/deps/espsecure.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ESP32 secure boot utility # https://github.com/themadinventor/esptool # # Copyright (C) 2016 Espressif Systems (Shanghai) PTE LTD # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Founda...
46.565217
160
0.664085
e89374cca71ea1c9537748f0d7d0b7dcefaa7e2f
3,466
py
Python
clif/testing/python/t4_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/testing/python/t4_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/testing/python/t4_test.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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,...
32.392523
74
0.730814
e893b28177c25041d1e62a268584f00810516169
217
py
Python
home_password/models/__init__.py
RTBlanco/home_password
fb269c9a2c173c1676a07f6dbabcf9d7b3aaa11e
[ "MIT" ]
null
null
null
home_password/models/__init__.py
RTBlanco/home_password
fb269c9a2c173c1676a07f6dbabcf9d7b3aaa11e
[ "MIT" ]
1
2021-01-26T01:07:11.000Z
2021-01-27T07:33:31.000Z
home_password/models/__init__.py
RTBlanco/home_password
fb269c9a2c173c1676a07f6dbabcf9d7b3aaa11e
[ "MIT" ]
null
null
null
from home_password import db sites = db.Table('sites', db.Column('site_id', db.Integer, db.ForeignKey('site.id'), primary_key=True), db.Column('user_id', db.Integer, db.ForeignKey('user.id'), primary_key=True) )
36.166667
79
0.718894