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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f7749d7fdeb213a71c50fac2777773a4cae4cde | 982 | py | Python | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_sweep/search_space/randint.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
from azure.ai.ml.constants import SearchSpace
from marshmallow import fields, post_load, pre_dump, ValidationError
from azure.ai.ml._schema... | 35.071429 | 86 | 0.649695 |
4f792214bd4390f63e5a1db2e2943cc2db998be9 | 3,189 | py | Python | unittest_reinvent/scoring_tests/scoring_components/pip/test_pip_caco2_efflux.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | null | null | null | unittest_reinvent/scoring_tests/scoring_components/pip/test_pip_caco2_efflux.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-01T23:19:42.000Z | 2021-11-22T23:41:39.000Z | unittest_reinvent/scoring_tests/scoring_components/pip/test_pip_caco2_efflux.py | MolecularAI/reinvent-scoring | f7e052ceeffd29e17e1672c33607189873c82a45 | [
"MIT"
] | 2 | 2021-11-18T13:14:22.000Z | 2022-03-16T07:52:57.000Z | import os
import shutil
import unittest
from unittest.mock import MagicMock
import numpy as np
import numpy.testing as npt
import pytest
from reinvent_scoring.scoring.enums import ComponentSpecificParametersEnum
from reinvent_scoring.scoring.enums import ScoringFunctionComponentNameEnum
from reinvent_scoring.scoring.... | 39.37037 | 110 | 0.743493 |
4f7a49d4d9b2c7c57d26803d6ea3fbe28b85a380 | 9,344 | py | Python | variation/normalize.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | 1 | 2022-01-19T18:17:49.000Z | 2022-01-19T18:17:49.000Z | variation/normalize.py | cancervariants/variation-normalization | 9c8fbab1562591ae9445d82ddd15df29f1ea1f5a | [
"MIT"
] | 99 | 2021-06-07T12:50:34.000Z | 2022-03-23T13:38:29.000Z | variation/normalize.py | cancervariants/variant-normalization | e89a9f8366a659c82b2042aeb7effe339851bfb4 | [
"MIT"
] | null | null | null | """Module for Variation Normalization."""
from typing import Optional, List, Tuple, Dict
from ga4gh.vrsatile.pydantic.vrs_models import Text
from ga4gh.vrsatile.pydantic.vrsatile_models import VariationDescriptor, \
GeneDescriptor
from ga4gh.vrs import models
from ga4gh.core import ga4gh_identify
from variation.dat... | 38.933333 | 96 | 0.622967 |
4f7ac73509e6e84e42327cc7eb2cf60206c29356 | 478 | py | Python | blender/arm/logicnode/math/LN_separate_xyz.py | onelsonic/armory | 55cfead0844923d419d75bf4bd677ebed714b4b5 | [
"Zlib"
] | 2,583 | 2016-07-27T08:25:47.000Z | 2022-03-31T10:42:17.000Z | blender/arm/logicnode/math/LN_separate_xyz.py | N8n5h/armory | 5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8 | [
"Zlib"
] | 2,122 | 2016-07-31T14:20:04.000Z | 2022-03-31T20:44:14.000Z | blender/arm/logicnode/math/LN_separate_xyz.py | N8n5h/armory | 5b4d24f067a2354bafd3ab417bb8e30ee0c5aff8 | [
"Zlib"
] | 451 | 2016-08-12T05:52:58.000Z | 2022-03-31T01:33:07.000Z | from arm.logicnode.arm_nodes import *
| 29.875 | 51 | 0.669456 |
4f7b4269a2cfc7be43ae83b5c540838d9d6ebafb | 1,023 | py | Python | setup.py | Mikfr83/skyhook | 1af5afdd8ad77a46ea918be487b100d376642db8 | [
"Apache-2.0",
"MIT"
] | null | null | null | setup.py | Mikfr83/skyhook | 1af5afdd8ad77a46ea918be487b100d376642db8 | [
"Apache-2.0",
"MIT"
] | null | null | null | setup.py | Mikfr83/skyhook | 1af5afdd8ad77a46ea918be487b100d376642db8 | [
"Apache-2.0",
"MIT"
] | null | null | null | import sys
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# any data files that match this pattern will be included
data_files_to_include = ["*.png"]
if sys.version_info.major == 2:
try:
import PySide
requires = ['requests']
except:
requires = ['... | 25.575 | 59 | 0.652004 |
4f7b5a243af90599473c06dcec0b2e2ed8c76eb5 | 2,432 | py | Python | ml3d/torch/utils/helper_torch.py | inkyusa/Open3D-ML | 40b5f7ff45577bcc6fd451cf63cc366324730849 | [
"MIT"
] | 447 | 2020-10-14T23:16:41.000Z | 2021-07-27T06:57:45.000Z | ml3d/torch/utils/helper_torch.py | inkyusa/Open3D-ML | 40b5f7ff45577bcc6fd451cf63cc366324730849 | [
"MIT"
] | 118 | 2020-10-14T10:20:37.000Z | 2021-07-27T12:23:18.000Z | ml3d/torch/utils/helper_torch.py | inkyusa/Open3D-ML | 40b5f7ff45577bcc6fd451cf63cc366324730849 | [
"MIT"
] | 80 | 2020-10-14T17:35:48.000Z | 2021-07-23T08:48:17.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
| 32 | 70 | 0.45847 |
4f7dcd2be58eb42137bca30cd766b4e6d48d031b | 13,986 | py | Python | 2020/aoc_2020_20/aoc_2020_20.py | ericcolton/AdventOfCode | 58bdf8886d1d6cea5faeee74248c10ddaf97a93b | [
"MIT"
] | null | null | null | 2020/aoc_2020_20/aoc_2020_20.py | ericcolton/AdventOfCode | 58bdf8886d1d6cea5faeee74248c10ddaf97a93b | [
"MIT"
] | null | null | null | 2020/aoc_2020_20/aoc_2020_20.py | ericcolton/AdventOfCode | 58bdf8886d1d6cea5faeee74248c10ddaf97a93b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Advent of Code 2020 Day 20: Jurassic Jigsaw
https://adventofcode.com/2020/day/20
Solution by Eric Colton
"""
import re
from functools import reduce
SEA_MONSTER_PROFILE = """
..................#.
#....##....##....###
.#..#..#..#..#..#..."""
def generate_combined_tile(ordered_tiles: list)... | 41.256637 | 117 | 0.568712 |
4f7eadeff29e825eecd011fae2e486b757106c64 | 7,752 | py | Python | experiments/SciTail_NLI/benchmark_paraphrases_generation.py | matejklemen/paraphrase-nli | d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc | [
"MIT"
] | null | null | null | experiments/SciTail_NLI/benchmark_paraphrases_generation.py | matejklemen/paraphrase-nli | d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc | [
"MIT"
] | null | null | null | experiments/SciTail_NLI/benchmark_paraphrases_generation.py | matejklemen/paraphrase-nli | d31ecba7e54eea4c3b098a2de7bc35f538e4e6dc | [
"MIT"
] | null | null | null | import json
import logging
import os
import sys
from argparse import ArgumentParser
import re
import numpy as np
import pandas as pd
import torch
from transformers import GPT2Tokenizer
from src.data.cleaning import mask_not_na, inds_unique, mask_long_enough
from src.data.nli import TransformersSeqPairDataset
from src... | 43.307263 | 149 | 0.736197 |
4f7ef52ff38ec211c689a86a821876bea757fb2f | 4,838 | py | Python | test.py | conema/distributed-TransE | 07de643bf8733e524e17a0ae4656ffdfd281b3a5 | [
"MIT"
] | 3 | 2021-02-11T11:22:16.000Z | 2021-05-27T03:22:57.000Z | test.py | conema/distributed-TransE | 07de643bf8733e524e17a0ae4656ffdfd281b3a5 | [
"MIT"
] | null | null | null | test.py | conema/distributed-TransE | 07de643bf8733e524e17a0ae4656ffdfd281b3a5 | [
"MIT"
] | 1 | 2021-04-21T15:13:47.000Z | 2021-04-21T15:13:47.000Z | import numpy as np
from pyspark.sql import SparkSession
from pyspark import SparkContext, SparkConf
from TransEmodule import utils
if __name__ == "__main__":
# change the paths if you are not using
# our terraform project!
# create the session
conf = SparkConf().setAll([("spark.worker.cleanup.ena... | 38.094488 | 139 | 0.590327 |
4f80040acf6642b4b3a8529a3483b2576449af0d | 169 | py | Python | Test_cases/Generated_Python/loops.py | TY-Projects/Code-Converter | 9fee4e186e0be94741a38bb95abe32adb8957fde | [
"MIT"
] | null | null | null | Test_cases/Generated_Python/loops.py | TY-Projects/Code-Converter | 9fee4e186e0be94741a38bb95abe32adb8957fde | [
"MIT"
] | null | null | null | Test_cases/Generated_Python/loops.py | TY-Projects/Code-Converter | 9fee4e186e0be94741a38bb95abe32adb8957fde | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
main()
| 10.5625 | 26 | 0.538462 |
4f804d5a0e36342ad2a4e48d3e16c64fd9394410 | 746 | py | Python | unifrakturmaguntia/src/generate.py | graffitiMSX/msxpower-googlefontdirectory | 1e201a68c8181698c143279734c4677f194855d8 | [
"Apache-2.0"
] | 1 | 2016-06-05T07:51:16.000Z | 2016-06-05T07:51:16.000Z | unifrakturmaguntia/src/generate.py | graffitiMSX/msxpower-googlefontdirectory | 1e201a68c8181698c143279734c4677f194855d8 | [
"Apache-2.0"
] | null | null | null | unifrakturmaguntia/src/generate.py | graffitiMSX/msxpower-googlefontdirectory | 1e201a68c8181698c143279734c4677f194855d8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# With the SFDs in the current directory, run this with
# $ python generate.py
import fontforge, sys
required_version = "20090923"
if fontforge.version() < required_version:
print ("Your version of FontForge is too old - %s or newer is required" % (required_version));
print ("Current fontforge ... | 24.064516 | 98 | 0.686327 |
4f80e45d4e32c8be3ef561b50ff2444d16c0afd8 | 1,790 | py | Python | xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | xgboost-0.6-py3.6.egg/xgboost/dmlc-core/tracker/dmlc_tracker/sge.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | null | null | null | """Submit jobs to Sun Grid Engine."""
# pylint: disable=invalid-name
import os
import subprocess
from . import tracker
def submit(args):
"""Job submission script for SGE."""
if args.jobname is None:
args.jobname = ('dmlc%d.' % args.num_workers) + args.command[0].split('/')[-1]
if args.sge_log_dir... | 36.530612 | 92 | 0.581006 |
4f854d880deadf16219033650ff85578caf3e5b5 | 6,473 | py | Python | MindElec/examples/physics_driven/time_domain_maxwell/src/utils.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | 3 | 2021-11-10T06:17:50.000Z | 2022-03-21T14:25:30.000Z | tests/st/mindelec/networks/test_time_domain_maxwell/src/utils.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | null | null | null | tests/st/mindelec/networks/test_time_domain_maxwell/src/utils.py | mindspore-ai/mindscience | b5269245915695de2d99fb290fef662c241db189 | [
"Apache-2.0"
] | 1 | 2021-12-05T11:41:29.000Z | 2021-12-05T11:41:29.000Z | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 37.201149 | 100 | 0.560482 |
4f86096694d847caa47a97bddc557947b0f8dce5 | 6,968 | py | Python | Code/CBEExamples.py | andreschristen/BA_Dilution_Series | b9de412f5e71770a056c0412249ef8ce7764cf15 | [
"MIT"
] | null | null | null | Code/CBEExamples.py | andreschristen/BA_Dilution_Series | b9de412f5e71770a056c0412249ef8ce7764cf15 | [
"MIT"
] | null | null | null | Code/CBEExamples.py | andreschristen/BA_Dilution_Series | b9de412f5e71770a056c0412249ef8ce7764cf15 | [
"MIT"
] | 1 | 2021-04-16T15:01:33.000Z | 2021-04-16T15:01:33.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon 2018.02.28:00:00:00
@author: Nigel Orlando Santilln Morales
Abstrac:
Examples of experiments from different labs.
"""
##################################################################################################################################################... | 35.015075 | 183 | 0.53961 |
4f867e1c4eeed274461bae0c3be4c88d43b70d6d | 6,985 | py | Python | org_manager_form.py | MervmessInc/sfdx_scratch_org_builder | c592e5d1842a2567c2ea57e4671dd8bb317ef619 | [
"MIT"
] | null | null | null | org_manager_form.py | MervmessInc/sfdx_scratch_org_builder | c592e5d1842a2567c2ea57e4671dd8bb317ef619 | [
"MIT"
] | null | null | null | org_manager_form.py | MervmessInc/sfdx_scratch_org_builder | c592e5d1842a2567c2ea57e4671dd8bb317ef619 | [
"MIT"
] | null | null | null | from asciimatics.widgets import (
Button,
Divider,
Frame,
Layout,
RadioButtons,
Text,
)
from asciimatics.event import KeyboardEvent, MouseEvent
from asciimatics.scene import Scene
from asciimatics.screen import Screen
from asciimatics.exceptions import (
ResizeScreenError,
StopApplicatio... | 24.59507 | 113 | 0.579384 |
4f86cee26e324a8d48afb573b6c1c7561b27084a | 10,087 | py | Python | src/environmentbase/scripts/environmentutil.py | ion-channel/cloudformation-environmentbase | 2dc32fb3fa1aa659bd9efc4350e6962092dfbc19 | [
"BSD-2-Clause"
] | 1 | 2019-04-23T09:02:42.000Z | 2019-04-23T09:02:42.000Z | src/environmentbase/scripts/environmentutil.py | ion-channel/cloudformation-environmentbase | 2dc32fb3fa1aa659bd9efc4350e6962092dfbc19 | [
"BSD-2-Clause"
] | null | null | null | src/environmentbase/scripts/environmentutil.py | ion-channel/cloudformation-environmentbase | 2dc32fb3fa1aa659bd9efc4350e6962092dfbc19 | [
"BSD-2-Clause"
] | 3 | 2017-05-24T23:26:46.000Z | 2018-04-19T01:50:19.000Z | #!/usr/bin/env python
"""environmentutil.py
Utility tool helps to manage mappings and gathering data from across multiple AWS Availability zones.
Usage:
environmentutil amimap get [--aws_region <AWS_REGION>]
[--config_file <CONFIG_FILE>]
environmentutil amimap write [<OUTPUT_FILE>] [--aws_region <A... | 48.263158 | 167 | 0.619312 |
4f879069ef98ad7ff738cf144fe1fd75fdd1089e | 859 | py | Python | service-workers/service-worker/resources/update-max-aged-worker.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | service-workers/service-worker/resources/update-max-aged-worker.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 7,642 | 2018-05-28T09:38:03.000Z | 2022-03-31T20:55:48.000Z | service-workers/service-worker/resources/update-max-aged-worker.py | meyerweb/wpt | f04261533819893c71289614c03434c06856c13e | [
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | import time
import json
from wptserve.utils import isomorphic_decode, isomorphic_encode
| 27.709677 | 113 | 0.559953 |
4f87ac6ce4b524e13bfbf144a4213783caf6da68 | 4,344 | py | Python | src/infrastructure/clients/provider/exchange_rate_api/drivers.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | 8 | 2021-11-09T16:43:38.000Z | 2022-03-25T16:04:26.000Z | src/infrastructure/clients/provider/exchange_rate_api/drivers.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | null | null | null | src/infrastructure/clients/provider/exchange_rate_api/drivers.py | sdediego/forex-django-clean-architecture | 915a8d844a8db5a40c726fe4cf9f6d50f7c95275 | [
"MIT"
] | 2 | 2021-11-16T21:17:31.000Z | 2022-02-11T11:15:29.000Z | # coding: utf-8
import asyncio
from itertools import chain, repeat
from typing import List
from requests import Response
from requests.exceptions import RequestException
from src.domain.exchange_rate import CurrencyEntity, CurrencyExchangeRateEntity
from src.domain.provider import ProviderEntity
from src.infrastruct... | 40.222222 | 96 | 0.665516 |
4f88238f777db0f4e648169070250612e0996459 | 1,885 | py | Python | Client/utils/listFileLumis.py | vkuznet/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 8 | 2015-08-14T04:01:32.000Z | 2021-06-03T00:56:42.000Z | Client/utils/listFileLumis.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 162 | 2015-01-07T21:34:47.000Z | 2021-10-13T09:42:41.000Z | Client/utils/listFileLumis.py | yuyiguo/DBS | 14df8bbe8ee8f874fe423399b18afef911fe78c7 | [
"Apache-2.0"
] | 16 | 2015-01-22T15:27:29.000Z | 2021-04-28T09:23:28.000Z | from __future__ import print_function
#DBS-3 imports
import time
from dbs.apis.dbsClient import *
url="https://cmsweb.cern.ch/dbs/prod/global/DBSReader/"
#url="https://dbs3-test2.cern.ch/dbs/dev/global/DBSReader/"
# API Object
dbs3api = DbsApi(url=url)
# will throw error because no lfn or block_name provided
run_n... | 55.441176 | 199 | 0.838196 |
4f89b62bf25997382973f0cd09db16afd2027eee | 795 | py | Python | src/py-opentimelineio/opentimelineio/schema/generator_reference.py | eric-with-a-c/OpenTimelineIO | 9f55adfc78293b4f508c4a27a34e110ccd92fca6 | [
"Apache-2.0"
] | 1 | 2022-03-26T12:59:59.000Z | 2022-03-26T12:59:59.000Z | src/py-opentimelineio/opentimelineio/schema/generator_reference.py | eric-with-a-c/OpenTimelineIO | 9f55adfc78293b4f508c4a27a34e110ccd92fca6 | [
"Apache-2.0"
] | 40 | 2021-09-13T03:09:21.000Z | 2022-03-28T03:11:10.000Z | src/py-opentimelineio/opentimelineio/schema/generator_reference.py | eric-with-a-c/OpenTimelineIO | 9f55adfc78293b4f508c4a27a34e110ccd92fca6 | [
"Apache-2.0"
] | 1 | 2022-03-09T03:37:24.000Z | 2022-03-09T03:37:24.000Z | from .. core._core_utils import add_method
from .. import _otio
| 24.090909 | 63 | 0.56478 |
4f89bcf2d852f2ef8eb07b1d90b312478a835bbc | 4,696 | py | Python | ftests/nuxeo-server-gatling-tests/scripts/injector.py | aTiKhan/nuxeo | 05753c13d97d599b87acf8710ca523dbd89738f4 | [
"Apache-2.0"
] | 1 | 2021-02-15T19:07:59.000Z | 2021-02-15T19:07:59.000Z | ftests/nuxeo-server-gatling-tests/scripts/injector.py | aTiKhan/nuxeo | 05753c13d97d599b87acf8710ca523dbd89738f4 | [
"Apache-2.0"
] | 3 | 2021-07-03T21:32:41.000Z | 2022-03-23T13:15:18.000Z | ftests/nuxeo-server-gatling-tests/scripts/injector.py | aTiKhan/nuxeo | 05753c13d97d599b87acf8710ca523dbd89738f4 | [
"Apache-2.0"
] | 1 | 2022-03-17T14:55:30.000Z | 2022-03-17T14:55:30.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# (C) Copyright 2015 Nuxeo SA (http://nuxeo.com/) and contributors.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Lesser General Public License
# (LGPL) version 2.1 which accompanies this distribution, ... | 40.482759 | 105 | 0.59753 |
4f8a3f1a9a10f7b445cddfc325c3345386840c0c | 1,781 | py | Python | python/network-security/column.py | shivekkhurana/learning | d871343a30cf4db85f3f938a2ca0e419997ca84e | [
"MIT"
] | null | null | null | python/network-security/column.py | shivekkhurana/learning | d871343a30cf4db85f3f938a2ca0e419997ca84e | [
"MIT"
] | null | null | null | python/network-security/column.py | shivekkhurana/learning | d871343a30cf4db85f3f938a2ca0e419997ca84e | [
"MIT"
] | null | null | null | from random import randint
if __name__ == '__main__':
main() | 28.269841 | 63 | 0.509264 |
4f8bacf5cc8d683ea814fa649f93bbfbdf8b2af2 | 67 | py | Python | SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py | Darkartt/SoftUni | 23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9 | [
"MIT"
] | null | null | null | SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py | Darkartt/SoftUni | 23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9 | [
"MIT"
] | null | null | null | SoftUni-Basic/first_steps_in_coding/lab/04_inches_to_centimeters.py | Darkartt/SoftUni | 23d65ddb9f1e454c9b1338a60dc52f5a64c30bc9 | [
"MIT"
] | null | null | null | inch = float(input())
centimetars = inch * 2.54
print(centimetars) | 16.75 | 25 | 0.716418 |
4f8c5c029193d738ae427dd4616e827e5ddb3129 | 1,119 | py | Python | api/load_db.py | Build-Week-Post-Here-1/Data-Science | d9920656e853898034989fc04fdc37ea13bb73af | [
"MIT"
] | null | null | null | api/load_db.py | Build-Week-Post-Here-1/Data-Science | d9920656e853898034989fc04fdc37ea13bb73af | [
"MIT"
] | 2 | 2021-09-08T01:48:39.000Z | 2022-01-13T02:16:26.000Z | api/load_db.py | Build-Week-Post-Here-1/Data-Science | d9920656e853898034989fc04fdc37ea13bb73af | [
"MIT"
] | 1 | 2020-02-04T17:20:23.000Z | 2020-02-04T17:20:23.000Z | import os
from dotenv import load_dotenv
import sqlite3
import praw
# Create db schema
conn = sqlite3.connect('db.sqlite3')
c = conn.cursor()
c.execute('drop table if exists submissions')
c.execute('''create table submissions (
subreddit text,
subreddit_subs int,
title text... | 30.243243 | 99 | 0.613941 |
4f8c777594f9d7410f30000c4abbaca642fbcd09 | 887 | py | Python | Exemple/exemple.py | GouaiedYosra/mask_rcnn | 1e2bf2a2cbafbec7e890e770b32c256fbe20519f | [
"MIT"
] | null | null | null | Exemple/exemple.py | GouaiedYosra/mask_rcnn | 1e2bf2a2cbafbec7e890e770b32c256fbe20519f | [
"MIT"
] | null | null | null | Exemple/exemple.py | GouaiedYosra/mask_rcnn | 1e2bf2a2cbafbec7e890e770b32c256fbe20519f | [
"MIT"
] | null | null | null | # example of extracting bounding boxes from an annotation file
from xml.etree import ElementTree
# function to extract bounding boxes from an annotation file
# extract details form annotation file
boxes, w, h = extract_boxes('kangaroo/annots/00001.xml')
# summarize extracted details
print(boxes, w, h) | 34.115385 | 62 | 0.717024 |
4f8d150b4ae88cb9a27ba7e46fc92e9ece8c3e04 | 11,435 | py | Python | 14_plot_target-list.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | 1 | 2021-07-30T09:59:41.000Z | 2021-07-30T09:59:41.000Z | 14_plot_target-list.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | null | null | null | 14_plot_target-list.py | kuntzer/SALSA-public | 79fd601d3999ac977bbc97be010b2c4ef81e4c35 | [
"BSD-3-Clause"
] | 1 | 2021-07-30T10:38:54.000Z | 2021-07-30T10:38:54.000Z | ''' 14-plot_target-list.py
===============================================
AIM: Given a catalogue of objects, plots when the targets are visible according to their magnitude for a given period of time.
INPUT: files: - <orbit_id>_misc/orbits.dat
- <orbit_id>_flux/flux_*.dat
variables: see section PARAMETERS (below)... | 29.778646 | 224 | 0.689899 |
4f8d86e6a28fdb9feabc081905b63e6018146084 | 5,829 | py | Python | pymontecarlo_gui/results/base.py | pymontecarlo/pymontecarlo-gui | 1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f | [
"Apache-2.0"
] | null | null | null | pymontecarlo_gui/results/base.py | pymontecarlo/pymontecarlo-gui | 1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f | [
"Apache-2.0"
] | 2 | 2016-05-16T10:19:56.000Z | 2021-12-29T15:16:20.000Z | pymontecarlo_gui/results/base.py | pymontecarlo/pymontecarlo-gui | 1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f | [
"Apache-2.0"
] | null | null | null | """"""
# Standard library modules.
import csv
import io
import functools
# Third party modules.
from qtpy import QtCore, QtGui, QtWidgets, QtWebEngineWidgets
import xlsxwriter
# Local modules.
from pymontecarlo_gui.settings import SettingsBasedField
from pymontecarlo_gui.widgets.dialog import ExecutionProgressDialog... | 29 | 80 | 0.635615 |
4f8dc869ef1dc9d22cc9f3f4842b852a13377f7b | 14,586 | py | Python | tests/test.py | rfsaliev/light-model-transformer | 550a357db8f0c6765328cd42d312fa1be62eae91 | [
"Apache-2.0"
] | 67 | 2018-08-13T02:57:35.000Z | 2021-09-20T05:47:46.000Z | tests/test.py | Mengjintao/light-model-transformer | 9e0c7d5c3ec4042d30e6d8ee67a9c856837573c8 | [
"Apache-2.0"
] | 3 | 2018-08-14T05:54:10.000Z | 2019-09-06T20:50:02.000Z | tests/test.py | Mengjintao/light-model-transformer | 9e0c7d5c3ec4042d30e6d8ee67a9c856837573c8 | [
"Apache-2.0"
] | 18 | 2018-08-13T03:02:00.000Z | 2021-12-10T01:57:28.000Z | # -*- coding: UTF-8 -*-
import os
import sys
import subprocess
import argparse
import re
import configparser
import logging
import copy
import psutil
if sys.version_info[0] < 3:
import struct
import tensorflow as tf
from tensorflow.core.framework import graph_pb2
# level=logging.INFO only logging.debug info,leve... | 36.648241 | 205 | 0.627794 |
4f8dd0d57f577449e61da2e80c2e713182dfefec | 3,912 | py | Python | tests/test_jenkins.py | lakiyi/aiojenkins | 12bd43c6d79be664855a011fa86aedc735db307b | [
"MIT"
] | 19 | 2020-04-26T21:45:21.000Z | 2022-03-07T16:13:12.000Z | tests/test_jenkins.py | lakiyi/aiojenkins | 12bd43c6d79be664855a011fa86aedc735db307b | [
"MIT"
] | 24 | 2020-04-23T20:05:10.000Z | 2021-12-03T22:39:22.000Z | tests/test_jenkins.py | lakiyi/aiojenkins | 12bd43c6d79be664855a011fa86aedc735db307b | [
"MIT"
] | 5 | 2020-08-05T11:04:46.000Z | 2022-01-10T01:45:43.000Z | import asyncio
import time
from collections import namedtuple
from http import HTTPStatus
import pytest
from aiojenkins.exceptions import JenkinsError
from aiojenkins.jenkins import Jenkins
from tests import CreateJob, get_host, get_login, get_password, is_ci_server
def test_session_close():
do()
... | 25.568627 | 79 | 0.676636 |
4f8de99ba5448f45940e47db59549a0a5e04b962 | 1,790 | py | Python | api.py | hale6666/drink-cli | e10b4a2ecba09c53ef3a34b0bd9d60938ae434d0 | [
"MIT"
] | null | null | null | api.py | hale6666/drink-cli | e10b4a2ecba09c53ef3a34b0bd9d60938ae434d0 | [
"MIT"
] | null | null | null | api.py | hale6666/drink-cli | e10b4a2ecba09c53ef3a34b0bd9d60938ae434d0 | [
"MIT"
] | null | null | null | import requests
import json
with open("api.key") as f:
API_KEY = f.read().strip()
"""
This is for security online, so the API key is not publicized.
"""
f.close()
url='https://webdrink.csh.rit.edu/api/index.php'
def test():
"""
This is not usually called, other than for testing the API.
... | 26.716418 | 93 | 0.591061 |
4f8e402da6a278939229244bc051662a74bdbb7f | 1,099 | py | Python | app/main/views.py | jfairf01/OrgoWebsite | 62f25faa1cc174f91377a281e1cea1dd898b0b30 | [
"MIT"
] | null | null | null | app/main/views.py | jfairf01/OrgoWebsite | 62f25faa1cc174f91377a281e1cea1dd898b0b30 | [
"MIT"
] | null | null | null | app/main/views.py | jfairf01/OrgoWebsite | 62f25faa1cc174f91377a281e1cea1dd898b0b30 | [
"MIT"
] | null | null | null | from flask import render_template, jsonify
from sqlalchemy import func
from . import main
from .. import db
from ..models import User, HighScore
| 28.921053 | 80 | 0.743403 |
4f8f2fcef7a9b8ab49ddc25206ab33968b97d1cd | 938 | py | Python | src/python/rodney/misc.py | mesnardo/petibm-rollingpitching | 39f7ed9b88973727bed6955e31d99754d7627c9f | [
"BSD-3-Clause"
] | 2 | 2021-09-06T03:37:06.000Z | 2021-12-01T02:39:13.000Z | src/python/rodney/misc.py | mesnardo/petibm-rollingpitching | 39f7ed9b88973727bed6955e31d99754d7627c9f | [
"BSD-3-Clause"
] | 3 | 2020-03-30T21:52:01.000Z | 2021-07-11T13:11:35.000Z | src/python/rodney/misc.py | mesnardo/petibm-rollingpitching | 39f7ed9b88973727bed6955e31d99754d7627c9f | [
"BSD-3-Clause"
] | 4 | 2021-02-22T21:54:16.000Z | 2022-01-18T18:39:34.000Z | """Miscellaneous helper functions."""
import argparse
def parse_command_line():
"""Parse the command-line options."""
formatter_class = argparse.ArgumentDefaultsHelpFormatter
descr = 'Generic command-line parser for the rolling-piching application.'
parser = argparse.ArgumentParser(description=descr,... | 42.636364 | 78 | 0.60661 |
4f900b835f7f2809af5aeab94956f59503ab79fe | 2,534 | py | Python | tests/test_lime.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 9 | 2021-11-16T09:53:47.000Z | 2022-03-02T13:28:53.000Z | tests/test_lime.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 340 | 2021-03-03T12:55:37.000Z | 2022-03-31T13:53:44.000Z | tests/test_lime.py | dianna-ai/dianna | 88bcaec001e640c35e5e1e08517ef1624fd661cb | [
"Apache-2.0"
] | 5 | 2021-08-19T08:14:35.000Z | 2022-03-17T21:12:46.000Z | from unittest import TestCase
import numpy as np
import dianna
import dianna.visualization
from dianna.methods import LIME
from tests.test_onnx_runner import generate_data
from tests.utils import ModelRunner
from tests.utils import run_model
| 39.59375 | 130 | 0.685478 |
4f90480ab176667d12cd4cc6901cb752aa1d6d1f | 2,600 | py | Python | pyUnicodeSteganography/__init__.py | bunnylab/pyUnicodeSteganography | 4a0e0cdedfa5c96b8a5fea8921881123a7548924 | [
"WTFPL"
] | 2 | 2021-12-18T02:41:40.000Z | 2022-03-14T22:48:49.000Z | pyUnicodeSteganography/__init__.py | bunnylab/pyUnicodeSteganography | 4a0e0cdedfa5c96b8a5fea8921881123a7548924 | [
"WTFPL"
] | null | null | null | pyUnicodeSteganography/__init__.py | bunnylab/pyUnicodeSteganography | 4a0e0cdedfa5c96b8a5fea8921881123a7548924 | [
"WTFPL"
] | null | null | null | import re
import pyUnicodeSteganography.zerowidth as zerowidth
import pyUnicodeSteganography.lookalikes as lookalikes
import pyUnicodeSteganography.snow as snow
import pyUnicodeSteganography.emoji as emoji
from pyUnicodeSteganography.zerowidth import zwc_4
def encode(unencoded_string, msg, method="zw", binary=False, ... | 33.333333 | 103 | 0.651154 |
4f904ef1dc73b23f3b9aba76a41b6b2cd535196b | 6,500 | py | Python | landlab/components/transport_length_diffusion/tests/test_tl_hill_diff.py | saraahsimon/landlab | 1cf809b685efbccaaa149b5899a600c3ccedf30f | [
"MIT"
] | null | null | null | landlab/components/transport_length_diffusion/tests/test_tl_hill_diff.py | saraahsimon/landlab | 1cf809b685efbccaaa149b5899a600c3ccedf30f | [
"MIT"
] | null | null | null | landlab/components/transport_length_diffusion/tests/test_tl_hill_diff.py | saraahsimon/landlab | 1cf809b685efbccaaa149b5899a600c3ccedf30f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 21 16:52:10 2017
@author: margauxmouchene
"""
import numpy as np
import pytest
from numpy.testing import assert_almost_equal
from landlab import RasterModelGrid
from landlab.components import (
FlowAccumulator,
FlowDirectorSteepest,
Tr... | 20.249221 | 80 | 0.365231 |
4f90780c2a2a1ba5b699d89bbb0798c1c6453c81 | 1,361 | py | Python | backend/app.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 3 | 2020-06-13T02:47:29.000Z | 2020-06-20T17:34:15.000Z | backend/app.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 2 | 2020-06-14T20:29:26.000Z | 2020-06-14T20:29:34.000Z | backend/app.py | HalmonLui/square-hackathon | 62d5be7a229f9e39e27a546c164facd779d28aa4 | [
"MIT"
] | 1 | 2020-09-04T01:45:39.000Z | 2020-09-04T01:45:39.000Z | # import app
from flask import Flask, render_template, make_response, send_file
from flask_cors import CORS
# import custom helpers
from maplib import generate_embed
import loyaltylib as ll
app = Flask(__name__)
CORS(app)
# import declared routes
import frontenddata
# def loop_matcher(delay):
# while(True):
# ... | 24.303571 | 66 | 0.653196 |
4f90a023a910c225c34fb968b47953ace924c78b | 2,652 | py | Python | pytorch_mask_rcnn/visualize.py | zimonitrome/PyTorch-Simple-MaskRCNN | 8e8ff3072331c1df5149964a9787817ed0cf6477 | [
"MIT"
] | null | null | null | pytorch_mask_rcnn/visualize.py | zimonitrome/PyTorch-Simple-MaskRCNN | 8e8ff3072331c1df5149964a9787817ed0cf6477 | [
"MIT"
] | null | null | null | pytorch_mask_rcnn/visualize.py | zimonitrome/PyTorch-Simple-MaskRCNN | 8e8ff3072331c1df5149964a9787817ed0cf6477 | [
"MIT"
] | null | null | null | import torch
import torch.nn.functional as F
try:
import matplotlib.pyplot as plt
except ImportError:
pass
| 31.951807 | 106 | 0.501508 |
4f9120612f328e8baf028521cfe58288d762c155 | 134 | py | Python | hec_gnn/single_model/__init__.py | zlinaf/PowerGear | 51ab67a7e2a2f4833de5196bb8aac57eaf77db69 | [
"MIT"
] | 8 | 2022-03-11T03:29:15.000Z | 2022-03-27T07:39:48.000Z | hec_gnn/single_model/__init__.py | zlinaf/PowerGear | 51ab67a7e2a2f4833de5196bb8aac57eaf77db69 | [
"MIT"
] | null | null | null | hec_gnn/single_model/__init__.py | zlinaf/PowerGear | 51ab67a7e2a2f4833de5196bb8aac57eaf77db69 | [
"MIT"
] | 3 | 2022-03-11T02:30:24.000Z | 2022-03-11T02:35:26.000Z | import sys
import os
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.append(ROOT_DIR) | 33.5 | 87 | 0.791045 |
4f912920b3cf2a5552ceadf14640e9d27357ffce | 65 | py | Python | test/Task/ImageSequence/__init__.py | paulondc/chilopoda | 046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4 | [
"MIT"
] | 2 | 2019-09-24T18:56:27.000Z | 2021-02-07T04:58:49.000Z | test/Task/ImageSequence/__init__.py | paulondc/kombi | 046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4 | [
"MIT"
] | 20 | 2019-02-16T04:21:13.000Z | 2019-03-09T21:21:21.000Z | test/Task/ImageSequence/__init__.py | paulondc/kombi | 046dbb0c1b4ff20ea5f2e1679f8d89f3089b6aa4 | [
"MIT"
] | 3 | 2019-11-15T05:16:32.000Z | 2021-09-28T21:28:29.000Z | from .SequenceThumbnailTaskTest import SequenceThumbnailTaskTest
| 32.5 | 64 | 0.923077 |
4f926892b5144ce9012c8e3193223c3bccd78877 | 2,898 | py | Python | flax/tests/geometry_test.py | eevee/flax | 5b4f310c0f980cbc2c1de3a7e74edf1c8f292702 | [
"MIT"
] | 47 | 2015-01-08T09:16:47.000Z | 2021-11-08T11:53:09.000Z | flax/tests/geometry_test.py | eevee/flax | 5b4f310c0f980cbc2c1de3a7e74edf1c8f292702 | [
"MIT"
] | 3 | 2015-03-01T19:44:53.000Z | 2016-03-04T04:10:28.000Z | flax/tests/geometry_test.py | eevee/flax | 5b4f310c0f980cbc2c1de3a7e74edf1c8f292702 | [
"MIT"
] | 9 | 2015-03-02T06:55:42.000Z | 2021-11-03T16:48:47.000Z | from flax.geometry import Blob, Point, Rectangle, Size, Span
| 25.421053 | 60 | 0.6049 |
4f926b4a8eb11004ae116e00ec4924740a1b7257 | 224 | py | Python | generators/UGATIT/dataset/day2rain/txt_gen.py | JW9MsjwjnpdRLFw/RMT | a877fd78639a8d4c534d0373b9d0ad023e0fa2dd | [
"MIT"
] | null | null | null | generators/UGATIT/dataset/day2rain/txt_gen.py | JW9MsjwjnpdRLFw/RMT | a877fd78639a8d4c534d0373b9d0ad023e0fa2dd | [
"MIT"
] | null | null | null | generators/UGATIT/dataset/day2rain/txt_gen.py | JW9MsjwjnpdRLFw/RMT | a877fd78639a8d4c534d0373b9d0ad023e0fa2dd | [
"MIT"
] | 3 | 2021-01-25T02:44:23.000Z | 2021-04-09T13:25:57.000Z | import os
dir = ['trainA', 'trainB', 'testA', 'testB']
for d in dir:
img_names = os.listdir(d)
f = open('list_' + d + '.txt', "w")
for img in img_names:
f.write('./' + img + '\n')
# print(img_names) | 22.4 | 44 | 0.522321 |
4f934a58ff2ca49d71df3afac1a02ffb913fa343 | 260 | py | Python | resources/libExamples/python_class/reader1.py | andy897221/Proof-of-Play-Flow-Demo | 018ec382801f1363711b7680e728535a2ac94d26 | [
"MIT"
] | null | null | null | resources/libExamples/python_class/reader1.py | andy897221/Proof-of-Play-Flow-Demo | 018ec382801f1363711b7680e728535a2ac94d26 | [
"MIT"
] | null | null | null | resources/libExamples/python_class/reader1.py | andy897221/Proof-of-Play-Flow-Demo | 018ec382801f1363711b7680e728535a2ac94d26 | [
"MIT"
] | null | null | null | import time
from concurrent.futures import ThreadPoolExecutor
import read2
import data_class
executor = ThreadPoolExecutor(1)
executor.submit(read2.test)
print(data_class.data.a)
data_class.data.a = "reader 1 received!"
time.sleep(3)
print(data_class.data.a) | 21.666667 | 49 | 0.815385 |
4f94469aa70e6bd1234bc19b4b98cb6d67b1b6d5 | 2,990 | py | Python | slowfast/datasets/utils.py | serre-lab/pred_gn | 437034687a561e72bf013dc295454da239748044 | [
"Apache-2.0"
] | null | null | null | slowfast/datasets/utils.py | serre-lab/pred_gn | 437034687a561e72bf013dc295454da239748044 | [
"Apache-2.0"
] | null | null | null | slowfast/datasets/utils.py | serre-lab/pred_gn | 437034687a561e72bf013dc295454da239748044 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import logging
import numpy as np
import time
import torch
import cv2
logger = logging.getLogger(__name__)
def retry_load_images(image_paths, retry=10, backend="pytorch"):
"""
This function is to load images with support of retrying for failed load.
Args:
image_paths (li... | 31.473684 | 80 | 0.607692 |
4f96c33c8a6968237aa27de63e2f0f42021a110e | 1,437 | py | Python | malleus/client/service/call_service.py | joelgerard/malleus | 763850ef270a449829b89a998cdce8febf5020ef | [
"Apache-2.0"
] | null | null | null | malleus/client/service/call_service.py | joelgerard/malleus | 763850ef270a449829b89a998cdce8febf5020ef | [
"Apache-2.0"
] | 2 | 2021-02-08T20:22:50.000Z | 2021-06-01T22:07:40.000Z | malleus/client/service/call_service.py | joelgerard/malleus | 763850ef270a449829b89a998cdce8febf5020ef | [
"Apache-2.0"
] | null | null | null | import config
from malleus.api.service.protos.bench_service_pb2 import BenchRequest
#from malleus.api.service.protos.bench_service_pb2 import BenchRequest.Datasource
from malleus.api.domain.timer import Timer
import grpc
from malleus.api.service.protos.bench_service_pb2 import BenchRequest
import malleus.api.service.p... | 37.815789 | 82 | 0.695894 |
4f9759e43dd9c4a722e982e34e894b89c7ce75b3 | 1,999 | py | Python | resolwe_bio/tests/workflows/test_chemut.py | gregorjerse/resolwe-bio | 80f1e354cf0014a1eeff00acc112c622a2a044a9 | [
"Apache-2.0"
] | 12 | 2015-12-07T18:29:27.000Z | 2022-03-16T08:00:18.000Z | resolwe_bio/tests/workflows/test_chemut.py | gregorjerse/resolwe-bio | 80f1e354cf0014a1eeff00acc112c622a2a044a9 | [
"Apache-2.0"
] | 480 | 2015-11-20T21:46:43.000Z | 2022-03-28T12:40:57.000Z | resolwe_bio/tests/workflows/test_chemut.py | gregorjerse/resolwe-bio | 80f1e354cf0014a1eeff00acc112c622a2a044a9 | [
"Apache-2.0"
] | 45 | 2015-11-19T14:54:07.000Z | 2022-02-13T21:36:50.000Z | from resolwe.flow.models import Data
from resolwe.test import tag_process
from resolwe_bio.utils.filter import filter_vcf_variable
from resolwe_bio.utils.test import BioProcessTestCase
| 35.070175 | 81 | 0.568284 |
4f98c653568190ba3d9757f9946ea9b828f77543 | 186 | py | Python | code/src/scripts/pause.py | nuvla/job-engine | 58d42bd24d8dd2c6e28541c08df1455c9ac909f6 | [
"Apache-2.0"
] | 3 | 2019-04-27T10:36:21.000Z | 2019-04-29T12:41:57.000Z | code/src/scripts/pause.py | nuvla/job-engine | 58d42bd24d8dd2c6e28541c08df1455c9ac909f6 | [
"Apache-2.0"
] | 131 | 2019-02-13T06:00:49.000Z | 2022-03-29T15:06:03.000Z | code/src/scripts/pause.py | nuvla/job-engine | 58d42bd24d8dd2c6e28541c08df1455c9ac909f6 | [
"Apache-2.0"
] | 1 | 2020-12-03T11:35:21.000Z | 2020-12-03T11:35:21.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import docker
import socket
docker_client = docker.from_env()
myself = docker_client.containers.get(socket.gethostname())
myself.pause() | 16.909091 | 59 | 0.731183 |
4f98fc6e974de77141b6fbb73e66badbc6f28920 | 3,282 | py | Python | scripts/parchg.py | Vevn/ENVISIoN | d0e48a5ec38ed95375f632eafdc5814415f0f570 | [
"BSD-2-Clause"
] | null | null | null | scripts/parchg.py | Vevn/ENVISIoN | d0e48a5ec38ed95375f632eafdc5814415f0f570 | [
"BSD-2-Clause"
] | null | null | null | scripts/parchg.py | Vevn/ENVISIoN | d0e48a5ec38ed95375f632eafdc5814415f0f570 | [
"BSD-2-Clause"
] | 1 | 2020-05-15T14:52:19.000Z | 2020-05-15T14:52:19.000Z | # ENVISIoN
#
# Copyright (c) 2018 Jesper Ericsson
# 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, this
# list o... | 42.623377 | 130 | 0.763254 |
4f997b4422654e8ded613b50854c6295cfbecb26 | 2,437 | py | Python | functions/sentim-preprocess/main.py | gipfelen/Sentiment-Analysis | f852f9887310cdff90e115cc140a2f8ae3618087 | [
"MIT"
] | null | null | null | functions/sentim-preprocess/main.py | gipfelen/Sentiment-Analysis | f852f9887310cdff90e115cc140a2f8ae3618087 | [
"MIT"
] | 1 | 2022-01-04T22:47:06.000Z | 2022-01-04T22:47:06.000Z | functions/sentim-preprocess/main.py | gipfelen/Sentiment-Analysis | f852f9887310cdff90e115cc140a2f8ae3618087 | [
"MIT"
] | 3 | 2021-04-15T09:47:28.000Z | 2021-12-06T21:05:28.000Z | import json
import re
##################################################
########## Boilerplate wrapping code #############
##################################################
# IBM wrapper
# AWS wrapper
##################################################
##################################################
# { 'te... | 28.337209 | 86 | 0.587197 |
4f99c3f7f27703ec474adca4fd3ebb493a659631 | 3,981 | py | Python | pixette/application.py | EXLER/pixette | 0d31238fcb99ab8936f8b37c8c3987b70a326df9 | [
"MIT"
] | null | null | null | pixette/application.py | EXLER/pixette | 0d31238fcb99ab8936f8b37c8c3987b70a326df9 | [
"MIT"
] | null | null | null | pixette/application.py | EXLER/pixette | 0d31238fcb99ab8936f8b37c8c3987b70a326df9 | [
"MIT"
] | null | null | null | import logging
import os
import pygame
from pixette.scenes.admin import AdminScene
from pixette.scenes.clock import ClockScene
from pixette.scenes.currencies import CurrenciesScene
from pixette.scenes.weather import WeatherScene
def change_scene(self, scene):
"""
Change the currently active scen... | 30.860465 | 105 | 0.596333 |
4f9a379d3ba99f8e8d48d7249f66b2636ad03135 | 880 | py | Python | backend/app/security.py | Kwsswart/writter | 851b887d0c8b0a9489f530065f0efe744bb149f3 | [
"MIT"
] | null | null | null | backend/app/security.py | Kwsswart/writter | 851b887d0c8b0a9489f530065f0efe744bb149f3 | [
"MIT"
] | null | null | null | backend/app/security.py | Kwsswart/writter | 851b887d0c8b0a9489f530065f0efe744bb149f3 | [
"MIT"
] | null | null | null | import os
from bcrypt import hashpw, gensalt, checkpw
from base64 import b64encode
from hashlib import sha256
from cryptography.fernet import Fernet
e = Fernet(os.getenv("KEY"))
def encpwd(pwd):
"""
Hash pwd provided
"""
return hashpw(b64encode(sha256(pwd.encode()).digest()), gensalt()).decode()
... | 20 | 79 | 0.626136 |
4f9ac2bfc1a1e513e9625d77e9d955a817e50301 | 427 | py | Python | zfused_maya/zfused_maya/tool/animation/studiolibrary/examples/example3.py | zhoulh0322/zfused_outsource_old | 3d20c1493c3cffd742b10a7db6e0b1f3bb374af8 | [
"Apache-2.0"
] | 1 | 2022-01-14T11:40:35.000Z | 2022-01-14T11:40:35.000Z | zfused_maya/zfused_maya/tool/animation/studiolibrary/examples/example3.py | zhoulh0322/zfused_outsource_old | 3d20c1493c3cffd742b10a7db6e0b1f3bb374af8 | [
"Apache-2.0"
] | null | null | null | zfused_maya/zfused_maya/tool/animation/studiolibrary/examples/example3.py | zhoulh0322/zfused_outsource_old | 3d20c1493c3cffd742b10a7db6e0b1f3bb374af8 | [
"Apache-2.0"
] | null | null | null | # An example for how to lock specific folders using the lockRegExp param
import studiolibrary
if __name__ == "__main__":
# Use the studiolibrary.app context for creating a QApplication instance
with studiolibrary.app():
# Lock all folders that contain the words "icon" & "Pixar" in the path
... | 28.466667 | 79 | 0.711944 |
4f9ca017d8993f316f0c7fd3c1640c6b4667a2cc | 1,002 | py | Python | djangae/contrib/googleauth/backends/base.py | sleepyjames/djangae | 79a9e42c09c3be1189464870f008f8af7060bd9c | [
"BSD-3-Clause"
] | 467 | 2015-01-02T22:35:37.000Z | 2022-02-22T23:13:36.000Z | djangae/contrib/googleauth/backends/base.py | sleepyjames/djangae | 79a9e42c09c3be1189464870f008f8af7060bd9c | [
"BSD-3-Clause"
] | 743 | 2015-01-02T15:55:34.000Z | 2021-01-29T09:43:19.000Z | djangae/contrib/googleauth/backends/base.py | sleepyjames/djangae | 79a9e42c09c3be1189464870f008f8af7060bd9c | [
"BSD-3-Clause"
] | 154 | 2015-01-01T17:05:59.000Z | 2021-12-09T06:40:07.000Z | """
This is duplicated from Django 3.0 to avoid
starting an import chain that ends up with
ContentTypes which may not be installed in a
Djangae project.
"""
| 26.368421 | 66 | 0.636727 |
4f9d958bf40e31e749c287f77979cfb2be9e5cee | 396 | py | Python | tests/cell_fabric/test_rect.py | mabrains/ALIGN-public | 9a6c14310de13df369a8340f465911b629f15a3f | [
"BSD-3-Clause"
] | 119 | 2019-05-14T18:44:34.000Z | 2022-03-17T01:01:02.000Z | tests/cell_fabric/test_rect.py | mabrains/ALIGN-public | 9a6c14310de13df369a8340f465911b629f15a3f | [
"BSD-3-Clause"
] | 717 | 2019-04-03T15:36:35.000Z | 2022-03-31T21:56:47.000Z | tests/cell_fabric/test_rect.py | mabrains/ALIGN-public | 9a6c14310de13df369a8340f465911b629f15a3f | [
"BSD-3-Clause"
] | 34 | 2019-04-01T21:21:27.000Z | 2022-03-21T09:46:57.000Z | from align.cell_fabric.transformation import Rect
| 24.75 | 49 | 0.517677 |
4f9ee549c0660d61b100be39690bb3e9a1b75160 | 2,800 | py | Python | CALCI PROGRAM TKINTER.py | Madmaxcoder2612/Programming-Codes | f70c06ed4a7892ed55673f66c1585370d3f1169f | [
"MIT"
] | null | null | null | CALCI PROGRAM TKINTER.py | Madmaxcoder2612/Programming-Codes | f70c06ed4a7892ed55673f66c1585370d3f1169f | [
"MIT"
] | null | null | null | CALCI PROGRAM TKINTER.py | Madmaxcoder2612/Programming-Codes | f70c06ed4a7892ed55673f66c1585370d3f1169f | [
"MIT"
] | null | null | null | # GUI Development using Tkinter
import tkinter as tk
app = tk.Tk()
app.geometry('340x310')
app.title("Calculator")
entry = tk.Entry(app,text='0',font=('arial',20,'normal'))
entry.place(x=20,y=15)
one_button = tk.Button(app,text = "7",font=('arial',10,'bold'),command = lambda:number(7),width = 6).place(x=... | 51.851852 | 126 | 0.639286 |
4fa0554d8bffe632c5f4057529ceb3127ce8caaf | 12,538 | py | Python | models.py | andreweskeclarke/rl_gyms | e4193180ae73b3410f006ba6f20300267d479054 | [
"Apache-2.0"
] | null | null | null | models.py | andreweskeclarke/rl_gyms | e4193180ae73b3410f006ba6f20300267d479054 | [
"Apache-2.0"
] | null | null | null | models.py | andreweskeclarke/rl_gyms | e4193180ae73b3410f006ba6f20300267d479054 | [
"Apache-2.0"
] | null | null | null | import ipdb
import math
import numpy as np
import tensorflow as tf
# N_DIM_STATE = 4
# N_DIM_ACTIONS = 2
N_DIM_STATE = 210*160
N_DIM_ACTIONS = 9
# https://github.com/rinuboney/ladder/blob/master/ladder.py
| 44.460993 | 123 | 0.56564 |
4fa0f0b6da9530431d0a28bc79144ef0fdfe6ec0 | 12,808 | py | Python | nuclino/api.py | Vanderhoof/PyNuclino | 20aefaaa145f0afa15778b049d83be157e5a553b | [
"MIT"
] | 1 | 2022-01-28T06:27:57.000Z | 2022-01-28T06:27:57.000Z | nuclino/api.py | Vanderhoof/PyNuclino | 20aefaaa145f0afa15778b049d83be157e5a553b | [
"MIT"
] | null | null | null | nuclino/api.py | Vanderhoof/PyNuclino | 20aefaaa145f0afa15778b049d83be157e5a553b | [
"MIT"
] | null | null | null | import requests
from typing import List
from typing import Optional
from typing import Union
from ratelimit import limits
from .utils import sleep_and_retry
from .objects import NuclinoObject
from .objects import get_loader
BASE_URL = 'https://api.nuclino.com/v0'
| 31.469287 | 90 | 0.579169 |
4fa4042c8d50c736872f18bc6de82a9eeac26254 | 591 | py | Python | apps/base/migrations/0056_auto_20190821_1628.py | gvizquel/pyerp | c859f7293cabd1003f79112463cee93ac89fccba | [
"MIT"
] | null | null | null | apps/base/migrations/0056_auto_20190821_1628.py | gvizquel/pyerp | c859f7293cabd1003f79112463cee93ac89fccba | [
"MIT"
] | 11 | 2020-06-05T22:50:37.000Z | 2022-02-10T09:05:56.000Z | apps/base/migrations/0056_auto_20190821_1628.py | gvizquel/pyerp | c859f7293cabd1003f79112463cee93ac89fccba | [
"MIT"
] | null | null | null | # Generated by Django 2.2.4 on 2019-08-21 20:28
from django.db import migrations, models
| 24.625 | 85 | 0.588832 |
4fa4d1534b1e2c6e2ca72fcf0d2aa45f72c2bfdf | 1,516 | py | Python | tests/test_settings.py | abahnihi/kn-defaults | 02517a76f14da8b519124af38a773a621b9a4041 | [
"MIT"
] | 2 | 2020-10-04T09:22:52.000Z | 2020-11-18T15:37:22.000Z | tests/test_settings.py | abahnihi/kn-defaults | 02517a76f14da8b519124af38a773a621b9a4041 | [
"MIT"
] | 2 | 2020-10-12T06:13:49.000Z | 2020-11-18T15:37:05.000Z | tests/test_settings.py | abahnihi/kn-defaults | 02517a76f14da8b519124af38a773a621b9a4041 | [
"MIT"
] | 1 | 2021-09-16T10:23:56.000Z | 2021-09-16T10:23:56.000Z | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'fake-key'
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'rav... | 25.694915 | 70 | 0.674142 |
4fa7c8aae2cd758336fcea63483f62b6c22958c0 | 135 | py | Python | 0/2/2752/2752.py | chr0m3/boj-codes | d71d0a22d0a3ae62c225f382442461275f56fe8f | [
"MIT"
] | 3 | 2017-07-08T16:29:06.000Z | 2020-07-20T00:17:45.000Z | 0/2/2752/2752.py | chr0m3/boj-codes | d71d0a22d0a3ae62c225f382442461275f56fe8f | [
"MIT"
] | null | null | null | 0/2/2752/2752.py | chr0m3/boj-codes | d71d0a22d0a3ae62c225f382442461275f56fe8f | [
"MIT"
] | 2 | 2017-11-20T14:06:06.000Z | 2020-07-20T00:17:47.000Z | numbers = list(map(int, input().split())).sort()
numbers.sort()
print(str(numbers[0]) + ' ' + str(numbers[1]) + ' ' + str(numbers[2]))
| 33.75 | 70 | 0.592593 |
4fa960640ac080eae40140838421c34218db4f57 | 1,431 | py | Python | examples/worker.py | denissmirnov/kiel | fa80aa1ccd790c0fbbd8cc46a72162195e1aed69 | [
"Apache-2.0"
] | 47 | 2016-02-23T18:32:55.000Z | 2021-12-03T00:50:52.000Z | examples/worker.py | denissmirnov/kiel | fa80aa1ccd790c0fbbd8cc46a72162195e1aed69 | [
"Apache-2.0"
] | 21 | 2016-02-23T01:41:18.000Z | 2020-10-27T21:09:32.000Z | examples/worker.py | denissmirnov/kiel | fa80aa1ccd790c0fbbd8cc46a72162195e1aed69 | [
"Apache-2.0"
] | 13 | 2016-05-18T06:16:48.000Z | 2019-10-31T19:35:25.000Z | #!/usr/bin/env python
import argparse
import logging
from tornado import gen, ioloop
from kiel.clients import GroupedConsumer
log = logging.getLogger()
parser = argparse.ArgumentParser(
description="Example grouped consumer that prints out messages it gets."
)
parser.add_argument(
"brokers", type=lambda ... | 19.60274 | 76 | 0.65269 |
4faa95c6d247e311aedbaf9ff405c3309caa0c17 | 146 | py | Python | glucose_app/glicemy/apps.py | luciano-s/glucose_app | f8b8d97f96bfbc5106fdce0f3de9694486b97f16 | [
"MIT"
] | null | null | null | glucose_app/glicemy/apps.py | luciano-s/glucose_app | f8b8d97f96bfbc5106fdce0f3de9694486b97f16 | [
"MIT"
] | null | null | null | glucose_app/glicemy/apps.py | luciano-s/glucose_app | f8b8d97f96bfbc5106fdce0f3de9694486b97f16 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 20.857143 | 56 | 0.760274 |
4fae4d9fb269656577ad00e357001a2996f802a4 | 7,480 | py | Python | pycancer.py | WORD559/pycancer | 355d09e5f8c347e467b72279c51182aee1a9564f | [
"MIT"
] | null | null | null | pycancer.py | WORD559/pycancer | 355d09e5f8c347e467b72279c51182aee1a9564f | [
"MIT"
] | 3 | 2021-09-08T01:04:59.000Z | 2022-03-11T23:51:01.000Z | pycancer.py | WORD559/pycancer | 355d09e5f8c347e467b72279c51182aee1a9564f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
import math
import time
import os
import pygame
from pygame.locals import *
from constants import *
from sprites import Spinner
if __name__ == "__main__":
app = App(WINDOW_SIZE[0], WINDOW_SIZE[1],
WINDOW_NAME)
app.start(FPS_LIMIT)
| 36.487805 | 164 | 0.60361 |
4faff66bcc8450a4ff6ceab6fbf57edf2800ad21 | 2,007 | py | Python | shapes_and_text.py | UPstartDeveloper/open-cv-learning | fea0e6756ff50ef65601a3de36d503c9690e816e | [
"MIT"
] | null | null | null | shapes_and_text.py | UPstartDeveloper/open-cv-learning | fea0e6756ff50ef65601a3de36d503c9690e816e | [
"MIT"
] | null | null | null | shapes_and_text.py | UPstartDeveloper/open-cv-learning | fea0e6756ff50ef65601a3de36d503c9690e816e | [
"MIT"
] | null | null | null | import cv2
import numpy as np
# Chapter 4 - How to Draw Shapes and Text on Images
if __name__ == '__main__':
# define an "image" only a matrix
img = np.zeros((512, 512, 3), np.uint8)
# print(img) # print the numbers making up the "image" in CLI
# "Color" the whole image, by manipulating the matrix v... | 28.671429 | 77 | 0.584953 |
4fb045ff192d656ea573c38eeb8da1f72e35f93e | 416 | py | Python | mysite/myapp/migrations/0004_auto_20191219_1946.py | Niyy/monsterpedia | fa43286a49c5c6098c79c33f55af00a867a43da2 | [
"MIT"
] | null | null | null | mysite/myapp/migrations/0004_auto_20191219_1946.py | Niyy/monsterpedia | fa43286a49c5c6098c79c33f55af00a867a43da2 | [
"MIT"
] | null | null | null | mysite/myapp/migrations/0004_auto_20191219_1946.py | Niyy/monsterpedia | fa43286a49c5c6098c79c33f55af00a867a43da2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2019-12-19 19:46
from django.db import migrations, models
| 21.894737 | 72 | 0.598558 |
4fb0b3f6ba847c924951e836cc3ba121616356df | 2,089 | py | Python | src/data/caf/make_data.py | tiphaine/o2-base | 9c70b0b6e1f63bf0f12411df64fcb7fa02ca754f | [
"MIT"
] | null | null | null | src/data/caf/make_data.py | tiphaine/o2-base | 9c70b0b6e1f63bf0f12411df64fcb7fa02ca754f | [
"MIT"
] | 2 | 2020-02-19T18:42:35.000Z | 2020-02-19T18:44:16.000Z | src/data/caf/make_data.py | tiphaine/o2-base | 9c70b0b6e1f63bf0f12411df64fcb7fa02ca754f | [
"MIT"
] | null | null | null | import pandas as pd
from caf import source_config
from utils import write_csv_file
def _get_year(p):
"""Get year from string having the DD/MM/YEAR format."""
date_tokens = p['dtref'].split('/')
if len(date_tokens) == 3:
date_year = date_tokens[-1]
else:
date_year = None
return dat... | 34.245902 | 77 | 0.637626 |
96c4a51ecf35e22dc9c831e47236365c612bb6e2 | 3,635 | py | Python | draco/run.py | ngehlenborg/draco | e7e958d9494413e0578053359368b7918a0135de | [
"BSD-3-Clause"
] | null | null | null | draco/run.py | ngehlenborg/draco | e7e958d9494413e0578053359368b7918a0135de | [
"BSD-3-Clause"
] | null | null | null | draco/run.py | ngehlenborg/draco | e7e958d9494413e0578053359368b7918a0135de | [
"BSD-3-Clause"
] | null | null | null | '''
Run constraint solver to complete spec.
'''
import json
import logging
import os
import subprocess
import tempfile
from typing import Dict, List, Tuple, Optional
import clyngor
from draco.spec import Query, Task
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
DRACO_LP = ['define.lp... | 30.291667 | 153 | 0.640165 |
96c5fae37373ce25e688f3df204cf57572673e1e | 53,086 | py | Python | diptera_track_ui.py | jmmelis/DipteraTrack | 1d267ccd4248635233147f2035b900a433dc4536 | [
"MIT"
] | 1 | 2019-06-14T10:19:19.000Z | 2019-06-14T10:19:19.000Z | diptera_track_ui.py | jmmelis/DipteraTrack | 1d267ccd4248635233147f2035b900a433dc4536 | [
"MIT"
] | null | null | null | diptera_track_ui.py | jmmelis/DipteraTrack | 1d267ccd4248635233147f2035b900a433dc4536 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'diptera_track.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
from BoundingBoxWidget import BBoxWidget
from ContourViewWidget import Cont... | 63.047506 | 118 | 0.714878 |
96c869993e67e90b938d23f96a94a64def202fe5 | 6,337 | py | Python | orcid_service/tests/stubdata/work_single_409.py | nemanjamart/orcid-service | 596973819b904ad28a9d84a773db09d5039bee26 | [
"MIT"
] | 1 | 2017-11-06T22:45:48.000Z | 2017-11-06T22:45:48.000Z | orcid_service/tests/stubdata/work_single_409.py | nemanjamart/orcid-service | 596973819b904ad28a9d84a773db09d5039bee26 | [
"MIT"
] | 31 | 2015-02-23T14:29:31.000Z | 2021-03-10T14:59:52.000Z | orcid_service/tests/stubdata/work_single_409.py | nemanjamart/orcid-service | 596973819b904ad28a9d84a773db09d5039bee26 | [
"MIT"
] | 10 | 2015-02-12T23:07:24.000Z | 2022-01-04T19:00:20.000Z | data = {
"publication-date": {
"year": {
"value": "2020"},
"month": {"value": "01"}},
"short-description": "With a central surface brightness of 29.3 mag arcsec, and half-light radius of r_half=3.1^{+0.9}_{-1.1} kpc, Andromeda XIX (And XIX) is an extremely diffuse satellite of Androm... | 30.912195 | 208 | 0.372889 |
96c88c858215a0c25dd7b0d7a56c86c6fc360ef4 | 263 | py | Python | tests/test_day5.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | 1 | 2020-12-05T09:25:03.000Z | 2020-12-05T09:25:03.000Z | tests/test_day5.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | null | null | null | tests/test_day5.py | n1ckdm/advent-of-code-2020 | 913ea4cff29fa76df15c0c22616cc1eebb903490 | [
"MIT"
] | null | null | null | from aoc_2020.day5 import part1, get_pos, part2
data = """BFFFBBFRRR
FFFBBBFRRR
BBFFBBFRLL
"""
| 13.842105 | 47 | 0.680608 |
96c8adb800760315ee27599c677403371d5d3acb | 22,434 | py | Python | python/util.py | spatialaudio/aes148-shelving-filter | a11de97d6be79c23ffc55084ca95d9da15f3e3eb | [
"MIT"
] | 5 | 2020-06-04T12:28:10.000Z | 2022-03-07T12:35:54.000Z | python/util.py | spatialaudio/aes148-shelving-filter | a11de97d6be79c23ffc55084ca95d9da15f3e3eb | [
"MIT"
] | null | null | null | python/util.py | spatialaudio/aes148-shelving-filter | a11de97d6be79c23ffc55084ca95d9da15f3e3eb | [
"MIT"
] | 1 | 2020-11-18T06:19:37.000Z | 2020-11-18T06:19:37.000Z | """Shelving Filter Cascade with Adjustable Transition Slope and Bandwidth
Frank Schultz, Nara Hahn, Sascha Spors
In: Proc. of 148th AES Convention, Virtual Vienna, May 2020, Paper 10339
http://www.aes.org/e-lib/browse.cfm?elib=20756
"""
import numpy as np
from scipy.signal import tf2sos, freqs
from matplotlib import r... | 30.072386 | 130 | 0.585362 |
96c928af19979ff24c55a99b28243be2add708ab | 1,529 | py | Python | Segment Tree Query II.py | RijuDasgupta9116/LintCode | 4629a3857b2c57418b86a3b3a7180ecb15e763e3 | [
"Apache-2.0"
] | 321 | 2015-01-04T04:01:44.000Z | 2022-03-20T13:21:55.000Z | Segment Tree Query II.py | leifoo/LintCode | 2520762a1cfbd486081583136396a2b2cac6e4fb | [
"Apache-2.0"
] | 1 | 2016-01-11T04:29:37.000Z | 2016-01-11T04:29:37.000Z | Segment Tree Query II.py | leifoo/LintCode | 2520762a1cfbd486081583136396a2b2cac6e4fb | [
"Apache-2.0"
] | 114 | 2015-01-27T06:08:17.000Z | 2022-03-23T03:58:11.000Z | """
For an array, we can build a SegmentTree for it, each node stores an extra attribute count to denote the number of
elements in the the array which value is between interval start and end. (The array may not fully filled by elements)
Design a query method with three parameters root, start and end, find the number o... | 29.403846 | 119 | 0.576194 |
96ca626a4b0b422d3111b3bc01bab71f87bc23d8 | 944 | py | Python | inferencia/util/reader/reader_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | null | null | null | inferencia/util/reader/reader_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 5 | 2021-07-25T23:19:29.000Z | 2021-07-26T23:35:13.000Z | inferencia/util/reader/reader_factory.py | yuya-mochimaru-np/inferencia | e09f298d0a80672fc5bb9383e23c941290eff334 | [
"Apache-2.0"
] | 1 | 2021-09-18T12:06:13.000Z | 2021-09-18T12:06:13.000Z | import os.path as osp
from .reader.video_reader import VideoReader
| 30.451613 | 70 | 0.581568 |
96cee147c0593a95de8069b59d56dcb5797d1ec4 | 15,755 | py | Python | src/utils.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 1 | 2021-10-06T00:21:10.000Z | 2021-10-06T00:21:10.000Z | src/utils.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 14 | 2021-01-15T21:51:38.000Z | 2021-11-10T10:08:22.000Z | src/utils.py | lubianat/complex_bot | e0ddabcc0487c52b14fb94950c5a812f0bdb2283 | [
"MIT"
] | 1 | 2021-01-18T10:32:56.000Z | 2021-01-18T10:32:56.000Z | # Code modified from original by @jvfe (BSD2)
# Copyright (c) 2020, jvfe
# https://github.com/jvfe/wdt_contribs/tree/master/complex_portal/src
import math
import re
from collections import defaultdict
from ftplib import FTP
from functools import lru_cache, reduce
from time import gmtime, strftime
import pandas as pd
f... | 32.551653 | 136 | 0.635227 |
96d020593d682ed45dc1c5d9066ff6a5caf2f8fb | 1,264 | py | Python | tests/t_11_serial_test.py | llbxg/NIST-SP-800-22 | 7e82243643b62fdc07cbe5f40d540b0a16a4372a | [
"MIT"
] | null | null | null | tests/t_11_serial_test.py | llbxg/NIST-SP-800-22 | 7e82243643b62fdc07cbe5f40d540b0a16a4372a | [
"MIT"
] | null | null | null | tests/t_11_serial_test.py | llbxg/NIST-SP-800-22 | 7e82243643b62fdc07cbe5f40d540b0a16a4372a | [
"MIT"
] | null | null | null | import scipy.special as sc
from tests.src.utils import split_list, __print
# .11 Serial Test | 25.795918 | 73 | 0.509494 |
96d04e179f9f7c4579746fedd4c15e79b9631946 | 1,337 | py | Python | views/routes.py | macwille/python-chat-app | 95a5bc28c3daeb977e1a1c9e5801941389baeb21 | [
"CC0-1.0"
] | 1 | 2021-06-01T12:27:58.000Z | 2021-06-01T12:27:58.000Z | views/routes.py | macwille/python-chat-app | 95a5bc28c3daeb977e1a1c9e5801941389baeb21 | [
"CC0-1.0"
] | null | null | null | views/routes.py | macwille/python-chat-app | 95a5bc28c3daeb977e1a1c9e5801941389baeb21 | [
"CC0-1.0"
] | null | null | null | from app import app
from views import subject_routes, room_routes, user_routes, message_routes
from models import user_service
from flask import Flask, flash, render_template, request, session, abort
from db import db
# Rest of the routes are imported from /views
# Utilties
def check_token():
token = session[... | 21.918033 | 74 | 0.689604 |
96d1b8d26dc9756efe3d492e86bffbd382fb0866 | 2,082 | py | Python | ievv_opensource/ievv_i18n_url/i18n_url_utils/i18n_urlpatterns.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | null | null | null | ievv_opensource/ievv_i18n_url/i18n_url_utils/i18n_urlpatterns.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 37 | 2015-10-26T09:14:12.000Z | 2022-02-10T10:35:33.000Z | ievv_opensource/ievv_i18n_url/i18n_url_utils/i18n_urlpatterns.py | appressoas/ievv_opensource | 63e87827952ddc8f6f86145b79478ef21d6a0990 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T07:56:34.000Z | 2015-11-06T07:56:34.000Z | import re
from django.urls import path, URLResolver
from django.conf import settings
from ievv_opensource.ievv_i18n_url import active_i18n_url_translation
from ievv_opensource.ievv_i18n_url.views import RedirectToLanguagecodeView
#
# Note: Basically copy and tuning from https://github.com/django/django/blob/1.11.29/... | 28.916667 | 109 | 0.670509 |
96d2afcdf9b53f37c987f04d16fd91b999a57d2d | 2,818 | py | Python | test_autocorrelation.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | test_autocorrelation.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | 4 | 2017-08-22T03:15:22.000Z | 2017-12-19T17:55:31.000Z | test_autocorrelation.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Program:
This is a test program for autocorrelation
Usage:
test_autocorrelation.py
Editor:
Jacob975
20181127
#################################
update log
'''
import numpy as np
import time
import matplotlib.pyplot as plt
from uncertainties import unumpy, ufloat
# Convert flux to mag... | 28.755102 | 114 | 0.590845 |
96d37afffd4e6e28f939d7f7417d5487bda9c877 | 8,617 | py | Python | lambda/ecs-lifecycle-hook-launch.py | asilvas/ecs-cluster-manager | 9c6cc28b0da047e66e4cb04c3e653fdd84614367 | [
"Apache-2.0"
] | 47 | 2019-02-14T01:52:15.000Z | 2022-02-22T20:37:04.000Z | lambda/ecs-lifecycle-hook-launch.py | eshack94/ecs-cluster-manager | 9c6cc28b0da047e66e4cb04c3e653fdd84614367 | [
"Apache-2.0"
] | 3 | 2019-04-30T18:35:18.000Z | 2019-10-29T01:21:03.000Z | lambda/ecs-lifecycle-hook-launch.py | eshack94/ecs-cluster-manager | 9c6cc28b0da047e66e4cb04c3e653fdd84614367 | [
"Apache-2.0"
] | 35 | 2019-01-30T14:54:18.000Z | 2022-01-17T09:34:16.000Z | # Copyright 2018 Amazon.com, Inc. or its affiliates.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file ac... | 36.512712 | 79 | 0.635952 |
96d3857b0085dd30303fde36c9f088ee7b337a65 | 681 | py | Python | leetcode/ag_107.py | baobei813214232/common-alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 4 | 2017-05-02T09:47:48.000Z | 2019-05-01T06:26:26.000Z | leetcode/ag_107.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | null | null | null | leetcode/ag_107.py | xiaolongnk/Alglib | 303e4edc5f7c1b5e9a2a6ebc4742d7bae61c5d31 | [
"MIT"
] | 1 | 2021-01-31T07:21:53.000Z | 2021-01-31T07:21:53.000Z | from ojlib.TreeLib import *
| 23.482759 | 54 | 0.484581 |
96d45139aca244273384a51c530c63b4656ed83e | 72 | py | Python | tests/test_main.py | joaogcs/python-project-template | 079f1606a474e155449ccd29da5970f571bf97a8 | [
"MIT"
] | null | null | null | tests/test_main.py | joaogcs/python-project-template | 079f1606a474e155449ccd29da5970f571bf97a8 | [
"MIT"
] | null | null | null | tests/test_main.py | joaogcs/python-project-template | 079f1606a474e155449ccd29da5970f571bf97a8 | [
"MIT"
] | null | null | null | # This is a sample Python script.
| 14.4 | 33 | 0.708333 |
96d4fa95c81cfe8edb8a039e4f400fd39027e05f | 1,974 | py | Python | products/api/api.py | Arvind-4/E-commerce-REST-API | ee6bf15f08590db99c423639db382f8c3fb3ab05 | [
"MIT"
] | null | null | null | products/api/api.py | Arvind-4/E-commerce-REST-API | ee6bf15f08590db99c423639db382f8c3fb3ab05 | [
"MIT"
] | null | null | null | products/api/api.py | Arvind-4/E-commerce-REST-API | ee6bf15f08590db99c423639db382f8c3fb3ab05 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework.generics import (
ListAPIView,
RetrieveAPIView,
)
from rest_framework.views import APIView
from rest_framework.response import Response
from django.core import serializers
from django.http import Http404
from rest_framework.permissions import AllowAny
fro... | 29.029412 | 65 | 0.692503 |
96d5b41db8b7fcb7f3b93add103d8acc7fa5230e | 1,067 | py | Python | main.py | adelhult/please-plot | dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428 | [
"MIT"
] | null | null | null | main.py | adelhult/please-plot | dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428 | [
"MIT"
] | null | null | null | main.py | adelhult/please-plot | dd47b4c5ce9b9a0d69ed0b36f11e949ef08cb428 | [
"MIT"
] | null | null | null | from traceback import print_exc
from uuid import uuid4
from flask import Flask, request, send_from_directory
from function_plot import *
app = Flask(__name__)
max_simultaneous_requests = 8
simultaneous_requests = 0
| 26.675 | 88 | 0.670103 |
96d6269877deb16ea1414529d7a4c8eeec745fe2 | 758 | py | Python | structmanager/optimization/genesis/utils.py | saullocastro/structmanager | 01e9677f201c9ef577fdf8a15833be7e364441ab | [
"BSD-3-Clause"
] | 1 | 2015-09-17T20:48:08.000Z | 2015-09-17T20:48:08.000Z | structmanager/optimization/genesis/utils.py | saullocastro/structmanager | 01e9677f201c9ef577fdf8a15833be7e364441ab | [
"BSD-3-Clause"
] | 1 | 2019-01-09T20:31:17.000Z | 2019-01-10T11:10:07.000Z | structmanager/optimization/genesis/utils.py | saullocastro/structmanager | 01e9677f201c9ef577fdf8a15833be7e364441ab | [
"BSD-3-Clause"
] | 1 | 2020-12-29T00:22:23.000Z | 2020-12-29T00:22:23.000Z | def format_float(x, size=8, lr):
"""Format a float number
Parameters
----------
x : float
The float number.
size : int, optional
Desired size of the output string.
lr : str ('<' or '>')
Indicates if it should be left or right aligned.
Returns
-------
out : s... | 22.294118 | 74 | 0.514512 |
96d74d2ff0dc3fdfbc59821572994b8df28d1d63 | 5,412 | py | Python | mtwaffle/mtsite.py | leomiquelutti/mtwaffle | 99f769a5796c27adf0dd7e8c30fecadec4fa9581 | [
"MIT"
] | null | null | null | mtwaffle/mtsite.py | leomiquelutti/mtwaffle | 99f769a5796c27adf0dd7e8c30fecadec4fa9581 | [
"MIT"
] | null | null | null | mtwaffle/mtsite.py | leomiquelutti/mtwaffle | 99f769a5796c27adf0dd7e8c30fecadec4fa9581 | [
"MIT"
] | null | null | null | import inspect
import sys
import numpy as np
import attrdict
from mtwaffle import graphs
from mtwaffle import mt
def help(self, output=sys.stdout):
'''Print a list of the attributes which are available.'''
output.write('''
Attributes of mtwaffle.mtsite.Site are calculated using functions from t... | 33.825 | 99 | 0.543052 |
96d7d97e9464432987e79cd5bc37343800b4edcd | 2,186 | py | Python | Testing/evaluate.py | codedecde/WordEmbeddings | 84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9 | [
"MIT"
] | 2 | 2018-09-19T01:37:31.000Z | 2019-09-22T02:45:09.000Z | Testing/evaluate.py | codedecde/WordEmbeddings | 84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9 | [
"MIT"
] | null | null | null | Testing/evaluate.py | codedecde/WordEmbeddings | 84e6cd5424b74da6e889dd1b6ab7a6c5df9432d9 | [
"MIT"
] | null | null | null | import numpy as np
import heapq
| 37.689655 | 108 | 0.641354 |
96d86338e0559532f2558c6914fd242a57096663 | 239 | py | Python | src/chapter3/exercise1.py | group13bse1/BSE-2021 | edd715d06696e5993c2a5b458e31bd8b87f67ded | [
"MIT"
] | null | null | null | src/chapter3/exercise1.py | group13bse1/BSE-2021 | edd715d06696e5993c2a5b458e31bd8b87f67ded | [
"MIT"
] | null | null | null | src/chapter3/exercise1.py | group13bse1/BSE-2021 | edd715d06696e5993c2a5b458e31bd8b87f67ded | [
"MIT"
] | null | null | null | hours = input('Enter Hours \n')
rate = input('Enter Rate\n')
hours = int(hours)
rate = float(rate)
if (hours <= 40):
pay = rate*hours
else:
extra_time = hours - 40
pay = (rate*hours) + ((rate*extra_time)/2)
print('Pay: ', pay)
| 21.727273 | 46 | 0.610879 |
96d87afa9be08112d9a71a5802531bd5f19ae363 | 415 | py | Python | hello.py | nickstenning/hello-pyramid | d01e8f71b2b9f691b05d1c1f50c0a5aa3d416b6e | [
"MIT"
] | 1 | 2016-12-15T19:01:05.000Z | 2016-12-15T19:01:05.000Z | hello.py | nickstenning/hello-pyramid | d01e8f71b2b9f691b05d1c1f50c0a5aa3d416b6e | [
"MIT"
] | null | null | null | hello.py | nickstenning/hello-pyramid | d01e8f71b2b9f691b05d1c1f50c0a5aa3d416b6e | [
"MIT"
] | null | null | null | from pyramid.config import Configurator
from pyramid.view import view_config
| 24.411765 | 72 | 0.722892 |
96db45847d6f57ad072a49bd80261093667430ad | 6,722 | py | Python | src/autobridge/Floorplan/LegalizeFloorplan.py | mfkiwl/AutoBridge | 1f428c271d2e338f39ea7478d81c66636c419670 | [
"MIT"
] | null | null | null | src/autobridge/Floorplan/LegalizeFloorplan.py | mfkiwl/AutoBridge | 1f428c271d2e338f39ea7478d81c66636c419670 | [
"MIT"
] | null | null | null | src/autobridge/Floorplan/LegalizeFloorplan.py | mfkiwl/AutoBridge | 1f428c271d2e338f39ea7478d81c66636c419670 | [
"MIT"
] | null | null | null | import logging
from collections import defaultdict
from typing import Dict, List, Tuple, Optional
from mip import Model, minimize, BINARY, xsum, OptimizationStatus, Var
from autobridge.Floorplan.Utilities import *
from autobridge.Opt.DataflowGraph import Vertex
from autobridge.Opt.Slot import Slot
from autobridge.Opt.... | 29.875556 | 137 | 0.705296 |
96dcb20e01404e4765e91a644c54a3f39200919c | 4,823 | py | Python | tests/unit/spanner_dbapi/test_connect.py | larkee/python-spanner | cbb4ee3eca9ac878b4f3cd78cfcfe8fc1acb86f9 | [
"Apache-2.0"
] | null | null | null | tests/unit/spanner_dbapi/test_connect.py | larkee/python-spanner | cbb4ee3eca9ac878b4f3cd78cfcfe8fc1acb86f9 | [
"Apache-2.0"
] | null | null | null | tests/unit/spanner_dbapi/test_connect.py | larkee/python-spanner | cbb4ee3eca9ac878b4f3cd78cfcfe8fc1acb86f9 | [
"Apache-2.0"
] | null | null | null | # 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 agreed to in writing, s... | 34.45 | 87 | 0.716774 |
96dcf01c244ee7438297fd322846f89558653bfd | 943 | py | Python | section_3/5_magic_methods/main.py | hgohel/Python-for-Everyday-Life | 957963e67dca8c2d20a86fc7e66e818c80d013aa | [
"MIT"
] | 43 | 2018-04-09T11:59:11.000Z | 2022-01-29T14:27:37.000Z | section_3/5_magic_methods/main.py | hgohel/Python-for-Everyday-Life | 957963e67dca8c2d20a86fc7e66e818c80d013aa | [
"MIT"
] | 12 | 2019-11-03T16:50:39.000Z | 2021-09-07T23:52:37.000Z | section_3/5_magic_methods/main.py | hgohel/Python-for-Everyday-Life | 957963e67dca8c2d20a86fc7e66e818c80d013aa | [
"MIT"
] | 45 | 2018-05-10T21:40:46.000Z | 2022-03-01T05:50:07.000Z | # -*- coding: utf-8 -*-
# !/usr/bin/env python3
if __name__ == '__main__':
import money
# crafting money
euro = money.Money(1.0, 'EUR')
five_euros = money.Money(5.0, 'EUR')
ten_euros = money.Money(10.0, 'EUR')
dollar = money.Money(1.0, 'USD')
# money algebra
eleven_euros = euro + ten_... | 29.46875 | 85 | 0.612937 |
96de8cfd18855bd3db54e341bcf82c6193cb52f1 | 1,213 | py | Python | web-server/webserver/urls.py | ApLight/groenlandicus | 61d230d2b1de0674424c2ea00d2d256f7a68db2e | [
"MIT"
] | null | null | null | web-server/webserver/urls.py | ApLight/groenlandicus | 61d230d2b1de0674424c2ea00d2d256f7a68db2e | [
"MIT"
] | 14 | 2018-09-01T07:41:10.000Z | 2018-09-01T19:41:11.000Z | web-server/webserver/urls.py | ApLight/groenlandicus | 61d230d2b1de0674424c2ea00d2d256f7a68db2e | [
"MIT"
] | null | null | null | """webserver URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | 37.90625 | 80 | 0.718054 |
96df38e80d482351507d9e44ebf768c69656d95b | 958 | py | Python | pasteScripts.py | alexanderbeatson/electiondashboard | 8567e183a61c4e0b9e3f6ff0ee30acb61be93f15 | [
"MIT"
] | null | null | null | pasteScripts.py | alexanderbeatson/electiondashboard | 8567e183a61c4e0b9e3f6ff0ee30acb61be93f15 | [
"MIT"
] | null | null | null | pasteScripts.py | alexanderbeatson/electiondashboard | 8567e183a61c4e0b9e3f6ff0ee30acb61be93f15 | [
"MIT"
] | null | null | null |
main()
| 28.176471 | 65 | 0.591858 |
96dfc543c2de8dddb6e747e4e8c3935460f47a78 | 1,016 | py | Python | apps/core/views.py | InfinityLoopA-Z/BigBoxChallenge | eb1b70412af6859032d78d23edfb4c588c17b8cd | [
"MIT"
] | null | null | null | apps/core/views.py | InfinityLoopA-Z/BigBoxChallenge | eb1b70412af6859032d78d23edfb4c588c17b8cd | [
"MIT"
] | null | null | null | apps/core/views.py | InfinityLoopA-Z/BigBoxChallenge | eb1b70412af6859032d78d23edfb4c588c17b8cd | [
"MIT"
] | null | null | null | from rest_framework import viewsets
from django_filters.rest_framework import DjangoFilterBackend
from . import models, serializers, filtersets, pagination
| 28.222222 | 61 | 0.744094 |
96e0ca518913b396a050050562a88480c52f946d | 3,721 | py | Python | hearthbreaker/cards/spells/neutral.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 429 | 2015-01-01T16:07:20.000Z | 2022-03-16T22:30:50.000Z | hearthbreaker/cards/spells/neutral.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 47 | 2015-01-01T17:07:57.000Z | 2018-05-07T10:49:37.000Z | hearthbreaker/cards/spells/neutral.py | souserge/hearthbreaker | 481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7 | [
"MIT"
] | 135 | 2015-01-12T21:52:17.000Z | 2022-02-25T21:18:08.000Z | from hearthbreaker.cards.base import SpellCard
from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY
from hearthbreaker.tags.base import BuffUntil, Buff
from hearthbreaker.tags.event import TurnStarted
from hearthbreaker.tags.status import Stealth, Taunt, Frozen
import hearthbreaker.targeting
spare... | 34.775701 | 110 | 0.67025 |
96e125ec5aa02313a1615a9630dae1a661e5c4fd | 2,339 | py | Python | srgan_pytorch/utils/transform.py | nisargshah1999/SRGAN-PyTorch | 093fba8ee4e571d71ac9644350bdd03a1a547765 | [
"Apache-2.0"
] | 2 | 2021-08-22T06:27:48.000Z | 2021-08-22T06:36:43.000Z | srgan_pytorch/utils/transform.py | ekstra26/SRGAN-PyTorch | 3cc4c034362070ba1e02549acca2088572fd7ec2 | [
"Apache-2.0"
] | null | null | null | srgan_pytorch/utils/transform.py | ekstra26/SRGAN-PyTorch | 3cc4c034362070ba1e02549acca2088572fd7ec2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 Dakewe Biotech Corporation. 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... | 30.376623 | 91 | 0.68106 |
96e210cba8e910f4151833c51c27bccda1cc8790 | 12,828 | py | Python | dorado/ceres/ceresClass.py | Mucephie/DORADO | 20c1742af7eef0265e670b1f600aea0a8021135b | [
"BSD-3-Clause"
] | null | null | null | dorado/ceres/ceresClass.py | Mucephie/DORADO | 20c1742af7eef0265e670b1f600aea0a8021135b | [
"BSD-3-Clause"
] | 13 | 2020-11-23T06:08:46.000Z | 2021-09-10T03:24:57.000Z | dorado/ceres/ceresClass.py | Mucephie/DORADO | 20c1742af7eef0265e670b1f600aea0a8021135b | [
"BSD-3-Clause"
] | null | null | null | import warnings
warnings.filterwarnings('ignore')
# import sys
# import os
import numpy as np
import ccdprocx
from astropy.time import Time
from astropy.table import QTable, Table
import astroalign as aa
from astropy.wcs import WCS
# from astropy.utils.console import ProgressBar, ProgressBarOrSpinner
from tqdm import ... | 40.0875 | 166 | 0.587933 |
96e2491a9adc0b19fb3614740c106c51b3b7bfed | 610 | py | Python | scrawl.py | I-mm/Lianjia-houseInfo | c3a22b200637ef65bd3c90e2fe20a7f2ee9144ea | [
"MIT"
] | null | null | null | scrawl.py | I-mm/Lianjia-houseInfo | c3a22b200637ef65bd3c90e2fe20a7f2ee9144ea | [
"MIT"
] | null | null | null | scrawl.py | I-mm/Lianjia-houseInfo | c3a22b200637ef65bd3c90e2fe20a7f2ee9144ea | [
"MIT"
] | null | null | null | import core
import model
import settings
if __name__ == "__main__":
regionlist = settings.REGIONLIST # only pinyin support
model.database_init()
core.GetHouseByRegionlist(regionlist)
core.GetRentByRegionlist(regionlist)
core.GetCommunityByRegionlist(regionlist) # Init,scrapy celllist and insert... | 29.047619 | 114 | 0.74918 |
96e2e02958eb8b2f96b29096a9887913b5f2e8c3 | 733 | py | Python | monitoring/deployment_manager/systems/configuration.py | interuss/InterUSS-Platform | 099abaa1159c4c143f8f1fde6b88956c86608281 | [
"Apache-2.0"
] | null | null | null | monitoring/deployment_manager/systems/configuration.py | interuss/InterUSS-Platform | 099abaa1159c4c143f8f1fde6b88956c86608281 | [
"Apache-2.0"
] | 1 | 2021-11-29T21:53:39.000Z | 2021-11-29T21:53:39.000Z | monitoring/deployment_manager/systems/configuration.py | interuss/InterUSS-Platform | 099abaa1159c4c143f8f1fde6b88956c86608281 | [
"Apache-2.0"
] | null | null | null | from typing import Optional
from monitoring.monitorlib.typing import ImplicitDict
from monitoring.deployment_manager.systems.dss.configuration import DSS
from monitoring.deployment_manager.systems.test.configuration import Test
| 27.148148 | 73 | 0.758527 |
96e2f6791d358888a299b482a3e7912cf3a6c4c5 | 627 | py | Python | src/Broker_Instance/streamer.py | zxq0404/Raven | 398e208330619d76c0236a43493f217c1dd198be | [
"RSA-MD"
] | null | null | null | src/Broker_Instance/streamer.py | zxq0404/Raven | 398e208330619d76c0236a43493f217c1dd198be | [
"RSA-MD"
] | null | null | null | src/Broker_Instance/streamer.py | zxq0404/Raven | 398e208330619d76c0236a43493f217c1dd198be | [
"RSA-MD"
] | null | null | null | import zmq
if __name__ == "__main__":
main()
| 24.115385 | 79 | 0.503987 |
96e374927020d16c7dc665a056f81ae42d3dde0f | 1,724 | py | Python | tests/users/lists/items/test_people.py | mza921/trakt.py | 391b02a509d6ccc367711e66c8789eea3de89161 | [
"MIT"
] | null | null | null | tests/users/lists/items/test_people.py | mza921/trakt.py | 391b02a509d6ccc367711e66c8789eea3de89161 | [
"MIT"
] | null | null | null | tests/users/lists/items/test_people.py | mza921/trakt.py | 391b02a509d6ccc367711e66c8789eea3de89161 | [
"MIT"
] | null | null | null | # flake8: noqa: F403, F405
from tests.core import mock
from trakt import Trakt
from trakt.objects import Person
from datetime import datetime
from dateutil.tz import tzutc
from hamcrest import *
from httmock import HTTMock
| 26.523077 | 77 | 0.441415 |