hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07915aac7804509d8daa27f0a06836f1ec42314d | 739 | py | Python | src/sentry/api/endpoints/project_tags.py | seukjung/sentry-custom | c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963 | [
"BSD-3-Clause"
] | 1 | 2021-08-10T06:07:13.000Z | 2021-08-10T06:07:13.000Z | src/sentry/api/endpoints/project_tags.py | fotinakis/sentry | c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c | [
"BSD-3-Clause"
] | 8 | 2019-12-28T23:49:55.000Z | 2022-03-02T04:34:18.000Z | src/sentry/api/endpoints/project_tags.py | fotinakis/sentry | c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c | [
"BSD-3-Clause"
] | 1 | 2017-04-08T04:09:18.000Z | 2017-04-08T04:09:18.000Z | from __future__ import absolute_import
import six
from rest_framework.response import Response
from sentry.api.bases.project import ProjectEndpoint
from sentry.models import TagKey, TagKeyStatus
| 26.392857 | 64 | 0.626522 |
07919b5c6e89a71c84a3a15315c4e1b2767495ce | 871 | py | Python | examples/02 - callbacks/callbacks.py | TensorTom/async-Eel | d6484b6c5c9f89b64f5119d908fcdf29b173bd57 | [
"MIT"
] | 9 | 2019-06-17T22:11:01.000Z | 2021-08-30T17:36:13.000Z | examples/02 - callbacks/callbacks.py | TensorTom/async-Eel | d6484b6c5c9f89b64f5119d908fcdf29b173bd57 | [
"MIT"
] | 4 | 2020-08-17T18:39:21.000Z | 2021-08-29T02:54:23.000Z | examples/02 - callbacks/callbacks.py | TensorTom/async-Eel | d6484b6c5c9f89b64f5119d908fcdf29b173bd57 | [
"MIT"
] | 3 | 2020-02-27T03:40:05.000Z | 2021-03-09T11:52:32.000Z | from __future__ import print_function # For Py2/3 compatibility
import async_eel
import random
import asyncio
loop = asyncio.get_event_loop()
async def print_num(n):
"""callback of js_random"""
print('Got this from Javascript:', n)
if __name__ == '__main__':
asyncio.run_coroutine_threadsafe(main(), ... | 22.921053 | 85 | 0.686567 |
079304ab36eaaab974694a2714de62dfde9010a0 | 1,578 | py | Python | datacube/index/_api.py | AMA-AC/datacube-core | 0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d | [
"Apache-2.0"
] | 2 | 2019-10-24T15:29:54.000Z | 2019-10-24T15:29:58.000Z | datacube/index/_api.py | AMA-AC/datacube-core | 0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d | [
"Apache-2.0"
] | 2 | 2021-03-26T00:37:36.000Z | 2021-03-31T20:05:01.000Z | datacube/index/_api.py | PhilipeRLeal/datacube-core | 81bed714f2e5cb30a2492f1b0cf3397b79141c3a | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
"""
Access methods for indexing datasets & products.
"""
import logging
from datacube.config import LocalConfig
from datacube.drivers import index_driver_by_name, index_drivers
from .index import Index
_LOG = logging.getLogger(__name__)
def index_connect(local_config=None, application_name=None, val... | 35.863636 | 86 | 0.697085 |
079480b6c82dd74c78bc4155e46e5d2906c6b673 | 6,560 | py | Python | pgarchives/loader/load_message.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgarchives/loader/load_message.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | pgarchives/loader/load_message.py | WeilerWebServices/PostgreSQL | ae594ed077bebbad1be3c1d95c38b7c2c2683e8c | [
"PostgreSQL"
] | null | null | null | #!/usr/bin/env python3
#
# load_message.py - takes a single email or mbox formatted
# file on stdin or in a file and reads it into the database.
#
import os
import sys
from optparse import OptionParser
from configparser import ConfigParser
import psycopg2
from lib.storage import ArchivesParserStorage
from lib.mbox ... | 35.846995 | 150 | 0.594817 |
079486c9e4c55ef02a54afabc6964be8635f9540 | 860 | py | Python | shop/migrations/0009_auto_20200310_1430.py | manson800819/test | 6df7d92eababe76a54585cb8102a00a6d79ca467 | [
"MIT"
] | null | null | null | shop/migrations/0009_auto_20200310_1430.py | manson800819/test | 6df7d92eababe76a54585cb8102a00a6d79ca467 | [
"MIT"
] | null | null | null | shop/migrations/0009_auto_20200310_1430.py | manson800819/test | 6df7d92eababe76a54585cb8102a00a6d79ca467 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-03-10 14:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
| 27.741935 | 123 | 0.612791 |
079607c3763787747e103898caecb5035367fd71 | 1,351 | py | Python | lib/dataset/iNaturalist.py | jrcai/ACE | 1e2b04d1cf4bb517f107664ac489a1a96e95a4c1 | [
"MIT"
] | 18 | 2021-08-06T01:15:32.000Z | 2022-03-14T07:09:39.000Z | lib/dataset/iNaturalist.py | jrcai/BagofTricks-LT | d75b195367e3d535d316d134ec4bbef4bb7fcbdd | [
"MIT"
] | 2 | 2021-09-24T03:29:17.000Z | 2021-11-22T19:18:58.000Z | lib/dataset/iNaturalist.py | jrcai/BagofTricks-LT | d75b195367e3d535d316d134ec4bbef4bb7fcbdd | [
"MIT"
] | 2 | 2021-10-17T18:09:20.000Z | 2021-11-08T04:19:19.000Z | from dataset.baseset import BaseSet
import random, cv2
import numpy as np
| 32.95122 | 104 | 0.623982 |
079659eddea08dcb5566544e99167b54c9eb8c33 | 27,964 | py | Python | tests/test_conferences.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | tests/test_conferences.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | 80 | 2015-02-25T15:12:15.000Z | 2015-06-11T18:44:55.000Z | tests/test_conferences.py | mattclark/osf.io | 7a362ceb6af3393d3d0423aafef336ee13277303 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import mock
from nose.tools import * # noqa (PEP8 asserts)
import hmac
import hashlib
from StringIO import StringIO
from django.core.exceptions import ValidationError
from django.db import IntegrityError
import furl
from framework.auth import get_or_create_user
from framework.auth.core impo... | 36.506527 | 114 | 0.611357 |
079711a016ea4fa9510f792cc6a93c56f3a684e5 | 4,060 | py | Python | socket_tentacles/__init__.py | innovationgarage/socket-tentacles | 1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6 | [
"MIT"
] | null | null | null | socket_tentacles/__init__.py | innovationgarage/socket-tentacles | 1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6 | [
"MIT"
] | null | null | null | socket_tentacles/__init__.py | innovationgarage/socket-tentacles | 1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6 | [
"MIT"
] | 1 | 2019-11-01T12:38:20.000Z | 2019-11-01T12:38:20.000Z | import socketserver
import socket
import sys
import threading
import json
import queue
import time
import datetime
import traceback
def run(config, handlers):
server = Server(handlers)
server.configure(config)
return server
| 31.472868 | 107 | 0.580049 |
0797199eb44c9067c6481782c2b094efbd8e10a6 | 3,917 | py | Python | G5/DerivedData/ParameterProbing/checkme.py | shooking/ZoomPedalFun | 7b9f5f4441cfe42e988e06cf6b98603c21ac2466 | [
"CC0-1.0"
] | 9 | 2021-02-15T00:05:32.000Z | 2022-01-24T14:01:46.000Z | G5/DerivedData/ParameterProbing/checkme.py | shooking/ZoomPedalFun | 7b9f5f4441cfe42e988e06cf6b98603c21ac2466 | [
"CC0-1.0"
] | 13 | 2021-08-23T02:07:26.000Z | 2022-02-16T16:55:00.000Z | G5/DerivedData/ParameterProbing/checkme.py | shooking/ZoomPedalFun | 7b9f5f4441cfe42e988e06cf6b98603c21ac2466 | [
"CC0-1.0"
] | null | null | null | # -*- coding: ascii -*-
import sys
import json
# handles a zoom firmware
if __name__ == "__main__":
if len(sys.argv) == 2:
f = open(sys.argv[1], "rb")
data = f.read()
f.close()
check(data)
| 40.381443 | 129 | 0.451876 |
0797927e3d7bde5eb907276662251361ce156da5 | 475 | py | Python | leehao/learn63.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | 1 | 2020-02-26T14:52:17.000Z | 2020-02-26T14:52:17.000Z | leehao/learn63.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | null | null | null | leehao/learn63.py | pilihaotian/pythonlearning | e84b7766cc9ea8131e9720fb1f06761c9581d0da | [
"Apache-2.0"
] | null | null | null | # 6 a-zA-Z0-9
import random
source = ''
lower_char = [chr(x) for x in range(ord('a'), ord('z') + 1)]
upper_char = [chr(x) for x in range(ord('A'), ord('Z') + 1)]
number_char = [chr(x) for x in range(ord('0'), ord('9') + 1)]
source += "".join(lower_char)
source += "".join(upper_char)
source += "".join(number_char)
sour... | 23.75 | 61 | 0.591579 |
0799d6264b46d419f66659960f9e80e3239bdd1c | 1,237 | py | Python | gbic/tests.py | fga-eps-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 6 | 2017-08-24T13:18:21.000Z | 2017-10-03T18:06:13.000Z | gbic/tests.py | fga-gpp-mds/2017.2-Grupo9 | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 173 | 2017-08-31T15:29:01.000Z | 2017-12-14T13:40:13.000Z | gbic/tests.py | fga-gpp-mds/2017.2-SiGI-Op_API | 4532019c15414fd17e06bb3aa78501886e00da1d | [
"BSD-3-Clause"
] | 2 | 2018-11-19T10:33:00.000Z | 2019-06-19T22:35:43.000Z | from django.test import TestCase
from rest_framework.test import APIRequestFactory
from .models import GBIC, GBICType
from .views import GBICListViewSet
# Create your tests here.
| 35.342857 | 74 | 0.672595 |
079a7acf6ad24d3b711dca5d0ee7ae05fdfe00c0 | 23,239 | py | Python | fruits/core/fruit.py | alienkrieg/fruits | b3b4b6afd7f97d2d4060909689f9811dc97981ed | [
"MIT"
] | 4 | 2021-10-08T11:14:54.000Z | 2021-12-30T13:56:32.000Z | fruits/core/fruit.py | alienkrieg/fruits | b3b4b6afd7f97d2d4060909689f9811dc97981ed | [
"MIT"
] | null | null | null | fruits/core/fruit.py | alienkrieg/fruits | b3b4b6afd7f97d2d4060909689f9811dc97981ed | [
"MIT"
] | null | null | null | import inspect
from typing import List, Union, Set, Any
import numpy as np
from fruits.cache import Cache, CoquantileCache
from fruits.scope import force_input_shape, FitTransform
from fruits.core.callback import AbstractCallback
from fruits.signature.iss import SignatureCalculator, CachePlan
from fruits.words.word i... | 35.752308 | 77 | 0.588235 |
079c6865019ab91124c781c2644155172081ba8b | 9,863 | py | Python | workoutizer/__main__.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | workoutizer/__main__.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | workoutizer/__main__.py | pa3kDaWae/workoutizer | 15501d0060711bbd8308642bc89b45c1442d4d0f | [
"MIT"
] | null | null | null | import os
import argparse
import subprocess
import socket
import sys
import click
from django.core.management import execute_from_command_line
from workoutizer.settings import WORKOUTIZER_DIR, WORKOUTIZER_DB_PATH, TRACKS_DIR
from workoutizer import __version__
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
SE... | 38.678431 | 120 | 0.667343 |
079ca32a831e991e4272d56b55460b5a2a9b338e | 8,807 | py | Python | bcbio/bam/trim.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | 1 | 2015-04-08T17:43:39.000Z | 2015-04-08T17:43:39.000Z | bcbio/bam/trim.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | bcbio/bam/trim.py | matanhofree/bcbio-nextgen | e6938cedb20ff3b7632165105941d71189e46aac | [
"MIT"
] | null | null | null | """Provide trimming of input reads from Fastq or BAM files.
"""
import os
import sys
import tempfile
from bcbio.utils import (file_exists, safe_makedir,
replace_suffix, append_stem, is_pair,
replace_directory, map_wrap)
from bcbio.log import logger
from bcbio.bam impor... | 40.962791 | 92 | 0.65641 |
079cc8e3750a72f04c77d4be145f9892cc269784 | 13,419 | py | Python | FEniCSUI/AnalysesHub/views.py | nasserarbabi/FEniCSUI-dev | f8f161e1b49932843e01301212e7d031fff4f6c8 | [
"MIT"
] | null | null | null | FEniCSUI/AnalysesHub/views.py | nasserarbabi/FEniCSUI-dev | f8f161e1b49932843e01301212e7d031fff4f6c8 | [
"MIT"
] | 8 | 2021-03-10T21:59:52.000Z | 2021-09-22T19:12:57.000Z | FEniCSUI/AnalysesHub/views.py | nasserarbabi/FEniCSUI | f8f161e1b49932843e01301212e7d031fff4f6c8 | [
"MIT"
] | null | null | null | from rest_framework.response import Response
from rest_framework.views import APIView
from django.shortcuts import get_object_or_404
from dashboard.models import projects
from .models import AnalysisConfig, SolverResults, SolverProgress, DockerLogs
from rest_framework.parsers import FormParser, JSONParser, MultiPartPar... | 42.735669 | 158 | 0.634474 |
079d837b78456fbc7dc57dde76430c107de0f8b2 | 1,627 | py | Python | fs/opener/appfs.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/opener/appfs.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | fs/opener/appfs.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | # coding: utf-8
"""``AppFS`` opener definition.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from .base import Opener
from .errors import OpenerError
from ..subfs import ClosingSubFS
from .. import appfs
| 24.283582 | 68 | 0.566687 |
079e4e7b1369d32d29e2b328e164f3c7bb362e85 | 23,180 | py | Python | scripts/modeling_toolbox/evaluation.py | cyberj0g/verification-classifier | efb19a3864e27a7f149a1c27ee8e13eaa19f96eb | [
"MIT"
] | 8 | 2019-06-06T08:16:45.000Z | 2021-06-26T11:53:48.000Z | scripts/modeling_toolbox/evaluation.py | cyberj0g/verification-classifier | efb19a3864e27a7f149a1c27ee8e13eaa19f96eb | [
"MIT"
] | 95 | 2019-03-27T08:36:01.000Z | 2022-02-10T00:15:20.000Z | scripts/modeling_toolbox/evaluation.py | cyberj0g/verification-classifier | efb19a3864e27a7f149a1c27ee8e13eaa19f96eb | [
"MIT"
] | 8 | 2019-02-28T11:21:46.000Z | 2022-03-21T07:34:20.000Z | import numpy as np
from sklearn.metrics import fbeta_score, roc_curve, auc, confusion_matrix
from sklearn.decomposition import PCA
from sklearn import random_projection
from sklearn import svm
from sklearn.ensemble import IsolationForest
import matplotlib.pyplot as plt
from keras.layers import Dense, Input, Dropout
fro... | 44.83559 | 122 | 0.519586 |
07a0528abcb6666cfcae1ee1c6cb300b86de98df | 1,896 | py | Python | tests/test_notifo_message.py | mrtazz/notifo.py | 26079db3b40c26661155af20a9f16a0eca06dbde | [
"MIT"
] | 3 | 2015-11-05T11:49:34.000Z | 2016-07-17T18:06:15.000Z | tests/test_notifo_message.py | mrtazz/notifo.py | 26079db3b40c26661155af20a9f16a0eca06dbde | [
"MIT"
] | null | null | null | tests/test_notifo_message.py | mrtazz/notifo.py | 26079db3b40c26661155af20a9f16a0eca06dbde | [
"MIT"
] | null | null | null | # encoding: utf-8
import unittest
import os
import sys
sys.path.append(os.getcwd())
from notifo import Notifo, send_message
if __name__ == '__main__':
unittest.main()
| 38.693878 | 79 | 0.655591 |
07a0beb6aad78f79be93a859fb255e52020dee2b | 1,931 | py | Python | geoist/cattools/Smoothing.py | wqqpp007/geoist | 116b674eae3da4ee706902ce7f5feae1f61f43a5 | [
"MIT"
] | 1 | 2020-06-04T01:09:24.000Z | 2020-06-04T01:09:24.000Z | geoist/cattools/Smoothing.py | wqqpp007/geoist | 116b674eae3da4ee706902ce7f5feae1f61f43a5 | [
"MIT"
] | null | null | null | geoist/cattools/Smoothing.py | wqqpp007/geoist | 116b674eae3da4ee706902ce7f5feae1f61f43a5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
import numpy as np
import .Selection as Sel
import .Exploration as Exp
import .CatUtils as CU
#-----------------------------------------------------------------------------------------
#----------------------------------------------------------------------------------... | 23.26506 | 90 | 0.483169 |
07a14721d51acde99d2ac0e4f6c8f439015ceb27 | 2,759 | py | Python | hebsafeharbor/identifier/signals/lexicon_based_recognizer.py | dkarmon/HebSafeHarbor | fdad7481c74feb78f8c3265c327eae7712cf16ce | [
"MIT"
] | 3 | 2022-03-10T14:41:54.000Z | 2022-03-28T11:18:56.000Z | hebsafeharbor/identifier/signals/lexicon_based_recognizer.py | 8400TheHealthNetwork/HebSafeHarbor | f618ca76d995e6fb74c0cb2f01478c7efd2d8836 | [
"MIT"
] | 2 | 2022-03-06T10:39:27.000Z | 2022-03-07T12:42:13.000Z | hebsafeharbor/identifier/signals/lexicon_based_recognizer.py | dkarmon/HebSafeHarbor | fdad7481c74feb78f8c3265c327eae7712cf16ce | [
"MIT"
] | 3 | 2022-02-15T09:50:08.000Z | 2022-02-22T08:43:26.000Z | from typing import List
from presidio_analyzer import EntityRecognizer, RecognizerResult, AnalysisExplanation
from presidio_analyzer.nlp_engine import NlpArtifacts
from hebsafeharbor.common.terms_recognizer import TermsRecognizer
| 43.793651 | 117 | 0.697717 |
07a42ef8c15bd224503fc4a06fa31dab2756c605 | 35,966 | py | Python | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py | cyx233/vim_config | f09c9206344c17df20a05dd2c08a02f098a7e873 | [
"MIT"
] | null | null | null | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py | cyx233/vim_config | f09c9206344c17df20a05dd2c08a02f098a7e873 | [
"MIT"
] | null | null | null | my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py | cyx233/vim_config | f09c9206344c17df20a05dd2c08a02f098a7e873 | [
"MIT"
] | null | null | null | # encoding: utf-8
#
# Copyright (C) 2018 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | 34.783366 | 79 | 0.508564 |
07a4651e3c80a36d3030fc52e231138dba1e43c1 | 1,032 | py | Python | sentiment/config.py | TheRensselaerIDEA/covid19_tweet_ids | fee7d951b11cf2650e48668614c30672179ab3af | [
"MIT"
] | null | null | null | sentiment/config.py | TheRensselaerIDEA/covid19_tweet_ids | fee7d951b11cf2650e48668614c30672179ab3af | [
"MIT"
] | null | null | null | sentiment/config.py | TheRensselaerIDEA/covid19_tweet_ids | fee7d951b11cf2650e48668614c30672179ab3af | [
"MIT"
] | null | null | null | """
Config class containing all the settings for running sentiment scoring tool
"""
import jsonpickle | 27.157895 | 75 | 0.622093 |
07a4d5bc6f7dc36e1d1fd72f273d7cc3af846e4b | 9,184 | py | Python | tests/ut/python/dataset/test_invert.py | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | 4 | 2021-01-26T09:14:01.000Z | 2021-01-26T09:17:24.000Z | tests/ut/python/dataset/test_invert.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | tests/ut/python/dataset/test_invert.py | forwhat461/mindspore | 59a277756eb4faad9ac9afcc7fd526e8277d4994 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 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... | 35.875 | 111 | 0.579377 |
07a4fdcadf45ca16af301e1936af3cd96dd967fd | 748 | py | Python | puzzle/tests/test_candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | null | null | null | puzzle/tests/test_candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | 9 | 2017-10-25T10:03:36.000Z | 2018-06-12T22:49:22.000Z | puzzle/tests/test_candy.py | aliciawyy/dmining | 513f6f036f8f258281e1282fef052a74bf9cc3d3 | [
"Apache-2.0"
] | null | null | null | from parameterized import parameterized
from numpy.testing import TestCase
from .. import candy
| 35.619048 | 73 | 0.481283 |
07a6ea2e95247eb4360055919661bfab2c787424 | 442 | py | Python | audio.py | fernandoq/quiz-show | 6e130db7923d14cf1976e1c522c58f848e48f2af | [
"MIT"
] | null | null | null | audio.py | fernandoq/quiz-show | 6e130db7923d14cf1976e1c522c58f848e48f2af | [
"MIT"
] | null | null | null | audio.py | fernandoq/quiz-show | 6e130db7923d14cf1976e1c522c58f848e48f2af | [
"MIT"
] | null | null | null | import time
import subprocess
import os
print os.uname()
if not os.uname()[0].startswith("Darw"):
import pygame
pygame.mixer.init()
# Plays a song | 24.555556 | 69 | 0.708145 |
07a74f63c4315c5c81ce34abcbe9eb4483cc9b1f | 4,783 | py | Python | tests/test_dynamodbHandler.py | unfoldingWord-dev/python-aws-tools | 8e856697ab07c5c33e60cde2d82ac805dec3ddf3 | [
"MIT"
] | 1 | 2017-08-23T22:31:23.000Z | 2017-08-23T22:31:23.000Z | tests/test_dynamodbHandler.py | unfoldingWord-dev/python-aws-tools | 8e856697ab07c5c33e60cde2d82ac805dec3ddf3 | [
"MIT"
] | null | null | null | tests/test_dynamodbHandler.py | unfoldingWord-dev/python-aws-tools | 8e856697ab07c5c33e60cde2d82ac805dec3ddf3 | [
"MIT"
] | null | null | null | from __future__ import absolute_import, unicode_literals, print_function
import mock
import unittest
import d43_aws_tools as aws_tools
from boto3.dynamodb.conditions import Attr
| 40.533898 | 104 | 0.59147 |
07a75032397b40d87190a129b70b4805e05f8c42 | 799 | py | Python | app.py | sbustamante/heroku_app | 6c8ff0b570750f3fe53ec67e24b71641167d53ce | [
"MIT"
] | null | null | null | app.py | sbustamante/heroku_app | 6c8ff0b570750f3fe53ec67e24b71641167d53ce | [
"MIT"
] | null | null | null | app.py | sbustamante/heroku_app | 6c8ff0b570750f3fe53ec67e24b71641167d53ce | [
"MIT"
] | null | null | null | from dash import Dash, html, dcc
import plotly.express as px
import pandas as pd
app = Dash(__name__)
server = app.server
# assume you have a "long-form" data frame
# see https://plotly.com/python/px-arguments/ for more options
df = pd.DataFrame({
"Fruit": ["Apples", "Oranges", "Bananas", "Apples", "Oranges", "Ba... | 24.96875 | 78 | 0.617021 |
07a86aa8bb5513e6175425568029999ed308c9e2 | 23,759 | py | Python | peter_sslers/web/lib/form_utils.py | aptise/peter_sslers | 1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0 | [
"MIT"
] | 35 | 2016-04-21T18:55:31.000Z | 2022-03-30T08:22:43.000Z | peter_sslers/web/lib/form_utils.py | aptise/peter_sslers | 1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0 | [
"MIT"
] | 8 | 2018-05-23T13:38:49.000Z | 2021-03-19T21:05:44.000Z | peter_sslers/web/lib/form_utils.py | aptise/peter_sslers | 1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0 | [
"MIT"
] | 2 | 2016-08-18T21:07:11.000Z | 2017-01-11T09:47:40.000Z | # pypi
import six
# local
from ...lib import db as lib_db
from ...lib import utils
from ...model import objects as model_objects
from ...model import utils as model_utils
from . import formhandling
# ==============================================================================
def decode_args(getcreate_args):
... | 39.271074 | 151 | 0.638032 |
07a919ed87f13258649cbf2c9c6e2971a4de419e | 5,568 | py | Python | AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py | jlamperez/Vitis-Tutorials | 9a5b611caabb5656bbb2879116e032227b164bfd | [
"Apache-2.0"
] | 1 | 2022-03-09T06:15:43.000Z | 2022-03-09T06:15:43.000Z | AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py | jlamperez/Vitis-Tutorials | 9a5b611caabb5656bbb2879116e032227b164bfd | [
"Apache-2.0"
] | null | null | null | AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py | jlamperez/Vitis-Tutorials | 9a5b611caabb5656bbb2879116e032227b164bfd | [
"Apache-2.0"
] | null | null | null | #
# Copyright 20202021 Xilinx, 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 wr... | 33.341317 | 119 | 0.541667 |
07aa6fe145a48bc2b3e22c3ee731584817a386ba | 357 | py | Python | Object Oriented Programming/Lecture 01/Intro.py | ashish-ad/Python-Projects | 7f49476b6945189165d536629109030f10603556 | [
"Unlicense"
] | 1 | 2021-10-08T06:52:12.000Z | 2021-10-08T06:52:12.000Z | Object Oriented Programming/Lecture 01/Intro.py | ashish-ad/Python-Projects | 7f49476b6945189165d536629109030f10603556 | [
"Unlicense"
] | null | null | null | Object Oriented Programming/Lecture 01/Intro.py | ashish-ad/Python-Projects | 7f49476b6945189165d536629109030f10603556 | [
"Unlicense"
] | null | null | null | item1='phone'
item1_price = 100
item1_quantity = 5
item1_price_total = item1_price * item1_quantity
print(type(item1)) # str
print(type(item1_price)) # int
print(type(item1_quantity)) # int
print(type(item1_price_total)) # int
# output:
# <class 'str'>
# <class 'int'>
# ... | 21 | 48 | 0.59944 |
07ab77d7eb12a86186be6ca7c7efa3f2eb65e7be | 342 | py | Python | configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 33 | 2021-12-15T07:11:47.000Z | 2022-03-29T08:58:32.000Z | configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | 3 | 2021-12-15T11:39:54.000Z | 2022-03-29T07:24:23.000Z | configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py | THU-DA-6D-Pose-Group/self6dpp | c267cfa55e440e212136a5e9940598720fa21d16 | [
"Apache-2.0"
] | null | null | null | _base_ = "./FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_01_02MasterChefCan.py"
OUTPUT_DIR = "output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/16_36WoodBlock"
DATASETS = dict(TRAIN=("ycbv_036_woo... | 85.5 | 154 | 0.903509 |
07abd88c1750bfa23ce141be4914e78e9e578d95 | 316 | py | Python | sqlakeyset/__init__.py | jhihruei/sqlakeyset | 0aa0f6e041dc37bc5f918303578875ad334cad6c | [
"Unlicense"
] | null | null | null | sqlakeyset/__init__.py | jhihruei/sqlakeyset | 0aa0f6e041dc37bc5f918303578875ad334cad6c | [
"Unlicense"
] | null | null | null | sqlakeyset/__init__.py | jhihruei/sqlakeyset | 0aa0f6e041dc37bc5f918303578875ad334cad6c | [
"Unlicense"
] | null | null | null |
from .columns import OC
from .paging import get_page, select_page, process_args
from .results import serialize_bookmark, unserialize_bookmark, Page, Paging
__all__ = [
'OC',
'get_page',
'select_page',
'serialize_bookmark',
'unserialize_bookmark',
'Page',
'Paging',
'process_args'
]
| 19.75 | 75 | 0.693038 |
07abdc1f2ef1ad7ab554d9cccaa9f73782091369 | 6,609 | py | Python | low_rank_local_connectivity/models/simple_model.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-13T21:48:52.000Z | 2022-03-13T21:48:52.000Z | low_rank_local_connectivity/models/simple_model.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | null | null | null | low_rank_local_connectivity/models/simple_model.py | shaun95/google-research | d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5 | [
"Apache-2.0"
] | 1 | 2022-03-30T07:20:29.000Z | 2022-03-30T07:20:29.000Z | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | 37.982759 | 80 | 0.681192 |
07ad506b318b0e47d29c2d5e943847cb809ea5ef | 721 | py | Python | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 47 | 2021-02-15T23:02:36.000Z | 2022-03-04T21:30:03.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 7 | 2021-02-19T20:00:08.000Z | 2022-01-14T10:51:12.000Z | adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py | jacoblb64/pico_rgb_keypad_hid | 3251ca6a98ef86d9f98c54f639c4d61810601a0b | [
"MIT"
] | 14 | 2021-02-20T17:40:56.000Z | 2022-01-01T19:53:38.000Z | # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
import busio
from adafruit_icm20x import ICM20948
cycles = 200
i2c = busio.I2C(board.SCL, board.SDA)
icm = ICM20948(i2c)
# Cycle between two data rates
# Best viewed in the Mu serial plotter where y... | 25.75 | 62 | 0.718447 |
07afa89bd7f7b951972777c2099542dd2fbf96da | 304 | py | Python | 1186.py | TheLurkingCat/TIOJ | 077e1cd22239d8f6bc1cd7561f27c68143e80263 | [
"MIT"
] | null | null | null | 1186.py | TheLurkingCat/TIOJ | 077e1cd22239d8f6bc1cd7561f27c68143e80263 | [
"MIT"
] | null | null | null | 1186.py | TheLurkingCat/TIOJ | 077e1cd22239d8f6bc1cd7561f27c68143e80263 | [
"MIT"
] | null | null | null | a = int(input())
while a:
for x in range(a-1):
out = '*' + ' ' * (a-x-2) + '*' + ' ' * (a-x-2) + '*'
print(out.center(2*a-1))
print('*' * (2 * a - 1))
for x in range(a-1):
out = '*' + ' ' * x + '*' + ' ' * x + '*'
print(out.center(2*a-1))
a = int(input())
| 27.636364 | 61 | 0.348684 |
07afdc77d12fe88ab48cead7329435544528b522 | 8,032 | py | Python | utils/common.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/common.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | utils/common.py | initialed85/eds-cctv-system | fcdb7e7e23327bf3a901d23d506b3915833027d1 | [
"MIT"
] | null | null | null | import datetime
import json
import os
from pathlib import Path
from types import SimpleNamespace
from typing import List
from typing import NamedTuple, Union, Optional, Callable
from uuid import uuid3, NAMESPACE_DNS
from dateutil.parser import parse
_VIDEO_SUFFIXES = [".mkv", ".mp4"]
_IMAGE_SUFFIXES = [".jpg"]
_PERMI... | 33.606695 | 140 | 0.671564 |
07b0911062690c0f062a5b15420ab76dd3a0ddb5 | 807 | py | Python | schoolio/migrations/0005_auto_20190927_1423.py | schoolio-co/schoolio_site | a616807c504c7a7cab3b9f7c3dab42f827cb0580 | [
"MIT",
"Unlicense"
] | null | null | null | schoolio/migrations/0005_auto_20190927_1423.py | schoolio-co/schoolio_site | a616807c504c7a7cab3b9f7c3dab42f827cb0580 | [
"MIT",
"Unlicense"
] | null | null | null | schoolio/migrations/0005_auto_20190927_1423.py | schoolio-co/schoolio_site | a616807c504c7a7cab3b9f7c3dab42f827cb0580 | [
"MIT",
"Unlicense"
] | null | null | null | # Generated by Django 2.2.1 on 2019-09-27 14:23
from django.db import migrations, models
| 27.827586 | 74 | 0.607187 |
07b47bbb8eb7acb013788dd5e04ca55c384f4c1f | 7,732 | py | Python | scripts/extract_gs_citations.py | akhilpandey95/scholarlyimpact | 215ae832c90f0564fa0301e4c3f1c99525617625 | [
"MIT"
] | null | null | null | scripts/extract_gs_citations.py | akhilpandey95/scholarlyimpact | 215ae832c90f0564fa0301e4c3f1c99525617625 | [
"MIT"
] | 18 | 2020-02-20T23:40:26.000Z | 2020-10-20T04:05:43.000Z | scripts/extract_gs_citations.py | akhilpandey95/scholarlyimpact | 215ae832c90f0564fa0301e4c3f1c99525617625 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# This Source Code Form is subject to the terms of the MIT
# License. If a copy of the same was not distributed with this
# file, You can obtain one at
# https://github.com/akhilpandey95/scholarlyimpact/blob/master/LICENSE.
import os
import csv
import glob
import json
import requests
import sub... | 26.847222 | 91 | 0.602431 |
07b56e4319a20d96b921852eb21d1c92a5f276de | 4,672 | py | Python | dist-packages/reportlab/pdfgen/pathobject.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | 51 | 2015-01-20T19:50:34.000Z | 2022-03-05T21:23:32.000Z | dist-packages/reportlab/pdfgen/pathobject.py | Jianwei-Wang/python2.7_lib | 911b8e81512e5ac5f13e669ab46f7693ed897378 | [
"PSF-2.0"
] | 16 | 2015-11-15T04:23:43.000Z | 2021-09-27T14:14:20.000Z | src/reportlab/pdfgen/pathobject.py | guildenstern70/pyfab | 34d786fec17192591ac3c5f73913a9b04311695a | [
"MIT"
] | 46 | 2015-03-28T10:18:14.000Z | 2021-12-16T15:57:47.000Z | #Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/pathobject.py
__version__=''' $Id$ '''
__doc__="""
PDFPathObject is an efficient way to draw paths on a Canvas. Do not
instantiate directly, obt... | 36.5 | 109 | 0.627354 |
07b58dc361c480dc7628924d4fba99b729151138 | 687 | py | Python | client/modules/Wikipedia.py | devagul93/Jarvis-System | 8d1865b19bb8530831c868147c3b27a1c3bad59b | [
"MIT"
] | null | null | null | client/modules/Wikipedia.py | devagul93/Jarvis-System | 8d1865b19bb8530831c868147c3b27a1c3bad59b | [
"MIT"
] | null | null | null | client/modules/Wikipedia.py | devagul93/Jarvis-System | 8d1865b19bb8530831c868147c3b27a1c3bad59b | [
"MIT"
] | null | null | null | import wikipedia
import re
import TCPclient as client
WORDS = ["WIKIPEDIA","SEARCH","INFORMATION"]
| 19.083333 | 61 | 0.679767 |
07b68a248a019f47e10cdf7898c67384df56c25f | 1,447 | py | Python | Madlibs/madlibs.py | nikhil-amin/python-mini-project | cd70a6a43408ce74cff501ce4d4658ab82260c2d | [
"MIT"
] | 2 | 2021-08-20T08:59:28.000Z | 2021-11-23T00:17:15.000Z | Madlibs/madlibs.py | nikhil-amin/python-mini-project | cd70a6a43408ce74cff501ce4d4658ab82260c2d | [
"MIT"
] | null | null | null | Madlibs/madlibs.py | nikhil-amin/python-mini-project | cd70a6a43408ce74cff501ce4d4658ab82260c2d | [
"MIT"
] | 1 | 2022-01-06T16:35:43.000Z | 2022-01-06T16:35:43.000Z | import random
print("Title : Eat, Drink, And Be Sick")
noun = []
for i in range(4):
n = input("Enter noun : ")
noun.append(n)
plural = []
for i in range(6):
pn = input("Enter plural noun : ")
plural.append(pn)
adjective = []
for i in range(2):
a = input("Enter adjective : ")
adjective.append(a)
... | 60.291667 | 270 | 0.676572 |
07b69c4f080b6ae079038a0250ba13b6035a0cda | 191 | py | Python | scripts/transpose.py | saikrishnarallabandi/python_connectionist | e3f8f92c8de865190ad727951eb2b0e514248afc | [
"Apache-2.0"
] | null | null | null | scripts/transpose.py | saikrishnarallabandi/python_connectionist | e3f8f92c8de865190ad727951eb2b0e514248afc | [
"Apache-2.0"
] | null | null | null | scripts/transpose.py | saikrishnarallabandi/python_connectionist | e3f8f92c8de865190ad727951eb2b0e514248afc | [
"Apache-2.0"
] | null | null | null | import numpy
g = open('/home/srallaba/mgc/transposed/arctic_a0404.mgc','w')
x = numpy.loadtxt('/home/srallaba/mgc_spaces/arctic_a0404.mgc')
numpy.savetxt(g, numpy.transpose(x))
g.close()
| 31.833333 | 64 | 0.73822 |
07b6a4b93bbebd4e00153c0e368d7d75f4691489 | 7,337 | py | Python | tests/zone_api_test/core/zone_manager_test.py | yfaway/zone-apis | 4aa4120cb4a66812dac1d32e86e825bbafe652b8 | [
"MIT"
] | 1 | 2021-11-22T11:51:17.000Z | 2021-11-22T11:51:17.000Z | tests/zone_api_test/core/zone_manager_test.py | yfaway/zone-apis | 4aa4120cb4a66812dac1d32e86e825bbafe652b8 | [
"MIT"
] | 20 | 2021-01-31T00:20:34.000Z | 2022-01-09T18:02:31.000Z | tests/zone_api_test/core/zone_manager_test.py | yfaway/zone-apis | 4aa4120cb4a66812dac1d32e86e825bbafe652b8 | [
"MIT"
] | null | null | null | from zone_api.core.zone_manager import ZoneManager
from zone_api import platform_encapsulator as pe
from zone_api.core.zone import Zone
from zone_api.core.zone_event import ZoneEvent
from zone_api.core.devices.dimmer import Dimmer
from zone_api.core.devices.switch import Fan, Light, Switch
from zone_api.core.devices.i... | 40.535912 | 118 | 0.694698 |
07b77a97c35aea2ef5b761b745880bae3410a131 | 2,796 | py | Python | meiduo_mall/meiduo_mall/apps/orders/views.py | Zasling/meiduo_mall33 | ec55597758d5052b311d65aee44533b001f6ddd8 | [
"MIT"
] | 1 | 2019-04-12T08:56:29.000Z | 2019-04-12T08:56:29.000Z | meiduo_mall/meiduo_mall/apps/orders/views.py | Zasling/meiduo_mall33 | ec55597758d5052b311d65aee44533b001f6ddd8 | [
"MIT"
] | null | null | null | meiduo_mall/meiduo_mall/apps/orders/views.py | Zasling/meiduo_mall33 | ec55597758d5052b311d65aee44533b001f6ddd8 | [
"MIT"
] | 1 | 2020-03-30T14:35:22.000Z | 2020-03-30T14:35:22.000Z | from rest_framework.response import Response
from rest_framework.views import APIView
from django_redis import get_redis_connection
from goods.models import SKU
from decimal import Decimal
from rest_framework.generics import CreateAPIView,ListAPIView
from rest_framework.mixins import ListModelMixin
from orders.serializ... | 31.066667 | 115 | 0.689199 |
07b88bc36babff3a11858ef34a69a78ca7bd4caf | 37,841 | py | Python | src/streamlink_cli/main.py | melmorabity/streamlink | 24c59a23103922977991acc28741a323d8efa7a1 | [
"BSD-2-Clause"
] | null | null | null | src/streamlink_cli/main.py | melmorabity/streamlink | 24c59a23103922977991acc28741a323d8efa7a1 | [
"BSD-2-Clause"
] | null | null | null | src/streamlink_cli/main.py | melmorabity/streamlink | 24c59a23103922977991acc28741a323d8efa7a1 | [
"BSD-2-Clause"
] | null | null | null | import argparse
import errno
import logging
import os
import platform
import signal
import sys
from collections import OrderedDict
from contextlib import closing
from distutils.version import StrictVersion
from functools import partial
from gettext import gettext
from itertools import chain
from pathlib import Path
fro... | 33.999102 | 122 | 0.640258 |
07b8d02790ae07e8540167a649afc0cab32e02e9 | 16,807 | py | Python | dbaccesslibUserMailInfo.py | Koushik-ks/FlaskAPP | 6f1bd98450bc8f33c3896aa7ec690c51dc414d19 | [
"MIT"
] | null | null | null | dbaccesslibUserMailInfo.py | Koushik-ks/FlaskAPP | 6f1bd98450bc8f33c3896aa7ec690c51dc414d19 | [
"MIT"
] | null | null | null | dbaccesslibUserMailInfo.py | Koushik-ks/FlaskAPP | 6f1bd98450bc8f33c3896aa7ec690c51dc414d19 | [
"MIT"
] | 1 | 2019-11-08T06:49:57.000Z | 2019-11-08T06:49:57.000Z | from io import BytesIO
from io import StringIO
import json
from bson.dbref import DBRef
import datetime
from bson import json_util
import logging
import base64
jsonCode ={
"building":{
"Essae Vaishnavi Solitaire": {
"id": "B1",
"division": {
"SS"... | 42.335013 | 242 | 0.404712 |
07b8f248ebba127a7ba553594c485e647090e69f | 3,489 | py | Python | src/test/dags/bq_to_cm_dag_test.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | null | null | null | src/test/dags/bq_to_cm_dag_test.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | null | null | null | src/test/dags/bq_to_cm_dag_test.py | google/cc4d | 206543832368f96bac7f55c0de93c96e32127779 | [
"Apache-2.0"
] | null | null | null | # python3
# coding=utf-8
# Copyright 2020 Google 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 35.602041 | 74 | 0.755804 |
07b971c0c6fde3e7ed6901642724f170bca1dffb | 10,781 | py | Python | talentmap_api/common/management/commands/load_xml.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 5 | 2018-08-09T18:51:12.000Z | 2021-11-08T10:28:17.000Z | talentmap_api/common/management/commands/load_xml.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 232 | 2017-06-16T02:09:54.000Z | 2018-05-10T16:15:48.000Z | talentmap_api/common/management/commands/load_xml.py | burgwyn/State-TalentMAP-API | 1f4f3659c5743ebfd558cd87af381f5460f284b3 | [
"CC0-1.0"
] | 4 | 2018-06-13T14:49:27.000Z | 2021-06-30T22:29:15.000Z | from django.core.management.base import BaseCommand
import logging
import re
from talentmap_api.common.xml_helpers import XMLloader, strip_extra_spaces, parse_boolean, parse_date, get_nested_tag
from talentmap_api.language.models import Language, Proficiency
from talentmap_api.position.models import Grade, Skill, Pos... | 36.422297 | 142 | 0.66914 |
07b9b8864e1cb2b18a6326e38faad88d4012991a | 2,581 | py | Python | gluon/tests/test_recfile.py | oscarfonts/web2py | a18e0e489fe7a770c62fca510a4299886b0a9bb7 | [
"BSD-3-Clause"
] | null | null | null | gluon/tests/test_recfile.py | oscarfonts/web2py | a18e0e489fe7a770c62fca510a4299886b0a9bb7 | [
"BSD-3-Clause"
] | null | null | null | gluon/tests/test_recfile.py | oscarfonts/web2py | a18e0e489fe7a770c62fca510a4299886b0a9bb7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Unit tests for gluon.recfile
"""
import unittest
import os
import shutil
import uuid
from .fix_path import fix_sys_path
fix_sys_path(__file__)
from gluon import recfile
if __name__ == '__main__':
unittest.main()
| 34.413333 | 92 | 0.593181 |
07ba0eee7b3f5dcbd7cf03e65b5f80e0ede665d0 | 1,022 | py | Python | configLambdas.py | cfrome77/liquid-stats | 7a4d751dea215c94b650beb154a90abce7e1592d | [
"MIT"
] | 4 | 2020-06-21T14:43:40.000Z | 2021-12-29T17:02:18.000Z | configLambdas.py | cfrome77/liquid-stats | 7a4d751dea215c94b650beb154a90abce7e1592d | [
"MIT"
] | 21 | 2018-09-18T18:42:53.000Z | 2022-01-04T05:55:12.000Z | configLambdas.py | cfrome77/liquid-stats | 7a4d751dea215c94b650beb154a90abce7e1592d | [
"MIT"
] | null | null | null | import json
import os
import subprocess
from dotenv import load_dotenv
from subprocess import check_output, Popen, PIPE
load_dotenv()
# Accessing variables.
CLIENT_ID = os.environ.get('CLIENT_ID')
CLIENT_SECRET = os.environ.get('CLIENT_SECRET')
USERNAME = os.environ.get('USERNAME')
BUCKET_NAME = os.environ.get('BUCK... | 26.894737 | 122 | 0.714286 |
07baaefdacf7ace2738a920e7e9c1d5671078a05 | 13,520 | py | Python | microbitAnim.py | SaitoYutaka/microbitAnim | 6630d5cdb3ae867d3467a035a1c14358944c0367 | [
"MIT"
] | null | null | null | microbitAnim.py | SaitoYutaka/microbitAnim | 6630d5cdb3ae867d3467a035a1c14358944c0367 | [
"MIT"
] | null | null | null | microbitAnim.py | SaitoYutaka/microbitAnim | 6630d5cdb3ae867d3467a035a1c14358944c0367 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Aug 8 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impo... | 44.473684 | 181 | 0.598669 |
07babdb06c676058838f65ac7fea336d215d962b | 339 | py | Python | src/dependencies/contrib/celery.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | src/dependencies/contrib/celery.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | src/dependencies/contrib/celery.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | """
dependencies.contrib.celery
---------------------------
This module implements injectable Celery task.
:copyright: (c) 2016-2020 by dry-python team.
:license: BSD, see LICENSE for more details.
"""
from _dependencies.contrib.celery import shared_task
from _dependencies.contrib.celery import task
__all__ = ["sha... | 22.6 | 52 | 0.710914 |
07bb317b5c0941f28a4da7f31413b20f4a8bda28 | 7,838 | py | Python | yolo3/utils.py | gaxu/keras-yolo3 | 7f6be0fb9a8583401246bfe65d2df2ee40777d72 | [
"MIT"
] | null | null | null | yolo3/utils.py | gaxu/keras-yolo3 | 7f6be0fb9a8583401246bfe65d2df2ee40777d72 | [
"MIT"
] | null | null | null | yolo3/utils.py | gaxu/keras-yolo3 | 7f6be0fb9a8583401246bfe65d2df2ee40777d72 | [
"MIT"
] | 4 | 2021-02-25T08:21:15.000Z | 2021-02-25T08:56:39.000Z | """Miscellaneous utility functions."""
from functools import reduce
from PIL import Image
import numpy as np
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
def compose(*funcs):
"""Compose arbitrarily many functions, evaluated left to right.
Reference: https://mathieularose.com/function-composition-in-... | 32.522822 | 130 | 0.578719 |
07bd6b46f25dcc6cd80de3063def3b5b81539dae | 161 | py | Python | text_classification/config.py | MardanovTimur/kaggle | 62392863a07fcc5de9821c28cf9c6dbbf39ced59 | [
"MIT"
] | null | null | null | text_classification/config.py | MardanovTimur/kaggle | 62392863a07fcc5de9821c28cf9c6dbbf39ced59 | [
"MIT"
] | null | null | null | text_classification/config.py | MardanovTimur/kaggle | 62392863a07fcc5de9821c28cf9c6dbbf39ced59 | [
"MIT"
] | null | null | null | import logging
import pathlib
logging.basicConfig(level=logging.INFO)
# Dirs
ROOT_DIR = pathlib.Path(__file__).parent.absolute()
DUMP_DIR = ROOT_DIR / 'dumps'
| 17.888889 | 51 | 0.782609 |
07bd8ff47d8f5245f9a21b92c33b949fce1127a8 | 8,482 | py | Python | sportsreference/ncaaf/rankings.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | null | null | null | sportsreference/ncaaf/rankings.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | null | null | null | sportsreference/ncaaf/rankings.py | JosephDErwin/sportsreference | f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd | [
"MIT"
] | 1 | 2020-07-08T16:05:25.000Z | 2020-07-08T16:05:25.000Z | import re
from pyquery import PyQuery as pq
from .. import utils
from .constants import RANKINGS_SCHEME, RANKINGS_URL
from six.moves.urllib.error import HTTPError
| 39.821596 | 79 | 0.549399 |
07bd958d061b56e11538171ee991b3269000d33d | 5,937 | py | Python | ding/hpc_rl/wrapper.py | davide97l/DI-engine | d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423 | [
"Apache-2.0"
] | 1 | 2022-03-21T16:15:39.000Z | 2022-03-21T16:15:39.000Z | ding/hpc_rl/wrapper.py | jiaruonan/DI-engine | 268d77db3cb54401b2cfc83e2bc3ec87c31e7b83 | [
"Apache-2.0"
] | null | null | null | ding/hpc_rl/wrapper.py | jiaruonan/DI-engine | 268d77db3cb54401b2cfc83e2bc3ec87c31e7b83 | [
"Apache-2.0"
] | null | null | null | import importlib
from ditk import logging
from collections import OrderedDict
from functools import wraps
import ding
'''
Overview:
`hpc_wrapper` is the wrapper for functions which are supported by hpc. If a function is wrapped by it, we will
search for its hpc type and return the function implemented by hpc.
... | 44.30597 | 120 | 0.578912 |
07be5334fc353ee2aa3b8e027797471255271069 | 102 | py | Python | CodeWars/2016/NumberOfOccurrences-7k.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | CodeWars/2016/NumberOfOccurrences-7k.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | CodeWars/2016/NumberOfOccurrences-7k.py | JLJTECH/TutorialTesting | f2dbbd49a86b3b086d0fc156ac3369fb74727f86 | [
"MIT"
] | null | null | null | #Return the count of int(s) in passed array. | 34 | 45 | 0.72549 |
07bf6145f03382a8bd2f1aee40dd398c31e7d6c2 | 10,343 | py | Python | telethon_generator/parsers/tlobject.py | islam-200555/Telethon | 85103bcf6de8024c902ede98f0b9bf0f7f47a0aa | [
"MIT"
] | 2 | 2021-01-06T12:49:49.000Z | 2021-04-23T16:32:13.000Z | telethon_generator/parsers/tlobject.py | islam-200555/Telethon | 85103bcf6de8024c902ede98f0b9bf0f7f47a0aa | [
"MIT"
] | null | null | null | telethon_generator/parsers/tlobject.py | islam-200555/Telethon | 85103bcf6de8024c902ede98f0b9bf0f7f47a0aa | [
"MIT"
] | null | null | null | import re
from zlib import crc32
from ..utils import snake_to_camel_case
CORE_TYPES = (
0xbc799737, # boolFalse#bc799737 = Bool;
0x997275b5, # boolTrue#997275b5 = Bool;
0x3fedd339, # true#3fedd339 = True;
0x1cb5c415, # vector#1cb5c415 {t:Type} # [ t ] = Vector t;
)
# https://github.com/telegramde... | 35.788927 | 153 | 0.541332 |
07c02ac3abe7a10db3f40c2457c57bca98b41742 | 2,469 | bzl | Python | dotnet/private/actions/resx_core.bzl | purkhusid/rules_dotnet | 934e62d65ed3657be20b2ae3a63e032a2de9ff84 | [
"Apache-2.0"
] | 143 | 2016-03-15T20:37:54.000Z | 2022-02-25T12:30:08.000Z | dotnet/private/actions/resx_core.bzl | purkhusid/rules_dotnet | 934e62d65ed3657be20b2ae3a63e032a2de9ff84 | [
"Apache-2.0"
] | 176 | 2016-03-17T13:28:50.000Z | 2022-03-30T21:19:24.000Z | dotnet/private/actions/resx_core.bzl | purkhusid/rules_dotnet | 934e62d65ed3657be20b2ae3a63e032a2de9ff84 | [
"Apache-2.0"
] | 79 | 2016-03-16T11:34:56.000Z | 2022-02-04T10:54:00.000Z | "Actions for compiling resx files"
load(
"@io_bazel_rules_dotnet//dotnet/private:providers.bzl",
"DotnetResourceInfo",
)
def emit_resx_core(
dotnet,
name = "",
src = None,
identifier = None,
out = None,
customresgen = None):
"""The function adds an action th... | 32.92 | 159 | 0.651681 |
07c0bb5052572bdefa7514e11ef8a10e0bb0427e | 1,035 | py | Python | test/jit/test_modules.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 183 | 2018-04-06T21:10:36.000Z | 2022-03-30T15:05:24.000Z | test/jit/test_modules.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 818 | 2020-02-07T02:36:44.000Z | 2022-03-31T23:49:44.000Z | test/jit/test_modules.py | xiaohanhuang/pytorch | a31aea8eaa99a5ff72b5d002c206cd68d5467a5e | [
"Intel"
] | 58 | 2018-06-05T16:40:18.000Z | 2022-03-16T15:37:29.000Z | # Owner(s): ["oncall: jit"]
import torch
import os
import sys
from torch.testing._internal.jit_utils import JitTestCase
# Make the helper files in test/ importable
pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
sys.path.append(pytorch_test_dir)
if __name__ == '__main__':
raise Ru... | 30.441176 | 81 | 0.630918 |
07c0c2bb274ab76681ad18763446d5b0c976c985 | 242 | py | Python | pixelate_task_1.py | Swayamshu/Pixelate_Sample_Arena | d8e8b4614987f9302a19ec1e20a922618e67b943 | [
"MIT"
] | null | null | null | pixelate_task_1.py | Swayamshu/Pixelate_Sample_Arena | d8e8b4614987f9302a19ec1e20a922618e67b943 | [
"MIT"
] | null | null | null | pixelate_task_1.py | Swayamshu/Pixelate_Sample_Arena | d8e8b4614987f9302a19ec1e20a922618e67b943 | [
"MIT"
] | null | null | null | import gym
import pix_sample_arena
import time
import pybullet as p
import pybullet_data
import cv2
if __name__ == "__main__":
env = gym.make("pix_sample_arena-v0")
x = 0
while True:
p.stepSimulation()
time.sleep(100) | 18.615385 | 41 | 0.702479 |
07c22498468a49059683c71a90ec92358cf9e563 | 916 | py | Python | tests/test_timeparser.py | vgoehler/python-i3-battery-block | e47ce80b315d812d731df84f2a1c8e1155b2469a | [
"BSD-2-Clause"
] | null | null | null | tests/test_timeparser.py | vgoehler/python-i3-battery-block | e47ce80b315d812d731df84f2a1c8e1155b2469a | [
"BSD-2-Clause"
] | 9 | 2020-01-24T17:15:03.000Z | 2020-06-02T14:16:40.000Z | tests/test_timeparser.py | vgoehler/python-i3-battery-block | e47ce80b315d812d731df84f2a1c8e1155b2469a | [
"BSD-2-Clause"
] | null | null | null | from datetime import time
import pytest
from i3_battery_block_vgg.timeparser import __parse_time_manually
from i3_battery_block_vgg.timeparser import parse_time
| 29.548387 | 94 | 0.677948 |
07c22c6dbb3092192d2a4fddcabee0db528c9e22 | 4,720 | py | Python | frontends/PyCDE/test/polynomial.py | fyquah/circt | cee685bf12dbf27a3f2274e08cd1af6874f70baa | [
"Apache-2.0"
] | null | null | null | frontends/PyCDE/test/polynomial.py | fyquah/circt | cee685bf12dbf27a3f2274e08cd1af6874f70baa | [
"Apache-2.0"
] | null | null | null | frontends/PyCDE/test/polynomial.py | fyquah/circt | cee685bf12dbf27a3f2274e08cd1af6874f70baa | [
"Apache-2.0"
] | null | null | null | # RUN: %PYTHON% %s 2>&1 | FileCheck %s
from __future__ import annotations
import mlir
import pycde
from pycde import (Input, Output, Parameter, module, externmodule, generator,
types, dim)
from circt.dialects import comb, hw
class Coefficients:
def __init__(self, coeff):
self.coeff = co... | 35.223881 | 272 | 0.63411 |
07c24587d23b16e92b579d57a83d8cb4e84073ef | 3,430 | py | Python | python/examples/service_discovery.py | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | python/examples/service_discovery.py | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | python/examples/service_discovery.py | davidgcameron/arc | 9813ef5f45e5089507953239de8fa2248f5ad32c | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
import arc
import sys
import os
# wait for all the background threads to finish before we destroy the objects they may use
import atexit
# arc.Logger.getRootLogger().addDestination(arc.LogStream(sys.stderr))
# arc.Logger.getRootLogger().setThreshold(arc.DEBUG)
# run the example
example()
| 40.352941 | 129 | 0.717201 |
07c2fc0684398b705e83193b8a4ddd1551624694 | 46,071 | py | Python | core/domain/rights_manager.py | netajik/oppia | d3780352d615db7438e010c5aa5eb60588bb7de6 | [
"Apache-2.0"
] | null | null | null | core/domain/rights_manager.py | netajik/oppia | d3780352d615db7438e010c5aa5eb60588bb7de6 | [
"Apache-2.0"
] | null | null | null | core/domain/rights_manager.py | netajik/oppia | d3780352d615db7438e010c5aa5eb60588bb7de6 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2014 The Oppia 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 requi... | 35.303448 | 80 | 0.692323 |
07c453afd778414ad9fee5c8bcdaf13018eeb9f5 | 1,755 | py | Python | pkg_resources/_vendor/packaging/_typing.py | GDGSNF/setuptools | 3a209029fd2217c039593cd1f6cb378a28527a59 | [
"MIT"
] | null | null | null | pkg_resources/_vendor/packaging/_typing.py | GDGSNF/setuptools | 3a209029fd2217c039593cd1f6cb378a28527a59 | [
"MIT"
] | null | null | null | pkg_resources/_vendor/packaging/_typing.py | GDGSNF/setuptools | 3a209029fd2217c039593cd1f6cb378a28527a59 | [
"MIT"
] | null | null | null | """For neatly implementing static typing in packaging.
`mypy` - the static type analysis tool we use - uses the `typing` module, which
provides core functionality fundamental to mypy's functioning.
Generally, `typing` would be imported at runtime and used in that fashion -
it acts as a no-op at runtime and does not h... | 37.340426 | 79 | 0.756125 |
07c4707b6186eda818ca02fcf8c20fba9ffa25c7 | 7,024 | py | Python | selfdrive/car/toyota/carcontroller.py | aolin480/openpilot | 9ac00c3e5e111a05a0bb10018ccd190571dfff4d | [
"MIT"
] | 70 | 2021-06-18T13:04:10.000Z | 2022-03-31T13:58:09.000Z | selfdrive/car/toyota/carcontroller.py | aolin480/openpilot | 9ac00c3e5e111a05a0bb10018ccd190571dfff4d | [
"MIT"
] | 50 | 2021-06-16T23:52:55.000Z | 2022-03-30T14:05:33.000Z | selfdrive/car/toyota/carcontroller.py | aolin480/openpilot | 9ac00c3e5e111a05a0bb10018ccd190571dfff4d | [
"MIT"
] | 88 | 2021-06-23T21:33:19.000Z | 2022-03-31T07:27:08.000Z | from cereal import car
from common.numpy_fast import clip, interp
from selfdrive.car import apply_toyota_steer_torque_limits, create_gas_interceptor_command, make_can_msg
from selfdrive.car.toyota.toyotacan import create_steer_command, create_ui_command, \
create_accel_command... | 48.777778 | 152 | 0.716259 |
07c5ea304ad9e83dcc3f691f719157c2c8a1317f | 85 | py | Python | app/auth/__init__.py | louisenje/Pitches | 11248906ffa7d1b6ed6c47db0c5e7bd3b4768825 | [
"Unlicense"
] | null | null | null | app/auth/__init__.py | louisenje/Pitches | 11248906ffa7d1b6ed6c47db0c5e7bd3b4768825 | [
"Unlicense"
] | null | null | null | app/auth/__init__.py | louisenje/Pitches | 11248906ffa7d1b6ed6c47db0c5e7bd3b4768825 | [
"Unlicense"
] | null | null | null | from flask import Blueprint
auth=Blueprint('auth',__name__)
from .import views,forms | 21.25 | 31 | 0.811765 |
07c638a7630e99e901331aada0e29b538ff7310d | 1,482 | py | Python | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | 3 | 2019-07-04T03:27:06.000Z | 2019-09-06T08:52:35.000Z | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | null | null | null | forms/QRGenerator.py | Rono-Barto-Co/Project-QR | e80fc5a41f25542038c090311844912790cb1478 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField
from wtforms.validators import DataRequired
| 54.888889 | 89 | 0.323887 |
07c6a477f6bfebee04a539e1d02b2df95226ab91 | 1,259 | py | Python | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | Quiz/m2_advanced_quants/l5_volatility/volatility_estimation.py | jcrangel/AI-for-Trading | c3b865e992f8eb8deda91e7641428eef1d343636 | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import numpy as np
def estimate_volatility(prices, l):
"""Create an exponential moving average model of the volatility of a stock
price, and return the most recent (last) volatility estimate.
Parameters
----------
prices : pandas.Series
A series of adjusted closing... | 31.475 | 96 | 0.659253 |
07c6e4237d951b4abd908ba105b7d327ebecef98 | 484 | py | Python | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc122/abc122_c/9516079.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
n, q = map(int, sys.stdin.readline().split())
s = '$' + sys.stdin.readline().rstrip()
lr = zip(*[map(int, sys.stdin.read().split())] * 2)
if __name__ == '__main__':
ans = main()
print(*ans, sep='\n')
| 23.047619 | 52 | 0.452479 |
07c71ca4f5171ffec7ba2da60f8676b83050c69c | 2,262 | py | Python | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | 1 | 2022-02-19T03:51:38.000Z | 2022-02-19T03:51:38.000Z | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | null | null | null | Decoder.py | gokulsg/Attention-is-all-you-need-implementation-from-scratch | f5eb591d169cbef3ef8b066d8d462fee11badc3b | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
from DecoderLayer import DecoderLayer
import math
| 42.679245 | 122 | 0.597259 |
07c821ec1109c1e7667cac57580d2ee557fe694c | 901 | py | Python | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 9,425 | 2015-01-01T05:59:24.000Z | 2022-03-31T20:44:05.000Z | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 33,507 | 2015-01-01T00:19:56.000Z | 2022-03-31T23:48:20.000Z | salt/grains/nxos.py | babs/salt | c536ea716d5308880b244e7980f4b659d86fc104 | [
"Apache-2.0"
] | 5,810 | 2015-01-01T19:11:45.000Z | 2022-03-31T02:37:20.000Z | """
Grains for Cisco NX-OS minions
.. versionadded:: 2016.11.0
For documentation on setting up the nxos proxy minion look in the documentation
for :mod:`salt.proxy.nxos<salt.proxy.nxos>`.
"""
import logging
import salt.utils.nxos
import salt.utils.platform
from salt.exceptions import NxosClientError
log = logging.... | 21.97561 | 79 | 0.675916 |
07c8e1478041c57a7ff67d2397fd305a48517875 | 3,356 | py | Python | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | tmsproviderapisdk/tms_device.py | tvip/tmsproviderapisdk | f385ddb0d7e87e7a62d1caef3e2c9769e844a4a1 | [
"MIT"
] | null | null | null | from typing import List, Optional, Tuple
from tmsproviderapisdk.tms_extended_model import TmsExtendedModel
| 40.926829 | 120 | 0.598033 |
07ca1045f3d1ae1412959e210adfbad3cf54eff0 | 7,676 | py | Python | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | fealty/fields.py | eddiejessup/fealty | 03745eb98d85bc2a5d08920773ab9c4515462d30 | [
"BSD-3-Clause"
] | null | null | null | """
A class hierarchy relating to fields of all kinds.
"""
from __future__ import print_function, division
import numpy as np
from ciabatta.meta import make_repr_str
from fealty import lattice, field_numerics, walled_field_numerics
class Field(Space):
def density_field(self, r):
return density(r, self.L... | 29.186312 | 74 | 0.60839 |
07cb2143ea47874c58c2e1ce2165dfb24f78e2e2 | 583 | py | Python | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 19 | 2021-04-13T14:01:06.000Z | 2022-02-19T00:45:05.000Z | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 65 | 2021-04-14T09:02:24.000Z | 2022-03-29T07:56:03.000Z | examples/example_django/example_django/asgi.py | cpascariello/aleph-vm | 1b4920bec211ef3bd379e9359f57f06b9308c1a1 | [
"MIT"
] | 9 | 2021-06-01T23:03:28.000Z | 2022-02-17T20:24:57.000Z | """
ASGI config for example_django project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANG... | 26.5 | 78 | 0.766724 |
07cc54388c8061e52f8dc1aa33c14d904afe5143 | 3,964 | py | Python | lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 4 | 2019-11-15T15:21:27.000Z | 2020-07-08T15:04:30.000Z | lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 9 | 2019-11-18T15:54:36.000Z | 2020-07-14T13:56:53.000Z | lectures/extensions/hyperbolic_discounting/replication_code/src/analysis/get_bivariate_distr_data.py | loikein/ekw-lectures | a2f5436f10515ab26eab323fca8c37c91bdc5dcd | [
"MIT"
] | 3 | 2021-01-25T15:41:30.000Z | 2021-09-21T08:51:36.000Z | """Generate values of Method of Simulated Moments criterion function.
Given observed moments and weighting matrix in `OUT_ANALYSIS`, "msm_estimation",
generate values of Method of Simulated Moments criterion function for combinations
of discount factor and present bias values.
The goal is to study the bivariate distr... | 36.703704 | 97 | 0.726791 |
07cdddcbeb3cb4de7a49a05fd2f00ba890200e08 | 180 | py | Python | space_game/events/KeyPressedEvent.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 1 | 2020-11-30T11:21:21.000Z | 2020-11-30T11:21:21.000Z | space_game/events/KeyPressedEvent.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 5 | 2020-11-03T16:46:49.000Z | 2021-01-24T14:29:24.000Z | space_game/events/KeyPressedEvent.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from space_game.domain_names import KeyId
from space_game.events.Event import Event
| 18 | 41 | 0.822222 |
07cebbfa2f7886d8fbfa5e82f77ae6da2ef52744 | 703 | py | Python | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 857 | 2017-05-03T00:59:10.000Z | 2022-03-29T06:45:23.000Z | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 142 | 2017-05-03T02:00:58.000Z | 2022-03-25T20:58:11.000Z | src/oncall/messengers/teams_messenger.py | navoday-91/oncall | 0a977f06bbf308978d0d2c2b46e0aca23937ca9a | [
"BSD-2-Clause"
] | 218 | 2017-05-03T02:04:56.000Z | 2022-03-25T18:28:04.000Z | import pymsteams
import logging
from oncall.constants import TEAMS_SUPPORT
| 30.565217 | 91 | 0.651494 |
07cf43823d8f9a2b976bcf3456b4ba03ebef67d9 | 11,632 | py | Python | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | Laniakea94/BigDL | 4d01734086dda893a7f08ba53251dc3c5c8ecfd1 | [
"Apache-2.0"
] | 3 | 2021-07-14T01:28:47.000Z | 2022-03-02T01:16:32.000Z | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | liangs6212/BigDL | 3c89ff7e8bbdc713110536c18099506811cd2b3a | [
"Apache-2.0"
] | null | null | null | python/chronos/src/bigdl/chronos/autots/model/auto_prophet.py | liangs6212/BigDL | 3c89ff7e8bbdc713110536c18099506811cd2b3a | [
"Apache-2.0"
] | null | null | null | # +
#
# Copyright 2016 The BigDL 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 or agreed to... | 48.066116 | 121 | 0.616145 |
07cfa7c073692f7ff81f78defb2e3541ec3803be | 13,313 | py | Python | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | 1 | 2019-11-11T05:40:30.000Z | 2019-11-11T05:40:30.000Z | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | null | null | null | nf/flows.py | arita37/normalizing-flows | c9896656bfd2007b0c17b801c0fe068560127301 | [
"MIT"
] | null | null | null | import math
import numpy as np
import scipy as sp
import scipy.linalg
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
from nf.utils import unconstrained_RQS
# supported non-linearities: note that the function must be invertible
functional_derivatives = {
torch.tanh: ... | 35.312997 | 80 | 0.533539 |
07d1d3b232129762c8438710d6931bc551a36122 | 5,286 | py | Python | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | null | null | null | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | null | null | null | ioos_qc/config_creator/fx_parser.py | HakaiInstitute/ioos_qc | dfb28ee404a17c8355747b792fba0471093953c4 | [
"Apache-2.0"
] | 1 | 2021-01-20T23:20:06.000Z | 2021-01-20T23:20:06.000Z | # module pyparsing.py
#
# Copyright (c) 2003-2019 Paul T. McGuire
#
# 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, cop... | 31.278107 | 112 | 0.600643 |
07d274563189ebc57a38c1571e12c09ed638080d | 18,828 | py | Python | scanlogger.py | pythonhacker/pyscanlogd | 64d6ad38127243e5c422be7f899ecfa802e1ad21 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:15:06.000Z | 2021-04-03T22:15:06.000Z | scanlogger.py | pythonhacker/pyscanlogd | 64d6ad38127243e5c422be7f899ecfa802e1ad21 | [
"BSD-3-Clause"
] | null | null | null | scanlogger.py | pythonhacker/pyscanlogd | 64d6ad38127243e5c422be7f899ecfa802e1ad21 | [
"BSD-3-Clause"
] | 2 | 2020-12-18T20:06:21.000Z | 2021-04-08T02:47:40.000Z | # -- coding: utf-8
#!/usr/bin/env python
"""
pyscanlogger: Port scan detector/logger tool, inspired
by scanlogd {http://www.openwall.com/scanlogd} but with
added ability to log slow port-scans.
Features
1. Detects all stealth (half-open) and full-connect scans.
2. Detects Idle scan and logs it correctly usi... | 37.8833 | 132 | 0.468929 |
07d2a6693b06381833978cbf344d430f2c2b518b | 4,539 | py | Python | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | 1 | 2021-07-26T17:30:16.000Z | 2021-07-26T17:30:16.000Z | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | null | null | null | src/util/util.py | ashleylst/DSDmodel | 4276c832e0335539aef2ae2b33e23719957a3f08 | [
"MIT"
] | 2 | 2020-06-29T15:43:22.000Z | 2021-05-12T08:25:03.000Z | from itertools import combinations
import copy
def check_following_migration(edges, p=0):
"""
:param edges:
:return:
"""
e = copy.copy(edges)
visited = [False for _ in e]
miggroup = []
cnt = -1
for i in range(0, len(e)):
if visited[i]:
continue
... | 22.695 | 89 | 0.516193 |
07d5b427e69bdc09287f1c66c02797e0db0b274b | 1,218 | py | Python | examples/question_answering/qa_sparse_train.py | ebell495/nn_pruning | 41263ab898117a639f3f219c23a4cecc8bc0e3f3 | [
"Apache-2.0"
] | 250 | 2021-02-22T15:50:04.000Z | 2022-03-31T08:12:02.000Z | examples/question_answering/qa_sparse_train.py | vuiseng9/nn_pruning | 8f4a14dd63d621483cbc1bc4eb34600d66e9e71b | [
"Apache-2.0"
] | 28 | 2021-02-22T15:54:34.000Z | 2022-03-17T08:57:38.000Z | examples/question_answering/qa_sparse_train.py | vuiseng9/nn_pruning | 8f4a14dd63d621483cbc1bc4eb34600d66e9e71b | [
"Apache-2.0"
] | 31 | 2021-02-22T16:07:17.000Z | 2022-03-28T09:17:24.000Z | # coding=utf-8
# Copyright 2020 The HuggingFace Team 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 require... | 43.5 | 128 | 0.769294 |
07d6951331a7c029a2698e9098ae813a023bef49 | 10,729 | py | Python | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 2 | 2019-06-17T21:37:53.000Z | 2020-07-11T03:58:39.000Z | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | ironic/drivers/modules/ilo/raid.py | armohamm/ironic | 21093ca886ed736a7a25bf5e71e05d41e132fd2f | [
"Apache-2.0"
] | 6 | 2019-06-13T12:49:33.000Z | 2021-04-17T16:33:19.000Z | # Copyright 2018 Hewlett Packard Enterprise Development LP
#
# 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 applicabl... | 45.461864 | 79 | 0.609004 |
07d7992d7ae8299b452c378aa6d4664a38bab354 | 1,252 | py | Python | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 19 | 2017-06-21T10:28:24.000Z | 2021-12-31T11:49:28.000Z | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 10 | 2016-11-11T18:57:57.000Z | 2021-02-01T15:33:43.000Z | src/petronia/aid/bootstrap/__init__.py | groboclown/petronia | 486338023d19cee989e92f0c5692680f1a37811f | [
"MIT"
] | 3 | 2017-09-17T03:29:35.000Z | 2019-06-03T10:43:08.000Z |
"""
Common Petronia imports for bootstrap parts of an extension.
This should be imported along with the `simp` module.
"""
from ...base.bus import (
EventBus,
ListenerRegistrar,
ListenerSetup,
QueuePriority,
ExtensionMetadataStruct,
register_event,
EVENT_WILDCARD,
TARGET_WILDCARD,
... | 19.261538 | 60 | 0.747604 |
07d9159827c315605286d46a4f7de494b7d7489e | 3,251 | py | Python | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | 7 | 2020-11-23T09:26:17.000Z | 2021-01-26T08:23:30.000Z | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | null | null | null | examples/dump-properties.py | zachjweiner/pyopencl | 4e2e4f3150c331680e6d9e36c59290411e4a0c40 | [
"Apache-2.0"
] | 1 | 2020-12-14T05:12:10.000Z | 2020-12-14T05:12:10.000Z | import pyopencl as cl
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-s", "--short", action="store_true",
help="don't print all device properties")
(options, args) = parser.parse_args()
for platform in cl.get_platforms():
print(75*"=")
print(platform)
prin... | 38.702381 | 83 | 0.450015 |
07da573d0a32afbfa2ea160efcad1a4e21eef4c3 | 42,106 | py | Python | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | 1 | 2020-07-30T10:54:35.000Z | 2020-07-30T10:54:35.000Z | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | null | null | null | interfaces/acados_template/acados_template/acados_ocp_solver.py | jgillis/acados | 3119e2dda636a8358fbd52247eb0163a167cbc97 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: future_fstrings -*-
#
# Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren,
# Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor,
# Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan,
# Jonas Koenemann, Yutao Chen, Tobias Schls, Jonas Schlagenhauf, Moritz Die... | 40.525505 | 175 | 0.644682 |
07da9e40651ed6fdc8a2ae109d81653125f5c378 | 5,128 | py | Python | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | 3 | 2021-12-10T14:52:23.000Z | 2022-03-22T08:48:08.000Z | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | null | null | null | noise/estimation/PCA/analyticNoiseEstimation_PCA.py | MaikWischow/Camera-Condition-Monitoring | 910f9192d6309a6803ab76c346269fa5029c38e6 | [
"MIT"
] | 2 | 2021-12-13T08:12:52.000Z | 2022-01-17T14:00:48.000Z | import numpy as np
import cv2
import sys
import os
import glob
def im2patch(im, pch_size, stride=1):
'''
Transform image to patches.
Input:
im: 3 x H x W or 1 X H x W image, numpy format
pch_size: (int, int) tuple or integer
stride: (int, int) tuple or integer
'''
if isinsta... | 34.884354 | 136 | 0.576248 |
07dab8d1754575bc1f3f83e4e0cadea3c8dcd3af | 8,104 | py | Python | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | src/biotite/application/application.py | claudejrogers/biotite | 3635bc9071506ecb85ddd9b1dbe6a430295e060e | [
"BSD-3-Clause"
] | null | null | null | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
__name__ = "biotite.application"
__author__ = "Patrick Kunzmann"
__all__ = ["Application", "AppStateError", "TimeoutError", "VersionError",
"AppState", "... | 31.169231 | 79 | 0.604516 |
07db7794b6d98e1a7fc4b7e5727cce2c98e1474f | 8,162 | py | Python | python/paddle/tensor/attribute.py | douch/Paddle | 81c40722869935d6e897f4b1aeb6e6f67606188a | [
"Apache-2.0"
] | 1 | 2021-12-27T02:40:41.000Z | 2021-12-27T02:40:41.000Z | python/paddle/tensor/attribute.py | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | python/paddle/tensor/attribute.py | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2020 PaddlePaddle 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 app... | 33.178862 | 115 | 0.590787 |
07dedb4b0df0aef6400f3a4ca8f79f22e2a6cabd | 2,990 | py | Python | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | appcodec.py | guardhunt/TelemterRC | 679f99b317ecc6cbef6e022ae861cde18594f6a0 | [
"MIT"
] | null | null | null | import evdev
import time
import struct
| 37.375 | 262 | 0.585619 |
07dee507ce31e115b2b94a29d53cdc5c3d4bd0df | 2,316 | py | Python | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 1,761 | 2015-07-10T23:14:17.000Z | 2022-03-30T07:49:49.000Z | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 487 | 2015-07-07T23:21:20.000Z | 2022-03-30T17:13:22.000Z | scripts/examples/OpenMV/16-Codes/find_barcodes.py | jiskra/openmv | a0f321836f77f94d8118910598dcdb79eb784d58 | [
"MIT"
] | 882 | 2015-08-01T08:34:19.000Z | 2022-03-30T07:36:23.000Z | # Barcode Example
#
# This example shows off how easy it is to detect bar codes using the
# OpenMV Cam M7. Barcode detection does not work on the M4 Camera.
import sensor, image, time, math
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.VGA) # High Res!
sensor.set_windowing((640, 80... | 35.090909 | 121 | 0.638169 |
07df8ef3eee337410a8a9059f852b86e3f074f99 | 102 | py | Python | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | Python/factorial.py | devaslooper/Code-Overflow | d7d55ea0f5015bccb5c4100c4240464fcda8504a | [
"MIT"
] | null | null | null | n=int(input("Enter number "))
fact=1
for i in range(1,n+1):
fact=fact*i
print("Factorial is ",fact)
| 17 | 29 | 0.666667 |
07e01a30113159cdf23415b99ef5107294e27bab | 606 | py | Python | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | 1 | 2021-08-04T13:21:22.000Z | 2021-08-04T13:21:22.000Z | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | mundo 3/099.py | thiagofreitascarneiro/Curso-de-Python---Curso-em-Video | 0342e482780b5a1c6f78cddd51d9bfad785c79fa | [
"MIT"
] | null | null | null | import time
# O * para desempacotar o paramtro. Permite atribuir inumeros parametros.
maior(2, 1, 7)
maior(5, 4, 7, 9, 2)
maior(1, 4, 7, 20, 2)
maior(0)
| 23.307692 | 76 | 0.544554 |
07e0af37e19269400d7c0cf5ac0dc3b1672e18e4 | 10,752 | py | Python | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | tests/test_packed_to_padded.py | theycallmepeter/pytorch3d_PBR | bc83c23969ff7843fc05d2da001952b368926174 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import torch
from common_testing import TestCaseMixin, get_random_cuda_device
from pyt... | 39.384615 | 89 | 0.628255 |
07e0ba1b41406f219565825c5f80d1ee0cfaded5 | 8,638 | py | Python | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | 12 | 2021-01-25T07:11:52.000Z | 2022-02-14T11:57:03.000Z | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | null | null | null | easyric/tests/test_io_geotiff.py | HowcanoeWang/EasyRIC | a3420bc7b1e0f1013411565cf0e66dd2d2ba5371 | [
"MIT"
] | null | null | null | import pyproj
import pytest
import numpy as np
from easyric.io import geotiff, shp
from skimage.io import imread
from skimage.color import rgb2gray
import matplotlib.pyplot as plt
| 37.232759 | 117 | 0.683376 |
07e0cae8b52445fc39f360d69691eeb8e3e8f35e | 9,833 | py | Python | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | matecsaj/ebay_rest | dd23236f39e05636eff222f99df1e3699ce47d4a | [
"MIT"
] | 3 | 2021-12-12T04:28:03.000Z | 2022-03-10T03:29:18.000Z | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 33 | 2021-06-16T20:44:36.000Z | 2022-03-30T14:55:06.000Z | src/ebay_rest/api/buy_marketplace_insights/models/item_location.py | jdavv/ebay_rest | 20fc88c6aefdae9ab90f9c1330e79abddcd750cd | [
"MIT"
] | 7 | 2021-06-03T09:30:23.000Z | 2022-03-08T19:51:33.000Z | # coding: utf-8
"""
Marketplace Insights API
<a href=\"https://developer.ebay.com/api-docs/static/versioning.html#limited\" target=\"_blank\"> <img src=\"/cms/img/docs/partners-api.svg\" class=\"legend-icon partners-icon\" title=\"Limited Release\" alt=\"Limited Release\" />(Limited Release)</a> The Marketpl... | 34.992883 | 442 | 0.616699 |
07e1c7308c17fb9509fe646f19b12d537b946ccf | 502 | py | Python | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | 6 | 2017-11-12T05:13:27.000Z | 2022-03-13T07:58:31.000Z | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | null | null | null | fractionalKnapsack.py | aadishgoel2013/Algos-with-Python | 19541607c8ede9a76a8cbbe047e01343080cfd5b | [
"Apache-2.0"
] | null | null | null | # Fractional Knapsack
wt = [40,50,30,10,10,40,30]
pro = [30,20,20,25,5,35,15]
n = len(wt)
data = [ (i,pro[i],wt[i]) for i in range(n) ]
bag = 100
data.sort(key=lambda x: x[1]/x[2], reverse=True)
profit=0
ans=[]
i=0
while i<n:
if data[i][2]<=bag:
bag-=data[i][2]
ans.append(data[i... | 17.310345 | 49 | 0.498008 |