hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
486c690d2ec75c48619b4b301b76eacb54bb9a8b
276
py
Python
script.service.hue/service.py
toupeira/script.service.hue
c2811ef792b67084ab2e82c91aaa0947d9cb90d3
[ "MIT" ]
null
null
null
script.service.hue/service.py
toupeira/script.service.hue
c2811ef792b67084ab2e82c91aaa0947d9cb90d3
[ "MIT" ]
null
null
null
script.service.hue/service.py
toupeira/script.service.hue
c2811ef792b67084ab2e82c91aaa0947d9cb90d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import xbmc from resources.lib import core from resources.lib import reporting try: core.core() #Run Hue service except Exception as exc: xbmc.log("[script.service.hue] Core service exception") reporting.process_exception(exc)
23
60
0.699275
a9102e7065398b7cbae1536ef952c0462a33a51c
13,443
py
Python
pex/resolve/lockfile/json_codec.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/resolve/lockfile/json_codec.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
pex/resolve/lockfile/json_codec.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import import json from pex import compatibility from pex.dist_metadata import Requirement, RequirementParseError from pex.enum import Enum from pex.pep_4...
37.341667
100
0.558506
f34a177b74cf8e82b816289e7f4e5ee3cf7ffeb3
89
py
Python
backend/entries/apps.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
1
2019-05-01T12:09:47.000Z
2019-05-01T12:09:47.000Z
backend/entries/apps.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
34
2020-02-12T00:21:07.000Z
2022-03-02T13:43:11.000Z
backend/entries/apps.py
dwightgunning/daily-writing
1e39ba5172d6f6a98a4af9553dc8b26c980e4fcc
[ "MIT" ]
null
null
null
from django.apps import AppConfig class EntriesConfig(AppConfig): name = "entries"
14.833333
33
0.752809
f47342001f7c1b1e4f56939c078dcfc1089b8444
1,796
py
Python
docker-app/qfieldcloud/core/migrations/0011_export.py
livelihoods-and-landscapes/qfieldcloud-tcs
3075e19d89caa3090a0d2027a376336526572764
[ "MIT" ]
34
2021-06-08T12:06:24.000Z
2022-03-07T11:45:10.000Z
docker-app/qfieldcloud/core/migrations/0011_export.py
livelihoods-and-landscapes/qfieldcloud-tcs
3075e19d89caa3090a0d2027a376336526572764
[ "MIT" ]
139
2021-06-08T00:24:51.000Z
2022-03-28T09:59:54.000Z
docker-app/qfieldcloud/core/migrations/0011_export.py
livelihoods-and-landscapes/qfieldcloud-tcs
3075e19d89caa3090a0d2027a376336526572764
[ "MIT" ]
8
2021-06-11T04:18:36.000Z
2022-02-15T20:52:58.000Z
# Generated by Django 2.2.17 on 2021-01-06 08:42 import uuid import django.contrib.postgres.fields.jsonb import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0010_auto_20210106_1543"), ] operations = [ ...
30.440678
78
0.396993
b0f7dd3367d180a92052327ae819eb78bd554e38
2,443
py
Python
openliveq/nlp/parser.py
mpkato/openliveq
3b87778e57c1b4176cecce7a0282b80831ed541b
[ "MIT" ]
5
2016-11-12T16:12:04.000Z
2017-12-12T02:37:37.000Z
openliveq/nlp/parser.py
mpkato/openliveq
3b87778e57c1b4176cecce7a0282b80831ed541b
[ "MIT" ]
1
2018-08-01T03:57:48.000Z
2018-08-01T03:57:48.000Z
openliveq/nlp/parser.py
mpkato/openliveq
3b87778e57c1b4176cecce7a0282b80831ed541b
[ "MIT" ]
4
2017-06-29T16:34:27.000Z
2019-10-22T09:19:31.000Z
# -*- coding: utf-8 -*- import MeCab class Parser(object): CONTENT_POS_PREFIXES = ["形容詞", "名詞", "動詞", "副詞"] def __init__(self): self.tagger = MeCab.Tagger() self.tagger.parse("") def word_tokenize(self, sentence): ''' Word tokenization ''' tokens = [w[0] fo...
27.761364
69
0.561195
9935d5e8479001a869f0471829260ab3a115a305
3,707
py
Python
ucsmsdk/mometa/initiator/InitiatorRequestorGrpEp.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
78
2015-11-30T14:10:05.000Z
2022-02-13T00:29:08.000Z
ucsmsdk/mometa/initiator/InitiatorRequestorGrpEp.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
113
2015-11-20T09:42:46.000Z
2022-03-16T16:53:29.000Z
ucsmsdk/mometa/initiator/InitiatorRequestorGrpEp.py
Kego/ucsmsdk
244f283a5c295cf746110bb96686d079b19927ce
[ "Apache-2.0" ]
86
2015-12-12T08:22:18.000Z
2022-01-23T03:56:34.000Z
"""This module contains the general information for InitiatorRequestorGrpEp ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class InitiatorRequestorGrpEpConsts: ALLOC_STATE_ALLOCATED = "allocated" ALLOC_STATE_ALLOCATING...
52.211268
247
0.649852
6d39eea1e99148c6440a4f98b5eae196f7236683
603
py
Python
datetime/komand_datetime/actions/date_from_epoch/action.py
hashtagcyber/insightconnect-plugins
8d54973cf51b1c27a26e4100b5a4dd223d1c714c
[ "MIT" ]
null
null
null
datetime/komand_datetime/actions/date_from_epoch/action.py
hashtagcyber/insightconnect-plugins
8d54973cf51b1c27a26e4100b5a4dd223d1c714c
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
datetime/komand_datetime/actions/date_from_epoch/action.py
hashtagcyber/insightconnect-plugins
8d54973cf51b1c27a26e4100b5a4dd223d1c714c
[ "MIT" ]
null
null
null
import insightconnect_plugin_runtime from .schema import DateFromEpochInput, DateFromEpochOutput, Input, Output import maya class DateFromEpoch(insightconnect_plugin_runtime.Action): def __init__(self): super(self.__class__, self).__init__( name='date_from_epoch', descript...
33.5
74
0.679934
a064c99d2a7c2693ca9c1d41368ae5356355e74d
1,991
py
Python
sdk/python/pulumi_aws/ec2/placement_group.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/placement_group.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ec2/placement_group.py
pulumi-bot/pulumi-aws
756c60135851e015232043c8206567101b8ebd85
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi import pulumi.runtime class PlacementGroup(pulumi.CustomResource): """ Provides an EC2 placement group. Read mor...
37.566038
94
0.637368
fe9c8f5d2ed4e92d93f5f8587638460e00d10c5f
422
py
Python
src/python/turicreate/toolkits/image_analysis/__init__.py
cookingcodewithme/turicreate
a89e203d60529d2d72547c03ec9753ea979ee342
[ "BSD-3-Clause" ]
11,356
2017-12-08T19:42:32.000Z
2022-03-31T16:55:25.000Z
src/python/turicreate/toolkits/image_analysis/__init__.py
cookingcodewithme/turicreate
a89e203d60529d2d72547c03ec9753ea979ee342
[ "BSD-3-Clause" ]
2,402
2017-12-08T22:31:01.000Z
2022-03-28T19:25:52.000Z
src/python/turicreate/toolkits/image_analysis/__init__.py
cookingcodewithme/turicreate
a89e203d60529d2d72547c03ec9753ea979ee342
[ "BSD-3-Clause" ]
1,343
2017-12-08T19:47:19.000Z
2022-03-26T11:31:36.000Z
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from...
35.166667
85
0.760664
07203c84c5ed8916c66cbd8ee05e9e9e3f5e8cfd
3,441
py
Python
source/code/services/tagging_service.py
mobri2a/aws-ops-automator
a3564a8eb142b1ca0487f9e91e83d2c1284af8f2
[ "Apache-2.0" ]
94
2017-08-01T05:28:45.000Z
2021-09-10T07:18:46.000Z
source/code/services/tagging_service.py
mobri2a/aws-ops-automator
a3564a8eb142b1ca0487f9e91e83d2c1284af8f2
[ "Apache-2.0" ]
27
2018-02-15T17:14:09.000Z
2021-04-27T11:28:42.000Z
source/code/services/tagging_service.py
mobri2a/aws-ops-automator
a3564a8eb142b1ca0487f9e91e83d2c1284af8f2
[ "Apache-2.0" ]
50
2017-08-01T05:29:04.000Z
2021-08-11T20:09:07.000Z
###################################################################################################################### # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
51.358209
122
0.503051
b4cfd8fdbf1ae4744176283d9547f7a9635b35a6
5,887
py
Python
examples/pytorch/IterativePruning/iterative_prune_mnist.py
yazdipour/mlflow
5cd5f61ad0157e8f9a19bac3e4499da34f77d2ea
[ "Apache-2.0" ]
null
null
null
examples/pytorch/IterativePruning/iterative_prune_mnist.py
yazdipour/mlflow
5cd5f61ad0157e8f9a19bac3e4499da34f77d2ea
[ "Apache-2.0" ]
1
2022-02-20T20:09:24.000Z
2022-02-20T20:09:24.000Z
examples/pytorch/IterativePruning/iterative_prune_mnist.py
yazdipour/mlflow
5cd5f61ad0157e8f9a19bac3e4499da34f77d2ea
[ "Apache-2.0" ]
null
null
null
import argparse import copy import os import shutil import tempfile from pathlib import Path import pytorch_lightning as pl import torch from ax.service.ax_client import AxClient from prettytable import PrettyTable from torch.nn.utils import prune import mlflow.pytorch from mnist import ( MNISTDataModule, Lig...
34.629412
98
0.616443
843e051fb45b9e9db8485af3cbb1f7a2d97c1bfc
36,357
py
Python
tests/test_constraints.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
tests/test_constraints.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
tests/test_constraints.py
rongfengliang/edgedb-pg-expose
1ddc279511595b4b1a3a1532ea873ed4e05e8b01
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2012-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
35.366732
79
0.468465
f4a4c208810f3892360c1412349ef2dce92fc776
1,266
py
Python
setup.py
riccardocagnasso/jwtauth_aiopyramid_test
c62d5b87cbd13ab4fa62594ff99cf11121fe859a
[ "MIT" ]
null
null
null
setup.py
riccardocagnasso/jwtauth_aiopyramid_test
c62d5b87cbd13ab4fa62594ff99cf11121fe859a
[ "MIT" ]
null
null
null
setup.py
riccardocagnasso/jwtauth_aiopyramid_test
c62d5b87cbd13ab4fa62594ff99cf11121fe859a
[ "MIT" ]
null
null
null
import os import sys from setuptools import setup, find_packages py_version = sys.version_info[:2] if py_version < (3, 3): raise Exception("aiopyramid requires Python >= 3.3.") here = os.path.abspath(os.path.dirname(__file__)) NAME = 'jwtauth_test' with open(os.path.join(here, 'README.rst')) as readme: READ...
24.823529
63
0.638231
f9d5a699acd9fc437a5d95a3ea351f0baedeb17d
14,122
py
Python
fairworkflows/rdf_wrapper.py
fair-workflows/fairworkflows
363a7590326b6b10e1da47eedc6026f4bc382725
[ "Apache-2.0" ]
8
2020-10-20T14:45:08.000Z
2021-12-14T08:50:13.000Z
fairworkflows/rdf_wrapper.py
fair-workflows/fairworkflows
363a7590326b6b10e1da47eedc6026f4bc382725
[ "Apache-2.0" ]
76
2020-09-24T14:30:40.000Z
2021-07-01T13:43:29.000Z
fairworkflows/rdf_wrapper.py
fair-workflows/FAIRWorkbench
363a7590326b6b10e1da47eedc6026f4bc382725
[ "Apache-2.0" ]
1
2022-02-03T13:43:28.000Z
2022-02-03T13:43:28.000Z
import warnings from pathlib import Path from tempfile import TemporaryDirectory from typing import List from urllib.parse import urldefrag import pyshacl import rdflib from rdflib import RDF, RDFS, DCTERMS, OWL from nanopub import Publication, NanopubClient from rdflib.tools.rdf2dot import rdf2dot from fairworkflows...
39.01105
138
0.619742
d77bee6cb9b10314fe45171f6c4110c197b88790
31
py
Python
btd6_memory_info/generated/Assets/Scripts/Models/ServerEvents/DailyChallengeModel/daily_challenge_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Models/ServerEvents/DailyChallengeModel/daily_challenge_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Assets/Scripts/Models/ServerEvents/DailyChallengeModel/daily_challenge_model.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class DailyChallengeModel: pass
31
31
0.903226
8f1e38a65d328328f8a39c5c79a420f4566b254b
5,648
py
Python
pystratis/api/dynamic_contract/dynamic_contract.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
8
2021-06-30T20:44:22.000Z
2021-12-07T14:42:22.000Z
pystratis/api/dynamic_contract/dynamic_contract.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
2
2021-07-01T11:50:18.000Z
2022-01-25T18:39:49.000Z
pystratis/api/dynamic_contract/dynamic_contract.py
TjadenFroyda/pyStratis
9cc7620d7506637f8a2b84003d931eceb36ac5f2
[ "MIT" ]
4
2021-07-01T04:36:42.000Z
2021-09-17T10:54:19.000Z
import ast from typing import List, Union from decimal import Decimal from pystratis.api import APIRequest, EndpointRegister, endpoint from pystratis.core.types import Address, Money from pystratis.api.dynamic_contract.responsemodels import * class DynamicContract(APIRequest, metaclass=EndpointRegister): """Imple...
45.548387
127
0.589412
f11c2ccd841a6b251e9476a1841dfadb2cec6039
4,630
py
Python
src/data_processing/text_processing.py
TamPhilip/asl-app
8f616ccde7a17570b567869554601c37cf78fbfc
[ "MIT" ]
null
null
null
src/data_processing/text_processing.py
TamPhilip/asl-app
8f616ccde7a17570b567869554601c37cf78fbfc
[ "MIT" ]
null
null
null
src/data_processing/text_processing.py
TamPhilip/asl-app
8f616ccde7a17570b567869554601c37cf78fbfc
[ "MIT" ]
null
null
null
#%% Run Imports import pandas as pd import re from nltk.corpus import stopwords import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics import accuracy_score from sklearn.multiclass import OneVsRestClassifier from sklearn.svm import LinearSVC from sklearn.pipeline import Pipe...
39.57265
112
0.614903
80dd0fe730592749ef9cd75c008f964776b68613
4,027
py
Python
zerver/lib/markdown/help_relative_links.py
Fingel/zulip
07c12e8a6caeef8c0f73919052241c5ec05e2b85
[ "Apache-2.0" ]
3
2021-09-12T05:05:28.000Z
2021-12-30T09:45:20.000Z
zerver/lib/markdown/help_relative_links.py
Fingel/zulip
07c12e8a6caeef8c0f73919052241c5ec05e2b85
[ "Apache-2.0" ]
null
null
null
zerver/lib/markdown/help_relative_links.py
Fingel/zulip
07c12e8a6caeef8c0f73919052241c5ec05e2b85
[ "Apache-2.0" ]
null
null
null
import re from typing import Any, List, Match, Optional from markdown import Markdown from markdown.extensions import Extension from markdown.preprocessors import Preprocessor from zerver.lib.markdown.preprocessor_priorities import PREPROCESSOR_PRIORITES # There is a lot of duplicated code between this file and # he...
33.280992
97
0.630246
46b9984200cc9b8583b7bbb9fb0b7963293e8855
3,304
py
Python
test/test_cli.py
rob-smallshire/eseries
bfdeecf404e0e8226fb2a8fce97cc5f426420199
[ "MIT" ]
6
2019-01-28T13:36:39.000Z
2021-12-03T08:45:47.000Z
test/test_cli.py
rob-smallshire/eseries
bfdeecf404e0e8226fb2a8fce97cc5f426420199
[ "MIT" ]
2
2020-04-22T21:50:00.000Z
2021-05-13T07:56:22.000Z
test/test_cli.py
rob-smallshire/eseries
bfdeecf404e0e8226fb2a8fce97cc5f426420199
[ "MIT" ]
3
2019-01-28T13:36:44.000Z
2021-07-21T01:56:17.000Z
import os from eseries.cli import main def test_nearest(capfd): code = main("nearest E12 21".split()) out, err = capfd.readouterr() assert code == os.EX_OK assert out == "22\n" def test_nearest_with_symbol(capfd): code = main("nearest E12 21000 -s".split()) out, err = capfd.readouterr() ...
24.116788
56
0.63862
76604303c40d4962c59b4dd83c285e28ec3e8b5b
18,403
bzl
Python
deps.bzl
AffineCOP26/daml
6388396bc47ddfe8743f6e076a1929e2d659624c
[ "Apache-2.0" ]
1
2021-04-22T00:23:14.000Z
2021-04-22T00:23:14.000Z
deps.bzl
AffineCOP26/daml
6388396bc47ddfe8743f6e076a1929e2d659624c
[ "Apache-2.0" ]
5
2021-06-15T21:44:19.000Z
2022-02-27T13:59:46.000Z
deps.bzl
Darkstar1t/daml
802362b59879455fff5187a55b49e341408be0bc
[ "Apache-2.0" ]
1
2021-03-25T09:14:22.000Z
2021-03-25T09:14:22.000Z
# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # # The dependencies of the daml workspace. # This allows using the daml workspace externally # from another bazel workspace. # # For example, another Bazel project can depend on # ta...
47.552972
178
0.662229
63bdfee8d51b739e428cf17293d4511602c2874d
1,403
py
Python
gamestonk_terminal/discovery/alpha_vantage_view.py
alexgallego1997/GamestonkTerminal
1c6ce5c99111aa7195c51f6930fcdbb9dadd2f00
[ "MIT" ]
3
2021-04-13T06:26:46.000Z
2022-01-26T05:11:22.000Z
gamestonk_terminal/discovery/alpha_vantage_view.py
lolrenx/GamestonkTerminal
eb2b0d766bf1b6bb8656d6733083962efb152fe2
[ "MIT" ]
2
2021-04-17T10:24:06.000Z
2021-04-17T10:44:59.000Z
gamestonk_terminal/discovery/alpha_vantage_view.py
lolrenx/GamestonkTerminal
eb2b0d766bf1b6bb8656d6733083962efb152fe2
[ "MIT" ]
null
null
null
""" Alpha Vantage View """ __docformat__ = "numpy" import argparse from typing import List import matplotlib.pyplot as plt from alpha_vantage.sectorperformance import SectorPerformances from gamestonk_terminal import config_terminal as cfg from gamestonk_terminal.helper_funcs import parse_known_args_and_warn from game...
27.509804
77
0.692088
5a352ec6003f8c55cb994f8ce69fc844174fe0dc
3,587
py
Python
app/controllers/admin/board.py
meongbego/IOT_ADRINI
0923b86a9d1da5d6859b70726ad1e041aecc97b2
[ "MIT" ]
1
2019-07-27T12:17:23.000Z
2019-07-27T12:17:23.000Z
app/controllers/admin/board.py
meongbego/ADRINI_IOT_PLATFORM
0923b86a9d1da5d6859b70726ad1e041aecc97b2
[ "MIT" ]
4
2021-04-18T11:41:31.000Z
2021-06-01T23:12:19.000Z
app/controllers/admin/board.py
sofyan48/ADRINI_IOT_PLATFORM
0923b86a9d1da5d6859b70726ad1e041aecc97b2
[ "MIT" ]
null
null
null
from flask_restful import Resource, reqparse, fields from app.helpers.rest import * from app.helpers.memcache import * from app.models import model as db from app.middlewares.auth import admin_required class BoardResource(Resource): @admin_required def get(self): obj_userdata = list() try: ...
28.023438
68
0.489546
aa8c79eea86455da6bc4193edf55bf458cdf84ee
4,256
py
Python
ns/shaper/token_bucket.py
wsyCUHK/ns.py
44f9c627a9d3b9b31a0799b9a9cea50560eda8a1
[ "Apache-2.0" ]
3
2021-06-17T01:57:43.000Z
2021-12-16T11:53:31.000Z
ns/shaper/token_bucket.py
wsyCUHK/ns.py
44f9c627a9d3b9b31a0799b9a9cea50560eda8a1
[ "Apache-2.0" ]
null
null
null
ns/shaper/token_bucket.py
wsyCUHK/ns.py
44f9c627a9d3b9b31a0799b9a9cea50560eda8a1
[ "Apache-2.0" ]
null
null
null
""" Models an ideal token bucket shaper. """ import simpy class TokenBucketShaper: """ The token bucket size should be greater than the size of the largest packet that can occur on input. If this is not the case we always accumulate enough tokens to let the current packet pass based on the average rate. T...
35.173554
95
0.56109
9d9969b7aab1ac38d2346f26ad69bde4c77e0878
5,281
py
Python
App/wizard/prefs/chat_archives.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/wizard/prefs/chat_archives.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/wizard/prefs/chat_archives.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
from wizard.prefs.main import prefs from wizard.tools import log from wizard.vars import defaults from wizard.tools import utility as utils import importlib importlib.reload(defaults) import yaml import os import shutil import sys prefs = prefs() logger = log.pipe_log(__name__) class chat_archives(): def __ini...
33.852564
102
0.641356
fd019416b6983cbb3b56fe36d6ec6d4e82954782
1,039
py
Python
Dependencies/pop_info_generator.py
laneatmore/model_admix
dc1a894700fea38f21eb17df269d7a87a7f272ea
[ "MIT" ]
null
null
null
Dependencies/pop_info_generator.py
laneatmore/model_admix
dc1a894700fea38f21eb17df269d7a87a7f272ea
[ "MIT" ]
null
null
null
Dependencies/pop_info_generator.py
laneatmore/model_admix
dc1a894700fea38f21eb17df269d7a87a7f272ea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #generates pop id's import subprocess import sys import os import fileinput os.chdir("../Admixture/") N1 = int(sys.argv[1]) N2 = int(sys.argv[2]) N3 = int(sys.argv[3]) def new_file(N1, N2, N3): if (len(sys.argv) < 4): print("not enough arguments") exit() elif (len(sys.argv) > 5): pr...
22.586957
71
0.588065
be8d4d06e5dc1740ab9480f626411f823bfbba69
14,287
py
Python
sympy/combinatorics/tests/test_permutations.py
eriknw/sympy
b7544e2bb74c011f6098a7e886fd77f41776c2c4
[ "BSD-3-Clause" ]
7
2015-01-14T06:55:33.000Z
2018-08-11T14:43:52.000Z
sympy/combinatorics/tests/test_permutations.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2018-02-19T04:56:04.000Z
2018-02-19T04:56:04.000Z
sympy/combinatorics/tests/test_permutations.py
pbeltran/sympy-1
94f92b36731c2bebe6de1037c063c2a258a8a399
[ "BSD-3-Clause" ]
1
2016-04-24T14:39:22.000Z
2016-04-24T14:39:22.000Z
from sympy.combinatorics.permutations import (Permutation, _af_parity, _af_rmul, _af_rmuln, Cycle) from sympy.core.compatibility import permutations from sympy.utilities.pytest import raises rmul = Permutation.rmul def test_Permutation(): # don't auto fill 0 raises(ValueError, lambda: Permutation([1])) ...
37.012953
79
0.55407
207d6089194d03444b180ce00eccc57512d2163b
471
py
Python
celery/tests/test_messaging.py
gthb/celery
13057dc69a6ecda6aabfae7b7640d971176251fb
[ "BSD-3-Clause" ]
2
2017-05-24T13:03:30.000Z
2017-09-04T08:24:19.000Z
celery/tests/test_messaging.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
celery/tests/test_messaging.py
winhamwr/celery
249a270301ddb9b025cf8d00400bb442df9cae62
[ "BSD-3-Clause" ]
null
null
null
import unittest2 as unittest from celery.messaging import MSG_OPTIONS, extract_msg_options class TestMsgOptions(unittest.TestCase): def test_MSG_OPTIONS(self): self.assertTrue(MSG_OPTIONS) def test_extract_msg_options(self): testing = {"mandatory": True, "routing_key": "foo.xuzzy"} ...
29.4375
65
0.719745
0d3d42ea4b8a2194ff75ec28f237ef8282644653
4,109
py
Python
gossamer/integration.py
ijl/gossamer
1b9608827b1d651f9748010a8c771e956340eb6e
[ "Apache-2.0" ]
3
2016-02-10T13:33:55.000Z
2019-01-04T11:37:47.000Z
gossamer/integration.py
ijl/gossamer
1b9608827b1d651f9748010a8c771e956340eb6e
[ "Apache-2.0" ]
null
null
null
gossamer/integration.py
ijl/gossamer
1b9608827b1d651f9748010a8c771e956340eb6e
[ "Apache-2.0" ]
null
null
null
""" Integrate with unittest. """ # Copyright (c) 2013 contributors; see AUTHORS. # Licensed under the Apache License, Version 2.0 # https://www.apache.org/licenses/LICENSE-2.0 import unittest from gossamer.main import dispatch from gossamer.constant import modes, states, DEFAULT_WEBDRIVER from gossamer import util, ...
33.958678
110
0.621562
0335201a4dda7c58be55ec92314276b86ab8b0f3
4,122
py
Python
contrib/opencensus-ext-pyramid/opencensus/ext/pyramid/pyramid_middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-pyramid/opencensus/ext/pyramid/pyramid_middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
contrib/opencensus-ext-pyramid/opencensus/ext/pyramid/pyramid_middleware.py
samn/opencensus-python
d8709f141b67f7f5ba011c440b8ba8fb9cbc419a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017, OpenCensus Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
34.932203
94
0.687288
59c2c6f59f2a33b256f02f3bc70e9937f422834f
8,592
py
Python
nailgun/nailgun/statistics/oswl/helpers.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/statistics/oswl/helpers.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/statistics/oswl/helpers.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Mirantis, 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 ag...
35.949791
79
0.645717
dacdb61f1dfa2efdd5d8d6279fb894ab08d82cc5
1,215
py
Python
scripts/parse_eval.py
jeongjuns/yolactpose
6faea1707731e4a4bfb019856d3667e70238cfc6
[ "MIT" ]
1
2022-02-12T17:18:55.000Z
2022-02-12T17:18:55.000Z
scripts/parse_eval.py
jeongjuns/yolactpose
6faea1707731e4a4bfb019856d3667e70238cfc6
[ "MIT" ]
null
null
null
scripts/parse_eval.py
jeongjuns/yolactpose
6faea1707731e4a4bfb019856d3667e70238cfc6
[ "MIT" ]
null
null
null
import re, sys, os import matplotlib.pyplot as plt from matplotlib._color_data import XKCD_COLORS with open(sys.argv[1], 'r') as f: txt = f.read() txt, overall = txt.split('overall performance') class_names = [] mAP_overall = [] mAP_small = [] mAP_medium = [] mAP_large = [] for class_result in ...
24.3
58
0.669136
142169cb584bbde55a44645f93364bb8508d4638
1,659
py
Python
sdk/python/pulumi_azure_native/devices/v20180401/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devices/v20180401/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/devices/v20180401/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from ._enums import * from .certificate import * from .get_certificate import * from .get_iot_hub_resource ...
37.704545
98
0.7173
5f387e0067f1f5c7c8d25917c8f8ed7ef80654ad
11,374
py
Python
st2common/tests/unit/test_util_sandboxing.py
hnanchahal/st2
15116250a5eddfb5421102b31cb00b349ef7c763
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_util_sandboxing.py
hnanchahal/st2
15116250a5eddfb5421102b31cb00b349ef7c763
[ "Apache-2.0" ]
null
null
null
st2common/tests/unit/test_util_sandboxing.py
hnanchahal/st2
15116250a5eddfb5421102b31cb00b349ef7c763
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
47.991561
100
0.667399
524b8e49dbabb05c867275c1b77cf6f6caecd30d
27,701
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/calliope/base.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/calliope/base.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/calliope/base.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2013 Google LLC. 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 requir...
30.208288
95
0.693513
70e5be6866fd0c184941bceb014c23519574e050
33,762
py
Python
test/functional/rpc_fundrawtransaction.py
TriCron/shirecoin
50ab7e5b7dc32350e4bcbe33ad728b3926212e5a
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
TriCron/shirecoin
50ab7e5b7dc32350e4bcbe33ad728b3926212e5a
[ "MIT" ]
null
null
null
test/functional/rpc_fundrawtransaction.py
TriCron/shirecoin
50ab7e5b7dc32350e4bcbe33ad728b3926212e5a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the fundrawtransaction RPC.""" from decimal import Decimal from test_framework.test_framework imp...
44.482213
165
0.635478
deffeefbe8e5dd13a925fcf61b60536c7482a3dc
35
py
Python
octodns-custom-providers/__init__.py
ganawaj/octodns-custom-provider
d695a9f805f77e2f4083ad9b10433a260f012e86
[ "MIT" ]
2
2021-06-07T16:11:20.000Z
2021-08-10T22:35:16.000Z
octodns-custom-providers/__init__.py
ganawaj/octodns-custom-provider
d695a9f805f77e2f4083ad9b10433a260f012e86
[ "MIT" ]
1
2021-06-07T20:12:14.000Z
2021-06-07T20:12:14.000Z
octodns-custom-providers/__init__.py
ganawaj/octodns-custom-provider
d695a9f805f77e2f4083ad9b10433a260f012e86
[ "MIT" ]
2
2021-06-07T17:20:32.000Z
2022-03-19T00:33:05.000Z
'Custom octodns providers/sources'
17.5
34
0.828571
7bb334bcb8f7af79fab8325875ce1964f424cd69
1,340
py
Python
make_thumb.py
igoradmtg/simple_video_thumbnails
d13118dff05a6ea28c8c003ad642e7e7283981a4
[ "MIT" ]
1
2021-08-13T17:37:29.000Z
2021-08-13T17:37:29.000Z
make_thumb.py
igoradmtg/simple_video_thumbnails
d13118dff05a6ea28c8c003ad642e7e7283981a4
[ "MIT" ]
null
null
null
make_thumb.py
igoradmtg/simple_video_thumbnails
d13118dff05a6ea28c8c003ad642e7e7283981a4
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*-import os import os import sys from moviepy.editor import VideoFileClip def main() : if (len(sys.argv)<3) : print("Error argument "+str(len(sys.argv))) print("Use:") print("make_thumb.py dir_name file_name_video [thumb_dir]") print(" dir...
34.358974
85
0.552985
1e8f59ca6d9471ee3fa6e845170c1b231b02e869
7,955
py
Python
datalad/customremotes/ria_utils.py
DisasterMo/datalad
dfa956984f6e737e11518f4a9b230b6a6eadc97a
[ "MIT" ]
298
2015-01-25T17:36:29.000Z
2022-03-20T03:38:47.000Z
datalad/customremotes/ria_utils.py
adswa/datalad
c86643fe2e974da8d7403e9799997efcfee97384
[ "MIT" ]
6,387
2015-01-02T18:15:01.000Z
2022-03-31T20:58:58.000Z
datalad/customremotes/ria_utils.py
adswa/datalad
c86643fe2e974da8d7403e9799997efcfee97384
[ "MIT" ]
109
2015-01-25T17:49:40.000Z
2022-03-06T06:54:54.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
33.284519
87
0.618102
c2609fd1e1bc8278926e8a0a774a450b9a08fd70
7,496
py
Python
test/test_plugins.py
ttkltll/bottle
c8179b28d93b2875a31866c6b84a9b5b59c0c8b4
[ "MIT" ]
null
null
null
test/test_plugins.py
ttkltll/bottle
c8179b28d93b2875a31866c6b84a9b5b59c0c8b4
[ "MIT" ]
null
null
null
test/test_plugins.py
ttkltll/bottle
c8179b28d93b2875a31866c6b84a9b5b59c0c8b4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from . import tools from bottle import HTTPResponse, HTTPError class MyPlugin(object): def __init__(self): self.app = None self.add_args = {} self.add_content = '' def setup(self, app): self.app = app def apply(self, func, config):...
33.765766
79
0.576708
1cc216e969fd8fa20a9a68f99e29f36418f26d38
174
py
Python
pyboi/base.py
tomis007/pyboi
cff297d60593812d6885854f77c11815b181677a
[ "MIT" ]
2
2017-02-26T16:54:37.000Z
2017-06-17T14:50:45.000Z
pyboi/base.py
tomis007/pyboi
cff297d60593812d6885854f77c11815b181677a
[ "MIT" ]
null
null
null
pyboi/base.py
tomis007/pyboi
cff297d60593812d6885854f77c11815b181677a
[ "MIT" ]
null
null
null
from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() '''this is so all the database classes share the same base/ allow the database creation'''
34.8
90
0.798851
71efa12ed925e27c09d41ccc336bbceb79e61789
432
py
Python
biosppy/__init__.py
rickyHong/BioSPPy-repl
8b7b04c5b48ce434e81ab8a9fe40fb7ffb8f25c1
[ "BSD-3-Clause" ]
1
2018-04-29T16:27:57.000Z
2018-04-29T16:27:57.000Z
biosppy/__init__.py
rickyHong/BioSPPy-repl
8b7b04c5b48ce434e81ab8a9fe40fb7ffb8f25c1
[ "BSD-3-Clause" ]
null
null
null
biosppy/__init__.py
rickyHong/BioSPPy-repl
8b7b04c5b48ce434e81ab8a9fe40fb7ffb8f25c1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ biosppy ------- A toolbox for biosignal processing written in Python. :copyright: (c) 2015-2017 by Instituto de Telecomunicacoes :license: BSD 3-clause, see LICENSE for more details. """ # compat from __future__ import absolute_import, division, print_function # get version from .versio...
21.6
64
0.733796
699a5c534a3aa5fac43174ebb869d03fa49a82a0
43,294
py
Python
zerver/worker/queue_processors.py
narendrapsgim/zulip
e2df0d171f921d1e2b09d5de72088ffcc6a0f5f4
[ "Apache-2.0" ]
17,004
2015-09-25T18:27:24.000Z
2022-03-31T22:02:32.000Z
zerver/worker/queue_processors.py
narendrapsgim/zulip
e2df0d171f921d1e2b09d5de72088ffcc6a0f5f4
[ "Apache-2.0" ]
20,344
2015-09-25T19:02:42.000Z
2022-03-31T23:54:40.000Z
zerver/worker/queue_processors.py
narendrapsgim/zulip
e2df0d171f921d1e2b09d5de72088ffcc6a0f5f4
[ "Apache-2.0" ]
7,271
2015-09-25T18:48:39.000Z
2022-03-31T21:06:11.000Z
# Documented in https://zulip.readthedocs.io/en/latest/subsystems/queuing.html import base64 import copy import datetime import email import email.policy import functools import logging import os import signal import socket import tempfile import time import urllib from abc import ABC, abstractmethod from collections i...
40.049954
132
0.630711
a2233e9eef62998aedd73303d137a9dff2d2ee27
6,141
py
Python
examples/viewport1.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
125
2016-11-24T09:04:28.000Z
2022-01-22T14:06:56.000Z
examples/viewport1.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
52
2017-11-08T23:23:02.000Z
2022-03-20T03:17:39.000Z
examples/viewport1.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
25
2017-08-27T10:50:43.000Z
2022-01-29T14:56:05.000Z
# # File: # viewport1.py # # Synopsis: # Illustrates the difference between the viewport and bounding box. # # Categories: # viewport # polylines # polymarkers # text # # Author: # Mary Haley # # Date of initial publication: # August 2010 # # Description: # This example shows how to r...
29.81068
72
0.616675
43e4f494d2742ee25a9e783041ca3a1f7e64c889
5,569
py
Python
kedro/io/memory_data_set.py
louisdecharson/kedro
5816b6c0bcbb663b25cf9e40a237ebe812a91ef5
[ "Apache-2.0" ]
4,923
2019-05-16T17:29:23.000Z
2022-01-10T06:01:02.000Z
kedro/io/memory_data_set.py
ManishS6/kedro
65e1c10050ba1b3c45227db8e28a275172ea1ea8
[ "Apache-2.0" ]
841
2019-05-20T16:58:11.000Z
2022-01-09T09:36:26.000Z
kedro/io/memory_data_set.py
ManishS6/kedro
65e1c10050ba1b3c45227db8e28a275172ea1ea8
[ "Apache-2.0" ]
653
2019-05-19T10:05:22.000Z
2022-01-06T13:48:23.000Z
# Copyright 2021 QuantumBlack Visual Analytics Limited # # 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 # # THE SOFTWARE IS PROVIDED "AS IS",...
34.590062
84
0.649309
2b14ca4d7ce0532f7b7b8f256c4af41ac864cd60
3,616
py
Python
lib/nms/nms.py
StanfordHCI/human-pose-estimation.pytorch
431a078d0c46854e567f83a9d019170811d0dc48
[ "MIT" ]
null
null
null
lib/nms/nms.py
StanfordHCI/human-pose-estimation.pytorch
431a078d0c46854e567f83a9d019170811d0dc48
[ "MIT" ]
null
null
null
lib/nms/nms.py
StanfordHCI/human-pose-estimation.pytorch
431a078d0c46854e567f83a9d019170811d0dc48
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) Microsoft # Licensed under the MIT License. # Modified from py-faster-rcnn (https://github.com/rbgirshick/py-faster-rcnn) # ------------------------------------------------------------------------------ from __future__ imp...
28.928
141
0.53927
ebef44363174a9d690d287c89c0c4bbfb6a3f93c
333
py
Python
Assignments/Functions/Exercise/03. Characters in Range.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
Assignments/Functions/Exercise/03. Characters in Range.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
Assignments/Functions/Exercise/03. Characters in Range.py
KaloyankerR/python-fundamentals-repository
b8e69523ea7e6aa352e8398f0202e283374a0f7c
[ "MIT" ]
null
null
null
def characters_between(start: str, end: str): start = ord(start) end = ord(end) if start < end: for letter in range(start + 1, end): print(chr(letter), end=' ') else: for i in range(end + 1, start, -1): print(chr(i), end=' ') a = input() b = input() characters_b...
22.2
45
0.534535
4a5c9bc4ff3587abe4f0ff1c44a720dabae09493
2,947
py
Python
test/test_tcp.py
ydy1234/vpp
9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa
[ "Apache-2.0" ]
1
2020-05-21T16:26:02.000Z
2020-05-21T16:26:02.000Z
test/test_tcp.py
ydy1234/vpp
9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa
[ "Apache-2.0" ]
2
2018-09-10T21:43:09.000Z
2021-06-01T22:36:51.000Z
test/test_tcp.py
ydy1234/vpp
9f9e969f149e40044fee9d2e47b7dd96f3ae4dfa
[ "Apache-2.0" ]
1
2018-09-04T09:01:23.000Z
2018-09-04T09:01:23.000Z
#!/usr/bin/env python import unittest from framework import VppTestCase, VppTestRunner from vpp_ip_route import VppIpTable, VppIpRoute, VppRoutePath class TestTCP(VppTestCase): """ TCP Test Case """ @classmethod def setUpClass(cls): super(TestTCP, cls).setUpClass() def setUp(self): ...
32.032609
75
0.538174
3ddc177ab2f284445c372d797bdcd0d5c7ec3e99
1,524
py
Python
extract-windows.py
maxsam4/ethereum-debugging-helper
3c51468b540ee94311ecc6873c856c0895a6e740
[ "MIT" ]
5
2018-09-01T19:38:51.000Z
2022-02-01T23:38:49.000Z
extract-windows.py
maxsam4/ethereum-debugging-helper
3c51468b540ee94311ecc6873c856c0895a6e740
[ "MIT" ]
null
null
null
extract-windows.py
maxsam4/ethereum-debugging-helper
3c51468b540ee94311ecc6873c856c0895a6e740
[ "MIT" ]
null
null
null
import json import glob from sha3 import keccak_256 functionHashes = open("extract\\functionHashes.txt","w+") for file in list(glob.glob('build\contracts\*.json')): reader = open(file) j = json.load(reader) index_of_dot = reader.name.index('.') file_name_without_extension1 ...
31.75
81
0.582021
737b763a59a48f695e847d9cbbbb350a8881bc3f
4,556
py
Python
qiskit/opflow/list_ops/tensored_op.py
artmenlope/qiskit-terra
7e02ac9ed29cfed359ae295bcf19f4a6e8b912fd
[ "Apache-2.0" ]
null
null
null
qiskit/opflow/list_ops/tensored_op.py
artmenlope/qiskit-terra
7e02ac9ed29cfed359ae295bcf19f4a6e8b912fd
[ "Apache-2.0" ]
null
null
null
qiskit/opflow/list_ops/tensored_op.py
artmenlope/qiskit-terra
7e02ac9ed29cfed359ae295bcf19f4a6e8b912fd
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
39.964912
97
0.684372
27af017319268734dfb0be284fd7f9670301ad0a
4,275
py
Python
tests/integration-tests/tests/multiple_nics/test_multiple_nics.py
enrico-usai/aws-parallelcluster
caed724204c7db00424fabd803aa07d9fac2d962
[ "Apache-2.0" ]
1
2021-07-10T13:59:46.000Z
2021-07-10T13:59:46.000Z
tests/integration-tests/tests/multiple_nics/test_multiple_nics.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
14
2022-03-11T10:26:58.000Z
2022-03-28T10:40:43.000Z
tests/integration-tests/tests/multiple_nics/test_multiple_nics.py
QPC-database/aws-parallelcluster
8c2e9595ca171340df21695c27d85dc00f19d3e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file acc...
49.709302
119
0.765614
419f6e2a681e795bd5de024d2a907dafed549f17
811
py
Python
Speedo/plugins/cricket.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
Speedo/plugins/cricket.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
null
null
null
Speedo/plugins/cricket.py
aviskumar/speedo
758e8ac1fdeeb0b72c3a57742032ca5c79f0b2fa
[ "BSD-3-Clause" ]
3
2021-10-12T08:17:01.000Z
2021-12-21T01:17:54.000Z
import urllib.request from bs4 import BeautifulSoup from . import * @speedo.on(Speedo_cmd(pattern="cs$")) @speedo.on(sudo_cmd(pattern="cs$", allow_sudo=True)) async def _(event): if event.fwd_from: return score_page = "http://static.cricinfo.com/rss/livescores.xml" page = urllib.request.urlopen(sc...
26.16129
87
0.653514
8e4e86dd2eda354c384df42b7f8679ad9f0344b5
10,589
py
Python
ml/rl/caffe_utils.py
joshrose/Horizon
a2eb407b31a16560ae78aa6751eb83672a122a7e
[ "BSD-3-Clause" ]
2
2021-05-23T22:11:21.000Z
2021-06-17T13:08:53.000Z
ml/rl/caffe_utils.py
joshrose/Horizon
a2eb407b31a16560ae78aa6751eb83672a122a7e
[ "BSD-3-Clause" ]
null
null
null
ml/rl/caffe_utils.py
joshrose/Horizon
a2eb407b31a16560ae78aa6751eb83672a122a7e
[ "BSD-3-Clause" ]
2
2021-01-06T01:06:50.000Z
2021-06-24T01:12:52.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. import itertools import logging import os import traceback from io import BytesIO from typing import Any, Dict, List, Optional import caffe2.python.onnx.backend import numpy as np import onnx import torch from caffe2.python...
32.885093
87
0.603456
7c8618e59a4c56df0db014403e6cde9306472519
7,078
py
Python
image-generation/pggan/sliced_wasserstein.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
228
2017-11-20T06:05:56.000Z
2022-03-23T12:40:05.000Z
image-generation/pggan/sliced_wasserstein.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
36
2018-01-11T23:26:20.000Z
2022-03-12T00:53:38.000Z
image-generation/pggan/sliced_wasserstein.py
AaratiAkkapeddi/nnabla-examples
db9e5ad850303c158773aeb275e5c3821b4a3935
[ "Apache-2.0" ]
76
2017-11-22T22:00:00.000Z
2022-03-28T05:58:57.000Z
# Copyright 2018,2019,2020,2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
35.747475
122
0.611331
d95561a02f314ab64425184b6204f48607c75048
30,011
py
Python
tests/integration/test_lambda.py
mesillo/localstack
5bc6cff903a8d11f821667bd217796596e94ef7d
[ "Apache-2.0" ]
null
null
null
tests/integration/test_lambda.py
mesillo/localstack
5bc6cff903a8d11f821667bd217796596e94ef7d
[ "Apache-2.0" ]
null
null
null
tests/integration/test_lambda.py
mesillo/localstack
5bc6cff903a8d11f821667bd217796596e94ef7d
[ "Apache-2.0" ]
null
null
null
import re import os import json import time import unittest import six from io import BytesIO from localstack import config from localstack.constants import LOCALSTACK_ROOT_FOLDER, LOCALSTACK_MAVEN_VERSION from localstack.utils import testutil from localstack.utils.aws import aws_stack from localstack.utils.common impo...
39.540184
110
0.671054
993035b9e7e9418efe01cea99bbbfd19b48bf2ec
601
py
Python
old_code/setup2.py
aitchslash/lahman-updater
e3c92780a27b7c0fe63f67d2dcf6a95478f920cc
[ "MIT" ]
3
2016-03-20T18:03:58.000Z
2018-05-07T15:50:07.000Z
setup.py
aitchslash/lahman-updater
e3c92780a27b7c0fe63f67d2dcf6a95478f920cc
[ "MIT" ]
null
null
null
setup.py
aitchslash/lahman-updater
e3c92780a27b7c0fe63f67d2dcf6a95478f920cc
[ "MIT" ]
null
null
null
"""Setup for lahman_update.""" from setuptools import setup, find_packages with open('README.rst') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='lahman_updater', version='1.0.0', description='Update lahman database', long_description=readme, author='B...
24.04
47
0.620632
7e324849e9d1c9a05bc9a81fba5322ec4cf9282a
7,620
py
Python
lantz/lantz/drivers/rigol/dg1022.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
6
2016-04-13T12:59:18.000Z
2020-06-24T17:43:04.000Z
lantz/lantz/drivers/rigol/dg1022.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
null
null
null
lantz/lantz/drivers/rigol/dg1022.py
zhong-lab/optics
9de1942d9a128183ecb3d360b160b27126e7b8f0
[ "BSD-2-Clause" ]
6
2015-12-14T19:30:36.000Z
2020-06-29T21:16:01.000Z
""" lantz.drivers.rigol.dg1022 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Implementation of Rigol DG1022 function generator with 2 channels. More or less based around on the Ag33522a driver from Berk Diler. Manual available from: https://www.rigolna.com/products/waveform-generators/dg1000/ Author: Peter M...
33.866667
97
0.59042
c4386a0e2aacabd8703e84e211f68e4d589d889e
5,331
py
Python
lib/constitution.py
dmatthewsbnd251/Inventory_Manager
148ff7734141a80c960fb02b1171363e5c82169b
[ "Unlicense", "MIT" ]
null
null
null
lib/constitution.py
dmatthewsbnd251/Inventory_Manager
148ff7734141a80c960fb02b1171363e5c82169b
[ "Unlicense", "MIT" ]
null
null
null
lib/constitution.py
dmatthewsbnd251/Inventory_Manager
148ff7734141a80c960fb02b1171363e5c82169b
[ "Unlicense", "MIT" ]
null
null
null
"""This class contains all of the rules, criteria, and actions.""" from lib.criteria import Criteria from lib.rule import Rule class Constitution: criteria = set() rules = set() # state_template_options[config_name] = { # options: value, # options2: value2, # ... # } stat...
38.352518
117
0.536672
03536df3c245a1d8480429a380045a56e1f3a049
24
py
Python
moviepy/version.py
bobatsar/moviepy
17028410205a56f2937011e08ae0e91971e49318
[ "MIT" ]
1
2021-06-13T02:53:26.000Z
2021-06-13T02:53:26.000Z
moviepy/version.py
bobatsar/moviepy
17028410205a56f2937011e08ae0e91971e49318
[ "MIT" ]
6
2019-12-17T13:32:08.000Z
2021-06-02T00:49:29.000Z
moviepy/version.py
bobatsar/moviepy
17028410205a56f2937011e08ae0e91971e49318
[ "MIT" ]
2
2021-03-21T10:37:02.000Z
2021-03-21T10:52:23.000Z
__version__ = "0.2.3.2"
12
23
0.625
f496f0635fb036f725165bcab1deb5260d2ad770
3,541
py
Python
garage/config.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
garage/config.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
garage/config.py
XavierJingfeng/starter
274566e491d5c7157f3c8deff136c56838022349
[ "MIT" ]
null
null
null
import os import os.path as osp # General config GARAGE_PROJECT_PATH = os.environ.get( 'GARAGE_PROJECT_PATH', osp.abspath(osp.join(osp.dirname(__file__), '..'))) GARAGE_LOG_DIR = os.environ.get('GARAGE_LOG_DIR', osp.join(GARAGE_PROJECT_PATH, 'data')) GARAGE_LOG_TENSORBOARD = bool(os...
46.592105
78
0.672974
587d3bfb8fd687c9578655e718eb8e9fb857bcd7
852
py
Python
100dayspython/day008/caesarcipher01.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
100dayspython/day008/caesarcipher01.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
100dayspython/day008/caesarcipher01.py
mrqssjeff/project-python
b3b08f2acfe825640a5ee92cf9d6fa45ab580384
[ "MIT" ]
null
null
null
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'y', 'x', 'z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i','j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'y', 'x', 'z'] direction = s...
40.571429
78
0.504695
b891607b051c6792cf51e928c72665591e411a1c
8,145
py
Python
Fancy_aggregations/binary_parser.py
Fuminides/Fancy_aggregations
9d7dbfa9b615ab6f582d8a36681ab24ccc94f759
[ "MIT" ]
10
2019-11-13T15:38:06.000Z
2022-01-29T09:27:38.000Z
Fancy_aggregations/binary_parser.py
Fuminides/Fancy_aggregations
9d7dbfa9b615ab6f582d8a36681ab24ccc94f759
[ "MIT" ]
null
null
null
Fancy_aggregations/binary_parser.py
Fuminides/Fancy_aggregations
9d7dbfa9b615ab6f582d8a36681ab24ccc94f759
[ "MIT" ]
4
2020-05-18T11:24:12.000Z
2022-03-07T08:34:13.000Z
# -*- coding: utf-8 -*- """ Created on 04/12/2019 @author: Javier Fumanal Idocin """ import numpy as np from . import integrals from . import moderate_deviations from . import tnorms from . import owas from . import overlaps from . import dissimilarities as dis supported_functions = ['mean', 'median', 'min', 'max',...
71.447368
269
0.726949
ba454601304614a6004c1fff3a9dc03fe3e6b314
589
py
Python
admin_tools_stats/migrations/0004_dashboardstats_y_tick_format.py
alexey74/django-admin-charts
40d9ec98e1f5ba30261311fa6b172e3bf9f957fe
[ "MIT" ]
76
2019-10-08T00:26:19.000Z
2022-03-19T07:07:46.000Z
admin_tools_stats/migrations/0004_dashboardstats_y_tick_format.py
BrentGuttmann/django-admin-charts
c8e441e963df46041958598cd877112089298cf1
[ "MIT" ]
36
2019-10-04T17:33:32.000Z
2022-03-27T17:47:14.000Z
admin_tools_stats/migrations/0004_dashboardstats_y_tick_format.py
BrentGuttmann/django-admin-charts
c8e441e963df46041958598cd877112089298cf1
[ "MIT" ]
18
2020-03-07T02:47:07.000Z
2022-03-19T07:07:44.000Z
# Generated by Django 2.2.9 on 2020-01-21 15:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('admin_tools_stats', '0003_auto_20191007_0950'), ] operations = [ migrations.AddField( model_name='dashboardstats', n...
31
230
0.657046
f52cdb061b915c410a9a555ef4b2a44a8babf9d1
8,473
py
Python
train_util.py
shvetsiya/carvana
acc594cba53c44d577c9e3e326e0163eea8b4862
[ "MIT" ]
11
2018-01-28T04:22:57.000Z
2018-12-20T10:09:40.000Z
train_util.py
shvetsiya/carvana
acc594cba53c44d577c9e3e326e0163eea8b4862
[ "MIT" ]
null
null
null
train_util.py
shvetsiya/carvana
acc594cba53c44d577c9e3e326e0163eea8b4862
[ "MIT" ]
2
2017-10-04T00:58:10.000Z
2019-02-14T17:47:25.000Z
from collections import OrderedDict from tqdm import tqdm import cv2 import torch from torch import nn from torch import optim from torch.utils.data import DataLoader from torch.autograd import Variable from torch.optim.lr_scheduler import ReduceLROnPlateau from model.losses import Loss import tools from config impo...
38.689498
103
0.570872
3676beb1e61042db375cf46b24b0cb9d0a28acdd
1,608
py
Python
rl/agent/freeze_dqn.py
AsimKhan2019/OpenAI-Lab
d0669d89268f2dc01c1cf878e4879775c7b6eb3c
[ "MIT" ]
340
2017-02-21T02:32:39.000Z
2021-12-20T00:47:18.000Z
rl/agent/freeze_dqn.py
AsimKhan2019/OpenAI-Lab
d0669d89268f2dc01c1cf878e4879775c7b6eb3c
[ "MIT" ]
14
2017-02-15T19:46:36.000Z
2018-12-15T23:42:21.000Z
rl/agent/freeze_dqn.py
AsimKhan2019/OpenAI-Lab
d0669d89268f2dc01c1cf878e4879775c7b6eb3c
[ "MIT" ]
72
2017-02-21T05:16:00.000Z
2021-12-06T03:34:57.000Z
import numpy as np from rl.agent.double_dqn import DoubleDQN from rl.agent.dqn import DQN from rl.util import logger, clone_model class FreezeDQN(DoubleDQN): ''' Extends DQN agent to freeze target Q network and periodically update them to the weights of the exploration model Avoids oscillations a...
35.733333
79
0.666045
3b4488ef6275f766dd6bb7aaab02d28e34c0d25f
2,004
py
Python
test/_data_base.py
Khan-Xu/Pyrod
3ee62e3d6037328a010d9340bf1e8ff991f48414
[ "MIT" ]
null
null
null
test/_data_base.py
Khan-Xu/Pyrod
3ee62e3d6037328a010d9340bf1e8ff991f48414
[ "MIT" ]
null
null
null
test/_data_base.py
Khan-Xu/Pyrod
3ee62e3d6037328a010d9340bf1e8ff991f48414
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #%% from __future__ import absolute_import #----------LIBRARYS----------- # exceptions library from _exception import (The_Parameter_Exception, The_Data_Load_Exception, The_Data_Base_Exception) # python stdlib library import os import pickle # python processing library import num...
36.436364
143
0.697605
66795790e52244e0f4bd2320b2f920e7af7a9346
899
py
Python
1Week_3-Python/hw/2016/lyw/THUNews_website/THUNews_website/urls.py
wmhst7/-
1f33084c58a1aaf7120a6182396bbabb7a836ce5
[ "MIT" ]
2
2019-08-25T05:07:32.000Z
2019-09-04T07:37:25.000Z
1Week_3-Python/hw/2016/lyw/THUNews_website/THUNews_website/urls.py
wmhst7/-
1f33084c58a1aaf7120a6182396bbabb7a836ce5
[ "MIT" ]
1
2022-03-05T10:11:21.000Z
2022-03-05T10:11:21.000Z
1Week_3-Python/hw/2016/lyw/THUNews_website/THUNews_website/urls.py
wmhst7/-
1f33084c58a1aaf7120a6182396bbabb7a836ce5
[ "MIT" ]
1
2022-03-05T10:15:16.000Z
2022-03-05T10:15:16.000Z
"""THUNews_website URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') ...
35.96
79
0.694105
78db7dbcc310871b46a05809978eb3210d096e9d
1,893
py
Python
setup.py
generic-ci-org/birdy
63c2d0aacad67569d8d8fc25c9a702d80c69fcd0
[ "Apache-2.0" ]
null
null
null
setup.py
generic-ci-org/birdy
63c2d0aacad67569d8d8fc25c9a702d80c69fcd0
[ "Apache-2.0" ]
null
null
null
setup.py
generic-ci-org/birdy
63c2d0aacad67569d8d8fc25c9a702d80c69fcd0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import find_packages from setuptools import setup from pathlib import Path import re def parse_reqs(file): egg_regex = re.compile(r"#egg=(\w+)") reqs = list() for req in open(file): req = req.strip() git_url_match = egg_regex.search(req) if ...
30.532258
101
0.636027
2babc1fd5a4df6a50ae4426d5e105bbbf5679b05
4,540
py
Python
examples/host_extension.py
aarondadler/pySBOL
97cf161eda1c8e1ccaf0f6cb5f0f53b24f6030b5
[ "Apache-2.0" ]
27
2015-04-14T20:34:48.000Z
2021-03-23T22:45:57.000Z
examples/host_extension.py
aarondadler/pySBOL
97cf161eda1c8e1ccaf0f6cb5f0f53b24f6030b5
[ "Apache-2.0" ]
104
2015-03-27T22:05:15.000Z
2022-01-24T16:36:56.000Z
examples/host_extension.py
aarondadler/pySBOL
97cf161eda1c8e1ccaf0f6cb5f0f53b24f6030b5
[ "Apache-2.0" ]
17
2015-05-08T14:53:54.000Z
2020-04-02T19:27:56.000Z
# -*- coding: utf-8 -*- """ The following example script demonstrates pySBOL extension classes. PySBOL extensions allow users to create their own classes of data and serialize it into SBOL files as RDF/XML. A Host is a ComponentDefinition that represents a cell. To indicate that the ComponentDefinition is a cell, as ...
44.950495
244
0.702203
d8de787b5991aa08a8a348cb4fd3632db0d320b8
3,848
py
Python
test.py
anatolykopyl/jumpcutter
2e79a752621d4c59c453be2cdab20b52e9cfdccf
[ "MIT" ]
null
null
null
test.py
anatolykopyl/jumpcutter
2e79a752621d4c59c453be2cdab20b52e9cfdccf
[ "MIT" ]
null
null
null
test.py
anatolykopyl/jumpcutter
2e79a752621d4c59c453be2cdab20b52e9cfdccf
[ "MIT" ]
null
null
null
from pytube import YouTube import os import subprocess testfiles = ["30fps.mp4", "60 fps.mp4", "15fps.mp4", "soundless.mp4", "music.mp4"] def downloadFile(url): sep = os.path.sep originalPath = YouTube(url).streams.first().download() filepath = originalPath.split(sep) filepat...
34.981818
116
0.616164
4ccaae347f91200918bc098d3757a691e3a3795a
9,084
py
Python
testproj/new/bin_parser1.py
musicwarez/testproj
88a6f95f58849cca455865358cfd0bec8a4437a0
[ "BSD-3-Clause" ]
null
null
null
testproj/new/bin_parser1.py
musicwarez/testproj
88a6f95f58849cca455865358cfd0bec8a4437a0
[ "BSD-3-Clause" ]
null
null
null
testproj/new/bin_parser1.py
musicwarez/testproj
88a6f95f58849cca455865358cfd0bec8a4437a0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python2.7 import struct import sys from datetime import datetime import time protocol = { "54": {"name": "Time", 'len': 6, 'bin': "<BBI"}, "45": {"name": "Order Executed", 'len': 26, 'bin': "<BBIQIQ"}, "43": {"name": "Order Executed With Price/Sized", 'len': 39, 'bin': "<BBIQIIQBQ"}, "50": {...
43.464115
117
0.465214
46be087e37e5e8ecfbc5092cdf2dbb72633c1738
5,910
py
Python
gui/kivy/uix/dialogs/__init__.py
stratisproject/electrum
c60fa543418c31ce7f5dcf5aa717d82a5c47e216
[ "MIT" ]
26
2017-06-09T04:13:13.000Z
2021-11-15T11:35:30.000Z
gui/kivy/uix/dialogs/__init__.py
stratisproject/electrum
c60fa543418c31ce7f5dcf5aa717d82a5c47e216
[ "MIT" ]
29
2017-05-07T05:08:06.000Z
2021-02-19T13:15:03.000Z
gui/kivy/uix/dialogs/__init__.py
stratisproject/electrum
c60fa543418c31ce7f5dcf5aa717d82a5c47e216
[ "MIT" ]
21
2017-05-31T14:24:20.000Z
2021-01-30T17:35:43.000Z
from kivy.app import App from kivy.clock import Clock from kivy.factory import Factory from kivy.properties import NumericProperty, StringProperty, BooleanProperty from kivy.core.window import Window from electrum_stratis_gui.kivy.i18n import _ class AnimatedPopup(Factory.Popup): ''' An Animated Popup that anim...
27.361111
80
0.604061
62b83a1b46805a7c242b2b895a198733bfd26eb9
93,899
py
Python
support/markdown2.py
mobihunterz/ImageFactoryModuleBuild
f449b60dadd6a771ece2e368c19f9c7b246e8efa
[ "Apache-2.0" ]
null
null
null
support/markdown2.py
mobihunterz/ImageFactoryModuleBuild
f449b60dadd6a771ece2e368c19f9c7b246e8efa
[ "Apache-2.0" ]
null
null
null
support/markdown2.py
mobihunterz/ImageFactoryModuleBuild
f449b60dadd6a771ece2e368c19f9c7b246e8efa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 Trent Mick. # Copyright (c) 2007-2008 ActiveState Corp. # License: MIT (http://www.opensource.org/licenses/mit-license.php) from __future__ import generators r"""A fast and complete Python implementation of Markdown. [from http://daringfireball.net/projects/markdown/] > Mar...
39.957021
121
0.523456
b45c9fe585bf109bac40d39eb3e8b55a4f519ebd
3,307
py
Python
Insert Delete GetRandom O(1) - Duplicates allowed.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Insert Delete GetRandom O(1) - Duplicates allowed.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
Insert Delete GetRandom O(1) - Duplicates allowed.py
sugia/leetcode
6facec2a54d1d9f133f420c9bce1d1043f57ebc6
[ "Apache-2.0" ]
null
null
null
''' Design a data structure that supports all following operations in average O(1) time. Note: Duplicate elements are allowed. insert(val): Inserts an item val to the collection. remove(val): Removes an item val from the collection if present. getRandom: Returns a random element from current collection of ...
31.495238
196
0.596008
086fcb811d328ee7ba131ded15882342992845e3
1,535
py
Python
scRFE/scRFEimplot.py
czbiohub/scRFE
716b0f59b4b949e6842af3080276c7ea835618a9
[ "MIT" ]
11
2020-03-24T17:10:50.000Z
2021-09-08T22:56:16.000Z
scRFE/scRFEimplot.py
czbiohub/scRFE
716b0f59b4b949e6842af3080276c7ea835618a9
[ "MIT" ]
null
null
null
scRFE/scRFEimplot.py
czbiohub/scRFE
716b0f59b4b949e6842af3080276c7ea835618a9
[ "MIT" ]
1
2020-03-26T23:42:00.000Z
2020-03-26T23:42:00.000Z
#!/usr/bin/env python # coding: utf-8 # # scRFEimplot # In[92]: # import dependencies import numpy as np import pandas as pd import scanpy as sc import random import logging as logg from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn.feature_selectio...
20.743243
89
0.711401
5c1093967379cad2ea57d4248b8bd972fe8be132
1,578
py
Python
10_Days_of_Statistics/Day_1_Interquartile_Range.py
nfabiop/HackerRank
646007dd816f356b49ce05886984457403e9535c
[ "MIT" ]
null
null
null
10_Days_of_Statistics/Day_1_Interquartile_Range.py
nfabiop/HackerRank
646007dd816f356b49ce05886984457403e9535c
[ "MIT" ]
null
null
null
10_Days_of_Statistics/Day_1_Interquartile_Range.py
nfabiop/HackerRank
646007dd816f356b49ce05886984457403e9535c
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # # Complete the 'interQuartile' function below. # # The function accepts following parameters: # 1. INTEGER_ARRAY values # 2. INTEGER_ARRAY freqs # def a_sorted(X): l = len(X) i = 0 while i < l: minimo = X[i] j = i...
19.481481
63
0.478454
3c0561115c0cd189225512b9ac0aa6b71780d450
1,046
py
Python
python/akg/ops/poly_gpu/reduce_min.py
xqdan/akg
e28501611d73d3957a1f3c58eeb6b028f2f2765d
[ "Apache-2.0" ]
null
null
null
python/akg/ops/poly_gpu/reduce_min.py
xqdan/akg
e28501611d73d3957a1f3c58eeb6b028f2f2765d
[ "Apache-2.0" ]
null
null
null
python/akg/ops/poly_gpu/reduce_min.py
xqdan/akg
e28501611d73d3957a1f3c58eeb6b028f2f2765d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.068966
74
0.762906
ea61e58871fe0505e52fb28a576425a1b97e7dd2
17,282
py
Python
api_view_set/viewset.py
Pragnya-Rout/Task-Management
16dcb2fbdef57b2f289d9d6681aba6443c066dc3
[ "Apache-2.0" ]
null
null
null
api_view_set/viewset.py
Pragnya-Rout/Task-Management
16dcb2fbdef57b2f289d9d6681aba6443c066dc3
[ "Apache-2.0" ]
null
null
null
api_view_set/viewset.py
Pragnya-Rout/Task-Management
16dcb2fbdef57b2f289d9d6681aba6443c066dc3
[ "Apache-2.0" ]
null
null
null
# import required modules from flask import request,Response,jsonify,make_response,json from flask_jwt_extended import ( create_access_token, create_refresh_token, jwt_refresh_token_required, get_jwt_identity, jwt_required, get_raw_jwt, ) from datetime import datetime from flask_res...
46.834688
145
0.56689
4e10c78b2fa74176d8f1f391cdac3a1e610c8a02
1,193
py
Python
rabbitmq/routing/receive_logs_direct.py
calebgregory/scraps
cfc0ef608db4520c1a1e22fccdbcae73dfb00e39
[ "MIT" ]
null
null
null
rabbitmq/routing/receive_logs_direct.py
calebgregory/scraps
cfc0ef608db4520c1a1e22fccdbcae73dfb00e39
[ "MIT" ]
null
null
null
rabbitmq/routing/receive_logs_direct.py
calebgregory/scraps
cfc0ef608db4520c1a1e22fccdbcae73dfb00e39
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pika import sys connection = pika.BlockingConnection(pika.ConnectionParameters('localhost')) channel = connection.channel() channel.exchange_declare(exchange='direct_logs', type='direct') result = channel.queue_declare(exclusive=True) queue_name = result.method.queue # if you on...
29.097561
89
0.702431
707c7ca55a77e4d9fa775b85f3e692e351af2331
1,788
py
Python
test/functional/feature_filelock.py
estxcoin/estcore
4398b1d944373fe25668469966fa2660da454279
[ "MIT" ]
1
2019-09-17T07:53:52.000Z
2019-09-17T07:53:52.000Z
test/functional/feature_filelock.py
estxcoin/estcore
4398b1d944373fe25668469966fa2660da454279
[ "MIT" ]
null
null
null
test/functional/feature_filelock.py
estxcoin/estcore
4398b1d944373fe25668469966fa2660da454279
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Check that it's not possible to start a second bitcoind instance using the same datadir or wallet.""" import...
48.324324
177
0.719799
a5f1e844b5769301d05d011ca77f34a4062a7eb4
899
py
Python
iexfinance/stocks/movers.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
653
2018-01-02T21:03:49.000Z
2022-03-24T06:37:10.000Z
iexfinance/stocks/movers.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
219
2017-12-09T21:44:43.000Z
2022-03-23T20:21:46.000Z
iexfinance/stocks/movers.py
jto-d/iexfinance
8bf958f269638b6f8d2dbdd857c0ef2ba324cdd4
[ "Apache-2.0" ]
155
2018-02-07T17:08:18.000Z
2022-03-13T23:36:57.000Z
import pandas as pd from iexfinance.base import _IEXBase class MoversReader(_IEXBase): """ Base class for retrieving market movers from the Stocks List endpoint Parameters ---------- mover: str Desired mover """ _AVAILABLE_MOVERS = [ "mostactive", "gainers", ...
21.926829
73
0.576196
588895082be9dfbc580142498024060350f37cbb
3,427
py
Python
src/primaires/combat/commandes/viser/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/combat/commandes/viser/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/primaires/combat/commandes/viser/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2010 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # lis...
41.289157
79
0.670266
d119c62656e6e1724347d7700b1e745b335a2dee
1,960
py
Python
matches/views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
null
null
null
matches/views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
1
2017-12-14T07:42:02.000Z
2017-12-14T10:22:19.000Z
matches/views.py
asyler/betleague
2ae43ae26d6a6c8582a831bc56c2144ed3134202
[ "MIT" ]
null
null
null
import re from collections import defaultdict from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import ValidationError from django.db.models import Q, F from django.shortcuts import render, redirect # Create your views here. from matches.models i...
33.793103
77
0.616837
5964889650fc64ddca00a835c9311e6857b708b3
373
py
Python
Long Pressed Name.py
ngdeva99/Fulcrum
3a5c69005bbaf2a5aebe13d1907f13790210fb32
[ "MIT" ]
null
null
null
Long Pressed Name.py
ngdeva99/Fulcrum
3a5c69005bbaf2a5aebe13d1907f13790210fb32
[ "MIT" ]
null
null
null
Long Pressed Name.py
ngdeva99/Fulcrum
3a5c69005bbaf2a5aebe13d1907f13790210fb32
[ "MIT" ]
null
null
null
class Solution: def isLongPressedName(self, name: str, typed: str) -> bool: i=0 j=0 while i<len(name) and j<len(typed): if name[i]==typed[j]: i+=1 j+=1 else: j+=1 if i==len...
20.722222
63
0.372654
9399c35d02603a8a8f992c028032d50779c5bdb1
1,617
py
Python
reproductions/offline/plas.py
Mohan-Zhang-u/d3rlpy
3ab3c0bbd6f86e73c171a6084f3130d60be85b5f
[ "MIT" ]
null
null
null
reproductions/offline/plas.py
Mohan-Zhang-u/d3rlpy
3ab3c0bbd6f86e73c171a6084f3130d60be85b5f
[ "MIT" ]
null
null
null
reproductions/offline/plas.py
Mohan-Zhang-u/d3rlpy
3ab3c0bbd6f86e73c171a6084f3130d60be85b5f
[ "MIT" ]
2
2020-12-29T19:20:38.000Z
2022-02-26T20:14:30.000Z
import argparse import d3rlpy from sklearn.model_selection import train_test_split def main(): parser = argparse.ArgumentParser() parser.add_argument('--dataset', type=str, default='hopper-medium-v0') parser.add_argument('--seed', type=int, default=1) parser.add_argument('--gpu', type=int) args = ...
33
77
0.638219
92d6e7d97e4cf34dde15ec664b8d41d73d3471b7
158
py
Python
python/code/dns/dnsa.py
hgfgood/note
f89febca3ce925cba4cd4c8068a4fa124f23c810
[ "Apache-2.0" ]
null
null
null
python/code/dns/dnsa.py
hgfgood/note
f89febca3ce925cba4cd4c8068a4fa124f23c810
[ "Apache-2.0" ]
null
null
null
python/code/dns/dnsa.py
hgfgood/note
f89febca3ce925cba4cd4c8068a4fa124f23c810
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python import dns.resolver domain="www.google.com" A=dns.resolver.query(domain,'A') for x in A.response.answer: for i in x: print (i.address)
17.555556
32
0.708861
5d605a03410ace25a6b39e44508ef8d30db722ce
2,703
py
Python
flappy/game.py
skielred/FlappyTriangle
5615ce66658bebfffe08db6949eb7743a822e330
[ "MIT" ]
1
2020-12-14T22:17:28.000Z
2020-12-14T22:17:28.000Z
flappy/game.py
skielred/FlappyTriangle
5615ce66658bebfffe08db6949eb7743a822e330
[ "MIT" ]
null
null
null
flappy/game.py
skielred/FlappyTriangle
5615ce66658bebfffe08db6949eb7743a822e330
[ "MIT" ]
null
null
null
import logging from pyglet.graphics import Batch from pyglet.shapes import Rectangle from pyglet.window import Window from pyglet import app, clock, media from flappy import Grid, Pipe, Player class Game(): def __init__(self): self.batch = Batch() self.background = Rectangle(0, 0, 0, 0) s...
29.380435
73
0.579726
6f09ec972a6b7d3ae21c70a1c31b94e410bb29e4
756
py
Python
server/migrations/0064_clean_friendly_names.py
lfaraone/sal
d0dff90cebcbc87f18c2c6957264f21566d52000
[ "Apache-2.0" ]
1
2019-11-01T20:54:47.000Z
2019-11-01T20:54:47.000Z
server/migrations/0064_clean_friendly_names.py
grahamgilbert/sal
d247ec1ea8855e65e5855b0dd63eae93b40f86ca
[ "Apache-2.0" ]
null
null
null
server/migrations/0064_clean_friendly_names.py
grahamgilbert/sal
d247ec1ea8855e65e5855b0dd63eae93b40f86ca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from server.models import * from django.db import migrations, models def clean_model_names(apps, schema_editor): """ Non-macos devices will have been given an incorrrect friendly name. Let's get those and clean up """ Machine = apps...
25.2
67
0.703704
988968595d106e8aea7cc502ae7ce9d6cd3cded6
12,544
py
Python
Cued_Deep_Breathing.py
RayStick/BreathingTasks_PsychoPy
207231cc6740eb11fbc32a8bb811f1fe86f30fd5
[ "MIT" ]
1
2021-07-01T12:26:17.000Z
2021-07-01T12:26:17.000Z
Cued_Deep_Breathing.py
RayStick/BreathingTasks_PsychoPy
207231cc6740eb11fbc32a8bb811f1fe86f30fd5
[ "MIT" ]
1
2022-02-22T20:21:17.000Z
2022-02-22T23:42:48.000Z
Cued_Deep_Breathing.py
RayStick/BreathingTasks_PsychoPy
207231cc6740eb11fbc32a8bb811f1fe86f30fd5
[ "MIT" ]
1
2021-07-01T12:26:22.000Z
2021-07-01T12:26:22.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Cued Deep Breathing (CDB) Instructions are displayed to the participant in this order: Get Ready, Deep Breaths, Breathe Normally The script can be started by an MRI pulse trigger. """ # import necessary libraries & functions from __future__ import absolute_import, d...
39.696203
133
0.603077
26394a4fc76d07a0efb7ad4b441c211246f1b3b9
1,629
py
Python
src/main/resources/autobahntestsuite/case/case7_1_2.py
olamy/autobahntestsuite-maven-plugin
1d26f21cf7828d80d0e80bb783999d9283f023be
[ "Apache-2.0" ]
3
2016-02-01T02:29:51.000Z
2020-09-04T17:19:24.000Z
autobahntestsuite/autobahntestsuite/case/case7_1_2.py
MichalMazurek/AutobahnTestSuite
f9f39e0dca69ad66568fe6f608ec9e8b9fd2b60d
[ "Apache-2.0" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
autobahntestsuite/autobahntestsuite/case/case7_1_2.py
MichalMazurek/AutobahnTestSuite
f9f39e0dca69ad66568fe6f608ec9e8b9fd2b60d
[ "Apache-2.0" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
############################################################################### ## ## Copyright 2011 Tavendo GmbH ## ## 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 ## ## ht...
34.659574
113
0.594843
c37d3f53113b76bcc8e1bbbbab62228bd8f5068d
14,527
py
Python
attackgraph/deepgraph_runner.py
wyz2368/deepRL
b92c7dc9c6dbec5ff217162c4fcce35695eabcbb
[ "MIT" ]
null
null
null
attackgraph/deepgraph_runner.py
wyz2368/deepRL
b92c7dc9c6dbec5ff217162c4fcce35695eabcbb
[ "MIT" ]
null
null
null
attackgraph/deepgraph_runner.py
wyz2368/deepRL
b92c7dc9c6dbec5ff217162c4fcce35695eabcbb
[ "MIT" ]
null
null
null
# Packages import import numpy as np import os import datetime import sys # sys.path.append('/home/wangyzh/exp') import psutil import warnings # Modules import from attackgraph import DagGenerator as dag from attackgraph import file_op as fp from attackgraph import json_op as jp from attackgraph import sim_Series from...
36.777215
131
0.572589
c1d54b47ce039b23baad7aec7e8f9e0ddb40052c
3,389
py
Python
tests/test_360_heurist.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
28
2021-02-11T22:44:01.000Z
2022-03-28T22:29:35.000Z
tests/test_360_heurist.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
20
2021-03-07T15:18:58.000Z
2022-03-07T13:47:30.000Z
tests/test_360_heurist.py
vbsoftpl/libdyson
70d890259fe7baaa106f8c3302cd42077697ddd7
[ "Apache-2.0" ]
25
2021-02-13T14:55:43.000Z
2022-03-29T22:27:55.000Z
"""Tests for Dyson 360 Heurist vacuum.""" from unittest.mock import patch import pytest from libdyson import ( DEVICE_TYPE_360_HEURIST, CleaningMode, Dyson360Heurist, VacuumHeuristPowerMode, ) from . import CREDENTIAL, HOST, SERIAL from .mocked_mqtt import MockedMQTT STATUS = { "currentVacuumPow...
29.99115
87
0.63116
5382c244a7aac54a38a76d805231dd0cca37d454
35
py
Python
src/lib/versionedLib/versions/ver_1_001/__init__.py
kvelon/neural-ode
d12ed53ca3366d2b5a898639e0cac04714c5285d
[ "MIT" ]
23
2021-02-25T13:59:13.000Z
2022-03-18T17:41:57.000Z
src/lib/versionedLib/versions/ver_1_001/__init__.py
kvelon/neural-ode
d12ed53ca3366d2b5a898639e0cac04714c5285d
[ "MIT" ]
18
2020-03-24T17:41:36.000Z
2022-03-12T00:13:39.000Z
src/lib/versionedLib/versions/ver_1_001/__init__.py
kvelon/neural-ode
d12ed53ca3366d2b5a898639e0cac04714c5285d
[ "MIT" ]
8
2021-07-19T12:23:00.000Z
2022-03-18T17:42:05.000Z
'''version 1.001 of the library '''
17.5
31
0.657143
47fd77b03a3dacc7ec57ca69bba03a90d37c7929
1,580
py
Python
pytest_localstack/hookspecs.py
krigar1184/pytest-localstack
47a69973c3efb8b469017f7bae9e72405aaeef98
[ "MIT" ]
null
null
null
pytest_localstack/hookspecs.py
krigar1184/pytest-localstack
47a69973c3efb8b469017f7bae9e72405aaeef98
[ "MIT" ]
null
null
null
pytest_localstack/hookspecs.py
krigar1184/pytest-localstack
47a69973c3efb8b469017f7bae9e72405aaeef98
[ "MIT" ]
null
null
null
""" Much like `pytest <https://pytest.readthedocs.io/en/latest/writing_plugins.html>`_, itself, pytest-localstack uses `pluggy <https://github.com/pytest-dev/pluggy>`_ to implement a plugin system. These plugins can be used to add additional functionality to pytest-localstack and to trigger callbacks when the Localstac...
30.384615
83
0.775316
7ed26311a76a012545d11b65ec2f61dca60adea7
14,402
py
Python
venv/lib/python3.5/site-packages/yapftests/reformatter_facebook_test.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/yapftests/reformatter_facebook_test.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
venv/lib/python3.5/site-packages/yapftests/reformatter_facebook_test.py
prashant0598/CoffeeApp
4fa006aebf06e12ed34766450ddcfa548ee63307
[ "MIT" ]
null
null
null
# Copyright 2016 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...
35.472906
112
0.576864
45c08ac3f82f4121983d8e8773fbeedf3f501cdc
6,489
py
Python
spytest/tests/security/test_security_save_reboot.py
mykolaf/sonic-mgmt
de77268526173c5e3a345f3f3703b56eb40c5eed
[ "Apache-2.0" ]
1
2021-09-15T17:09:13.000Z
2021-09-15T17:09:13.000Z
spytest/tests/security/test_security_save_reboot.py
mykolaf/sonic-mgmt
de77268526173c5e3a345f3f3703b56eb40c5eed
[ "Apache-2.0" ]
1
2020-02-05T16:51:53.000Z
2020-02-05T16:51:53.000Z
spytest/tests/security/test_security_save_reboot.py
mykolaf/sonic-mgmt
de77268526173c5e3a345f3f3703b56eb40c5eed
[ "Apache-2.0" ]
null
null
null
import pytest from spytest import st from spytest.dicts import SpyTestDict import apis.security.radius as radius import apis.security.tacacs as security from utilities.utils import ensure_service_params import apis.system.reboot as reboot import apis.security.tacacs as tacacs import apis.system.switch_configuration as ...
51.5
124
0.661735
7d63d591f92d42a87bcb20b0ec1ac426a5cdcc34
14,598
py
Python
scripts/gisaid_to_ena.py
enasequence/ena-content-dataflow
4024f618bf7917e3c130563629a7d425fb076be3
[ "Apache-2.0" ]
1
2021-07-26T12:44:18.000Z
2021-07-26T12:44:18.000Z
scripts/gisaid_to_ena.py
enasequence/ena-content-dataflow
4024f618bf7917e3c130563629a7d425fb076be3
[ "Apache-2.0" ]
6
2021-05-21T10:15:58.000Z
2022-01-12T18:36:24.000Z
scripts/gisaid_to_ena.py
enasequence/ena-content-dataflow
4024f618bf7917e3c130563629a7d425fb076be3
[ "Apache-2.0" ]
4
2020-09-08T15:05:25.000Z
2021-05-25T11:11:33.000Z
# Copyright [2020-2021] EMBL-European Bioinformatics Institute # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
37.818653
272
0.638855
da2aac1a8792dcdf4ed2e1ab5bfe53fbd1635f3b
128
py
Python
manage.py
rohit0110/NOTEify
60f3e7f20798967ec7394d8a51c35d4c2f5b59f5
[ "MIT" ]
null
null
null
manage.py
rohit0110/NOTEify
60f3e7f20798967ec7394d8a51c35d4c2f5b59f5
[ "MIT" ]
null
null
null
manage.py
rohit0110/NOTEify
60f3e7f20798967ec7394d8a51c35d4c2f5b59f5
[ "MIT" ]
null
null
null
from app import create_app app = create_app() if __name__ == "__main__": app.run(port=5000, debug=True, host="127.0.0.1")
18.285714
52
0.679688
1df1c327b9ef5ffa730a7780377b9aa3dd6fba12
639
py
Python
Backend/core/management/commands/populate_data.py
saksham1991999/Yoga-Pose-Analyser
b1e9c4abb4882e20dd3d5f1b2ffca5464a675529
[ "MIT" ]
null
null
null
Backend/core/management/commands/populate_data.py
saksham1991999/Yoga-Pose-Analyser
b1e9c4abb4882e20dd3d5f1b2ffca5464a675529
[ "MIT" ]
null
null
null
Backend/core/management/commands/populate_data.py
saksham1991999/Yoga-Pose-Analyser
b1e9c4abb4882e20dd3d5f1b2ffca5464a675529
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.core.management.base import BaseCommand from django.db import transaction from django.utils.crypto import get_random_string from faker import Faker from core.management.commands.populate import ( accounts, ) fake = Faker() Faker.seed(999) class Command(Bas...
24.576923
98
0.733959
a8fee1003104c06224c8cd30ccdbf20f98301e54
1,929
py
Python
src/oplog_watcher.py
anmolsachan/monotif
46c4672cfff432bd3fafcf6fa3a3162efbd0f4d3
[ "MIT" ]
null
null
null
src/oplog_watcher.py
anmolsachan/monotif
46c4672cfff432bd3fafcf6fa3a3162efbd0f4d3
[ "MIT" ]
null
null
null
src/oplog_watcher.py
anmolsachan/monotif
46c4672cfff432bd3fafcf6fa3a3162efbd0f4d3
[ "MIT" ]
null
null
null
from pymongo.cursor import _QUERY_OPTIONS import pymongo from oplog_config import host,port,changes_db,changes_collection,sleep from pymongo import MongoClient import time from global_congif import watch_db,watch_collection def doc_insertor(doc): """ Function to insert documents caught by oplog watcher whose updates...
35.722222
168
0.711249
ef3c724e093df4ed308dff33fe557d88e2531b27
486
py
Python
settings.py
erigones/api_ipf
2f75bce7b15a409b38c9a8ed32a0d7af27c589f6
[ "BSD-3-Clause" ]
null
null
null
settings.py
erigones/api_ipf
2f75bce7b15a409b38c9a8ed32a0d7af27c589f6
[ "BSD-3-Clause" ]
null
null
null
settings.py
erigones/api_ipf
2f75bce7b15a409b38c9a8ed32a0d7af27c589f6
[ "BSD-3-Clause" ]
null
null
null
from eszone_ipf.settings import BASE_DIR # Directory for storing configuration files. CONF_DIR = ''.join([BASE_DIR, '/conf/']) # Directory for storing logs. LOG_DIR = ''.join([BASE_DIR, '/log/']) # Directory that contains backup configuration files. BCK_DIR = ''.join([BASE_DIR, '/api_ipf/bck/']) # Warning in the ip...
32.4
73
0.746914