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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15297f43a9cedd42da9b97021c8f787a4eb27e46 | 17,512 | py | Python | home_user/dj_iot/users/views.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 4 | 2020-06-04T08:43:54.000Z | 2021-11-15T17:29:23.000Z | home_user/dj_iot/users/views.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 3 | 2020-05-02T10:53:03.000Z | 2021-05-20T13:17:08.000Z | home_user/dj_iot/users/views.py | IoTree/IoTree42 | b7bb31f39add4e719a04e63cdd336983f8017137 | [
"MIT"
] | 3 | 2020-10-27T13:06:51.000Z | 2022-01-08T14:56:36.000Z |
"""
//Iotree42 sensor Network
//purpose: for handle requests and to process the wep pages
//used software: python3, django, time, datetime, rest_framework
//for hardware: Debian-Server
//design by Sebastian Stadler
//on behalf of the university of munich.
//NO WARRANTY AND NO LIABILITY
//use of the code at your own... | 39.8 | 119 | 0.600331 |
15299d729865a3bce0bda4fe56dd32f67a9cb475 | 4,506 | py | Python | art/classifiers/cnn.py | yalechang/adversarial-robustness-toolbox | df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57 | [
"MIT"
] | 1 | 2022-03-02T19:05:12.000Z | 2022-03-02T19:05:12.000Z | art/classifiers/cnn.py | yalechang/adversarial-robustness-toolbox | df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57 | [
"MIT"
] | null | null | null | art/classifiers/cnn.py | yalechang/adversarial-robustness-toolbox | df4efc86c3ed963c82687b3ab8cd5cdbd5fe5c57 | [
"MIT"
] | null | null | null | # MIT License
#
# Copyright (C) IBM Corporation 2018
#
# 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... | 42.509434 | 120 | 0.644918 |
152a22d4bca66cc2215242c3badf755c586421f1 | 5,380 | py | Python | promoterz/sequence/standard_loop.py | caux/japonicus | 3a9f000f1ff1eb01fa569b531ebf682dd73db90d | [
"MIT"
] | null | null | null | promoterz/sequence/standard_loop.py | caux/japonicus | 3a9f000f1ff1eb01fa569b531ebf682dd73db90d | [
"MIT"
] | null | null | null | promoterz/sequence/standard_loop.py | caux/japonicus | 3a9f000f1ff1eb01fa569b531ebf682dd73db90d | [
"MIT"
] | null | null | null | #!/bin/python
from deap import tools
from copy import deepcopy
import random
from deap import algorithms
import promoterz
import statistics
from .. import evolutionHooks
| 40.149254 | 113 | 0.69145 |
152be5684baefcb1596d9ac70a5e86c1b23ee43b | 1,675 | py | Python | docs/source/conf.py | vforgione/logging2 | 9d620c14d9b5f67e3dc285082330296cf1ecbfcd | [
"MIT"
] | 25 | 2017-05-01T10:24:21.000Z | 2022-03-30T18:07:47.000Z | docs/source/conf.py | vforgione/logging2 | 9d620c14d9b5f67e3dc285082330296cf1ecbfcd | [
"MIT"
] | 8 | 2017-05-01T05:50:31.000Z | 2020-06-29T00:51:17.000Z | docs/source/conf.py | vforgione/logging2 | 9d620c14d9b5f67e3dc285082330296cf1ecbfcd | [
"MIT"
] | 4 | 2019-03-07T15:07:40.000Z | 2022-01-05T14:52:21.000Z | #!/usr/bin/env python3
import codecs
import os
import re
import sys
sys.path.insert(0, os.path.abspath("../../logging2"))
# -- General configuration ------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_annotation",
]
templates_path = ["_templates"]
source... | 20.180723 | 87 | 0.552836 |
152d1cff312cd7c0d9d40008bb1d4a1b6465afe3 | 3,651 | py | Python | silksnake/api/eth.py | torquem-ch/silksnake | 68794838e8c2be036f158b2a842ba9201be610a3 | [
"Apache-2.0"
] | 3 | 2020-09-16T14:47:58.000Z | 2021-03-08T13:26:40.000Z | silksnake/api/eth.py | torquem-ch/silksnake | 68794838e8c2be036f158b2a842ba9201be610a3 | [
"Apache-2.0"
] | null | null | null | silksnake/api/eth.py | torquem-ch/silksnake | 68794838e8c2be036f158b2a842ba9201be610a3 | [
"Apache-2.0"
] | 1 | 2021-03-15T11:02:08.000Z | 2021-03-15T11:02:08.000Z | # -*- coding: utf-8 -*-
"""The API equivalent to Ethereum JSON RPC."""
from typing import Tuple, Union
from ..core.constants import HASH_SIZE
from ..core import chain, reader
from ..helpers import hashing
from ..remote import kv_remote
from ..rlp import sedes
from ..stagedsync import stages
# pylint: disable=broad-e... | 44.52439 | 119 | 0.672692 |
15306ffbef39ca8ee5c2ab4f5a0173b6cc547bab | 3,925 | py | Python | tox_add_factor/hooks.py | jayvdb/tox-add-factor | 38742451c74a7655592d6930f8f365574cb13ee7 | [
"MIT"
] | 1 | 2020-12-17T11:14:00.000Z | 2020-12-17T11:14:00.000Z | tox_add_factor/hooks.py | jayvdb/tox-add-factor | 38742451c74a7655592d6930f8f365574cb13ee7 | [
"MIT"
] | 3 | 2020-10-15T14:49:04.000Z | 2020-10-20T07:49:25.000Z | tox_add_factor/hooks.py | jayvdb/tox-add-factor | 38742451c74a7655592d6930f8f365574cb13ee7 | [
"MIT"
] | null | null | null | """Tox hook implementations."""
from __future__ import print_function
import os
import tox
try:
from tox.reporter import warning
except ImportError:
warning = lambda s: None
from .envlist import add_factors, AFTER, BEFORE
| 31.910569 | 103 | 0.637452 |
1530d85391603c1e9fcd521da0d319ec5ab96b05 | 6,704 | py | Python | EAC-code/Commitment.py | kvakil/BulletProofLib | 0cf22deff1746c03f16c3fb62541c5c02990bb3b | [
"MIT"
] | 162 | 2017-11-17T09:46:36.000Z | 2022-03-31T09:32:28.000Z | EAC-code/Commitment.py | GENERALBYTESCOM/BulletProofLib | fd154f28c1729f7f9bd20aa6bed10c952ade4e49 | [
"MIT"
] | 2 | 2017-11-22T20:05:11.000Z | 2019-08-29T10:36:15.000Z | EAC-code/Commitment.py | GENERALBYTESCOM/BulletProofLib | fd154f28c1729f7f9bd20aa6bed10c952ade4e49 | [
"MIT"
] | 56 | 2017-11-23T05:25:43.000Z | 2022-02-23T07:53:48.000Z | from petlib.ec import EcGroup,EcPt
from petlib.ec import _FFI,_C
from petlib.bn import Bn
from hashlib import sha256
#from memory_profiler import profile
def commitment_key_gen(n, trap=None,nid=714): #713 std, 415/714
'''Generates a key for a pedersen-like multicommitment.
It outputs a ECgroup specified by n... | 35.659574 | 163 | 0.641706 |
15311f6820c17879300a6f94c1498f7a667b022d | 692 | py | Python | saleor/graphql/core/enums.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 1 | 2019-05-02T17:24:05.000Z | 2019-05-02T17:24:05.000Z | saleor/graphql/core/enums.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 5 | 2021-03-09T16:22:37.000Z | 2022-02-10T19:10:03.000Z | saleor/graphql/core/enums.py | acabezasg/urpi-master | 7c9cd0fbe6d89dad70652482712ca38b21ba6f84 | [
"BSD-3-Clause"
] | 1 | 2020-12-26T10:25:37.000Z | 2020-12-26T10:25:37.000Z | import graphene
from ...core import TaxRateType as CoreTaxRateType
from ...core.permissions import MODELS_PERMISSIONS
from ...core.weight import WeightUnits
from .utils import str_to_enum
TaxRateType = graphene.Enum(
'TaxRateType',
[(str_to_enum(rate[0]), rate[0]) for rate in CoreTaxRateType.CHOICES])
Per... | 24.714286 | 74 | 0.719653 |
153292a4a8a88ea30635e34be38a7e56a8a80956 | 7,208 | py | Python | blseg/backbone/resnet.py | linbo0518/LLSeg | 38b6715f2b7be80ac77d8eaa17f73db3f7b01c75 | [
"MIT"
] | 40 | 2019-04-22T14:14:52.000Z | 2022-01-14T10:18:21.000Z | blseg/backbone/resnet.py | linbo0518/LLSeg | 38b6715f2b7be80ac77d8eaa17f73db3f7b01c75 | [
"MIT"
] | 2 | 2021-06-02T13:55:31.000Z | 2021-07-27T05:41:47.000Z | blseg/backbone/resnet.py | linbo0518/LLSeg | 38b6715f2b7be80ac77d8eaa17f73db3f7b01c75 | [
"MIT"
] | 3 | 2019-07-28T09:57:51.000Z | 2020-09-29T07:39:10.000Z | import torch
from torch import nn
from .utils import conv3x3
from .base import BackboneBaseModule
__all__ = [
"ResNet34",
"ResNet50S",
]
| 35.683168 | 79 | 0.54939 |
153300f99e7af47597a5718315278775fa25acbe | 64 | py | Python | setup.py | betoesquivel/PyData29-DataAnalyticsWithAWSLambda | 318d1f595e4079544159a0f4802277dc5b25cb47 | [
"MIT"
] | 4 | 2016-12-06T20:22:28.000Z | 2018-05-04T09:51:45.000Z | setup.py | betoesquivel/PyData29-DataAnalyticsWithAWSLambda | 318d1f595e4079544159a0f4802277dc5b25cb47 | [
"MIT"
] | null | null | null | setup.py | betoesquivel/PyData29-DataAnalyticsWithAWSLambda | 318d1f595e4079544159a0f4802277dc5b25cb47 | [
"MIT"
] | 1 | 2021-11-05T22:17:01.000Z | 2021-11-05T22:17:01.000Z | #!/usr/bin/env python
import sys
sys.path = ['lib/'] + sys.path
| 16 | 30 | 0.640625 |
1534543e156931eab7224fef982035431ba8c699 | 503 | py | Python | stlearn/tools/microenv/cci/r_helpers.py | duypham2108/stLearn | 91b6bae91b29aba8b4f055bf92da13f1558ddbe8 | [
"BSD-3-Clause"
] | null | null | null | stlearn/tools/microenv/cci/r_helpers.py | duypham2108/stLearn | 91b6bae91b29aba8b4f055bf92da13f1558ddbe8 | [
"BSD-3-Clause"
] | null | null | null | stlearn/tools/microenv/cci/r_helpers.py | duypham2108/stLearn | 91b6bae91b29aba8b4f055bf92da13f1558ddbe8 | [
"BSD-3-Clause"
] | 1 | 2019-12-12T12:46:55.000Z | 2019-12-12T12:46:55.000Z | """
Helper functions for porting R code into python/stLearn.
"""
import os
ro = None
pandas2ri = None
localconverter = None
def rpy2_setup(r_path):
"""Sets up rpy2."""
os.environ["R_HOME"] = r_path
import rpy2.robjects as robjects_
from rpy2.robjects import pandas2ri as pandas2ri_
from rpy2.rob... | 20.958333 | 74 | 0.729622 |
1535835675e5bdbdd9ebedbf81f869ade75e556f | 2,152 | py | Python | src/mutation_waterfall/plot.py | dohlee/python-mutation-waterfall | 642f13884986df6df82419edbbb0cb2ff396adc7 | [
"MIT"
] | 1 | 2019-05-02T01:59:35.000Z | 2019-05-02T01:59:35.000Z | src/mutation_waterfall/plot.py | dohlee/python-mutation-waterfall | 642f13884986df6df82419edbbb0cb2ff396adc7 | [
"MIT"
] | null | null | null | src/mutation_waterfall/plot.py | dohlee/python-mutation-waterfall | 642f13884986df6df82419edbbb0cb2ff396adc7 | [
"MIT"
] | 3 | 2020-08-19T19:46:28.000Z | 2021-10-17T21:03:24.000Z | import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
import numpy as np
import mutation_waterfall.preprocess as preprocess
def plot(mutation_list_file, n_genes=30, ax=None, file=None):
"""Generates a waterfall plot describing mutational landscape of samples.
Args:
mutation_list_fil... | 31.647059 | 128 | 0.657528 |
1536ddab0c3e440ac09a7120c95386059693e88a | 1,730 | py | Python | leetcode/381.Insert-Delete-GetRandom-Duplicates-allowed.py | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | 1 | 2020-04-04T14:56:12.000Z | 2020-04-04T14:56:12.000Z | leetcode/381.Insert-Delete-GetRandom-Duplicates-allowed.py | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | leetcode/381.Insert-Delete-GetRandom-Duplicates-allowed.py | sogapalag/problems | 0ea7d65448e1177f8b3f81124a82d187980d659c | [
"MIT"
] | null | null | null | import random
from collections import defaultdict
# Your RandomizedCollection object will be instantiated and called as such:
# obj = RandomizedCollection()
# param_1 = obj.insert(val)
# param_2 = obj.remove(val)
# param_3 = obj.getRandom()
| 30.350877 | 121 | 0.571676 |
15370089ce5fcb552e4d40b96066b973e9871c2f | 553 | py | Python | Python-code-snippets-201-300/287-pywebview-display-text-and-image.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | Python-code-snippets-201-300/287-pywebview-display-text-and-image.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | Python-code-snippets-201-300/287-pywebview-display-text-and-image.py | abartoha/python-snippets-ref | 04e4feada96077f0e849b277204c012194e8fbcd | [
"Unlicense"
] | null | null | null | """Code snippets vol-58
287-pywebview display text and image.
Requires:
pip3 install pywebview
display_txt_img.html
and model.jpg both in cwd.
Origin:
https://github.com/r0x0r/pywebview/tree/master/examples
"""
import webview
if __name__ == '__main__':
master_window = webview.create_window('Pywebview-text an... | 25.136364 | 77 | 0.59132 |
153723abc4a87465acdbe4e0af24e7f4398d265c | 460 | py | Python | pynsett/examples/discourse_example.py | fractalego/python-nlulite | 982b780adedebf2c8a1e119f0f8b46ae72a9c384 | [
"MIT"
] | 26 | 2019-01-12T21:52:36.000Z | 2022-03-30T11:28:52.000Z | pynsett/examples/discourse_example.py | fractalego/python-nlulite | 982b780adedebf2c8a1e119f0f8b46ae72a9c384 | [
"MIT"
] | 2 | 2022-02-04T12:03:10.000Z | 2022-02-09T13:24:07.000Z | pynsett/examples/discourse_example.py | fractalego/python-nlulite | 982b780adedebf2c8a1e119f0f8b46ae72a9c384 | [
"MIT"
] | 3 | 2019-08-18T18:45:48.000Z | 2022-02-04T11:39:38.000Z | import os
from pynsett.discourse import Discourse
from pynsett.extractor import Extractor
from pynsett.knowledge import Knowledge
_path = os.path.dirname(__file__)
text = "Jane was born on 10 August 1979."
knowledge = Knowledge()
knowledge.add_rules(open(os.path.join(_path, '../rules/test.rules')).read())
discours... | 23 | 76 | 0.771739 |
15385c2c32a27dc2532eed862036074f470c9bb8 | 6,861 | py | Python | nombrar_numero.py | roberpot/python-nombrar-numero | 135df1822acd0480f7bbe3602d85c1615c509c71 | [
"Apache-2.0"
] | null | null | null | nombrar_numero.py | roberpot/python-nombrar-numero | 135df1822acd0480f7bbe3602d85c1615c509c71 | [
"Apache-2.0"
] | null | null | null | nombrar_numero.py | roberpot/python-nombrar-numero | 135df1822acd0480f7bbe3602d85c1615c509c71 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Roberto Garca Carvajal
#
# 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 appl... | 34.134328 | 80 | 0.56741 |
15388b76c9881d845bcff748e013ef5c592637d8 | 141,183 | py | Python | openzgy/test/black.py | equinor/pyzgy | 94cd3d9050c3027d042a83b98779da9182041137 | [
"Apache-2.0"
] | null | null | null | openzgy/test/black.py | equinor/pyzgy | 94cd3d9050c3027d042a83b98779da9182041137 | [
"Apache-2.0"
] | null | null | null | openzgy/test/black.py | equinor/pyzgy | 94cd3d9050c3027d042a83b98779da9182041137 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
"""
Black-box end to end tests for OpenZGY.
If the old ZGY-Public Python module is available, several of the
tests will be run both on the old and the new implementation to
verify that they mach. This is a bit messy. Because there are some
known bugs in the old code and some deliberate changes ... | 45.048819 | 219 | 0.613289 |
1539cf3e5cae3c14764559eae2f60b5775ee8b16 | 450 | py | Python | setup.py | sebasgverde/music-geometry-eval | 24a1267282c85bcf4c97dba33e6975e038994ccc | [
"MIT"
] | 2 | 2021-11-06T01:45:40.000Z | 2022-01-10T00:16:04.000Z | setup.py | sebasgverde/music-geometry-eval | 24a1267282c85bcf4c97dba33e6975e038994ccc | [
"MIT"
] | null | null | null | setup.py | sebasgverde/music-geometry-eval | 24a1267282c85bcf4c97dba33e6975e038994ccc | [
"MIT"
] | 1 | 2021-11-05T21:55:47.000Z | 2021-11-05T21:55:47.000Z | from setuptools import setup
setup(name='music_geometry_eval',
version='2.0',
description='A python library to automatically evaluate music tonality based on geometry',
url='https://github.com/sebasgverde/music-geometry-eval',
author='Sebastian Garcia Valencia',
author_email='sebasgverde@g... | 37.5 | 96 | 0.695556 |
1539da9dfc5706c48e724fafc184cafaf0ce8a5d | 783 | py | Python | nbdevminimum/_nbdev.py | Isaac-Flath/nbdev_minimum | 2ed888bdbf672bb3ace8b09a6a5955536c0c4b4c | [
"Apache-2.0"
] | 1 | 2021-06-02T14:22:22.000Z | 2021-06-02T14:22:22.000Z | nbdevminimum/_nbdev.py | Isaac-Flath/nbdev_minimum | 2ed888bdbf672bb3ace8b09a6a5955536c0c4b4c | [
"Apache-2.0"
] | null | null | null | nbdevminimum/_nbdev.py | Isaac-Flath/nbdev_minimum | 2ed888bdbf672bb3ace8b09a6a5955536c0c4b4c | [
"Apache-2.0"
] | 1 | 2021-08-11T08:51:36.000Z | 2021-08-11T08:51:36.000Z | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"get_module_text": "00_nb2module.ipynb",
"write_module_text": "00_nb2module.ipynb",
"clear_all_modules": "00_nb2module.ipynb",
"simple_export_one_nb": "00_nb2module.ipynb",
... | 34.043478 | 70 | 0.671775 |
1539f874694fa29d5e5b0f1fdffa08f018772b5b | 3,041 | py | Python | D/D.py | budes/Exploracao-Tkinter | 594c13e8c6765dc3bc673360c423a4b47c91f197 | [
"MIT"
] | null | null | null | D/D.py | budes/Exploracao-Tkinter | 594c13e8c6765dc3bc673360c423a4b47c91f197 | [
"MIT"
] | null | null | null | D/D.py | budes/Exploracao-Tkinter | 594c13e8c6765dc3bc673360c423a4b47c91f197 | [
"MIT"
] | null | null | null | from tkinter import *
from functools import partial
from PIL import Image, ImageTk
Calculadora() | 23.037879 | 78 | 0.541927 |
153c2c1e71181268aa8af58caed4e86170ecfd56 | 8,970 | py | Python | forum/views.py | RAGNAROSaa/- | 833688d556ecc70570a9b464160271ace07380d9 | [
"Apache-2.0"
] | 5 | 2016-09-25T02:59:13.000Z | 2018-07-18T05:20:58.000Z | forum/views.py | RAGNAROSaa/- | 833688d556ecc70570a9b464160271ace07380d9 | [
"Apache-2.0"
] | 1 | 2016-12-01T01:11:53.000Z | 2016-12-01T01:11:53.000Z | forum/views.py | RAGNAROSaa/- | 833688d556ecc70570a9b464160271ace07380d9 | [
"Apache-2.0"
] | 6 | 2016-09-24T02:42:57.000Z | 2016-11-10T13:35:13.000Z | from django.core.urlresolvers import reverse_lazy, reverse
from forum.models import Category, Question, Answer
from utils.mixin import AjaxableResponseMixin
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.list import ListView
from django.views.generic.detail import Det... | 36.024096 | 117 | 0.711037 |
153c5a92885b746b060d7efec75186cdd76b342c | 191 | py | Python | src/src/tensortools/dataset.py | ychnlgy/LipoWithGradients | 4fe5228a3dae8bf5d457eef6191ba29314421f6b | [
"MIT"
] | 1 | 2021-08-19T14:28:45.000Z | 2021-08-19T14:28:45.000Z | src/src/tensortools/dataset.py | ychnlgy/LipoWithGradients | 4fe5228a3dae8bf5d457eef6191ba29314421f6b | [
"MIT"
] | null | null | null | src/src/tensortools/dataset.py | ychnlgy/LipoWithGradients | 4fe5228a3dae8bf5d457eef6191ba29314421f6b | [
"MIT"
] | 1 | 2022-03-11T07:20:06.000Z | 2022-03-11T07:20:06.000Z | import torch.utils
| 27.285714 | 59 | 0.73822 |
153d2187272b61b32c8f115e4dcaad581d8b6ca8 | 660 | py | Python | SearaLib/disc_math.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | SearaLib/disc_math.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | SearaLib/disc_math.py | searayeah/sublime-snippets | deff53a06948691cd5e5d7dcfa85515ddd8fab0b | [
"MIT"
] | null | null | null | import math
def combinations(n, k):
"""
Unordered, w / o repetitions
From n choose k
"""
return math.factorial(n) / (math.factorial(k) * math.factorial(n - k))
def combinations_with_repetitions(n, k):
"""
Unordered, w / repetitions
, delimiters
"""
return combinations(k... | 17.837838 | 74 | 0.60303 |
153de60f15200b47d13663f570f455c6ffc287dc | 9,297 | py | Python | packings_list.py | kilimetr/zkouska | 859a3b7918d76a70cf794e06c08390a2ae807880 | [
"BSD-3-Clause-Attribution"
] | null | null | null | packings_list.py | kilimetr/zkouska | 859a3b7918d76a70cf794e06c08390a2ae807880 | [
"BSD-3-Clause-Attribution"
] | null | null | null | packings_list.py | kilimetr/zkouska | 859a3b7918d76a70cf794e06c08390a2ae807880 | [
"BSD-3-Clause-Attribution"
] | null | null | null | # author Dominik Capkovic
# contact: domcapkovic@gmail.com; https://www.linkedin.com/in/dominik-apkovi-b0ab8575/
# GitHub: https://github.com/kilimetr
packings_str = '''
Raschig Super-Ring | metal | 0.3 | 180000 | 315.0 | 0.960 | 3.560 | 2.340 | 0.750 | 0.760 | 1.500 | 0.450
Raschig Super-Ring | metal... | 75.585366 | 116 | 0.482414 |
153e2a6848b0234f1f714c484bd4989e7dfd3df7 | 117 | py | Python | mmdet/ops/__init__.py | GuoBo98/ShipDet | 2979c39c5a56be3b99ba77833cfe556a8a0fc97e | [
"Apache-2.0"
] | null | null | null | mmdet/ops/__init__.py | GuoBo98/ShipDet | 2979c39c5a56be3b99ba77833cfe556a8a0fc97e | [
"Apache-2.0"
] | null | null | null | mmdet/ops/__init__.py | GuoBo98/ShipDet | 2979c39c5a56be3b99ba77833cfe556a8a0fc97e | [
"Apache-2.0"
] | null | null | null | from .roi_align_rotated import RoIAlignRotated, roi_align_rotated
__all__ = ['RoIAlignRotated', 'roi_align_rotated'] | 39 | 65 | 0.837607 |
15407f3fe8f1c7f69d1779e6d91d10fdf27f7862 | 3,779 | py | Python | subprojects/sno-snapshot/src/common.py | openshift-psap/gpu-burst | cae1c71737c72caf0e980aa6361aeb0c145b4df3 | [
"Apache-2.0"
] | 1 | 2020-07-09T22:30:56.000Z | 2020-07-09T22:30:56.000Z | subprojects/sno-snapshot/src/common.py | openshift-psap/gpu-burst | cae1c71737c72caf0e980aa6361aeb0c145b4df3 | [
"Apache-2.0"
] | null | null | null | subprojects/sno-snapshot/src/common.py | openshift-psap/gpu-burst | cae1c71737c72caf0e980aa6361aeb0c145b4df3 | [
"Apache-2.0"
] | 1 | 2020-07-09T22:30:59.000Z | 2020-07-09T22:30:59.000Z | import time, datetime
import urllib3
print("Importing OpenShift/Kubernetes packages ...")
import kubernetes
import ocp_resources
import openshift
import ocp_resources.node
import ocp_resources.machine
import openshift.dynamic
print("Importing AWS boto3 ...")
import boto3
import botocore
client_k8s = None
client_... | 27.583942 | 103 | 0.663668 |
1545108723e1d95162092c28d39a13b5a922862e | 2,053 | py | Python | docs/examples/code/serialization.py | pombredanne/mogwai-2 | 536650c8abf5befac4269410fdfac5626be02a23 | [
"Apache-2.0"
] | 43 | 2015-09-17T14:13:17.000Z | 2017-06-18T17:45:40.000Z | docs/examples/code/serialization.py | pombredanne/mogwai-2 | 536650c8abf5befac4269410fdfac5626be02a23 | [
"Apache-2.0"
] | 20 | 2015-09-17T17:25:16.000Z | 2020-04-20T15:17:43.000Z | docs/examples/code/serialization.py | pombredanne/mogwai-2 | 536650c8abf5befac4269410fdfac5626be02a23 | [
"Apache-2.0"
] | 13 | 2015-10-12T09:35:43.000Z | 2022-01-10T23:55:12.000Z | from mogwai.connection import setup
from mogwai.models import Vertex, Edge
from mogwai import properties
from mogwai import relationships
from mogwai._compat import print_
import datetime
from pytz import utc
from functools import partial
import pickle
setup('127.0.0.1')
## Creation
# Create a trinket
trinket = ... | 28.915493 | 79 | 0.758402 |
1545bae10e175ce363c87f5e99b847280194257d | 1,877 | py | Python | Practice_Itertools/Permutations_Combinations.py | SugaanthMohan/Python_Tools | 7772d4832fb6aa80befa7bb7961ee9a5987f7b48 | [
"Unlicense"
] | 2 | 2020-10-05T14:06:51.000Z | 2021-04-02T04:39:48.000Z | Practice_Itertools/Permutations_Combinations.py | SugaanthMohan/Python_Tools | 7772d4832fb6aa80befa7bb7961ee9a5987f7b48 | [
"Unlicense"
] | null | null | null | Practice_Itertools/Permutations_Combinations.py | SugaanthMohan/Python_Tools | 7772d4832fb6aa80befa7bb7961ee9a5987f7b48 | [
"Unlicense"
] | 1 | 2019-08-20T11:01:37.000Z | 2019-08-20T11:01:37.000Z | import itertools
def test_product_combinator(container_, repeat_times):
"""
cartesian product, equivalent to a nested for-loop
product('ABCD', repeat=2)
AA AB AC AD BA BB BC BD CA CB CC CD DA DB DC DD
"""
return list(itertools.product(container_, repeat=repeat_times))
def test_permutation_... | 24.376623 | 125 | 0.626532 |
154643bad32b0b2a24af7c2c4e6381e45fcf7cf0 | 1,922 | py | Python | test/test_cram.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | test/test_cram.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | test/test_cram.py | Indy2222/mbg-codon-usage | d415076a8150cd712010c0389c71ef22ba9ad850 | [
"MIT"
] | null | null | null | from cdnu.ccds import CdsPos, load_ccds
from cdnu.cram import load_cds_list
| 33.137931 | 78 | 0.612383 |
154822303284556e43d319547825ccd2f3e0fac4 | 622 | py | Python | figet/Optim.py | nlpAThits/figet | f628973bfdd49d8b95030c93787d52f07fd1fcb3 | [
"MIT"
] | 16 | 2018-04-19T23:54:10.000Z | 2021-06-28T15:35:40.000Z | figet/Optim.py | nlpAThits/figet | f628973bfdd49d8b95030c93787d52f07fd1fcb3 | [
"MIT"
] | 3 | 2018-06-17T20:50:52.000Z | 2019-05-18T08:04:32.000Z | figet/Optim.py | nlpAThits/figet | f628973bfdd49d8b95030c93787d52f07fd1fcb3 | [
"MIT"
] | 2 | 2019-04-07T19:17:28.000Z | 2020-02-07T15:19:46.000Z | #!/usr/bin/env python
# encoding: utf-8
import torch.optim as optim
from torch.nn.utils import clip_grad_norm
| 24.88 | 60 | 0.66881 |
15496d9beace3067196af6dad11d3e5b49c379cc | 1,033 | py | Python | setup.py | OvalMoney/horus | 90d839e9465f5089fa2632dad9f28190db3a829b | [
"MIT"
] | 2 | 2020-07-17T07:43:53.000Z | 2020-12-03T11:14:59.000Z | setup.py | OvalMoney/horus | 90d839e9465f5089fa2632dad9f28190db3a829b | [
"MIT"
] | 1 | 2020-01-27T15:49:33.000Z | 2020-01-27T15:49:33.000Z | setup.py | OvalMoney/horus | 90d839e9465f5089fa2632dad9f28190db3a829b | [
"MIT"
] | 2 | 2020-07-17T07:44:04.000Z | 2020-12-01T11:10:00.000Z | import io
from setuptools import setup, find_packages
setup(
name="nephthys",
description="Advanced Python Logger",
long_description=make_long_description(),
long_description_content_type="text/markdown",
version="1.0.2",
author="Fabio Todaro",
license="MIT",
author_email="ft@ovalmon... | 29.514286 | 76 | 0.64666 |
154c465ae5c00585f053431c72e2c927627c992c | 1,420 | py | Python | inlineplz/linters/rflint.py | CtrlZvi/inline-plz | 208195372a8138dce78a165dd8410a8ce15aea80 | [
"0BSD"
] | 30 | 2016-01-11T18:43:38.000Z | 2022-01-29T19:09:53.000Z | inlineplz/linters/rflint.py | CtrlZvi/inline-plz | 208195372a8138dce78a165dd8410a8ce15aea80 | [
"0BSD"
] | 237 | 2016-01-09T23:01:19.000Z | 2022-03-01T16:12:10.000Z | inlineplz/linters/rflint.py | CtrlZvi/inline-plz | 208195372a8138dce78a165dd8410a8ce15aea80 | [
"0BSD"
] | 14 | 2016-01-19T00:51:52.000Z | 2022-01-12T20:49:31.000Z | # -*- coding: utf-8 -*-
import sys
from ..decorators import linter
from ..parsers.base import ParserBase
| 30.212766 | 86 | 0.48169 |
154e0a5afabdd063dcf184a1b9ec15c5e991fb02 | 6,676 | py | Python | catnip/client.py | google/catnip | 0b8c8c5f93e32931c97a561180c70c9480462717 | [
"Apache-2.0"
] | 24 | 2015-01-15T02:31:52.000Z | 2021-08-10T08:46:03.000Z | catnip/client.py | google/catnip | 0b8c8c5f93e32931c97a561180c70c9480462717 | [
"Apache-2.0"
] | 1 | 2018-01-10T08:37:02.000Z | 2018-01-10T08:45:45.000Z | catnip/client.py | google/catnip | 0b8c8c5f93e32931c97a561180c70c9480462717 | [
"Apache-2.0"
] | 11 | 2015-03-05T09:22:27.000Z | 2021-09-05T09:31:01.000Z | # Copyright 2014 Google Inc. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | 34.590674 | 80 | 0.603805 |
154e8533b41f0ce6ac61c16ecbfbb8ffcbee0f6b | 1,618 | py | Python | seminar2/rules.py | savineugenioan/rau-mas-ai | ddab8979fca0fe6f6f42bcc273be75b159185607 | [
"Apache-2.0"
] | null | null | null | seminar2/rules.py | savineugenioan/rau-mas-ai | ddab8979fca0fe6f6f42bcc273be75b159185607 | [
"Apache-2.0"
] | null | null | null | seminar2/rules.py | savineugenioan/rau-mas-ai | ddab8979fca0fe6f6f42bcc273be75b159185607 | [
"Apache-2.0"
] | null | null | null | #IF () THEN ()
#IF direction = left THEN position = (-1, 0)
M = 30
N = 30
RULES = [
Rule(
RuleAntecedent(direction="left", world=(-1, 0, 0)),
RuleConsequent(position=(-1, 0), direction=None)
),
Rule(
RuleAntecedent(direction="left", world=(-1, 0, 1)),
RuleConsequent(posi... | 27.896552 | 59 | 0.596415 |
154fe42eadedd30b52e9d409a81aab4ed1b44894 | 437 | py | Python | test/dom/ext/test_single_elements.py | jkloth/pyxml | de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d | [
"MIT"
] | 2 | 2018-05-28T23:01:20.000Z | 2018-05-29T03:59:38.000Z | test/dom/ext/test_single_elements.py | jkloth/pyxml | de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d | [
"MIT"
] | null | null | null | test/dom/ext/test_single_elements.py | jkloth/pyxml | de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d | [
"MIT"
] | null | null | null |
if __name__ == '__main__':
import sys
inFile = sys.stdin
if len(sys.argv) == 2:
inFile = open(sys.argv[1],'r')
test(inFile)
| 15.068966 | 42 | 0.643021 |
155087d21e98b773714728f3ab09117912df0457 | 1,455 | py | Python | app/models/project.py | lguobin/KB_API | f7180cf430cb8de2eac8fa78e3937666da950c7a | [
"Apache-2.0"
] | null | null | null | app/models/project.py | lguobin/KB_API | f7180cf430cb8de2eac8fa78e3937666da950c7a | [
"Apache-2.0"
] | null | null | null | app/models/project.py | lguobin/KB_API | f7180cf430cb8de2eac8fa78e3937666da950c7a | [
"Apache-2.0"
] | null | null | null | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2021/08/09 11:32:25
# @File : project.py
# @Author : K.B.Lam
# @Version : 1.0
from .base import _BaseModel
from app.extensions import db
from app.models.tools import get_username
| 33.068182 | 99 | 0.601375 |
1550c30a3bf09658744df4a415c92773c8c8951d | 5,542 | py | Python | labellab-flask/api/controllers/classificationscontroller.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | 70 | 2019-01-25T19:16:00.000Z | 2022-03-23T14:37:28.000Z | labellab-flask/api/controllers/classificationscontroller.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | 350 | 2019-01-30T10:50:34.000Z | 2022-03-31T19:58:44.000Z | labellab-flask/api/controllers/classificationscontroller.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | 140 | 2019-01-30T08:53:35.000Z | 2022-03-25T15:37:12.000Z | from flask.views import MethodView
from flask import request, make_response, jsonify, current_app
from flask_jwt_extended import (jwt_required, get_jwt_identity, get_raw_jwt)
from datetime import datetime
from api.helpers.classification import (
get_classified_data, find_by_id, find_all_by_id, save_image, save_to_... | 32.034682 | 90 | 0.576326 |
1551460d8250cc7f9570e1158c0116db59b95164 | 684 | py | Python | cluster/views.py | zhenyit/django-data-mining | 8739dba912e8bd6e9ef7571099fb3cb229ecd0d0 | [
"MIT"
] | 7 | 2019-08-07T03:30:43.000Z | 2019-08-07T19:40:24.000Z | cluster/views.py | zhenyit/Django-Python-Server | 8739dba912e8bd6e9ef7571099fb3cb229ecd0d0 | [
"MIT"
] | null | null | null | cluster/views.py | zhenyit/Django-Python-Server | 8739dba912e8bd6e9ef7571099fb3cb229ecd0d0 | [
"MIT"
] | 1 | 2019-08-06T17:40:40.000Z | 2019-08-06T17:40:40.000Z | from django.shortcuts import render
# Create your views here.
from django.http import HttpResponse
from django.http import JsonResponse
from django.core import serializers
from . import models
import numpy as np
from sklearn.cluster import KMeans | 25.333333 | 69 | 0.678363 |
15514b08bd5a63930470922fc566fbf8d19309de | 412 | py | Python | setup.py | ebenolson/loadconfig | e16962a0934f64ad7c36e3c0aee2c9e867687b80 | [
"MIT"
] | 7 | 2016-07-11T16:49:47.000Z | 2021-04-25T10:55:41.000Z | setup.py | ebenolson/loadconfig | e16962a0934f64ad7c36e3c0aee2c9e867687b80 | [
"MIT"
] | 3 | 2016-01-22T23:21:09.000Z | 2018-09-01T07:58:13.000Z | setup.py | ebenolson/loadconfig | e16962a0934f64ad7c36e3c0aee2c9e867687b80 | [
"MIT"
] | 3 | 2016-01-06T00:58:49.000Z | 2020-01-10T14:32:43.000Z | #!/usr/bin/env python
# Create wheel with: python setup.py bdist_wheel
# Install with: pip install -U dist/loadconfig-*.whl
from os import environ
from re import sub
from setuptools import setup
for line in open('loadconfig/__init__.py'):
if line.startswith('__version__'):
version = sub(".+'(.+?)'\... | 25.75 | 58 | 0.686893 |
1551ac1a6a79309991708839cd5a99e957a025cb | 6,263 | py | Python | pycdr/pycdr.py | wlchin/pycdr | 96e64a05f1b84fd01fbb003d3256e297d6492df4 | [
"MIT"
] | null | null | null | pycdr/pycdr.py | wlchin/pycdr | 96e64a05f1b84fd01fbb003d3256e297d6492df4 | [
"MIT"
] | null | null | null | pycdr/pycdr.py | wlchin/pycdr | 96e64a05f1b84fd01fbb003d3256e297d6492df4 | [
"MIT"
] | null | null | null |
import numpy as np
import scipy.sparse as ss
import logging
import time
import warnings
from .feature_selection import get_significant_genes
from .feature_selection import calculate_minmax
warnings.simplefilter("ignore")
logging.basicConfig(format='%(process)d - %(levelname)s : %(asctime)s - %(message)s', level=logg... | 31.315 | 111 | 0.653201 |
15530d060380d749b116a3b7a27afff3e009ff61 | 1,925 | py | Python | commands.py | fivunlm/sbb8 | 9493cfb9d799b57ae4b3bb8a44672fa92736881e | [
"MIT"
] | null | null | null | commands.py | fivunlm/sbb8 | 9493cfb9d799b57ae4b3bb8a44672fa92736881e | [
"MIT"
] | null | null | null | commands.py | fivunlm/sbb8 | 9493cfb9d799b57ae4b3bb8a44672fa92736881e | [
"MIT"
] | null | null | null | import re
from feed import get_builds
COMMANDS = [
{
'regex': re.compile(r'\.do check builds(\s*)'),
'command': command_check_builds
},
{
'regex': re.compile(r'\.do check build ([\w.-]+)'),
'command': command_check_specific_build
}
]
| 32.627119 | 105 | 0.607792 |
15532dfb542002fe8f2372645ba607827e292a39 | 2,124 | py | Python | src/NLP/NLP.py | dinispeixoto/Kaydara | 5a22be3f9e931a00f3f3c9bcd1dbda8e1cce0b4d | [
"MIT"
] | null | null | null | src/NLP/NLP.py | dinispeixoto/Kaydara | 5a22be3f9e931a00f3f3c9bcd1dbda8e1cce0b4d | [
"MIT"
] | 3 | 2021-02-08T20:22:41.000Z | 2022-03-25T14:38:24.000Z | src/NLP/NLP.py | dinispeixoto/Kaydara | 5a22be3f9e931a00f3f3c9bcd1dbda8e1cce0b4d | [
"MIT"
] | null | null | null | from src.APIs import IBMWatsonAPI, FacebookAPI
from src.NLP import ReminderNLP, WeatherNLP, NewsNLP, GmailNLP, CalendarNLP
from src.MsgBuilder import NLPMB
from src.Models import Client
import json
# processes the client message and select the related API
# process a received quick_reply
# method select the correct... | 30.782609 | 107 | 0.702919 |
1555ea7d41c4bf7bec602435933ff7dd2f16b76a | 1,043 | py | Python | src/tale/runtime/objects.py | tale-lang/tale | 1779f94aa13545e58a1d5a8819b85ad02ada4144 | [
"MIT"
] | 17 | 2020-02-11T10:38:19.000Z | 2020-09-22T16:36:25.000Z | src/tale/runtime/objects.py | tale-lang/tale | 1779f94aa13545e58a1d5a8819b85ad02ada4144 | [
"MIT"
] | 18 | 2020-02-14T20:36:25.000Z | 2020-05-26T21:52:46.000Z | src/tale/runtime/objects.py | tale-lang/tale | 1779f94aa13545e58a1d5a8819b85ad02ada4144 | [
"MIT"
] | 1 | 2020-02-16T12:04:07.000Z | 2020-02-16T12:04:07.000Z | from typing import Any
TaleType = TaleObject(None, None)
TaleType.type = TaleType
TaleString = TaleObject(TaleType, str)
TaleString.name = TaleObject(TaleString, 'String')
TaleType.name = TaleObject(TaleString, 'Type')
TaleNone = TaleObject(None, None, TaleObject(TaleString, 'None'))
TaleInt = TaleObject(TaleType... | 28.189189 | 74 | 0.685523 |
15584c787333f66306e7fcabad2c6a63a9103c83 | 666 | py | Python | src/genderumrevelio/misc/jsonfilter.py | Conan88/GenderumRevelio | 6e047dba990ff6c7ae05fd8ee8388487c6d32ea9 | [
"MIT"
] | null | null | null | src/genderumrevelio/misc/jsonfilter.py | Conan88/GenderumRevelio | 6e047dba990ff6c7ae05fd8ee8388487c6d32ea9 | [
"MIT"
] | null | null | null | src/genderumrevelio/misc/jsonfilter.py | Conan88/GenderumRevelio | 6e047dba990ff6c7ae05fd8ee8388487c6d32ea9 | [
"MIT"
] | null | null | null | import json
| 28.956522 | 89 | 0.548048 |
15590c98b9bcc040e125c855d59afa23bb2ae6d3 | 1,038 | py | Python | linear_search/test_linear_search.py | agconti/searches | 930aa4e8c7315d5db039f633b11b337aaf9920d4 | [
"MIT"
] | null | null | null | linear_search/test_linear_search.py | agconti/searches | 930aa4e8c7315d5db039f633b11b337aaf9920d4 | [
"MIT"
] | null | null | null | linear_search/test_linear_search.py | agconti/searches | 930aa4e8c7315d5db039f633b11b337aaf9920d4 | [
"MIT"
] | null | null | null | import unittest
import random
from linear_search import linear_search
if __name__ == '__main__':
unittest.main()
| 32.4375 | 86 | 0.712909 |
155a6708533a37b4522eab82627523cc40c0ea99 | 1,793 | py | Python | whowlong/management/commands/agspGetTrajetsAround.py | guillaut5/ttpu | 9d47f762a1064000f4443eaf12c3f843570a441e | [
"Apache-2.0"
] | null | null | null | whowlong/management/commands/agspGetTrajetsAround.py | guillaut5/ttpu | 9d47f762a1064000f4443eaf12c3f843570a441e | [
"Apache-2.0"
] | null | null | null | whowlong/management/commands/agspGetTrajetsAround.py | guillaut5/ttpu | 9d47f762a1064000f4443eaf12c3f843570a441e | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
Created on 3 mars 2017
@author: guillaume
'''
from django.core.management.base import BaseCommand, CommandError
import time
import logging
from django.test.client import Client
# Create your tests here.
from whowlong.models import Place,Trajet
from whowlong.computingtools.calculator impo... | 30.389831 | 132 | 0.654769 |
155c37c9b2d90ac1125a6333fdc53a42a8125eeb | 2,759 | py | Python | ocdsmerge/util.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 4 | 2017-09-06T06:14:09.000Z | 2019-07-05T13:11:40.000Z | ocdsmerge/util.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 20 | 2017-11-25T02:29:41.000Z | 2020-01-08T18:45:49.000Z | ocdsmerge/util.py | open-contracting/ocds-merge | 80c7cb380d191c75f88feefd34b607bc0de13ee1 | [
"BSD-3-Clause"
] | 1 | 2018-11-07T14:05:12.000Z | 2018-11-07T14:05:12.000Z | import re
from functools import lru_cache
import requests
from ocdsmerge.exceptions import (MissingDateKeyError, NonObjectReleaseError, NonStringDateValueError,
NullDateValueError)
def get_release_schema_url(tag):
"""
Returns the URL of the release schema in the given vers... | 46.762712 | 119 | 0.631388 |
155c3cff7ec88893e5e3afc0e765ecc9f4bcd784 | 2,566 | py | Python | geometry_analysis/tests/test_geometry_analysis.py | ErikVazquezM/geometry_analysis | f12cdd04f1d9dbb1547297aa05095aa390bd5ee0 | [
"BSD-3-Clause"
] | null | null | null | geometry_analysis/tests/test_geometry_analysis.py | ErikVazquezM/geometry_analysis | f12cdd04f1d9dbb1547297aa05095aa390bd5ee0 | [
"BSD-3-Clause"
] | null | null | null | geometry_analysis/tests/test_geometry_analysis.py | ErikVazquezM/geometry_analysis | f12cdd04f1d9dbb1547297aa05095aa390bd5ee0 | [
"BSD-3-Clause"
] | null | null | null | """
Unit and regression test for the geometry_analysis package.
"""
# Import package, test suite, and other packages as needed
import geometry_analysis
import pytest
import sys
import numpy as np
import math
def test_molecules_set_coordinates(water_molecule):
"""Test bond list is rebuilt when we reset coordinate... | 26.729167 | 84 | 0.681216 |
155d76276a8be0807befc12dbb2b607bf3e8e928 | 1,656 | py | Python | journal_venv/lib/python3.9/site-packages/cartopy/examples/regridding_arrows.py | ushham/JournalTool | f0ab9b6711b733f3c68a8a94bbb9773ffd3a95fe | [
"MIT"
] | 2 | 2020-07-29T13:23:42.000Z | 2020-10-24T08:48:13.000Z | journal_venv/lib/python3.9/site-packages/cartopy/examples/regridding_arrows.py | ushham/JournalTool | f0ab9b6711b733f3c68a8a94bbb9773ffd3a95fe | [
"MIT"
] | null | null | null | journal_venv/lib/python3.9/site-packages/cartopy/examples/regridding_arrows.py | ushham/JournalTool | f0ab9b6711b733f3c68a8a94bbb9773ffd3a95fe | [
"MIT"
] | 1 | 2022-03-10T16:12:09.000Z | 2022-03-10T16:12:09.000Z | """
Regridding vectors with quiver
------------------------------
This example demonstrates the regridding functionality in quiver (there exists
equivalent functionality in :meth:`cartopy.mpl.geoaxes.GeoAxes.barbs`).
Regridding can be an effective way of visualising a vector field, particularly
if the data is dense o... | 27.6 | 78 | 0.652174 |
155f265672b80abeaf4e072085fcf28eb806c6db | 1,543 | py | Python | letsencrypt/client/tests/log_test.py | rivy/lets-encrypt-preview | 759e233aaa36f33c413918e8ebbf1b949af1ce5d | [
"Apache-2.0"
] | null | null | null | letsencrypt/client/tests/log_test.py | rivy/lets-encrypt-preview | 759e233aaa36f33c413918e8ebbf1b949af1ce5d | [
"Apache-2.0"
] | null | null | null | letsencrypt/client/tests/log_test.py | rivy/lets-encrypt-preview | 759e233aaa36f33c413918e8ebbf1b949af1ce5d | [
"Apache-2.0"
] | 1 | 2020-07-20T00:19:40.000Z | 2020-07-20T00:19:40.000Z | """Tests for letsencrypt.client.log."""
import unittest
import mock
if __name__ == '__main__':
unittest.main()
| 35.068182 | 79 | 0.682437 |
155f9a04aa790cb4447a738281b3858fe2e0ef10 | 309 | py | Python | dv2.py | dhruv-varshney/cleargit | e001f2bf594106110488e1aa44a74b95d30e6b4c | [
"MIT"
] | 2 | 2021-05-27T17:45:38.000Z | 2021-06-09T17:18:25.000Z | dv2.py | dhruv-varshney/Python | e001f2bf594106110488e1aa44a74b95d30e6b4c | [
"MIT"
] | null | null | null | dv2.py | dhruv-varshney/Python | e001f2bf594106110488e1aa44a74b95d30e6b4c | [
"MIT"
] | null | null | null | val = int(input('enter the number: '))
x=0
y=0
for i in range(1,val+1):
if(i%2!=0):
x= x+7
else:
y = y+6
if(val%2!=0):
print(' {} term in accordance to the program is {}'.format(val,x-7))
else:
print('{} term in accordance to the program is {}'.format(val,y-6))
| 12.875 | 72 | 0.527508 |
156048287df26174870e86440b151e9aefd7c0af | 19,312 | py | Python | tests/twitter/test_fetch_savers.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 54 | 2016-08-15T17:32:41.000Z | 2022-02-27T03:32:05.000Z | tests/twitter/test_fetch_savers.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 229 | 2015-07-23T12:50:47.000Z | 2022-03-24T10:33:20.000Z | tests/twitter/test_fetch_savers.py | garrettc/django-ditto | fcf15beb8f9b4d61634efd4a88064df12ee16a6f | [
"MIT"
] | 8 | 2015-09-10T17:10:35.000Z | 2022-03-25T13:05:01.000Z | import datetime
from decimal import Decimal
import json
import os
import pytz
import tempfile
from unittest.mock import patch
from freezegun import freeze_time
from ditto.core.utils import datetime_now
from ditto.core.utils.downloader import DownloadException, filedownloader
from django.test import override_settings
... | 37.71875 | 116 | 0.624948 |
1560cbf480f3901c1a28c49d69f13f6422f71682 | 659 | py | Python | Baum Sweet sequence/Baum-Sweet sequence.py | ajtroyer/Integer-Sequences | d54a84c74b2cfa95e3df8489d5878fa4e8881d73 | [
"Unlicense"
] | 48 | 2021-06-28T05:53:43.000Z | 2022-03-17T10:37:26.000Z | Baum Sweet sequence/Baum-Sweet sequence.py | PremApk/Integer-Sequences | 89a409006d5718c5e9cd9d95748c312337600209 | [
"Unlicense"
] | 99 | 2021-06-28T03:16:51.000Z | 2022-03-17T00:18:50.000Z | Baum Sweet sequence/Baum-Sweet sequence.py | PremApk/Integer-Sequences | 89a409006d5718c5e9cd9d95748c312337600209 | [
"Unlicense"
] | 140 | 2021-06-28T06:29:19.000Z | 2022-03-30T11:15:45.000Z |
num = int(input("type a number: "))
baum_sweet_sequence = []
for i in range(num+1):
x = bin(i)
z = x[2:]
baum_sweet_sequence.append(baum_sweet(z))
print(baum_sweet_sequence)
| 21.966667 | 62 | 0.503794 |
15640a5c0d434045a81705bb7b215eb96c897603 | 626 | py | Python | apps/settings/middleware.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 25 | 2021-06-13T03:38:44.000Z | 2022-03-15T15:53:31.000Z | apps/settings/middleware.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 59 | 2021-06-12T23:35:06.000Z | 2022-03-24T21:40:24.000Z | apps/settings/middleware.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | null | null | null | from .models import MSiteSettings
| 29.809524 | 75 | 0.680511 |
15648f3f05ac0f6c6228e523147b6492fa7359ff | 288 | py | Python | huobi/aa/account_type.py | peterkang2001/Gaea | b0fb7038f55061abc79dc2b3ea2997b268cc39a6 | [
"Apache-2.0"
] | null | null | null | huobi/aa/account_type.py | peterkang2001/Gaea | b0fb7038f55061abc79dc2b3ea2997b268cc39a6 | [
"Apache-2.0"
] | null | null | null | huobi/aa/account_type.py | peterkang2001/Gaea | b0fb7038f55061abc79dc2b3ea2997b268cc39a6 | [
"Apache-2.0"
] | null | null | null | # from aa import Enum
#
# class Account_Type(Enum):
# SPOT = 0 #
# OTC = 1 # OTC
# MARGIN = 2 # subType
# SUPER = 3 # margincross - margin
# POINT = 4 #
# MINEPOOL = 5 #
# ETF = 6 # ETF
#
#
| 22.153846 | 50 | 0.527778 |
1566077a68f63bcb1bb1604faa0f1cbc023913fa | 4,335 | py | Python | cellrank/tl/_transition_matrix.py | WeilerP/cellrank | c8c2b9f6bd2448861fb414435aee7620ca5a0bad | [
"BSD-3-Clause"
] | 172 | 2020-03-19T19:50:53.000Z | 2022-03-28T09:36:04.000Z | cellrank/tl/_transition_matrix.py | WeilerP/cellrank | c8c2b9f6bd2448861fb414435aee7620ca5a0bad | [
"BSD-3-Clause"
] | 702 | 2020-03-19T08:09:04.000Z | 2022-03-30T09:55:14.000Z | cellrank/tl/_transition_matrix.py | WeilerP/cellrank | c8c2b9f6bd2448861fb414435aee7620ca5a0bad | [
"BSD-3-Clause"
] | 17 | 2020-04-07T03:11:02.000Z | 2022-02-02T20:39:16.000Z | from typing import Union, Callable, Iterable, Optional
from typing_extensions import Literal
from anndata import AnnData
from cellrank import logging as logg
from cellrank.ul._docs import d, inject_docs
from cellrank.tl._utils import _deprecate
from cellrank.tl.kernels import VelocityKernel, ConnectivityKernel
from ce... | 36.737288 | 112 | 0.687659 |
15673650b27d37a68700c313fcef5b17abf771b6 | 516 | py | Python | tests/users/api/test_user.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 42 | 2020-03-25T16:47:30.000Z | 2022-01-31T21:26:38.000Z | tests/users/api/test_user.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 367 | 2020-04-08T12:46:34.000Z | 2022-02-16T01:15:32.000Z | tests/users/api/test_user.py | arkhn/fhir-river | a12179c34fad131d16dedc20c61297ed83d805e6 | [
"Apache-2.0"
] | 3 | 2020-05-14T08:24:46.000Z | 2021-08-04T05:00:16.000Z | import pytest
from django.urls import reverse
pytestmark = pytest.mark.django_db
| 21.5 | 55 | 0.742248 |
1567d9ad382f0a244898929137268b5c664dab10 | 13,753 | py | Python | ngshare_exchange/course_management.py | lauri3k/shhhh | 92d985e5dbe4f39ab9bf8103c9ba5376e93c8af8 | [
"BSD-3-Clause"
] | 1 | 2021-03-23T04:31:38.000Z | 2021-03-23T04:31:38.000Z | ngshare_exchange/course_management.py | lauri3k/shhhh | 92d985e5dbe4f39ab9bf8103c9ba5376e93c8af8 | [
"BSD-3-Clause"
] | 6 | 2020-06-08T21:38:24.000Z | 2021-03-26T05:20:35.000Z | ngshare_exchange/course_management.py | lauri3k/shhhh | 92d985e5dbe4f39ab9bf8103c9ba5376e93c8af8 | [
"BSD-3-Clause"
] | 1 | 2021-03-23T03:17:33.000Z | 2021-03-23T03:17:33.000Z | import os
import sys
import requests
import csv
import subprocess
import json
import argparse
from urllib.parse import quote
# https://www.geeksforgeeks.org/print-colors-python-terminal/
if __name__ == '__main__':
sys.exit(main())
| 29.137712 | 223 | 0.609612 |
15682165775caa290117504af2ff7fc3111f75eb | 1,423 | py | Python | .c9/metadata/environment/Noda_SF_Project/Noda_SF_Project/settings.py | bopopescu/nodasf | 32718c9ba606a7373b20c77710fd3706fc583396 | [
"MIT"
] | null | null | null | .c9/metadata/environment/Noda_SF_Project/Noda_SF_Project/settings.py | bopopescu/nodasf | 32718c9ba606a7373b20c77710fd3706fc583396 | [
"MIT"
] | 9 | 2019-12-05T20:37:07.000Z | 2022-02-10T12:34:48.000Z | .c9/metadata/environment/Noda_SF_Project/Noda_SF_Project/settings.py | bopopescu/nodasf | 32718c9ba606a7373b20c77710fd3706fc583396 | [
"MIT"
] | 1 | 2020-07-25T23:37:21.000Z | 2020-07-25T23:37:21.000Z | {"filter":false,"title":"settings.py","tooltip":"/Noda_SF_Project/Noda_SF_Project/settings.py","undoManager":{"mark":3,"position":3,"stack":[[{"start":{"row":38,"column":33},"end":{"row":39,"column":0},"action":"insert","lines":["",""],"id":2},{"start":{"row":39,"column":0},"end":{"row":39,"column":4},"action":"insert"... | 1,423 | 1,423 | 0.593113 |
156946b470a7a457642d3b02e6f6bc4fecddde64 | 1,968 | py | Python | misc/visualizer.py | jacobandreas/nmn2 | 7e42dd98420f9580fd34185ba670490a5d86fb04 | [
"Apache-2.0"
] | 427 | 2016-01-27T01:08:58.000Z | 2022-03-22T17:55:34.000Z | misc/visualizer.py | jacobandreas/nmn2 | 7e42dd98420f9580fd34185ba670490a5d86fb04 | [
"Apache-2.0"
] | 22 | 2016-06-01T15:48:36.000Z | 2017-07-27T02:07:46.000Z | misc/visualizer.py | jacobandreas/nmn2 | 7e42dd98420f9580fd34185ba670490a5d86fb04 | [
"Apache-2.0"
] | 107 | 2016-02-14T02:11:42.000Z | 2022-03-25T06:27:29.000Z | #!/usr/bin/env python2
import numpy as np
import os
import scipy
VIS_DIR = "vis"
visualizer = Visualizer()
| 31.238095 | 105 | 0.533028 |
1569c967632f707014360811bbac3595ce760ece | 6,803 | py | Python | ui_error_screen.py | frux-c/ValorantBot | 532b40f8f6db4ee3639701bd658da9f78cab82d9 | [
"MIT"
] | null | null | null | ui_error_screen.py | frux-c/ValorantBot | 532b40f8f6db4ee3639701bd658da9f78cab82d9 | [
"MIT"
] | null | null | null | ui_error_screen.py | frux-c/ValorantBot | 532b40f8f6db4ee3639701bd658da9f78cab82d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'error_screen.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
import sys, os
... | 45.966216 | 176 | 0.679994 |
156a1cbfdf040c739583016c1ecadb31b207e37f | 6,509 | py | Python | dnachisel/builtin_specifications/AvoidChanges.py | rfuisz/DnaChisel | 1e29a18af88ae249169743746dd4c73a4e027b19 | [
"MIT"
] | 124 | 2017-11-14T14:42:25.000Z | 2022-03-31T08:02:07.000Z | dnachisel/builtin_specifications/AvoidChanges.py | rfuisz/DnaChisel | 1e29a18af88ae249169743746dd4c73a4e027b19 | [
"MIT"
] | 65 | 2017-11-15T07:25:38.000Z | 2022-01-31T10:38:45.000Z | dnachisel/builtin_specifications/AvoidChanges.py | rfuisz/DnaChisel | 1e29a18af88ae249169743746dd4c73a4e027b19 | [
"MIT"
] | 31 | 2018-10-18T12:59:47.000Z | 2022-02-11T16:54:43.000Z | """Implementation of AvoidChanges."""
import numpy as np
from ..Specification import Specification, SpecEvaluation
# from .VoidSpecification import VoidSpecification
from ..biotools import (
sequences_differences_array,
group_nearby_indices,
)
from ..Location import Location
| 35.961326 | 84 | 0.626671 |
156a46a2364e4b4f08406ce869ce396572c9d10c | 2,795 | py | Python | users/views.py | samsonosiomwan/Hotels-Management-System | d37bc13faafd2cfc2f0ad4cbe56bc83b64eded36 | [
"MIT"
] | null | null | null | users/views.py | samsonosiomwan/Hotels-Management-System | d37bc13faafd2cfc2f0ad4cbe56bc83b64eded36 | [
"MIT"
] | null | null | null | users/views.py | samsonosiomwan/Hotels-Management-System | d37bc13faafd2cfc2f0ad4cbe56bc83b64eded36 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from ekohms.models import User
from django.contrib.auth.tokens import default_token_generator
from django.contrib.sites.shortcuts import get_current_site
from django.core.mail import EmailMessage
from django.http import HttpResponse
from django.shortcuts import render,redi... | 35.379747 | 107 | 0.675134 |
156b887af38fc2be248562a6c65c5110758d7475 | 277 | py | Python | url.py | beboy01/nan-project | 0e43e2b3e3a4e34b47b8a4815312ec137572aa87 | [
"MIT"
] | null | null | null | url.py | beboy01/nan-project | 0e43e2b3e3a4e34b47b8a4815312ec137572aa87 | [
"MIT"
] | null | null | null | url.py | beboy01/nan-project | 0e43e2b3e3a4e34b47b8a4815312ec137572aa87 | [
"MIT"
] | null | null | null | ############# exo ###############
# Ne modifiez pas les variables ci-dessous
protocole = "https://"
nom_du_site = "docstring"
extension = "fr"
page = "glossaire"
# Modifiez le code partir d'ici
URL = f"{protocole+nom_du_site+'.'+extension+'/'+page}"
print(URL) | 23.083333 | 56 | 0.595668 |
156ca789f384099842ba6ca65a15fbac8a66d3ef | 3,859 | py | Python | authentication/serializers.py | MichaelNjoroge254/Sendit | 367d69c30f061dea07c7601c4015dd8322d8426b | [
"MIT"
] | null | null | null | authentication/serializers.py | MichaelNjoroge254/Sendit | 367d69c30f061dea07c7601c4015dd8322d8426b | [
"MIT"
] | null | null | null | authentication/serializers.py | MichaelNjoroge254/Sendit | 367d69c30f061dea07c7601c4015dd8322d8426b | [
"MIT"
] | null | null | null | from django.db.models.base import Model
from rest_framework import serializers
from rest_framework.utils import field_mapping
from . models import User, UserManager
from rest_framework.exceptions import AuthenticationFailed
from django.contrib import auth
from rest_framework.exceptions import AuthenticationFailed
from... | 37.105769 | 105 | 0.695776 |
156f0f7798172ab04ff11fbc879e1ba5277dba3b | 1,079 | py | Python | setup.py | pltoledo/py-publicbr | 84e4cf8b71754217c4814d26c4b76a397fef84fc | [
"MIT"
] | null | null | null | setup.py | pltoledo/py-publicbr | 84e4cf8b71754217c4814d26c4b76a397fef84fc | [
"MIT"
] | null | null | null | setup.py | pltoledo/py-publicbr | 84e4cf8b71754217c4814d26c4b76a397fef84fc | [
"MIT"
] | null | null | null | from setuptools import setup
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name = 'py-publicbr',
packages = ['publicbr', 'publicbr.cnpj'],
version = '0.1',
license='MIT',
description = 'Extract and consolidate Brazilian public datasets',
long_description... | 30.828571 | 81 | 0.608897 |
15701bb8175673d8adcfe6e80f96492b05abf7ac | 313 | py | Python | lz4/__init__.py | ajholyoake/python-lz4 | c4e16e27971707d84f5436c19dbe2520cc041d35 | [
"BSD-3-Clause"
] | null | null | null | lz4/__init__.py | ajholyoake/python-lz4 | c4e16e27971707d84f5436c19dbe2520cc041d35 | [
"BSD-3-Clause"
] | null | null | null | lz4/__init__.py | ajholyoake/python-lz4 | c4e16e27971707d84f5436c19dbe2520cc041d35 | [
"BSD-3-Clause"
] | null | null | null | from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
VERSION = __version__
from ._version import ( # noqa: F401
library_version_number,
library_version_string,
)
| 20.866667 | 64 | 0.776358 |
15716dcdfb7770f4233ff53085e3d94e6459e8ac | 94 | py | Python | simple_orm/table/__init__.py | Dakhnovskiy/simple_orm | c5d89259589b779c905bb2161a59cc7e0888a8cf | [
"Apache-2.0"
] | null | null | null | simple_orm/table/__init__.py | Dakhnovskiy/simple_orm | c5d89259589b779c905bb2161a59cc7e0888a8cf | [
"Apache-2.0"
] | null | null | null | simple_orm/table/__init__.py | Dakhnovskiy/simple_orm | c5d89259589b779c905bb2161a59cc7e0888a8cf | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
__author__ = 'Dmitriy.Dakhnovskiy'
from .base_table import BaseTable
| 18.8 | 34 | 0.712766 |
157224a749b4260b67c28ec33f01c0b9086b5863 | 393 | py | Python | snuggle/data/types/score.py | halfak/snuggle | 384818aaf8a783013b076ada3c74226f10e5dc18 | [
"MIT"
] | 2 | 2021-04-26T20:34:25.000Z | 2021-11-12T11:26:57.000Z | snuggle/data/types/score.py | halfak/snuggle | 384818aaf8a783013b076ada3c74226f10e5dc18 | [
"MIT"
] | null | null | null | snuggle/data/types/score.py | halfak/snuggle | 384818aaf8a783013b076ada3c74226f10e5dc18 | [
"MIT"
] | null | null | null | from . import serializable
from .user import User
| 23.117647 | 54 | 0.699746 |
15722e6bff2b531a59d977733b7dcfbad85e094b | 870 | py | Python | iot_device_simulator/timeutil.py | paurosello/community | f2098279e908ef91a768c103841b4ecf13f6546e | [
"Apache-2.0"
] | 2 | 2019-12-08T08:32:23.000Z | 2019-12-12T11:37:24.000Z | iot_device_simulator/timeutil.py | marhak/odfe-community | c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5 | [
"Apache-2.0"
] | null | null | null | iot_device_simulator/timeutil.py | marhak/odfe-community | c1f2802205eb11c0fdbbbef909b0e33e90ea2ad5 | [
"Apache-2.0"
] | null | null | null | '''
Copyright 2019, Amazon Web Services Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | 30 | 72 | 0.766667 |
15770097bf230a6328771ee66ddf68f1a6f8f5d3 | 1,446 | py | Python | pages/views.py | benoitc/dj-pages | d049cb196e7b9f7a6dffa987e82d75cf86565621 | [
"MIT"
] | 1 | 2020-01-21T11:12:12.000Z | 2020-01-21T11:12:12.000Z | pages/views.py | benoitc/dj-pages | d049cb196e7b9f7a6dffa987e82d75cf86565621 | [
"MIT"
] | null | null | null | pages/views.py | benoitc/dj-pages | d049cb196e7b9f7a6dffa987e82d75cf86565621 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -
#
# This file is part of dj-pages released under the MIT license.
# See the NOTICE for more information.
from django.conf import settings
from django.contrib.auth.models import Group
from django.http import Http404, HttpResponse, HttpResponseServerError
from django.shortcuts import render_to_res... | 27.807692 | 70 | 0.675657 |
1577ce3ebf29865269a0cbf508c8f0ae892e5915 | 2,545 | py | Python | src/yass/visual/soft_assignment.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 59 | 2017-10-29T02:21:17.000Z | 2022-03-23T01:12:27.000Z | src/yass/visual/soft_assignment.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 257 | 2017-10-25T17:11:36.000Z | 2021-10-21T19:12:00.000Z | src/yass/visual/soft_assignment.py | jaib1/yass | 9899c7d63c522a26b160ac7a223c794dfd3e23c6 | [
"Apache-2.0"
] | 24 | 2017-10-28T19:59:44.000Z | 2021-07-14T09:56:45.000Z | """Providing a class for dealing with soft assignments of spikes at the end."""
import copy as copy
import numpy as np
from tqdm import tqdm
from yass.template import WaveForms
from yass.merge.merge import template_dist_linear_align, template_spike_dist_linear_align
def get_soft_assignments(templates, templates_ups... | 34.863014 | 89 | 0.663261 |
1577cf0ad58074e0901998c62043957a5ad89b97 | 3,473 | py | Python | wikiWebCrawler/dumpWikiExtraction.py | chrhenning/image_text_relation | 8d09483b48babe9bf90ca15a8cd67e389a0bd00c | [
"Apache-2.0"
] | null | null | null | wikiWebCrawler/dumpWikiExtraction.py | chrhenning/image_text_relation | 8d09483b48babe9bf90ca15a8cd67e389a0bd00c | [
"Apache-2.0"
] | null | null | null | wikiWebCrawler/dumpWikiExtraction.py | chrhenning/image_text_relation | 8d09483b48babe9bf90ca15a8cd67e389a0bd00c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# Tool that dumps all the information we need from the WikiExtraction parser [1] to create our own dataset into a file, such that it is later easily accessible
# [1]: https://github.com/attardi/wikiextractor
# Important: not efficient code, but it only has to run once on simple wiki, which is sm... | 30.734513 | 159 | 0.701699 |
1578c4686ca3835c9e673bb51e7120e98cb9af4a | 1,127 | py | Python | mkdat.py | pachenya/MeiroPy | c11f4e1a35a1d31127fb9cb0109faae6c88dcb21 | [
"MIT"
] | null | null | null | mkdat.py | pachenya/MeiroPy | c11f4e1a35a1d31127fb9cb0109faae6c88dcb21 | [
"MIT"
] | null | null | null | mkdat.py | pachenya/MeiroPy | c11f4e1a35a1d31127fb9cb0109faae6c88dcb21 | [
"MIT"
] | null | null | null | # mkdat.py
#
# To make the list of monsters data.
#
import string
def test():
a = enuml('data/dat.txt')
for i in a.elist:
i.DEBUGP()
test()
test2()
| 18.47541 | 51 | 0.507542 |
157999b938d6e8b24890fadfe31e7fc658590d35 | 1,489 | py | Python | nzbhydra/tests/db_prepare.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 674 | 2015-11-06T04:22:47.000Z | 2022-02-26T17:31:43.000Z | nzbhydra/tests/db_prepare.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 713 | 2015-11-06T10:48:58.000Z | 2018-11-27T16:32:18.000Z | nzbhydra/tests/db_prepare.py | Sparklingx/nzbhydra | e2433e1155255ba37341cc79750b104e7dd8889a | [
"Apache-2.0"
] | 106 | 2015-12-07T11:21:06.000Z | 2022-03-11T10:58:41.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import inspect
import os
import shutil
import peewee
from builtins import *
from playhouse.sqlite_ext import SqliteExtDatabase
from playhouse.sqliteq import SqliteQueueD... | 31.680851 | 152 | 0.727334 |
1579cab3ef9ed7a4d7bf29ebae9393c84448a852 | 105 | py | Python | zhangliqiang/20180402/h4.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangliqiang/20180402/h4.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null | zhangliqiang/20180402/h4.py | python20180319howmework/homework | c826d7aa4c52f8d22f739feb134d20f0b2c217cd | [
"Apache-2.0"
] | null | null | null |
#4. reduce
from functools import reduce
r = reduce(lambda x, y : x * y, (1,3,5))
print(r)
| 11.666667 | 40 | 0.657143 |
157a79f284da8d9cc66390e1b5b8a99dc5554bc6 | 391 | py | Python | garden_api/migrations/0004_auto_20190206_1731.py | 401-pi-rates/raspberry-garden | 4e0e55e66d73b19c0c0fc8c03f8f34a090ed322d | [
"MIT"
] | 1 | 2019-02-27T01:56:16.000Z | 2019-02-27T01:56:16.000Z | garden_api/migrations/0004_auto_20190206_1731.py | joyliao07/raspberry-garden | 4e0e55e66d73b19c0c0fc8c03f8f34a090ed322d | [
"MIT"
] | 19 | 2019-02-02T00:53:48.000Z | 2021-09-08T00:58:30.000Z | garden_api/migrations/0004_auto_20190206_1731.py | joyliao07/raspberry-garden | 4e0e55e66d73b19c0c0fc8c03f8f34a090ed322d | [
"MIT"
] | 2 | 2019-02-27T01:55:53.000Z | 2019-03-25T06:49:23.000Z | # Generated by Django 2.1.5 on 2019-02-07 01:31
from django.db import migrations, models
| 20.578947 | 50 | 0.606138 |
157b0ae1f08d4650c9cffb2abc6ff2bb8e194a0e | 888 | py | Python | webapp/request.py | eude313/goal | 8ebc6c3fa3011d11ee106536e0b9d315b1f5cc2b | [
"MIT"
] | null | null | null | webapp/request.py | eude313/goal | 8ebc6c3fa3011d11ee106536e0b9d315b1f5cc2b | [
"MIT"
] | null | null | null | webapp/request.py | eude313/goal | 8ebc6c3fa3011d11ee106536e0b9d315b1f5cc2b | [
"MIT"
] | null | null | null | import urllib.request,json
from .models import Quote
# Getting the news base url
quote_api = None
def get_quotes():
'''
Function that gets the random quotes
'''
get_article_details_url = 'http://quotes.stormconsultancy.co.uk/random.json'.format()
with urllib.request.urlopen(get_article_det... | 25.371429 | 89 | 0.662162 |
157b334c31453897c1c551b1f1fa0ea95b15795f | 20,732 | py | Python | archive/nexus-api-v2/API/Git/Lab/Schemas/Repository.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/API/Git/Lab/Schemas/Repository.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | null | null | null | archive/nexus-api-v2/API/Git/Lab/Schemas/Repository.py | cloud-hybrid/delta | 402b00ed5aaa32ccef628361e9635879b7ace44f | [
"BSD-3-Clause"
] | 1 | 2022-01-03T05:33:15.000Z | 2022-01-03T05:33:15.000Z | from . import *
from . import Base as Scheme
__module__ = __name__
Schema = Scheme.Model
| 29.532764 | 234 | 0.625265 |
157dc1ed4781a29f5affc988be663111c64005ab | 509 | py | Python | exercise25/exercise.py | check69/advent_code_2020 | cae1a04babb7d0c7b8de76b2836476b406390047 | [
"MIT"
] | null | null | null | exercise25/exercise.py | check69/advent_code_2020 | cae1a04babb7d0c7b8de76b2836476b406390047 | [
"MIT"
] | null | null | null | exercise25/exercise.py | check69/advent_code_2020 | cae1a04babb7d0c7b8de76b2836476b406390047 | [
"MIT"
] | null | null | null | from typing import List
FileData = List[str]
if __name__ == "__main__":
main()
| 18.178571 | 74 | 0.666012 |
157f0119cc32c7479dcaa1bf73091cbff4ad0c19 | 149 | py | Python | main_server/__init__.py | yehan-xiao/SUCS | 4110a9d858c9e484d35c08198d951c6ba734460f | [
"MIT"
] | null | null | null | main_server/__init__.py | yehan-xiao/SUCS | 4110a9d858c9e484d35c08198d951c6ba734460f | [
"MIT"
] | null | null | null | main_server/__init__.py | yehan-xiao/SUCS | 4110a9d858c9e484d35c08198d951c6ba734460f | [
"MIT"
] | null | null | null | #Written by Shitao Tang
# --------------------------------------------------------
import logging.config
logging.config.fileConfig("logging.config")
| 29.8 | 58 | 0.496644 |
157f7bac2f471946f836b8c5ee08c6cfd3a2fe43 | 2,324 | py | Python | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | 1 | 2021-07-10T22:07:16.000Z | 2021-07-10T22:07:16.000Z | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | server/TenantManagementService/tenant-provisioning.py | snetty/aws-saas-factory-ref-solution-serverless-saas | 34403ac7ad74847106cc7318d54afb51932d3711 | [
"Apache-2.0",
"MIT-0"
] | null | null | null | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import json
import boto3
import utils
from botocore.exceptions import ClientError
import logger
import os
from aws_lambda_powertools import Tracer
tracer = Tracer()
tenant_stack_mapping_table_name = os.environ['TENAN... | 29.794872 | 108 | 0.660069 |
157fa5c40b8382a262791d36d2b4de815c319516 | 643 | py | Python | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 1 | 2019-09-11T23:24:58.000Z | 2019-09-11T23:24:58.000Z | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | null | null | null | P25034-zhaojie/week-07/homework1.py | xiaohh2016/python-25 | 8981ba89bfb32754c3f9c881ee8fcaf13332ce51 | [
"Apache-2.0"
] | 5 | 2019-09-11T06:33:34.000Z | 2020-02-17T12:52:31.000Z | #!/usr/bin/env python
# encoding:utf-8
# file: homework1.py
# 1 "1,2,3" ["1","2","3"]
# 1
a = '1,2,3'
print(a.split(','))
# 2
a = '1,2,3'
sep = ','
result = []
for i in range(len(a)):
if a[i] == sep:
continue
result.append(a[i])
print(result)
"""
b = '1,23,45,678'
c = '1, 23, 4, 5'
"""
#
a = '... | 15.309524 | 47 | 0.541213 |
158093f827c44fb31f9d2b1f817125c9d5ad8bef | 575 | py | Python | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | 6 | 2021-09-19T11:01:27.000Z | 2021-11-11T08:53:31.000Z | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | null | null | null | code/selection_sort.py | Rustam-Z/data-structures-and-algorithms | 0ed253c433198fb6fa6d609a806f4ae7e820af06 | [
"MIT"
] | 1 | 2021-12-20T13:25:12.000Z | 2021-12-20T13:25:12.000Z | """
Selection sort algorithm implementation.
Time Complexity:
Best O(n^2)
Worst O(n^2)
Average O(n^2)
Space Complexity: O(1)
"""
if __name__ == '__main__':
unsorted_array = [5, 3, 6, 2, 10, -23, 0]
selected_array = selection_sort(unsorted_array)
print(selected_array)
| 23 | 63 | 0.606957 |
158547efcb33f290119505b7dad81583331db6a6 | 885 | py | Python | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 159 | 2020-12-13T19:38:32.000Z | 2022-03-30T23:12:49.000Z | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 4 | 2021-01-10T16:31:10.000Z | 2022-02-15T17:38:51.000Z | pycritty/cli/install.py | binRick/pycritty | ae27e61fe597c22e6830d62533e11d64bf06a3ae | [
"MIT"
] | 50 | 2020-12-13T22:35:34.000Z | 2022-03-30T01:29:28.000Z | import argparse
from .pycritty import subparsers, formatter
install_parser = subparsers.add_parser(
'install',
formatter_class=formatter(),
help="Install a config file or theme from a url",
argument_default=argparse.SUPPRESS,
)
install_parser.add_argument(
'url',
help='URL where the config is... | 20.581395 | 70 | 0.680226 |
15855175c606cca38de789368d87a49ec8fe0b51 | 1,209 | py | Python | setup.py | twdb/sonde3 | 5d6c9672870f9186c22db1a88fc5a143e8fd887c | [
"BSD-3-Clause"
] | 1 | 2017-08-11T18:50:08.000Z | 2017-08-11T18:50:08.000Z | setup.py | twdb/sonde3 | 5d6c9672870f9186c22db1a88fc5a143e8fd887c | [
"BSD-3-Clause"
] | 11 | 2018-03-06T14:31:13.000Z | 2018-07-27T14:14:19.000Z | setup.py | twdb/sonde3 | 5d6c9672870f9186c22db1a88fc5a143e8fd887c | [
"BSD-3-Clause"
] | 1 | 2017-08-21T22:45:16.000Z | 2017-08-21T22:45:16.000Z | """
sonde3
-------
PySonde is a module for reading water quality data from various sensor
formats.
"""
from setuptools import Command, setup, find_packages
# note: the minimum version numbers are just what I know will work,
# but they could probably be a few versions lower
setup(
name='sonde3',
version='0.2',
... | 31 | 82 | 0.652605 |
158778c93cc9dac58b6a4fb948f20e547d063f46 | 442 | py | Python | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null | manejo-de-excepciones.py | OscarPalominoC/PensamientoComputacionalPython | b2797475d25452c69467c7e24720671777ad3ed9 | [
"MIT"
] | null | null | null |
lista = range(10)
if __name__ == "__main__":
divisor = int(input('Escribe el divisor: '))
print(divide_elementos_en_lista(lista, divisor)) | 34 | 96 | 0.69457 |
1588ca5cc544c21212b83dbab38deb4721020810 | 5,259 | py | Python | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 12 | 2021-01-14T19:33:48.000Z | 2022-01-06T16:13:03.000Z | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 13 | 2020-12-31T20:38:11.000Z | 2021-11-24T06:21:12.000Z | openomics_web/layouts/datatable_view.py | JonnyTran/open-omics | ef5db2dc2fdf486ee5e9fa4e0cf5be61b4531232 | [
"MIT"
] | 7 | 2021-02-08T13:42:01.000Z | 2021-10-21T21:37:14.000Z | import dash_core_components as dcc
import dash_html_components as html
import dash_table as dt
from openomics_web.utils.str_utils import longest_common_prefix
def DataTableColumnSelect(columns):
"""
Args:
columns:
"""
longest_common_prefixes = longest_common_prefix(columns)
return html.D... | 30.398844 | 86 | 0.424415 |
158af3b9c1b0eba24baf15a53f726d6ea44ae733 | 1,982 | py | Python | pipeline/visual_main.py | ElfatihZiad/realtime-market-data-pipeline | bc92f89c310d6b654141fe79c14f962d35899320 | [
"Apache-2.0"
] | 4 | 2021-12-14T23:54:14.000Z | 2022-01-01T21:09:24.000Z | pipeline/visual_main.py | ElfatihZiad/realtime-market-data-pipeline | bc92f89c310d6b654141fe79c14f962d35899320 | [
"Apache-2.0"
] | 1 | 2022-01-07T20:26:49.000Z | 2022-01-07T20:26:49.000Z | pipeline/visual_main.py | ElfatihZiad/realtime-market-data-pipeline | bc92f89c310d6b654141fe79c14f962d35899320 | [
"Apache-2.0"
] | 1 | 2022-01-20T20:00:58.000Z | 2022-01-20T20:00:58.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import json
import datetime
import pandas as pd
from bokeh.models.widgets import Tabs
from warehouse import CassandraStorage
import util.util as util
from util.util import pandas_factory,symbol_list
from bokeh.models import ColumnDataSource, Panel
from bokeh.layouts impor... | 34.172414 | 97 | 0.754793 |
158ca93802eb9dccc421c636270c924dd054fd75 | 1,650 | py | Python | src/graph_transpiler/webdnn/util/flags/optimize.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | src/graph_transpiler/webdnn/util/flags/optimize.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/util/flags/optimize.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | import os
OPTIMIZE = os.environ.get("OPTIMIZE", "1") == "1"
# basic (non-accuracy loss) optimization
REMOVE_REDUNDANT_OPERATOR = os.environ.get("REMOVE_REDUNDANT_OPERATOR", "1") == "1"
SIMPLIFY_ELEMENTWISE = os.environ.get("SIMPLIFY_ELEMENTWISE", "1") == "1"
REPLACE_SCALAR_OPERATOR = os.environ.get("REPLACE_SCALAR_OP... | 55 | 95 | 0.753333 |
158cad16a3a956c3d72457100289dace28f8f3ee | 994 | py | Python | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | 12 | 2019-04-12T07:13:56.000Z | 2022-03-07T06:21:18.000Z | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | null | null | null | start.py | reddelexc/cryptoping-trader | c2b0fe1626fa985e8a1bfb84e26019a94af27c42 | [
"MIT"
] | 4 | 2021-01-29T19:28:04.000Z | 2021-12-09T01:52:12.000Z | import sys
from src import Bot, Client, Collector, \
Predictor, PredictorLearnThread, Scribe, \
Trader, TraderThreadCleaner, GarbageCleanerThread
if __name__ == '__main__':
use_proxy = len(sys.argv) > 1 and sys.argv[1] == '-p'
pool = {
'client': Client(use_proxy),
'bot': Bot(use_proxy)... | 31.0625 | 97 | 0.678068 |
158cb011887f3c76cab1428a5f9f814fdc90be6c | 11,800 | py | Python | google/ads/google_ads/v6/proto/resources/campaign_draft_pb2.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/resources/campaign_draft_pb2.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/resources/campaign_draft_pb2.py | arammaliachi/google-ads-python | a4fe89567bd43eb784410523a6306b5d1dd9ee67 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v6/resources/campaign_draft.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import refl... | 64.480874 | 1,689 | 0.79678 |
158cb87ad35efa016b99c8fb5b1cdbee7b0b7b73 | 81 | py | Python | coca/coco_caption/pycocoevalcap/tokenizer/__init__.py | CISiPLab/cisip-GreenCap | 74c3f8461772016eec49840822f1407db4abe2b2 | [
"BSD-3-Clause"
] | 12 | 2021-03-06T13:33:51.000Z | 2022-03-09T06:38:14.000Z | caption_vae/coco_caption/pycocoevalcap/tokenizer/__init__.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | null | null | null | caption_vae/coco_caption/pycocoevalcap/tokenizer/__init__.py | jiahuei/test-caption-actions | cbf68dc29a0fdafe92730bf4881319bcbd41eb7f | [
"BSD-3-Clause"
] | 4 | 2021-12-05T07:26:22.000Z | 2022-03-31T08:36:31.000Z | # -*- coding: utf-8 -*-
"""
Created on 09 Jul 2020 23:36:50
@author: jiahuei
"""
| 13.5 | 31 | 0.580247 |
158d3ba98e41c3cfa0005f23668ccbdb8759e04a | 5,733 | py | Python | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | null | null | null | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | 34 | 2021-03-20T22:42:16.000Z | 2021-09-29T15:50:31.000Z | bot/users/basedGuild.py | Trimatix-indie/SuperDeckBreaker | 6c5f0a6593df5e7f6807b1e2b09aff65dcf8a6fc | [
"MIT"
] | null | null | null | from __future__ import annotations
from typing import Dict, Union
from discord import Guild, TextChannel
import traceback
from .. import botState, lib
from ..baseClasses import serializable
from ..cfg import cfg
from ..game import sdbGame, sdbDeck
from ..reactionMenus import SDBSignupMenu
| 50.289474 | 217 | 0.664922 |
158daa9a2fa7c45f9dc4c8cd8863b5ada982780f | 8,720 | py | Python | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | 3 | 2019-09-19T15:46:49.000Z | 2019-09-30T18:09:57.000Z | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | null | null | null | dataspot/config/builders/network_configurator_builder.py | patrickdehoon/dataspot | f06a4606837fa3e0a8f9f679026d01a0b2bd3e37 | [
"MIT"
] | 3 | 2019-09-19T15:52:07.000Z | 2019-10-08T08:15:32.000Z | from dataspot.config.configurators.network_configurators.plot_height_configurator import PlotHeightConfigurator
from dataspot.config.configurators.network_configurators.plot_width_configurator import PlotWidthConfigurator
from dataspot.config.configurators.network_configurators.xrange_configurator import XRangeConfigur... | 43.819095 | 125 | 0.686927 |
1590abe2fcf4885ac2f64c9cfcad25ae46f3b4fb | 3,842 | py | Python | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | 2 | 2022-01-19T22:24:29.000Z | 2022-01-28T07:50:49.000Z | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | null | null | null | subdomain_takeover_tools/confirm_takeover.py | martinvw/subdomain-takeover-tools | a3899a259c88e4324e3e44a345575072dfbd4966 | [
"MIT"
] | null | null | null | import sys
from subdomain_takeover_tools.confirm_agile_crm import is_valid as agile_crm_is_valid
from subdomain_takeover_tools.confirm_azure_app_service import is_valid as azure_app_service_is_valid
from subdomain_takeover_tools.confirm_azure_edge_cdn import is_valid as azure_edge_cdn_is_valid
from subdomain_takeover_... | 37.300971 | 109 | 0.726184 |
1591d3f76921a6a6ee9967b46e2b782a59eb50ee | 449 | py | Python | marathon/models/__init__.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | 202 | 2015-01-07T06:55:14.000Z | 2021-11-30T12:05:50.000Z | marathon/models/__init__.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | 213 | 2015-03-04T12:54:09.000Z | 2022-02-28T11:36:28.000Z | marathon/models/__init__.py | missingcharacter/marathon-python | e1a42642c42716ef074e5b2523408bc1aa6025e2 | [
"MIT"
] | 169 | 2015-02-06T16:48:05.000Z | 2022-01-18T16:20:56.000Z | from .app import MarathonApp, MarathonHealthCheck
from .base import MarathonResource, MarathonObject
from .constraint import MarathonConstraint
from .deployment import MarathonDeployment, MarathonDeploymentAction, MarathonDeploymentStep
from .endpoint import MarathonEndpoint
from .group import MarathonGroup
from .info ... | 44.9 | 92 | 0.873051 |
1591fa0cac2c7d80e07b73ac86f219bf9123ba87 | 1,953 | py | Python | client/jsonrpc/_tests/test_proxy.py | bmwiedemann/bitcoin | d956a409451ae38b0135f74774929e25ded16936 | [
"MIT"
] | 45 | 2015-03-16T00:51:40.000Z | 2022-01-16T23:03:35.000Z | client/jsonrpc/_tests/test_proxy.py | bmwiedemann/bitcoin | d956a409451ae38b0135f74774929e25ded16936 | [
"MIT"
] | 87 | 2018-01-06T10:18:31.000Z | 2022-03-11T23:32:30.000Z | client/jsonrpc/_tests/test_proxy.py | bmwiedemann/bitcoin | d956a409451ae38b0135f74774929e25ded16936 | [
"MIT"
] | 14 | 2017-02-18T02:55:13.000Z | 2021-03-29T09:58:16.000Z |
"""
Copyright (c) 2007 Jan-Klaas Kollhof
This file is part of jsonrpc.
jsonrpc is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later... | 32.016393 | 111 | 0.673323 |
15932452db9b9061ffd7215580037a3f59475126 | 650 | py | Python | deployments/migrations/0029_auto_20200625_1019.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 11 | 2018-06-11T06:05:12.000Z | 2022-03-25T09:31:44.000Z | deployments/migrations/0029_auto_20200625_1019.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 498 | 2017-11-07T21:20:13.000Z | 2022-03-31T14:37:18.000Z | deployments/migrations/0029_auto_20200625_1019.py | IFRCGo/ifrcgo-api | c1c3e0cf1076ab48d03db6aaf7a00f8485ca9e1a | [
"MIT"
] | 6 | 2018-04-11T13:29:50.000Z | 2020-07-16T16:52:11.000Z | # Generated by Django 2.2.13 on 2020-06-25 10:19
from django.db import migrations, models
| 27.083333 | 96 | 0.618462 |
1594a5de479d5d5f7a36a36430ba31ef5bbf7529 | 1,047 | py | Python | CoinbaseConnector/coinbaseconnector/utils.py | ospragg/CoinbaseConnector | febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5 | [
"MIT"
] | null | null | null | CoinbaseConnector/coinbaseconnector/utils.py | ospragg/CoinbaseConnector | febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5 | [
"MIT"
] | null | null | null | CoinbaseConnector/coinbaseconnector/utils.py | ospragg/CoinbaseConnector | febd6401ba2b56d4e1f1f7193b3f85bd76f7e6c5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import base64
import hmac
import hashlib
from requests.auth import AuthBase
| 27.552632 | 68 | 0.698185 |