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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ff6fd947f9d7fe716c3704fa2463950dd4e84bb7 | 402 | py | Python | setup.py | leandrocorreasantos/rapidapi_criptobot_br | 4102fed414708dae101c1d809c2723f7e27f272a | [
"MIT"
] | null | null | null | setup.py | leandrocorreasantos/rapidapi_criptobot_br | 4102fed414708dae101c1d809c2723f7e27f272a | [
"MIT"
] | null | null | null | setup.py | leandrocorreasantos/rapidapi_criptobot_br | 4102fed414708dae101c1d809c2723f7e27f272a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup
setup(
name='rapidapi-criptobot-br',
version='1.1.0',
packages=['api'],
description='class to access criptobot-br on rapidapi',
author='Leandro Correa dos Santos',
author_email='leandro.admo@gmail.com',
install_requires=['requests', 'json']... | 28.714286 | 77 | 0.706468 |
ff6fe730533e41ad87f3efe9f8ca1a45fdd6aee6 | 4,521 | py | Python | ch10_rnn/7_3_BiRNN.py | pythonProjectLearn/TensorflowLearning | 7a72ebea060ce0a0db9a00994e4725ec5d84c10a | [
"MIT"
] | null | null | null | ch10_rnn/7_3_BiRNN.py | pythonProjectLearn/TensorflowLearning | 7a72ebea060ce0a0db9a00994e4725ec5d84c10a | [
"MIT"
] | null | null | null | ch10_rnn/7_3_BiRNN.py | pythonProjectLearn/TensorflowLearning | 7a72ebea060ce0a0db9a00994e4725ec5d84c10a | [
"MIT"
] | null | null | null | #%%
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 35.598425 | 90 | 0.668436 |
ff7195eb6d1c0726820fcae2c2519958295ff036 | 551 | py | Python | server.py | YuliyaSinkevich/idealtrust | ba7a8dc5bfba9ac189318defce0d75335ccb2ba8 | [
"BSD-3-Clause"
] | null | null | null | server.py | YuliyaSinkevich/idealtrust | ba7a8dc5bfba9ac189318defce0d75335ccb2ba8 | [
"BSD-3-Clause"
] | null | null | null | server.py | YuliyaSinkevich/idealtrust | ba7a8dc5bfba9ac189318defce0d75335ccb2ba8 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
from app import app
import argparse
HOST = '127.0.0.1'
PORT = 8080
PROJECT_NAME = 'idealtrust'
if __name__ == '__main__':
parser = argparse.ArgumentParser(prog=PROJECT_NAME, usage='%(prog)s [options]')
parser.add_argument('--port', help='port (default: {0})'.format(PORT), default=PORT)
... | 34.4375 | 109 | 0.69873 |
ff759b9f072d1f9296066ec627c9c855987dabdc | 29 | py | Python | security/open_alchemy/__init__.py | open-alchemy/OpenAlchemyPackage | 8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b | [
"Apache-2.0"
] | null | null | null | security/open_alchemy/__init__.py | open-alchemy/OpenAlchemyPackage | 8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b | [
"Apache-2.0"
] | 79 | 2020-11-28T04:02:25.000Z | 2021-01-06T08:52:30.000Z | security/open_alchemy/__init__.py | open-alchemy/Package | 8bf0ed62ed7f6c5015f1bf1c4658dc353395fe9b | [
"Apache-2.0"
] | null | null | null | """Namespace placeholder."""
| 14.5 | 28 | 0.689655 |
ff768287172a736a44947e427a9380a3153897d7 | 3,133 | py | Python | source/StartWindow.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | null | null | null | source/StartWindow.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | null | null | null | source/StartWindow.py | FelixTheoret/Ergocycle | 0656e6cb43b535dd2f845420ad71742b1b85e412 | [
"MIT"
] | 2 | 2022-03-17T23:17:56.000Z | 2022-03-23T01:08:58.000Z | """
Created on Wed March 24 11:15:00 2022
@author: Frdrique Leclerc
"""
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QFont, QPixmap
import numpy
import datetime
#from Ergocycle.source.TestingWindow import TestingWindow
from TestingWindow import TestingWindow
from MainWindowStim imp... | 43.513889 | 114 | 0.685605 |
ff76c4694c2928b9db2d2f5242ae179057fe0c52 | 7,318 | py | Python | LinkShopSite/models/fileService.py | mikiec84/linkshop | 72959ceca0003be226edeca6496f915502831596 | [
"Apache-2.0"
] | 6 | 2017-07-18T15:28:33.000Z | 2020-03-03T14:45:45.000Z | LinkShopSite/models/fileService.py | mikiec84/linkshop | 72959ceca0003be226edeca6496f915502831596 | [
"Apache-2.0"
] | null | null | null | LinkShopSite/models/fileService.py | mikiec84/linkshop | 72959ceca0003be226edeca6496f915502831596 | [
"Apache-2.0"
] | 3 | 2017-09-09T00:36:48.000Z | 2020-03-03T14:45:49.000Z | import json
import os
import pymongo
'''
fileService.py
Author: Jeffrey Bigg
'''
mongo_client = pymongo.MongoClient()
#db = {}
'''
initialize
Takes a 'unique_id'entifier and sets up a database in MongoDB
and ensures that that database has collections associated with
the various file types that are stored.
'''
'... | 33.568807 | 134 | 0.633506 |
ff79ab339815dd3e4e7d425b1a4605c72add3e26 | 3,577 | py | Python | dlib/tools/python/test/test_vector.py | asm-jaime/facerec | e5e101b9f478168ead179e6b08b5605ea7607da2 | [
"CC0-1.0"
] | 11,719 | 2015-01-03T22:38:57.000Z | 2022-03-30T21:45:04.000Z | tools/python/test/test_vector.py | KiLJ4EdeN/dlib | eb1f08ce6ab3ca6f9d10425d899103de3c0df56c | [
"BSL-1.0"
] | 2,518 | 2015-01-04T04:38:06.000Z | 2022-03-31T11:55:43.000Z | tools/python/test/test_vector.py | KiLJ4EdeN/dlib | eb1f08ce6ab3ca6f9d10425d899103de3c0df56c | [
"BSL-1.0"
] | 3,308 | 2015-01-01T14:34:16.000Z | 2022-03-31T07:20:07.000Z | from dlib import vector, vectors, vectorss, dot
try:
import cPickle as pickle # Use cPickle on Python 2.7
except ImportError:
import pickle
from pytest import raises
| 20.918129 | 66 | 0.587364 |
ff7a35b774cb2375cae41358c19078d6b9f8e8d1 | 49,053 | py | Python | superresolution_stage/models/archs/sftmd.py | xian1234/SRBuildSeg | db16ae2aba6aaa336a0b612446c80b4546b96a1f | [
"MIT"
] | 9 | 2021-04-06T12:46:47.000Z | 2022-03-26T09:10:11.000Z | superresolution_stage/models/archs/sftmd.py | xian1234/SRBuildSeg | db16ae2aba6aaa336a0b612446c80b4546b96a1f | [
"MIT"
] | null | null | null | superresolution_stage/models/archs/sftmd.py | xian1234/SRBuildSeg | db16ae2aba6aaa336a0b612446c80b4546b96a1f | [
"MIT"
] | null | null | null | """ Architecture for SFTMD """
import functools
import torch
import torch.nn as nn
import torch.nn.functional as F
import models.archs.arch_util as arch_util
import torch.nn.utils.spectral_norm as spectral_norm
| 45.251845 | 110 | 0.572687 |
ff7b38d79dec939d19abc7521dcac28b5a65f30d | 3,351 | py | Python | modals/data_util.py | jamestszhim/modals | 58f9966213634a6226fdc451990e9e8ce4831154 | [
"MIT"
] | 29 | 2021-03-02T20:37:08.000Z | 2022-03-28T07:53:49.000Z | modals/data_util.py | jamestszhim/modals | 58f9966213634a6226fdc451990e9e8ce4831154 | [
"MIT"
] | 1 | 2021-07-12T15:24:29.000Z | 2021-07-12T16:04:59.000Z | modals/data_util.py | jamestszhim/modals | 58f9966213634a6226fdc451990e9e8ce4831154 | [
"MIT"
] | 3 | 2021-06-22T08:55:45.000Z | 2022-03-06T07:41:29.000Z | import copy
import os
import random
from pathlib import Path
import dill
import torch
import torchtext.data as data
import torchtext.datasets as datasets
from torch.utils.data import Sampler
from torchtext.vocab import GloVe
from modals.setup import EMB_DIR
| 33.178218 | 101 | 0.661295 |
ff7e68a90fd42c1fc91158dc7301bfaa77695ec1 | 1,089 | py | Python | setup.py | octopart/beaker_extensions | d4a0306d1c6c428dd919b64fc951d4304050c37b | [
"MIT"
] | 1 | 2016-01-01T02:03:42.000Z | 2016-01-01T02:03:42.000Z | setup.py | octopart/beaker_extensions | d4a0306d1c6c428dd919b64fc951d4304050c37b | [
"MIT"
] | null | null | null | setup.py | octopart/beaker_extensions | d4a0306d1c6c428dd919b64fc951d4304050c37b | [
"MIT"
] | 1 | 2015-11-10T06:50:36.000Z | 2015-11-10T06:50:36.000Z | from setuptools import setup, find_packages
import sys, os
version = '11octo'
setup(name='beaker_extensions',
version=version,
description="Beaker extensions for additional back-end stores.",
long_description="""\
""",
classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=li... | 32.029412 | 95 | 0.663912 |
ff83e388de90ffa2ddc5c91abc3eff56e6220ae3 | 1,170 | py | Python | pyvims/planets/__type__.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 4 | 2019-09-16T15:50:22.000Z | 2021-04-08T15:32:48.000Z | pyvims/planets/__type__.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 3 | 2018-05-04T09:28:24.000Z | 2018-12-03T09:00:31.000Z | pyvims/planets/__type__.py | seignovert/pyvims | a70b5b9b8bc5c37fa43b7db4d15407f312a31849 | [
"BSD-3-Clause"
] | 1 | 2020-10-12T15:14:17.000Z | 2020-10-12T15:14:17.000Z | """Abstract planet type."""
| 22.941176 | 73 | 0.513675 |
ff856a8948ab1f46267e26568f1e8292a52d0cff | 15,718 | py | Python | core/models/sparse_bp_resnet.py | JeremieMelo/L2ight | 67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf | [
"MIT"
] | 7 | 2021-11-02T16:21:47.000Z | 2022-03-09T06:01:25.000Z | core/models/sparse_bp_resnet.py | JeremieMelo/L2ight | 67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf | [
"MIT"
] | null | null | null | core/models/sparse_bp_resnet.py | JeremieMelo/L2ight | 67f93b66ddf8bb5a365834b84ed6acdbc4f48eaf | [
"MIT"
] | null | null | null | """
Description:
Author: Jiaqi Gu (jqgu@utexas.edu)
Date: 2021-10-24 16:24:50
LastEditors: Jiaqi Gu (jqgu@utexas.edu)
LastEditTime: 2021-10-24 16:24:50
"""
from typing import Callable, Dict, List, Optional, Tuple, Union
import numpy as np
import torch
import torch.nn.functional as F
from pyutils.general import logger
... | 27.623902 | 116 | 0.517814 |
ff876a86d9b2e921d22ed00df25042c1865eb9da | 2,387 | py | Python | src/discord_utils.py | pocc/bga_discord | 51fdf1b9c7d7d39abd6628f2d79b5b217c3e85b2 | [
"Apache-2.0"
] | 8 | 2020-09-25T22:57:50.000Z | 2021-11-03T14:49:10.000Z | src/discord_utils.py | pocc/bga_discord | 51fdf1b9c7d7d39abd6628f2d79b5b217c3e85b2 | [
"Apache-2.0"
] | 40 | 2020-10-20T01:12:46.000Z | 2021-05-24T23:22:22.000Z | src/discord_utils.py | pocc/bga_discord | 51fdf1b9c7d7d39abd6628f2d79b5b217c3e85b2 | [
"Apache-2.0"
] | 2 | 2020-10-18T18:56:05.000Z | 2021-10-19T05:23:47.000Z | """Utils that require discord."""
import logging
from logging.handlers import RotatingFileHandler
import discord
LOG_FILENAME = "errs"
logger = logging.getLogger(__name__)
handler = RotatingFileHandler(LOG_FILENAME, maxBytes=10000000, backupCount=0)
formatter = logging.Formatter("%(asctime)s | %(name)s | %(levelname)... | 36.723077 | 166 | 0.697528 |
ff882c001970e1862001ff127a71976cb7552386 | 1,765 | py | Python | crackers/online_hash_cracker.py | MomboteQ/HASH | 1dece78fdf8fe21ab20906dc61f6e213d09c592b | [
"MIT"
] | null | null | null | crackers/online_hash_cracker.py | MomboteQ/HASH | 1dece78fdf8fe21ab20906dc61f6e213d09c592b | [
"MIT"
] | 1 | 2022-03-28T16:57:27.000Z | 2022-03-28T16:57:27.000Z | crackers/online_hash_cracker.py | MomboteQ/HASH | 1dece78fdf8fe21ab20906dc61f6e213d09c592b | [
"MIT"
] | null | null | null | ###################################################
# #
# Name : Online Hash Cracker (HASH++) #
# Created by : MomboteQ #
# Version : 1.0 #
# #
########... | 30.431034 | 147 | 0.505949 |
ff88e0f5ccecc3c701f512768bb897a2dfbe68cb | 1,035 | py | Python | sis-api/test/bdd/steps/membership.serialization.py | maxbilbow/7054CEM-sis | 1c5067c9afc38e340fcce046048f8ae21d267365 | [
"MIT"
] | null | null | null | sis-api/test/bdd/steps/membership.serialization.py | maxbilbow/7054CEM-sis | 1c5067c9afc38e340fcce046048f8ae21d267365 | [
"MIT"
] | null | null | null | sis-api/test/bdd/steps/membership.serialization.py | maxbilbow/7054CEM-sis | 1c5067c9afc38e340fcce046048f8ae21d267365 | [
"MIT"
] | null | null | null | from datetime import date
from behave import *
from core.model import to_dict
from core.model.membership import Membership
from core.model.membership_type import MembershipType
from core.utils.serialization import serialize
use_step_matcher("re")
| 27.236842 | 118 | 0.72657 |
ff8936a87c1d6aa51ae7c9ad6e4ebecebdf9df3e | 317 | py | Python | DPGAnalysis/SiStripTools/python/poolSource_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DPGAnalysis/SiStripTools/python/poolSource_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DPGAnalysis/SiStripTools/python/poolSource_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(),
# skipBadFiles = cms.untracked.bool(True),
inputCommands = cms.untracked.vstring("keep *", "drop *_MEtoEDMConverter_*_*")
)
| 35.222222 | 98 | 0.564669 |
ff8987904a9a228b1a63aba1997b83073f7d2bbf | 10,744 | py | Python | orange3/Orange/preprocess/impute.py | rgschmitz1/BioDepot-workflow-builder | f74d904eeaf91ec52ec9b703d9fb38e9064e5a66 | [
"MIT"
] | 54 | 2017-01-08T17:21:49.000Z | 2021-11-02T08:46:07.000Z | orange3/Orange/preprocess/impute.py | Synthia-3/BioDepot-workflow-builder | 4ee93abe2d79465755e82a145af3b6a6e1e79fd4 | [
"MIT"
] | 22 | 2017-03-28T06:03:14.000Z | 2021-07-28T05:43:55.000Z | orange3/Orange/preprocess/impute.py | Synthia-3/BioDepot-workflow-builder | 4ee93abe2d79465755e82a145af3b6a6e1e79fd4 | [
"MIT"
] | 21 | 2017-01-26T21:12:09.000Z | 2022-01-31T21:34:59.000Z | import numpy as np
import scipy.sparse as sp
import Orange.data
from Orange.statistics import distribution, basic_stats
from Orange.util import Reprable
from .transformation import Transformation, Lookup
__all__ = [
"ReplaceUnknowns",
"Average",
"DoNotImpute",
"DropInstances",
"Model",
"AsValu... | 29.844444 | 86 | 0.605454 |
ff8a930c6b87ec6cefccbb51fe911fbb227348dc | 5,488 | py | Python | aiida_vasp/workchains/verify.py | muhrin/aiida-vasp | 641fdc2ccd40bdd041e59af1fa3e1dcf9b037415 | [
"MIT"
] | null | null | null | aiida_vasp/workchains/verify.py | muhrin/aiida-vasp | 641fdc2ccd40bdd041e59af1fa3e1dcf9b037415 | [
"MIT"
] | null | null | null | aiida_vasp/workchains/verify.py | muhrin/aiida-vasp | 641fdc2ccd40bdd041e59af1fa3e1dcf9b037415 | [
"MIT"
] | null | null | null | """
Verify workchain.
-----------------
Indented to be used to verify a calculation, perform corrections in inputs files and
restart depending on physical principles etc. E.g. issues that are outside the Calculators awereness,
or not currently checked in it. This workchain does currently nothing.
"""
# pylint: disabl... | 39.482014 | 129 | 0.664723 |
ff8af24bea3735f79c333dd490eca9b96b47bda2 | 113 | py | Python | cytominer_eval/operations/__init__.py | hillsbury/cytominer-eval | 56bd9e545d4ce5dea8c2d3897024a4eb241d06db | [
"BSD-3-Clause"
] | null | null | null | cytominer_eval/operations/__init__.py | hillsbury/cytominer-eval | 56bd9e545d4ce5dea8c2d3897024a4eb241d06db | [
"BSD-3-Clause"
] | null | null | null | cytominer_eval/operations/__init__.py | hillsbury/cytominer-eval | 56bd9e545d4ce5dea8c2d3897024a4eb241d06db | [
"BSD-3-Clause"
] | null | null | null | from .percent_strong import percent_strong
from .precision_recall import precision_recall
from .grit import grit
| 28.25 | 46 | 0.867257 |
ff8c823fffa1bf5ff551023b0ae5196140f382b1 | 3,086 | py | Python | storm_analysis/spliner/find_peaks_std.py | bintulab/storm-analysis | 71ae493cbd17ddb97938d0ae2032d97a0eaa76b2 | [
"CNRI-Python"
] | null | null | null | storm_analysis/spliner/find_peaks_std.py | bintulab/storm-analysis | 71ae493cbd17ddb97938d0ae2032d97a0eaa76b2 | [
"CNRI-Python"
] | null | null | null | storm_analysis/spliner/find_peaks_std.py | bintulab/storm-analysis | 71ae493cbd17ddb97938d0ae2032d97a0eaa76b2 | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python
"""
Cubic spline peak finder.
Hazen 03/16
"""
import pickle
import numpy
import tifffile
import storm_analysis.sa_library.analysis_io as analysisIO
import storm_analysis.sa_library.fitting as fitting
import storm_analysis.sa_library.ia_utilities_c as utilC
import storm_analysis.sa_library.matc... | 32.145833 | 112 | 0.63545 |
ff8d466cb78def77047b6716960d07d37e514d93 | 3,805 | py | Python | server02.py | timgates42/csdesign | dd63c304e1b16ecd65bea072f9360986993df845 | [
"MIT"
] | 116 | 2015-01-07T08:39:32.000Z | 2021-12-21T13:07:53.000Z | server02.py | afcarl/csdesign | dd63c304e1b16ecd65bea072f9360986993df845 | [
"MIT"
] | null | null | null | server02.py | afcarl/csdesign | dd63c304e1b16ecd65bea072f9360986993df845 | [
"MIT"
] | 28 | 2015-01-07T07:27:16.000Z | 2021-07-17T22:26:37.000Z | ###############################################################################
#
# Copyright (c) 2012 Ruslan Spivak
#
# 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, inc... | 34.279279 | 79 | 0.59343 |
ff8ffce3211e8d216d8eb1a826f3e6a2b3bf5022 | 110 | py | Python | synth/__init__.py | lummax/switching-lattice-synth | 47cf9e64c900cb179c392b46a392049e99dfebab | [
"MIT"
] | null | null | null | synth/__init__.py | lummax/switching-lattice-synth | 47cf9e64c900cb179c392b46a392049e99dfebab | [
"MIT"
] | null | null | null | synth/__init__.py | lummax/switching-lattice-synth | 47cf9e64c900cb179c392b46a392049e99dfebab | [
"MIT"
] | null | null | null | import synth.timer
from synth.base import Function
from synth.dp_construction import DualProductConstruction
| 22 | 57 | 0.872727 |
ff90cad1c5012214e02b97154f23b7b726789505 | 628 | py | Python | ipsc/2016/g.py | csferng/competitive-programming | f7ae710392c0fd606f735df6efcfca5e8fbd3501 | [
"MIT"
] | null | null | null | ipsc/2016/g.py | csferng/competitive-programming | f7ae710392c0fd606f735df6efcfca5e8fbd3501 | [
"MIT"
] | null | null | null | ipsc/2016/g.py | csferng/competitive-programming | f7ae710392c0fd606f735df6efcfca5e8fbd3501 | [
"MIT"
] | null | null | null | import collections
import itertools
import re
import sys
read_str = lambda : sys.stdin.readline().strip()
read_str_list = lambda : sys.stdin.readline().strip().split()
read_int = lambda : int(read_str())
read_int_list = lambda : map(int, read_str_list())
read_float = lambda : float(read_str())
read_float_list = lambda... | 21.655172 | 61 | 0.659236 |
ff91159e63cb1bbf4e041487fffe2ea77828c464 | 1,051 | py | Python | book/sunglasses.py | gcvalderrama/python_foundations | 5ac045085dcc6c906729b481f833fa6a7889bd19 | [
"MIT"
] | null | null | null | book/sunglasses.py | gcvalderrama/python_foundations | 5ac045085dcc6c906729b481f833fa6a7889bd19 | [
"MIT"
] | null | null | null | book/sunglasses.py | gcvalderrama/python_foundations | 5ac045085dcc6c906729b481f833fa6a7889bd19 | [
"MIT"
] | null | null | null | import unittest
| 25.634146 | 62 | 0.385347 |
ff936e93a7e1cf7cfc3a635b054cc4fd8c3b5c44 | 4,126 | py | Python | TakeBlipPosTagger/mlflowlogger.py | guireis1/testpos | efe22724d4c3512dd5336dc9788704793793122d | [
"MIT"
] | null | null | null | TakeBlipPosTagger/mlflowlogger.py | guireis1/testpos | efe22724d4c3512dd5336dc9788704793793122d | [
"MIT"
] | null | null | null | TakeBlipPosTagger/mlflowlogger.py | guireis1/testpos | efe22724d4c3512dd5336dc9788704793793122d | [
"MIT"
] | null | null | null | import os
import psutil
import mlflow
import seaborn as sns
import matplotlib.pyplot as plt
def save_confusion_matrix_from_tensor(confusion_matrix, labels,
current_epoch, save_dir):
"""Receive a confusion matrix from tensor, generate a image
with seaborn and save as .png... | 34.383333 | 83 | 0.646631 |
ff948cf51a93bea99afde69a0e455b73c180d9a7 | 2,219 | py | Python | scripts/camera_module/camera_module.py | dos-group/gardening-adventure | 1d5eb99dedd3426b6451a17c1a3b62a5fd767d72 | [
"Apache-2.0"
] | 5 | 2019-11-08T17:11:54.000Z | 2020-04-19T17:32:07.000Z | scripts/camera_module/camera_module.py | dos-group/gardening-adventure | 1d5eb99dedd3426b6451a17c1a3b62a5fd767d72 | [
"Apache-2.0"
] | 48 | 2019-11-07T19:39:49.000Z | 2020-03-27T20:44:51.000Z | scripts/camera_module/camera_module.py | citlab/gardening-adventure | 1d5eb99dedd3426b6451a17c1a3b62a5fd767d72 | [
"Apache-2.0"
] | 3 | 2019-11-11T18:58:51.000Z | 2020-09-30T20:47:52.000Z | from argparse import ArgumentParser
from picamera import PiCamera
from time import sleep
from pathlib import Path
import os
if __name__ == '__main__':
parser = ArgumentParser()
parser.add_argument('--resolution',
dest='res',
default='1920-1080',
... | 28.818182 | 119 | 0.587652 |
ff95ea9c8a58457600ab644dcc9310c524b6fa2e | 11,719 | py | Python | nova/scheduler/solvers/pluggable_hosts_pulp_solver.py | rishabh1jain1/schedwise | b8c56362b11767cc583ea96b42dc28c408bb76cd | [
"Apache-2.0"
] | null | null | null | nova/scheduler/solvers/pluggable_hosts_pulp_solver.py | rishabh1jain1/schedwise | b8c56362b11767cc583ea96b42dc28c408bb76cd | [
"Apache-2.0"
] | 5 | 2020-06-05T17:58:28.000Z | 2022-02-11T03:39:35.000Z | nova/scheduler/solvers/pluggable_hosts_pulp_solver.py | rishabh1jain1/schedwise | b8c56362b11767cc583ea96b42dc28c408bb76cd | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... | 49.65678 | 138 | 0.631112 |
ff96d3a3b7aacb1f5da4484d7bd890372ab32f78 | 1,092 | py | Python | run/gen-explicit-fee-schedules.py | three-Vs/hedera-services | 3e3c6e1815ecb545d5a65e5ff4d87c46d365112e | [
"Apache-2.0"
] | 164 | 2020-08-06T17:02:44.000Z | 2022-03-30T15:56:55.000Z | run/gen-explicit-fee-schedules.py | three-Vs/hedera-services | 3e3c6e1815ecb545d5a65e5ff4d87c46d365112e | [
"Apache-2.0"
] | 2,439 | 2020-08-06T17:06:15.000Z | 2022-03-31T23:38:38.000Z | run/gen-explicit-fee-schedules.py | shemnon/hedera-services | 042d0763738bfc839ecea81c38094fe9181e803b | [
"Apache-2.0"
] | 51 | 2020-08-06T18:53:48.000Z | 2022-02-03T13:12:37.000Z | ###
# A script to convert the Services-consumable feeSchedules.json
# into the "typed" format used by the public pricing calculator.
###
import json
providers = ['nodedata', 'networkdata', 'servicedata']
typed_schedules = {}
with open('hedera-node/src/main/resources/feeSchedules.json', 'r') as fin:
cur_and_nex... | 36.4 | 74 | 0.667582 |
ff97c39597a36001944f8a9c37b2bf4f5888de12 | 839 | py | Python | secparse/config.py | clwatkins/sec_edgar_parser | 6ccf74eae14407e64ad033bb74d422d7f1c91495 | [
"MIT"
] | 8 | 2019-05-18T21:11:18.000Z | 2021-05-22T02:04:03.000Z | secparse/config.py | clwatkins/sec_edgar_parser | 6ccf74eae14407e64ad033bb74d422d7f1c91495 | [
"MIT"
] | null | null | null | secparse/config.py | clwatkins/sec_edgar_parser | 6ccf74eae14407e64ad033bb74d422d7f1c91495 | [
"MIT"
] | 3 | 2020-06-24T13:47:15.000Z | 2021-03-26T14:20:15.000Z | from pathlib import Path
import requests_oauthlib
# Define where filing data will be stored -- defaults to folder within user's home directory
ROOT_DIR = Path.home().joinpath("sec_parse_data")
DB_FILE_LOC = ROOT_DIR.joinpath("sec_parse_db.sqlite3")
# Yahoo API key (some finance tables require authorisation)
AUTH = re... | 33.56 | 99 | 0.789035 |
ff99f867f26c3a4bc29359318147a0a261c378c3 | 5,157 | py | Python | howdy/core/core_admin.py | tanimislam/plexstuff | 811dd504e8464df1270a27084ef465c15299b00a | [
"BSD-2-Clause"
] | 9 | 2019-11-10T16:41:24.000Z | 2020-06-17T12:35:42.000Z | howdy/core/core_admin.py | tanimislam/plexstuff | 811dd504e8464df1270a27084ef465c15299b00a | [
"BSD-2-Clause"
] | 2 | 2020-06-27T15:52:22.000Z | 2020-07-29T20:36:07.000Z | howdy/core/core_admin.py | tanimislam/howdy | 81fbe8b5d6a8320f4279d3d29c93405540eaba28 | [
"BSD-2-Clause"
] | 2 | 2019-10-28T10:03:06.000Z | 2020-05-22T18:32:40.000Z | import requests, os, sys, numpy, requests
from plexapi.server import PlexServer
from tqdm import tqdm
#
from howdy.core import core, return_error_raw
def get_tautulli_apikey( username, password, endpoint ):
"""
Gets the tautulli API key with provided Tautulli_ username and password.
:param str usernam... | 42.975 | 221 | 0.643397 |
ff9a9ebc21d387b55d1ddf8725dbdb3f48e0a128 | 4,756 | py | Python | halolib/models.py | yoramk2/halolib | c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29 | [
"MIT"
] | 2 | 2020-07-22T13:28:47.000Z | 2021-02-08T04:38:06.000Z | halolib/models.py | yoramk2/halolib | c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29 | [
"MIT"
] | 2 | 2021-06-10T20:59:03.000Z | 2021-11-15T17:47:59.000Z | halolib/models.py | yoramk2/halolib | c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29 | [
"MIT"
] | 1 | 2021-02-08T04:38:09.000Z | 2021-02-08T04:38:09.000Z | from __future__ import print_function
import datetime
import hashlib
import logging
from abc import ABCMeta
from pynamodb.attributes import UnicodeAttribute
from pynamodb.models import Model
from halolib.exceptions import DbIdemError
from halolib.logs import log_json
from .settingsx import settingsx
settings = sett... | 33.971429 | 116 | 0.631623 |
ff9c87881ced0c2a95f22bc798cffd2d0381f7e0 | 721 | py | Python | cblue/data/__init__.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 293 | 2021-06-07T06:04:37.000Z | 2022-03-28T09:38:28.000Z | cblue/data/__init__.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 6 | 2021-06-11T09:50:15.000Z | 2022-03-18T07:33:56.000Z | cblue/data/__init__.py | dfhby0/CBLUE | 36bdb52f17c4379d4a5f8b407890ba294017b5e2 | [
"Apache-2.0"
] | 61 | 2021-06-07T06:38:42.000Z | 2022-03-30T07:16:46.000Z | from .data_process import EEDataProcessor, REDataProcessor, ERDataProcessor, CTCDataProcessor, \
CDNDataProcessor, STSDataProcessor, QQRDataProcessor, QICDataProcessor, QTRDataProcessor
from .dataset import EEDataset, REDataset, ERDataset, CTCDataset, CDNDataset, STSDataset, \
QQRDataset, QICDataset, QTRDataset... | 48.066667 | 96 | 0.696255 |
ff9cd6711e3c12c38e5a0b8a5852f05f78df64e8 | 3,315 | py | Python | write_input_files.py | jensengroup/take_elementary_step | 63dd4caecd54a2458cad72352221e61102a455b2 | [
"MIT"
] | 4 | 2018-03-05T07:58:04.000Z | 2019-10-24T20:03:25.000Z | write_input_files.py | jensengroup/take_elementary_step | 63dd4caecd54a2458cad72352221e61102a455b2 | [
"MIT"
] | 2 | 2018-03-05T11:29:31.000Z | 2018-08-09T12:29:57.000Z | write_input_files.py | jensengroup/take_elementary_step | 63dd4caecd54a2458cad72352221e61102a455b2 | [
"MIT"
] | 6 | 2018-08-02T12:29:21.000Z | 2021-04-24T10:29:02.000Z | from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import rdMolDescriptors
# GFN-xTB and MOPAC automatically switches to UHF if the number of electrons is odd, so there is no need
# to specify the multiplicity.
# If you need to do that for another program you can compute the number of electrons by
... | 38.103448 | 104 | 0.645551 |
ff9dcee27fd788e74a17caecd46d9f95eb475438 | 1,008 | py | Python | djapi/authtoken/models.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | 12 | 2017-10-23T10:52:30.000Z | 2021-09-06T19:08:57.000Z | djapi/authtoken/models.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | null | null | null | djapi/authtoken/models.py | Suor/djapi | 929b266d01aacc49f805c3ac7eec55766634babe | [
"BSD-2-Clause"
] | null | null | null | import binascii
import os
from django.conf import settings
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
| 28 | 69 | 0.686508 |
ff9f80880a91fdc6467f39d9797eb0e52dc6a441 | 2,035 | py | Python | app/lib/docker_config.py | joshburt/com.shapeandshare.therowantree.client.api | 6f17f469482a91071bedb7eedd158539cebe5639 | [
"MIT"
] | null | null | null | app/lib/docker_config.py | joshburt/com.shapeandshare.therowantree.client.api | 6f17f469482a91071bedb7eedd158539cebe5639 | [
"MIT"
] | null | null | null | app/lib/docker_config.py | joshburt/com.shapeandshare.therowantree.client.api | 6f17f469482a91071bedb7eedd158539cebe5639 | [
"MIT"
] | null | null | null | # Allow over-riding the defaults with non-secure ENV variables, or secure docker secrets
import therowantree_config as default_config
import os
###############################################################################
# Direcrtory Options
########################################################################... | 37 | 88 | 0.611794 |
ff9f8f871223cbf21633f777d013d3d15bbc6700 | 66 | py | Python | run/__init__.py | ealcobaca/optimizer_pool | e93ac72c1547bc3813a0edf822d5fd453f22ce49 | [
"MIT"
] | 1 | 2022-03-10T21:46:07.000Z | 2022-03-10T21:46:07.000Z | run/__init__.py | ealcobaca/optimizer_pool | e93ac72c1547bc3813a0edf822d5fd453f22ce49 | [
"MIT"
] | null | null | null | run/__init__.py | ealcobaca/optimizer_pool | e93ac72c1547bc3813a0edf822d5fd453f22ce49 | [
"MIT"
] | 1 | 2022-03-10T21:46:09.000Z | 2022-03-10T21:46:09.000Z | from run.run_real import Run_real
from run.run_PSO import Run_PSO
| 22 | 33 | 0.848485 |
ffa09b777a2b94bab6e5aebe14cc717ea0c9bb89 | 2,715 | py | Python | scripts/util/test_cloudlab.py | neilgiri/hotstuff | d6dfb482706393d725225736e63b5e5d7aa99d2b | [
"MIT"
] | 2 | 2020-12-03T20:50:16.000Z | 2021-03-24T02:53:59.000Z | scripts/util/test_cloudlab.py | neilgiri/hotstuff | d6dfb482706393d725225736e63b5e5d7aa99d2b | [
"MIT"
] | null | null | null | scripts/util/test_cloudlab.py | neilgiri/hotstuff | d6dfb482706393d725225736e63b5e5d7aa99d2b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import cloudlab_util as cl
from geni.rspec import pg as rspec
from geni.util import loadContext
#cl.print_slivers(experiment_name = 'testing131', cloudlab_user='giridhn',
# cloudlab_password='TeFxy^FVv8Z5', cloudlab_project='Consensus',
# cloudlab_cert_path='... | 35.25974 | 148 | 0.613628 |
ffa0bb48d7404e573b6c9e5fa52446d5003efd93 | 99 | py | Python | cdp_scrapers/instances/__init__.py | dhanya-shraddha/cdp-scrapers | 7e0d841a2a64963405a075cd91985d24e3dedfa6 | [
"MIT"
] | null | null | null | cdp_scrapers/instances/__init__.py | dhanya-shraddha/cdp-scrapers | 7e0d841a2a64963405a075cd91985d24e3dedfa6 | [
"MIT"
] | 1 | 2021-10-01T05:27:21.000Z | 2021-10-01T05:27:21.000Z | cdp_scrapers/instances/__init__.py | dhanya-shraddha/cdp-scrapers | 7e0d841a2a64963405a075cd91985d24e3dedfa6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Individual scratchpad and maybe up-to-date CDP instance scrapers.
"""
| 16.5 | 65 | 0.656566 |
ffa18167feceb603d67181577f1faa242f575b75 | 3,195 | py | Python | src/lager/core.py | jessekrubin/lager | 942d8b158495b5d782a159f36ef801abb972a87f | [
"BSD-2-Clause"
] | 1 | 2020-05-14T03:51:40.000Z | 2020-05-14T03:51:40.000Z | src/lager/core.py | dynamic-graphics-inc/lager | 942d8b158495b5d782a159f36ef801abb972a87f | [
"MIT"
] | 6 | 2020-05-02T18:20:18.000Z | 2020-06-16T23:31:25.000Z | src/lager/core.py | jessekrubin/lager | 942d8b158495b5d782a159f36ef801abb972a87f | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Python lager brewed by a loguru"""
import asyncio
from functools import wraps
from time import time
from typing import Union
from loguru import logger
from lager.const import LOG_LEVELS
__all__ = ['loglevel', 'flog', 'handlers', 'logger', 'log', 'LOG', 'ln', 'LN']
logger.t = logger.trac... | 25.357143 | 78 | 0.489202 |
ffa241b51a436f0dcd5e0dcb3336517e8a723091 | 1,626 | py | Python | Tests/Plot/LamHole/test_Hole_54_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | 2 | 2020-06-29T13:48:37.000Z | 2021-06-15T07:34:05.000Z | Tests/Plot/LamHole/test_Hole_54_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | Tests/Plot/LamHole/test_Hole_54_plot.py | PMSMcqut/pyleecan-of-manatee | 3efa06e8bc53c81a3e35457c108290e1d9ec1373 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@date Created on Wed Jan 13 17:45:15 2016
@copyright (C) 2015-2016 EOMYS ENGINEERING.
@author pierre_b
"""
from os.path import join
from unittest import TestCase
import matplotlib.pyplot as plt
from numpy import pi
from pyleecan.Classes.Frame import Frame
from pyleecan.Classes.LamHole imp... | 30.679245 | 73 | 0.675892 |
ffa3b283be454bc2ceeae7e1c5b1524c04eaba07 | 5,694 | py | Python | invenio_rdm_records/config.py | kprzerwa/invenio-rdm-records | d5919b5f1b5f453074fcb2b63929a60bfcb240ed | [
"MIT"
] | null | null | null | invenio_rdm_records/config.py | kprzerwa/invenio-rdm-records | d5919b5f1b5f453074fcb2b63929a60bfcb240ed | [
"MIT"
] | null | null | null | invenio_rdm_records/config.py | kprzerwa/invenio-rdm-records | d5919b5f1b5f453074fcb2b63929a60bfcb240ed | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2019 CERN.
# Copyright (C) 2019 Northwestern University.
#
# Invenio-RDM-Records is free software; you can redistribute it and/or modify
# it under the terms of the MIT License; see LICENSE file for more details.
"""DataCite-based data model for Invenio."""
from .utils import... | 25.19469 | 106 | 0.619073 |
ffa5af6affd31cfe1fe0ccc78cba42510b4fe8d2 | 521 | py | Python | mysite/addOne.py | xinkaiwang/robotJump | 622e97451f450b755aecbd60e15b2cd47d875f47 | [
"MIT"
] | null | null | null | mysite/addOne.py | xinkaiwang/robotJump | 622e97451f450b755aecbd60e15b2cd47d875f47 | [
"MIT"
] | null | null | null | mysite/addOne.py | xinkaiwang/robotJump | 622e97451f450b755aecbd60e15b2cd47d875f47 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
import django
django.setup()
# your imports, e.g. Django models
from buckets.models import *
from buckets.name2date import name2date
bucket = BucketInfo.objects.get(name='xinkaibuk1')
allInDb = set()
allInDb.update(I... | 21.708333 | 67 | 0.773512 |
ffa7676c4e5ed4bfd01c893490761de5a7bbcf0c | 255 | py | Python | backend/test.py | Harin329/Masterplan | 0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a | [
"Unlicense"
] | null | null | null | backend/test.py | Harin329/Masterplan | 0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a | [
"Unlicense"
] | null | null | null | backend/test.py | Harin329/Masterplan | 0e06d596751c5073b104d0e4aa6c1e8fd0a4fb0a | [
"Unlicense"
] | null | null | null | import boto3
import os
from dotenv import load_dotenv
load_dotenv()
client = boto3.client(
'dynamodb',
aws_access_key_id=os.getenv('AWS_ACCESS_KEY_ID'),
aws_secret_access_key=os.getenv('AWS_SECRET_ACCESS_KEY'),
region_name="us-east-1"
)
| 19.615385 | 61 | 0.752941 |
ffa7a56bf9b9188e3506ddbbb4e8bf32ea7b9845 | 321 | py | Python | buildingspy/__init__.py | marcusfuchs/BuildingsPy | 954f23597585e6674c03097ec2085e1326e9b820 | [
"BSD-3-Clause-LBNL"
] | 66 | 2015-01-26T15:57:05.000Z | 2022-03-24T18:43:01.000Z | buildingspy/__init__.py | marcusfuchs/BuildingsPy | 954f23597585e6674c03097ec2085e1326e9b820 | [
"BSD-3-Clause-LBNL"
] | 259 | 2015-01-06T21:37:52.000Z | 2022-03-07T18:02:38.000Z | buildingspy/__init__.py | marcusfuchs/BuildingsPy | 954f23597585e6674c03097ec2085e1326e9b820 | [
"BSD-3-Clause-LBNL"
] | 34 | 2015-01-14T11:35:57.000Z | 2022-03-15T22:10:25.000Z | """
:mod:`buildingspy` Modules for post-processing simulation output files
======================================================================
"""
import os
# Version.
version_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'VERSION'))
with open(version_path) as f:
__version__ = f.read().strip()... | 26.75 | 82 | 0.563863 |
ffa7ba43fb77d122b3328d05f195ebbbdbe93ef0 | 7,577 | py | Python | kuryr_kubernetes/tests/unit/controller/drivers/test_public_ip.py | BoringWenn/kuryr-kubernetes | 625ddb0a39ab5e8752b83565e6b9689c2ab1775f | [
"Apache-2.0"
] | null | null | null | kuryr_kubernetes/tests/unit/controller/drivers/test_public_ip.py | BoringWenn/kuryr-kubernetes | 625ddb0a39ab5e8752b83565e6b9689c2ab1775f | [
"Apache-2.0"
] | null | null | null | kuryr_kubernetes/tests/unit/controller/drivers/test_public_ip.py | BoringWenn/kuryr-kubernetes | 625ddb0a39ab5e8752b83565e6b9689c2ab1775f | [
"Apache-2.0"
] | 1 | 2018-08-01T13:41:55.000Z | 2018-08-01T13:41:55.000Z | # Copyright (c) 2017 RedHat, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | 39.463542 | 78 | 0.685628 |
ffa7d2f631804521b98eedfa063b62785267c23b | 1,879 | py | Python | day/day19part1.py | swemoney/adventofcode2020 | 94c3c032e68b182881dc545771a79fd884b7cf93 | [
"MIT"
] | 1 | 2020-12-07T13:18:09.000Z | 2020-12-07T13:18:09.000Z | day/day19part1.py | swemoney/adventofcode2020 | 94c3c032e68b182881dc545771a79fd884b7cf93 | [
"MIT"
] | null | null | null | day/day19part1.py | swemoney/adventofcode2020 | 94c3c032e68b182881dc545771a79fd884b7cf93 | [
"MIT"
] | null | null | null | from functools import cached_property
from puzzle import Puzzle # pylint: disable=import-error
| 36.843137 | 93 | 0.583821 |
ffa80060b230b8e11785d9bbb7f5c79cb5159e64 | 7,523 | py | Python | volatility/volatility/plugins/linux/pslist.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | 2 | 2018-07-16T13:30:40.000Z | 2018-07-17T12:02:05.000Z | volatility/volatility/plugins/linux/pslist.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | volatility/volatility/plugins/linux/pslist.py | williamclot/MemoryVisualizer | 2ff9f30f07519d6578bc36c12f8d08acc9cb4383 | [
"MIT"
] | null | null | null | # Volatility
# Copyright (C) 2007-2013 Volatility Foundation
#
# This file is part of Volatility.
#
# Volatility is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your o... | 38.382653 | 109 | 0.510833 |
ffa81bd84acea21fe770bfd3605b4b7cde9424f3 | 266 | py | Python | demo/code/2016-11-08/asyncio_demo/2.py | uxlsl/uxlsl.github.io | 91b62eb01fad38b913016236bb687eb6f0fe2012 | [
"MIT"
] | null | null | null | demo/code/2016-11-08/asyncio_demo/2.py | uxlsl/uxlsl.github.io | 91b62eb01fad38b913016236bb687eb6f0fe2012 | [
"MIT"
] | null | null | null | demo/code/2016-11-08/asyncio_demo/2.py | uxlsl/uxlsl.github.io | 91b62eb01fad38b913016236bb687eb6f0fe2012 | [
"MIT"
] | null | null | null |
import asyncio
loop = asyncio.get_event_loop()
try:
result = loop.run_until_complete(f2())
print(result)
finally:
print("exit")
| 14 | 42 | 0.620301 |
ffa8a6dc6156e32b6503b1d0530884e4f28a8bfa | 5,600 | py | Python | src/opendr/control/mobile_manipulation/mobileRL/envs/eeplanner.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 3 | 2021-06-24T01:54:25.000Z | 2021-12-12T16:21:24.000Z | src/opendr/control/mobile_manipulation/mobileRL/envs/eeplanner.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 79 | 2021-06-23T10:40:10.000Z | 2021-12-16T07:59:42.000Z | src/opendr/control/mobile_manipulation/mobileRL/envs/eeplanner.py | makistsantekidis/opendr | 07dee3b59d3487b9c5a93d6946317178a02c9890 | [
"Apache-2.0"
] | 5 | 2021-07-04T07:38:50.000Z | 2021-12-12T16:18:47.000Z | # Copyright 2020-2021 OpenDR European Project
#
# 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 agree... | 40.875912 | 113 | 0.531964 |
ffac029080c8e95478b5522f00cf420e582609ac | 27,042 | py | Python | spectral_clustering_audio.py | gamaievsky/DescripteursHarmoniquesAudio | 551e253058502049a91803da8b0412b5ffb1bd60 | [
"MIT"
] | null | null | null | spectral_clustering_audio.py | gamaievsky/DescripteursHarmoniquesAudio | 551e253058502049a91803da8b0412b5ffb1bd60 | [
"MIT"
] | null | null | null | spectral_clustering_audio.py | gamaievsky/DescripteursHarmoniquesAudio | 551e253058502049a91803da8b0412b5ffb1bd60 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
======================
Laplacian segmentation
======================
This notebook implements the laplacian segmentation method of
`McFee and Ellis, 2014 <http://bmcfee.github.io/papers/ismir2014_spectral.pdf>`_,
with a couple of minor stability improvements.
This impleme... | 35.912351 | 179 | 0.717329 |
ffac5d6d4f8a223b64490743a33929b7ee781bea | 8,851 | py | Python | src/distributed_cache.py | kontexia/soam | 5c2dc97420804ae601780e6aa0d827bafadd64b7 | [
"BSD-3-Clause"
] | 1 | 2020-11-15T18:35:48.000Z | 2020-11-15T18:35:48.000Z | src/distributed_cache.py | kontexia/soam | 5c2dc97420804ae601780e6aa0d827bafadd64b7 | [
"BSD-3-Clause"
] | null | null | null | src/distributed_cache.py | kontexia/soam | 5c2dc97420804ae601780e6aa0d827bafadd64b7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from typing import Optional, Dict, Union, List
from dask.distributed import Client, Variable, Lock, ActorFuture, TimeoutError
from src.kv_cache import KVGraphCache, KVCacheValueType
def set_kv(self, store_name: str, key: str, value: KVCacheValueType, set_update_fla... | 38.482609 | 190 | 0.619817 |
ffae59649ff2b990843a197023e765523f170d67 | 7,220 | py | Python | snaps/openstack/tests/create_user_tests.py | hashnfv/hashnfv-snaps | 0dfca494ef7c2778babfac48d9b701953860b54f | [
"Apache-2.0"
] | null | null | null | snaps/openstack/tests/create_user_tests.py | hashnfv/hashnfv-snaps | 0dfca494ef7c2778babfac48d9b701953860b54f | [
"Apache-2.0"
] | null | null | null | snaps/openstack/tests/create_user_tests.py | hashnfv/hashnfv-snaps | 0dfca494ef7c2778babfac48d9b701953860b54f | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Cable Television Laboratories, Inc. ("CableLabs")
# and others. 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://w... | 37.604167 | 79 | 0.645429 |
ffaec0f610e83eef313804d44ec449835d851f4a | 1,443 | py | Python | eveonline-assistant/users/menus.py | wengole/eveonline-assistant | 35041952509bd347c5c9458630404726d7ddd5d8 | [
"BSD-3-Clause"
] | 1 | 2016-07-01T03:15:16.000Z | 2016-07-01T03:15:16.000Z | eveonline-assistant/users/menus.py | wengole/eveonline-assistant | 35041952509bd347c5c9458630404726d7ddd5d8 | [
"BSD-3-Clause"
] | null | null | null | eveonline-assistant/users/menus.py | wengole/eveonline-assistant | 35041952509bd347c5c9458630404726d7ddd5d8 | [
"BSD-3-Clause"
] | null | null | null | from django.core.urlresolvers import reverse
from menu import Menu, MenuItem
def profile_title(request):
"""
Return a personalized title for our profile menu item
"""
# we don't need to check if the user is authenticated because our menu
# item will have a check that does that for us
name = re... | 22.2 | 74 | 0.588358 |
ffb0437102c25d65c5fe21edead0730f028adb91 | 5,367 | py | Python | thetagang_notifications/earnings.py | major/thetagang-notifications | 30800e6edd68c00eb9d9a523b126bad115c445ea | [
"Apache-2.0"
] | null | null | null | thetagang_notifications/earnings.py | major/thetagang-notifications | 30800e6edd68c00eb9d9a523b126bad115c445ea | [
"Apache-2.0"
] | 6 | 2022-02-01T22:00:41.000Z | 2022-03-14T12:19:30.000Z | thetagang_notifications/earnings.py | major/thetagang-notifications | 30800e6edd68c00eb9d9a523b126bad115c445ea | [
"Apache-2.0"
] | null | null | null | """Handle earnings updates."""
from functools import cached_property
import logging
import re
from discord_webhook import DiscordWebhook, DiscordEmbed
import tweepy
from thetagang_notifications import config, utils
log = logging.getLogger(__name__)
# Earnings notification colors.
EARNINGS_COLOR_BEAT = "20d420"
EAR... | 30.668571 | 85 | 0.619899 |
ffb099ff1d0c02aa50b56099d003bd1e52a1170d | 8,795 | py | Python | client/Client.py | DSteam1/Sudoku | 4b16d1606712eac76898cd397ee2c3d9fdb4efcf | [
"MIT"
] | null | null | null | client/Client.py | DSteam1/Sudoku | 4b16d1606712eac76898cd397ee2c3d9fdb4efcf | [
"MIT"
] | 2 | 2017-11-03T15:34:27.000Z | 2017-11-14T20:53:41.000Z | client/Client.py | DSteam1/Sudoku | 4b16d1606712eac76898cd397ee2c3d9fdb4efcf | [
"MIT"
] | null | null | null | from mtTkinter import *
import tkMessageBox
from socket import AF_INET, SOCK_STREAM, socket, error
import OtherViews as OV
import MainView as MV
import GameView as GV
from threading import Thread
from common.utils import init_logging
from common.constants import *
import common.protocol as protocol
LOG = init_logging... | 34.490196 | 113 | 0.624787 |
ffb0b6ed4e63e9dd129dd43fed181495e316a61a | 856 | py | Python | idact/detail/deployment_sync/nodes/get_nodes_deployment_definition.py | intdata-bsc/idact | 54cb65a711c145351e205970c27c83e6393cccf5 | [
"MIT"
] | 5 | 2018-12-06T15:40:34.000Z | 2019-06-19T11:22:58.000Z | idact/detail/deployment_sync/nodes/get_nodes_deployment_definition.py | garstka/idact | b9c8405c94db362c4a51d6bfdf418b14f06f0da1 | [
"MIT"
] | 9 | 2018-12-06T16:35:26.000Z | 2019-04-28T19:01:40.000Z | idact/detail/deployment_sync/nodes/get_nodes_deployment_definition.py | intdata-bsc/idact | 54cb65a711c145351e205970c27c83e6393cccf5 | [
"MIT"
] | 2 | 2019-04-28T19:18:58.000Z | 2019-06-17T06:56:28.000Z | from idact.detail.deployment_sync.deployment_definition import \
DeploymentDefinition
from idact.detail.deployment_sync.nodes.get_expiration_date_from_nodes \
import get_expiration_date_from_nodes
from idact.detail.nodes.nodes_impl import NodesImpl
# pylint: disable=bad-continuation
def get_nodes_deployment_d... | 38.909091 | 72 | 0.760514 |
ffb11c0fb609d6059063047b9dfca31cac6fe559 | 276 | py | Python | setup.py | muhammad-alaref/CAM2RequestsCLI | 83911b52de7fe575682184ef9714cbb2b6fc5af4 | [
"Apache-2.0"
] | null | null | null | setup.py | muhammad-alaref/CAM2RequestsCLI | 83911b52de7fe575682184ef9714cbb2b6fc5af4 | [
"Apache-2.0"
] | null | null | null | setup.py | muhammad-alaref/CAM2RequestsCLI | 83911b52de7fe575682184ef9714cbb2b6fc5af4 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='CAM2RequestsCLI',
version='v1.0-rc0',
packages=find_packages(),
zip_safe=False,
install_requires=[
'click',
'requests',
],
entry_points='''
[console_scripts]
CAM2RequestsCLI=CAM2RequestsCLI:cli
''',
)
| 16.235294 | 43 | 0.717391 |
ffb26bbf8c3177f73bd85828c0a16edb1e85eea5 | 2,006 | py | Python | work/fromcsv.py | ujjvlh/pdf-glyph-mapping | e9978f7103e8a3c540cd6cecb3158bf7c37ff687 | [
"MIT"
] | null | null | null | work/fromcsv.py | ujjvlh/pdf-glyph-mapping | e9978f7103e8a3c540cd6cecb3158bf7c37ff687 | [
"MIT"
] | 8 | 2021-07-30T05:45:07.000Z | 2021-10-06T04:22:25.000Z | work/fromcsv.py | ujjvlh/pdf-glyph-mapping | e9978f7103e8a3c540cd6cecb3158bf7c37ff687 | [
"MIT"
] | 1 | 2021-07-30T05:49:07.000Z | 2021-07-30T05:49:07.000Z | # Downloaded from Google Sheets, edited out the first line, and then...
# reader = csv.DictReader(open('from-sheets.csv', newline=''))
import csv
import toml
reader = csv.reader(open('from-sheets.csv', newline=''))
rows = [row for row in reader]
final_bold = {}
final_regular = {}
for (i, row) in enumerate(rows):
i... | 34.586207 | 91 | 0.506481 |
ffb3693a744924e8d030e03e9bfbc5d9ff55cdda | 5,767 | py | Python | agnostic/postgres.py | a6patch/agnostic | 9f9cdc8c54e92e9e3f52e340aaddafb6eb33d787 | [
"MIT"
] | null | null | null | agnostic/postgres.py | a6patch/agnostic | 9f9cdc8c54e92e9e3f52e340aaddafb6eb33d787 | [
"MIT"
] | null | null | null | agnostic/postgres.py | a6patch/agnostic | 9f9cdc8c54e92e9e3f52e340aaddafb6eb33d787 | [
"MIT"
] | null | null | null | import subprocess
import pg8000
from agnostic import AbstractBackend
| 27.593301 | 80 | 0.524363 |
ffb40f832f9264e117197fcc4b4e443a97fdff44 | 2,825 | py | Python | vasppy/scripts/fat_bands.py | cajfisher/vasppy | a460db14163b7db3bce54d754dd476c45a3ed85b | [
"MIT"
] | 28 | 2017-02-16T13:22:34.000Z | 2021-04-29T06:10:10.000Z | vasppy/scripts/fat_bands.py | cajfisher/vasppy | a460db14163b7db3bce54d754dd476c45a3ed85b | [
"MIT"
] | 15 | 2016-05-09T13:08:42.000Z | 2021-08-09T10:59:58.000Z | vasppy/scripts/fat_bands.py | cajfisher/vasppy | a460db14163b7db3bce54d754dd476c45a3ed85b | [
"MIT"
] | 25 | 2015-10-12T11:29:22.000Z | 2021-08-20T17:33:27.000Z | #! /usr/bin/env python3
from vasppy import procar
from vasppy.outcar import reciprocal_lattice_from_outcar
import argparse
#def x_axis( cartesian_k_points ):
# if cartesian_k_points is not None:
# x_axis = [ 0.0 ]
# for i in range( 1, len(cartesian_k_points) ):
# d = cartesian_k_points[i -... | 48.706897 | 205 | 0.593274 |
ffb515697db4de0f590ab614acfa4b387f024c15 | 482 | py | Python | io_scene_vrm/editor/extension.py | 989onan/VRM_Addon_for_Blender | af894a87bdf2bc02b69842c6de082f097f1e0939 | [
"MIT"
] | 344 | 2021-02-09T15:06:26.000Z | 2022-03-31T07:13:40.000Z | io_scene_vrm/editor/extension.py | 989onan/VRM_Addon_for_Blender | af894a87bdf2bc02b69842c6de082f097f1e0939 | [
"MIT"
] | 47 | 2021-02-06T23:44:43.000Z | 2022-03-22T21:45:21.000Z | io_scene_vrm/editor/extension.py | 989onan/VRM_Addon_for_Blender | af894a87bdf2bc02b69842c6de082f097f1e0939 | [
"MIT"
] | 44 | 2021-02-21T14:15:38.000Z | 2022-03-31T01:53:12.000Z | import bpy
from .vrm0.property_group import Vrm0PropertyGroup
| 30.125 | 92 | 0.715768 |
ffb738b58324008d07a0a6382006195a88d42d5f | 2,014 | py | Python | examples/data/data.py | chenyangh/pytorch-struct | 2c87ef20c615c27194f85723e78b9269e6c8da14 | [
"MIT"
] | null | null | null | examples/data/data.py | chenyangh/pytorch-struct | 2c87ef20c615c27194f85723e78b9269e6c8da14 | [
"MIT"
] | null | null | null | examples/data/data.py | chenyangh/pytorch-struct | 2c87ef20c615c27194f85723e78b9269e6c8da14 | [
"MIT"
] | null | null | null | from torchtext.legacy import data
import torch
def SubTokenizedField(tokenizer):
"""
Field for use with pytorch-transformer
"""
FIELD = data.RawField(
preprocessing=lambda s: token_pre(tokenizer, s), postprocessing=token_post
)
FIELD.is_target = False
return FIELD
| 25.175 | 82 | 0.53426 |
ffb8ae45bde268b15c5f3fd6b4ea8944eb386fd4 | 2,497 | py | Python | start.py | FoerMaster/GachiBot-Discord | bfafb7b989c0181332724e8a8975ceceb3e0acaf | [
"MIT"
] | 1 | 2020-09-05T15:30:51.000Z | 2020-09-05T15:30:51.000Z | start.py | FoerMaster/GachiBot-Discord | bfafb7b989c0181332724e8a8975ceceb3e0acaf | [
"MIT"
] | null | null | null | start.py | FoerMaster/GachiBot-Discord | bfafb7b989c0181332724e8a8975ceceb3e0acaf | [
"MIT"
] | null | null | null |
import gachi
import discord
import functions
import kachalochka
commands = functions.commands()
gachi = gachi.gachi() #gachi class
kachalaka = kachalochka.kachalka()
################################################################
## FUNCS INITIALIZATION ##
#######... | 37.268657 | 108 | 0.578694 |
ffba6d1b0d4c9fc9bf206561d7474e75ff42b979 | 343 | py | Python | pushit/backends/mpns.py | rhblind/django-pushit | 491ab14b7b1004eb73420d23bcc2b74fafaaf7a3 | [
"MIT"
] | null | null | null | pushit/backends/mpns.py | rhblind/django-pushit | 491ab14b7b1004eb73420d23bcc2b74fafaaf7a3 | [
"MIT"
] | null | null | null | pushit/backends/mpns.py | rhblind/django-pushit | 491ab14b7b1004eb73420d23bcc2b74fafaaf7a3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from pushit.backends import PushBackend
| 21.4375 | 74 | 0.71137 |
ffbb0fd9a15722477aa695b38c34143fbc58e500 | 1,133 | py | Python | hic_covid_repository/versions/002_Virology.py | LCBRU/hic_covid | eb5a37339185ed71246235e307a81d91dc91f9ec | [
"MIT"
] | null | null | null | hic_covid_repository/versions/002_Virology.py | LCBRU/hic_covid | eb5a37339185ed71246235e307a81d91dc91f9ec | [
"MIT"
] | null | null | null | hic_covid_repository/versions/002_Virology.py | LCBRU/hic_covid | eb5a37339185ed71246235e307a81d91dc91f9ec | [
"MIT"
] | null | null | null | from sqlalchemy import (
MetaData,
Table,
Column,
Integer,
NVARCHAR,
DateTime,
Date,
Boolean,
)
meta = MetaData()
| 25.75 | 78 | 0.624007 |
4400856d181d08220fa50547c19d7bab6d8e6fbd | 2,393 | py | Python | marlgrid/pz_envs/contentFB.py | aivaslab/marlgrid | 10b53d27ce224fadeeb5830d6034350a69feb4b4 | [
"Apache-2.0"
] | null | null | null | marlgrid/pz_envs/contentFB.py | aivaslab/marlgrid | 10b53d27ce224fadeeb5830d6034350a69feb4b4 | [
"Apache-2.0"
] | null | null | null | marlgrid/pz_envs/contentFB.py | aivaslab/marlgrid | 10b53d27ce224fadeeb5830d6034350a69feb4b4 | [
"Apache-2.0"
] | null | null | null | from ..base_AEC import *
from ..objects import *
from random import randrange
import random
import math
| 32.337838 | 91 | 0.610113 |
4401048e9f96083e7a2404057ad05e3545075fdb | 173 | py | Python | run.py | BloomTech-Labs/tally-ai-ds | 09d7a207bf5e6f9de2d615ad078cebb8340abcd8 | [
"MIT"
] | 8 | 2020-01-08T18:16:20.000Z | 2020-06-30T23:49:38.000Z | run.py | Lambda-School-Labs/tally-ai-ds | 09d7a207bf5e6f9de2d615ad078cebb8340abcd8 | [
"MIT"
] | 5 | 2021-03-30T13:48:15.000Z | 2021-09-22T19:11:46.000Z | run.py | BloomTech-Labs/tally-ai-ds | 09d7a207bf5e6f9de2d615ad078cebb8340abcd8 | [
"MIT"
] | 5 | 2020-02-02T04:27:26.000Z | 2020-06-05T05:12:28.000Z | """ Entry point for the Yelp API Flask Reviews for Tally-ai"""
from yelpapi.app import create_app
APP = create_app()
if __name__=='__main__':
APP.run(host="0.0.0.0")
| 19.222222 | 62 | 0.693642 |
44012135b92e94a6e5cc6632123a24e83038d617 | 945 | py | Python | day6.py | xpqz/aoc-17 | 1872c13933b1b37e294d5e9660db3b2a48c837bd | [
"Apache-2.0"
] | null | null | null | day6.py | xpqz/aoc-17 | 1872c13933b1b37e294d5e9660db3b2a48c837bd | [
"Apache-2.0"
] | null | null | null | day6.py | xpqz/aoc-17 | 1872c13933b1b37e294d5e9660db3b2a48c837bd | [
"Apache-2.0"
] | null | null | null | from itertools import cycle
import re
if __name__ == "__main__":
d = read_data()
count = 0
states = {tuple(d): 0}
while True:
m, pivot = maxindex(d)
d[pivot] = 0
for bank in cycle(bank_order(len(d), pivot)):
if m == 0:
break
d[bank] +=... | 19.6875 | 63 | 0.514286 |
44013f3f3af8e458590def0721c1609bc2e07d75 | 1,026 | py | Python | analysis/Therapy_abi-initialcondition.py | Harshavardhan-BV/Cancer-compe-strat | e4decacd5779e85a68c81d0ce3bedf42dea2964f | [
"MIT"
] | 1 | 2020-10-18T15:54:26.000Z | 2020-10-18T15:54:26.000Z | analysis/Therapy_abi-initialcondition.py | Harshavardhan-BV/Cancer-compe-strat | e4decacd5779e85a68c81d0ce3bedf42dea2964f | [
"MIT"
] | null | null | null | analysis/Therapy_abi-initialcondition.py | Harshavardhan-BV/Cancer-compe-strat | e4decacd5779e85a68c81d0ce3bedf42dea2964f | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import common_fn as cf
import seaborn as sns
plt.rcParams["svg.hashsalt"]=0
pre_path='EnvEq/All3/'
parm_format='{:.2e}'
parm_name='therapy_abi-Tneg_initratio-Totcell'
parm_name_array=['Tneg_initratio','Totcell']
post_path1='o2-Null_test-HE/'
parm_n... | 34.2 | 177 | 0.774854 |
44046b1afd25c838028ace50bbff2629930820b6 | 745 | py | Python | batch/batch/globals.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | batch/batch/globals.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | batch/batch/globals.py | vrautela/hail | 7db6189b5b1feafa88452b8470e497d9505d9a46 | [
"MIT"
] | null | null | null | states = {'Pending', 'Ready', 'Creating', 'Running', 'Cancelled', 'Error', 'Failed', 'Success'}
complete_states = ('Cancelled', 'Error', 'Failed', 'Success')
valid_state_transitions = {
'Pending': {'Ready'},
'Ready': {'Creating', 'Running', 'Cancelled', 'Error'},
'Creating': {'Ready', 'Running'},
'Run... | 26.607143 | 95 | 0.636242 |
4404ab7f872b125d775084569215a89c507428c5 | 8,037 | py | Python | decodense/tools.py | luna-component/decodense | 2579b7a3b7500b32ab231ebacb35c91e87e96735 | [
"MIT"
] | null | null | null | decodense/tools.py | luna-component/decodense | 2579b7a3b7500b32ab231ebacb35c91e87e96735 | [
"MIT"
] | null | null | null | decodense/tools.py | luna-component/decodense | 2579b7a3b7500b32ab231ebacb35c91e87e96735 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*
"""
tools module
"""
__author__ = 'Dr. Janus Juul Eriksen, University of Bristol, UK'
__maintainer__ = 'Dr. Janus Juul Eriksen'
__email__ = 'janus.eriksen@bristol.ac.uk'
__status__ = 'Development'
import sys
import os
import copy
import numpy as np
try:
import opt_ein... | 34.493562 | 126 | 0.528307 |
4409f782696f9bbe7a35ede6326445dc2cdc8431 | 949 | py | Python | needy/platforms/__init__.py | carlbrown/needy | 5a70726c9846f86a88be896ec39740296d503835 | [
"MIT"
] | 65 | 2015-07-21T01:40:17.000Z | 2019-06-10T10:46:28.000Z | needy/platforms/__init__.py | bittorrent/needy | 31e57ad09d5fc22126e10b735c586262a50139d7 | [
"MIT"
] | 110 | 2015-07-21T01:41:40.000Z | 2017-01-18T23:13:30.000Z | needy/platforms/__init__.py | bittorrent/needy | 31e57ad09d5fc22126e10b735c586262a50139d7 | [
"MIT"
] | 4 | 2015-07-20T02:45:43.000Z | 2016-07-31T21:48:39.000Z | import sys
from .generic import GenericPlatform
from .android import AndroidPlatform
from .osx import OSXPlatform
from .ios import iOSPlatform, iOSSimulatorPlatform
from .tvos import tvOSPlatform, tvOSSimulatorPlatform
from .windows import WindowsPlatform
| 24.973684 | 54 | 0.650158 |
440a1d5175fa5348e4a99237450eda9219084497 | 1,932 | py | Python | starfish/pipeline/filter/white_tophat.py | joshmoore/starfish | db38168da35f01ad1541f67aebe49a083d12e224 | [
"MIT"
] | null | null | null | starfish/pipeline/filter/white_tophat.py | joshmoore/starfish | db38168da35f01ad1541f67aebe49a083d12e224 | [
"MIT"
] | null | null | null | starfish/pipeline/filter/white_tophat.py | joshmoore/starfish | db38168da35f01ad1541f67aebe49a083d12e224 | [
"MIT"
] | 1 | 2019-03-12T23:39:55.000Z | 2019-03-12T23:39:55.000Z | import numpy as np
from ._base import FilterAlgorithmBase
| 33.310345 | 120 | 0.652174 |
440b1a3e84c4b75ee948d622c559e449e45598fa | 8,082 | py | Python | lambda/lambda/avm-create-bitbucket-repo/avm-create-bitbucket.py | khiann/terraform-aws-avm | 9fbf3d97a26117450ad9e93c8f949727df4f562c | [
"MIT-0"
] | null | null | null | lambda/lambda/avm-create-bitbucket-repo/avm-create-bitbucket.py | khiann/terraform-aws-avm | 9fbf3d97a26117450ad9e93c8f949727df4f562c | [
"MIT-0"
] | null | null | null | lambda/lambda/avm-create-bitbucket-repo/avm-create-bitbucket.py | khiann/terraform-aws-avm | 9fbf3d97a26117450ad9e93c8f949727df4f562c | [
"MIT-0"
] | 1 | 2021-09-01T18:28:55.000Z | 2021-09-01T18:28:55.000Z | import json
import stashy
import avm_common
import urllib3
import boto3
import base64
from botocore.exceptions import ClientError
urllib3.disable_warnings()
# import pprint
# pp = pprint.PrettyPrinter(indent=4)
def get_repository_access_for_role(role_name, repository_type):
"""Return a Bitbucket permission level... | 38.855769 | 152 | 0.623113 |
440b7babfdd9105d004432019375c7b06dd9899b | 6,905 | py | Python | artsci2019/display.py | fhennig/artsci-2019 | 273ea80cde5e4af0a9dfedbff608f29de4f78afa | [
"MIT"
] | 5 | 2019-05-27T10:00:18.000Z | 2020-01-23T13:22:37.000Z | artsci2019/display.py | fhennig/artsci-2019 | 273ea80cde5e4af0a9dfedbff608f29de4f78afa | [
"MIT"
] | 2 | 2019-05-21T16:05:28.000Z | 2019-05-26T14:52:22.000Z | artsci2019/display.py | fhennig/artsci-2019 | 273ea80cde5e4af0a9dfedbff608f29de4f78afa | [
"MIT"
] | null | null | null | import datetime
import cv2
import numpy as np
from artsci2019.lib.frame_checker import FrameChecker
from artsci2019.lib.util import scale_frame, scale_point, is_in_frame
from artsci2019.lib.face_recog import get_faces
from artsci2019.lib.sound import SoundPlayer
| 35.777202 | 113 | 0.634757 |
440e4fb77e7a2dcecc9229d9e1fe37a402ae6bf6 | 10,387 | py | Python | tests/test_dataset_manager.py | METASPACE2020/sm-engine | 01d214223b36d44ba63dd5b35a162b55094b4d27 | [
"Apache-2.0"
] | 3 | 2017-07-07T00:26:37.000Z | 2018-01-23T15:51:31.000Z | tests/test_dataset_manager.py | METASPACE2020/sm-engine | 01d214223b36d44ba63dd5b35a162b55094b4d27 | [
"Apache-2.0"
] | 8 | 2017-02-17T15:25:21.000Z | 2018-06-14T10:19:22.000Z | tests/test_dataset_manager.py | METASPACE2020/sm-engine | 01d214223b36d44ba63dd5b35a162b55094b4d27 | [
"Apache-2.0"
] | 2 | 2017-10-05T14:44:44.000Z | 2018-01-31T16:33:02.000Z | from unittest.mock import patch, MagicMock, call
import json
from datetime import datetime
from copy import deepcopy
import pytest
from PIL import Image
from sm.engine import DB, ESExporter, QueuePublisher
from sm.engine.dataset_manager import SMapiDatasetManager, SMDaemonDatasetManager
from sm.engine.dataset_manager ... | 45.358079 | 114 | 0.654472 |
440ef0f506a9d49f97fe8b449ff8d92dc9b0a5ba | 2,492 | py | Python | tests/test_service_catalog/test_views/test_admin/test_settings/test_catalog/test_services/test_create.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 112 | 2021-04-21T08:52:55.000Z | 2022-03-01T15:09:19.000Z | tests/test_service_catalog/test_views/test_admin/test_settings/test_catalog/test_services/test_create.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 216 | 2021-04-21T09:06:47.000Z | 2022-03-30T14:21:28.000Z | tests/test_service_catalog/test_views/test_admin/test_settings/test_catalog/test_services/test_create.py | LaudateCorpus1/squest | 98304f20c1d966fb3678d348ffd7c5be438bb6be | [
"Apache-2.0"
] | 21 | 2021-04-20T13:53:54.000Z | 2022-03-30T21:43:04.000Z | from copy import copy
from io import BytesIO
from PIL import Image
from django.core.files.uploadedfile import InMemoryUploadedFile
from django.urls import reverse
from service_catalog.models import Service
from tests.test_service_catalog.base import BaseTest
| 38.338462 | 85 | 0.628411 |
441052dc397931ac9f5e24e600272dbb4a1bb780 | 2,940 | py | Python | deep_q_tf/main_tf.py | murtazayusuf/Reinforcement_Learning | 42c81650c4ea87e430c8ff0620d70b0ec572977f | [
"Apache-2.0"
] | null | null | null | deep_q_tf/main_tf.py | murtazayusuf/Reinforcement_Learning | 42c81650c4ea87e430c8ff0620d70b0ec572977f | [
"Apache-2.0"
] | null | null | null | deep_q_tf/main_tf.py | murtazayusuf/Reinforcement_Learning | 42c81650c4ea87e430c8ff0620d70b0ec572977f | [
"Apache-2.0"
] | null | null | null | import gym
from dqn_tf import DeepQNetwork, Agent
import numpy as np
from gym import wrappers
if __name__ == "__main__":
env = gym.make("Breakout-v0")
load_checkpoint = False
agent = Agent(gamma=0.99, epsilon=1.0, alpha=0.00025, input_dims=(180, 160, 4),
n_actions=3, mem_size=3000, bat... | 33.033708 | 83 | 0.585034 |
44155aabada0f13fedb7c839b6f8e15ee94c7153 | 327 | py | Python | gz.17zwd.com/17wang.py | zzh-python/all-project | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | [
"Apache-2.0"
] | 58 | 2019-03-01T08:15:19.000Z | 2022-03-28T03:16:17.000Z | gz.17zwd.com/17wang.py | zzh-python/all-project | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | [
"Apache-2.0"
] | 2 | 2020-06-08T08:07:46.000Z | 2020-11-02T11:48:05.000Z | gz.17zwd.com/17wang.py | zzh-python/all-project | 915a47fb42d63ff3a36814992283c2f4ed8703a3 | [
"Apache-2.0"
] | 37 | 2019-02-26T23:30:08.000Z | 2022-01-27T05:10:18.000Z | from bs4 import BeautifulSoup
import requests
import csv
import sys
from urllib.error import HTTPError
sys.path.append("..")
import mytemp
import time
import json
url='https://gz.17zwd.com/api/shop/get-list/73'
resp=requests.get(url)
f=open('17wang.txt','w+',encoding='utf-8')
f.write(resp.text)
print(res... | 21.8 | 48 | 0.730887 |
4415a732b11d2612772f66097e011180e7139e5f | 1,722 | py | Python | extra/dream_examples/anticor.py | cyankaet/bumps | 427d077fd95f2d9a09eeb8677d045547061cff42 | [
"MIT"
] | 44 | 2015-03-28T06:48:43.000Z | 2022-01-09T11:29:00.000Z | extra/dream_examples/anticor.py | cyankaet/bumps | 427d077fd95f2d9a09eeb8677d045547061cff42 | [
"MIT"
] | 68 | 2015-08-21T11:28:54.000Z | 2022-03-30T22:14:13.000Z | extra/dream_examples/anticor.py | cyankaet/bumps | 427d077fd95f2d9a09eeb8677d045547061cff42 | [
"MIT"
] | 27 | 2015-06-22T19:25:27.000Z | 2021-06-15T18:20:06.000Z | #!/usr/bin/env python
"""
Example model with strong correlations between the fitted parameters.
We use a*x = y + N(0,1) made complicated by defining a=p1+p2.
The expected distribution for p1 and p2 will be uniform, with p2 = a-p1 in
each sample. Because this distribution is inherently unbounded, artificial
bounds a... | 31.888889 | 76 | 0.699187 |
4415ff54efa6b8573163a01345a7d4c0fe9b4b4b | 542 | py | Python | tests/plugins/test_brittv.py | fuglede/streamlink | 2661d40164986f979edc2e6867f8daeceba73a44 | [
"BSD-2-Clause"
] | null | null | null | tests/plugins/test_brittv.py | fuglede/streamlink | 2661d40164986f979edc2e6867f8daeceba73a44 | [
"BSD-2-Clause"
] | null | null | null | tests/plugins/test_brittv.py | fuglede/streamlink | 2661d40164986f979edc2e6867f8daeceba73a44 | [
"BSD-2-Clause"
] | null | null | null | import unittest
from streamlink.plugins.brittv import BritTV
| 27.1 | 56 | 0.643911 |
44161fe721c4935dde56518cd9d4e7cbde6b5a22 | 6,833 | py | Python | src/Modules/Lighting/lighting.py | bopopescu/PyHouse_1 | 6444ed0b4c38ab59b9e419e4d54d65d598e6a54e | [
"MIT"
] | 1 | 2016-09-21T19:30:21.000Z | 2016-09-21T19:30:21.000Z | src/Modules/Lighting/lighting.py | bopopescu/PyHouse_1 | 6444ed0b4c38ab59b9e419e4d54d65d598e6a54e | [
"MIT"
] | null | null | null | src/Modules/Lighting/lighting.py | bopopescu/PyHouse_1 | 6444ed0b4c38ab59b9e419e4d54d65d598e6a54e | [
"MIT"
] | 1 | 2020-07-23T11:13:36.000Z | 2020-07-23T11:13:36.000Z | """
-*- test-case-name: PyHouse.Modules.Lighting.test.test_lighting -*-
@name: PyHouse/src/Modules/Lighting/lighting.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2010-2016 by D. Brian Kimmel
@note: Created on Apr 2, 2010
@license: MIT License
@summary: Handle the hom... | 37.543956 | 130 | 0.657837 |
44162499513d25160459c56fac5a7f8e586c1da1 | 2,244 | py | Python | tests/math/unary/test_hyperbolictrig.py | Zac-HD/MyGrad | fbc375d28842e1af1ebaf62ca6da479609a6baf6 | [
"MIT"
] | null | null | null | tests/math/unary/test_hyperbolictrig.py | Zac-HD/MyGrad | fbc375d28842e1af1ebaf62ca6da479609a6baf6 | [
"MIT"
] | 2 | 2017-08-02T01:47:51.000Z | 2017-08-12T22:34:50.000Z | tests/math/unary/test_hyperbolictrig.py | Zac-HD/MyGrad | fbc375d28842e1af1ebaf62ca6da479609a6baf6 | [
"MIT"
] | null | null | null | import numpy as np
from mygrad import cosh, coth, csch, sech, sinh, tanh
from tests.wrappers.uber import backprop_test_factory, fwdprop_test_factory
| 18.393443 | 83 | 0.667558 |
441676381cae9515b51fa0e630497ee23d1f197b | 16,667 | py | Python | hwrt/data_analyzation_metrics.py | MartinThoma/hwrt | 7b274fa3022292bb1215eaec99f1826f64f98a07 | [
"MIT"
] | 65 | 2015-04-08T12:11:22.000Z | 2022-02-28T23:46:53.000Z | hwrt/data_analyzation_metrics.py | MartinThoma/hwrt | 7b274fa3022292bb1215eaec99f1826f64f98a07 | [
"MIT"
] | 35 | 2015-01-05T11:56:30.000Z | 2022-03-12T00:55:38.000Z | hwrt/data_analyzation_metrics.py | MartinThoma/hwrt | 7b274fa3022292bb1215eaec99f1826f64f98a07 | [
"MIT"
] | 18 | 2015-01-19T15:57:25.000Z | 2021-02-15T20:38:32.000Z | """Data analyzation metrics
Each algorithm works on a set of handwritings. They have to be applied like
this:
>>> import hwrt.data_analyzation_metrics
>>> from hwrt.handwritten_data import HandwrittenData
>>> data_json = '[[{"time": 123, "x": 45, "y": 67}]]'
>>> a = [{'is_in_testset': 0,
... 'formula_id': "31L",
.... | 35.613248 | 87 | 0.574789 |
44170fa4cc3dbe32cd38f39ba8ff73bae2cde9dc | 1,609 | py | Python | tests/test_spiral_spanning_tree_coverage_path_planner.py | duken72/PythonRobotics | 177f04618c4bbba40bea38cd57d642f7ab9e3725 | [
"MIT"
] | 15,431 | 2016-10-07T08:25:10.000Z | 2022-03-31T22:06:02.000Z | tests/test_spiral_spanning_tree_coverage_path_planner.py | duken72/PythonRobotics | 177f04618c4bbba40bea38cd57d642f7ab9e3725 | [
"MIT"
] | 486 | 2017-05-01T00:40:00.000Z | 2022-03-23T06:57:42.000Z | tests/test_spiral_spanning_tree_coverage_path_planner.py | duken72/PythonRobotics | 177f04618c4bbba40bea38cd57d642f7ab9e3725 | [
"MIT"
] | 4,978 | 2017-03-05T22:23:36.000Z | 2022-03-31T12:42:17.000Z | import conftest # Add root path to sys.path
import os
import matplotlib.pyplot as plt
from PathPlanning.SpiralSpanningTreeCPP \
import spiral_spanning_tree_coverage_path_planner
spiral_spanning_tree_coverage_path_planner.do_animation = True
if __name__ == '__main__':
conftest.run_this_test(__file__)
| 27.271186 | 64 | 0.674332 |
441aa57a53a22851224b5613923ac3dbb66e492a | 320 | py | Python | codewars-python/Build-Tower.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | 2 | 2021-09-06T22:13:12.000Z | 2021-11-22T08:50:04.000Z | codewars-python/Build-Tower.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null | codewars-python/Build-Tower.py | fmelihh/competitive-programming-solutions | c15c2f7d90153f35f9bd9ffcea20ac921564eacf | [
"MIT"
] | null | null | null |
# https://www.codewars.com/kata/576757b1df89ecf5bd00073b/train/python
| 16.842105 | 69 | 0.553125 |
441af981b78ee749fe1c18e5c8769744f42b1cf0 | 1,745 | py | Python | test/test_degrees_kernel.py | remenska/KM3Net | 4c175662465b9a880fc1864f62219ce9702311f1 | [
"Apache-2.0"
] | 1 | 2022-01-23T23:54:08.000Z | 2022-01-23T23:54:08.000Z | test/test_degrees_kernel.py | nlesc-km3net/KM3NeT | 4c175662465b9a880fc1864f62219ce9702311f1 | [
"Apache-2.0"
] | 2 | 2016-07-01T12:19:15.000Z | 2016-07-04T09:01:51.000Z | test/test_degrees_kernel.py | nlesc-km3net/KM3NeT | 4c175662465b9a880fc1864f62219ce9702311f1 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import numpy as np
from kernel_tuner import run_kernel
from .context import skip_if_no_cuda_device, create_plot
from km3net.util import get_kernel_path, generate_correlations_table
| 32.924528 | 93 | 0.67851 |
441cc1fcbf285eb769a00c3f77129f03547305f0 | 12,718 | py | Python | ns-allinone-3.27/ns-3.27/build/build-status.py | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | null | null | null | ns-allinone-3.27/ns-3.27/build/build-status.py | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | null | null | null | ns-allinone-3.27/ns-3.27/build/build-status.py | zack-braun/4607_NS | 43c8fb772e5552fb44bd7cd34173e73e3fb66537 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Programs that are runnable.
ns3_runnable_programs = ['build/src/aodv/examples/ns3.27-aodv-debug', 'build/src/bridge/examples/ns3.27-csma-bridge-debug', 'build/src/bridge/examples/ns3.27-csma-bridge-one-hop-debug', 'build/src/buildings/examples/ns3.27-buildings-pathloss-profiler-debug', 'build/... | 1,413.111111 | 12,438 | 0.787231 |
441d1598d9cc31eb5ebaa68b12f30240e2830d64 | 16,473 | py | Python | datasets.py | mi-erasmusmc/Sard | d8228a7c49e2e6f98fbd16d4531cb3fc4b505590 | [
"MIT"
] | null | null | null | datasets.py | mi-erasmusmc/Sard | d8228a7c49e2e6f98fbd16d4531cb3fc4b505590 | [
"MIT"
] | null | null | null | datasets.py | mi-erasmusmc/Sard | d8228a7c49e2e6f98fbd16d4531cb3fc4b505590 | [
"MIT"
] | null | null | null | import numpy as np
import torch
import torch.nn.functional as F
from scipy.sparse import coo_matrix
from sklearn.preprocessing import StandardScaler
from torch.utils.data import Dataset
from torch_geometric.data import InMemoryDataset, Data, Batch
from tqdm.auto import tqdm
from utils.data_utils import window_data_sor... | 40.573892 | 123 | 0.611728 |
441ded704ad1f58469e577a15c12086c94e18f8c | 1,104 | py | Python | Python3-world2/ex068.py | samirsaravia/Python_101 | 0c45f11d74a356514a0c436ade6af4c0f67c56b7 | [
"MIT"
] | null | null | null | Python3-world2/ex068.py | samirsaravia/Python_101 | 0c45f11d74a356514a0c436ade6af4c0f67c56b7 | [
"MIT"
] | 1 | 2020-10-16T23:26:41.000Z | 2020-10-16T23:26:41.000Z | Python3-world2/ex068.py | samirsaravia/Python_101 | 0c45f11d74a356514a0c436ade6af4c0f67c56b7 | [
"MIT"
] | null | null | null | import random
title = 'par ou mpar'.upper()
print('~~' * 10)
print(f'\033[7;30m{title:^20}\033[m')
print('~~' * 10)
# poi = par ou impar
# vop = vitoria ou perda
poi = vop = ''
cont = 0
while True:
cont += 1
escolha_numero = int(input('Digite um nmero: '))
escolha_parinpar = str(input('Par ou Impar[P/I]: ')... | 29.837838 | 75 | 0.567935 |
441ec5d59d9d3a65610332b574a805f37375ef36 | 730 | py | Python | 2018_01__Python_introduction_for_MATLAB_users__at_Supelec/examples/Solving_a_2D_Ordinary_Differential_Equation.py | pierre-haessig/slides | b16071df486b1d093976c1670e64debd98863a67 | [
"MIT"
] | 10 | 2016-07-06T13:25:11.000Z | 2022-02-23T14:35:24.000Z | 2018_01__Python_introduction_for_MATLAB_users__at_Supelec/examples/Solving_a_2D_Ordinary_Differential_Equation.py | pierre-haessig/slides | b16071df486b1d093976c1670e64debd98863a67 | [
"MIT"
] | 29 | 2017-07-12T16:14:04.000Z | 2021-02-15T04:30:39.000Z | 2018_01__Python_introduction_for_MATLAB_users__at_Supelec/examples/Solving_a_2D_Ordinary_Differential_Equation.py | pierre-haessig/slides | b16071df486b1d093976c1670e64debd98863a67 | [
"MIT"
] | 5 | 2018-10-09T08:45:14.000Z | 2021-09-07T21:01:23.000Z | #! /usr/bin/env python
# -*- coding: utf8 -*-
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint # use Runge-Kutta 4
def pend(y, t, b, c): # function definition
"""Gives 2D vector dy/dt as function of y and t, with parameters b and c."""
return np.array([y[1], -b*y[1] - c... | 27.037037 | 80 | 0.617808 |
441fbe95d0f4a6ebbd262b36d8e02ea09ad5d0b7 | 417 | py | Python | learning/challenge/challenge7.py | Nephrin/Tut | 9454be28fd37c155d0b4e97876196f8d33ccf8e5 | [
"Apache-2.0"
] | 2 | 2019-06-23T07:17:30.000Z | 2019-07-06T15:15:42.000Z | learning/challenge/challenge7.py | Nephrin/Tut | 9454be28fd37c155d0b4e97876196f8d33ccf8e5 | [
"Apache-2.0"
] | null | null | null | learning/challenge/challenge7.py | Nephrin/Tut | 9454be28fd37c155d0b4e97876196f8d33ccf8e5 | [
"Apache-2.0"
] | 1 | 2019-06-23T07:17:43.000Z | 2019-06-23T07:17:43.000Z | # Arithmetic progression
# A + (A+B) + (A+2B) + (A+3B) + ... + (A+(C-1)B))
main()
| 23.166667 | 50 | 0.402878 |
441fc3bc46c6ecde088567b44799291211ec1438 | 480 | py | Python | test-app/test_app/core/tests/test_image.py | dchiquito/girder-pytest-pyppeteer | 7b287ed393735a14c89bd8934d61e33d38a658d4 | [
"Apache-2.0"
] | 5 | 2020-07-23T14:40:17.000Z | 2021-01-14T09:07:43.000Z | test-app/test_app/core/tests/test_image.py | dchiquito/girder-pytest-pyppeteer | 7b287ed393735a14c89bd8934d61e33d38a658d4 | [
"Apache-2.0"
] | 49 | 2020-07-20T15:25:28.000Z | 2021-03-12T22:09:07.000Z | test-app/test_app/core/tests/test_image.py | dchiquito/girder-pytest-pyppeteer | 7b287ed393735a14c89bd8934d61e33d38a658d4 | [
"Apache-2.0"
] | 3 | 2020-10-07T14:08:53.000Z | 2021-03-12T22:01:19.000Z | import pytest
| 28.235294 | 57 | 0.727083 |
441fd066a3b9ceec8854e7357e20db9ea179837b | 1,785 | py | Python | rem/_dummy_fork_locking.py | heni/rem | 00caa0e2e6b0bd0091e8290c1e11884c8c45d347 | [
"MIT"
] | 14 | 2015-03-25T08:31:02.000Z | 2022-03-31T10:58:40.000Z | rem/_dummy_fork_locking.py | heni/rem | 00caa0e2e6b0bd0091e8290c1e11884c8c45d347 | [
"MIT"
] | 3 | 2015-02-07T16:00:01.000Z | 2015-10-07T11:39:27.000Z | rem/_dummy_fork_locking.py | heni/rem | 00caa0e2e6b0bd0091e8290c1e11884c8c45d347 | [
"MIT"
] | 6 | 2015-02-06T16:43:05.000Z | 2020-02-18T13:43:31.000Z | import threading
__all__ = ["acquire_fork", "acquire_lock", "release_fork", "release_lock"]
_ForkLockDispatcher = TwoExclusiveResourcesDispatcher()
| 30.254237 | 76 | 0.664986 |
4423940e7bf16fa7a158c1ac06a6349871fe59a2 | 2,410 | py | Python | my/core/error.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | my/core/error.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | my/core/error.py | thetomcraig/HPI | 5eecd8721dc0cbfc68040106bb7b540b1567dff3 | [
"MIT"
] | null | null | null | """
Various error handling helpers
See https://beepb00p.xyz/mypy-error-handling.html#kiss for more detail
"""
from itertools import tee
from typing import Union, TypeVar, Iterable, List, Tuple, Type
T = TypeVar('T')
E = TypeVar('E', bound=Exception) # TODO make covariant?
ResT = Union[T, E]
Res = ResT[T, Exception... | 24.1 | 120 | 0.573444 |
4426bbfc28bdebbc507707d96ca993bfc6cb31e2 | 1,158 | py | Python | Jira/CVE-2019-8451/__init__.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Jira/CVE-2019-8451/__init__.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Jira/CVE-2019-8451/__init__.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | import requests
import sys
# http://www.jas502n.com:8080/plugins/servlet/gadgets/makeRequest?url=http://www.jas502n.com:8080@www.baidu.com/
if __name__ == "__main__":
while True:
print
ssrf_url = raw_input(">>>>SSRF URL: ")
url = "https://jira.liulishuo.work"
ssrf_poc(url, ssrf_u... | 28.95 | 112 | 0.585492 |
442b82682f3eee1189a613f243e844bcbfce1414 | 62 | py | Python | tests/__init__.py | NickolasHKraus/statikos | 7d098760caa2ae8969801249c8c4761f02fd2372 | [
"MIT"
] | null | null | null | tests/__init__.py | NickolasHKraus/statikos | 7d098760caa2ae8969801249c8c4761f02fd2372 | [
"MIT"
] | null | null | null | tests/__init__.py | NickolasHKraus/statikos | 7d098760caa2ae8969801249c8c4761f02fd2372 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for statikos."""
| 20.666667 | 37 | 0.580645 |
442cb0c494deec67f842f872720e741951f3f855 | 867 | py | Python | lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/sql/tools/ssl_certs/__init__.py | bopopescu/google-cloud-sdk | b34e6a18f1e89673508166acce816111c3421e4b | [
"Apache-2.0"
] | 1 | 2020-07-24T20:04:47.000Z | 2020-07-24T20:04:47.000Z | # Copyright 2013 Google Inc. All Rights Reserved.
"""Provide commands for managing SSL certificates of Cloud SQL instances."""
from googlecloudsdk.calliope import base
| 27.967742 | 77 | 0.701269 |
442f2755025e74454cf096f990e2bed69c6dc5a7 | 5,981 | py | Python | SciDataTool/GUI/WVectorSelector/WVectorSelector.py | TinaTabo/SciDataTool | a1a51b104248d3e6d07006f2c3f2806b4589624e | [
"Apache-2.0"
] | null | null | null | SciDataTool/GUI/WVectorSelector/WVectorSelector.py | TinaTabo/SciDataTool | a1a51b104248d3e6d07006f2c3f2806b4589624e | [
"Apache-2.0"
] | null | null | null | SciDataTool/GUI/WVectorSelector/WVectorSelector.py | TinaTabo/SciDataTool | a1a51b104248d3e6d07006f2c3f2806b4589624e | [
"Apache-2.0"
] | null | null | null | from PySide2.QtWidgets import QWidget
from SciDataTool.GUI.WVectorSelector.Ui_WVectorSelector import Ui_WVectorSelector
from PySide2.QtCore import Signal
from PySide2.QtGui import QStandardItem
COMP_DICT = {
"radial": "radial",
"circumferential": "tangential",
"axial": "axial",
"x-axis component": "co... | 32.68306 | 97 | 0.582177 |
44306ec0cf33d83c853874a333ccf8829c102184 | 2,914 | py | Python | tezosetl/jobs/export_job.py | blockchain-etl/tezos-etl | ddc5ddb129f1289afd5c56c54ba4607d274b61de | [
"MIT"
] | 7 | 2020-06-07T11:28:00.000Z | 2022-01-17T19:07:06.000Z | tezosetl/jobs/export_job.py | blockchain-etl/tezos-etl | ddc5ddb129f1289afd5c56c54ba4607d274b61de | [
"MIT"
] | 1 | 2021-05-13T01:26:22.000Z | 2021-05-23T12:26:42.000Z | tezosetl/jobs/export_job.py | blockchain-etl/tezos-etl | ddc5ddb129f1289afd5c56c54ba4607d274b61de | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (c) 2020 Evgeny Medvedev, evge.medvedev@gmail.com
#
# 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
# ... | 40.472222 | 81 | 0.735415 |