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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b44ff9fd50fe2d54276ded1d327434e0e7c23eab | 282 | py | Python | tests/test_classes/users.py | dialogs/python-bot-sdk | 737152e5ef8406af0b22600ef7cefa78da9035e8 | [
"Apache-2.0"
] | 9 | 2019-01-22T09:59:12.000Z | 2021-05-08T10:59:00.000Z | tests/test_classes/users.py | dialogs/python-bot-sdk | 737152e5ef8406af0b22600ef7cefa78da9035e8 | [
"Apache-2.0"
] | 29 | 2018-10-08T17:10:49.000Z | 2021-04-28T18:46:30.000Z | tests/test_classes/users.py | dialogs/python-bot-sdk | 737152e5ef8406af0b22600ef7cefa78da9035e8 | [
"Apache-2.0"
] | 8 | 2019-01-22T09:49:32.000Z | 2022-01-26T18:55:52.000Z | from dialog_api.users_pb2 import RequestLoadFullUsers, ResponseLoadFullUsers, FullUser
| 40.285714 | 94 | 0.797872 |
b45067ac1c187f969ca36977c34f99d5b3112b27 | 3,965 | py | Python | aws_marketplace/creating_marketplace_products/src/training_specification.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,610 | 2020-10-01T14:14:53.000Z | 2022-03-31T18:02:31.000Z | aws_marketplace/creating_marketplace_products/src/training_specification.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 1,959 | 2020-09-30T20:22:42.000Z | 2022-03-31T23:58:37.000Z | aws_marketplace/creating_marketplace_products/src/training_specification.py | jerrypeng7773/amazon-sagemaker-examples | c5ddecce1f739a345465b9a38b064983a129141d | [
"Apache-2.0"
] | 2,052 | 2020-09-30T22:11:46.000Z | 2022-03-31T23:02:51.000Z | import json
| 30.5 | 186 | 0.54174 |
b450cdc3b9ccbf44259b53088cde193f44fcd78c | 483 | py | Python | Exercises1_12/R-1.12.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | Exercises1_12/R-1.12.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | Exercises1_12/R-1.12.py | opnsesame/Data-Structures-and-Algorithms-Exercises | 62f4066c6370225a41295ecb08e05258b08f6d7e | [
"Apache-2.0"
] | null | null | null | #Python's random module includes a function choice(data) that returns a
#random element from a non-empty sequence. The random modul includes a
#more basic function randrange,with parameterization similar to the
#built-in range function , that return a random choice from the given
#range.Using only the randrange func... | 48.3 | 72 | 0.78882 |
b45291fae69314faf72f4230d287a0ca6f8e5cfe | 10,093 | py | Python | database/mongo_connector.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | 1 | 2020-06-29T17:25:44.000Z | 2020-06-29T17:25:44.000Z | database/mongo_connector.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | database/mongo_connector.py | timburbank/openrvdas | ba77d3958075abd21ff94a396e4a97879962ac0c | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""Tables:
data: pk timestamp field_name field_value source_record
We don't know what type each value will have, so have a column for
int, float, str and bool and leave all but the appropriate value type
NULL. Docs claim that NULL values take no space, so...
Still so many ways we could make ... | 31.442368 | 93 | 0.618548 |
b4532acfa1818a77c2c7b5bc9830fae6dbfa670b | 10,204 | py | Python | ElectricRoute/flask_auth_app/project/__init__.py | luciatomainodelacr/TFM | dd989ba18e22d71f6c9c03e16b71110c7c23a9a8 | [
"MIT"
] | 1 | 2021-05-26T15:45:06.000Z | 2021-05-26T15:45:06.000Z | ElectricRoute/flask_auth_app/project/__init__.py | luciatomainodelacr/TFM | dd989ba18e22d71f6c9c03e16b71110c7c23a9a8 | [
"MIT"
] | null | null | null | ElectricRoute/flask_auth_app/project/__init__.py | luciatomainodelacr/TFM | dd989ba18e22d71f6c9c03e16b71110c7c23a9a8 | [
"MIT"
] | 5 | 2021-03-07T19:20:26.000Z | 2021-04-11T18:26:12.000Z | # =============================================================================
# Inicializacin de la aplicacin: __init__.py
# =============================================================================
"""
Este archivo tendr la funcin de crear la aplicacin, que iniciar la base de
datos y registrar los molodelos.
... | 129.164557 | 6,108 | 0.130243 |
b4533a5f5cb54cabae74aca99fd6222059d74d85 | 1,822 | py | Python | benchmarks/cifar10/benchmark_sample_creator.py | aarati-K/one-access | 928788a8729770c665cb94db6891dfaf4f32d1fc | [
"MIT"
] | null | null | null | benchmarks/cifar10/benchmark_sample_creator.py | aarati-K/one-access | 928788a8729770c665cb94db6891dfaf4f32d1fc | [
"MIT"
] | 12 | 2018-12-01T23:30:20.000Z | 2018-12-19T02:56:34.000Z | benchmarks/cifar10/benchmark_sample_creator.py | aarati-K/one-access | 928788a8729770c665cb94db6891dfaf4f32d1fc | [
"MIT"
] | null | null | null | from store.cifar10 import Cifar10
import torchvision.transforms as transforms
import time
import matplotlib.pyplot as plt
batch_size = 1
rel_sample_size = 10000
ds = Cifar10(input_data_folder="/home/aarati/datasets/cifar-10-batches-py", \
max_batches=2, batch_size=batch_size, rel_sample_size=rel_sample_size, \
... | 36.44 | 125 | 0.660263 |
b4544908bc703c4da565a916d491bf32413a078b | 1,095 | py | Python | beet/contrib/render.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 46 | 2021-03-09T23:34:52.000Z | 2022-03-08T01:30:04.000Z | beet/contrib/render.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 127 | 2021-02-24T00:41:44.000Z | 2022-03-31T05:14:31.000Z | beet/contrib/render.py | Arcensoth/beet | 8a20a6fbee8724d8c26fe7e9ade68dffa57406bd | [
"MIT"
] | 9 | 2021-03-11T18:18:28.000Z | 2022-03-11T20:32:01.000Z | """Plugin that invokes the built-in template renderer."""
__all__ = [
"RenderOptions",
"render",
]
from typing import Dict, List
from pydantic import BaseModel
from beet import Context, configurable
| 26.707317 | 79 | 0.630137 |
b45497bfff55851d8e2cfb1521b54e7ce3939306 | 15,269 | py | Python | customtkinter/customtkinter_progressbar.py | thisSELFmySELF/CustomTkinter | 9edb25d6c4604300641212fe664097d71ed12d0c | [
"CC0-1.0"
] | 1 | 2022-02-20T12:05:08.000Z | 2022-02-20T12:05:08.000Z | customtkinter/customtkinter_progressbar.py | thisSELFmySELF/CustomTkinter | 9edb25d6c4604300641212fe664097d71ed12d0c | [
"CC0-1.0"
] | null | null | null | customtkinter/customtkinter_progressbar.py | thisSELFmySELF/CustomTkinter | 9edb25d6c4604300641212fe664097d71ed12d0c | [
"CC0-1.0"
] | null | null | null | import sys
import tkinter
from .customtkinter_tk import CTk
from .customtkinter_frame import CTkFrame
from .appearance_mode_tracker import AppearanceModeTracker
from .customtkinter_color_manager import CTkColorManager
| 46.551829 | 150 | 0.568276 |
b45613d6f68d15fc7e95c155cc5ae42470c0d2ab | 694 | py | Python | backtest/tests/test_strategy.py | Christakou/backtest | fa97f50b36a1d56fe667250169ed50a8d9121c3c | [
"MIT"
] | null | null | null | backtest/tests/test_strategy.py | Christakou/backtest | fa97f50b36a1d56fe667250169ed50a8d9121c3c | [
"MIT"
] | null | null | null | backtest/tests/test_strategy.py | Christakou/backtest | fa97f50b36a1d56fe667250169ed50a8d9121c3c | [
"MIT"
] | null | null | null | import pytest
from backtest.strategy import BuyAndHoldEqualAllocation
| 33.047619 | 79 | 0.698847 |
b4561bfc43f0bcb4bcb4c7719b19ceba05dfa31d | 853 | py | Python | onnx/backend/test/case/node/constant.py | stillmatic/onnx | 8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7 | [
"Apache-2.0"
] | null | null | null | onnx/backend/test/case/node/constant.py | stillmatic/onnx | 8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7 | [
"Apache-2.0"
] | null | null | null | onnx/backend/test/case/node/constant.py | stillmatic/onnx | 8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import onnx
from ..base import Base
from . import expect
| 25.088235 | 57 | 0.601407 |
b4566ae71e0167b9625fba644e2226d4778cf90a | 4,337 | py | Python | nvd3/multiChart.py | areski/python-nvd3 | 1890ad28e13f9a35d8b338817ef161720576538b | [
"MIT"
] | 442 | 2015-01-12T10:13:52.000Z | 2022-01-11T15:18:48.000Z | nvd3/multiChart.py | areski/python-nvd3 | 1890ad28e13f9a35d8b338817ef161720576538b | [
"MIT"
] | 106 | 2015-01-11T20:27:50.000Z | 2021-11-05T17:18:15.000Z | nvd3/multiChart.py | areski/python-nvd3 | 1890ad28e13f9a35d8b338817ef161720576538b | [
"MIT"
] | 161 | 2015-01-06T13:31:18.000Z | 2022-03-09T05:22:30.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Python-nvd3 is a Python wrapper for NVD3 graph library.
NVD3 is an attempt to build re-usable charts and chart components
for d3.js without taking away the power that d3.js gives you.
Project location : https://github.com/areski/python-nvd3
"""
from .NVD3Chart import NVD... | 34.975806 | 142 | 0.537929 |
b456f67dd7f5c131a9b03642b6c76bf26ca01173 | 4,114 | py | Python | utils/config.py | AlbertiPot/nar | eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28 | [
"BSD-3-Clause"
] | 2 | 2022-02-08T06:45:41.000Z | 2022-02-09T03:49:54.000Z | utils/config.py | AlbertiPot/nar | eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28 | [
"BSD-3-Clause"
] | null | null | null | utils/config.py | AlbertiPot/nar | eb081f0e1ee16c2b1eb5e6e2afd41254cd7dce28 | [
"BSD-3-Clause"
] | null | null | null | """
Date: 2021/09/23
Target: config utilities for yml file.
implementation adapted from Slimmable: https://github.com/JiahuiYu/slimmable_networks.git
"""
import os
import yaml
def get_config(config_file):
assert os.path.exists(config_file), 'File {} not exist.'.format(config_file)
return Config(config_fil... | 33.177419 | 89 | 0.528439 |
b457086f7edbfe9899dbbd18e732ac94f61af7c3 | 2,798 | py | Python | src/api/fundings/entities.py | cbn-alpin/gefiproj-api | 35e3f00dd71bcdd9ad751307ac379aa78d1545cf | [
"MIT"
] | 2 | 2020-10-15T15:16:08.000Z | 2020-11-06T10:41:13.000Z | src/api/fundings/entities.py | cbn-alpin/gefiproj-api | 35e3f00dd71bcdd9ad751307ac379aa78d1545cf | [
"MIT"
] | 1 | 2020-11-14T19:40:14.000Z | 2020-11-14T19:40:14.000Z | src/api/fundings/entities.py | cbn-alpin/gefiproj-api | 35e3f00dd71bcdd9ad751307ac379aa78d1545cf | [
"MIT"
] | null | null | null | from marshmallow import Schema, fields, validate
from sqlalchemy import Column, String, Integer, Float, Date, ForeignKey
from sqlalchemy.orm import relationship
from ..funders.entities import Funder, FunderSchema
from src.api import db
from src.shared.entity import Base
| 43.046154 | 111 | 0.723016 |
b4572258e2d4b6f3324edd66303f6bcb5c6923f1 | 2,817 | py | Python | src/extensions/COMMANDS/CommitCommand.py | DMTF/python-redfish-utility | 4e084d47152aeaede576b32252a38b7dc4525dcb | [
"BSD-3-Clause"
] | 15 | 2017-01-20T02:25:05.000Z | 2022-03-26T17:42:47.000Z | src/extensions/COMMANDS/CommitCommand.py | DMTF/python-redfish-utility | 4e084d47152aeaede576b32252a38b7dc4525dcb | [
"BSD-3-Clause"
] | 5 | 2017-05-11T17:07:26.000Z | 2018-08-03T18:08:27.000Z | src/extensions/COMMANDS/CommitCommand.py | DMTF/python-redfish-utility | 4e084d47152aeaede576b32252a38b7dc4525dcb | [
"BSD-3-Clause"
] | 11 | 2017-01-24T22:50:20.000Z | 2022-03-22T18:40:31.000Z | ###
# Copyright Notice:
# Copyright 2016 Distributed Management Task Force, Inc. All rights reserved.
# License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/python-redfish-utility/blob/master/LICENSE.md
###
""" Commit Command for RDMC """
import sys
from optparse import OptionPars... | 33.535714 | 127 | 0.587504 |
b4576da0f0a8dc0e5c329b27142e2588b0fb6f46 | 16,721 | py | Python | rosetta/views.py | evrenesat/ganihomes | eece2d8d957989b176cc5a36d723f676862f8d17 | [
"BSD-2-Clause"
] | 24 | 2016-08-06T18:10:54.000Z | 2022-03-04T11:47:39.000Z | rosetta/views.py | evrenesat/ganihomes | eece2d8d957989b176cc5a36d723f676862f8d17 | [
"BSD-2-Clause"
] | 1 | 2017-03-28T02:36:50.000Z | 2017-03-28T07:18:57.000Z | rosetta/views.py | evrenesat/ganihomes | eece2d8d957989b176cc5a36d723f676862f8d17 | [
"BSD-2-Clause"
] | 13 | 2017-03-28T02:35:32.000Z | 2022-02-21T23:36:15.000Z | from django.conf import settings
from django.contrib.auth.decorators import user_passes_test
from django.core.paginator import Paginator
from django.core.urlresolvers import reverse
from django.http import Http404, HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from django.template i... | 46.190608 | 227 | 0.609832 |
b457b3b9a529a0063b2e3929017b0f26c1b32684 | 937 | py | Python | examples/experiment_pulse.py | HySynth/HySynth | b33b34ff5db138b5d007d0dcd32d53c9f8964b62 | [
"MIT"
] | 4 | 2021-03-05T11:18:35.000Z | 2021-12-09T18:51:32.000Z | examples/experiment_pulse.py | HySynth/HySynth | b33b34ff5db138b5d007d0dcd32d53c9f8964b62 | [
"MIT"
] | null | null | null | examples/experiment_pulse.py | HySynth/HySynth | b33b34ff5db138b5d007d0dcd32d53c9f8964b62 | [
"MIT"
] | null | null | null | # to run this, add code from experiments_HSCC2021.py
| 32.310345 | 111 | 0.692636 |
b458e08685ebc8210a2ffae585d421bdf6eef379 | 13,813 | py | Python | ironic/drivers/modules/drac/management.py | Tehsmash/ironic | a34c351639e960af92a3608fbc9249dfce5c6057 | [
"Apache-2.0"
] | null | null | null | ironic/drivers/modules/drac/management.py | Tehsmash/ironic | a34c351639e960af92a3608fbc9249dfce5c6057 | [
"Apache-2.0"
] | null | null | null | ironic/drivers/modules/drac/management.py | Tehsmash/ironic | a34c351639e960af92a3608fbc9249dfce5c6057 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright 2014 Red Hat, 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... | 42.371166 | 79 | 0.625136 |
b45b0dfbed15df61de3d9471a3707d66d6c2d4b9 | 2,037 | py | Python | matrix_diagonalization/finite_barrier_square_well.py | coherent17/physics_calculation | cf94813778984f62b2c65174fb44bebb2e9c0d05 | [
"MIT"
] | 1 | 2021-12-30T01:11:30.000Z | 2021-12-30T01:11:30.000Z | matrix_diagonalization/finite_barrier_square_well.py | coherent17/physics_calculation | cf94813778984f62b2c65174fb44bebb2e9c0d05 | [
"MIT"
] | null | null | null | matrix_diagonalization/finite_barrier_square_well.py | coherent17/physics_calculation | cf94813778984f62b2c65174fb44bebb2e9c0d05 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
#grid number on half space (without the origin)
N=150
#total grid number = 2*N + 1 (with origin)
N_g=2*N+1
#finite barrier potential value = 300 (meV)
potential_value=300
#building potential:
# #Hamiltonian matrix:
V=potential(potential_value)
H=Hamiltonian(V)
#so... | 25.78481 | 64 | 0.661757 |
b45b6c7e93b004510cd39ca579e1ae1a135f82e4 | 30 | py | Python | SVDD/__init__.py | SolidusAbi/SVDD-Python | ce2b834bf31cfdbbbebc08c8a1bac8c37b081d0e | [
"MIT"
] | null | null | null | SVDD/__init__.py | SolidusAbi/SVDD-Python | ce2b834bf31cfdbbbebc08c8a1bac8c37b081d0e | [
"MIT"
] | null | null | null | SVDD/__init__.py | SolidusAbi/SVDD-Python | ce2b834bf31cfdbbbebc08c8a1bac8c37b081d0e | [
"MIT"
] | null | null | null | from .BaseSVDD import BaseSVDD | 30 | 30 | 0.866667 |
b45bc4fbd6c30a7f20f9e98d80b94da630c9831f | 739 | py | Python | setup.py | SteveLTN/iex-api-python | f2c5c8f461ee22d7fc58bc335e397454de4cee7e | [
"MIT"
] | null | null | null | setup.py | SteveLTN/iex-api-python | f2c5c8f461ee22d7fc58bc335e397454de4cee7e | [
"MIT"
] | null | null | null | setup.py | SteveLTN/iex-api-python | f2c5c8f461ee22d7fc58bc335e397454de4cee7e | [
"MIT"
] | null | null | null | import setuptools
import glob
import os
required = [
"requests",
"pandas",
"arrow",
"socketIO-client-nexus"
]
setuptools.setup(name='iex-api-python',
version="0.0.5",
description='Fetch data from the IEX API',
long_description=open('README.md').read()... | 30.791667 | 86 | 0.525034 |
b45ee2f14f2b2080d0f96be546d04753ee6aacf6 | 3,825 | py | Python | src/models/train_model.py | 4c697361/e-commerce | ddf88ec2c3f020bce129195452dfa9b03fb285d4 | [
"MIT"
] | 3 | 2020-01-01T06:36:38.000Z | 2020-12-08T02:57:33.000Z | src/models/train_model.py | L2Data/e-commerce | ddf88ec2c3f020bce129195452dfa9b03fb285d4 | [
"MIT"
] | null | null | null | src/models/train_model.py | L2Data/e-commerce | ddf88ec2c3f020bce129195452dfa9b03fb285d4 | [
"MIT"
] | 3 | 2020-02-28T01:22:07.000Z | 2020-07-19T13:38:59.000Z | import os
import click
import logging
from pathlib import Path
from dotenv import find_dotenv, load_dotenv
from keras.callbacks import ModelCheckpoint, EarlyStopping
import src.utils.utils as ut
import src.utils.model_utils as mu
import src.models.model as md
import src.models.data_generator as dg
import src.data.da... | 39.43299 | 88 | 0.536209 |
b45f1b6d99b2cd670602d4dd9541964dcf882b2c | 3,412 | py | Python | Jobs/pm_match.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | 2 | 2021-02-18T04:21:34.000Z | 2022-03-09T11:16:17.000Z | Jobs/pm_match.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | null | null | null | Jobs/pm_match.py | Shantanu48114860/DPN-SA | 43ffedf26a950563e029954b7bb87ce5b4f7bc55 | [
"MIT"
] | 1 | 2020-12-13T08:32:04.000Z | 2020-12-13T08:32:04.000Z | """
MIT License
Copyright (c) 2020 Shantanu Ghosh
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 33.45098 | 96 | 0.750586 |
b45fb7ad9c5a50822623857ace28d82c3b6d8f02 | 15,182 | py | Python | varcode/effects/effect_prediction.py | openvax/varcode | a51a7dd0868ef05aee4962e66a9226ab70935a3d | [
"Apache-2.0"
] | 39 | 2018-01-12T20:58:43.000Z | 2022-03-18T04:54:16.000Z | varcode/effects/effect_prediction.py | hammerlab/varcode | a51a7dd0868ef05aee4962e66a9226ab70935a3d | [
"Apache-2.0"
] | 217 | 2015-01-02T19:04:02.000Z | 2017-09-09T23:21:15.000Z | varcode/effects/effect_prediction.py | openvax/varcode | a51a7dd0868ef05aee4962e66a9226ab70935a3d | [
"Apache-2.0"
] | 18 | 2018-02-06T13:32:44.000Z | 2022-02-28T04:49:20.000Z | # Copyright (c) 2016-2019. Mount Sinai School of Medicine
#
# 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 ... | 37.210784 | 85 | 0.652022 |
b46021d4ffc65a61c7d142b7d9d9cca8ff758a1a | 8,244 | py | Python | configs.py | platonic-realm/UM-PDD | 747171ec3d87e54fb70a2cf4472b8da9fbd2f67b | [
"MIT"
] | null | null | null | configs.py | platonic-realm/UM-PDD | 747171ec3d87e54fb70a2cf4472b8da9fbd2f67b | [
"MIT"
] | null | null | null | configs.py | platonic-realm/UM-PDD | 747171ec3d87e54fb70a2cf4472b8da9fbd2f67b | [
"MIT"
] | 1 | 2021-06-13T22:41:23.000Z | 2021-06-13T22:41:23.000Z | # OS-Level Imports
import os
import sys
import multiprocessing
from multiprocessing import cpu_count
# Library Imports
import tensorflow as tf
from tensorflow.keras import mixed_precision
from tensorflow.python.distribute.distribute_lib import Strategy
# Internal Imports
from Utils.enums import Environme... | 36.96861 | 99 | 0.589034 |
b4605592d622fde2874b27f05a1e575beae84ca9 | 136 | py | Python | Legacy/Audit_Sweep/daily_audit_cron.py | QualiSystemsLab/Power-Management | f90f5971d80f17f45c8ac3f43ff93c0071572dd0 | [
"Apache-2.0"
] | null | null | null | Legacy/Audit_Sweep/daily_audit_cron.py | QualiSystemsLab/Power-Management | f90f5971d80f17f45c8ac3f43ff93c0071572dd0 | [
"Apache-2.0"
] | null | null | null | Legacy/Audit_Sweep/daily_audit_cron.py | QualiSystemsLab/Power-Management | f90f5971d80f17f45c8ac3f43ff93c0071572dd0 | [
"Apache-2.0"
] | null | null | null | from power_audit import PowerAudit
if __name__ == '__main__':
main()
| 13.6 | 34 | 0.661765 |
b4620451d250c59f2d44e900d7695fc1a4e00f84 | 258 | py | Python | python/hayate/store/actions.py | tao12345666333/Talk-Is-Cheap | 7b2c5959828b6d8bbbad8144b9b97f9b77c6b34c | [
"MIT"
] | 4 | 2016-04-14T02:11:35.000Z | 2019-05-30T10:18:41.000Z | python/hayate/store/actions.py | tao12345666333/Talk-Is-Cheap | 7b2c5959828b6d8bbbad8144b9b97f9b77c6b34c | [
"MIT"
] | 8 | 2016-07-21T16:02:17.000Z | 2021-09-23T02:49:34.000Z | python/hayate/store/actions.py | tao12345666333/Talk-Is-Cheap | 7b2c5959828b6d8bbbad8144b9b97f9b77c6b34c | [
"MIT"
] | 2 | 2017-02-17T05:02:02.000Z | 2017-11-08T12:22:09.000Z | from turbo.flux import Mutation, register, dispatch, register_dispatch
import mutation_types
| 19.846154 | 70 | 0.77907 |
b4631189d6d2e11cc9e3587fbf8d89019ec14498 | 6,856 | py | Python | data_service/api/data_api.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | null | null | null | data_service/api/data_api.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | 7 | 2021-10-08T13:40:33.000Z | 2022-02-04T10:37:55.000Z | data_service/api/data_api.py | statisticsnorway/microdata-data-service | d477b7b75589d4c977771122558c948c040a1106 | [
"Apache-2.0"
] | null | null | null | import logging
import os
import io
from fastapi import APIRouter, Depends, Header
from fastapi.responses import FileResponse, StreamingResponse
from fastapi import HTTPException, status
import pyarrow as pa
import pyarrow.parquet as pq
from data_service.api.query_models import (
InputTimePeriodQuery, InputTimeQue... | 35.708333 | 79 | 0.67605 |
b466221b457ff5136956aa01c99313e615519ec6 | 1,976 | py | Python | lib/parser/augur/Bonus.py | Innoviox/QuizDB | b26adf7134408e5b29ebc8b0b05601cbbf45667a | [
"MIT"
] | null | null | null | lib/parser/augur/Bonus.py | Innoviox/QuizDB | b26adf7134408e5b29ebc8b0b05601cbbf45667a | [
"MIT"
] | null | null | null | lib/parser/augur/Bonus.py | Innoviox/QuizDB | b26adf7134408e5b29ebc8b0b05601cbbf45667a | [
"MIT"
] | null | null | null | from utils import sanitize
| 31.365079 | 75 | 0.522267 |
b466a703c7aeb3f1783bcb9b597f3efeb4eaec6e | 5,389 | py | Python | train_folds.py | wubinbai/argus-freesound | 662aa9570b31075fb1d9f18102bda89ed6bb0fc1 | [
"MIT"
] | 1 | 2019-12-12T02:37:57.000Z | 2019-12-12T02:37:57.000Z | train_folds.py | wubinbai/argus-freesound | 662aa9570b31075fb1d9f18102bda89ed6bb0fc1 | [
"MIT"
] | null | null | null | train_folds.py | wubinbai/argus-freesound | 662aa9570b31075fb1d9f18102bda89ed6bb0fc1 | [
"MIT"
] | null | null | null | import json
import argparse
from argus.callbacks import MonitorCheckpoint, \
EarlyStopping, LoggingToFile, ReduceLROnPlateau
from torch.utils.data import DataLoader
from src.datasets import FreesoundDataset, FreesoundNoisyDataset, RandomDataset
from src.datasets import get_corrected_noisy_data, FreesoundCorrecte... | 36.659864 | 92 | 0.594544 |
b467f6301bdf6a68e1a4f160e420835a55b52e4b | 202 | py | Python | source_code/day001/input-exercise.py | MKutka/100daysofcode | e69c207956a1b16bb861e5831f0d66e75f16b31e | [
"MIT"
] | null | null | null | source_code/day001/input-exercise.py | MKutka/100daysofcode | e69c207956a1b16bb861e5831f0d66e75f16b31e | [
"MIT"
] | null | null | null | source_code/day001/input-exercise.py | MKutka/100daysofcode | e69c207956a1b16bb861e5831f0d66e75f16b31e | [
"MIT"
] | null | null | null | #Day 1.3 Exercise!!
#First way I thought to do it without help
name = input("What is your name? ")
print(len(name))
#Way I found to do it from searching google
print(len(input("What is your name? "))) | 25.25 | 43 | 0.70297 |
b4695e99489bd38daaa6b9010e4ec8efec4ce4a7 | 3,524 | py | Python | pyvalidator/is_strong_password.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 15 | 2021-11-01T14:14:56.000Z | 2022-03-17T11:52:29.000Z | pyvalidator/is_strong_password.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | 1 | 2022-03-16T13:39:16.000Z | 2022-03-17T09:16:00.000Z | pyvalidator/is_strong_password.py | theteladras/py.validator | 624ace7973552c8ac9353f48acbf96ec0ecc24a9 | [
"MIT"
] | null | null | null | from typing import TypedDict
from .utils.Classes.String import String
from .utils.assert_string import assert_string
from .utils.merge import merge
default_options: _IsStrongPasswordOptions = {
"min_length": 8,
"min_uppercase": 1,
"min_lowercase": 1,
"min_numbers": 1,
"min_symbols": 1,
"ret... | 29.864407 | 92 | 0.652667 |
b46a7333f1fb95d927bac95badb76d52d1539743 | 1,691 | py | Python | boilerplate_app/serializers.py | taher-systango/DjangoUnboxed | 808ab771a44564458b897b6ec854c08f43cccf2a | [
"MIT"
] | null | null | null | boilerplate_app/serializers.py | taher-systango/DjangoUnboxed | 808ab771a44564458b897b6ec854c08f43cccf2a | [
"MIT"
] | null | null | null | boilerplate_app/serializers.py | taher-systango/DjangoUnboxed | 808ab771a44564458b897b6ec854c08f43cccf2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Python imports.
import logging
import datetime
import calendar
# Django imports.
from django.db import transaction
# Rest Framework imports.
from rest_framework import serializers
# Third Party Library imports
# local imports.... | 25.621212 | 91 | 0.686576 |
b46ebc3b01df0741b7690606a0b55aac51c6693f | 237 | py | Python | wagtail/wagtailadmin/blocks.py | patphongs/wagtail | 32555f7a1c599c139e0f26c22907c9612af2e015 | [
"BSD-3-Clause"
] | 3 | 2016-08-17T13:56:36.000Z | 2019-04-23T19:59:25.000Z | wagtail/wagtailadmin/blocks.py | patphongs/wagtail | 32555f7a1c599c139e0f26c22907c9612af2e015 | [
"BSD-3-Clause"
] | 11 | 2016-08-05T15:43:06.000Z | 2016-12-16T13:32:23.000Z | wagtail/wagtailadmin/blocks.py | patphongs/wagtail | 32555f7a1c599c139e0f26c22907c9612af2e015 | [
"BSD-3-Clause"
] | 2 | 2017-08-08T01:39:02.000Z | 2018-05-06T06:16:10.000Z | from __future__ import absolute_import, unicode_literals
import warnings
from wagtail.wagtailcore.blocks import * # noqa
warnings.warn("wagtail.wagtailadmin.blocks has moved to wagtail.wagtailcore.blocks", UserWarning, stacklevel=2)
| 29.625 | 111 | 0.827004 |
b46ec93c5a888c6cb9e5eeda25bf96474de0d3f9 | 5,197 | py | Python | src/olympia/stats/management/commands/theme_update_counts_from_file.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/stats/management/commands/theme_update_counts_from_file.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | src/olympia/stats/management/commands/theme_update_counts_from_file.py | mstriemer/olympia | 2e700c20e0a8ed3f0dd389d1521c3798bf7ed7f7 | [
"BSD-3-Clause"
] | null | null | null | import codecs
from datetime import datetime, timedelta
from optparse import make_option
from os import path, unlink
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
import commonware.log
from olympia import amo
from olympia.addons.models import Addon, Persona
from ol... | 39.371212 | 79 | 0.583029 |
b470fed81935f91ffeef38325bad1336729439b2 | 663 | py | Python | KRR/Saved/Run 4/plot_all.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | 2 | 2018-10-10T09:32:34.000Z | 2019-03-28T08:42:31.000Z | KRR/Saved/Run 4/plot_all.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | null | null | null | KRR/Saved/Run 4/plot_all.py | MadsAW/machine-learning-on-materials | 6101c7e3d12be54b12391c78442294198a39cc9b | [
"MIT"
] | null | null | null | import numpy as np
import pickle
import matplotlib.pyplot as plt
import os
import fnmatch
folder = "GP/"
ktype = "lin/"
matrices=os.listdir(folder+ktype)
for matrix in matrices:
if fnmatch.fnmatch(matrix, '*_val_*'):
with open(folder+ktype+matrix, "rb") as pickleFile:
results = pickle.load(pick... | 27.625 | 59 | 0.585219 |
b4710f59abe4e45a9ec483665b621401e554ee1a | 5,919 | py | Python | FATERUI/common/camera/mindvision/camera_mindvision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 4 | 2018-12-07T02:17:26.000Z | 2020-12-03T05:32:23.000Z | FATERUI/common/camera/mindvision/camera_mindvision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | null | null | null | FATERUI/common/camera/mindvision/camera_mindvision.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 1 | 2021-12-30T12:14:52.000Z | 2021-12-30T12:14:52.000Z | #!/usr/bin/env python2.7
# coding=utf-8
import logging
import traceback
import time
from FATERUI.common.camera.camera import Camera
from . import CameraMindVision
from FATERUI.common.camera.common_tools import *
import cv2
# from aoi.common.infraredcontrol import infraredcontrol
from time import sleep
import datetim... | 35.656627 | 112 | 0.58101 |
b4723dbed92e900ca2787cc70a21f796a78c3f12 | 2,307 | py | Python | tests/conftest.py | arosen93/jobflow | fbd5868394c6f4f6b4f2e0ccf4b7ff7d21fe7258 | [
"BSD-3-Clause-LBNL"
] | 10 | 2021-11-13T07:43:27.000Z | 2022-03-14T11:05:15.000Z | tests/conftest.py | arosen93/jobflow | fbd5868394c6f4f6b4f2e0ccf4b7ff7d21fe7258 | [
"BSD-3-Clause-LBNL"
] | 69 | 2021-08-31T13:15:54.000Z | 2022-03-31T21:43:56.000Z | tests/conftest.py | arosen93/jobflow | fbd5868394c6f4f6b4f2e0ccf4b7ff7d21fe7258 | [
"BSD-3-Clause-LBNL"
] | 5 | 2021-10-17T03:52:57.000Z | 2022-03-31T00:17:20.000Z | import pytest
| 20.236842 | 78 | 0.686606 |
b472afbaafc9d44c866573f1e75db57304dcd9c2 | 2,142 | py | Python | src/utilities/download_file_from_zip.py | Bhaskers-Blu-Org2/arcticseals | 9e2629ca0ce7aadbe63118f39ff2da757d5dbc33 | [
"MIT"
] | 16 | 2019-05-21T20:08:01.000Z | 2021-11-23T22:34:00.000Z | src/utilities/download_file_from_zip.py | Bhaskers-Blu-Org2/arcticseals | 9e2629ca0ce7aadbe63118f39ff2da757d5dbc33 | [
"MIT"
] | 14 | 2018-07-18T17:14:30.000Z | 2019-04-14T14:40:12.000Z | src/utilities/download_file_from_zip.py | microsoft/arcticseals | 8adf8fbae679866373b9b5f981ceaa6ae9226c6a | [
"MIT"
] | 10 | 2019-05-10T20:56:47.000Z | 2022-01-26T13:16:40.000Z | # This script allows to download a single file from a remote ZIP archive
# without downloading the whole ZIP file itself.
# The hosting server needs to support the HTTP range header for it to work
import zipfile
import requests
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
pa... | 38.945455 | 126 | 0.600373 |
b474450a8d01b6c6116bd09fee74ef2ac63927a9 | 5,928 | py | Python | cxphasing/CXFileReader.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 3 | 2018-05-11T16:05:55.000Z | 2021-12-20T08:52:02.000Z | cxphasing/CXFileReader.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | null | null | null | cxphasing/CXFileReader.py | jbgastineau/cxphasing | a9847a0afb9a981d81f027e75c06c9bb2b531d33 | [
"MIT"
] | 2 | 2018-11-14T08:57:10.000Z | 2021-12-20T08:52:06.000Z | import Image
import readMDA
import h5py
import os
import numpy
from mmpad_image import open_mmpad_tif
import numpy as np
import scipy as sp
import sys
#import libtiff
from cxparams import CXParams as CXP
| 29.20197 | 109 | 0.546896 |
b474f12be63300ba532e865b5aa405c132d39b80 | 1,881 | py | Python | homeassistant/components/notify/file.py | SKarthick5121995/karthickmaduraai | d5498dfb83e9bb57fff16db854ae3e15c1e15425 | [
"MIT"
] | null | null | null | homeassistant/components/notify/file.py | SKarthick5121995/karthickmaduraai | d5498dfb83e9bb57fff16db854ae3e15c1e15425 | [
"MIT"
] | null | null | null | homeassistant/components/notify/file.py | SKarthick5121995/karthickmaduraai | d5498dfb83e9bb57fff16db854ae3e15c1e15425 | [
"MIT"
] | null | null | null | """
Support for file notification.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.file/
"""
import logging
import os
import homeassistant.util.dt as dt_util
from homeassistant.components.notify import (
ATTR_TITLE, DOMAIN, BaseNotificationSer... | 33 | 74 | 0.607656 |
b47686e7b028cb8a2b59a0aee1c9616fb72be5a0 | 2,561 | py | Python | app/eSignature/views/eg035_scheduled_sending.py | docusign/eg-03-python-auth-code-grant | e92913e25f753fb6b52fc3da6bc4b76c49c75b37 | [
"MIT"
] | 7 | 2019-05-09T05:17:35.000Z | 2020-05-06T14:27:51.000Z | app/eSignature/views/eg035_scheduled_sending.py | docusign/eg-03-python-auth-code-grant | e92913e25f753fb6b52fc3da6bc4b76c49c75b37 | [
"MIT"
] | 1 | 2019-06-25T23:06:34.000Z | 2019-06-25T23:06:34.000Z | app/eSignature/views/eg035_scheduled_sending.py | docusign/eg-03-python-auth-code-grant | e92913e25f753fb6b52fc3da6bc4b76c49c75b37 | [
"MIT"
] | 8 | 2019-06-21T23:57:48.000Z | 2020-02-11T18:58:34.000Z |
""" Example 035: Scheduled sending and delayed routing """
from os import path
from docusign_esign.client.api_exception import ApiException
from flask import render_template, session, Blueprint, request
from ..examples.eg035_scheduled_sending import Eg035ScheduledSendingController
from ...docusign import authentica... | 30.855422 | 106 | 0.681765 |
b476e08084c58f13ed7fa0dc7c045384b16ce2fe | 584 | py | Python | Informatik1/Finals Prep/HS20/1 Warmup/tally.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | 8 | 2021-11-21T10:02:08.000Z | 2022-03-15T21:02:02.000Z | Informatik1/Finals Prep/HS20/1 Warmup/tally.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | null | null | null | Informatik1/Finals Prep/HS20/1 Warmup/tally.py | Queentaker/uzh | 35cccaf910b95d15db21be80c8567eb427202591 | [
"MIT"
] | 3 | 2021-11-19T18:52:56.000Z | 2022-02-27T15:45:59.000Z | #-- THIS LINE SHOULD BE THE FIRST LINE OF YOUR SUBMISSION! --#
#-- THIS LINE SHOULD BE THE LAST LINE OF YOUR SUBMISSION! ---#
### DO NOT SUBMIT THE FOLLOWING LINES!!! THESE ARE FOR LOCAL TESTING ONLY!
# ((10+24) - (3+4+3)) * 0.3
assert(tally([10,24], [3,4,3], 0.30) == 7.20)
# if the result would be negative, 0 is ret... | 29.2 | 74 | 0.623288 |
b47710dd97089aa9a4dab16fd72a2e7d5d913aa8 | 2,450 | py | Python | linear_sequence_of_dominos/valid_sequence.py | bhpayne/domino_tile_floor | e5473081160e6f59c901fcc7563a984ef8c0a76d | [
"Apache-2.0"
] | null | null | null | linear_sequence_of_dominos/valid_sequence.py | bhpayne/domino_tile_floor | e5473081160e6f59c901fcc7563a984ef8c0a76d | [
"Apache-2.0"
] | 6 | 2020-12-31T03:33:44.000Z | 2021-01-01T01:46:56.000Z | linear_sequence_of_dominos/valid_sequence.py | bhpayne/domino_tile_floor | e5473081160e6f59c901fcc7563a984ef8c0a76d | [
"Apache-2.0"
] | 1 | 2018-03-15T19:30:11.000Z | 2018-03-15T19:30:11.000Z | #!/usr/bin/env python3
"""
Given a set of dominos, construct a linear sequence
For example, if the set of dominos is
[ (0,0) (1,0), (1,1)]
then a valid linear sequence of length four would be
(0,0),(0,1),(1,1),(1,0)
In this script we first create a set of dominos to sample from.
Then every permutation of that set is t... | 33.108108 | 73 | 0.490204 |
b479184cf8fa1d0126f4741b48905617a0186570 | 3,418 | py | Python | Projects/Arena/old-version.py | hastysun/Python | b63921160fe13291dbfcbdcf821364e76d3164d5 | [
"Apache-2.0"
] | 1 | 2018-05-16T22:41:38.000Z | 2018-05-16T22:41:38.000Z | Projects/Arena/old-version.py | hastysun/Python | b63921160fe13291dbfcbdcf821364e76d3164d5 | [
"Apache-2.0"
] | null | null | null | Projects/Arena/old-version.py | hastysun/Python | b63921160fe13291dbfcbdcf821364e76d3164d5 | [
"Apache-2.0"
] | null | null | null | ## Unit 4 Project - Two Player Game
## Gavin Weiss - Computer Programming II
## The Elder Scrolls X
# A fan made 2 player game successor the The Elder Scrolls Series
# Two players start off in an arena
# Can choose starting items
# Can choose classes
## Libraries
import time # Self explanatory
import rand... | 21.098765 | 70 | 0.613517 |
b47a0c18a008deafead3e0074466d35091002570 | 6,689 | py | Python | chromium/tools/telemetry/telemetry/internal/image_processing/video.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 925 | 2015-11-06T03:04:46.000Z | 2017-09-16T19:08:43.000Z | chromium/tools/telemetry/telemetry/internal/image_processing/video.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 29 | 2015-11-09T17:37:28.000Z | 2017-08-16T17:50:11.000Z | chromium/tools/telemetry/telemetry/internal/image_processing/video.py | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | 51 | 2015-11-08T07:06:38.000Z | 2017-08-21T07:27:19.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import subprocess
from catapult_base import cloud_storage
from telemetry.core import platform
from telemetry.util import image_util
from telemetry.util impo... | 38.889535 | 80 | 0.687995 |
b47a8507030b3a977cb62f1a1969dd088038ec0e | 2,545 | py | Python | homeassistant/components/renault/renault_coordinator.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 5 | 2019-02-24T11:46:18.000Z | 2019-05-28T17:37:21.000Z | homeassistant/components/renault/renault_coordinator.py | basicpail/core | 5cc54618c5af3f75c08314bf2375cc7ac40d2b7e | [
"Apache-2.0"
] | 77 | 2020-07-16T16:43:09.000Z | 2022-03-31T06:14:37.000Z | homeassistant/components/renault/renault_coordinator.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 7 | 2021-03-20T12:34:01.000Z | 2021-12-02T10:13:52.000Z | """Proxy to handle account communication with Renault servers."""
from __future__ import annotations
from collections.abc import Awaitable
from datetime import timedelta
import logging
from typing import Callable, TypeVar
from renault_api.kamereon.exceptions import (
AccessDeniedException,
KamereonResponseExc... | 34.863014 | 89 | 0.673477 |
b47abe86e6343865f80d317d811f2885ba219aec | 122 | py | Python | Pacote Dowload/pythonProject/aula020.py | J297-hub/exercicios-de-python | cde355f9aeb43abce7890cd9879646bfe768190e | [
"MIT"
] | null | null | null | Pacote Dowload/pythonProject/aula020.py | J297-hub/exercicios-de-python | cde355f9aeb43abce7890cd9879646bfe768190e | [
"MIT"
] | null | null | null | Pacote Dowload/pythonProject/aula020.py | J297-hub/exercicios-de-python | cde355f9aeb43abce7890cd9879646bfe768190e | [
"MIT"
] | null | null | null |
#Programa Principal
soma(4,5)
| 13.555556 | 31 | 0.491803 |
b47bec3668d864394eed49330fbd6e060a5d6f09 | 2,270 | py | Python | docs/script/CLI_docker_image_uri_script.py | ai4eu/on-boarding | 6de8c323bb5f2d18612ba807b0caa8e5954bf8a8 | [
"Apache-2.0"
] | null | null | null | docs/script/CLI_docker_image_uri_script.py | ai4eu/on-boarding | 6de8c323bb5f2d18612ba807b0caa8e5954bf8a8 | [
"Apache-2.0"
] | 1 | 2021-06-15T10:45:35.000Z | 2021-06-15T10:45:35.000Z | docs/script/CLI_docker_image_uri_script.py | ai4eu/on-boarding | 6de8c323bb5f2d18612ba807b0caa8e5954bf8a8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# ===================================================================================
# Copyright (C) 2019 Fraunhofer Gesellschaft. All rights reserved.
# ===================================================================================
# This Acumos software file is distributed by Fraunhofer G... | 43.653846 | 133 | 0.640529 |
b47d1e8ef224c2f61bfc09b6164ea7a99d634c35 | 1,169 | py | Python | zeus/networks/pytorch/backbones/getter.py | shaido987/vega | 14d5d49fb8bdf96bd1f3fcfac201ce6b6712c3b6 | [
"MIT"
] | 1 | 2021-05-08T07:47:44.000Z | 2021-05-08T07:47:44.000Z | zeus/networks/pytorch/backbones/getter.py | WholeG/vega | d1ccf1c3ce68a118bdb6775594ceed0f895911e7 | [
"MIT"
] | null | null | null | zeus/networks/pytorch/backbones/getter.py | WholeG/vega | d1ccf1c3ce68a118bdb6775594ceed0f895911e7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | 43.296296 | 77 | 0.739093 |
b47e174f27a9621be97952b2420f06f45e7e9776 | 836 | py | Python | pure_ee/lista.py | geosconsulting/gee_wapor | c3c451fcb21664172a74647fe5d9e56f312aa1df | [
"Apache-1.1"
] | 2 | 2017-11-30T18:45:59.000Z | 2018-04-08T16:47:43.000Z | pure_ee/lista.py | geosconsulting/gee_wapor | c3c451fcb21664172a74647fe5d9e56f312aa1df | [
"Apache-1.1"
] | null | null | null | pure_ee/lista.py | geosconsulting/gee_wapor | c3c451fcb21664172a74647fe5d9e56f312aa1df | [
"Apache-1.1"
] | 1 | 2021-09-09T06:03:44.000Z | 2021-09-09T06:03:44.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 20 08:40:22 2017
@author: fabio
"""
import ee
import ee.mapclient
ee.Initialize()
collection = ee.ImageCollection('MODIS/MCD43A4_NDVI')
lista = collection.toList(10)
#print lista.getInfo()
image = ee.Image('LC8_L1T/LC81910312016217LGN00')
#prin... | 19.904762 | 56 | 0.643541 |
b47e5c3d3423860e078e6b322a1719db193870cb | 3,107 | py | Python | pkg/tests/helpers_test.py | hborawski/rules_pkg | 8d542763a3959db79175404758f46c7f3f385fa5 | [
"Apache-2.0"
] | null | null | null | pkg/tests/helpers_test.py | hborawski/rules_pkg | 8d542763a3959db79175404758f46c7f3f385fa5 | [
"Apache-2.0"
] | null | null | null | pkg/tests/helpers_test.py | hborawski/rules_pkg | 8d542763a3959db79175404758f46c7f3f385fa5 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 33.408602 | 77 | 0.700032 |
b47f33a5bfd7dd5f1e09089984f041a42647c888 | 177 | py | Python | atendimento/admin.py | alantinoco/django-crmsmart | f8bd3404e0dfdf4a2976ec8bbdaee27a012f9981 | [
"MIT"
] | null | null | null | atendimento/admin.py | alantinoco/django-crmsmart | f8bd3404e0dfdf4a2976ec8bbdaee27a012f9981 | [
"MIT"
] | null | null | null | atendimento/admin.py | alantinoco/django-crmsmart | f8bd3404e0dfdf4a2976ec8bbdaee27a012f9981 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Contato, Venda, FormaPagamento
admin.site.register(Contato)
admin.site.register(Venda)
admin.site.register(FormaPagamento)
| 25.285714 | 50 | 0.830508 |
b47fefb3dba103290fb50268daa1c3e2fc5aec99 | 11,967 | py | Python | pome/models/transaction.py | pome-gr/pome | c6f4f9842cb7047dbd4e739e3be9b049a1887c58 | [
"MIT"
] | 3 | 2021-09-10T09:49:21.000Z | 2021-12-14T12:44:53.000Z | pome/models/transaction.py | pome-gr/pome | c6f4f9842cb7047dbd4e739e3be9b049a1887c58 | [
"MIT"
] | 2 | 2021-09-10T11:17:51.000Z | 2021-09-11T20:43:30.000Z | pome/models/transaction.py | pome-gr/pome | c6f4f9842cb7047dbd4e739e3be9b049a1887c58 | [
"MIT"
] | null | null | null | import os
import re
import urllib
from datetime import datetime
from pathlib import Path
from typing import Dict, List, Tuple, Union
from money.currency import Currency
from money.money import Money
from werkzeug.utils import secure_filename
from pome import g
from pome.models.encoder import PomeEncodable
RECORDED_T... | 37.164596 | 189 | 0.585694 |
b4823115f908163488e925d3fd26ab3097c5417b | 4,350 | py | Python | site/external/moya.logins/py/oauth1.py | moyaproject/moya-techblog | 4f7d606b22773db40850b742945e83e328c63bb7 | [
"MIT"
] | 31 | 2015-11-19T04:47:05.000Z | 2021-12-29T19:10:58.000Z | site/external/moya.logins/py/oauth1.py | moyaproject/moya-techblog | 4f7d606b22773db40850b742945e83e328c63bb7 | [
"MIT"
] | 1 | 2015-11-19T14:28:52.000Z | 2015-11-24T00:14:25.000Z | site/external/moya.logins/py/oauth1.py | moyaproject/moya-techblog | 4f7d606b22773db40850b742945e83e328c63bb7 | [
"MIT"
] | 1 | 2021-08-10T15:09:01.000Z | 2021-08-10T15:09:01.000Z | from __future__ import unicode_literals
from __future__ import print_function
import moya
from moya.compat import text_type
from requests_oauthlib import OAuth1Session
| 38.157895 | 95 | 0.672184 |
b482963dac3d21247c020b102c3b4900ec667eba | 6,599 | py | Python | cgp.py | BakudanKame/CGPCatAndRat | 29a57b6bc5d00ef11acfe78afa4ff2b418d0b971 | [
"MIT"
] | null | null | null | cgp.py | BakudanKame/CGPCatAndRat | 29a57b6bc5d00ef11acfe78afa4ff2b418d0b971 | [
"MIT"
] | 1 | 2021-03-05T17:37:44.000Z | 2021-03-05T17:37:44.000Z | cgp.py | BakudanKame/CGPCatAndRat | 29a57b6bc5d00ef11acfe78afa4ff2b418d0b971 | [
"MIT"
] | 1 | 2021-03-04T19:47:42.000Z | 2021-03-04T19:47:42.000Z | """
Cartesian genetic programming
"""
import operator as op
import random
import copy
import math
from settings import VERBOSE, N_COLS, LEVEL_BACK
# function set
def protected_div(a, b):
if abs(b) < 1e-6:
return a
return a / b
fs = [Function(op.add, 2), Function(op.sub, 2), Functio... | 31.879227 | 211 | 0.582513 |
b48444fb43f7b50ccaf1395f967f3216e0c9b14c | 824 | py | Python | historia/pops/logic/refiner.py | eranimo/historia | 5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd | [
"MIT"
] | 6 | 2016-04-26T18:39:36.000Z | 2021-09-01T09:13:38.000Z | historia/pops/logic/refiner.py | eranimo/historia | 5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd | [
"MIT"
] | null | null | null | historia/pops/logic/refiner.py | eranimo/historia | 5e0b047d4bcdd534f48f8b9bf19d425b0b31a3fd | [
"MIT"
] | 4 | 2016-04-10T23:47:23.000Z | 2021-08-15T11:40:28.000Z | from historia.pops.logic.logic_base import LogicBase
from historia.economy.enums.resource import Good
| 32.96 | 52 | 0.601942 |
b484806f07273e81bf7d1386a37c1b227189ad08 | 2,386 | py | Python | image_processing/manual_features/extract-features.py | ColoredInsaneAsylums/PrivacySensitiveTranscription | 07cf8f8da222b606988e7b4dee6a6bffdd0b6fe6 | [
"BSD-3-Clause"
] | null | null | null | image_processing/manual_features/extract-features.py | ColoredInsaneAsylums/PrivacySensitiveTranscription | 07cf8f8da222b606988e7b4dee6a6bffdd0b6fe6 | [
"BSD-3-Clause"
] | 7 | 2021-03-18T20:23:36.000Z | 2022-03-11T23:16:18.000Z | image_processing/manual_features/extract-features.py | ColoredInsaneAsylums/Clustering-PrivacySensitiveTranscription | 07cf8f8da222b606988e7b4dee6a6bffdd0b6fe6 | [
"BSD-3-Clause"
] | 2 | 2017-11-29T21:36:31.000Z | 2018-10-13T01:45:03.000Z | import argparse
import cv2
import numpy as np
import os
import _pickle as pickle
from descriptors import HOG
#from skimage.morphology import skeletonize
# run image filtering and HOG feature extraction
if __name__ == '__main__':
# require image directory and name of descriptor to use
parser = argparse.Argume... | 32.684932 | 114 | 0.611065 |
b4854019f4acb3fc387347bdc98278a5e0867d2a | 363 | py | Python | src/exco/extractor_spec/spec_source.py | thegangtechnology/excel_comment_orm | b38156b406ccb3ce87737b8ed049bbf3b8a39050 | [
"MIT"
] | 2 | 2020-11-10T04:53:07.000Z | 2020-11-12T03:53:46.000Z | src/exco/extractor_spec/spec_source.py | thegangtechnology/excel_comment_orm | b38156b406ccb3ce87737b8ed049bbf3b8a39050 | [
"MIT"
] | 50 | 2020-11-09T06:30:31.000Z | 2022-01-06T05:00:50.000Z | src/exco/extractor_spec/spec_source.py | thegangtechnology/excel_comment_orm | b38156b406ccb3ce87737b8ed049bbf3b8a39050 | [
"MIT"
] | null | null | null | import abc
| 19.105263 | 90 | 0.62259 |
b485f966490bf3490f3dba52ae21698a1d35eef4 | 265 | py | Python | app/admin.py | CS-Hunt/Get-Placed | f79f79f2dd37510405a24578b3a91acea00f9244 | [
"MIT"
] | 14 | 2021-08-28T04:05:55.000Z | 2022-02-20T07:03:16.000Z | app/admin.py | CS-Hunt/Get-Placed | f79f79f2dd37510405a24578b3a91acea00f9244 | [
"MIT"
] | null | null | null | app/admin.py | CS-Hunt/Get-Placed | f79f79f2dd37510405a24578b3a91acea00f9244 | [
"MIT"
] | 9 | 2021-08-28T04:06:03.000Z | 2021-09-26T16:45:28.000Z | from django.contrib import admin
from .models import Placement_Company_Detail,Profile,StudentBlogModel,ResorcesModel
admin.site.register(Placement_Company_Detail)
admin.site.register(Profile)
admin.site.register(StudentBlogModel)
admin.site.register(ResorcesModel) | 37.857143 | 83 | 0.875472 |
b4860c44ee18b6902dd90728a523b3075912de35 | 3,730 | py | Python | data/mapping.py | wby1905/Graph-Transformer-SSPR | 4d9f2d3b950cde7e7b955247f58c0427f1dda6a1 | [
"MIT"
] | 2 | 2022-01-19T12:05:08.000Z | 2022-03-02T09:43:50.000Z | data/mapping.py | wby1905/Graph-Transformer | 4d9f2d3b950cde7e7b955247f58c0427f1dda6a1 | [
"MIT"
] | null | null | null | data/mapping.py | wby1905/Graph-Transformer | 4d9f2d3b950cde7e7b955247f58c0427f1dda6a1 | [
"MIT"
] | 2 | 2021-06-10T03:39:21.000Z | 2022-01-19T12:05:01.000Z | import torch as t
import torch_geometric.utils as utils
def qw_score(graph):
"""
qw_score,
:param graph:
"""
score = utils.degree(graph.edge_index[0])
return score.sort()
def construct_node_tree(graph, node, trees, opt):
"""
K_level, m_ary
:param graph:
:param node:
:p... | 30.826446 | 92 | 0.521984 |
b48654f076f939090f06530d0e1ff49e0fb32d65 | 5,463 | py | Python | .archived/snakecode/0460.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 4 | 2022-01-13T03:39:01.000Z | 2022-03-15T03:16:33.000Z | .archived/snakecode/0460.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | null | null | null | .archived/snakecode/0460.py | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 1 | 2021-12-09T12:33:07.000Z | 2021-12-09T12:33:07.000Z | from typing import Optional, Any
def test(actions: list[str], val: list[list[int]]):
cache: Optional[LFUCache] = None
result: list[Optional[Any]] = []
for i, v in zip(actions, val):
if i == 'LFUCache':
cache = LFUCache(v[0])
result.append(None)
elif i == 'put':
... | 41.386364 | 683 | 0.513271 |
b48720b38e6ef7c7ce6bd71cd8a1fc79b8ad2a3a | 3,263 | py | Python | scripts/sha3.py | cidox479/ecc | da4091ff675d0fc757dc7d19bcdd4474a1388011 | [
"BSD-2-Clause"
] | null | null | null | scripts/sha3.py | cidox479/ecc | da4091ff675d0fc757dc7d19bcdd4474a1388011 | [
"BSD-2-Clause"
] | null | null | null | scripts/sha3.py | cidox479/ecc | da4091ff675d0fc757dc7d19bcdd4474a1388011 | [
"BSD-2-Clause"
] | 1 | 2020-09-28T03:06:38.000Z | 2020-09-28T03:06:38.000Z | #/*
# * Copyright (C) 2017 - This file is part of libecc project
# *
# * Authors:
# * Ryad BENADJILA <ryadbenadjila@gmail.com>
# * Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr>
# * Jean-Pierre FLORI <jean-pierre.flori@ssi.gouv.fr>
# *
# * Contributors:
# * Nicolas VIVET <nicolas.vivet@ssi.gouv.fr>
... | 32.63 | 97 | 0.62274 |
b48883d3a21bfcf226b4a43dc5ce8c081b237e69 | 3,332 | py | Python | lps/seeds.py | fernandoleira/lps-platform | 0d2ac2465c27444e184bbe5357553607b37790da | [
"MIT"
] | null | null | null | lps/seeds.py | fernandoleira/lps-platform | 0d2ac2465c27444e184bbe5357553607b37790da | [
"MIT"
] | null | null | null | lps/seeds.py | fernandoleira/lps-platform | 0d2ac2465c27444e184bbe5357553607b37790da | [
"MIT"
] | null | null | null | import csv
from pathlib import Path
from datetime import datetime
from lps.models import *
from lps.schemas import *
SEED_FOLDER_PATH = Path("db/seeds/")
| 30.851852 | 176 | 0.635054 |
b48ab31d2b65a280be63bfbc1d367523dc945d6a | 141 | py | Python | Python/Least_Common_Multiple_for_large_numbers.py | DeathcallXD/DS-Algo-Point | 70bc4b98fa6648cdcb2e65bccaa8b30298f14d87 | [
"MIT"
] | null | null | null | Python/Least_Common_Multiple_for_large_numbers.py | DeathcallXD/DS-Algo-Point | 70bc4b98fa6648cdcb2e65bccaa8b30298f14d87 | [
"MIT"
] | null | null | null | Python/Least_Common_Multiple_for_large_numbers.py | DeathcallXD/DS-Algo-Point | 70bc4b98fa6648cdcb2e65bccaa8b30298f14d87 | [
"MIT"
] | null | null | null |
a = int(input())
b = int(input())
print(a*b//(GCD(a,b)))
| 14.1 | 26 | 0.460993 |
b48b0aa9e22f7e6f7d8092e34b71578abf6b8004 | 2,121 | py | Python | matgendb/builders/examples/maxvalue_builder.py | Tinaatucsd/pymatgen-db | e1fc46b7df8bea8455e7290ae3eea6fd297a09f3 | [
"MIT"
] | null | null | null | matgendb/builders/examples/maxvalue_builder.py | Tinaatucsd/pymatgen-db | e1fc46b7df8bea8455e7290ae3eea6fd297a09f3 | [
"MIT"
] | null | null | null | matgendb/builders/examples/maxvalue_builder.py | Tinaatucsd/pymatgen-db | e1fc46b7df8bea8455e7290ae3eea6fd297a09f3 | [
"MIT"
] | null | null | null | """
Build a derived collection with the maximum
value from each 'group' defined in the source
collection.
"""
__author__ = 'Dan Gunter <dkgunter@lbl.gov>'
__date__ = '5/21/14'
from matgendb.builders import core
from matgendb.builders import util
from matgendb.query_engine import QueryEngine
_log = util.get_builder_lo... | 35.949153 | 72 | 0.614804 |
b48c5e302c25178ab826b1d7d13350ce7b179b8d | 184 | py | Python | dvc/dependency/ssh.py | yfarjoun/dvc | eaca7dc80c765dd3a8dbe4c8fb3b206656bbc5e2 | [
"Apache-2.0"
] | 2 | 2021-09-22T15:31:46.000Z | 2021-11-17T10:40:07.000Z | dvc/dependency/ssh.py | yfarjoun/dvc | eaca7dc80c765dd3a8dbe4c8fb3b206656bbc5e2 | [
"Apache-2.0"
] | null | null | null | dvc/dependency/ssh.py | yfarjoun/dvc | eaca7dc80c765dd3a8dbe4c8fb3b206656bbc5e2 | [
"Apache-2.0"
] | 1 | 2019-09-02T00:29:40.000Z | 2019-09-02T00:29:40.000Z | from __future__ import unicode_literals
from dvc.output.ssh import OutputSSH
from dvc.dependency.base import DependencyBase
| 20.444444 | 47 | 0.831522 |
b48eb31a18679e3dd6c7f6eeeaf59912e0ae7a93 | 1,775 | py | Python | multiscaleloss.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | multiscaleloss.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | multiscaleloss.py | praveeenbadimala/flow_unsupervised | 07385fd45e9213c06acacfd891e116f07993575e | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import optflow.compute_tvl1_energy as compute_tvl1_energy
| 41.27907 | 101 | 0.652958 |
81e7a0792251a7a66030d5e6a745a97158b8e55f | 8,070 | py | Python | object_detector/src/object_detector/object_detector.py | Ajapaik/ml-2021-ajapaik | 31e318f10329405237a5773a1d963b3ab867fa02 | [
"Apache-2.0"
] | null | null | null | object_detector/src/object_detector/object_detector.py | Ajapaik/ml-2021-ajapaik | 31e318f10329405237a5773a1d963b3ab867fa02 | [
"Apache-2.0"
] | 9 | 2021-11-12T16:54:24.000Z | 2021-12-12T14:13:49.000Z | object_detector/src/object_detector/object_detector.py | iharsuvorau/ml-2021-ajapaik | 31e318f10329405237a5773a1d963b3ab867fa02 | [
"Apache-2.0"
] | 1 | 2022-02-24T21:23:06.000Z | 2022-02-24T21:23:06.000Z | import numpy as np
import time
import cv2
import argparse
import sys
import os
import glob
import json
from pathlib import Path
if __name__ == "__main__":
main()
| 37.887324 | 153 | 0.580421 |
81e7bcf77b3d24a119c0b31470b009787721b442 | 15,921 | py | Python | pipeline/tests/engine/core/data/test_api.py | wkma/bk-sops | 8fb5609c0c4495c28d588fbafa9d9f5f2976929b | [
"Apache-2.0"
] | 2 | 2021-07-28T01:48:31.000Z | 2021-11-17T11:02:26.000Z | pipeline/tests/engine/core/data/test_api.py | wkma/bk-sops | 8fb5609c0c4495c28d588fbafa9d9f5f2976929b | [
"Apache-2.0"
] | null | null | null | pipeline/tests/engine/core/data/test_api.py | wkma/bk-sops | 8fb5609c0c4495c28d588fbafa9d9f5f2976929b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 43.381471 | 115 | 0.592174 |
81e7fbeb1aa79861faba9578ed1ed05e2c7b8c74 | 5,669 | py | Python | pactools/mne_api.py | mathurinm/pactools | 2ad08061c69378368137a26e0519ce3ce6e5c7bd | [
"BSD-3-Clause"
] | null | null | null | pactools/mne_api.py | mathurinm/pactools | 2ad08061c69378368137a26e0519ce3ce6e5c7bd | [
"BSD-3-Clause"
] | null | null | null | pactools/mne_api.py | mathurinm/pactools | 2ad08061c69378368137a26e0519ce3ce6e5c7bd | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
def _check_mne(name):
"""Helper to check if h5py is installed"""
try:
import mne
except ImportError:
raise ImportError('Please install MNE-python to use %s.' % name)
return mne
def raw_to_mask(raw, ixs, events=None, tmin=None, tmax=None):
"""
A function to ... | 34.150602 | 79 | 0.599929 |
81e833e9fa8dc0d32e6fa4d7181d790ea3b16866 | 508 | py | Python | 1101-1200/1152-Analyze User Website Visit Pattern/1152-Analyze User Website Visit Pattern.py | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 1101-1200/1152-Analyze User Website Visit Pattern/1152-Analyze User Website Visit Pattern.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 1101-1200/1152-Analyze User Website Visit Pattern/1152-Analyze User Website Visit Pattern.py | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | import collections
from itertools import combinations
from collections import Counter
| 46.181818 | 109 | 0.673228 |
81eb1d6d6cc6e952fd1154195a1b71aa5f698462 | 870 | py | Python | src/tarot/magicEight.py | tjweldon/St_Germain | ab4114e71733ac4fc8cd835f8d1107340de5852f | [
"MIT"
] | null | null | null | src/tarot/magicEight.py | tjweldon/St_Germain | ab4114e71733ac4fc8cd835f8d1107340de5852f | [
"MIT"
] | null | null | null | src/tarot/magicEight.py | tjweldon/St_Germain | ab4114e71733ac4fc8cd835f8d1107340de5852f | [
"MIT"
] | null | null | null | import random
| 29 | 57 | 0.452874 |
81eb4b0e294989b02c9358c7a2349765725c6844 | 970 | py | Python | app/mod_check/MySQL.py | RITC3/Hermes | 7df5cf1cbeaca949918ace9278b2d5c1138d4eac | [
"MIT"
] | 2 | 2018-03-06T03:39:00.000Z | 2018-03-06T04:31:39.000Z | app/mod_check/MySQL.py | RITC3/Hermes | 7df5cf1cbeaca949918ace9278b2d5c1138d4eac | [
"MIT"
] | 15 | 2018-01-01T20:55:22.000Z | 2018-06-09T21:37:39.000Z | app/mod_check/MySQL.py | RITC3/Hermes | 7df5cf1cbeaca949918ace9278b2d5c1138d4eac | [
"MIT"
] | null | null | null | import pymysql.cursors
from ..mod_check import app
| 29.393939 | 76 | 0.464948 |
81eb7f6fef6cc7597c7451eea8083a954d98940b | 2,087 | py | Python | src/adafruit-circuitpython-bundle-4.x-mpy-20190713/examples/hue_simpletest.py | mbaaba/solar_panel | 42059d8c61320494ad1298065dbc50cd9b3bd51e | [
"MIT"
] | 1 | 2020-04-13T16:10:53.000Z | 2020-04-13T16:10:53.000Z | infra/libs-400rc2-20190512/examples/hue_simpletest.py | jadudm/feather-isa | b7419e6698c3f64be4d8122656eb8124631ca859 | [
"MIT"
] | null | null | null | infra/libs-400rc2-20190512/examples/hue_simpletest.py | jadudm/feather-isa | b7419e6698c3f64be4d8122656eb8124631ca859 | [
"MIT"
] | null | null | null | import time
import board
import busio
from digitalio import DigitalInOut
from adafruit_esp32spi import adafruit_esp32spi
from adafruit_esp32spi import adafruit_esp32spi_wifimanager
import neopixel
# Import Philips Hue Bridge
from adafruit_hue import Bridge
# Get wifi details and more from a secrets.py file
... | 32.609375 | 84 | 0.712985 |
81ebc1e0f8c3dd6fa15e9aec38b6811ca3958a6e | 2,081 | py | Python | examples/python-echo/src/echo.py | mdelete/kore | 481bb133a9307614dc7da6ca59453ef154696ce1 | [
"0BSD"
] | null | null | null | examples/python-echo/src/echo.py | mdelete/kore | 481bb133a9307614dc7da6ca59453ef154696ce1 | [
"0BSD"
] | null | null | null | examples/python-echo/src/echo.py | mdelete/kore | 481bb133a9307614dc7da6ca59453ef154696ce1 | [
"0BSD"
] | null | null | null | #
# Copyright (c) 2013-2018 Joris Vink <joris@coders.se>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... | 35.271186 | 74 | 0.655454 |
81ec64fdd381f8390bb7b57ec0c4cafc99c38ae3 | 77 | py | Python | src/token/__init__.py | mingz2013/py.script | c7f637f41949d4992e11bb0f694d2dc6aa7bf112 | [
"Apache-2.0"
] | 1 | 2019-10-23T13:15:59.000Z | 2019-10-23T13:15:59.000Z | src/token/__init__.py | mingz2013/py.cond | c98bc81e2216136bf158177355a8fcc36e1d83a9 | [
"Apache-2.0"
] | null | null | null | src/token/__init__.py | mingz2013/py.cond | c98bc81e2216136bf158177355a8fcc36e1d83a9 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
"""
"""
__date__ = "14/12/2017"
__author__ = "zhaojm"
| 12.833333 | 23 | 0.545455 |
81eca3ec2c7fb9bdc184a8e1b344b38081bdf451 | 3,710 | py | Python | pesto-cli/pesto/ws/service/process.py | CS-SI/pesto | 654a961d1064049578050d4c96e6f68f6a6dd770 | [
"Apache-2.0"
] | 25 | 2020-05-19T16:22:52.000Z | 2022-01-06T13:31:19.000Z | pesto-cli/pesto/ws/service/process.py | CS-SI/pesto | 654a961d1064049578050d4c96e6f68f6a6dd770 | [
"Apache-2.0"
] | 5 | 2020-10-12T09:30:20.000Z | 2021-12-13T12:49:06.000Z | pesto-cli/pesto/ws/service/process.py | CS-SI/pesto | 654a961d1064049578050d4c96e6f68f6a6dd770 | [
"Apache-2.0"
] | 5 | 2020-06-19T16:05:13.000Z | 2021-03-11T11:51:19.000Z | import asyncio
import logging
import traceback
import uuid
from typing import Optional, Tuple, Any, Callable
from pesto.ws.core.payload_parser import PayloadParser, PestoConfig
from pesto.ws.core.pesto_feature import PestoFeatures
from pesto.ws.core.utils import load_class, async_exec
from pesto.ws.features.algorithm_... | 37.857143 | 118 | 0.692453 |
81edcd97dcc8187e9a6274632556bdf350c16b63 | 1,858 | py | Python | migration_runner/helpers.py | beveradb/ecs-digital-interview-test | 7e2d18005263424be016281d3f3f344af4536971 | [
"MIT"
] | null | null | null | migration_runner/helpers.py | beveradb/ecs-digital-interview-test | 7e2d18005263424be016281d3f3f344af4536971 | [
"MIT"
] | 49 | 2019-02-14T01:52:14.000Z | 2021-11-15T17:48:17.000Z | migration_runner/helpers.py | beveradb/python-sql-migration-runner | 7e2d18005263424be016281d3f3f344af4536971 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import logging
import os
import re
import sys
| 30.459016 | 78 | 0.599031 |
81ee84f6b82809aa8e7f47a4b2060161548b3aab | 1,353 | py | Python | sitri/providers/contrib/ini.py | Elastoo-Team/sitri | d5470d9a37d3c944c0976793fce80a630e5625b1 | [
"MIT"
] | 11 | 2020-12-16T07:00:29.000Z | 2021-05-25T16:24:50.000Z | sitri/providers/contrib/ini.py | Elastoo-Team/sitri | d5470d9a37d3c944c0976793fce80a630e5625b1 | [
"MIT"
] | 1 | 2021-06-30T05:42:46.000Z | 2021-09-03T11:45:56.000Z | sitri/providers/contrib/ini.py | Elastoo-Team/sitri | d5470d9a37d3c944c0976793fce80a630e5625b1 | [
"MIT"
] | null | null | null | import configparser
import os
import typing
from sitri.providers.base import ConfigProvider
| 24.6 | 99 | 0.602365 |
81efee60c11f653a60ba95f712d8bc50076b39ce | 9,512 | py | Python | xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 532d3fdb031a0e5943cc492222299f94ad93d030 | [
"0BSD"
] | 3 | 2021-09-02T16:05:04.000Z | 2021-09-10T01:10:48.000Z | xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 532d3fdb031a0e5943cc492222299f94ad93d030 | [
"0BSD"
] | 7 | 2021-08-31T17:43:33.000Z | 2021-12-01T00:36:48.000Z | xpanse/api/assets/v2/ip_range.py | PaloAltoNetworks/cortex-xpanse-python-sdk | 532d3fdb031a0e5943cc492222299f94ad93d030 | [
"0BSD"
] | null | null | null | from typing import Any, Dict, List
from xpanse.const import V2_PREFIX
from xpanse.endpoint import ExEndpoint
from xpanse.iterator import ExResultIterator
| 43.633028 | 197 | 0.58505 |
81f0008b1bc4b02d44062640b174c7fe2264f9eb | 8,337 | py | Python | polus-color-pyramid-builder-plugin/src/main.py | blowekamp/polus-plugins | 87f9c36647b4cf95cf107cfede3a5a1d749415a5 | [
"MIT"
] | null | null | null | polus-color-pyramid-builder-plugin/src/main.py | blowekamp/polus-plugins | 87f9c36647b4cf95cf107cfede3a5a1d749415a5 | [
"MIT"
] | 1 | 2020-08-02T23:20:46.000Z | 2020-08-02T23:20:46.000Z | polus-color-pyramid-builder-plugin/src/main.py | gauharbains/polus-plugins | 5e4d1e33bb61d7619d3a76fb7c115d475628a909 | [
"MIT"
] | null | null | null | from bfio import BioReader
import argparse, logging
import numpy as np
from pathlib import Path
import filepattern, multiprocessing, utils
from concurrent.futures import ThreadPoolExecutor
COLORS = ['red',
'green',
'blue',
'yellow',
'magenta',
'cyan',
'gray']... | 41.272277 | 130 | 0.578026 |
81f05d1e9fcd11eb2b271dc4be5bcb49f68b18a0 | 1,175 | py | Python | kinetics/reaction_classes/general_rate_Law.py | wlawler45/kinetics | dd763ac27d7c0df8a9429419e911a22760ba5c5a | [
"MIT"
] | 13 | 2020-05-30T21:39:01.000Z | 2022-01-30T22:52:36.000Z | kinetics/reaction_classes/general_rate_Law.py | wlawler45/kinetics | dd763ac27d7c0df8a9429419e911a22760ba5c5a | [
"MIT"
] | 7 | 2019-06-15T13:16:31.000Z | 2021-12-09T11:16:53.000Z | kinetics/reaction_classes/general_rate_Law.py | willfinnigan/Kinetics | a607096f051c7721a7f2eac73a875366eaefef15 | [
"MIT"
] | 4 | 2019-09-23T09:46:11.000Z | 2022-03-18T20:30:03.000Z | from kinetics.reaction_classes.reaction_base_class import Reaction | 33.571429 | 97 | 0.655319 |
81f0785b99135f37da39fd3dcab4612074c70aed | 718 | py | Python | examples/03-interception/api.py | nomadsinteractive/migi | 7ebcd0d362f642b889c309c20618ff36f1448c28 | [
"Apache-2.0"
] | 3 | 2022-01-09T10:09:55.000Z | 2022-01-11T03:37:55.000Z | examples/03-interception/api.py | nomadsinteractive/migi | 7ebcd0d362f642b889c309c20618ff36f1448c28 | [
"Apache-2.0"
] | null | null | null | examples/03-interception/api.py | nomadsinteractive/migi | 7ebcd0d362f642b889c309c20618ff36f1448c28 | [
"Apache-2.0"
] | null | null | null | from ctypes import *
from migi.decorators import stdcall
_native_message_box_w.intercept()
| 32.636364 | 108 | 0.763231 |
81f105c666f6335423e163de23faa2cc06bc611a | 1,002 | py | Python | adapters/heiman/HS1RC.py | russdan/domoticz-zigbee2mqtt-plugin | d47895eab44bc87fc19ce151698d2afe9554fadc | [
"MIT"
] | 146 | 2018-09-19T11:38:48.000Z | 2022-03-21T11:54:12.000Z | adapters/heiman/HS1RC.py | russdan/domoticz-zigbee2mqtt-plugin | d47895eab44bc87fc19ce151698d2afe9554fadc | [
"MIT"
] | 783 | 2018-09-28T17:07:14.000Z | 2022-03-31T10:18:27.000Z | adapters/heiman/HS1RC.py | russdan/domoticz-zigbee2mqtt-plugin | d47895eab44bc87fc19ce151698d2afe9554fadc | [
"MIT"
] | 147 | 2018-09-25T18:39:51.000Z | 2022-03-01T19:31:27.000Z | from adapters.adapter_with_battery import AdapterWithBattery
from devices.switch.selector_switch import SelectorSwitch
| 38.538462 | 79 | 0.718563 |
81f14765ab4db0efd7fd86ef77889b6138ae6170 | 1,236 | py | Python | tennis_model_scraper/tennis_model_scraper/spiders/tennis_data_co_uk_spider.py | DrAndrey/tennis_model | f058becf41747111818599132b43b6147347a96c | [
"Apache-2.0"
] | null | null | null | tennis_model_scraper/tennis_model_scraper/spiders/tennis_data_co_uk_spider.py | DrAndrey/tennis_model | f058becf41747111818599132b43b6147347a96c | [
"Apache-2.0"
] | null | null | null | tennis_model_scraper/tennis_model_scraper/spiders/tennis_data_co_uk_spider.py | DrAndrey/tennis_model | f058becf41747111818599132b43b6147347a96c | [
"Apache-2.0"
] | 1 | 2019-01-21T14:59:34.000Z | 2019-01-21T14:59:34.000Z | # -*- coding: utf-8 -*-
"""
"""
import scrapy
from tennis_model.tennis_model_scraper.tennis_model_scraper import items
if __name__ == '__main__':
pass
| 31.692308 | 102 | 0.622977 |
81f14ce563d81df9f3673772cac00a024e237a10 | 160 | py | Python | aoc20211219b.py | BarnabyShearer/aoc | 4feb66c668b068f0f42ad99b916e80732eba5a2d | [
"MIT"
] | null | null | null | aoc20211219b.py | BarnabyShearer/aoc | 4feb66c668b068f0f42ad99b916e80732eba5a2d | [
"MIT"
] | null | null | null | aoc20211219b.py | BarnabyShearer/aoc | 4feb66c668b068f0f42ad99b916e80732eba5a2d | [
"MIT"
] | null | null | null | from aoc20211219a import *
| 22.857143 | 80 | 0.6625 |
81f32b032af68bf0f0fedb0195eda42a9e169769 | 2,739 | py | Python | pyhmy/rpc/request.py | difengJ/pyhmy | c0bdb7f53b56bf8e9f53d60da6fec61415cebf3f | [
"MIT"
] | 37 | 2020-05-24T20:09:33.000Z | 2022-03-28T00:59:00.000Z | pyhmy/rpc/request.py | economize/pyhmy | 668d7ef756e4fefe4621f435bb9a3e37cbeb82d9 | [
"MIT"
] | 12 | 2020-06-09T02:58:54.000Z | 2022-03-20T15:33:55.000Z | pyhmy/rpc/request.py | economize/pyhmy | 668d7ef756e4fefe4621f435bb9a3e37cbeb82d9 | [
"MIT"
] | 30 | 2020-03-14T03:58:24.000Z | 2022-02-19T18:19:00.000Z | import json
import requests
from .exceptions import (
RequestsError,
RequestsTimeoutError,
RPCError
)
_default_endpoint = 'http://localhost:9500'
_default_timeout = 30
def base_request(method, params=None, endpoint=_default_endpoint, timeout=_default_timeout) -> str:
"""
Basic RPC request
... | 23.410256 | 99 | 0.591457 |
81f3a40d44b3887a0748b1060fddbf244a3d66a8 | 3,430 | py | Python | gaze_api/scripts/vidPub.py | ajdroid/tobii_ros | b103cb772604458d9822911494af75057902ebb1 | [
"Unlicense"
] | null | null | null | gaze_api/scripts/vidPub.py | ajdroid/tobii_ros | b103cb772604458d9822911494af75057902ebb1 | [
"Unlicense"
] | null | null | null | gaze_api/scripts/vidPub.py | ajdroid/tobii_ros | b103cb772604458d9822911494af75057902ebb1 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import socket
import threading
import rospy
from publisher import *
import cv2
import imagezmq
import numpy as np
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
# setup socket to python3 video streamer
# Helper class implement... | 32.666667 | 108 | 0.634111 |
81f5675fd7ed78cac4c0fcf799fa59f89177494a | 3,179 | py | Python | LAImapping_SNAP/snappy_backscatterLAI.py | dipankar05/aws4agrisar | f3307f0a90668f4586baf61ac4a322be4d32ea6a | [
"MIT"
] | 5 | 2021-08-20T05:21:02.000Z | 2021-08-22T09:43:54.000Z | Chapter05/Sec56/LAImapping_SNAP/snappy_backscatterLAI.py | dipankar05/springer-cropradar | b1f2fddab1bb60adafd8c9aba6c34538eb356988 | [
"MIT"
] | null | null | null | Chapter05/Sec56/LAImapping_SNAP/snappy_backscatterLAI.py | dipankar05/springer-cropradar | b1f2fddab1bb60adafd8c9aba6c34538eb356988 | [
"MIT"
] | 1 | 2021-07-06T03:18:26.000Z | 2021-07-06T03:18:26.000Z | import sys
import numpy
import numpy as np
from snappy import Product
from snappy import ProductData
from snappy import ProductIO
from snappy import ProductUtils
from snappy import FlagCoding
##############
import csv
###############MSVR
from sklearn.svm import SVR
from sklearn.preprocessing import StandardScaler
fro... | 28.383929 | 83 | 0.654608 |
81f67189d5d5520037d53dd853b5b30e2b4a3514 | 23,097 | py | Python | test_fiona_issue383.py | thomasaarholt/fiona-wheels | 50ff76691ea4286052d552ffb67d83894742b00a | [
"MIT"
] | null | null | null | test_fiona_issue383.py | thomasaarholt/fiona-wheels | 50ff76691ea4286052d552ffb67d83894742b00a | [
"MIT"
] | null | null | null | test_fiona_issue383.py | thomasaarholt/fiona-wheels | 50ff76691ea4286052d552ffb67d83894742b00a | [
"MIT"
] | null | null | null | import fiona
d = {
"type": "Feature",
"id": "0",
"properties": {
"ADMINFORES": "99081600010343",
"REGION": "08",
"FORESTNUMB": "16",
"FORESTORGC": "0816",
"FORESTNAME": "El Yunque National Forest",
"GIS_ACRES": 55829.81,
"SHAPE_AREA": 0.0193062316937,... | 55.789855 | 61 | 0.50972 |
81f80e27b98817c9ba8d1f9fbc633ce2a51ca059 | 850 | py | Python | pre_commit_hooks/forbid_crlf.py | henryiii/pre-commit-hooks | 93b709d9ca27610518f5435fa9a51d98f7ada18d | [
"MIT"
] | 62 | 2015-07-26T06:20:40.000Z | 2022-03-26T21:05:59.000Z | pre_commit_hooks/forbid_crlf.py | henryiii/pre-commit-hooks | 93b709d9ca27610518f5435fa9a51d98f7ada18d | [
"MIT"
] | 25 | 2015-07-24T08:34:52.000Z | 2022-03-10T20:22:45.000Z | pre_commit_hooks/forbid_crlf.py | henryiii/pre-commit-hooks | 93b709d9ca27610518f5435fa9a51d98f7ada18d | [
"MIT"
] | 30 | 2015-07-18T17:40:25.000Z | 2022-02-10T19:55:53.000Z | from __future__ import print_function
import argparse, sys
from .utils import is_textfile
if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
| 32.692308 | 76 | 0.682353 |
81f8404fe9a704d334f1bcd998cf63672186b71f | 55 | py | Python | backend/code/start.py | socek/iep | 793e35ca5304eef7b7dacb5dd8d486622f497759 | [
"Apache-2.0"
] | null | null | null | backend/code/start.py | socek/iep | 793e35ca5304eef7b7dacb5dd8d486622f497759 | [
"Apache-2.0"
] | null | null | null | backend/code/start.py | socek/iep | 793e35ca5304eef7b7dacb5dd8d486622f497759 | [
"Apache-2.0"
] | null | null | null | if __name__ == "__main__":
print("Nothing yet...")
| 18.333333 | 27 | 0.6 |
81f8ba9bf744d6a257f9ade3faa2ce783ae335eb | 2,317 | py | Python | vantage6/server/model/organization.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 2 | 2020-10-19T08:59:08.000Z | 2022-03-07T10:30:21.000Z | vantage6/server/model/organization.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 67 | 2020-04-15T09:43:31.000Z | 2022-03-18T08:29:17.000Z | vantage6/server/model/organization.py | jaspersnel/vantage6-server | 88ad40d23cc36eaba57c170929f7ccdd0011720a | [
"Apache-2.0"
] | 2 | 2021-01-21T15:09:26.000Z | 2021-04-19T14:58:10.000Z | import base64
from sqlalchemy import Column, String, LargeBinary
from sqlalchemy.orm import relationship
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm.exc import NoResultFound
from vantage6.common.globals import STRING_ENCODING
from .base import Base, Database
| 30.893333 | 76 | 0.643073 |
81f8d698a3ddfe36ef13f1113078ded3a3fb3cf5 | 865 | py | Python | checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py | cclauss/checkov | 60a385fcaff1499cf00c2d0018575fe5ab71f556 | [
"Apache-2.0"
] | 1 | 2021-01-26T12:46:32.000Z | 2021-01-26T12:46:32.000Z | checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py | cclauss/checkov | 60a385fcaff1499cf00c2d0018575fe5ab71f556 | [
"Apache-2.0"
] | 1 | 2021-06-02T02:53:31.000Z | 2021-06-02T02:53:31.000Z | checkov/terraform/checks/resource/aws/EKSSecretsEncryption.py | cclauss/checkov | 60a385fcaff1499cf00c2d0018575fe5ab71f556 | [
"Apache-2.0"
] | null | null | null | from checkov.common.models.enums import CheckResult, CheckCategories
from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck
check = EKSSecretsEncryption()
| 39.318182 | 106 | 0.713295 |
81f9249901387ee78233d110ebdfbf78c9c6a8d9 | 46,176 | py | Python | analysis/models/nodes/analysis_node.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 5 | 2021-01-14T03:34:42.000Z | 2022-03-07T15:34:18.000Z | analysis/models/nodes/analysis_node.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | 551 | 2020-10-19T00:02:38.000Z | 2022-03-30T02:18:22.000Z | analysis/models/nodes/analysis_node.py | SACGF/variantgrid | 515195e2f03a0da3a3e5f2919d8e0431babfd9c9 | [
"RSA-MD"
] | null | null | null | """ AnalysisNode is the base class that all analysis nodes inherit from. """
import logging
import operator
from functools import reduce
from random import random
from time import time
from typing import Tuple, Sequence, List, Dict, Optional
from celery.canvas import Signature
from django.conf import settings
from dja... | 40.293194 | 128 | 0.652027 |
81f9aae1477fdf2636841fe260c82468ac2cde52 | 2,077 | py | Python | lbrc_flask/standard_views.py | LCBRU/lbrc_flask_ui | 35dea4581bbd92e9b53134342052b2ce02f903d4 | [
"MIT"
] | null | null | null | lbrc_flask/standard_views.py | LCBRU/lbrc_flask_ui | 35dea4581bbd92e9b53134342052b2ce02f903d4 | [
"MIT"
] | null | null | null | lbrc_flask/standard_views.py | LCBRU/lbrc_flask_ui | 35dea4581bbd92e9b53134342052b2ce02f903d4 | [
"MIT"
] | null | null | null | import os
import traceback
from flask import render_template, send_from_directory, current_app, g
from .emailing import email
| 32.968254 | 93 | 0.604718 |
81fb080ba80dc6a4245823877af0ad4179c7b39d | 87 | py | Python | tests/data/program_analysis/PyAST2CAST/import/test_import_3.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 17 | 2018-12-19T16:32:38.000Z | 2021-10-05T07:58:15.000Z | tests/data/program_analysis/PyAST2CAST/import/test_import_3.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 183 | 2018-12-20T17:03:01.000Z | 2022-02-23T22:21:42.000Z | tests/data/program_analysis/PyAST2CAST/import/test_import_3.py | rsulli55/automates | 1647a8eef85c4f03086a10fa72db3b547f1a0455 | [
"Apache-2.0"
] | 5 | 2019-01-04T22:37:49.000Z | 2022-01-19T17:34:16.000Z | # 'from ... import ...' statement
from sys import exit
main() | 12.428571 | 33 | 0.597701 |
81fb14b3776d226412fc52409bbe9c75a0f071a1 | 1,455 | py | Python | postmanparser/form_parameter.py | appknox/postmanparser | bef9581d1c81e111fe635e7ea851333e7b2261e5 | [
"Apache-2.0"
] | 5 | 2021-06-25T10:14:40.000Z | 2022-03-31T20:52:51.000Z | postmanparser/form_parameter.py | appknox/postmanparser | bef9581d1c81e111fe635e7ea851333e7b2261e5 | [
"Apache-2.0"
] | 4 | 2021-06-07T17:05:27.000Z | 2021-09-07T13:26:20.000Z | postmanparser/form_parameter.py | appknox/postmanparser | bef9581d1c81e111fe635e7ea851333e7b2261e5 | [
"Apache-2.0"
] | 2 | 2021-09-06T15:41:50.000Z | 2021-11-10T14:22:46.000Z | from dataclasses import dataclass
from typing import List
from typing import Union
from postmanparser.description import Description
from postmanparser.exceptions import InvalidObjectException
from postmanparser.exceptions import MissingRequiredFieldException
| 32.333333 | 81 | 0.620619 |
81fd3d016f2f7329e2389892dcfbd3f365d1769d | 844 | py | Python | pip-check.py | Urucas/pip-check | 777d8208bb89f566b95885a6711c773580a9c80f | [
"MIT"
] | null | null | null | pip-check.py | Urucas/pip-check | 777d8208bb89f566b95885a6711c773580a9c80f | [
"MIT"
] | null | null | null | pip-check.py | Urucas/pip-check | 777d8208bb89f566b95885a6711c773580a9c80f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import pip
import os
import sys
if __name__ == "__main__":
main()
| 23.444444 | 60 | 0.640995 |
81fda8338c93f1b3783533f708ac76a777187c33 | 36,148 | py | Python | hxl/scripts.py | HXLStandard/libhxl-python | 8d32d32c8165ec2ef4f7d970c30ca037fcc46b35 | [
"Unlicense"
] | 30 | 2015-06-02T22:06:22.000Z | 2020-07-30T08:43:40.000Z | hxl/scripts.py | HXLStandard/libhxl-python | 8d32d32c8165ec2ef4f7d970c30ca037fcc46b35 | [
"Unlicense"
] | 262 | 2015-01-27T16:43:28.000Z | 2022-03-28T15:33:53.000Z | hxl/scripts.py | HXLStandard/libhxl-python | 8d32d32c8165ec2ef4f7d970c30ca037fcc46b35 | [
"Unlicense"
] | 9 | 2015-01-20T06:06:28.000Z | 2020-07-13T23:54:03.000Z | """
Console scripts
David Megginson
April 2015
This is a big, ugly module to support the libhxl
console scripts, including (mainly) argument parsing.
License: Public Domain
Documentation: https://github.com/HXLStandard/libhxl-python/wiki
"""
from __future__ import print_function
import argparse, json, logging, os, ... | 30.478921 | 231 | 0.628389 |