hexsha stringlengths 40 40 | size int64 3 1.03M | ext stringclasses 10
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 972 | max_stars_repo_name stringlengths 6 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 972 | max_issues_repo_name stringlengths 6 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 972 | max_forks_repo_name stringlengths 6 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 3 1.03M | avg_line_length float64 1.13 941k | max_line_length int64 2 941k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3df8290b4d58e046c57416ad8b4b108b36d44756 | 1,730 | py | Python | examples/simple/raw/client.py | islavov/tchannel-python | ca3da9b4e0367d2e00078b158ab9e0bb4f328619 | [
"MIT"
] | 98 | 2015-07-10T23:42:11.000Z | 2021-11-08T11:21:02.000Z | examples/simple/raw/client.py | islavov/tchannel-python | ca3da9b4e0367d2e00078b158ab9e0bb4f328619 | [
"MIT"
] | 445 | 2015-07-10T23:58:02.000Z | 2021-08-24T14:58:39.000Z | examples/simple/raw/client.py | islavov/tchannel-python | ca3da9b4e0367d2e00078b158ab9e0bb4f328619 | [
"MIT"
] | 43 | 2015-07-22T19:14:57.000Z | 2021-09-14T12:12:38.000Z | # Copyright (c) 2016 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | 33.269231 | 79 | 0.749133 |
674ae26f7ab27154e44ffd01f958a46bb4bc9936 | 6,458 | py | Python | tnp_svm/src/svm_weight_recognition.py | warehouse-picking-automation-challenges/team_naist_panasonic | 999b8d20c5528f5510e43bf4a483215011f9871d | [
"Apache-2.0"
] | 10 | 2017-12-22T07:45:09.000Z | 2022-03-25T21:42:22.000Z | tnp_svm/src/svm_weight_recognition.py | warehouse-picking-automation-challenges/team_naist_panasonic | 999b8d20c5528f5510e43bf4a483215011f9871d | [
"Apache-2.0"
] | null | null | null | tnp_svm/src/svm_weight_recognition.py | warehouse-picking-automation-challenges/team_naist_panasonic | 999b8d20c5528f5510e43bf4a483215011f9871d | [
"Apache-2.0"
] | 6 | 2017-12-24T16:03:22.000Z | 2020-06-14T11:01:18.000Z | #
# Version: 2017.07.31
# Authors: Members of the Team NAIST-Panasonic at the Amazon Robotics Challenge 2017:
# Gustavo A. Garcia R. <garcia-g at is.naist.jp> (Captain),
# Lotfi El Hafi, Felix von Drigalski, Wataru Yamazaki, Viktor Hoerig, Arnaud Delmotte,
# Akishige Yuguchi, Marcus Ga... | 39.139394 | 115 | 0.642459 |
63018b34fe2467dac21c77164b98486d1cbb6312 | 9,862 | py | Python | littlefish/timetool.py | michaelwalkerfl/littlefish | b226dde71367225d1c630c0b24f5157ad5aef2b6 | [
"Apache-2.0"
] | 3 | 2017-04-27T09:47:06.000Z | 2019-05-13T20:48:03.000Z | littlefish/timetool.py | michaelwalkerfl/littlefish | b226dde71367225d1c630c0b24f5157ad5aef2b6 | [
"Apache-2.0"
] | null | null | null | littlefish/timetool.py | michaelwalkerfl/littlefish | b226dde71367225d1c630c0b24f5157ad5aef2b6 | [
"Apache-2.0"
] | 3 | 2019-02-19T20:33:58.000Z | 2020-09-01T09:01:51.000Z | """
This contains functions to manipulate and display timestamps
"""
import logging
import datetime
import calendar
import dateutil.parser
import pytz
__author__ = 'Stephen Brown (Little Fish Solutions LTD)'
log = logging.getLogger(__name__)
utc = pytz.utc
local = pytz.timezone('Europe/London')
def to_local_time... | 29.177515 | 118 | 0.618434 |
70399f5acff84461d84603989b9551e349e40c31 | 3,168 | py | Python | travel_time.5m.py | danpker/travel-time | c1382e48e02550ab8225f9cd8834c10ca0a981d5 | [
"MIT"
] | null | null | null | travel_time.5m.py | danpker/travel-time | c1382e48e02550ab8225f9cd8834c10ca0a981d5 | [
"MIT"
] | 3 | 2017-06-19T10:56:33.000Z | 2018-03-15T09:31:14.000Z | travel_time.5m.py | danpker/travel-time | c1382e48e02550ab8225f9cd8834c10ca0a981d5 | [
"MIT"
] | null | null | null | #!/usr/bin/env LC_ALL=en_US.UTF-8 /usr/local/bin/python3
import requests
import dateparser
from datetime import datetime
import json
import re
import html
import base64
import os
START = ""
DESTINATION = ""
API_KEY = ""
TAG_RE = re.compile(r"<[^>]+>")
def main():
url = ("https://maps.googleapis.com/maps/api/dir... | 29.333333 | 79 | 0.667614 |
786511ba18ede1aee9af267bd06ce6e3e0174bea | 12,586 | py | Python | python/federatedml/param/hetero_nn_param.py | hubert-he/FATE | 6758e150bd7ca7d6f788f9a7a8c8aea7e6500363 | [
"Apache-2.0"
] | 3,787 | 2019-08-30T04:55:10.000Z | 2022-03-31T23:30:07.000Z | python/federatedml/param/hetero_nn_param.py | hubert-he/FATE | 6758e150bd7ca7d6f788f9a7a8c8aea7e6500363 | [
"Apache-2.0"
] | 1,439 | 2019-08-29T16:35:52.000Z | 2022-03-31T11:55:31.000Z | python/federatedml/param/hetero_nn_param.py | hubert-he/FATE | 6758e150bd7ca7d6f788f9a7a8c8aea7e6500363 | [
"Apache-2.0"
] | 1,179 | 2019-08-29T16:18:32.000Z | 2022-03-31T12:55:38.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import collections
#
# Copyright 2019 The FATE 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:/... | 48.594595 | 129 | 0.662403 |
dcb7dcd7f4104c82860d9b4c3b0b87916701b3fc | 1,451 | py | Python | var/spack/repos/builtin/packages/tcptrace/package.py | HaochengLIU/spack | 26e51ff1705a4d6234e2a0cf734f93f7f95df5cb | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 2 | 2018-11-27T03:39:44.000Z | 2021-09-06T15:50:35.000Z | var/spack/repos/builtin/packages/tcptrace/package.py | HaochengLIU/spack | 26e51ff1705a4d6234e2a0cf734f93f7f95df5cb | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2019-01-11T20:11:52.000Z | 2019-01-11T20:11:52.000Z | var/spack/repos/builtin/packages/tcptrace/package.py | HaochengLIU/spack | 26e51ff1705a4d6234e2a0cf734f93f7f95df5cb | [
"ECL-2.0",
"Apache-2.0",
"MIT"
] | 1 | 2020-10-14T14:20:17.000Z | 2020-10-14T14:20:17.000Z | # Copyright 2013-2018 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 *
from os.path import join
class Tcptrace(AutotoolsPackage):
"""tcptrace is a tool written by Shaw... | 35.390244 | 77 | 0.682977 |
7e1bcabaee3c2fd6b2266167bacf69e8934cfcba | 1,328 | py | Python | src/utils/dataset_types.py | sisl/MultiAgentVariationalOcclusionInference | c46ef5dc99a6ca7a59937dbd4bf1d3f86d0eb757 | [
"Apache-2.0"
] | 6 | 2021-09-07T18:40:24.000Z | 2022-03-15T06:16:07.000Z | src/utils/dataset_types.py | sisl/MultiAgentVariationalOcclusionInference | c46ef5dc99a6ca7a59937dbd4bf1d3f86d0eb757 | [
"Apache-2.0"
] | 2 | 2021-12-03T05:18:09.000Z | 2021-12-17T09:54:08.000Z | src/utils/dataset_types.py | sisl/MultiAgentVariationalOcclusionInference | c46ef5dc99a6ca7a59937dbd4bf1d3f86d0eb757 | [
"Apache-2.0"
] | 3 | 2021-12-15T03:19:48.000Z | 2022-03-31T18:05:39.000Z | # Code is from: https://github.com/interaction-dataset/interaction-dataset.
DELTA_TIMESTAMP_MS = 100 # similar throughout the whole dataset
class MotionState:
def __init__(self, time_stamp_ms):
assert isinstance(time_stamp_ms, int)
self.time_stamp_ms = time_stamp_ms
self.x = None
... | 34.051282 | 101 | 0.591867 |
bd89909846c4e5bf54ad5b341a0eb95f6166c0e5 | 5,043 | py | Python | data.py | RamiroFuentes/Portafolio_Web | afe71a08d2b0496103bce19960bc213329bcc289 | [
"MIT"
] | null | null | null | data.py | RamiroFuentes/Portafolio_Web | afe71a08d2b0496103bce19960bc213329bcc289 | [
"MIT"
] | null | null | null | data.py | RamiroFuentes/Portafolio_Web | afe71a08d2b0496103bce19960bc213329bcc289 | [
"MIT"
] | 1 | 2019-11-13T17:40:45.000Z | 2019-11-13T17:40:45.000Z | # encoding: utf-8
Data = {
# Datos de presentacion
"Titulo" : u"Ramiro Fuentes",
"Nombres" : u"José Ramiro",
"Apellidos" : u"Fuentes Lara",
"Imagen" : "../static/img/foto.png",
"Color" : "primary",
# About
"Calle" : "Herradura",
"Numero" : "6",
"Colonia" : "Noria Alta",
... | 45.432432 | 149 | 0.681935 |
52bd270998e8918263bcf69dd82a24ea7d4b2b43 | 2,053 | py | Python | legacy/pipeline/ocr.py | dirkroorda/fusus | ee83067e1fb4fb4e4a7389554df4ab200c6f2092 | [
"MIT"
] | null | null | null | legacy/pipeline/ocr.py | dirkroorda/fusus | ee83067e1fb4fb4e4a7389554df4ab200c6f2092 | [
"MIT"
] | null | null | null | legacy/pipeline/ocr.py | dirkroorda/fusus | ee83067e1fb4fb4e4a7389554df4ab200c6f2092 | [
"MIT"
] | null | null | null | """
Kraken Arabic model:
[OpenITI](https://github.com/OpenITI/OCR_GS_Data/blob/master/ara/abhath/arabic_generalized.mlmodel)
"""
from pytesseract import image_to_data, image_to_string, image_to_boxes
MODES = dict(
string=image_to_string,
data=image_to_data,
boxes=image_to_boxes,
)
class OCR:
def ... | 25.6625 | 99 | 0.524111 |
04cfddf3d2f5f2b04c601804f78e2d7790d72dfc | 5,382 | py | Python | capability/test/test_poo_tools/TestPointOfOrigin.py | jscott11/solutions-geoprocessing-toolbox | beafdfa8626eefc5c1e781edd96bfcdd42697c61 | [
"Apache-2.0"
] | null | null | null | capability/test/test_poo_tools/TestPointOfOrigin.py | jscott11/solutions-geoprocessing-toolbox | beafdfa8626eefc5c1e781edd96bfcdd42697c61 | [
"Apache-2.0"
] | null | null | null | capability/test/test_poo_tools/TestPointOfOrigin.py | jscott11/solutions-geoprocessing-toolbox | beafdfa8626eefc5c1e781edd96bfcdd42697c61 | [
"Apache-2.0"
] | 1 | 2018-10-25T15:52:41.000Z | 2018-10-25T15:52:41.000Z | #------------------------------------------------------------------------------
# Copyright 2013 Esri
# 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/LICENS... | 44.479339 | 198 | 0.66388 |
0fe86eb4b41b7f8e1272e5054e0ed63adf85ffdf | 80,786 | py | Python | madgraph/interface/reweight_interface.py | madnklo/madnklo | 646a3db9c8efd7b4cb00e9d89b9197cd5394c01b | [
"NCSA"
] | 1 | 2019-12-14T15:25:38.000Z | 2019-12-14T15:25:38.000Z | madgraph/interface/reweight_interface.py | madnklo/madnklo | 646a3db9c8efd7b4cb00e9d89b9197cd5394c01b | [
"NCSA"
] | 26 | 2018-10-08T15:49:32.000Z | 2020-05-15T13:33:36.000Z | madgraph/interface/reweight_interface.py | madnklo/madnklo | 646a3db9c8efd7b4cb00e9d89b9197cd5394c01b | [
"NCSA"
] | 2 | 2019-03-25T17:28:48.000Z | 2021-04-21T12:15:53.000Z | ################################################################################
#
# Copyright (c) 2009 The MadGraph5_aMC@NLO Development team and Contributors
#
# This file is a part of the MadGraph5_aMC@NLO project, an application which
# automatically generates Feynman diagrams and matrix elements for arbitrary
# h... | 45.797052 | 178 | 0.528681 |
63d89492a2eb8ef90198fd02c310f67c2c7ad703 | 1,978 | py | Python | aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetL2OssKeyConfigRequest.py | jia-jerry/aliyun-openapi-python-sdk | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | [
"Apache-2.0"
] | 1 | 2021-03-08T02:59:17.000Z | 2021-03-08T02:59:17.000Z | aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetL2OssKeyConfigRequest.py | jia-jerry/aliyun-openapi-python-sdk | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | [
"Apache-2.0"
] | 1 | 2020-05-31T14:51:47.000Z | 2020-05-31T14:51:47.000Z | aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/SetL2OssKeyConfigRequest.py | jia-jerry/aliyun-openapi-python-sdk | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | [
"Apache-2.0"
] | null | null | null | # 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... | 35.321429 | 74 | 0.768959 |
240c1740948e7fda97c16c719124f629198f56ee | 1,535 | py | Python | test/ec/test_key_agreement.py | Tomko10/pyecsca | 900503e602c3079c6293e17f297e3b111ba9611a | [
"MIT"
] | 24 | 2019-07-01T00:27:24.000Z | 2022-02-17T00:46:28.000Z | test/ec/test_key_agreement.py | Tomko10/pyecsca | 900503e602c3079c6293e17f297e3b111ba9611a | [
"MIT"
] | 18 | 2020-12-10T15:08:56.000Z | 2022-03-01T11:44:37.000Z | test/ec/test_key_agreement.py | Tomko10/pyecsca | 900503e602c3079c6293e17f297e3b111ba9611a | [
"MIT"
] | 7 | 2020-02-20T18:44:29.000Z | 2021-11-30T21:16:44.000Z | from unittest import TestCase
from parameterized import parameterized
from pyecsca.ec.params import get_params
from pyecsca.ec.key_agreement import (
ECDH_NONE,
ECDH_SHA1,
ECDH_SHA224,
ECDH_SHA256,
ECDH_SHA384,
ECDH_SHA512,
)
from pyecsca.ec.mod import Mod
from pyecsca.ec.mult import LTRMultip... | 33.369565 | 86 | 0.657329 |
0920f5bb05990dcc278f2fa96f7b62288601cdbb | 6,315 | py | Python | baselines/common/running_mean_std.py | rwill128/baselines | 24dd0c80db01623bb1224ab044b64da3fbec63cc | [
"MIT"
] | null | null | null | baselines/common/running_mean_std.py | rwill128/baselines | 24dd0c80db01623bb1224ab044b64da3fbec63cc | [
"MIT"
] | null | null | null | baselines/common/running_mean_std.py | rwill128/baselines | 24dd0c80db01623bb1224ab044b64da3fbec63cc | [
"MIT"
] | null | null | null | import tensorflow as tf
import numpy as np
from baselines.common.tf_util import get_session
class RunningMeanStd(object):
# https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Parallel_algorithm
def __init__(self, epsilon=1e-4, shape=()):
self.mean = np.zeros(shape, 'float64')
se... | 33.770053 | 118 | 0.632462 |
d3e8afc8b4b0b6b323b738aa12a32168d61b73a6 | 665 | py | Python | src/ensembl/production/dbcopy/migrations/0002_adding_request_date.py | luca-drf/ensembl-prodinf-dbcopy | d6ee2e402fd4eba1f85a9455c007492080732941 | [
"Apache-2.0"
] | null | null | null | src/ensembl/production/dbcopy/migrations/0002_adding_request_date.py | luca-drf/ensembl-prodinf-dbcopy | d6ee2e402fd4eba1f85a9455c007492080732941 | [
"Apache-2.0"
] | 2 | 2021-09-08T18:09:15.000Z | 2022-01-20T16:43:22.000Z | src/ensembl/production/dbcopy/migrations/0002_adding_request_date.py | luca-drf/ensembl-prodinf-dbcopy | d6ee2e402fd4eba1f85a9455c007492080732941 | [
"Apache-2.0"
] | 1 | 2021-06-08T13:10:44.000Z | 2021-06-08T13:10:44.000Z | # Generated by Django 2.2.13 on 2020-06-08 10:16
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('ensembl_dbcopy', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='requestjob'... | 26.6 | 93 | 0.621053 |
f99cc6783a98400826b8b0875e98532a20d8f72b | 3,394 | py | Python | learning_log/learning_log/settings.py | adrian88szymanski/Python_Crash_Course_Eric_Matthes | 74e9a627e3e044ea30e4a8579843d95fe8e4fc14 | [
"MIT"
] | 8 | 2021-07-21T02:52:49.000Z | 2022-02-08T20:47:09.000Z | learning_log/learning_log/settings.py | barbarian47/Python_Crash_Course_Eric_Matthes | 74e9a627e3e044ea30e4a8579843d95fe8e4fc14 | [
"MIT"
] | null | null | null | learning_log/learning_log/settings.py | barbarian47/Python_Crash_Course_Eric_Matthes | 74e9a627e3e044ea30e4a8579843d95fe8e4fc14 | [
"MIT"
] | 7 | 2021-06-10T12:27:56.000Z | 2022-01-29T13:53:15.000Z | """
Django settings for learning_log project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | 25.328358 | 91 | 0.696229 |
d0a47c287177019f839f3dc9be0e68e0fc2357c1 | 953 | py | Python | openstack_dashboard/dashboards/admin/metadata_defs/panel.py | ankur-gupta91/block_storage | 938548a3d4507dc56c1c26b442767eb41aa2e610 | [
"Apache-2.0"
] | 9 | 2016-06-03T03:53:24.000Z | 2017-05-20T16:53:23.000Z | openstack_dashboard/dashboards/admin/metadata_defs/panel.py | ankur-gupta91/block_storage | 938548a3d4507dc56c1c26b442767eb41aa2e610 | [
"Apache-2.0"
] | 1 | 2021-03-21T11:48:09.000Z | 2021-03-21T11:48:09.000Z | openstack_dashboard/dashboards/admin/metadata_defs/panel.py | ankur-gupta91/block_storage | 938548a3d4507dc56c1c26b442767eb41aa2e610 | [
"Apache-2.0"
] | 4 | 2016-08-01T10:50:15.000Z | 2017-02-22T12:11:19.000Z | #
# (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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
#
# Unle... | 31.766667 | 78 | 0.728227 |
9379087f0028935d1c7dab0a235f5a7bfc30de9b | 559 | py | Python | IDLE-files/koch_snowflake.py | arvidl/dynamical-systems-with-applications-using-python | db747f550337a7e7ec4a0851b188dd6e2e816a64 | [
"BSD-2-Clause"
] | 106 | 2018-10-10T18:04:02.000Z | 2022-03-11T06:32:38.000Z | IDLE-files/koch_snowflake.py | arvidl/dynamical-systems-with-applications-using-python | db747f550337a7e7ec4a0851b188dd6e2e816a64 | [
"BSD-2-Clause"
] | null | null | null | IDLE-files/koch_snowflake.py | arvidl/dynamical-systems-with-applications-using-python | db747f550337a7e7ec4a0851b188dd6e2e816a64 | [
"BSD-2-Clause"
] | 54 | 2018-02-06T09:47:42.000Z | 2022-03-25T15:41:43.000Z | # Plot the Koch snowflake.
# See Exercise 1(d).
# Run the Module (or type F5).
from turtle import *
def koch_snowflake(length, level): # KochSnowflake function.
speed(0) # Fastest speed.
for i in range(3):
plot_side(length, level)
rt(120)
def plot_side(length, level): ... | 24.304348 | 61 | 0.599284 |
2542b39e2c4b8be21f74fde1941c18f8cee0f1dc | 7,202 | py | Python | lexicon/providers/inwx.py | k-serenade/lexicon | 9475eb01b6beb3ac996ce70a14bc81c0749275c7 | [
"MIT"
] | 1,184 | 2016-02-02T17:08:04.000Z | 2022-03-20T13:15:26.000Z | lexicon/providers/inwx.py | alexAubin/lexicon | 9475eb01b6beb3ac996ce70a14bc81c0749275c7 | [
"MIT"
] | 1,038 | 2016-02-15T21:25:16.000Z | 2022-03-31T13:18:21.000Z | lexicon/providers/inwx.py | alexAubin/lexicon | 9475eb01b6beb3ac996ce70a14bc81c0749275c7 | [
"MIT"
] | 358 | 2016-02-05T09:57:36.000Z | 2022-03-30T07:15:26.000Z | """Module provider for INWX"""
import logging
from lexicon.exceptions import AuthenticationError
from lexicon.providers.base import Provider as BaseProvider
try:
import xmlrpclib # type: ignore
except ImportError:
import xmlrpc.client as xmlrpclib # type: ignore
LOGGER = logging.getLogger(__name__)
NAMESE... | 32.441441 | 88 | 0.589697 |
7e5ff245401c83fac4dbe37b2c5255f35fa79c3c | 463 | py | Python | newExam/newExam/urls.py | M0673N/Python-Web-Basics | cecc27f7a12f990756edcc8885290eb3b2e487b7 | [
"MIT"
] | null | null | null | newExam/newExam/urls.py | M0673N/Python-Web-Basics | cecc27f7a12f990756edcc8885290eb3b2e487b7 | [
"MIT"
] | null | null | null | newExam/newExam/urls.py | M0673N/Python-Web-Basics | cecc27f7a12f990756edcc8885290eb3b2e487b7 | [
"MIT"
] | null | null | null | from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from django.urls import path, include
from newExam.profile_app.views import show_home
urlpatterns = [
path('admin/', admin.site.urls),
path('', show_home, name='home'),
path('', include('newExam.ex... | 33.071429 | 65 | 0.7473 |
e62d66a69b9ca6e59df9c2e264f05bd5e7f1e41d | 6,009 | py | Python | scripts/separate_plots.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | scripts/separate_plots.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | scripts/separate_plots.py | JIC-Image-Analysis/senescence-in-field | f310e34df377eb807423c38cf27d1ade0782f5a2 | [
"MIT"
] | null | null | null | """Separate individual plots."""
import os
import argparse
import numpy as np
from scipy.misc import imsave
from jicbioimage.core.image import Image
from jicbioimage.segment import SegmentedImage
from dtoolcore import DataSet, ProtoDataSet
from jicgeometry import Point2D
from dtoolutils import temp_working_dir
... | 27.313636 | 79 | 0.689466 |
01ebbcc71fbb0dd4ea7cdebbaeb66230bc95916c | 306 | py | Python | py/widget/get_wh.py | teppchan/tkintertips | dc4b43e86185906d72ba5d5712edee94c76f8b37 | [
"MIT"
] | null | null | null | py/widget/get_wh.py | teppchan/tkintertips | dc4b43e86185906d72ba5d5712edee94c76f8b37 | [
"MIT"
] | null | null | null | py/widget/get_wh.py | teppchan/tkintertips | dc4b43e86185906d72ba5d5712edee94c76f8b37 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import Tkinter as Tk
root=Tk.Tk()
root.title(u"Hello Tk window!")
root["width"]=300
root["height"]=200
def f_btn():
print("width=%d height=%d" % (root["width"], root["height"]))
btn=Tk.Button(root, text="window size", width=30)
btn.pack()
btn["command"]=f_btn
root.mainloop()
| 18 | 65 | 0.663399 |
eb950cbe38261625eec86d12235dcda412d7114d | 2,513 | py | Python | userbot/modules/hash.py | ClauzyingFast/OpenUserBot | a2094ed2ccb2f9d9bfa7c0fd447afa99ee64b210 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 14 | 2019-10-27T17:25:12.000Z | 2021-08-29T14:51:25.000Z | userbot/modules/hash.py | ClauzyingFast/OpenUserBot | a2094ed2ccb2f9d9bfa7c0fd447afa99ee64b210 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2020-06-10T09:44:34.000Z | 2020-07-28T16:17:17.000Z | userbot/modules/hash.py | ClauzyingFast/OpenUserBot | a2094ed2ccb2f9d9bfa7c0fd447afa99ee64b210 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 325 | 2019-10-26T09:20:47.000Z | 2022-01-28T19:07:01.000Z | # Copyright (C) 2019 The Raphielscape Company LLC.
#
# Licensed under the Raphielscape Public License, Version 1.c (the "License");
# you may not use this file except in compliance with the License.
#
""" Userbot module containing hash and encode/decode commands. """
from subprocess import PIPE
from subprocess import ... | 36.955882 | 84 | 0.608038 |
3b025ce56e71b51a9fc4b6319cec3f498e22de67 | 13,189 | py | Python | heat/core/relational.py | Mystic-Slice/heat | dd1b83d6d8b36cb4a70eefc631f00277b0745fee | [
"MIT"
] | null | null | null | heat/core/relational.py | Mystic-Slice/heat | dd1b83d6d8b36cb4a70eefc631f00277b0745fee | [
"MIT"
] | null | null | null | heat/core/relational.py | Mystic-Slice/heat | dd1b83d6d8b36cb4a70eefc631f00277b0745fee | [
"MIT"
] | null | null | null | """
Functions for relational oprations, i.e. equal/no equal...
"""
from __future__ import annotations
import torch
import numpy as np
from typing import Union
from .communication import MPI
from .dndarray import DNDarray
from . import _operations
from . import dndarray
from . import types
from . import sanitation
fr... | 31.327791 | 189 | 0.576769 |
83b3d4409b9fbdd0748ccc1d77a1c7b1a4f76c8e | 11,283 | py | Python | examples/nsmc.py | seujung/KoBART | 6040da72ca5744c17e5e89092158a8ee2a6b9673 | [
"MIT"
] | 1 | 2020-12-20T10:49:26.000Z | 2020-12-20T10:49:26.000Z | examples/nsmc.py | seujung/KoBART | 6040da72ca5744c17e5e89092158a8ee2a6b9673 | [
"MIT"
] | null | null | null | examples/nsmc.py | seujung/KoBART | 6040da72ca5744c17e5e89092158a8ee2a6b9673 | [
"MIT"
] | null | null | null | # coding=utf-8
# Modified MIT License
# Software Copyright (c) 2020 SK telecom
# 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 t... | 41.788889 | 153 | 0.60631 |
ae69f61839620110037a106fd2d4bd25625e481b | 245 | py | Python | flask/model/__init__.py | Dev-Jahn/cms | 84ea115bdb865daff83d069502f6f0dd105fc4f0 | [
"RSA-MD"
] | null | null | null | flask/model/__init__.py | Dev-Jahn/cms | 84ea115bdb865daff83d069502f6f0dd105fc4f0 | [
"RSA-MD"
] | 9 | 2021-01-05T07:48:28.000Z | 2021-05-14T06:38:27.000Z | flask/model/__init__.py | Dev-Jahn/cms | 84ea115bdb865daff83d069502f6f0dd105fc4f0 | [
"RSA-MD"
] | 4 | 2021-01-05T06:46:09.000Z | 2021-05-06T01:44:28.000Z | from .company_model import Company
from .device_model import Device
from .device_entry_model import DeviceEntry
from .image_model import Image
from .project_model import Project
from .cell_model import Cell
from .user_model import User
| 27.222222 | 44 | 0.820408 |
e3be9855102b294572b598543db46b1daa0f4a00 | 5,654 | py | Python | teleBot/duckduckgo.py | HikingSheep/Testy_Rasbian | 8948eb070629ed9fd257828926863fb7f8834d53 | [
"Apache-2.0"
] | 1 | 2020-05-24T19:45:30.000Z | 2020-05-24T19:45:30.000Z | teleBot/duckduckgo.py | HikingSheep/Testy_Rasbian | 8948eb070629ed9fd257828926863fb7f8834d53 | [
"Apache-2.0"
] | null | null | null | teleBot/duckduckgo.py | HikingSheep/Testy_Rasbian | 8948eb070629ed9fd257828926863fb7f8834d53 | [
"Apache-2.0"
] | null | null | null | # duckduckgo.py - Library for querying the DuckDuckGo API
#
# Copyright (c) 2010 Michael Stephens <me@mikej.st>
# Copyright (c) 2012-2013 Michael Smith <crazedpsyc@gshellz.org>
#
# See LICENSE for terms of usage, modification and redistribution.
import urllib
from urllib.request import urlopen
import json as j
import ... | 30.235294 | 120 | 0.593208 |
f6ccf7251d1a28538a8c38dd62ad5a0f7fcc8c89 | 4,298 | py | Python | tools/versioning.py | JessyDL/psl | 2396efc1ffed6e2105e324f34deadcb04aad76c3 | [
"MIT"
] | null | null | null | tools/versioning.py | JessyDL/psl | 2396efc1ffed6e2105e324f34deadcb04aad76c3 | [
"MIT"
] | null | null | null | tools/versioning.py | JessyDL/psl | 2396efc1ffed6e2105e324f34deadcb04aad76c3 | [
"MIT"
] | null | null | null | import subprocess
def run_command(command = []):
proc = subprocess.Popen(command, stdout=subprocess.PIPE)
data = ""
while proc.poll() is None:
output = proc.stdout.readline()
if output:
data = data + output.decode("utf-8")
output = proc.communicate()[0]
if ... | 38.035398 | 198 | 0.625872 |
aa1042a9973bc687dfc310056ab5b6b582bfeb95 | 2,578 | py | Python | src/tf_transformers/layers/mask/cross_attention_mask.py | legacyai/tf-transformers | 65a5f9a4bcb3236483daa598a37b91673f56cb97 | [
"Apache-2.0"
] | 116 | 2021-03-15T09:48:41.000Z | 2022-03-24T05:15:51.000Z | src/tf_transformers/layers/mask/cross_attention_mask.py | legacyai/tf-transformers | 65a5f9a4bcb3236483daa598a37b91673f56cb97 | [
"Apache-2.0"
] | 4 | 2021-03-20T11:20:57.000Z | 2022-01-05T04:59:07.000Z | src/tf_transformers/layers/mask/cross_attention_mask.py | legacyai/tf-transformers | 65a5f9a4bcb3236483daa598a37b91673f56cb97 | [
"Apache-2.0"
] | 9 | 2021-03-17T04:14:48.000Z | 2021-09-13T07:15:31.000Z | # coding=utf-8
# Copyright 2021 TF-Transformers Authors and 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/licens... | 39.060606 | 97 | 0.683476 |
137e438eb43c6b0fd624aca3b650d51d10e29e45 | 8,443 | py | Python | Scripts/compiler_dump_test/__main__.py | LiarPrincess/Violet | 0a4268649b0eec3ab631d19015d7043394c6571e | [
"MIT"
] | null | null | null | Scripts/compiler_dump_test/__main__.py | LiarPrincess/Violet | 0a4268649b0eec3ab631d19015d7043394c6571e | [
"MIT"
] | 6 | 2021-10-14T15:55:16.000Z | 2022-03-31T14:04:02.000Z | Scripts/compiler_dump_test/__main__.py | LiarPrincess/Violet | 0a4268649b0eec3ab631d19015d7043394c6571e | [
"MIT"
] | null | null | null | import io
import os
import re
import dis
from typing import List
def in_current_directory(file):
current_file = __file__
current_dir = os.path.dirname(current_file)
return os.path.join(current_dir, file)
def read_input_file():
file = in_current_directory('input.py')
with open(file) as f:
... | 32.102662 | 169 | 0.515457 |
8c9241a3196762649779018acb8e52f1255afe34 | 1,493 | py | Python | molo/core/tests/test_blocks.py | Ishma59/molo | 4fd31df9266bc251e09e9339a132d3ccd4143c69 | [
"BSD-2-Clause"
] | null | null | null | molo/core/tests/test_blocks.py | Ishma59/molo | 4fd31df9266bc251e09e9339a132d3ccd4143c69 | [
"BSD-2-Clause"
] | null | null | null | molo/core/tests/test_blocks.py | Ishma59/molo | 4fd31df9266bc251e09e9339a132d3ccd4143c69 | [
"BSD-2-Clause"
] | null | null | null | from django.core.exceptions import ValidationError
from django.test import TestCase
from molo.core.blocks import MarkDownBlock
class TestMarkDownBlock(TestCase):
def test_save_block_with_html_value_fails_validation(self):
# Test with some commonly used html tags
block = MarkDownBlock()
wi... | 48.16129 | 75 | 0.665104 |
f64008c655a864ff20b65818e028a6b4540b6337 | 706 | py | Python | malw.py | levio-sa/Malwares | b441af8b4ad87fbfbf292e4c0c0176b94f7faae4 | [
"MIT"
] | null | null | null | malw.py | levio-sa/Malwares | b441af8b4ad87fbfbf292e4c0c0176b94f7faae4 | [
"MIT"
] | null | null | null | malw.py | levio-sa/Malwares | b441af8b4ad87fbfbf292e4c0c0176b94f7faae4 | [
"MIT"
] | null | null | null | import os
import random
n=random.random()
print("Hello")
if(n>0.5):
os.system("mkdir new")
os.chdir('./new')
f=open("malw.py",'w+')
s='''import os\nimport random\nn=random.random()\nprint({q1}Hello{q1})\nif(n>0.5):\n os.system({q1}mkdir new{q1})\n os.chdir({q1}./new{q1})\n f=open({q1}ma... | 44.125 | 398 | 0.580737 |
c5fb9985c357c32c74d11e2cff99547da60df832 | 711 | py | Python | feed/spiders/day/cssforest_spider.py | awesome-archive/oh-my-rss | 477cca56e00f96aa53ef07212328cb2b39bdd6da | [
"MIT"
] | 2 | 2020-10-02T07:38:43.000Z | 2021-06-29T07:32:15.000Z | feed/spiders/day/cssforest_spider.py | virtual-emperor/oh-my-rss | 3e04899aba4dec27026f67e44193ca8f1eca616a | [
"MIT"
] | null | null | null | feed/spiders/day/cssforest_spider.py | virtual-emperor/oh-my-rss | 3e04899aba4dec27026f67e44193ca8f1eca616a | [
"MIT"
] | null | null | null |
from feed.spiders.spider import Spider
class CssforestSpider(Spider):
name = 'cssforest'
def __init__(self):
Spider.__init__(self,
start_urls=[
'http://blog.cssforest.org/',
],
index_xpath="//section/... | 32.318182 | 73 | 0.412096 |
4fc46d147d311b3727641b71a5655c3eb7edbb37 | 94,844 | py | Python | nova/virt/vmwareapi/vmops.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/virt/vmwareapi/vmops.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | null | null | null | nova/virt/vmwareapi/vmops.py | ebalduf/nova-backports | 6bf97ec73467de522d34ab7a17ca0e0874baa7f9 | [
"Apache-2.0"
] | 1 | 2020-07-24T01:18:44.000Z | 2020-07-24T01:18:44.000Z | # Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
# Copyright (c) 2012 VMware, Inc.
# Copyright (c) 2011 Citrix Systems, Inc.
# Copyright 2011 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. Yo... | 47.18607 | 79 | 0.565476 |
9f94960d1662c85e8cd165f0804dda93be335f83 | 19,645 | py | Python | configs/visdrone/visdrone_cascade_FusionFactor_mask_arf_DSH.py | w-sugar/mmdetection | 3f263c496c99827e4c90eb2e2f2be92f061f3b66 | [
"Apache-2.0"
] | null | null | null | configs/visdrone/visdrone_cascade_FusionFactor_mask_arf_DSH.py | w-sugar/mmdetection | 3f263c496c99827e4c90eb2e2f2be92f061f3b66 | [
"Apache-2.0"
] | null | null | null | configs/visdrone/visdrone_cascade_FusionFactor_mask_arf_DSH.py | w-sugar/mmdetection | 3f263c496c99827e4c90eb2e2f2be92f061f3b66 | [
"Apache-2.0"
] | null | null | null | model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
style='pytorch... | 38.145631 | 120 | 0.445508 |
b96e9524eb11b5b8295c8b236e33463a77357ade | 3,717 | py | Python | dash_core_components/Slider.py | mako-npm/dash-core-components | 0cbc3d8093c678e59b5b4dfa3aa2637d071a5b33 | [
"MIT"
] | null | null | null | dash_core_components/Slider.py | mako-npm/dash-core-components | 0cbc3d8093c678e59b5b4dfa3aa2637d071a5b33 | [
"MIT"
] | null | null | null | dash_core_components/Slider.py | mako-npm/dash-core-components | 0cbc3d8093c678e59b5b4dfa3aa2637d071a5b33 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Slider(Component):
"""A Slider component.
A slider component with a single handle.
Keyword arguments:
- id (string; optional)
- marks (optional): Marks on the slider.
The key determines the positio... | 56.318182 | 401 | 0.723433 |
f3cc46059317f4a45dabe1d72893b73e1b4238d9 | 4,039 | py | Python | workspace_tools/settings.py | x893/mbed | 103a6a5bc6da7db33c723c278ef08ee491b92cb5 | [
"Apache-2.0"
] | 1 | 2015-01-02T06:55:31.000Z | 2015-01-02T06:55:31.000Z | workspace_tools/settings.py | x893/mbed | 103a6a5bc6da7db33c723c278ef08ee491b92cb5 | [
"Apache-2.0"
] | null | null | null | workspace_tools/settings.py | x893/mbed | 103a6a5bc6da7db33c723c278ef08ee491b92cb5 | [
"Apache-2.0"
] | null | null | null | """
mbed SDK
Copyright (c) 2011-2013 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 34.228814 | 142 | 0.612775 |
3acefc3a69f542fbe69c1e3b354fe7a648abde3b | 2,244 | py | Python | lemur/migrations/env.py | charhate/lemur | 98668b09722695c5c4f353c122359383edb1c811 | [
"Apache-2.0"
] | null | null | null | lemur/migrations/env.py | charhate/lemur | 98668b09722695c5c4f353c122359383edb1c811 | [
"Apache-2.0"
] | 2 | 2021-02-10T02:29:45.000Z | 2021-04-30T21:40:40.000Z | lemur/migrations/env.py | charhate/lemur | 98668b09722695c5c4f353c122359383edb1c811 | [
"Apache-2.0"
] | null | null | null | from __future__ import with_statement
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
import alembic_autogenerate_enums
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# ... | 26.4 | 71 | 0.727273 |
3d5378e499be25b503f8279ea1c8b2933dc62eb4 | 1,395 | py | Python | src/models/quiche_nbody.py | HhotateA/quiche_pantie_patch | f50c4fd69bd43cccaeb38f026d486e3ccc3850d8 | [
"CC-BY-4.0"
] | 73 | 2019-01-26T02:57:24.000Z | 2022-02-15T08:45:11.000Z | src/models/quiche_nbody.py | HhotateA/quiche_pantie_patch | f50c4fd69bd43cccaeb38f026d486e3ccc3850d8 | [
"CC-BY-4.0"
] | 9 | 2019-04-09T10:53:41.000Z | 2020-09-11T13:18:26.000Z | src/models/quiche_nbody.py | HhotateA/quiche_pantie_patch | f50c4fd69bd43cccaeb38f026d486e3ccc3850d8 | [
"CC-BY-4.0"
] | 15 | 2019-04-07T11:28:57.000Z | 2022-03-29T04:35:48.000Z | from PIL import Image, ImageOps
from src.models.class_patcher import patcher
class patcher(patcher):
def __init__(self, body='./body/body_quiche_nbody.png', **options):
super().__init__('キッシュ(素体)', body=body, pantie_position=[403, 836], **options)
try:
self.with_bra = self.options['wit... | 38.75 | 86 | 0.625806 |
06b4a05d145501faecc5a48ebd9c87951089ed33 | 2,763 | py | Python | host/index.py | novacrazy/arduino-music-led-strip | 8d449bf5f4b0d51a5527985734f8c8ec44b009d6 | [
"MIT"
] | null | null | null | host/index.py | novacrazy/arduino-music-led-strip | 8d449bf5f4b0d51a5527985734f8c8ec44b009d6 | [
"MIT"
] | null | null | null | host/index.py | novacrazy/arduino-music-led-strip | 8d449bf5f4b0d51a5527985734f8c8ec44b009d6 | [
"MIT"
] | null | null | null | from listen_thread import ListenerThread
import commands
from command_protocol import CommandProtocol, Command
import serial
import time
import struct
import numpy as np
import numpy.fft as fft
from collections import deque
m = ListenerThread()
m.start()
bands = ((0, 60), # 255, 0, 0
(60, 250), # 255, ... | 24.026087 | 93 | 0.549403 |
c0432715e149592f3cd06dc5a226ba6a18e6d513 | 50,688 | py | Python | aiida/transports/plugins/ssh.py | borellim/aiida_core | eebef392c81e8b130834a92e1d7abf5e2e30b3ce | [
"BSD-2-Clause"
] | 1 | 2019-03-15T10:37:53.000Z | 2019-03-15T10:37:53.000Z | aiida/transports/plugins/ssh.py | odarbelaeze/aiida_core | 934b4ccdc73a993f2a6656caf516500470e3da08 | [
"BSD-2-Clause"
] | null | null | null | aiida/transports/plugins/ssh.py | odarbelaeze/aiida_core | 934b4ccdc73a993f2a6656caf516500470e3da08 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 40.680578 | 263 | 0.603062 |
2582bf3ce78bc051ac66d9f9db516d05ca5d9417 | 2,611 | py | Python | pysteps/visualization/spectral.py | leabeusch/pysteps | 5f162d4b1155e4cfd894c9635eed3f0e823adedd | [
"BSD-3-Clause"
] | 285 | 2018-07-11T10:42:43.000Z | 2022-03-23T13:44:54.000Z | pysteps/visualization/spectral.py | leabeusch/pysteps | 5f162d4b1155e4cfd894c9635eed3f0e823adedd | [
"BSD-3-Clause"
] | 246 | 2018-07-16T06:17:12.000Z | 2022-03-22T15:45:08.000Z | pysteps/visualization/spectral.py | leabeusch/pysteps | 5f162d4b1155e4cfd894c9635eed3f0e823adedd | [
"BSD-3-Clause"
] | 97 | 2018-07-12T12:05:45.000Z | 2022-03-31T14:56:31.000Z | # -*- coding: utf-8 -*-
"""
pysteps.visualization.spectral
==============================
Methods for plotting Fourier spectra.
.. autosummary::
:toctree: ../generated/
plot_spectrum1d
"""
import matplotlib.pylab as plt
import numpy as np
def plot_spectrum1d(
fft_freq,
fft_power... | 25.851485 | 84 | 0.571812 |
ae8b78672ba9cdc7f557488c13e42be940f3d387 | 1,744 | py | Python | starthinker/task/dcm_api/schema/mobileAppsListResponse.py | viohman/starthinker | 20bd2d7fd1e541eb8a2c9b7159941f667e22e38e | [
"Apache-2.0"
] | null | null | null | starthinker/task/dcm_api/schema/mobileAppsListResponse.py | viohman/starthinker | 20bd2d7fd1e541eb8a2c9b7159941f667e22e38e | [
"Apache-2.0"
] | 6 | 2021-03-19T12:00:18.000Z | 2022-02-10T09:43:42.000Z | starthinker/task/dcm_api/schema/mobileAppsListResponse.py | viohman/starthinker | 20bd2d7fd1e541eb8a2c9b7159941f667e22e38e | [
"Apache-2.0"
] | null | null | null | ###########################################################################
#
# Copyright 2019 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
#
# https://www.apache.org/... | 24.914286 | 75 | 0.491972 |
6b227df79c8bcbfb373c290f1831243e513f1b2c | 342 | py | Python | app/verify.py | altg0x0/mail_service | a16adc10fa91f9bf51689eb74e352a273de69b1e | [
"Unlicense"
] | null | null | null | app/verify.py | altg0x0/mail_service | a16adc10fa91f9bf51689eb74e352a273de69b1e | [
"Unlicense"
] | null | null | null | app/verify.py | altg0x0/mail_service | a16adc10fa91f9bf51689eb74e352a273de69b1e | [
"Unlicense"
] | null | null | null | from hashlib import sha512
import crypt
import base64
from hmac import compare_digest as constant_time_compare
def verify(password, encoded):
striped = encoded.replace('{SHA512-CRYPT}', '')
salt = striped[:19]
#print(password, crypt.crypt(password, salt))
return constant_time_compare(striped, crypt.cr... | 31.090909 | 71 | 0.751462 |
ae23f414a930cad7f71eda4feb7a420f8d281eb9 | 3,692 | py | Python | cloudmesh_client/shell/plugins/ClusterCommand.py | izelarabm/client | d257de3b5ded6714b7cb52765b4b7fd0bffecd0c | [
"Apache-2.0"
] | null | null | null | cloudmesh_client/shell/plugins/ClusterCommand.py | izelarabm/client | d257de3b5ded6714b7cb52765b4b7fd0bffecd0c | [
"Apache-2.0"
] | null | null | null | cloudmesh_client/shell/plugins/ClusterCommand.py | izelarabm/client | d257de3b5ded6714b7cb52765b4b7fd0bffecd0c | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
from cloudmesh_client.shell.command import command, PluginCommand, CloudPluginCommand
from cloudmesh_client.shell.console import Console
class ClusterCommand(PluginCommand, CloudPluginCommand):
topics = {"cluster": "notimplemented"}
def __init__(self, context):
s... | 42.436782 | 89 | 0.513814 |
04ff760fe28ba4ba265cb30fa692efd8a420986c | 1,478 | py | Python | dvclive/__init__.py | pmrowla/dvclive | fe95917c965db210a6a11ff3d6f287c2df298330 | [
"Apache-2.0"
] | null | null | null | dvclive/__init__.py | pmrowla/dvclive | fe95917c965db210a6a11ff3d6f287c2df298330 | [
"Apache-2.0"
] | null | null | null | dvclive/__init__.py | pmrowla/dvclive | fe95917c965db210a6a11ff3d6f287c2df298330 | [
"Apache-2.0"
] | null | null | null | from typing import Optional, Union
from dvclive.version import __version__ # noqa: F401
from .metrics import MetricLogger
_metric_logger: Optional[MetricLogger] = None
def init(
path: str = None, resume: bool = False, summary: bool = True,
) -> MetricLogger:
global _metric_logger # pylint: disable=global... | 27.886792 | 78 | 0.719892 |
f4b650695c3a6bd5732cf096a0d145ac6caf7ea4 | 8,425 | py | Python | Lib/site-packages/Cryptodome/SelfTest/Hash/test_CMAC.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 78 | 2017-08-19T03:46:13.000Z | 2020-02-19T04:29:45.000Z | Lib/site-packages/Cryptodome/SelfTest/Hash/test_CMAC.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 5 | 2017-08-21T16:33:08.000Z | 2018-06-21T18:37:18.000Z | Lib/site-packages/Cryptodome/SelfTest/Hash/test_CMAC.py | Kronos3/pyexec | c9e76a0302dee047ed137bc38aa669cec04c24cd | [
"bzip2-1.0.6"
] | 13 | 2017-08-19T16:46:08.000Z | 2018-11-05T23:11:34.000Z | #
# SelfTest/Hash/CMAC.py: Self-test for the CMAC module
#
# ===================================================================
#
# Copyright (c) 2014, Legrandin <helderijs@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided t... | 29.152249 | 83 | 0.629199 |
1948f230bc4601b419973340619a228fe0ceb85d | 654 | py | Python | app/db/models/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/db/models/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | app/db/models/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | """
Some mixins are not used:
mypy does not correctly work with mixins (SQLAlchemy) behaviour
as I expect (on moment of writing).
"""
from .auth import (
OAuthConnection,
RefreshSession
)
from .base import Base
from .entities import (
Tag,
User,
Vocab,
VocabTagsAssociation,
Word
)
... | 17.675676 | 67 | 0.46789 |
e5dd95476a7e379ffdc427fff8a843d261da88b6 | 10,096 | py | Python | docs/conf.py | franwe/spd_trading | e59965b67c2273ec6c0e07ee986932b1548c8f2f | [
"MIT"
] | 2 | 2021-04-28T09:39:51.000Z | 2021-10-22T03:11:15.000Z | docs/conf.py | franwe/spd_trading | e59965b67c2273ec6c0e07ee986932b1548c8f2f | [
"MIT"
] | null | null | null | docs/conf.py | franwe/spd_trading | e59965b67c2273ec6c0e07ee986932b1548c8f2f | [
"MIT"
] | 2 | 2021-05-12T08:21:15.000Z | 2021-12-07T17:05:58.000Z | # -*- coding: utf-8 -*-
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import os
impo... | 32.779221 | 117 | 0.702159 |
6499f11651d8c314668095085006dee89898178f | 1,070 | py | Python | nanome/api/macro/macro.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | nanome/api/macro/macro.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | nanome/api/macro/macro.py | rramji/nanome-lib | 2806598af31cfb4bb6e16366f0b300d2ddcc9c13 | [
"MIT"
] | null | null | null | import nanome
from nanome._internal._macro._macro import _Macro
class Macro(_Macro):
def __init__(self, title = "", logic = ""):
self.title = title
self.logic = logic
super(Macro, self).__init__()
@classmethod
def get_plugin_identifier(cls):
return _Macro._plugin_identifier... | 20.980392 | 49 | 0.614953 |
478f4e6fc935289c4d389895670797b95676ad53 | 8,545 | py | Python | tools/logger/modules/driver/driver_framer.py | ti-simplelink/swol | 331fd1096c643297505da010aff979f6c7baf02b | [
"BSD-3-Clause"
] | 5 | 2020-04-16T00:38:14.000Z | 2022-02-10T12:47:14.000Z | tools/logger/modules/driver/driver_framer.py | ti-simplelink/swol | 331fd1096c643297505da010aff979f6c7baf02b | [
"BSD-3-Clause"
] | null | null | null | tools/logger/modules/driver/driver_framer.py | ti-simplelink/swol | 331fd1096c643297505da010aff979f6c7baf02b | [
"BSD-3-Clause"
] | 1 | 2020-04-27T21:47:17.000Z | 2020-04-27T21:47:17.000Z | import sys
import os
import enum
from dataclasses import *
from swo.swo_framer import *
from wireshark_output.wireshark_output import *
from trace_db.trace_db import *
import logging
logger = logging.getLogger("Driver Framer")
driver_map = {
# Power driver
"PowerCC26X": "Power Driver",
"UARTCC26X": "UART ... | 43.156566 | 124 | 0.557753 |
0ff36593e86940dd5ebbf2bf4b2605e0f14432ca | 712 | py | Python | python-files/guess-number-game.py | chirumist/Python-Practice | fc7d6447ca492989221904121321aaf762bb6b43 | [
"MIT"
] | null | null | null | python-files/guess-number-game.py | chirumist/Python-Practice | fc7d6447ca492989221904121321aaf762bb6b43 | [
"MIT"
] | null | null | null | python-files/guess-number-game.py | chirumist/Python-Practice | fc7d6447ca492989221904121321aaf762bb6b43 | [
"MIT"
] | null | null | null | """
Guess number count start
"""
guesses = 8
numbers = [2, 4, 5, 6, 9]
guessCount = int(0)
print(numbers)
while guessCount <= guesses:
number = int(input("Guess number: \n"))
if number in numbers:
numbers.remove(number)
print("Remain number guess ", len(numbers))
print("remain guesses... | 22.25 | 71 | 0.592697 |
7d3c056ef71f5ddd76f4e51420cead9074b5333e | 5,284 | py | Python | names_oracle/__init__.py | leoli51/Names-Oracle | 7ebde812ceb5c1e08ad57805c384eab3cd5dcd75 | [
"MIT"
] | null | null | null | names_oracle/__init__.py | leoli51/Names-Oracle | 7ebde812ceb5c1e08ad57805c384eab3cd5dcd75 | [
"MIT"
] | null | null | null | names_oracle/__init__.py | leoli51/Names-Oracle | 7ebde812ceb5c1e08ad57805c384eab3cd5dcd75 | [
"MIT"
] | null | null | null | import os
from os import path
import importlib.resources
data_handle = importlib.resources.files(__package__).joinpath("data")
with data_handle as p:
data_path = p
# common tags
NAME_TAG = 'name'
# name tags
NAME_COUNT_TAG = 'first_name_frequency'
NAME_NORM_COUNT_TAG = 'first_name_norm_frequency'
MALE_COUNT_TAG... | 34.993377 | 128 | 0.667108 |
ec0634445ffa1e5372dee1d0937d780c23ca9ada | 276 | py | Python | header_tableau_materials.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | 17 | 2015-01-19T07:53:57.000Z | 2021-07-10T02:26:51.000Z | header_tableau_materials.py | qt911025/pw_module_system | dbd257e5231d16c47f17091a3ab18972be7687e5 | [
"BSD-3-Clause"
] | 1 | 2017-08-31T03:55:09.000Z | 2017-08-31T03:55:09.000Z | header_tableau_materials.py | qt911025/pw_module_system | dbd257e5231d16c47f17091a3ab18972be7687e5 | [
"BSD-3-Clause"
] | 14 | 2015-05-03T05:20:01.000Z | 2021-12-29T17:10:50.000Z | ###################################################
# header_tableau_materials.py
# This file contains declarations for tableau materials
# DO NOT EDIT THIS FILE!
###################################################
from header_common import *
from header_operations import *
| 30.666667 | 55 | 0.507246 |
ed1c987f0196566bd15bc8ce0dec4951c13917df | 456 | py | Python | fynance/algorithms/__init__.py | ArthurBernard/Fynance | efd9a2e6f8eddcff017d828972236312f6f24084 | [
"MIT"
] | 19 | 2018-12-13T18:52:51.000Z | 2021-09-03T00:33:47.000Z | fynance/algorithms/__init__.py | ArthurBernard/Fynance | efd9a2e6f8eddcff017d828972236312f6f24084 | [
"MIT"
] | null | null | null | fynance/algorithms/__init__.py | ArthurBernard/Fynance | efd9a2e6f8eddcff017d828972236312f6f24084 | [
"MIT"
] | 6 | 2019-05-31T16:51:51.000Z | 2021-07-29T21:31:25.000Z | #!/usr/bin/env python3
# coding: utf-8
# @Author: ArthurBernard
# @Email: arthur.bernard.92@gmail.com
# @Date: 2019-09-12 17:54:50
# @Last modified by: ArthurBernard
# @Last modified time: 2019-11-05 20:22:04
"""
.. currentmodule:: fynance.algorithms
.. toctree::
:maxdepth: 1
:caption: Contents:
algorithms... | 15.724138 | 42 | 0.699561 |
7b2b9b21854b098e3ff789530de0b843acad6f14 | 1,848 | py | Python | triage.py | Rafiot/viper-modules | 812642effecf8ae64bce76fa0f72116e0c2c81cd | [
"BSD-3-Clause"
] | 5 | 2019-12-20T09:42:41.000Z | 2021-04-30T07:05:00.000Z | triage.py | SubSpaceManeuvers/viper-modules | c8f19c6d4e0e976e2ad8730e0862c2250e3acdd5 | [
"BSD-3-Clause"
] | 7 | 2019-11-25T13:13:15.000Z | 2020-09-09T09:04:46.000Z | triage.py | SubSpaceManeuvers/viper-modules | c8f19c6d4e0e976e2ad8730e0862c2250e3acdd5 | [
"BSD-3-Clause"
] | 10 | 2019-11-20T04:57:51.000Z | 2021-01-21T18:51:47.000Z | # -*- coding: utf-8 -*-
# This file is part of Viper - https://github.com/viper-framework/viper
# See the file 'LICENSE' for copying permission.
from viper.common.abstracts import Module
from viper.core.database import Database
from viper.core.session import __sessions__
class Triage(Module):
cmd = 'triage'
... | 32.421053 | 93 | 0.589286 |
17f00b215265772a02d2780901dacca87ed9e147 | 15,653 | py | Python | pikachu/general.py | FriederikeBiermann/pikachu | 8eb5a71a34c70adde4c14ee3717e0b53f27d09a7 | [
"MIT"
] | null | null | null | pikachu/general.py | FriederikeBiermann/pikachu | 8eb5a71a34c70adde4c14ee3717e0b53f27d09a7 | [
"MIT"
] | null | null | null | pikachu/general.py | FriederikeBiermann/pikachu | 8eb5a71a34c70adde4c14ee3717e0b53f27d09a7 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import time
import os
import matplotlib.pyplot as plt
from pikachu.smiles.smiles import Smiles
from pikachu.errors import StructureError, ColourError
from pikachu.smiles.graph_to_smiles import GraphToSmiles
from pikachu.drawing.drawing import Drawer, Options, draw_multiple
from pikachu.drawing.... | 35.017897 | 116 | 0.660448 |
e290d2e1bc07488c84824e9d07c9e96254d127f2 | 1,313 | py | Python | spreadsplug/web/tasks.py | atomotic/spreads | 754a5b21ec6d1bf83bd0137195a468b387670d16 | [
"MIT"
] | 1 | 2019-05-03T11:58:10.000Z | 2019-05-03T11:58:10.000Z | spreadsplug/web/tasks.py | atomotic/spreads | 754a5b21ec6d1bf83bd0137195a468b387670d16 | [
"MIT"
] | null | null | null | spreadsplug/web/tasks.py | atomotic/spreads | 754a5b21ec6d1bf83bd0137195a468b387670d16 | [
"MIT"
] | null | null | null | import json
import logging
import shutil
import requests
from spreads.vendor.pathlib import Path
from spreadsplug.web import task_queue
from util import find_stick, mount_stick
from persistence import get_workflow, save_workflow
logger = logging.getLogger('spreadsplug.web.tasks')
@task_queue.task()
def transfer_to... | 34.552632 | 79 | 0.648134 |
033183e50b666ca55cb9873b046159b476b9aa2e | 857 | py | Python | badgyal/bgnet.py | kennyfrc/a0lite | a3b69ce6bc059be93c9b62fd7577360c07b98523 | [
"MIT"
] | null | null | null | badgyal/bgnet.py | kennyfrc/a0lite | a3b69ce6bc059be93c9b62fd7577360c07b98523 | [
"MIT"
] | null | null | null | badgyal/bgnet.py | kennyfrc/a0lite | a3b69ce6bc059be93c9b62fd7577360c07b98523 | [
"MIT"
] | null | null | null | import torch
import badgyal.model as model
import badgyal.net as proto_net
import badgyal.proto.net_pb2 as pb
import chess
from badgyal.board2planes import board2planes, policy2moves, bulk_board2planes
import pylru
import sys
import os.path
from badgyal import AbstractNet
CHANNELS=128
BLOCKS=10
SE=4
class BGNet(Abst... | 28.566667 | 103 | 0.719953 |
0e8ca831e7a1889f61f00351dfd6d8b37070c8a0 | 22,625 | py | Python | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | null | null | null | sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2017_03_30/aio/operations/_images_operations.py | vbarbaresi/azure-sdk-for-python | 397ba46c51d001ff89c66b170f5576cf8f49c05f | [
"MIT"
] | null | null | null | # 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 ... | 47.431866 | 181 | 0.658298 |
6e79ce60fde056c59046f3c2068ab627140a70f7 | 7,439 | py | Python | test_multiback.py | sirrah23/MultiBack | 1622075bbb936cdfeda461fee70119030382556e | [
"MIT"
] | null | null | null | test_multiback.py | sirrah23/MultiBack | 1622075bbb936cdfeda461fee70119030382556e | [
"MIT"
] | null | null | null | test_multiback.py | sirrah23/MultiBack | 1622075bbb936cdfeda461fee70119030382556e | [
"MIT"
] | null | null | null | import os
import shutil
from core import *
def setup_module():
os.mkdir("./test")
def create_file_with_content(fname, content=""):
with open(fname, "w+") as f:
f.write(content)
def teardown_module():
shutil.rmtree("./test")
class TestFileDirExist:
@classmethod
def setup_class(... | 33.509009 | 88 | 0.612851 |
08db42f0cd3bad6708f2b0d07a4e487302d54c4d | 752 | py | Python | Chapter14/Scripts/cartoframes_dataedit.py | monocilindro/Mastering-Geospatial-Analysis-with-Python | 2cee571403aa0d96f6c2eb7400792286a81dc7e9 | [
"MIT"
] | 64 | 2018-05-04T16:54:59.000Z | 2022-03-22T11:26:21.000Z | Chapter14/Scripts/cartoframes_dataedit.py | monocilindro/Mastering-Geospatial-Analysis-with-Python | 2cee571403aa0d96f6c2eb7400792286a81dc7e9 | [
"MIT"
] | 1 | 2020-05-31T00:45:28.000Z | 2020-05-31T18:29:07.000Z | Chapter14/Scripts/cartoframes_dataedit.py | monocilindro/Mastering-Geospatial-Analysis-with-Python | 2cee571403aa0d96f6c2eb7400792286a81dc7e9 | [
"MIT"
] | 41 | 2018-05-10T21:31:44.000Z | 2022-03-23T11:12:33.000Z | import geopandas as gdp
import cartoframes
import pandas as pd
APIKEY = "1353407a098fef50ec1b6324c437d6d52617b890"
cc = cartoframes.CartoContext(base_url='https://lokiintelligent.carto.com/',
api_key=APIKEY)
from shapely.geometry import Point
from shapely.wkb import loads
arenas_df = cc.read('arenas_nba')
shp... | 30.08 | 76 | 0.732713 |
68d0a1f51c3ba1c1a4111b878bf6d1d3fd04f873 | 7,007 | py | Python | mopidy/local/search.py | rzr/mopidy | f6556ffafce34aebbc43ca266f69ac0068edc31d | [
"Apache-2.0"
] | 2 | 2015-07-09T09:36:26.000Z | 2019-10-05T04:13:19.000Z | mopidy/local/search.py | rzr/mopidy | f6556ffafce34aebbc43ca266f69ac0068edc31d | [
"Apache-2.0"
] | 1 | 2015-01-05T10:40:38.000Z | 2015-03-21T15:42:16.000Z | mopidy/local/search.py | rzr/mopidy | f6556ffafce34aebbc43ca266f69ac0068edc31d | [
"Apache-2.0"
] | 1 | 2019-10-05T04:13:10.000Z | 2019-10-05T04:13:10.000Z | from __future__ import unicode_literals
from mopidy.models import Album, SearchResult
def find_exact(tracks, query=None, uris=None):
# TODO Only return results within URI roots given by ``uris``
if query is None:
query = {}
_validate_query(query)
for (field, values) in query.iteritems():
... | 38.712707 | 78 | 0.524761 |
c5e424b16a0ab89f825443d5065ddea96d29e3f1 | 5,483 | py | Python | examples/MultiServer/gross_te43.py | peterlharding/PDQ | b6ff8dd958dbae85b4402745539898b711760713 | [
"MIT"
] | 5 | 2015-08-12T16:22:11.000Z | 2019-06-05T05:57:35.000Z | examples/MultiServer/gross_te43.py | peterlharding/PDQ | b6ff8dd958dbae85b4402745539898b711760713 | [
"MIT"
] | null | null | null | examples/MultiServer/gross_te43.py | peterlharding/PDQ | b6ff8dd958dbae85b4402745539898b711760713 | [
"MIT"
] | 3 | 2018-03-12T12:25:28.000Z | 2019-06-05T05:57:44.000Z | #!/usr/bin/env python
###############################################################################
# Copyright (C) 1994 - 2007, Performance Dynamics Company #
# #
# This software is licensed as described in the file ... | 38.342657 | 109 | 0.52526 |
97f395bac308df779ed8ffaf65c6a987838fc46b | 24,424 | py | Python | bin/basenji_motifs.py | polyaB/basenji | 53949cade0966c25fc946761d55092e1851b6908 | [
"Apache-2.0"
] | null | null | null | bin/basenji_motifs.py | polyaB/basenji | 53949cade0966c25fc946761d55092e1851b6908 | [
"Apache-2.0"
] | null | null | null | bin/basenji_motifs.py | polyaB/basenji | 53949cade0966c25fc946761d55092e1851b6908 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright 2020 Calico LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | 30.722013 | 105 | 0.598796 |
cc003bdaa9004be119e24938c3f5502de2563b0f | 347 | py | Python | devscripts/import_all.py | RealNethical/python3-android | 203247f3adaee49fb867c2dbe07704443f043e31 | [
"0BSD"
] | 75 | 2015-11-26T13:20:04.000Z | 2022-03-31T04:02:19.000Z | devscripts/import_all.py | HACKKIMSE/python3-android | a3f6c420ecf91e330a78506edd30a5e37217d1a0 | [
"WTFPL"
] | 48 | 2017-05-18T17:18:52.000Z | 2022-02-25T12:36:01.000Z | devscripts/import_all.py | HACKKIMSE/python3-android | a3f6c420ecf91e330a78506edd30a5e37217d1a0 | [
"WTFPL"
] | 29 | 2016-08-26T09:36:49.000Z | 2022-03-01T02:14:12.000Z | import sys
import os.path
mod_path = os.path.join(
sys.prefix,
'lib/python%d.%d/lib-dynload' % (sys.version_info[0], sys.version_info[1]))
for mod_filename in os.listdir(mod_path):
mod_name = mod_filename.split('.')[0]
try:
mod = __import__(mod_name)
except ImportError as e:
print(... | 23.133333 | 79 | 0.645533 |
318fe1f115b34b5bf50fc46bc7dd5d7cbdaf276b | 2,645 | py | Python | tests/unit/docs/test_client.py | ScriptSmith/boto3 | 3dfa3d7d5eeb9649243a4e2a43c1e78501872ae7 | [
"Apache-2.0"
] | 1 | 2019-04-19T07:11:42.000Z | 2019-04-19T07:11:42.000Z | tests/unit/docs/test_client.py | ScriptSmith/boto3 | 3dfa3d7d5eeb9649243a4e2a43c1e78501872ae7 | [
"Apache-2.0"
] | null | null | null | tests/unit/docs/test_client.py | ScriptSmith/boto3 | 3dfa3d7d5eeb9649243a4e2a43c1e78501872ae7 | [
"Apache-2.0"
] | 2 | 2020-04-14T17:26:55.000Z | 2020-06-19T18:40:47.000Z | # Copyright 2015 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://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | 39.477612 | 73 | 0.519093 |
14e969147889319f74087b8fd552750a7ee53edd | 1,405 | py | Python | setup.py | zoidbergwill/RegistroBR | c867d7e17692471a2c3ec38fbfbd449112d63d03 | [
"BSD-2-Clause"
] | 1 | 2017-04-30T06:33:23.000Z | 2017-04-30T06:33:23.000Z | setup.py | zoidbergwill/RegistroBR | c867d7e17692471a2c3ec38fbfbd449112d63d03 | [
"BSD-2-Clause"
] | null | null | null | setup.py | zoidbergwill/RegistroBR | c867d7e17692471a2c3ec38fbfbd449112d63d03 | [
"BSD-2-Clause"
] | null | null | null | import os
from setuptools import setup
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.... | 36.025641 | 79 | 0.654093 |
6466fa7b9551be75d7514d499bd348b08ed0e6b3 | 1,272 | py | Python | websockify/setup.py | rgschmitz1/BioDepot-workflow-builder | f74d904eeaf91ec52ec9b703d9fb38e9064e5a66 | [
"MIT"
] | 54 | 2017-01-08T17:21:49.000Z | 2021-11-02T08:46:07.000Z | websockify/setup.py | Synthia-3/BioDepot-workflow-builder | 4ee93abe2d79465755e82a145af3b6a6e1e79fd4 | [
"MIT"
] | 22 | 2017-03-28T06:03:14.000Z | 2021-07-28T05:43:55.000Z | websockify/setup.py | Synthia-3/BioDepot-workflow-builder | 4ee93abe2d79465755e82a145af3b6a6e1e79fd4 | [
"MIT"
] | 21 | 2017-01-26T21:12:09.000Z | 2022-01-31T21:34:59.000Z | from setuptools import setup, find_packages
version = '0.9.0'
name = 'websockify'
long_description = open("README.md").read() + "\n" + \
open("CHANGES.txt").read() + "\n"
setup(name=name,
version=version,
description="Websockify.",
long_description=long_description,
long_description_conten... | 31.8 | 69 | 0.595126 |
f231c23980e358e7ad31e77472a7b65528b51fac | 14,297 | py | Python | third_party/maya/lib/usdMaya/testenv/testUsdExportRfMLight.py | dongyifan/USD | 61c6685d05d777a973539ba2a28f6f8deb5c042f | [
"Unlicense"
] | null | null | null | third_party/maya/lib/usdMaya/testenv/testUsdExportRfMLight.py | dongyifan/USD | 61c6685d05d777a973539ba2a28f6f8deb5c042f | [
"Unlicense"
] | null | null | null | third_party/maya/lib/usdMaya/testenv/testUsdExportRfMLight.py | dongyifan/USD | 61c6685d05d777a973539ba2a28f6f8deb5c042f | [
"Unlicense"
] | null | null | null | #!/pxrpythonsubst
#
# Copyright 2017 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
# Section 6. Trademarks. is deleted and replaced with:
#
... | 35.83208 | 84 | 0.671539 |
af32f5341c662cd64072c21c18c744de939a994a | 1,276 | py | Python | examples/client.py | desty2k/QtPyNetwork | 63e892370a0a1648646bdfed57fea9689d927494 | [
"MIT"
] | null | null | null | examples/client.py | desty2k/QtPyNetwork | 63e892370a0a1648646bdfed57fea9689d927494 | [
"MIT"
] | null | null | null | examples/client.py | desty2k/QtPyNetwork | 63e892370a0a1648646bdfed57fea9689d927494 | [
"MIT"
] | null | null | null | from qtpy.QtWidgets import QApplication
from qtpy.QtCore import QObject, Slot, QCoreApplication
import sys
import logging
from QtPyNetwork.client import QThreadedClient
IP = "127.0.0.1"
PORT = 12500
class Main(QObject):
def __init__(self):
super(Main, self).__init__(None)
def setup(self):
... | 24.538462 | 85 | 0.65047 |
ecb919dbda16a63eba609faa589766eff7668a1a | 3,062 | py | Python | TwitterFacebookAPI/TwitterAPI.py | AbdelrahmanTealab/SocialDataMiningTechniques_Assignment2 | 293b2585004853d6b6dae9d52e33fdae7bb6d894 | [
"Apache-2.0"
] | null | null | null | TwitterFacebookAPI/TwitterAPI.py | AbdelrahmanTealab/SocialDataMiningTechniques_Assignment2 | 293b2585004853d6b6dae9d52e33fdae7bb6d894 | [
"Apache-2.0"
] | null | null | null | TwitterFacebookAPI/TwitterAPI.py | AbdelrahmanTealab/SocialDataMiningTechniques_Assignment2 | 293b2585004853d6b6dae9d52e33fdae7bb6d894 | [
"Apache-2.0"
] | null | null | null | from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import tweepy
import time
import twitter_credentials
import json
import pandas
from pandas.io.json import json_normalize
import csv
class TweetStreamer():
def __init__(self):
self.dataframe ... | 45.701493 | 931 | 0.668844 |
6895962e8b184508b2e45cf403607b131de2554b | 408 | py | Python | build/path_planning/catkin_generated/pkg.develspace.context.pc.py | Tejal-19/Obstacle_avoidance-bot-using-ROS-and-GAZEBO | 91d9d366ff013623774efa24d9ad4be09d90b20b | [
"MIT"
] | null | null | null | build/path_planning/catkin_generated/pkg.develspace.context.pc.py | Tejal-19/Obstacle_avoidance-bot-using-ROS-and-GAZEBO | 91d9d366ff013623774efa24d9ad4be09d90b20b | [
"MIT"
] | null | null | null | build/path_planning/catkin_generated/pkg.develspace.context.pc.py | Tejal-19/Obstacle_avoidance-bot-using-ROS-and-GAZEBO | 91d9d366ff013623774efa24d9ad4be09d90b20b | [
"MIT"
] | null | null | null | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "path_planning"
PROJECT_SPACE_DIR = "/... | 45.333333 | 83 | 0.718137 |
5797fb95142f556bade163051f4f51a40e32cda7 | 2,697 | py | Python | youtube_dl/extractor/carambatv.py | LyleH/youtube-dl | 7564b09ef5c09454908f78cb91c3bd2d6daacac5 | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/carambatv.py | LyleH/youtube-dl | 7564b09ef5c09454908f78cb91c3bd2d6daacac5 | [
"Unlicense"
] | null | null | null | youtube_dl/extractor/carambatv.py | LyleH/youtube-dl | 7564b09ef5c09454908f78cb91c3bd2d6daacac5 | [
"Unlicense"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
float_or_none,
int_or_none,
try_get,
)
class CarambaTVIE(InfoExtractor):
_VALID_URL = r'(?:carambatv:|https?://video1\.carambatv\.ru/v/)(?P<id>\d+)'
_TES... | 30.303371 | 86 | 0.539488 |
c68e6ec4bee5667cf629efa3fbaca052f6f0d8e0 | 385 | py | Python | api/next/wsgi.py | UilSiqueira/django-rest-api | 1a91a80f32b73ecebf3ac5f7a1c87c45e67832ea | [
"MIT"
] | null | null | null | api/next/wsgi.py | UilSiqueira/django-rest-api | 1a91a80f32b73ecebf3ac5f7a1c87c45e67832ea | [
"MIT"
] | null | null | null | api/next/wsgi.py | UilSiqueira/django-rest-api | 1a91a80f32b73ecebf3ac5f7a1c87c45e67832ea | [
"MIT"
] | null | null | null | """
WSGI config for next project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS... | 22.647059 | 78 | 0.781818 |
601f54d1983a09cf4417a2783ceae01f82fa817b | 3,162 | py | Python | feed_hunter/feed_hunter/settings.py | perna/feed-hunter | e7649d091095797d0869101a418b71cf83a25708 | [
"MIT"
] | 4 | 2018-05-03T20:53:13.000Z | 2021-03-15T05:29:36.000Z | feed_hunter/feed_hunter/settings.py | perna/feed-hunter | e7649d091095797d0869101a418b71cf83a25708 | [
"MIT"
] | 3 | 2021-03-31T18:41:33.000Z | 2022-02-11T03:39:00.000Z | feed_hunter/feed_hunter/settings.py | perna/feed-hunter | e7649d091095797d0869101a418b71cf83a25708 | [
"MIT"
] | 1 | 2018-06-30T13:57:40.000Z | 2018-06-30T13:57:40.000Z | # -*- coding: utf-8 -*-
# Scrapy settings for feed_hunter project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/la... | 34.747253 | 109 | 0.781467 |
c2a9dd0489266d5354e48dff421fbd2f32d66990 | 3,577 | py | Python | bindings/python/ensmallen/datasets/string/methanomassiliicoccalesarchaeonrumenm2.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 5 | 2021-02-17T00:44:45.000Z | 2021-08-09T16:41:47.000Z | bindings/python/ensmallen/datasets/string/methanomassiliicoccalesarchaeonrumenm2.py | AnacletoLAB/ensmallen_graph | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 18 | 2021-01-07T16:47:39.000Z | 2021-08-12T21:51:32.000Z | bindings/python/ensmallen/datasets/string/methanomassiliicoccalesarchaeonrumenm2.py | AnacletoLAB/ensmallen | b2c1b18fb1e5801712852bcc239f239e03076f09 | [
"MIT"
] | 3 | 2021-01-14T02:20:59.000Z | 2021-08-04T19:09:52.000Z | """
This file offers the methods to automatically retrieve the graph Methanomassiliicoccales archaeon RumEn M2.
The graph is automatically retrieved from the STRING repository.
References
---------------------
Please cite the following if you use the data:
```bib
@article{szklarczyk2019string,
title={STRING v1... | 34.066667 | 223 | 0.685491 |
e9c52578cceebabb33befac2b6da72db513e7d8e | 350,531 | py | Python | Python/isp-load-statistics.py | perara/gotham | dc1335a6ece1be8c0771d3474061d44b19810fa8 | [
"Unlicense",
"MIT"
] | null | null | null | Python/isp-load-statistics.py | perara/gotham | dc1335a6ece1be8c0771d3474061d44b19810fa8 | [
"Unlicense",
"MIT"
] | null | null | null | Python/isp-load-statistics.py | perara/gotham | dc1335a6ece1be8c0771d3474061d44b19810fa8 | [
"Unlicense",
"MIT"
] | null | null | null | [{"countryCode": "US", "test_count": "10413572", "ip_addresses": "94920788", "country": "United States", "isps": [{"ip_addresses": "3108448", "label": "Verizon FiOS", "test_count": "485520", "aggregate_date": "2015-05-01", "id": "79831", "index_value": "44582", "rating": "3.8"}, {"ip_addresses": "17247314", "label": "C... | 350,531 | 350,531 | 0.623146 |
1ddc0d0da443fee6b7d4987a8c52f0d1e2d9a26f | 21,443 | py | Python | crabageprediction/venv/Lib/site-packages/sklearn/cross_decomposition/tests/test_pls.py | 13rianlucero/CrabAgePrediction | 92bc7fbe1040f49e820473e33cc3902a5a7177c7 | [
"MIT"
] | 5 | 2022-01-05T00:41:46.000Z | 2022-03-21T07:22:58.000Z | crabageprediction/venv/Lib/site-packages/sklearn/cross_decomposition/tests/test_pls.py | 13rianlucero/CrabAgePrediction | 92bc7fbe1040f49e820473e33cc3902a5a7177c7 | [
"MIT"
] | 3 | 2022-03-18T06:16:45.000Z | 2022-03-23T14:26:58.000Z | crabageprediction/venv/Lib/site-packages/sklearn/cross_decomposition/tests/test_pls.py | 13rianlucero/CrabAgePrediction | 92bc7fbe1040f49e820473e33cc3902a5a7177c7 | [
"MIT"
] | 3 | 2020-08-04T02:48:32.000Z | 2020-08-17T01:20:09.000Z | import pytest
import numpy as np
from numpy.testing import assert_array_almost_equal, assert_array_equal, assert_allclose
from sklearn.datasets import load_linnerud
from sklearn.cross_decomposition._pls import (
_center_scale_xy,
_get_first_singular_vectors_power_method,
_get_first_singular_vectors_svd,
... | 35.268092 | 88 | 0.661102 |
0144c9c630010faf2c603a3a314d2ace17f530de | 2,121 | py | Python | StatsFasta.py | Siddhi-Nargund/Biological-File-Format | 3ead1dd8883e96404f76ceeab5ff5be01b7f6be5 | [
"MIT"
] | null | null | null | StatsFasta.py | Siddhi-Nargund/Biological-File-Format | 3ead1dd8883e96404f76ceeab5ff5be01b7f6be5 | [
"MIT"
] | null | null | null | StatsFasta.py | Siddhi-Nargund/Biological-File-Format | 3ead1dd8883e96404f76ceeab5ff5be01b7f6be5 | [
"MIT"
] | null | null | null | #/usr/bin/python3
#!/usr/bin/env python3
import argparse
import re
import os
import gzip
import shutil
parser = argparse.ArgumentParser(description='Enter File name with location')
parser.add_argument('--file', type=str,dest="filepaths")
parser.add_argument('--output',type=str,dest="outputFileName")
args = parser.par... | 26.848101 | 87 | 0.70297 |
6e203e8ac1777267bd68ea8fa7d1330a501ad551 | 2,644 | py | Python | basicsr/archs/memnet_arch.py | jungheil/BasicSR | 95642e745690523918788a8b3d20c381af6780c8 | [
"Apache-2.0"
] | null | null | null | basicsr/archs/memnet_arch.py | jungheil/BasicSR | 95642e745690523918788a8b3d20c381af6780c8 | [
"Apache-2.0"
] | null | null | null | basicsr/archs/memnet_arch.py | jungheil/BasicSR | 95642e745690523918788a8b3d20c381af6780c8 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from basicsr.utils.registry import ARCH_REGISTRY
@ARCH_REGISTRY.register()
class MemNet(nn.Module):
def __init__(self, in_channels=3, channels=64, num_memblock=6, num_resblock=6):
super(MemNet, self).__... | 33.897436 | 116 | 0.647504 |
ec8128151a8654fbb08c21e8dd8826f1083831b8 | 537 | py | Python | atlantisbot_api/api/permissions.py | johnvictorfs/atlantisbot-api | 1a00ae33497b5c5bf51d7bac154e96d4d9ab534b | [
"MIT"
] | null | null | null | atlantisbot_api/api/permissions.py | johnvictorfs/atlantisbot-api | 1a00ae33497b5c5bf51d7bac154e96d4d9ab534b | [
"MIT"
] | null | null | null | atlantisbot_api/api/permissions.py | johnvictorfs/atlantisbot-api | 1a00ae33497b5c5bf51d7bac154e96d4d9ab534b | [
"MIT"
] | null | null | null | from rest_framework.permissions import SAFE_METHODS, BasePermission
class AdminOrReadOnly(BasePermission):
"""
Allows any safe method for anyone (read-only)
Allows any method for Admins and Superusers
"""
def has_permission(self, request, view):
return request.method in SAFE_METHODS or r... | 24.409091 | 99 | 0.726257 |
ab9532b00243ae2b3105ff273ce050bf3b845907 | 2,559 | py | Python | epiocms/main.py | ojii/django-cms-epio-quickstart | 359d655dd1157bd416b50f9d07ac0785391bcd5e | [
"BSD-3-Clause"
] | 2 | 2016-03-01T22:15:57.000Z | 2016-07-17T18:09:33.000Z | epiocms/main.py | ojii/django-cms-epio-quickstart | 359d655dd1157bd416b50f9d07ac0785391bcd5e | [
"BSD-3-Clause"
] | null | null | null | epiocms/main.py | ojii/django-cms-epio-quickstart | 359d655dd1157bd416b50f9d07ac0785391bcd5e | [
"BSD-3-Clause"
] | null | null | null | from __future__ import with_statement
import os
import shutil
import subprocess
import sys
EPIO_APP_NOT_FOUND = 1
SUBPROCESS_FAILED = 2
DATA_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), 'data'))
def _run_command(bits):
process = subprocess.Popen(bits, stdout=subprocess.PIPE,
... | 41.95082 | 95 | 0.655725 |
4f17c4914f4ef202cad6bb1b14caf5ed6b000622 | 107 | py | Python | enthought/plugins/remote_editor/actions.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/plugins/remote_editor/actions.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/plugins/remote_editor/actions.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from __future__ import absolute_import
from envisage.plugins.remote_editor.actions import *
| 26.75 | 52 | 0.850467 |
4f79547fa20d6ec2e547b60c24d310d47b40ade0 | 4,576 | py | Python | data/korean.py | hccho2/Korean-FastSpeech2-Pytorch | 9b8f09021474fd99c4766b66cccf23c7ecdd9258 | [
"MIT"
] | 1 | 2020-08-21T02:05:40.000Z | 2020-08-21T02:05:40.000Z | data/korean.py | hccho2/Korean-FastSpeech2-Pytorch | 9b8f09021474fd99c4766b66cccf23c7ecdd9258 | [
"MIT"
] | null | null | null | data/korean.py | hccho2/Korean-FastSpeech2-Pytorch | 9b8f09021474fd99c4766b66cccf23c7ecdd9258 | [
"MIT"
] | 1 | 2020-08-21T02:05:41.000Z | 2020-08-21T02:05:41.000Z | import numpy as np
import os
import tgt
from scipy.io.wavfile import read
import pyworld as pw
import torch
import audio as Audio
from utils import get_alignment
import hparams as hp
from jamo import h2j
import codecs
def prepare_align(in_dir, meta):
with open(os.path.join(in_dir, meta), encoding='utf-8') as f:
... | 37.203252 | 130 | 0.607299 |
2eb7e4aec9f2e49e2a93f4e9217e098e25e3ce37 | 9,488 | py | Python | GTSRB/VI/Train.py | matthewwicker/StatisticalGuarenteesForBNNs | 1f585636c152b8489e331641c743ff628c2b7cc7 | [
"BSD-3-Clause"
] | 13 | 2019-03-09T21:31:10.000Z | 2022-03-14T13:51:09.000Z | GTSRB/VI/Train.py | matthewwicker/StatisticalGuarenteesForBNNs | 1f585636c152b8489e331641c743ff628c2b7cc7 | [
"BSD-3-Clause"
] | null | null | null | GTSRB/VI/Train.py | matthewwicker/StatisticalGuarenteesForBNNs | 1f585636c152b8489e331641c743ff628c2b7cc7 | [
"BSD-3-Clause"
] | null | null | null |
# coding: utf-8
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras.utils import np_utils
from keras.models import model_from_json
import pickle
import numpy as np
import matplotlib.pyplot as plt
import cv2
import p... | 29.65 | 117 | 0.672639 |
28a0dbab8aba79b5861405178db3f4c9962dfb27 | 1,576 | py | Python | tests/links_tests/array_tests/test_shape_transformer_to_2d.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 184 | 2019-11-27T12:59:01.000Z | 2022-03-29T19:18:54.000Z | tests/links_tests/array_tests/test_shape_transformer_to_2d.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 21 | 2019-12-08T01:53:33.000Z | 2020-10-23T01:19:56.000Z | tests/links_tests/array_tests/test_shape_transformer_to_2d.py | pfnet/chainerchem | efe323aa21f63a815130d673781e7cca1ccb72d2 | [
"MIT"
] | 45 | 2019-11-28T09:59:54.000Z | 2022-02-07T02:42:46.000Z | import numpy
import pytest
from chainer_chemistry.links.array.shape_transformer_to_2d import ShapeTransformerTo2D # NOQA
@pytest.mark.parametrize('axis', [0, 1, -1])
def test_shape_transformer_2d_2d_array(axis):
st = ShapeTransformerTo2D(axis=axis)
x = numpy.arange(6).reshape((2, 3))
xt = st.transform(x... | 30.901961 | 94 | 0.607234 |
6ebe623d5e71ccfc2df0d5d99653224fcfa79c38 | 1,817 | py | Python | tensorflow/python/ops/rnn_grad.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/ops/rnn_grad.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | tensorflow/python/ops/rnn_grad.py | uve/tensorflow | e08079463bf43e5963acc41da1f57e95603f8080 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 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... | 34.283019 | 81 | 0.636764 |
086f84f6eae948965ee5022a04f917e450458d66 | 9,942 | py | Python | Old/pickleshare.py | cbates8/CompostMonitoringSystem | 765fbf60e3d684c83c8fda6d9f18b5de2b7e03ab | [
"MIT"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | Old/pickleshare.py | cbates8/CompostMonitoringSystem | 765fbf60e3d684c83c8fda6d9f18b5de2b7e03ab | [
"MIT"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | Old/pickleshare.py | cbates8/CompostMonitoringSystem | 765fbf60e3d684c83c8fda6d9f18b5de2b7e03ab | [
"MIT"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | #!/usr/bin/env python
""" PickleShare - a small 'shelve' like datastore with concurrency support
Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike
shelve, many processes can access the database simultaneously. Changing a
value in database is immediately visible to other processes accessing the... | 28.164306 | 114 | 0.565379 |
ec3eb2a75093130cf7b36ef072b42779369b54ff | 2,702 | py | Python | save_model.py | gaowei0518/tensorflow-yolov4-tflite | fe4e0ffc1f3fc93dd8ba170de75c75dd5dbbda0c | [
"MIT"
] | null | null | null | save_model.py | gaowei0518/tensorflow-yolov4-tflite | fe4e0ffc1f3fc93dd8ba170de75c75dd5dbbda0c | [
"MIT"
] | null | null | null | save_model.py | gaowei0518/tensorflow-yolov4-tflite | fe4e0ffc1f3fc93dd8ba170de75c75dd5dbbda0c | [
"MIT"
] | null | null | null | import tensorflow as tf
from absl import app, flags, logging
from absl.flags import FLAGS
from core.yolov4 import YOLO, decode, filter_boxes
import core.utils as utils
from core.config import cfg
flags.DEFINE_string('weights', './data/yolov4.weights', 'path to weights file')
flags.DEFINE_string('output', './checkpoint... | 43.580645 | 155 | 0.714656 |
00057fc627262f47aae65cefe6bb7a2dc3dd6424 | 5,469 | py | Python | conf.py | fernet-ws/docs | 3e2dbe79453739d5d430cb43aeed24ff4a4e6fe3 | [
"MIT"
] | null | null | null | conf.py | fernet-ws/docs | 3e2dbe79453739d5d430cb43aeed24ff4a4e6fe3 | [
"MIT"
] | null | null | null | conf.py | fernet-ws/docs | 3e2dbe79453739d5d430cb43aeed24ff4a4e6fe3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | 29.722826 | 79 | 0.642896 |
850eb7d86567d2f3fdee44fcc1de5f516cc6c24e | 7,196 | py | Python | official/vision/image_classification/configs/base_configs.py | vishal2612200/models | fc02382c9f2ffa58dbd2541b62bcfdaf23fc631e | [
"Apache-2.0"
] | 2 | 2020-03-31T18:54:04.000Z | 2020-03-31T18:54:08.000Z | official/vision/image_classification/configs/base_configs.py | yajinwuzl/models | 01d1931f6a2f09c93dd1a007c33af8d1a902eff7 | [
"Apache-2.0"
] | 1 | 2020-03-30T06:12:11.000Z | 2020-03-30T06:12:11.000Z | official/vision/image_classification/configs/base_configs.py | yajinwuzl/models | 01d1931f6a2f09c93dd1a007c33af8d1a902eff7 | [
"Apache-2.0"
] | null | null | null | # Lint as: python3
# Copyright 2019 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 ... | 32.125 | 80 | 0.731101 |
dd88754ab4da30218ec590d26fe703b13b673051 | 6,289 | py | Python | peppercompiler/design/spurious_design.py | DNA-and-Natural-Algorithms-Group/peppercompiler | effbcdedfb17534300fb3504a552e46c1ead41e4 | [
"MIT"
] | 3 | 2019-06-10T18:44:03.000Z | 2021-11-17T10:57:09.000Z | peppercompiler/design/spurious_design.py | DNA-and-Natural-Algorithms-Group/peppercompiler | effbcdedfb17534300fb3504a552e46c1ead41e4 | [
"MIT"
] | 2 | 2017-12-15T01:09:49.000Z | 2021-03-25T20:42:23.000Z | peppercompiler/design/spurious_design.py | DNA-and-Natural-Algorithms-Group/peppercompiler | effbcdedfb17534300fb3504a552e46c1ead41e4 | [
"MIT"
] | 4 | 2017-08-21T03:32:51.000Z | 2019-10-18T04:09:38.000Z | #!/usr/bin/env python
"""
Designs sequences using Winfree's SpuriousDesign/spuriousSSM algorithm.
Uses PIL input and Zadeh's .mfe output formats for compatibility with compiler.
"""
import os
import string
import subprocess
import sys
from .constraint_load import Convert
from ..utils import error
DEBUG = False
de... | 37.434524 | 219 | 0.682461 |
fafcf727c8c4fb6b54aa6e5ceb3f87cb6844313e | 71 | py | Python | pythonium/debugger.py | cacrespo/pythonium | 74cc5d4333212adfb6eedade8fcd8dfe86d221d5 | [
"MIT"
] | 13 | 2020-12-05T23:05:39.000Z | 2022-03-29T22:43:33.000Z | pythonium/debugger.py | cacrespo/pythonium | 74cc5d4333212adfb6eedade8fcd8dfe86d221d5 | [
"MIT"
] | 40 | 2020-10-28T22:16:18.000Z | 2022-03-26T22:50:37.000Z | pythonium/debugger.py | cacrespo/pythonium | 74cc5d4333212adfb6eedade8fcd8dfe86d221d5 | [
"MIT"
] | 6 | 2022-03-24T18:47:27.000Z | 2022-03-27T16:05:46.000Z | import os
def terminate():
os.system("kill -9 %d" % os.getpid())
| 11.833333 | 41 | 0.591549 |
b6493ee37e9cf46d40197086739a2dea4a9ac655 | 464 | py | Python | bbywebsite.py | elithaxxor/gpu_scraper | 065f33facadaf0bce9e6b5a4b95d1895b340058f | [
"MIT"
] | null | null | null | bbywebsite.py | elithaxxor/gpu_scraper | 065f33facadaf0bce9e6b5a4b95d1895b340058f | [
"MIT"
] | null | null | null | bbywebsite.py | elithaxxor/gpu_scraper | 065f33facadaf0bce9e6b5a4b95d1895b340058f | [
"MIT"
] | null | null | null | URL00= "https://www.bestbuy.com/identity/signin?token=tid%3A0f8e7941-289b-11ec-a2b7-06d188f825e106d188f825e1LEAR"
URL01 = "https://www.bestbuy.com/site/nvidia-geforce-rtx-3070-8gb-gddr6-pci-express-4-0-graphics-card-dark-platinum-and-black/6429442.p?skuId=6429442"
URL02= "https://www.bestbuy.com/site/gigabyte-geforce-r... | 46.4 | 150 | 0.784483 |
27b2f7802b306a03eb7383c046b1f1903f6736a2 | 7,763 | py | Python | python/_bonedeform_fix.py | khanghugo/PMX-VMD-Scripting-Tools | bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b | [
"MIT"
] | null | null | null | python/_bonedeform_fix.py | khanghugo/PMX-VMD-Scripting-Tools | bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b | [
"MIT"
] | null | null | null | python/_bonedeform_fix.py | khanghugo/PMX-VMD-Scripting-Tools | bc978e7f8685ba39c2682aed6bb06bbe53f5bb4b | [
"MIT"
] | null | null | null | # Nuthouse01 - 08/24/2020 - v5.00
# This code is free to use and re-distribute, but I cannot be held responsible for damages that it may or may not cause.
#####################
# second, wrap custom imports with a try-except to catch it if files are missing
try:
from . import nuthouse01_core as core
from . import nu... | 40.222798 | 185 | 0.729357 |
b68cfb7d6f6e33e06a0308f040cc345a1e2b8a8a | 8,284 | py | Python | bot.py | lukebemish/DiceRollApp | b8d037321e540d47ca4e0b34ded3d6f8f2a08cb4 | [
"MIT"
] | null | null | null | bot.py | lukebemish/DiceRollApp | b8d037321e540d47ca4e0b34ded3d6f8f2a08cb4 | [
"MIT"
] | null | null | null | bot.py | lukebemish/DiceRollApp | b8d037321e540d47ca4e0b34ded3d6f8f2a08cb4 | [
"MIT"
] | null | null | null | # bot.py
import os
import discord
from dotenv import load_dotenv
import re
import random
load_dotenv(dotenv_path=".envvars")
TOKEN = os.getenv('DISCORD_TOKEN')
client = discord.Client()
inc_form_mess = 'Input is in incorrect format, somewhere near "'
listen_val = "!r "
explode_val = "!rd "
def g... | 42.482051 | 162 | 0.360092 |
458a33783bf849858950d34a0188759ba629bc6a | 24,427 | py | Python | seqpos/lib/python2.7/site-packages/hgext/largefiles/lfutil.py | guanjue/seqpos | ab9308ad128547ca968a1d944490710e583703bc | [
"MIT"
] | null | null | null | seqpos/lib/python2.7/site-packages/hgext/largefiles/lfutil.py | guanjue/seqpos | ab9308ad128547ca968a1d944490710e583703bc | [
"MIT"
] | null | null | null | seqpos/lib/python2.7/site-packages/hgext/largefiles/lfutil.py | guanjue/seqpos | ab9308ad128547ca968a1d944490710e583703bc | [
"MIT"
] | null | null | null | # Copyright 2009-2010 Gregory P. Ward
# Copyright 2009-2010 Intelerad Medical Systems Incorporated
# Copyright 2010-2011 Fog Creek Software
# Copyright 2010-2011 Unity Technologies
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
'... | 36.134615 | 79 | 0.631842 |
9ad806fc3f6f31821609ade103f4dabc8f82b55a | 5,081 | py | Python | tests/spec/test_enum.py | recht/thriftrw-python | aad5ee4e9ca21fe59c9bea479465615ef3825dec | [
"MIT"
] | null | null | null | tests/spec/test_enum.py | recht/thriftrw-python | aad5ee4e9ca21fe59c9bea479465615ef3825dec | [
"MIT"
] | null | null | null | tests/spec/test_enum.py | recht/thriftrw-python | aad5ee4e9ca21fe59c9bea479465615ef3825dec | [
"MIT"
] | null | null | null | # Copyright (c) 2016 Uber Technologies, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publ... | 29.540698 | 79 | 0.650659 |
bb6cb7e77c65b3f45b9cf04ef0666e6eb28fa97a | 674 | py | Python | ops/culldeslack/culldeslack.py | unchaoss/unchaoss | a55b440fea9bf574f670d2a545e820275025d509 | [
"Apache-2.0"
] | null | null | null | ops/culldeslack/culldeslack.py | unchaoss/unchaoss | a55b440fea9bf574f670d2a545e820275025d509 | [
"Apache-2.0"
] | null | null | null | ops/culldeslack/culldeslack.py | unchaoss/unchaoss | a55b440fea9bf574f670d2a545e820275025d509 | [
"Apache-2.0"
] | null | null | null | __author__ = 'chitrabhanu'
import csv
import os, stat
import sys
import datetime
import time
import json
USAGE_ERROR_PREFIX = "USAGE ERROR: "
RUNTIME_ERROR_PREFIX = "RUNTIME ERROR: "
class UsageError(Exception):
def __init__(self, msg):
self.msg = USAGE_ERROR_PREFIX + msg
class RuntimeError(Exception):... | 17.282051 | 72 | 0.675074 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.