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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e875f9798e9734b835ace23874ebe746b1524a9f | 5,040 | py | Python | mp3tagger.py | ctrl-escp/mp3tagger | 8589279babceea36b187f86062cbc9a1bb7a9d07 | [
"MIT"
] | 1 | 2021-02-22T15:39:21.000Z | 2021-02-22T15:39:21.000Z | mp3tagger.py | ctrl-escp/mp3tagger | 8589279babceea36b187f86062cbc9a1bb7a9d07 | [
"MIT"
] | null | null | null | mp3tagger.py | ctrl-escp/mp3tagger | 8589279babceea36b187f86062cbc9a1bb7a9d07 | [
"MIT"
] | null | null | null | import os
import re
from mutagen.id3 import ID3, TIT2, TALB, TPE1, TRCK, TDRC, TXXX, ID3NoHeaderError
class MP3Tagger:
"""
Iterate over music folders and tag mp3s by extracting the details from
the structure of the folder and the files.
Note: The structure has to be very specific. See example for stru... | 42 | 101 | 0.588294 |
96a9700b886e63b59b5dcee5c52aba8df5e5c99c | 18,357 | py | Python | openpype/hosts/maya/api/setdress.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | null | null | null | openpype/hosts/maya/api/setdress.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | null | null | null | openpype/hosts/maya/api/setdress.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | null | null | null | import logging
import json
import os
import contextlib
import copy
import six
from maya import cmds
from avalon import io
from openpype.pipeline import (
discover_loader_plugins,
loaders_from_representation,
load_container,
update_container,
remove_container,
get_representation_path,
)
from o... | 32.318662 | 80 | 0.60402 |
ed35571053a0ce06541f5834b7022475a44234f7 | 5,226 | py | Python | matplotlib/tutorials_python/advanced/patheffects_guide.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | matplotlib/tutorials_python/advanced/patheffects_guide.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | matplotlib/tutorials_python/advanced/patheffects_guide.py | gottaegbert/penter | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | """
==================
Path effects guide
==================
Defining paths that objects follow on a canvas.
.. py:currentmodule:: matplotlib.patheffects
Matplotlib's :mod:`~matplotlib.patheffects` module provides functionality to
apply a multiple draw stage to any Artist which can be rendered via a
:class:`~matplo... | 43.55 | 96 | 0.638921 |
77fba48dd8a6f1f6749e13aa819b52a95f3dc073 | 9,714 | py | Python | utils/generic/create_report.py | WadhwaniAI/covid-modelling | db9f89bfbec392ad4de6b4583cfab7c3d823c1c9 | [
"MIT"
] | 3 | 2021-06-23T10:27:11.000Z | 2022-02-09T07:50:42.000Z | utils/generic/create_report.py | WadhwaniAI/covid-modelling | db9f89bfbec392ad4de6b4583cfab7c3d823c1c9 | [
"MIT"
] | 3 | 2021-06-23T09:36:29.000Z | 2022-01-13T03:38:16.000Z | utils/generic/create_report.py | WadhwaniAI/covid-modelling | db9f89bfbec392ad4de6b4583cfab7c3d823c1c9 | [
"MIT"
] | null | null | null | import copy
import json
import os
import pickle
from pprint import pformat
import numpy as np
import pandas as pd
import pypandoc
import yaml
from mdutils.mdutils import MdUtils
from utils.fitting.util import CustomEncoder
from utils.generic.config import make_date_str
def create_output(predictions_dict, output_fol... | 42.234783 | 115 | 0.67902 |
3a05bcedc371f45435dc3a1f57ccbef6a0f98c9b | 7,818 | py | Python | cogs/xandy.py | brainfrozeno00o/xandy-bot | cbde3fc523a74e93d108cb9ce999dbca14e35651 | [
"MIT"
] | 1 | 2021-11-01T11:12:22.000Z | 2021-11-01T11:12:22.000Z | cogs/xandy.py | brainfrozeno00o/xandy-bot | cbde3fc523a74e93d108cb9ce999dbca14e35651 | [
"MIT"
] | 13 | 2021-09-27T00:06:26.000Z | 2021-11-27T06:54:21.000Z | cogs/xandy.py | brainfrozeno00o/xandy-bot | cbde3fc523a74e93d108cb9ce999dbca14e35651 | [
"MIT"
] | null | null | null | from random import randint
from discord import Embed
from discord.ext import commands
from discord.errors import Forbidden
from logging import getLogger
logger = getLogger(__name__)
# helper method for sending the embed on the channel where the commmand is called
async def send_embed(ctx, embed):
"""
Basicall... | 35.862385 | 113 | 0.577513 |
29e786f2d2b0a05157d738253e55672bec7f4f3b | 293,245 | py | Python | metadata-ingestion/src/datahub/metadata/schema_classes.py | kuntalkumarbasu/datahub | 550a9deab0f32ee4314675b6497ee370e35b4397 | [
"Apache-2.0"
] | null | null | null | metadata-ingestion/src/datahub/metadata/schema_classes.py | kuntalkumarbasu/datahub | 550a9deab0f32ee4314675b6497ee370e35b4397 | [
"Apache-2.0"
] | null | null | null | metadata-ingestion/src/datahub/metadata/schema_classes.py | kuntalkumarbasu/datahub | 550a9deab0f32ee4314675b6497ee370e35b4397 | [
"Apache-2.0"
] | null | null | null | # flake8: noqa
# This file is autogenerated by /metadata-ingestion/scripts/avro_codegen.py
# Do not modify manually!
# fmt: off
import json
import os.path
import decimal
import datetime
import six
from avrogen.dict_wrapper import DictWrapper
from avrogen import avrojson
from avro.schema import RecordSchema, SchemaFro... | 37.194952 | 530 | 0.654923 |
f1c5d5dc5807ac574886765f9ad2c34d866f0b9c | 26,451 | py | Python | meditation/meditation.py | tmfds/dfk | 91b6f95a4630b57deecf87cf4850b6576646c7d1 | [
"MIT"
] | null | null | null | meditation/meditation.py | tmfds/dfk | 91b6f95a4630b57deecf87cf4850b6576646c7d1 | [
"MIT"
] | null | null | null | meditation/meditation.py | tmfds/dfk | 91b6f95a4630b57deecf87cf4850b6576646c7d1 | [
"MIT"
] | null | null | null | from web3 import Web3
CONTRACT_ADDRESS = '0x0594d86b2923076a2316eaea4e1ca286daa142c1'
ABI = """
[
{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"atunementItemAddress","type":"address"}],"name":"AttunementCrystalAdded","type":"event"},
{"anonymous":false,"inputs":[{"... | 134.954082 | 9,954 | 0.678235 |
2589afbeeb7d5098c002f2ea9e5a127fd87be61a | 9,541 | py | Python | ppcls/modeling/architectures/se_resnext_vd.py | wangxicoding/PaddleClas | b37f79a6dac6bf134b016cfed3ced877aaefa5f3 | [
"Apache-2.0"
] | null | null | null | ppcls/modeling/architectures/se_resnext_vd.py | wangxicoding/PaddleClas | b37f79a6dac6bf134b016cfed3ced877aaefa5f3 | [
"Apache-2.0"
] | null | null | null | ppcls/modeling/architectures/se_resnext_vd.py | wangxicoding/PaddleClas | b37f79a6dac6bf134b016cfed3ced877aaefa5f3 | [
"Apache-2.0"
] | null | null | null | # copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 33.36014 | 79 | 0.564511 |
51402bef5349288f3ab48dba2b52277e539c60e9 | 7,407 | py | Python | rclpy/test/test_task.py | werner-ne/rclpy | 11a07f81bdd23cc9a40fb2bedda6557b30ad5194 | [
"Apache-2.0"
] | null | null | null | rclpy/test/test_task.py | werner-ne/rclpy | 11a07f81bdd23cc9a40fb2bedda6557b30ad5194 | [
"Apache-2.0"
] | null | null | null | rclpy/test/test_task.py | werner-ne/rclpy | 11a07f81bdd23cc9a40fb2bedda6557b30ad5194 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Open Source Robotics Foundation, 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... | 26.453571 | 76 | 0.595383 |
e7706ebcf5e1d361a0a464e89b382e47cdcb8068 | 1,180 | py | Python | test/hummingbot/strategy/dev_1_get_order_book/test_dev_1_get_order_book_config_map.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 3,027 | 2019-04-04T18:52:17.000Z | 2022-03-30T09:38:34.000Z | test/hummingbot/strategy/dev_1_get_order_book/test_dev_1_get_order_book_config_map.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 4,080 | 2019-04-04T19:51:11.000Z | 2022-03-31T23:45:21.000Z | test/hummingbot/strategy/dev_1_get_order_book/test_dev_1_get_order_book_config_map.py | BGTCapital/hummingbot | 2c50f50d67cedccf0ef4d8e3f4c8cdce3dc87242 | [
"Apache-2.0"
] | 1,342 | 2019-04-04T20:50:53.000Z | 2022-03-31T15:22:36.000Z | import unittest
from copy import deepcopy
from hummingbot.client.settings import AllConnectorSettings
from hummingbot.strategy.dev_1_get_order_book.dev_1_get_order_book_config_map import (
dev_1_get_order_book_config_map,
trading_pair_prompt,
)
class Dev1GetOrderBookConfigMapTest(unittest.TestCase):
@cl... | 30.25641 | 115 | 0.711017 |
1fa2e6f363a860308819417a59270d0e81808eb9 | 2,538 | py | Python | app/recipe/tests/test_tags_api.py | jimalman/recipe-app-api | dcf64199033d68b80c02816389c1c9966b9d4a32 | [
"MIT"
] | null | null | null | app/recipe/tests/test_tags_api.py | jimalman/recipe-app-api | dcf64199033d68b80c02816389c1c9966b9d4a32 | [
"MIT"
] | null | null | null | app/recipe/tests/test_tags_api.py | jimalman/recipe-app-api | dcf64199033d68b80c02816389c1c9966b9d4a32 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Tag
from recipe.serializers import TagSerializer
TAGS_URL = reverse('recipe:tag-list')
class PublicTag... | 30.578313 | 71 | 0.654452 |
0299bc06edeaca31554c5006346e97094c9924c5 | 385 | py | Python | plugins/cosigner_pool/__init__.py | johnlito123/electrum-xuez | 4eb35889f95e31f0a08d5488082df9ab94b4c3ca | [
"MIT"
] | null | null | null | plugins/cosigner_pool/__init__.py | johnlito123/electrum-xuez | 4eb35889f95e31f0a08d5488082df9ab94b4c3ca | [
"MIT"
] | null | null | null | plugins/cosigner_pool/__init__.py | johnlito123/electrum-xuez | 4eb35889f95e31f0a08d5488082df9ab94b4c3ca | [
"MIT"
] | 4 | 2018-07-07T16:35:50.000Z | 2018-12-25T16:02:52.000Z | from electrum_xuez.i18n import _
fullname = _('Cosigner Pool')
description = ' '.join([
_("This plugin facilitates the use of multi-signatures wallets."),
_("It sends and receives partially signed transactions from/to your cosigner wallet."),
_("Transactions are encrypted and stored on a remote server.")
])... | 38.5 | 91 | 0.722078 |
c7d9b5c1298d974acb6a23c5f8a4c88b24b93ea9 | 140 | py | Python | exercicios/desafio 61.py | ibianco91/curso_em_video | 13829b5d2e2290fcffe47ef0ab902b5e4a24a0ed | [
"MIT"
] | null | null | null | exercicios/desafio 61.py | ibianco91/curso_em_video | 13829b5d2e2290fcffe47ef0ab902b5e4a24a0ed | [
"MIT"
] | null | null | null | exercicios/desafio 61.py | ibianco91/curso_em_video | 13829b5d2e2290fcffe47ef0ab902b5e4a24a0ed | [
"MIT"
] | null | null | null | a = int(input('Digite o primeiro termo: '))
r = int(input('Digite a razão: '))
c = 1
while c <= 10:
a +=r
c +=1
print(a-r)
| 10.769231 | 43 | 0.507143 |
ba1eca4b3fc14c97148de3f4410fd3667d5eae73 | 39,219 | py | Python | pyvcloud/vcd/org.py | pacogomez/pyvcloud | 731aded20b999d269472caf65df774c284dd49b6 | [
"Apache-2.0"
] | null | null | null | pyvcloud/vcd/org.py | pacogomez/pyvcloud | 731aded20b999d269472caf65df774c284dd49b6 | [
"Apache-2.0"
] | 1 | 2017-12-28T13:50:54.000Z | 2017-12-28T17:28:15.000Z | pyvcloud/vcd/org.py | pacogomez/pyvcloud | 731aded20b999d269472caf65df774c284dd49b6 | [
"Apache-2.0"
] | 1 | 2017-12-28T10:22:55.000Z | 2017-12-28T10:22:55.000Z | # VMware vCloud Director Python SDK
# Copyright (c) 2014 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#... | 43.240353 | 79 | 0.577118 |
c6306d2d5e96eb50b40f4580fa2008da4fb4d13a | 266 | py | Python | objects/node.py | emmaskychuks/cis479-search-algorithms | f77c709acac6559dd175485e8079e5fe76dd4b83 | [
"Apache-2.0"
] | null | null | null | objects/node.py | emmaskychuks/cis479-search-algorithms | f77c709acac6559dd175485e8079e5fe76dd4b83 | [
"Apache-2.0"
] | null | null | null | objects/node.py | emmaskychuks/cis479-search-algorithms | f77c709acac6559dd175485e8079e5fe76dd4b83 | [
"Apache-2.0"
] | null | null | null | class Node:
def __init__(self, x, y):
self.x = x
self.y = y
self.visited = False
self.value = "[]"
self.cost = 0
self.aStarCost = 0
def __lt__(self, other):
return self.aStarCost < other.aStarCost
| 22.166667 | 47 | 0.515038 |
c07031c7db03b69ec4a9fd0719ceec2ec49853ed | 4,342 | py | Python | contrib/seeds/generate-seeds.py | SinduNagalingam/KunoCoin | 4f4b3b5ede5a0780768b241d6f2d7f410cd14609 | [
"MIT"
] | null | null | null | contrib/seeds/generate-seeds.py | SinduNagalingam/KunoCoin | 4f4b3b5ede5a0780768b241d6f2d7f410cd14609 | [
"MIT"
] | 1 | 2019-01-04T13:55:16.000Z | 2019-01-31T09:54:47.000Z | contrib/seeds/generate-seeds.py | SinduNagalingam/KunoCoin | 4f4b3b5ede5a0780768b241d6f2d7f410cd14609 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2014-2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Script to generate list of seed nodes for chainparams.cpp.
This script expects two text files in the dir... | 31.23741 | 98 | 0.579687 |
650f6896cbbdfc3766cd158e3fbf0e43e4fb48ce | 33,517 | py | Python | src/sentry/testutils/factories.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 2 | 2019-03-04T12:45:54.000Z | 2019-03-04T12:45:55.000Z | src/sentry/testutils/factories.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | 196 | 2019-06-10T08:34:10.000Z | 2022-02-22T01:26:13.000Z | src/sentry/testutils/factories.py | uandco/sentry | 5b8d45cb71c6617dac8e64265848623fbfce9c99 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.conf import settings
from django.utils.importlib import import_module
import copy
import io
import os
import petname
import random
import six
import warnings
from django.utils import timezone
from django.util... | 35.580679 | 324 | 0.512874 |
95c476941ffe36ed5adfcfccfe7c9a96cb15454d | 1,882 | py | Python | tests/testing/helpers/test__check_dfs_passed.py | munichpavel/tubular | 53e277dea2cc869702f2ed49f2b495bf79b92355 | [
"BSD-3-Clause"
] | null | null | null | tests/testing/helpers/test__check_dfs_passed.py | munichpavel/tubular | 53e277dea2cc869702f2ed49f2b495bf79b92355 | [
"BSD-3-Clause"
] | null | null | null | tests/testing/helpers/test__check_dfs_passed.py | munichpavel/tubular | 53e277dea2cc869702f2ed49f2b495bf79b92355 | [
"BSD-3-Clause"
] | null | null | null | import pytest
import inspect
import tubular.testing.helpers as h
import pandas as pd
def test_arguments():
"""Test arguments for arguments of tubular.testing.helpers._check_dfs_passed."""
expected_arguments = ["df_1", "df_2"]
arg_spec = inspect.getfullargspec(h._check_dfs_passed)
arguments = arg_sp... | 30.852459 | 185 | 0.665781 |
711fae526a87b18a29754b5f97410b01a778587f | 11,178 | py | Python | src/rayoptics/elem/surface.py | ajeddeloh/ray-optics | 63776c4efd06378b7742c14f453cf6f333dfd675 | [
"BSD-3-Clause"
] | null | null | null | src/rayoptics/elem/surface.py | ajeddeloh/ray-optics | 63776c4efd06378b7742c14f453cf6f333dfd675 | [
"BSD-3-Clause"
] | null | null | null | src/rayoptics/elem/surface.py | ajeddeloh/ray-optics | 63776c4efd06378b7742c14f453cf6f333dfd675 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright © 2017 Michael J. Hayford
""" Module for optical surface related classes
Surface
Container of profile, extent, position and orientation information of
the surface
DecenterData
Maintains data and actions to support 4 types of po... | 30.793388 | 96 | 0.584809 |
57f6b2fa6969012414c648eae5e4bd49ec118473 | 4,251 | py | Python | mthree/test/test_utils.py | gadial/mthree | b351c358e0be45c1e6bf73e5fce5540736cce998 | [
"Apache-2.0"
] | 17 | 2021-08-31T04:34:31.000Z | 2022-03-04T13:07:22.000Z | mthree/test/test_utils.py | gadial/mthree | b351c358e0be45c1e6bf73e5fce5540736cce998 | [
"Apache-2.0"
] | 35 | 2021-08-16T15:56:32.000Z | 2022-03-23T16:34:35.000Z | mthree/test/test_utils.py | gadial/mthree | b351c358e0be45c1e6bf73e5fce5540736cce998 | [
"Apache-2.0"
] | 6 | 2021-08-16T15:47:36.000Z | 2022-01-31T15:16:03.000Z | # This code is part of Mthree.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 36.965217 | 90 | 0.67937 |
0c1c5266c29b46fe19ad3037f490d065a87bb2c8 | 1,404 | py | Python | GridControlformyRs2/src/Scripts/python/pythonpath/indoc/dialogs.py | p--q/GridControlformyRs2 | 22b6b70d64fdfbfa16eeceda577c4a129856ed35 | [
"BSD-3-Clause"
] | null | null | null | GridControlformyRs2/src/Scripts/python/pythonpath/indoc/dialogs.py | p--q/GridControlformyRs2 | 22b6b70d64fdfbfa16eeceda577c4a129856ed35 | [
"BSD-3-Clause"
] | null | null | null | GridControlformyRs2/src/Scripts/python/pythonpath/indoc/dialogs.py | p--q/GridControlformyRs2 | 22b6b70d64fdfbfa16eeceda577c4a129856ed35 | [
"BSD-3-Clause"
] | null | null | null | #!/opt/libreoffice5.4/program/python
# -*- coding: utf-8 -*-
# import pydevd; pydevd.settrace(stdoutToServer=True, stderrToServer=True)
from indoc import staticdialog3, historydialog8, datedialog1
from com.sun.star.awt import MouseButton # 定数
def mousePressed(enhancedmouseevent, xscriptcontext): # マウスボタンを押した時。control... | 52 | 98 | 0.736467 |
c6dd0611e82d3158def703a4c1ab169c49fe6878 | 1,041 | py | Python | com/vmware/vapi/security/privilege.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/security/privilege.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | com/vmware/vapi/security/privilege.py | sumitrsystems/Vmware | 7705d9979bee71f02c71d63890616409044cba08 | [
"MIT"
] | null | null | null | """
Privilege Validator interface
"""
__author__ = 'VMware, Inc.'
__copyright__ = 'Copyright 2018 VMware, Inc. All rights reserved. -- VMware Confidential' # pylint: disable=line-too-long
from vmware.vapi.lib.log import get_vapi_logger
# Configure logging
logger = get_vapi_logger(__name__)
class PrivilegeValidat... | 23.133333 | 123 | 0.716619 |
de86f53884f81bd748b2da70a8e18c08c63c0801 | 1,727 | py | Python | first_strike/controllers.py | WoolleySheep/first-strike | 15f93cccba3cfdb2c2b75524004a08bfef42235a | [
"MIT"
] | null | null | null | first_strike/controllers.py | WoolleySheep/first-strike | 15f93cccba3cfdb2c2b75524004a08bfef42235a | [
"MIT"
] | null | null | null | first_strike/controllers.py | WoolleySheep/first-strike | 15f93cccba3cfdb2c2b75524004a08bfef42235a | [
"MIT"
] | null | null | null | from copy import deepcopy
from meta_controller import RocketMetaController, TurretMetaController
class Controllers:
def __init__(self, parameters, history, controller_parameters):
self.parameters = parameters
self.history = history
self.state_copy = [None, None]
(
rock... | 28.783333 | 86 | 0.636943 |
70ec485106a40306286a717be4c2cb42a7898b59 | 739 | py | Python | lib_pro/processor/utils/box_coder_builder.py | laobadao/TF_VS_Caffe | 943b47daefa42f07db285a331647d09669085f9f | [
"MIT"
] | null | null | null | lib_pro/processor/utils/box_coder_builder.py | laobadao/TF_VS_Caffe | 943b47daefa42f07db285a331647d09669085f9f | [
"MIT"
] | null | null | null | lib_pro/processor/utils/box_coder_builder.py | laobadao/TF_VS_Caffe | 943b47daefa42f07db285a331647d09669085f9f | [
"MIT"
] | null | null | null | """A function to build an object detection box coder from configuration."""
from ..utils import faster_rcnn_box_coder
def build(box_coder_config):
"""Builds a box coder object based on the box coder config.
Args:
box_coder_config: A box_coder.proto object containing the config for the
desired b... | 28.423077 | 116 | 0.703654 |
da4ce6f0d40f035602b0b4af9d2bd6917ff99c30 | 2,586 | py | Python | neo/Prompt/Commands/BuildNRun.py | iNomaD/neo-python | bf27e91c041daa05b1d73c96d97a69777048f3da | [
"MIT"
] | null | null | null | neo/Prompt/Commands/BuildNRun.py | iNomaD/neo-python | bf27e91c041daa05b1d73c96d97a69777048f3da | [
"MIT"
] | null | null | null | neo/Prompt/Commands/BuildNRun.py | iNomaD/neo-python | bf27e91c041daa05b1d73c96d97a69777048f3da | [
"MIT"
] | null | null | null | from neo.Prompt.Utils import get_arg
from neo.Prompt.Commands.LoadSmartContract import GatherLoadedContractParams
from neo.Prompt.Commands.Invoke import test_deploy_and_invoke
from neocore.Fixed8 import Fixed8
from boa.compiler import Compiler
import binascii
import traceback
def LoadAndRun(arguments, wallet):
... | 28.417582 | 92 | 0.530162 |
2f34acacfe2bc2c4fc354fdc2e1155b839edcac1 | 2,521 | py | Python | sdk/python/pulumi_gcp/compute/project_metadata.py | pulumi-bot/pulumi-gcp | 43ff11bf1c99b4e9e493f61d9755e359b686ae67 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/compute/project_metadata.py | pulumi-bot/pulumi-gcp | 43ff11bf1c99b4e9e493f61d9755e359b686ae67 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_gcp/compute/project_metadata.py | pulumi-bot/pulumi-gcp | 43ff11bf1c99b4e9e493f61d9755e359b686ae67 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import pulumi
import pulumi.runtime
class ProjectMetadata(pulumi.CustomResource):
"""
Manages metadata common to all instances... | 41.327869 | 101 | 0.663229 |
57b25bc80a116f9d8289a18c6f99ae58ce416fc9 | 3,358 | py | Python | internal/modpack.py | MuXiu1997/GTNH-translation-compare | 8ca0d266b764e3707e86ff140a9c5d17292f11b3 | [
"MIT"
] | null | null | null | internal/modpack.py | MuXiu1997/GTNH-translation-compare | 8ca0d266b764e3707e86ff140a9c5d17292f11b3 | [
"MIT"
] | null | null | null | internal/modpack.py | MuXiu1997/GTNH-translation-compare | 8ca0d266b764e3707e86ff140a9c5d17292f11b3 | [
"MIT"
] | null | null | null | import json
import pathlib
import zipfile
from os import path
from typing import List, Dict, Sequence
from zipfile import ZipFile
import utils
from .comparable import Comparable
from .langfiletype import LangFiletype
from .scriptfiletype import ScriptFiletype
class ModPack:
def __init__(self, pack_path: pathlib.... | 40.457831 | 117 | 0.596784 |
2a0e9b5003880d564615ddf7994ef5aabaa8be89 | 1,822 | py | Python | scripts/configure.py | wcDogg/knotty | 9333d6cf7f1d6944c6820db25c8bca39f0a7a0c1 | [
"CC0-1.0"
] | null | null | null | scripts/configure.py | wcDogg/knotty | 9333d6cf7f1d6944c6820db25c8bca39f0a7a0c1 | [
"CC0-1.0"
] | null | null | null | scripts/configure.py | wcDogg/knotty | 9333d6cf7f1d6944c6820db25c8bca39f0a7a0c1 | [
"CC0-1.0"
] | null | null | null | from pathlib import Path
# -----------------------------------
# Project Directories
# -----------------------------------
DIR_PROJECT = Path(__file__).parent.parent
DIR_TEMP = Path(DIR_PROJECT / 'temp')
DIR_IMAGES = Path(DIR_PROJECT / 'assets')
DIR_CSV = Path(DIR_PROJECT / 'files')
DIR_JSON = Path(DIR_PROJECT / 'file... | 30.881356 | 59 | 0.59056 |
9fa4c29c85bf71c1b19f35eb37eddf9b207e907b | 549 | py | Python | MyMusicApp/blog/migrations/0010_auto_20191006_0137.py | kells4real/MusicApp | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | MyMusicApp/blog/migrations/0010_auto_20191006_0137.py | kells4real/MusicApp | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | MyMusicApp/blog/migrations/0010_auto_20191006_0137.py | kells4real/MusicApp | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | [
"bzip2-1.0.6",
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-06 00:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0009_auto_20190914_2201'),
]
operations = [
migrations.AddField(
model_name='comment',
name='approved',
... | 22.875 | 53 | 0.581056 |
18ee1ed41326548ef737d63d8fd2543089997880 | 562 | py | Python | Regs/Block_1/R1980.py | BernardoB95/Extrator_SPEDFiscal | 10b4697833c561d24654251da5f22d044f03fc16 | [
"MIT"
] | 1 | 2021-04-25T13:53:20.000Z | 2021-04-25T13:53:20.000Z | Regs/Block_1/R1980.py | BernardoB95/Extrator_SPEDFiscal | 10b4697833c561d24654251da5f22d044f03fc16 | [
"MIT"
] | null | null | null | Regs/Block_1/R1980.py | BernardoB95/Extrator_SPEDFiscal | 10b4697833c561d24654251da5f22d044f03fc16 | [
"MIT"
] | null | null | null | from ..IReg import IReg
class R1980(IReg):
def __init__(self):
self._header = ['REG',
'IND_AP',
'G4_01',
'G4_02',
'G4_03',
'G4_04',
'G4_05',
... | 24.434783 | 33 | 0.252669 |
e712e1b9a26df27f26da57ddc7eafce57824392f | 56,450 | py | Python | salt/client/__init__.py | trebuchet-deploy/salt | dcdf1148248912a4592f0f48d2303903588729cc | [
"Apache-2.0"
] | null | null | null | salt/client/__init__.py | trebuchet-deploy/salt | dcdf1148248912a4592f0f48d2303903588729cc | [
"Apache-2.0"
] | null | null | null | salt/client/__init__.py | trebuchet-deploy/salt | dcdf1148248912a4592f0f48d2303903588729cc | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
The client module is used to create a client connection to the publisher
The data structure needs to be:
{'enc': 'clear',
'load': {'fun': '<mod.callable>',
'arg':, ('arg1', 'arg2', ...),
'tgt': '<glob or id>',
'key': '<read in the key file>'... | 34.759852 | 112 | 0.491408 |
27054226a91fdb95905a4f2e64c839a3b80e450e | 1,755 | py | Python | accounts/forms.py | MrRezoo/django-online-shop | 2b0044ed41fe1b89c5fd2c2ea73822c6f43b5f6e | [
"MIT"
] | 1 | 2021-09-14T14:54:16.000Z | 2021-09-14T14:54:16.000Z | accounts/forms.py | MrRezoo/django-online-shop | 2b0044ed41fe1b89c5fd2c2ea73822c6f43b5f6e | [
"MIT"
] | 1 | 2022-01-18T07:20:57.000Z | 2022-01-18T07:20:57.000Z | accounts/forms.py | MrRezoo/django-online-shop | 2b0044ed41fe1b89c5fd2c2ea73822c6f43b5f6e | [
"MIT"
] | null | null | null | from django import forms
from accounts.models import User
from django.contrib.auth.forms import ReadOnlyPasswordHashField
class UserCreationForm(forms.ModelForm):
password1 = forms.CharField(label='password', widget=forms.PasswordInput)
password2 = forms.CharField(label='confirm password', widget=forms.Passwo... | 36.5625 | 105 | 0.691738 |
0a7358c1072c692118f8c185bb82b0efb22c6ff8 | 2,295 | py | Python | tools/publish_doc.py | jandom/hawktracer | e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8 | [
"MIT"
] | 116 | 2018-05-04T14:51:58.000Z | 2022-02-08T23:47:28.000Z | tools/publish_doc.py | jandom/hawktracer | e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8 | [
"MIT"
] | 58 | 2018-05-04T15:00:15.000Z | 2020-11-06T11:34:11.000Z | tools/publish_doc.py | beila/hawktracer | d427c6a66097787f4e5431e1cae0278f1f03ca4c | [
"MIT"
] | 32 | 2018-05-05T12:05:56.000Z | 2021-12-06T02:18:05.000Z | import argparse
import distutils.dir_util
import os
import subprocess
import sys
import tempfile
def call_process(call_args, custom_error, exit_on_error=False):
try:
subprocess.check_output(call_args)
except subprocess.CalledProcessError as e:
print(e.output)
print('{}. Return code: {}... | 38.25 | 117 | 0.677996 |
bb8dd02dbc0e681279a512813eab78521f93df3d | 1,266 | py | Python | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/seasonality_event_status.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/seasonality_event_status.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/enums/types/seasonality_event_status.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- 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 or... | 29.44186 | 74 | 0.71485 |
c65e9e27c3609c2ae869869035f66df948896e61 | 4,641 | py | Python | build/gn/verify_depfile.py | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 210 | 2019-02-05T12:45:09.000Z | 2022-03-28T07:59:06.000Z | build/gn/verify_depfile.py | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | build/gn/verify_depfile.py | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 73 | 2019-03-06T18:55:23.000Z | 2022-03-26T12:04:51.000Z | #!/usr/bin/env python
# Copyright 2020 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
import argparse
import os.path
import sys
# Exempt targets with these prefixes.
EXEMPTION_PREFIX... | 32.229167 | 96 | 0.639302 |
0b428d7feddad672a028a463af01c41fee757894 | 23,919 | py | Python | environ/lib/python3.8/site-packages/sqlalchemy/ext/asyncio/session.py | EsauKip/Blog-post | e5716af25139ab4e867767990f04f0749fc9bf40 | [
"MIT"
] | 1 | 2022-03-12T08:56:51.000Z | 2022-03-12T08:56:51.000Z | environ/lib/python3.8/site-packages/sqlalchemy/ext/asyncio/session.py | EsauKip/Blog-post | e5716af25139ab4e867767990f04f0749fc9bf40 | [
"MIT"
] | 1 | 2022-03-17T13:12:17.000Z | 2022-03-17T13:12:17.000Z | environ/lib/python3.8/site-packages/sqlalchemy/ext/asyncio/session.py | EsauKip/Blog-post | e5716af25139ab4e867767990f04f0749fc9bf40 | [
"MIT"
] | null | null | null | # ext/asyncio/session.py
# Copyright (C) 2020-2022 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
from . import engine
from . import result as _result
from .base import Revers... | 31.807181 | 84 | 0.632552 |
60dcd4e6eea802b7eef96589df1b8a530d3f3765 | 14,269 | py | Python | tests/test_registry.py | rablack/skoopy | c0e5d35dd9dea3266d4030a7ff8c9891cab57fec | [
"MIT"
] | 1 | 2020-08-05T04:52:51.000Z | 2020-08-05T04:52:51.000Z | tests/test_registry.py | rablack/skoopy | c0e5d35dd9dea3266d4030a7ff8c9891cab57fec | [
"MIT"
] | 29 | 2018-05-14T20:52:54.000Z | 2018-07-09T19:37:52.000Z | tests/test_registry.py | rablack/skoopy | c0e5d35dd9dea3266d4030a7ff8c9891cab57fec | [
"MIT"
] | null | null | null | """
Test cases for the skoopy.registry module
"""
import unittest
import sys
import io
import os
import tempfile
import json
# If this test is being executed standalone, add '..' to the path
# to start searching for packages from the top level of the app.
if __name__ == "__main__":
sys.path.insert(0, '..')
from... | 38.152406 | 102 | 0.604597 |
bb847103ee6ed91a476641e0d961f3c443e4edee | 1,945 | py | Python | Mass-DM/discum-scraper.py | devhill535/dmmass | 24220574adb1a16d679d8c98c536f18cc2e0cac1 | [
"MIT"
] | 81 | 2021-10-12T13:42:23.000Z | 2022-03-19T15:11:16.000Z | Mass-DM/discum-scraper.py | devhill535/dmmass | 24220574adb1a16d679d8c98c536f18cc2e0cac1 | [
"MIT"
] | 4 | 2021-11-01T01:22:15.000Z | 2022-01-18T01:30:24.000Z | Mass-DM/discum-scraper.py | devhill535/dmmass | 24220574adb1a16d679d8c98c536f18cc2e0cac1 | [
"MIT"
] | 50 | 2021-10-13T00:15:42.000Z | 2022-03-24T13:29:16.000Z | import time
start = time.time()
import sys
import subprocess
# python -m pip install --user --upgrade git+https://github.com/Merubokkusu/Discord-S.C.U.M#egg=discum
try:
import discum
except ImportError:
try:
subprocess.check_call([sys.executable, "-m", "pip", "install", '--user', "--upgrade",
... | 38.9 | 127 | 0.701799 |
7e36bd31008e6c4511168b0f2bfd17a8ff842bfb | 11,989 | py | Python | examples/speech_to_text/data/speech_to_text_dataset_with_src.py | indra622/FBK-fairseq | 4357af09ef2ad1594f75a5b7bcc02d5b10cad2e5 | [
"MIT"
] | 2 | 2021-09-14T06:42:08.000Z | 2021-11-09T21:15:18.000Z | examples/speech_to_text/data/speech_to_text_dataset_with_src.py | indra622/FBK-fairseq | 4357af09ef2ad1594f75a5b7bcc02d5b10cad2e5 | [
"MIT"
] | null | null | null | examples/speech_to_text/data/speech_to_text_dataset_with_src.py | indra622/FBK-fairseq | 4357af09ef2ad1594f75a5b7bcc02d5b10cad2e5 | [
"MIT"
] | 3 | 2021-09-06T10:18:39.000Z | 2021-12-29T10:52:51.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import csv
import logging
import os.path as op
from typing import Dict, List, Optional, Tuple
import torch
from fairseq.data imp... | 38.303514 | 101 | 0.568855 |
012bbc2daad5a81adce4f226475179ecc85b2fb8 | 17,869 | py | Python | keras/utils/tf_utils.py | Bhavay192/keras | ed6ca50cceb2a071f86e5e9af5076b1d62fd2531 | [
"Apache-2.0"
] | 1 | 2022-03-12T16:50:13.000Z | 2022-03-12T16:50:13.000Z | keras/utils/tf_utils.py | sairamadithya/keras | 42bf9972492f47c3d3c249de9c20942ba217937d | [
"Apache-2.0"
] | null | null | null | keras/utils/tf_utils.py | sairamadithya/keras | 42bf9972492f47c3d3c249de9c20942ba217937d | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 31.184991 | 93 | 0.715205 |
b7dfc03aa8df2ede7e0d65481e17cd9961294899 | 3,367 | py | Python | vi/cmd_base.py | my-personal-forks/Vintageous | 797ec8f1b0ef12d045949dc19850ba34a4f1c557 | [
"MIT"
] | 1,146 | 2015-01-05T02:23:09.000Z | 2022-03-23T07:22:50.000Z | vi/cmd_base.py | my-personal-forks/Vintageous | 797ec8f1b0ef12d045949dc19850ba34a4f1c557 | [
"MIT"
] | 315 | 2015-01-03T12:42:12.000Z | 2020-09-24T20:01:47.000Z | vi/cmd_base.py | my-personal-forks/Vintageous | 797ec8f1b0ef12d045949dc19850ba34a4f1c557 | [
"MIT"
] | 138 | 2015-01-04T17:54:46.000Z | 2021-02-26T14:56:09.000Z | class cmd_types:
"""
Types of command.
"""
MOTION = 1
ACTION = 2
ANY = 3
OTHER = 4
USER = 5
OPEN_NAME_SPACE = 6
class ViCommandDefBase(object):
"""
Base class for all Vim commands.
"""
_serializable = ['_inp',]
... | 26.511811 | 86 | 0.555985 |
c1a1067f71031f9c9b0e3c1f4b571e8978a0f17a | 2,629 | py | Python | rllib/examples/coin_game_env.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | rllib/examples/coin_game_env.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | 41 | 2021-09-21T01:13:48.000Z | 2022-03-19T07:12:22.000Z | rllib/examples/coin_game_env.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | ##########
# Contribution by the Center on Long-Term Risk:
# https://github.com/longtermrisk/marltoolbox
##########
import argparse
import os
import ray
from ray import tune
from ray.rllib.algorithms.ppo import PPO
from ray.rllib.examples.env.coin_game_non_vectorized_env import CoinGame, AsymCoinGame
parser = argpars... | 29.211111 | 86 | 0.564854 |
1a03b2bea8426f7e81b17aa529b4ab975e9c1bb9 | 1,275 | py | Python | third_party/logilab/astroid/brain/brain_qt.py | stdft112/depot_tools | 52c7211807930272424213ff6127c209de790eca | [
"BSD-3-Clause"
] | 35 | 2016-09-22T22:53:14.000Z | 2020-02-13T15:12:21.000Z | third_party/logilab/astroid/brain/brain_qt.py | stdft112/depot_tools | 52c7211807930272424213ff6127c209de790eca | [
"BSD-3-Clause"
] | 28 | 2020-03-04T22:01:48.000Z | 2022-03-12T00:59:47.000Z | third_party/logilab/astroid/brain/brain_qt.py | stdft112/depot_tools | 52c7211807930272424213ff6127c209de790eca | [
"BSD-3-Clause"
] | 88 | 2016-11-27T02:16:11.000Z | 2020-02-28T05:10:26.000Z | """Astroid hooks for the PyQT library."""
from astroid import MANAGER, register_module_extender
from astroid.builder import AstroidBuilder
from astroid import nodes
from astroid import parse
def _looks_like_signal(node, signal_name='pyqtSignal'):
if '__class__' in node._instance_attrs:
cls = node._instan... | 28.977273 | 73 | 0.694902 |
836ea89c11f708a16ec8979de2bfe01c0b3ae7b7 | 10,071 | py | Python | scripts/process_schemas.py | david4096/ga4gh-schemas | 774db498cc047cc64cc070325472c7dba60e6d42 | [
"Apache-2.0"
] | 114 | 2015-01-05T22:19:34.000Z | 2017-02-18T18:51:22.000Z | scripts/process_schemas.py | david4096/ga4gh-schemas | 774db498cc047cc64cc070325472c7dba60e6d42 | [
"Apache-2.0"
] | 608 | 2015-01-06T00:24:39.000Z | 2017-03-09T05:29:16.000Z | scripts/process_schemas.py | david4096/ga4gh-schemas | 774db498cc047cc64cc070325472c7dba60e6d42 | [
"Apache-2.0"
] | 98 | 2015-01-12T18:09:52.000Z | 2017-02-15T15:49:17.000Z | """
A script to generate the schemas for the GA4GH protocol. These are generated
from a copy of the Protocol Buffers schema and use it to generate
the Python class definitions. These are also stored in revision
control to aid Travis building.
"""
from __future__ import division
from __future__ import print_function
fro... | 38.292776 | 79 | 0.609373 |
7fc91148bc1e9b29d531a8be91a14ad260e5efa1 | 1,240 | py | Python | asreview/models/query/__init__.py | qubixes/automated-systematic-review | 742811a2d300a0cb5a9bd4d1fbada2be8ee86e71 | [
"MIT"
] | null | null | null | asreview/models/query/__init__.py | qubixes/automated-systematic-review | 742811a2d300a0cb5a9bd4d1fbada2be8ee86e71 | [
"MIT"
] | null | null | null | asreview/models/query/__init__.py | qubixes/automated-systematic-review | 742811a2d300a0cb5a9bd4d1fbada2be8ee86e71 | [
"MIT"
] | null | null | null | # Copyright 2019 The ASReview 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 applicabl... | 42.758621 | 74 | 0.804032 |
fbad493f616aa97655e75625af18a7e4befb4fc7 | 5,091 | py | Python | Full Stack Web Developer Nanodegree v2/P1 - Fyyur Artist Booking Site/forms.py | vkbhandare/Udacity-1 | da3e5df92857421609f9ed101e029c6d533cbb72 | [
"MIT"
] | 149 | 2017-01-14T09:54:05.000Z | 2022-03-06T20:55:08.000Z | Full Stack Web Developer Nanodegree v2/P1 - Fyyur Artist Booking Site/forms.py | vkbhandare/Udacity-1 | da3e5df92857421609f9ed101e029c6d533cbb72 | [
"MIT"
] | 10 | 2021-03-11T03:48:47.000Z | 2022-02-27T09:24:33.000Z | Full Stack Web Developer Nanodegree v2/P1 - Fyyur Artist Booking Site/forms.py | vkbhandare/Udacity-1 | da3e5df92857421609f9ed101e029c6d533cbb72 | [
"MIT"
] | 130 | 2016-12-30T07:14:29.000Z | 2022-01-03T13:05:46.000Z | from datetime import datetime
from flask_wtf import Form
from wtforms import StringField, SelectField, SelectMultipleField, DateTimeField, BooleanField, ValidationError
from wtforms.validators import DataRequired, AnyOf, URL, Length
import re
state_choices = [
('AL', 'AL'),
('AK', 'AK'),
('AZ', 'AZ'),
... | 26.515625 | 111 | 0.539973 |
f74e4fb729c94104b2a30b43aa41b1e48fab2f7d | 771 | py | Python | cea/interfaces/dashboard/api/utils.py | architecture-building-systems/cea-toolbox | bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6 | [
"MIT"
] | null | null | null | cea/interfaces/dashboard/api/utils.py | architecture-building-systems/cea-toolbox | bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6 | [
"MIT"
] | null | null | null | cea/interfaces/dashboard/api/utils.py | architecture-building-systems/cea-toolbox | bfec7ecb4b242449ab8796a1e8ce68c05c35f1d6 | [
"MIT"
] | null | null | null |
from flask import current_app
import cea.config
import cea.inputlocator
def deconstruct_parameters(p: cea.config.Parameter):
params = {'name': p.name, 'type': p.typename, 'help': p.help}
try:
params["value"] = p.get()
except cea.ConfigError as e:
print(e)
params["value"] = ""
... | 29.653846 | 65 | 0.648508 |
c80360962ea40a4a981201563801b38e13d38353 | 2,549 | py | Python | quant_eval/scripts/iris/crop_images.py | nudro/favtgan | 51a0fd7b358b1fc019d46efba3153526d5f79828 | [
"Apache-2.0"
] | null | null | null | quant_eval/scripts/iris/crop_images.py | nudro/favtgan | 51a0fd7b358b1fc019d46efba3153526d5f79828 | [
"Apache-2.0"
] | null | null | null | quant_eval/scripts/iris/crop_images.py | nudro/favtgan | 51a0fd7b358b1fc019d46efba3153526d5f79828 | [
"Apache-2.0"
] | null | null | null | import PIL
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
import sys
import os
import argparse
"""
Crops a 256 x 768 images of stacked images from the test phase:
real_A, fake_B, real_B and puts them into respective directories. Run
this before evaluation.py
"""
def crop_it(infile_path, RA... | 40.460317 | 106 | 0.656336 |
071b48920d03481a481f260edd64dcdafd46c7d9 | 23,303 | py | Python | pytorch_trainer/iterators/multiprocess_iterator.py | Hiroshiba/pytorch-trainer | b4b3d648868e4cec33c69e18fc3877c103a8d438 | [
"MIT"
] | 45 | 2019-12-15T04:30:15.000Z | 2021-04-28T14:32:17.000Z | pytorch_trainer/iterators/multiprocess_iterator.py | Hiroshiba/pytorch-trainer | b4b3d648868e4cec33c69e18fc3877c103a8d438 | [
"MIT"
] | null | null | null | pytorch_trainer/iterators/multiprocess_iterator.py | Hiroshiba/pytorch-trainer | b4b3d648868e4cec33c69e18fc3877c103a8d438 | [
"MIT"
] | 2 | 2020-03-27T13:55:27.000Z | 2021-03-03T17:52:56.000Z | from __future__ import division
import datetime
import multiprocessing
from multiprocessing import sharedctypes # type: ignore
import signal
import sys
import threading
import warnings
import numpy
import six
import torch
from pytorch_trainer.dataset import iterator
from pytorch_trainer.iterators import _statemachin... | 34.625557 | 86 | 0.612582 |
91da0b0920a9aa4f88ec968209965abb11df129f | 1,795 | py | Python | configuration/config.py | nefedov-games/deadly-duck | 30128e1f76acd3a81a1e6a16e07f6e6db0ce6a0d | [
"BSD-4-Clause"
] | 1 | 2016-01-12T22:06:50.000Z | 2016-01-12T22:06:50.000Z | configuration/config.py | nefedov-games/deadly-duck | 30128e1f76acd3a81a1e6a16e07f6e6db0ce6a0d | [
"BSD-4-Clause"
] | 14 | 2015-12-21T17:35:43.000Z | 2019-11-18T06:47:57.000Z | configuration/config.py | montreal91/deadly-duck | 30128e1f76acd3a81a1e6a16e07f6e6db0ce6a0d | [
"BSD-4-Clause"
] | null | null | null |
import json
import os
from typing import Dict
basedir = os.path.abspath(os.path.dirname(__file__))
class DdConfig:
FLASKY_MAIL_SUBJECT_PREFIX = "[Flasky]"
FLASKY_MAIL_SENDER = "Flasky Admin <admin@flasky.com>"
FLASKY_ADMIN = os.environ.get("FLASKY_ADMIN")
MAIL_SERVER = "smtp.gmail.com"
MAIL_PO... | 26.397059 | 76 | 0.707521 |
219220542ea00abf2a362b079a16ff42c172e51f | 23 | py | Python | djangoutils/__init__.py | rensg001/django-utils | cbf32374f00446ac56092ccad83c7a75290e9914 | [
"MIT"
] | 96 | 2018-11-30T21:35:20.000Z | 2022-03-23T04:08:59.000Z | version.py | mdgreenwald/audit-policy-kubernetes-daemonset | 7b6a976cf74fbfe4e553c5f79b02606e80b82922 | [
"Apache-2.0"
] | 22 | 2018-12-01T02:37:28.000Z | 2022-03-12T08:50:58.000Z | version.py | mdgreenwald/audit-policy-kubernetes-daemonset | 7b6a976cf74fbfe4e553c5f79b02606e80b82922 | [
"Apache-2.0"
] | 43 | 2018-12-03T18:03:12.000Z | 2022-03-26T00:11:12.000Z |
__version__ = '0.0.1'
| 7.666667 | 21 | 0.608696 |
5a881f3326161bf3da928476965c18c9f971eb1a | 26,026 | py | Python | sublimeText3/Packages/SublimeCodeIntel/libs/codeintel2/common.py | MoAnsir/dot_file_2017 | 5f67ef8f430416c82322ab7e7e001548936454ff | [
"MIT"
] | 2 | 2018-04-24T10:02:26.000Z | 2019-06-02T13:53:31.000Z | Data/Packages/SublimeCodeIntel/libs/codeintel2/common.py | Maxize/Sublime_Text_3 | be620476b49f9a6ce2ca2cfe825c4e142e7e82b9 | [
"Apache-2.0"
] | 1 | 2016-02-10T09:50:09.000Z | 2016-02-10T09:50:09.000Z | Packages/SublimeCodeIntel/libs/codeintel2/common.py | prisis/sublime-text-packages | 99ae8a5496613e27a75e5bd91723549b21476e60 | [
"MIT"
] | 2 | 2019-04-11T04:13:02.000Z | 2019-06-02T13:53:33.000Z | #!python
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License
# Version 1.1 (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.mozilla.org/MPL/
#... | 33.238825 | 80 | 0.63963 |
6ae7e26c44d27ed4cdb0094e407fa4e296af5b20 | 17,256 | py | Python | sdk/python/pulumi_azure_native/web/v20210201/web_app_premier_add_on.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/web/v20210201/web_app_premier_add_on.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure_native/web/v20210201/web_app_premier_add_on.py | polivbr/pulumi-azure-native | 09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7 | [
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | 42.294118 | 1,771 | 0.638908 |
37f1ec7c9adcb66a49ff530c70d15443ee6b804b | 231 | py | Python | replay_game.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | replay_game.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | replay_game.py | HayatoDoi/lb_auto | a5d4a9d4de520d5dac2ad9b823d70faaeb12d519 | [
"CC0-1.0"
] | null | null | null | #!python39
from lib.adb import Adb
from lib import last_bullet
from time import sleep
def scenario(adb):
while True:
last_bullet.replay(adb)
sleep(3)
if __name__ == '__main__':
with Adb('5b09ee92') as adb:
scenario(adb)
| 15.4 | 29 | 0.727273 |
99a767261e47ad1fefa10f80bc26b1088fbf65b0 | 2,190 | py | Python | JPS/python/caresjpsadmsinputs/legacy-delete_after_testing/admsMainNew.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 21 | 2021-03-08T01:58:25.000Z | 2022-03-09T15:46:16.000Z | JPS/python/caresjpsadmsinputs/legacy-delete_after_testing/admsMainNew.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 63 | 2021-05-04T15:05:30.000Z | 2022-03-23T14:32:29.000Z | JPS/python/caresjpsadmsinputs/legacy-delete_after_testing/admsMainNew.py | mdhillmancmcl/TheWorldAvatar-CMCL-Fork | 011aee78c016b76762eaf511c78fabe3f98189f4 | [
"MIT"
] | 15 | 2021-03-08T07:52:03.000Z | 2022-03-29T04:46:20.000Z | from admsInputDataRetrieverNew import admsInputDataRetriever
from admsAplWriter import admsAplWriter
from collections import namedtuple
from caresjpsutil import PythonLogger
import json
import sys
import config
import cobbling
if __name__ == "__main__":
pythonLogger = PythonLogger('admsMainNew.py')
try... | 39.818182 | 150 | 0.615982 |
6078ea7e91f08718f77ffc293154d8a64e7cdd30 | 1,505 | py | Python | maze.py | meznak/maze-generator-py | 47156a9c4ec786739a60d46ccb20661416c5a076 | [
"MIT"
] | null | null | null | maze.py | meznak/maze-generator-py | 47156a9c4ec786739a60d46ccb20661416c5a076 | [
"MIT"
] | 2 | 2020-04-17T07:00:47.000Z | 2020-04-17T07:01:55.000Z | maze.py | meznak/maze-generator-py | 47156a9c4ec786739a60d46ccb20661416c5a076 | [
"MIT"
] | null | null | null | import pygame as pg
from cell import Cell
class Maze:
def __init__(self, size):
self.width = size[0]
self.height = size[1]
self.make_grid()
self.stack = [self.grid[0][0]]
self.current = self.stack[0]
self.finished = False
def make_grid(self):
self.grid ... | 26.875 | 74 | 0.522259 |
82a52c2deb7dff029f827324a1de9bf6659f6960 | 2,964 | py | Python | utils/pose_utils.py | akashsengupta1997/GraphCMR | 0b8b05be4f711995ba50e414effbde98b6b11c5b | [
"BSD-3-Clause"
] | null | null | null | utils/pose_utils.py | akashsengupta1997/GraphCMR | 0b8b05be4f711995ba50e414effbde98b6b11c5b | [
"BSD-3-Clause"
] | null | null | null | utils/pose_utils.py | akashsengupta1997/GraphCMR | 0b8b05be4f711995ba50e414effbde98b6b11c5b | [
"BSD-3-Clause"
] | null | null | null | """
Parts of the code are adapted from https://github.com/akanazawa/hmr
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
def compute_similarity_transform(S1, S2):
"""Computes a similarity transform (sR, t) that takes
a set of 3D... | 31.2 | 90 | 0.629892 |
ab0699548e7e7211536ed0ab9ef96698ce7d7b51 | 2,803 | py | Python | signing/sawtooth_signing/__init__.py | ltavag/sawtooth-core | 50659f23437b27ecd666d4cf129f812e6adaedc4 | [
"Apache-2.0"
] | 18 | 2019-03-01T16:50:27.000Z | 2022-02-12T19:47:25.000Z | signing/sawtooth_signing/__init__.py | ltavag/sawtooth-core | 50659f23437b27ecd666d4cf129f812e6adaedc4 | [
"Apache-2.0"
] | 10 | 2020-05-12T06:58:15.000Z | 2022-02-26T23:59:35.000Z | signing/sawtooth_signing/__init__.py | ltavag/sawtooth-core | 50659f23437b27ecd666d4cf129f812e6adaedc4 | [
"Apache-2.0"
] | 40 | 2019-01-02T18:02:37.000Z | 2022-03-05T06:09:14.000Z | # Copyright 2016, 2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | 28.896907 | 80 | 0.649304 |
8056ab863338091e72b2827e203926eb5c44c45a | 2,717 | py | Python | python/paddle/fluid/tests/unittests/test_dist_mnist_gradient_merge.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 17,085 | 2016-11-18T06:40:52.000Z | 2022-03-31T22:52:32.000Z | python/paddle/fluid/tests/unittests/test_dist_mnist_gradient_merge.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 29,769 | 2016-11-18T06:35:22.000Z | 2022-03-31T16:46:15.000Z | python/paddle/fluid/tests/unittests/test_dist_mnist_gradient_merge.py | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 4,641 | 2016-11-18T07:43:33.000Z | 2022-03-31T15:15:02.000Z | # 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 appli... | 30.875 | 74 | 0.655134 |
82e6fafd8e752cf9d26c7faadcc35baf3ec5ecb9 | 777 | py | Python | document_worker/exceptions.py | ds-wizard/document-worker | 09b1f1c29b47d8bd504aea86d0b5cff1a3bbb01b | [
"Apache-2.0"
] | 2 | 2021-04-23T19:28:10.000Z | 2021-04-27T05:30:07.000Z | document_worker/exceptions.py | ds-wizard/document-worker | 09b1f1c29b47d8bd504aea86d0b5cff1a3bbb01b | [
"Apache-2.0"
] | 9 | 2021-04-07T16:48:34.000Z | 2022-02-21T15:48:31.000Z | document_worker/exceptions.py | ds-wizard/document-worker | 09b1f1c29b47d8bd504aea86d0b5cff1a3bbb01b | [
"Apache-2.0"
] | 6 | 2020-03-09T07:44:01.000Z | 2020-12-02T18:26:37.000Z | class JobException(Exception):
def __init__(self, job_id: str, msg: str, exc=None):
self.job_id = job_id
self.msg = msg
self.exc = exc
def log_message(self):
if self.exc is None:
return self.msg
else:
return f'{self.msg}: [{type(self.exc).__name_... | 25.064516 | 77 | 0.555985 |
4faad0d19f5dd267c705c93e4c45ce05b6d445d1 | 15,378 | py | Python | picomc/version.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | null | null | null | picomc/version.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | null | null | null | picomc/version.py | Zajozor/picomc | 3df03c1191544053ea1e237b9860ed9f4782b029 | [
"MIT"
] | null | null | null | import enum
import json
import operator
import os
import posixpath
import shutil
import urllib.parse
import urllib.request
from functools import reduce
from pathlib import PurePath
import requests
from picomc.downloader import DownloadQueue
from picomc.java import get_java_info
from picomc.library import Library
from... | 37.599022 | 139 | 0.597737 |
3fccd7b5013d78cdb03fe6bfb434ab91d7754f9c | 925 | py | Python | HLTrigger/Configuration/python/HLT_75e33/modules/hltEle32WPTightBestGsfNLayerITL1SeededFilter_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:24:46.000Z | 2021-11-30T16:24:46.000Z | HLTrigger/Configuration/python/HLT_75e33/modules/hltEle32WPTightBestGsfNLayerITL1SeededFilter_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 4 | 2021-11-29T13:57:56.000Z | 2022-03-29T06:28:36.000Z | HLTrigger/Configuration/python/HLT_75e33/modules/hltEle32WPTightBestGsfNLayerITL1SeededFilter_cfi.py | PKUfudawei/cmssw | 8fbb5ce74398269c8a32956d7c7943766770c093 | [
"Apache-2.0"
] | 1 | 2021-11-30T16:16:05.000Z | 2021-11-30T16:16:05.000Z | import FWCore.ParameterSet.Config as cms
hltEle32WPTightBestGsfNLayerITL1SeededFilter = cms.EDFilter("HLTEgammaGenericFilter",
absEtaLowEdges = cms.vdouble(0.0, 1.479),
candTag = cms.InputTag("hltEle32WPTightGsfDphiL1SeededFilter"),
doRhoCorrection = cms.bool(False),
effectiveAreas = cms.vdouble(0.0, 0... | 37 | 85 | 0.698378 |
af11f77ba516f8432a29818bc64b632261bee80e | 15,456 | py | Python | src/radical/saga/adaptors/redis/redis_advert.py | virthead/radical.saga | 265601d5e62013897de0eead89f522049b43cba9 | [
"MIT"
] | null | null | null | src/radical/saga/adaptors/redis/redis_advert.py | virthead/radical.saga | 265601d5e62013897de0eead89f522049b43cba9 | [
"MIT"
] | null | null | null | src/radical/saga/adaptors/redis/redis_advert.py | virthead/radical.saga | 265601d5e62013897de0eead89f522049b43cba9 | [
"MIT"
] | null | null | null |
__author__ = "Andre Merzky, Ole Weidner"
__copyright__ = "Copyright 2012-2013, The SAGA Project"
__license__ = "MIT"
""" Redis advert adaptor implementation """
from . import redis_namespace as rns
from ...url import Url
from ...task import Task
from ... import excepti... | 28.516605 | 80 | 0.415631 |
8fbe5bdb7dec1f46e7f9ee7a781a374470e451d4 | 7,720 | py | Python | openpifpaf/plugins/coco/constants.py | adujardin/openpifpaf | 4fa79162f5529f5b0de72e2312aab54d410bee3f | [
"CC-BY-2.0"
] | null | null | null | openpifpaf/plugins/coco/constants.py | adujardin/openpifpaf | 4fa79162f5529f5b0de72e2312aab54d410bee3f | [
"CC-BY-2.0"
] | null | null | null | openpifpaf/plugins/coco/constants.py | adujardin/openpifpaf | 4fa79162f5529f5b0de72e2312aab54d410bee3f | [
"CC-BY-2.0"
] | null | null | null | import numpy as np
COCO_PERSON_SKELETON = [
(16, 14), (14, 12), (17, 15), (15, 13), (12, 13), (6, 12), (7, 13),
(6, 7), (6, 8), (7, 9), (8, 10), (9, 11), (2, 3), (1, 2), (1, 3),
(2, 4), (3, 5), (4, 6), (5, 7),
]
KINEMATIC_TREE_SKELETON = [
(1, 2), (2, 4), # left head
(1, 3), (3, 5),
(1, 6),... | 26.081081 | 79 | 0.48886 |
02c946fc18d98653b7474d615a03d7d4f3b707ce | 3,968 | py | Python | the_auto.py | racrbmr/treasure-bot | 01981a864cffd4f32c9e2b4fcee29040cbd9d24d | [
"Unlicense"
] | 1 | 2021-04-20T15:40:17.000Z | 2021-04-20T15:40:17.000Z | the_auto.py | racrbmr/treasure-bot | 01981a864cffd4f32c9e2b4fcee29040cbd9d24d | [
"Unlicense"
] | null | null | null | the_auto.py | racrbmr/treasure-bot | 01981a864cffd4f32c9e2b4fcee29040cbd9d24d | [
"Unlicense"
] | null | null | null | from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.action_chains import ActionChains
import time, requests
print("")
print("--- Treasure Referral BOT ---")
print("")
before = int(input("ho... | 27.555556 | 116 | 0.622732 |
d0096702d39cd0eccdfc81c1ee491d2cf53dfb4b | 42,828 | py | Python | photutils/detection/findstars.py | nden/photutils | 87879b2464ccfcd160f6a0c53ea4c0869a6e1cc2 | [
"BSD-3-Clause"
] | null | null | null | photutils/detection/findstars.py | nden/photutils | 87879b2464ccfcd160f6a0c53ea4c0869a6e1cc2 | [
"BSD-3-Clause"
] | null | null | null | photutils/detection/findstars.py | nden/photutils | 87879b2464ccfcd160f6a0c53ea4c0869a6e1cc2 | [
"BSD-3-Clause"
] | null | null | null | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module implements classes for detecting stars in an astronomical
image. The convention is that all star-finding classes are subclasses of
an abstract base class called ``StarFinderBase``. Each star-finding
class should define a method called ``fi... | 35.104918 | 93 | 0.603741 |
28d5a712e692e4b74cc97f6ae7997625711bca69 | 511 | py | Python | tests/rules/test_java.py | eoinjordan/thefeck | e04f50409ba3069ec6a9f7c0aab39ca835a41b68 | [
"MIT"
] | null | null | null | tests/rules/test_java.py | eoinjordan/thefeck | e04f50409ba3069ec6a9f7c0aab39ca835a41b68 | [
"MIT"
] | null | null | null | tests/rules/test_java.py | eoinjordan/thefeck | e04f50409ba3069ec6a9f7c0aab39ca835a41b68 | [
"MIT"
] | null | null | null | import pytest
from thefeck.rules.java import match, get_new_command
from thefeck.types import Command
@pytest.mark.parametrize('command', [
Command('java bar.java', ''),
Command('java bar.java', '')])
def test_match(command):
assert match(command)
@pytest.mark.parametrize('command, new_command', [
(... | 28.388889 | 53 | 0.700587 |
5b77aa0054b3444766c6523bada6d68236c28cbb | 3,098 | py | Python | tests/functional_tests/daemon_info.py | Aifolin/motifcoin | 82c3c5378240f43e6cfde762c4c2dbc92b645cc3 | [
"MIT"
] | null | null | null | tests/functional_tests/daemon_info.py | Aifolin/motifcoin | 82c3c5378240f43e6cfde762c4c2dbc92b645cc3 | [
"MIT"
] | null | null | null | tests/functional_tests/daemon_info.py | Aifolin/motifcoin | 82c3c5378240f43e6cfde762c4c2dbc92b645cc3 | [
"MIT"
] | 1 | 2019-08-05T13:04:45.000Z | 2019-08-05T13:04:45.000Z | #!/usr/bin/env python3
# Copyright (c) 2018 The Motif Project
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, th... | 34.043956 | 89 | 0.699484 |
5900ec63d2c5e9b2d42184e1b3ae1ee6fa5be0d5 | 55 | py | Python | utils/__init__.py | scimk/path_deepzoom | 2d3012082527df81998d7913ea04cb01664f3650 | [
"MIT"
] | null | null | null | utils/__init__.py | scimk/path_deepzoom | 2d3012082527df81998d7913ea04cb01664f3650 | [
"MIT"
] | null | null | null | utils/__init__.py | scimk/path_deepzoom | 2d3012082527df81998d7913ea04cb01664f3650 | [
"MIT"
] | null | null | null | __all__ = ["config", "crossdomains", "db", "deepzoom"]
| 27.5 | 54 | 0.636364 |
ccee1afc6c6f85bd2bb6ee744f2f9e326d81ae15 | 6,184 | py | Python | optimus/engines/ibis/columns.py | niallscc/Optimus | 35218401556e5acc4beb2859084128ebcd1ab4e5 | [
"Apache-2.0"
] | null | null | null | optimus/engines/ibis/columns.py | niallscc/Optimus | 35218401556e5acc4beb2859084128ebcd1ab4e5 | [
"Apache-2.0"
] | null | null | null | optimus/engines/ibis/columns.py | niallscc/Optimus | 35218401556e5acc4beb2859084128ebcd1ab4e5 | [
"Apache-2.0"
] | null | null | null | import re
import pandas as pd
from ibis.expr.types import TableExpr
from sklearn import preprocessing
from optimus.engines.base.commons.functions import impute, string_to_index, index_to_string
from optimus.engines.base.dataframe.columns import DataFrameBaseColumns
from optimus.helpers.columns import parse_columns, p... | 34.741573 | 115 | 0.610608 |
91094a2fe699e4a7a6d59761e70d97bafdedf6cc | 24,700 | py | Python | veikkaaja/veikkaus_client.py | miikama/veikkaaja | 65d507182baddb113dff0d5a43d1c15954e5a2ba | [
"MIT"
] | null | null | null | veikkaaja/veikkaus_client.py | miikama/veikkaaja | 65d507182baddb113dff0d5a43d1c15954e5a2ba | [
"MIT"
] | 1 | 2021-04-20T11:08:29.000Z | 2021-11-12T18:03:17.000Z | veikkaaja/veikkaus_client.py | miikama/veikkaaja | 65d507182baddb113dff0d5a43d1c15954e5a2ba | [
"MIT"
] | null | null | null | """Main veikkaus client module"""
import json
import os
from datetime import datetime
from enum import Enum
from typing import Any, Dict, List, NamedTuple, Union
import requests
from veikkaaja import logger
from veikkaaja.endpoints import EndPoint
from veikkaaja.responses import ResponseType, parse_response
from veik... | 32.585752 | 350 | 0.469514 |
3af7332806b38477b5200aeae9fa1233d3b6de56 | 620 | py | Python | studies/migrations/0071_remove_ordering_from_response.py | manybabies/MBAH-LookIt-API | 18474ceac3dcc8365a5559cf84e9f460671993f5 | [
"MIT"
] | 9 | 2018-06-26T17:15:27.000Z | 2021-11-21T17:19:01.000Z | studies/migrations/0071_remove_ordering_from_response.py | manybabies/MBAH-LookIt-API | 18474ceac3dcc8365a5559cf84e9f460671993f5 | [
"MIT"
] | 496 | 2018-02-19T19:18:24.000Z | 2022-03-31T17:01:16.000Z | studies/migrations/0071_remove_ordering_from_response.py | manybabies/MBAH-LookIt-API | 18474ceac3dcc8365a5559cf84e9f460671993f5 | [
"MIT"
] | 16 | 2018-07-06T23:35:39.000Z | 2021-11-21T17:52:58.000Z | # Generated by Django 3.0.14 on 2021-06-29 18:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("studies", "0070_auto_20210521_0632"),
]
operations = [
migrations.AlterModelOptions(
name="response",
options={
... | 23.846154 | 62 | 0.487097 |
0bda228682f4c17f72575843529b6586900a48d8 | 7,318 | py | Python | python/ray/tests/test_advanced_5.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | python/ray/tests/test_advanced_5.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | python/ray/tests/test_advanced_5.py | jianoaix/ray | 1701b923bc83905f8961c06a6a173e3eba46a936 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import logging
import sys
import time
import numpy as np
import pytest
import ray.cluster_utils
from ray._private.test_utils import (
client_test_enabled,
SignalActor,
)
if client_test_enabled():
from ray.util.client import ray
else:
import ray
logger = logging.getLogger(__name__)
... | 30.365145 | 84 | 0.650041 |
929fcbf2f7ed5d2d592e695c89e7b2836cb3fe9b | 4,399 | py | Python | exporter/actions.py | nhsuk/nhsuk-content-store | a96e3e57db34247c9d1dea64437c6bbcd7926fce | [
"MIT"
] | 24 | 2016-10-20T15:24:49.000Z | 2022-03-15T18:53:44.000Z | exporter/actions.py | nhsuk/nhsuk-content-store | a96e3e57db34247c9d1dea64437c6bbcd7926fce | [
"MIT"
] | 47 | 2016-10-12T15:45:27.000Z | 2017-04-05T11:15:28.000Z | exporter/actions.py | nhsuk/nhsuk-content-store | a96e3e57db34247c9d1dea64437c6bbcd7926fce | [
"MIT"
] | 6 | 2017-03-03T14:33:27.000Z | 2021-10-07T20:32:34.000Z | import json
import logging
import os
from datetime import timedelta
from bakery.views import BuildableMixin
from django.core.urlresolvers import reverse
from django.utils.timezone import now
from oauth2_provider.models import AccessToken
from rest_framework.test import APIClient
from pages.models import Page
from .c... | 33.075188 | 107 | 0.624233 |
49594de97bc52d1cd641847978bf5afc2e54364d | 840 | py | Python | hyperspace.py | wotreeclapton/Samroiyod_game | eaaad029aca8ca88463f0349ebbf0dc4be890e53 | [
"MIT"
] | null | null | null | hyperspace.py | wotreeclapton/Samroiyod_game | eaaad029aca8ca88463f0349ebbf0dc4be890e53 | [
"MIT"
] | null | null | null | hyperspace.py | wotreeclapton/Samroiyod_game | eaaad029aca8ca88463f0349ebbf0dc4be890e53 | [
"MIT"
] | null | null | null | #! python 3
'''
SAMROIYOD GAME HYPERSPACE MODULE developed by Mr Steven J walden
Jan. 2020
SAMROIYOD, PRACHUAP KIRI KHAN, THAILAND
Some of the sounds in this project were created by David McKee (ViRiX) soundcloud.com/virix
[See License.txt file]
'''
from os import environ
from random import randrange
import... | 30 | 109 | 0.759524 |
5880d4ef6c6c2426340b0a8c1b5d6e0f0cf59848 | 22,524 | py | Python | ects/consensus/block_creation.py | ects-io/ects-blockchain | a798034a8c8bce34d4b87fb2c98351d06f9eaf8e | [
"Apache-2.0"
] | null | null | null | ects/consensus/block_creation.py | ects-io/ects-blockchain | a798034a8c8bce34d4b87fb2c98351d06f9eaf8e | [
"Apache-2.0"
] | null | null | null | ects/consensus/block_creation.py | ects-io/ects-blockchain | a798034a8c8bce34d4b87fb2c98351d06f9eaf8e | [
"Apache-2.0"
] | null | null | null | import logging
import random
from dataclasses import replace
from typing import Callable, Dict, List, Optional, Tuple
import blspy
from blspy import G1Element, G2Element
from chiabip158 import PyBIP158
from ects.consensus.block_record import BlockRecord
from ects.consensus.block_rewards import calculate_base_farmer_r... | 41.944134 | 117 | 0.694637 |
6607f05cf8f189d11d1408fcd1a525a2fa247355 | 1,880 | py | Python | aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/UpdateFaceConfigRequest.py | leafcoder/aliyun-openapi-python-sdk | 26b441ab37a5cda804de475fd5284bab699443f1 | [
"Apache-2.0"
] | 1,001 | 2015-07-24T01:32:41.000Z | 2022-03-25T01:28:18.000Z | aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/UpdateFaceConfigRequest.py | leafcoder/aliyun-openapi-python-sdk | 26b441ab37a5cda804de475fd5284bab699443f1 | [
"Apache-2.0"
] | 363 | 2015-10-20T03:15:00.000Z | 2022-03-08T12:26:19.000Z | aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/UpdateFaceConfigRequest.py | leafcoder/aliyun-openapi-python-sdk | 26b441ab37a5cda804de475fd5284bab699443f1 | [
"Apache-2.0"
] | 682 | 2015-09-22T07:19:02.000Z | 2022-03-22T09:51:46.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 33.571429 | 75 | 0.756915 |
e483ffbdacccab935d795cfe904837b98369d7fe | 1,999 | py | Python | stwfsapy/tests/expansion/ampersand_expansion_test.py | mo-fu/stwfsapy | dd47c15e5b1b5422fd4ce6fe63ceb3e25ef15322 | [
"Apache-2.0"
] | null | null | null | stwfsapy/tests/expansion/ampersand_expansion_test.py | mo-fu/stwfsapy | dd47c15e5b1b5422fd4ce6fe63ceb3e25ef15322 | [
"Apache-2.0"
] | null | null | null | stwfsapy/tests/expansion/ampersand_expansion_test.py | mo-fu/stwfsapy | dd47c15e5b1b5422fd4ce6fe63ceb3e25ef15322 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Leibniz Information Centre for Economics
#
# 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 ... | 32.770492 | 76 | 0.745373 |
2989dddaaf95576046480e8aabe648b6e8cfa424 | 12,020 | py | Python | pyvda/pyvda.py | choplin/pyvda | ea89917ed1f36e43d766bd5e65697cc426314485 | [
"MIT"
] | null | null | null | pyvda/pyvda.py | choplin/pyvda | ea89917ed1f36e43d766bd5e65697cc426314485 | [
"MIT"
] | null | null | null | pyvda/pyvda.py | choplin/pyvda | ea89917ed1f36e43d766bd5e65697cc426314485 | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import List
from comtypes import GUID
from ctypes import windll
from .com_defns import IApplicationView, IVirtualDesktop
from .utils import (
get_vd_manager_internal,
get_view_collection,
get_pinned_apps,
)
ASFW_ANY = -1
class AppView():
"""
A wrap... | 33.575419 | 204 | 0.612812 |
225318dcd097d400435197dddde9d8a1d4d8da90 | 58,691 | py | Python | tensorflow_probability/python/distributions/internal/statistical_testing.py | ykkawana/probability | 65bfd91cf6e855674da8dd9976c067f79da46e90 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/distributions/internal/statistical_testing.py | ykkawana/probability | 65bfd91cf6e855674da8dd9976c067f79da46e90 | [
"Apache-2.0"
] | null | null | null | tensorflow_probability/python/distributions/internal/statistical_testing.py | ykkawana/probability | 65bfd91cf6e855674da8dd9976c067f79da46e90 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 The TensorFlow Probability 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 o... | 46.3594 | 86 | 0.727505 |
c4b28726094121140ce9d179a135e1b59387d692 | 1,150 | py | Python | examples/with_social_auth/social_website/social_website/wsgi.py | haremmaster/django-social-friends-finder | cad63349b19b3c301626c24420ace13c63f45ad7 | [
"BSD-3-Clause"
] | 19 | 2015-01-01T16:23:06.000Z | 2020-01-02T22:42:17.000Z | examples/with_social_auth/social_website/social_website/wsgi.py | haremmaster/django-social-friends-finder | cad63349b19b3c301626c24420ace13c63f45ad7 | [
"BSD-3-Clause"
] | 2 | 2015-01-01T16:34:59.000Z | 2015-03-26T10:30:59.000Z | examples/with_all_auth/social_website/social_website/wsgi.py | laplacesdemon/django-social-friends-finder | cad63349b19b3c301626c24420ace13c63f45ad7 | [
"BSD-3-Clause"
] | 11 | 2015-01-16T18:39:34.000Z | 2021-08-13T00:46:41.000Z | """
WSGI config for social_website project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICA... | 39.655172 | 79 | 0.809565 |
71c29531ac59ad7571eb081e70cfee8a5d11f1dc | 2,527 | py | Python | tests/test_verify_account.py | meals-app/django-graphql-auth | f6136a14e2ff4c6cb21ab25ed66b5832b03d2fd4 | [
"MIT"
] | 290 | 2020-01-15T17:47:09.000Z | 2022-03-28T19:24:16.000Z | tests/test_verify_account.py | meals-app/django-graphql-auth | f6136a14e2ff4c6cb21ab25ed66b5832b03d2fd4 | [
"MIT"
] | 136 | 2020-01-31T16:47:30.000Z | 2022-03-29T13:17:22.000Z | tests/test_verify_account.py | meals-app/django-graphql-auth | f6136a14e2ff4c6cb21ab25ed66b5832b03d2fd4 | [
"MIT"
] | 85 | 2020-02-07T12:48:26.000Z | 2022-03-24T08:56:59.000Z | from django.contrib.auth import get_user_model
from .testCases import RelayTestCase, DefaultTestCase
from graphql_auth.constants import Messages
from graphql_auth.utils import get_token, get_token_payload
from graphql_auth.models import UserStatus
from graphql_auth.signals import user_verified
class VerifyAccountCas... | 33.25 | 86 | 0.651365 |
4ba77f79ef0928de2a5401f4d4be8410cd4bab6d | 9,288 | py | Python | archive/lym_project/deep_conv_ae_spsparse_alt30.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 23 | 2018-08-23T03:58:37.000Z | 2022-02-23T05:04:54.000Z | archive/lym_project/deep_conv_ae_spsparse_alt30.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 8 | 2018-07-20T20:54:51.000Z | 2020-06-12T05:36:04.000Z | archive/lym_project/deep_conv_ae_spsparse_alt30.py | peterdonnelly1/u24_lymphocyte | dff7ceed404c38582feb81aa9b8a55d80ada0f77 | [
"BSD-3-Clause"
] | 22 | 2018-05-21T23:57:20.000Z | 2022-02-21T00:48:32.000Z | import pickle
import sys
import os
import urllib
import gzip
import cPickle
import time
import lasagne
import theano
import numpy as np
import theano.tensor as T
from lasagne import layers
from lasagne.updates import nesterov_momentum
from nolearn.lasagne import NeuralNet
from nolearn.lasagne import BatchIterator
from... | 50.478261 | 127 | 0.702412 |
0d557070fbffe712447d1333922fb2cd6bb92148 | 3,475 | py | Python | oo/carro.py | wallysso/pythonbirds | dd1e48713defaaa567dbfa1fc1a77334bd3ab374 | [
"MIT"
] | null | null | null | oo/carro.py | wallysso/pythonbirds | dd1e48713defaaa567dbfa1fc1a77334bd3ab374 | [
"MIT"
] | null | null | null | oo/carro.py | wallysso/pythonbirds | dd1e48713defaaa567dbfa1fc1a77334bd3ab374 | [
"MIT"
] | null | null | null |
"""você deve criar uma classe de carro que vai possuir dois atributos compostos por outras duas classs:
1) motor
2) direção
O motor tera a responsabilidade de controlar a velocidade.
Ele oferece os seguintes atributos:
1) Atributo de dado de velocidade
2) Método acelerar, que deverá incrementar a velocidade de uma u... | 21.855346 | 103 | 0.625612 |
11e5abff25c947a83d6ad662925b4ea4362f82c4 | 16,352 | py | Python | holoviews/tests/core/data/testxarrayinterface.py | mkp170791/holoviews | a17f5c66eac7c23817e31edd3b3768b3be35076f | [
"BSD-3-Clause"
] | null | null | null | holoviews/tests/core/data/testxarrayinterface.py | mkp170791/holoviews | a17f5c66eac7c23817e31edd3b3768b3be35076f | [
"BSD-3-Clause"
] | null | null | null | holoviews/tests/core/data/testxarrayinterface.py | mkp170791/holoviews | a17f5c66eac7c23817e31edd3b3768b3be35076f | [
"BSD-3-Clause"
] | null | null | null | import datetime as dt
from collections import OrderedDict
from unittest import SkipTest
import numpy as np
try:
import xarray as xr
except:
raise SkipTest("Could not import xarray, skipping XArrayInterface tests.")
from holoviews.core.data import Dataset, concat
from holoviews.core.dimension import Dimension... | 40.475248 | 115 | 0.582069 |
90e9d500ee450f21e793e778df5565eca112230c | 2,188 | py | Python | sdq/content/hrs_blue/bias.py | Eb-Zeero/tacapi | 2c94d037e2dd19bf5d1f67ea5ae34cb6cc6eef61 | [
"MIT"
] | null | null | null | sdq/content/hrs_blue/bias.py | Eb-Zeero/tacapi | 2c94d037e2dd19bf5d1f67ea5ae34cb6cc6eef61 | [
"MIT"
] | 5 | 2021-03-18T21:39:50.000Z | 2022-03-11T23:36:18.000Z | sdq/content/hrs_blue/bias.py | Eb-Zeero/tacapi | 2c94d037e2dd19bf5d1f67ea5ae34cb6cc6eef61 | [
"MIT"
] | null | null | null | from bokeh.models import ColumnDataSource, Whisker
from bokeh.plotting import figure
from flask import g
from sdq.queries.hrs import bias_counts_query, bias_gradient_query
from sdq.util import bokeh_plot_grid
def plot_counts(arm, name):
source = bias_counts_query(str(g.dates['start_date']), str(g.dates['end_date'... | 38.385965 | 115 | 0.640311 |
a304c9961e14f2c554202af9282550947b4e45ab | 12,387 | py | Python | pybamm/solvers/ode_solver.py | zlgenuine/pybamm | 5c43d17225710c5bea8e61b3863688eb7080e678 | [
"BSD-3-Clause"
] | null | null | null | pybamm/solvers/ode_solver.py | zlgenuine/pybamm | 5c43d17225710c5bea8e61b3863688eb7080e678 | [
"BSD-3-Clause"
] | null | null | null | pybamm/solvers/ode_solver.py | zlgenuine/pybamm | 5c43d17225710c5bea8e61b3863688eb7080e678 | [
"BSD-3-Clause"
] | null | null | null | #
# Base solver class
#
import casadi
import pybamm
import numpy as np
from .base_solver import add_external
class OdeSolver(pybamm.BaseSolver):
"""Solve a discretised model.
Parameters
----------
rtol : float, optional
The relative tolerance for the solver (default is 1e-6).
atol : floa... | 33.569106 | 87 | 0.614677 |
c9abfa28d3618816a66ed0873f9f061beb9bb3b8 | 8,432 | py | Python | test_bank/borrowing/views.py | Ursidours/django-tech-test | a96e1d73c9221458ca68b999d817881863a60584 | [
"BSD-3-Clause"
] | 1 | 2021-11-13T01:30:30.000Z | 2021-11-13T01:30:30.000Z | test_bank/borrowing/views.py | arnaudblois/django-tech-test | a96e1d73c9221458ca68b999d817881863a60584 | [
"BSD-3-Clause"
] | null | null | null | test_bank/borrowing/views.py | arnaudblois/django-tech-test | a96e1d73c9221458ca68b999d817881863a60584 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from django.contrib import messages
from django.core.exceptions import SuspiciousOperation
from django.http import Http404
from django.core.urlresolvers import reverse
from django.views.generic import (
DetailView,
UpdateView,
CreateView,
FormView
)
from django.http.response impo... | 36.982456 | 107 | 0.682163 |
d9d5b46815e75e56a9c977bd5d0e594ee97ba71b | 688 | py | Python | setup.py | ixjlyons/qtgallery | 9538b83b8d29090601a41f6d200c4cfda1b1b5fe | [
"MIT"
] | null | null | null | setup.py | ixjlyons/qtgallery | 9538b83b8d29090601a41f6d200c4cfda1b1b5fe | [
"MIT"
] | 2 | 2021-11-15T21:27:06.000Z | 2021-11-15T21:28:39.000Z | setup.py | ixjlyons/qtgallery | 9538b83b8d29090601a41f6d200c4cfda1b1b5fe | [
"MIT"
] | null | null | null | import os
import codecs
from setuptools import setup
def read(fp):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, fp), 'r') as f:
return f.read()
exec(read(os.path.join("qtgallery", "_version.py")))
setup(
name="qtgallery",
version=__version__,
des... | 22.193548 | 71 | 0.639535 |
decb25cf1c3ef6c3e00c74a000b288270efc88e1 | 1,126 | py | Python | test_hwang.py | sjyk/deeplens-cv | 8383e6c377a93304534c46e3c9fd7821cc068d98 | [
"MIT"
] | 11 | 2019-10-07T22:06:30.000Z | 2020-08-26T22:10:53.000Z | test_hwang.py | sjyk/deeplens-cv | 8383e6c377a93304534c46e3c9fd7821cc068d98 | [
"MIT"
] | 16 | 2019-11-02T00:32:00.000Z | 2022-02-10T00:23:32.000Z | test_hwang.py | sjyk/deeplens-cv | 8383e6c377a93304534c46e3c9fd7821cc068d98 | [
"MIT"
] | 9 | 2019-10-07T13:33:13.000Z | 2020-09-27T09:50:58.000Z | import sys
from deeplens.dataflow.agg import count
from deeplens.full_manager.full_manager import FullStorageManager
from deeplens.optimizer.deeplens import DeepLensOptimizer
from deeplens.struct import CustomTagger, VideoStream, Box
from deeplens.tracking.contour import KeyPoints
from deeplens.tracking.event import F... | 31.277778 | 120 | 0.721137 |
3b0c0e914a71a6ee9824fd7ba414d4c9394eee44 | 266 | py | Python | client/python/ntcore/__about__.py | nantutech/ntcore | 2daacad2435c30f116b76685aa579b4665bff9f7 | [
"Apache-2.0"
] | 9 | 2021-06-08T00:15:47.000Z | 2021-11-02T08:34:03.000Z | client/python/ntcore/__about__.py | nantutech/ntcore | 2daacad2435c30f116b76685aa579b4665bff9f7 | [
"Apache-2.0"
] | 1 | 2021-08-20T04:05:39.000Z | 2021-08-20T04:05:39.000Z | client/python/ntcore/__about__.py | nantutech/ntcore | 2daacad2435c30f116b76685aa579b4665bff9f7 | [
"Apache-2.0"
] | 1 | 2021-08-13T21:18:24.000Z | 2021-08-13T21:18:24.000Z | # -*- coding: utf-8 -*-
__description__ = "Python client for interfacing with NTCore"
__license__ = "Apache 2.0"
__maintainer__ = "Jinxiong Tan"
__maintainer_email__ = "jtan@nantutech.com"
__title__ = "ntcore"
__url__ = "https://www.nantu.io/"
__version__ = "0.0.2" | 29.555556 | 61 | 0.721805 |
3bc55dd2cd0b831c22a64b0a1f28b88effee55af | 64,026 | py | Python | psychopy_tobii_controller/tobii_wrapper.py | Toonwire/infancy_eye_tracking | 7b96a9d832f60f83fd5098ada2117ab1d0f56fed | [
"MIT"
] | null | null | null | psychopy_tobii_controller/tobii_wrapper.py | Toonwire/infancy_eye_tracking | 7b96a9d832f60f83fd5098ada2117ab1d0f56fed | [
"MIT"
] | null | null | null | psychopy_tobii_controller/tobii_wrapper.py | Toonwire/infancy_eye_tracking | 7b96a9d832f60f83fd5098ada2117ab1d0f56fed | [
"MIT"
] | null | null | null | #
# Tobii controller for PsychoPy
#
# author: Hiroyuki Sogo
# Distributed under the terms of the GNU General Public License v3 (GPLv3).
#
# edited by: Lukas Villumsen and Sebastian Nyholm
#
#
from __future__ import division
from __future__ import absolute_import
import types
import datetime
import numpy as np
impor... | 40.729008 | 249 | 0.554244 |
f75d76b3504e0159bc48b1ec6fe8e184887f0e71 | 213 | py | Python | api/scrapers.py | evilsloth/a4kScrapers-server | 94bd90eccb13cc7fc4a5fc8999ff2f621b94344b | [
"MIT"
] | null | null | null | api/scrapers.py | evilsloth/a4kScrapers-server | 94bd90eccb13cc7fc4a5fc8999ff2f621b94344b | [
"MIT"
] | null | null | null | api/scrapers.py | evilsloth/a4kScrapers-server | 94bd90eccb13cc7fc4a5fc8999ff2f621b94344b | [
"MIT"
] | null | null | null | from providers.a4kScrapers import en as scrapers
from flask_restful import Resource, request
from flask import jsonify
class Scrapers(Resource):
def get(self):
return jsonify(scrapers.get_torrent())
| 23.666667 | 48 | 0.774648 |
bf6e7ae318ab1c53f37b84a192077871655f8195 | 6,433 | py | Python | fn/underscore.py | bmintz/fn.py | df53f5d6bf0e94a37f44f6be57d1c87c9b7a6c26 | [
"Apache-2.0"
] | 2,260 | 2015-01-01T22:32:23.000Z | 2022-03-31T10:33:13.000Z | fn/underscore.py | Digenis/fn.py | df53f5d6bf0e94a37f44f6be57d1c87c9b7a6c26 | [
"Apache-2.0"
] | 15 | 2015-04-24T04:37:38.000Z | 2022-03-25T18:13:22.000Z | fn/underscore.py | Digenis/fn.py | df53f5d6bf0e94a37f44f6be57d1c87c9b7a6c26 | [
"Apache-2.0"
] | 164 | 2015-01-10T23:32:17.000Z | 2022-03-07T02:54:43.000Z | import re
import operator
import string
import random
from sys import version_info
from itertools import repeat, count
from .op import identity, apply, flip
from .uniform import map, zip
from .func import F
div = operator.div if version_info[0] == 2 else operator.truediv
letters = string.letters if version_info[0] ... | 39.22561 | 107 | 0.577336 |
f797196ec33460a1088aedc68638d6a62842b147 | 3,501 | py | Python | examples/dfp/v201502/inventory_service/get_ad_unit_hierarchy.py | cmm08/googleads-python-lib | 97743df32eff92cf00cb8beaddcda42dfa0a37f4 | [
"Apache-2.0"
] | 1 | 2018-09-06T18:50:58.000Z | 2018-09-06T18:50:58.000Z | examples/dfp/v201502/inventory_service/get_ad_unit_hierarchy.py | cmm08/googleads-python-lib | 97743df32eff92cf00cb8beaddcda42dfa0a37f4 | [
"Apache-2.0"
] | null | null | null | examples/dfp/v201502/inventory_service/get_ad_unit_hierarchy.py | cmm08/googleads-python-lib | 97743df32eff92cf00cb8beaddcda42dfa0a37f4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | 30.181034 | 78 | 0.716938 |
08e6e9b982b8bb60fb316830afa3dcc49dc49452 | 2,434 | py | Python | plugin.video.fanfilm/resources/lib/resolvers/googleplus.py | mrknow/filmkodi | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | [
"Apache-2.0"
] | 105 | 2015-11-28T00:03:11.000Z | 2021-05-05T20:47:42.000Z | plugin.video.fanfilm/resources/lib/resolvers/googleplus.py | rrosajp/filmkodi | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | [
"Apache-2.0"
] | 918 | 2015-11-28T14:12:40.000Z | 2022-03-23T20:24:49.000Z | plugin.video.fanfilm/resources/lib/resolvers/googleplus.py | rrosajp/filmkodi | 0162cde9ae25ddbf4a69330948714833ff2f78c9 | [
"Apache-2.0"
] | 111 | 2015-12-01T14:06:10.000Z | 2020-08-01T10:44:39.000Z | # -*- coding: utf-8 -*-
'''
FanFilm Add-on
Copyright (C) 2015 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any ... | 34.28169 | 88 | 0.555053 |
99ec2574b66c5f3e31a02a27bcff960d7755137e | 4,124 | py | Python | champ/champ_base/scripts/imu_relay.py | billynugrahas/oped_quadruped | ab4bd558f30b76da385b4ef8a5d13c0e0a188d56 | [
"BSD-3-Clause"
] | 2 | 2020-12-21T12:17:01.000Z | 2021-12-06T04:43:58.000Z | champ/champ_base/scripts/imu_relay.py | billynugrahas/oped_quadruped | ab4bd558f30b76da385b4ef8a5d13c0e0a188d56 | [
"BSD-3-Clause"
] | null | null | null | champ/champ_base/scripts/imu_relay.py | billynugrahas/oped_quadruped | ab4bd558f30b76da385b4ef8a5d13c0e0a188d56 | [
"BSD-3-Clause"
] | 1 | 2021-04-29T14:52:11.000Z | 2021-04-29T14:52:11.000Z | #!/usr/bin/env python
'''
Copyright (c) 2019-2020, Juan Miguel Jimeno
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, th... | 43.87234 | 98 | 0.742241 |
d51dec1c5ffce3376c45af53c8d57bc891610c58 | 10,348 | py | Python | modin/core/execution/ray/generic/io/io.py | novichkovg/modin | 0e36e22624ac1f0849f390a7705aa98f71e00d5d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | modin/core/execution/ray/generic/io/io.py | novichkovg/modin | 0e36e22624ac1f0849f390a7705aa98f71e00d5d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | modin/core/execution/ray/generic/io/io.py | novichkovg/modin | 0e36e22624ac1f0849f390a7705aa98f71e00d5d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | 39.346008 | 109 | 0.589196 |
892e71cbef0967bcc29e4f58d90e2915f6f56572 | 1,087 | py | Python | plog/working5.py | Strangemother/PlogBlock | e791215b197e1e06daa569742a118b88dc8a25ac | [
"MIT"
] | null | null | null | plog/working5.py | Strangemother/PlogBlock | e791215b197e1e06daa569742a118b88dc8a25ac | [
"MIT"
] | null | null | null | plog/working5.py | Strangemother/PlogBlock | e791215b197e1e06daa569742a118b88dc8a25ac | [
"MIT"
] | null | null | null | from api import Plog
from patterns import PlogLine, PlogBlock
block = PlogBlock('Device ID:', ref='Device')
block.header.ref='device_id'
block.footer = PlogLine('----------', ref='footer').anything()
lines = {}
lines['entry_address'] = PlogLine('IP address:')
lines['platform'] = PlogLine('Platform:')
lines['interfa... | 28.605263 | 71 | 0.687213 |
ebff409da4b845c88f9cc79e3c84a97a8613ea84 | 28,740 | py | Python | test/orm/test_utils.py | lambdanis/sqlalchemy | f94648bb922a73423d73f17c2148253fcc5893b9 | [
"MIT"
] | null | null | null | test/orm/test_utils.py | lambdanis/sqlalchemy | f94648bb922a73423d73f17c2148253fcc5893b9 | [
"MIT"
] | null | null | null | test/orm/test_utils.py | lambdanis/sqlalchemy | f94648bb922a73423d73f17c2148253fcc5893b9 | [
"MIT"
] | null | null | null | from sqlalchemy import Column
from sqlalchemy import inspect
from sqlalchemy import Integer
from sqlalchemy import MetaData
from sqlalchemy import Table
from sqlalchemy.ext.hybrid import hybrid_method
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import aliased
from sqlalchemy.orm import create_... | 31.862528 | 79 | 0.576618 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.