hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
ccea48827abba3f8528cfac40c37658cee303eb7
3,422
py
Python
tests/web.adblockplus.org/tests/test_CookiesSettings.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2016-01-29T18:05:29.000Z
2021-10-06T04:21:55.000Z
tests/web.adblockplus.org/tests/test_CookiesSettings.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2015-04-06T19:03:32.000Z
2019-05-28T13:34:55.000Z
tests/web.adblockplus.org/tests/test_CookiesSettings.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
18
2015-04-06T17:42:31.000Z
2021-10-06T04:26:29.000Z
import pytest from selenium import webdriver from selenium.webdriver.chrome.options import Options from pages.landingPage import LandingPage from chunks.topMenu import TopMenu from chunks.cookiesPrompt import CookiesPrompt import utils.global_functions as gf @pytest.fixture(scope="function") def driver(): opti...
33.223301
77
0.816774
fa9d45779528f1a76524617b3948ba2e1195dfe7
13,616
py
Python
tests/unit/test_configs.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
4
2015-04-10T02:52:35.000Z
2015-04-12T19:33:48.000Z
tests/unit/test_configs.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
null
null
null
tests/unit/test_configs.py
nickmelnikov82/dash
e774908da770bee83f3213e0307c27ed8a40500e
[ "MIT" ]
null
null
null
import os import logging import pytest from flask import Flask from dash import Dash, exceptions as _exc # noinspection PyProtectedMember from dash._configs import ( pathname_configs, DASH_ENV_VARS, get_combined_config, load_dash_env_vars, ) from dash._utils import AttributeDict from dash._get_paths...
30.945455
87
0.630435
7f172f17224685d423a8a5b019e874add16aeccc
22,927
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_application_gateway_private_endpoint_connections_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_application_gateway_private_endpoint_connections_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_application_gateway_private_endpoint_connections_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
53.318605
241
0.690409
69fd8b4cdd24fc52e973eea89fb0c9cdf48f3818
502
py
Python
modules/test/multiply.py
JimScope/PowerM
b1c7b8926b728c05c36d518a3a1a9904e5b98418
[ "MIT" ]
2
2020-01-09T22:56:32.000Z
2021-04-24T05:13:52.000Z
modules/test/multiply.py
JimScope/PowerM
b1c7b8926b728c05c36d518a3a1a9904e5b98418
[ "MIT" ]
null
null
null
modules/test/multiply.py
JimScope/PowerM
b1c7b8926b728c05c36d518a3a1a9904e5b98418
[ "MIT" ]
1
2019-03-27T19:10:07.000Z
2019-03-27T19:10:07.000Z
import sys from threading import Thread sys.path.append('..') import emailer class MyThread(Thread): def __init__(self,user,z): Thread.__init__(self) self.z = int(z) self.user = user self.tab_list = [] def run(self): for i in range(1,11): self.tab_list.appe...
17.310345
66
0.543825
03f1ce50fc4486c90ee439e0cd53753ff6157874
6,346
py
Python
regym/tests/rl_algorithms/agent_hook_test.py
KnwSondess/Regym
825c7dacf955a3e2f6c658c0ecb879a0ca036c1a
[ "MIT" ]
6
2019-12-03T21:07:12.000Z
2021-03-25T13:09:39.000Z
regym/tests/rl_algorithms/agent_hook_test.py
KnwSondess/Regym
825c7dacf955a3e2f6c658c0ecb879a0ca036c1a
[ "MIT" ]
1
2019-01-29T18:43:32.000Z
2019-01-31T17:31:39.000Z
regym/tests/rl_algorithms/agent_hook_test.py
KnwSondess/Regym
825c7dacf955a3e2f6c658c0ecb879a0ca036c1a
[ "MIT" ]
4
2019-08-01T10:29:41.000Z
2021-12-06T21:44:30.000Z
import os import numpy as np from regym.rl_algorithms.agents import build_PPO_Agent from regym.rl_algorithms.agents import build_DQN_Agent from regym.rl_algorithms.agents import build_TabularQ_Agent from regym.rl_algorithms.agent_hook import AgentHook, AgentType from test_fixtures import RPSTask from test_fixtures im...
39.91195
143
0.789474
5c0cd66c09b9f7f1958aad4f7490212c2d4070e7
1,704
py
Python
scaffoldgraph/utils/subset.py
UCLCheminformatics/ScaffoldGraph
0443ce118110290a99601d65b2d000ac8bc7a1e9
[ "MIT" ]
121
2019-12-12T15:30:16.000Z
2022-02-28T02:00:54.000Z
scaffoldgraph/utils/subset.py
UCLCheminformatics/ScaffoldGraph
0443ce118110290a99601d65b2d000ac8bc7a1e9
[ "MIT" ]
8
2020-04-04T15:37:26.000Z
2021-11-17T07:30:31.000Z
scaffoldgraph/utils/subset.py
UCLCheminformatics/ScaffoldGraph
0443ce118110290a99601d65b2d000ac8bc7a1e9
[ "MIT" ]
28
2019-12-16T11:58:53.000Z
2021-11-19T09:57:46.000Z
""" scaffoldgraph.utils.subset """ from networkx.algorithms.traversal import bfs_tree from collections import defaultdict def split_graph_by_molecule_attribute(graph, key, default=None): """Split a scaffold graph into subgraphs based on unique molecule attributes. This function first groups molecule nodes s...
33.411765
81
0.693075
5fff15ef42c52b35865883411a333adbabee035c
4,777
py
Python
packages/open_aea/protocols/signing/dialogues.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
28
2021-10-31T18:54:14.000Z
2022-03-17T13:10:43.000Z
packages/open_aea/protocols/signing/dialogues.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
66
2021-10-31T11:55:48.000Z
2022-03-31T06:26:23.000Z
packages/open_aea/protocols/signing/dialogues.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2022 open_aea # # 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 # ...
34.868613
91
0.651664
85916d09a8b17d9f7cc7d310dec0b8c076020cdd
11,785
py
Python
cookbooks/aws-parallelcluster-config/files/default/head_node_slurm/slurm/pcluster_slurm_config_generator.py
pinak-p/aws-parallelcluster-cookbook
6a7cdbee9a9e79e00ffa96e7ab2f0781f5542883
[ "Apache-2.0" ]
1
2021-12-15T08:01:13.000Z
2021-12-15T08:01:13.000Z
cookbooks/aws-parallelcluster-config/files/default/head_node_slurm/slurm/pcluster_slurm_config_generator.py
pinak-p/aws-parallelcluster-cookbook
6a7cdbee9a9e79e00ffa96e7ab2f0781f5542883
[ "Apache-2.0" ]
30
2021-05-05T08:05:22.000Z
2022-03-23T00:17:18.000Z
cookbooks/aws-parallelcluster-config/files/default/head_node_slurm/slurm/pcluster_slurm_config_generator.py
lukeseawalker/aws-parallelcluster-cookbook
f881254a065ef77b6abd11ee0ac90bbbc39e5687
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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...
38.139159
119
0.689351
b8c10fa82b2bcd9880c0dfe1e9cc8477b5c4029f
204
py
Python
api/serilizers.py
soltanoff/drf_vue_template
2269f045fc5557bbca168a806d7ca37a7298837a
[ "MIT" ]
null
null
null
api/serilizers.py
soltanoff/drf_vue_template
2269f045fc5557bbca168a806d7ca37a7298837a
[ "MIT" ]
1
2021-10-04T05:38:08.000Z
2021-10-05T07:20:59.000Z
api/serilizers.py
soltanoff/drf_vue_template
2269f045fc5557bbca168a806d7ca37a7298837a
[ "MIT" ]
2
2019-09-25T10:22:26.000Z
2020-07-29T16:34:20.000Z
from rest_framework import serializers from api.models import ArticleModel class ArticleSerializer(serializers.ModelSerializer): class Meta: model = ArticleModel fields = '__all__'
20.4
53
0.75
4ddde28f02d21a187208057945ae8da88f977b36
81,111
py
Python
mesonbuild/modules/gnome.py
hwti/meson
9e5c881b06bfb79ee9ee40cdd8dca3a78f268a40
[ "Apache-2.0" ]
1
2021-09-14T00:19:25.000Z
2021-09-14T00:19:25.000Z
mesonbuild/modules/gnome.py
hwti/meson
9e5c881b06bfb79ee9ee40cdd8dca3a78f268a40
[ "Apache-2.0" ]
null
null
null
mesonbuild/modules/gnome.py
hwti/meson
9e5c881b06bfb79ee9ee40cdd8dca3a78f268a40
[ "Apache-2.0" ]
1
2021-06-12T19:07:19.000Z
2021-06-12T19:07:19.000Z
# Copyright 2015-2016 The Meson development team # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
47.628303
151
0.580094
e25d7bdf7c046f395bb6c02351a322572b9dd82c
5,103
py
Python
bot/networth/networth.py
UP929312/CommunityBot
c16294e8ff4f47d9a1e8c18c9cd4011e7ebbd67a
[ "Apache-2.0" ]
1
2021-06-15T07:31:13.000Z
2021-06-15T07:31:13.000Z
bot/networth/networth.py
UP929312/CommunityBot
c16294e8ff4f47d9a1e8c18c9cd4011e7ebbd67a
[ "Apache-2.0" ]
1
2021-06-01T10:14:32.000Z
2021-06-02T10:54:12.000Z
bot/networth/networth.py
UP929312/CommunityBot
c16294e8ff4f47d9a1e8c18c9cd4011e7ebbd67a
[ "Apache-2.0" ]
2
2021-06-01T10:59:15.000Z
2021-06-03T18:29:36.000Z
import discord # type: ignore from discord.ext import commands # type: ignore from discord.commands import Option # type: ignore from typing import Optional import requests from utils import error, PROFILE_NAMES, API_KEY, guild_ids from menus import generate_static_preset_menu from database_manager import insert_p...
64.594937
224
0.673721
3e164cd12e904954a2b7feabb24e61cb7e92911a
2,777
py
Python
parchment/tests/test_views.py
jbittel/django-parchment
bd7c40902c6fa66740ec76eeac15e274b7e7bc5a
[ "BSD-3-Clause" ]
1
2015-10-03T20:19:34.000Z
2015-10-03T20:19:34.000Z
parchment/tests/test_views.py
jbittel/django-parchment
bd7c40902c6fa66740ec76eeac15e274b7e7bc5a
[ "BSD-3-Clause" ]
null
null
null
parchment/tests/test_views.py
jbittel/django-parchment
bd7c40902c6fa66740ec76eeac15e274b7e7bc5a
[ "BSD-3-Clause" ]
null
null
null
from __future__ import unicode_literals from django.core.urlresolvers import reverse from django.test import TestCase from django.test.client import RequestFactory from django.test.utils import override_settings from parchment.views import ParchmentView class ParchmentViewTests(TestCase): valid_login = reverse(...
38.569444
198
0.675189
02b1f0f536f63089099ab75904c0ce7752e3f020
2,152
py
Python
repeats.py
Ginfung/FSSE
c54510b78dfceec76c74893e8514ed5177b504e5
[ "MIT" ]
3
2018-08-07T13:54:57.000Z
2020-02-24T11:46:05.000Z
repeats.py
Ginfung/FSSE
c54510b78dfceec76c74893e8514ed5177b504e5
[ "MIT" ]
1
2019-01-15T23:22:19.000Z
2019-01-15T23:22:19.000Z
repeats.py
Ginfung/FSSE
c54510b78dfceec76c74893e8514ed5177b504e5
[ "MIT" ]
1
2019-01-09T15:50:47.000Z
2019-01-09T15:50:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2016, Jianfeng Chen <jchen37@ncsu.edu> # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # # 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 t...
38.428571
112
0.695167
819c4d7d73b4cad8b25468d7effa915671a30e09
3,601
py
Python
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/AddCdnDomainRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/AddCdnDomainRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/AddCdnDomainRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.313043
74
0.758956
6df8527b17140315f65ab330a8583ac873a4da19
5,500
py
Python
baseline/baseline_config.py
Leon-Francis/DefenceForNamedEntityAttack
59f95171453becc303801aa64788817edfeb6b5c
[ "Apache-2.0" ]
null
null
null
baseline/baseline_config.py
Leon-Francis/DefenceForNamedEntityAttack
59f95171453becc303801aa64788817edfeb6b5c
[ "Apache-2.0" ]
null
null
null
baseline/baseline_config.py
Leon-Francis/DefenceForNamedEntityAttack
59f95171453becc303801aa64788817edfeb6b5c
[ "Apache-2.0" ]
null
null
null
import torch config_path = './baseline/baseline_config.py' bert_vocab_size = 30522 class Baseline_Config(): output_dir = 'output' cuda_idx = 0 train_device = torch.device('cuda:' + str(cuda_idx)) batch_size = 64 dataset = 'AGNEWS' baseline = 'TextCNN' epoch = 100 save_acc_limit = 0.80 ...
57.291667
154
0.720727
514a94b0bd895afdd11e4667f445fe6d68b83ace
913
py
Python
build/lib/bandwidth/http/auth/voice_basic_auth.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
null
null
null
build/lib/bandwidth/http/auth/voice_basic_auth.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
null
null
null
build/lib/bandwidth/http/auth/voice_basic_auth.py
Spaced-Out/python-bandwidth-sdk
5332f29d1c093003444384f63a9d4a00843c954f
[ "MIT" ]
1
2020-12-01T15:25:51.000Z
2020-12-01T15:25:51.000Z
# -*- coding: utf-8 -*- """ bandwidth This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ import base64 class VoiceBasicAuth: @staticmethod def apply(config, http_request): """ Add basic authentication to the request. Args: con...
29.451613
80
0.627601
7626f54ed9f9526acf20438d3ec49e5b1622ed74
17,719
py
Python
coverage/html.py
janaknat/coveragepy
0e41eb8b24adc2c72a555c370432ed1689aabcf7
[ "Apache-2.0" ]
null
null
null
coverage/html.py
janaknat/coveragepy
0e41eb8b24adc2c72a555c370432ed1689aabcf7
[ "Apache-2.0" ]
null
null
null
coverage/html.py
janaknat/coveragepy
0e41eb8b24adc2c72a555c370432ed1689aabcf7
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt """HTML reporting for coverage.py.""" import datetime import json import os import re import shutil import types import coverage from coverage.data import add_dat...
34.140655
97
0.56747
42921513bdb948f712182d49e4e865863c87cb07
13,645
py
Python
metadata-ingestion/setup.py
pramodbiligiri/datahub
892adbcf330a9c7c687a293dd3edeca9fa0e2fd8
[ "Apache-2.0" ]
2
2021-09-10T06:11:53.000Z
2021-12-13T05:45:51.000Z
metadata-ingestion/setup.py
pramodbiligiri/datahub
892adbcf330a9c7c687a293dd3edeca9fa0e2fd8
[ "Apache-2.0" ]
1
2021-12-19T16:16:48.000Z
2021-12-19T16:16:48.000Z
metadata-ingestion/setup.py
pramodbiligiri/datahub
892adbcf330a9c7c687a293dd3edeca9fa0e2fd8
[ "Apache-2.0" ]
2
2021-12-06T04:17:26.000Z
2021-12-06T06:08:13.000Z
import os import sys from typing import Dict, Set import setuptools is_py37_or_newer = sys.version_info >= (3, 7) package_metadata: dict = {} with open("./src/datahub/__init__.py") as fp: exec(fp.read(), package_metadata) def get_long_description(): root = os.path.dirname(__file__) with open(os.path.j...
35.077121
123
0.633785
9489d89bf2658d4f65cf18c3e51acc73db2a3df7
3,103
py
Python
BoostYourOwnDepth-main/pix2pix/util/util.py
qihao-huang/AD-Depth-Estimation
4c93a50efc30fc5b44e2b43412d78bc5f98fa430
[ "MIT" ]
9
2022-01-04T02:47:12.000Z
2022-03-10T10:46:04.000Z
BoostYourOwnDepth-main/pix2pix/util/util.py
qihao-huang/AD-Depth-Estimation
4c93a50efc30fc5b44e2b43412d78bc5f98fa430
[ "MIT" ]
null
null
null
BoostYourOwnDepth-main/pix2pix/util/util.py
qihao-huang/AD-Depth-Estimation
4c93a50efc30fc5b44e2b43412d78bc5f98fa430
[ "MIT" ]
10
2021-12-25T06:36:18.000Z
2022-03-15T11:25:00.000Z
"""This module contains simple helper functions """ from __future__ import print_function import torch import numpy as np from PIL import Image import os def tensor2im(input_image, imtype=np.uint16): """"Converts a Tensor array into a numpy image array. Parameters: input_image (tensor) -- the input i...
31.343434
96
0.615533
97768bcd1be7e70c44bd05eba3cccea864ba320e
39,755
py
Python
metadata-ingestion/src/datahub/ingestion/source/kafka_connect.py
pedro-iatzky/datahub
53d1379a85b237700fa817d4aa8c95abe7805f7c
[ "Apache-2.0" ]
1
2022-03-04T00:42:50.000Z
2022-03-04T00:42:50.000Z
metadata-ingestion/src/datahub/ingestion/source/kafka_connect.py
pedro-iatzky/datahub
53d1379a85b237700fa817d4aa8c95abe7805f7c
[ "Apache-2.0" ]
null
null
null
metadata-ingestion/src/datahub/ingestion/source/kafka_connect.py
pedro-iatzky/datahub
53d1379a85b237700fa817d4aa8c95abe7805f7c
[ "Apache-2.0" ]
null
null
null
import logging import re from dataclasses import dataclass, field from typing import Dict, Iterable, List, Optional, Tuple import jpype import jpype.imports import requests from sqlalchemy.engine.url import make_url import datahub.emitter.mce_builder as builder import datahub.metadata.schema_classes as models from da...
38.410628
164
0.587071
3b599299e908f808a9856f274064fbe68b5f255c
2,689
py
Python
sdk/python/pulumi_azure_nextgen/apimanagement/v20200601preview/list_open_id_connect_provider_secrets.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/apimanagement/v20200601preview/list_open_id_connect_provider_secrets.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/apimanagement/v20200601preview/list_open_id_connect_provider_secrets.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
38.971014
187
0.70026
4221e48cc76350d596890ca71b5e54ce2a12603f
729
py
Python
analytics/views.py
praekelt/nurseconnect
41d46d32d7f0f498903ea6c28eed02847af2a1d0
[ "BSD-2-Clause" ]
null
null
null
analytics/views.py
praekelt/nurseconnect
41d46d32d7f0f498903ea6c28eed02847af2a1d0
[ "BSD-2-Clause" ]
82
2016-08-19T13:33:21.000Z
2018-07-02T13:54:38.000Z
analytics/views.py
praekeltfoundation/nurseconnect
41d46d32d7f0f498903ea6c28eed02847af2a1d0
[ "BSD-2-Clause" ]
2
2016-08-19T14:11:32.000Z
2016-09-21T12:18:34.000Z
from django.utils.http import is_safe_url from django.views.generic import View from django.http import ( HttpResponse, HttpResponseRedirect, HttpResponseBadRequest ) class AnalyticsRedirectView(View): def get(self, request, investigation_uuid, redirect_path, *args, **kwargs): destination = re...
33.136364
79
0.718793
44c5e1fc378efca87c5a3b022dd0ad545d0d3244
578
py
Python
solutions/codeforces/189A.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
1
2021-01-02T04:31:34.000Z
2021-01-02T04:31:34.000Z
solutions/codeforces/189A.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
null
null
null
solutions/codeforces/189A.py
forxhunter/ComputingIntro
50fa2ac030748626c694ec5c884c5ac32f0b42a8
[ "Apache-2.0" ]
null
null
null
''' cut ribbon After the cutting each ribbon piece should have length a, b or c. After the cutting the number of ribbon pieces should be maximum. !!!solve the optimization problem ax+by+cz = n max. x+y+z c·max= n +(c-a)x+(c-b)y #Note: PyPi accepted ''' n, a, b, c = list(map(int, input().split(' '))) count = 0 xmax = n...
18.645161
65
0.565744
bbd42d5e0f3c2c4d4a6a11b424c831974ad1bda2
1,821
py
Python
setup.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
null
null
null
setup.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
null
null
null
setup.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from setuptools import find_packages, setup with open('README.md') as readme_file: readme = readme_file.read().split('<!--- marker-for-pypi-to-trim --->')[0] requirements = ['Click>=7.0', 'click_didyoumean', 'hangar @ git+https://github.com/tensorwerk/hangar-py', 'rich'] setup( author=...
37.9375
113
0.643602
2a6f797ee669ca3609d4c2285811f75c97f0fc80
660
py
Python
ExerciciosPython/ex020.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
ExerciciosPython/ex020.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
ExerciciosPython/ex020.py
MecaFlavio/Exercicios-Python-3-Curso-em-Video
b93272c15b19b04deff73f1b0a684a0b49313edf
[ "MIT" ]
null
null
null
# O mesmo professor quer sortear a ordem de apresentação de trabalhos do alunos. Faça um programa # que leia o nome dos quatro alunos e mostre a ordem sorteada. import random n1 = str(input('Escreva nome 1: ')) n2 = str(input('Escreva nome 2: ')) n3 = str(input('Escreva nome 3: ')) n4 = str(input('Escreva nome 4: '))...
27.5
97
0.677273
fbb1370806b5bc653b4f26c3b4416181efd21daa
19,087
py
Python
spconv/pytorch/functional.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/pytorch/functional.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
spconv/pytorch/functional.py
djiajunustc/spconv
647927ce6b64dc51fbec4eb50c7194f8ca5007e5
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Yan Yan # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
40.87152
127
0.572903
5d6b92ce91275e790ea67190a3c78c88703213aa
4,830
py
Python
pypureclient/flashblade/FB_2_3/models/nfs.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
pypureclient/flashblade/FB_2_3/models/nfs.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
pypureclient/flashblade/FB_2_3/models/nfs.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
# coding: utf-8 """ FlashBlade REST API A lightweight client for FlashBlade REST API 2.3, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.3 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typ...
37.153846
755
0.586749
79bbec66e32c7742047b535b32eb513b27ff0c36
39,395
py
Python
tests/unit/config_test.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
1
2015-05-20T16:55:50.000Z
2015-05-20T16:55:50.000Z
tests/unit/config_test.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
null
null
null
tests/unit/config_test.py
styro/salt
d087d94dca02ca8bf53a6c21b94944bc7957522c
[ "Apache-2.0" ]
1
2021-12-02T15:30:00.000Z
2021-12-02T15:30:00.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` tests.unit.config_test ~~~~~~~~~~~~~~~~~~~~~~ ''' # Import python libs import logging import os import shutil import tempfile from contextlib import contextmanager # Import Salt Testing libs from salttesting import Test...
42.224009
106
0.541211
69ab7aac19ef283e295473991d6939c156b87378
7,875
py
Python
dynamics/linkage.py
udayansarin/SPIKM
01a6363056c77cdd497dca1ce01f192722210ec6
[ "MIT" ]
null
null
null
dynamics/linkage.py
udayansarin/SPIKM
01a6363056c77cdd497dca1ce01f192722210ec6
[ "MIT" ]
null
null
null
dynamics/linkage.py
udayansarin/SPIKM
01a6363056c77cdd497dca1ce01f192722210ec6
[ "MIT" ]
null
null
null
import math import numpy as np from numpy.polynomial import Polynomial as Poly from dynamics.spikm_trig import Toolkit as STrig class CrankShaft: def __init__(self, node, shaft, crank_length, crank_start_angle, link_length, crank_plane): """ initialize the crankshaft assembly between the motor a...
42.112299
120
0.569143
f94ff00734d4a3123230507d6ed1af45da983388
38,694
py
Python
pedal/tifa/tifa_visitor.py
acbart/python-analysis
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
14
2019-08-22T03:40:23.000Z
2022-03-13T00:30:53.000Z
pedal/tifa/tifa_visitor.py
pedal-edu/pedal
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
74
2019-09-12T04:35:56.000Z
2022-01-26T19:21:32.000Z
pedal/tifa/tifa_visitor.py
acbart/python-analysis
3cd2cc22d50a414ae6b62c74d2643be4742238d4
[ "MIT" ]
2
2018-09-16T22:39:15.000Z
2018-09-17T12:53:28.000Z
""" Main TIFA visitor-based algorithm here. TODO: JoinedStr """ import ast # TODO: FileType, DayType, TimeType, from pedal.core.commands import system_error from pedal.tifa.tifa_core import TifaCore, TifaAnalysis from pedal.types.definitions import (UnknownType, FunctionType, C...
33.793886
108
0.552721
2af7c1c4a0e2650a3078f0433382b5b254b6777f
7,580
py
Python
sira/modelling/structural.py
GeoscienceAustralia/sira
01c99acae497fedc971367e0fa1611a90f5c64ef
[ "Apache-2.0" ]
1
2021-11-17T16:10:56.000Z
2021-11-17T16:10:56.000Z
sira/modelling/structural.py
GeoscienceAustralia/sira
01c99acae497fedc971367e0fa1611a90f5c64ef
[ "Apache-2.0" ]
10
2020-07-28T02:19:22.000Z
2022-03-04T00:34:40.000Z
sira/modelling/structural.py
GeoscienceAustralia/sira
01c99acae497fedc971367e0fa1611a90f5c64ef
[ "Apache-2.0" ]
1
2019-08-22T10:26:38.000Z
2019-08-22T10:26:38.000Z
import inspect from sira.tools.utils import class_getter # from future.builtins import str, object # from future.utils import with_metaclass class NoDefaultException(Exception): """ Thrown when a :py:class:`_Base` is created without providing values for one or more :py:class:`Element`s which do not have...
36.095238
90
0.608311
e3d9df2108310e05b92f1268ca71bcca13e6c0ab
6,383
py
Python
os_pausebot_RECOMM.py
Cyb4rUf0/cyberufobvb02
ebbc212256dc27e5b02f5815a5a82c0a4c1b0b72
[ "MIT" ]
null
null
null
os_pausebot_RECOMM.py
Cyb4rUf0/cyberufobvb02
ebbc212256dc27e5b02f5815a5a82c0a4c1b0b72
[ "MIT" ]
null
null
null
os_pausebot_RECOMM.py
Cyb4rUf0/cyberufobvb02
ebbc212256dc27e5b02f5815a5a82c0a4c1b0b72
[ "MIT" ]
2
2021-11-18T17:19:46.000Z
2021-11-20T02:47:06.000Z
# Based off Firewatch custsignalmod.py from tradingview_ta import TA_Handler, Interval, Exchange # use for environment variables import os # use if needed to pass args to external modules import sys # used for directory handling import glob import threading import time # my helper utils from helpers.os_utils import(...
37.110465
231
0.626351
deb0b68902d12d5797ad6034f160e798cb0797c5
3,829
py
Python
insta/settings.py
osman2491/Insta
f941f2b20f814e1c13fe0f9c02a1a60be3cd2c87
[ "MIT" ]
null
null
null
insta/settings.py
osman2491/Insta
f941f2b20f814e1c13fe0f9c02a1a60be3cd2c87
[ "MIT" ]
2
2021-06-10T22:33:39.000Z
2021-09-08T01:39:21.000Z
insta/settings.py
osman2491/Insta
f941f2b20f814e1c13fe0f9c02a1a60be3cd2c87
[ "MIT" ]
null
null
null
import os import django_heroku import dj_database_url from decouple import config,Csv # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) MODE=config("MODE", default="dev") SECRET_KEY = config('SECRET_KEY') DEBUG = config('DE...
26.406897
91
0.678245
dd85358f6ec6cbe0abeff6c5412ca9cbfae83e7a
6,772
py
Python
mmdet/apis/test.py
Andrew-Zhu/DyFPN
a74463b59c4ce28253c2449a07c0f6692a0147a1
[ "Apache-2.0" ]
32
2021-01-07T10:51:21.000Z
2022-03-24T02:49:51.000Z
mmdet/apis/test.py
Andrew-Zhu/DyFPN
a74463b59c4ce28253c2449a07c0f6692a0147a1
[ "Apache-2.0" ]
6
2021-04-14T11:22:18.000Z
2022-01-29T03:00:32.000Z
mmdet/apis/test.py
Andrew-Zhu/DyFPN
a74463b59c4ce28253c2449a07c0f6692a0147a1
[ "Apache-2.0" ]
9
2021-01-15T15:54:02.000Z
2022-03-21T07:51:24.000Z
import os.path as osp import pickle import shutil import tempfile import time import mmcv import torch import torch.distributed as dist from mmcv.runner import get_dist_info from mmdet.core import encode_mask_results, tensor2imgs def single_gpu_test(model, data_loader, show=...
35.455497
79
0.60632
b98fb0fe4a9cbbfce76b2615b56a48427305ab31
5,552
py
Python
homeassistant/components/rflink/cover.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/rflink/cover.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/rflink/cover.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Support for Rflink Cover devices.""" import logging import voluptuous as vol from homeassistant.components.cover import PLATFORM_SCHEMA, CoverEntity from homeassistant.const import CONF_DEVICES, CONF_NAME, CONF_TYPE, STATE_OPEN import homeassistant.helpers.config_validation as cv from homeassistant.helpers.restore...
32.852071
88
0.644813
0d03a943f1831d53e76b1bf0e5e3df680a1b1bce
17,241
py
Python
biobakery_workflows/files.py
tkuntz-hsph/biobakery_workflows
e861705d939354178362fd5b26e59dcc696489d2
[ "MIT" ]
47
2020-08-18T20:51:02.000Z
2022-03-21T19:43:13.000Z
biobakery_workflows/files.py
tkuntz-hsph/biobakery_workflows
e861705d939354178362fd5b26e59dcc696489d2
[ "MIT" ]
18
2020-06-12T21:26:46.000Z
2022-03-19T08:24:55.000Z
biobakery_workflows/files.py
tkuntz-hsph/biobakery_workflows
e861705d939354178362fd5b26e59dcc696489d2
[ "MIT" ]
15
2020-07-24T16:41:46.000Z
2022-02-22T09:02:01.000Z
""" bioBakery Workflows: tasks.files module A collection of file names used by tasks Copyright (c) 2017 Harvard School of Public Health 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 res...
56.343137
153
0.687779
ce72d95f6a97f261ee3d0db2eb7691bfd5f6a51b
6,163
py
Python
ansible/modules/hashivault/hashivault_pki_cert_issue.py
headwest/ansible-modules-hashivault
d5742daf0d931a1c7eb053c1fbfc22fd2aa5607b
[ "MIT" ]
1
2020-09-08T05:49:24.000Z
2020-09-08T05:49:24.000Z
ansible/modules/hashivault/hashivault_pki_cert_issue.py
headwest/ansible-modules-hashivault
d5742daf0d931a1c7eb053c1fbfc22fd2aa5607b
[ "MIT" ]
null
null
null
ansible/modules/hashivault/hashivault_pki_cert_issue.py
headwest/ansible-modules-hashivault
d5742daf0d931a1c7eb053c1fbfc22fd2aa5607b
[ "MIT" ]
2
2020-09-09T03:42:29.000Z
2020-09-09T03:43:26.000Z
#!/usr/bin/env python from ansible.module_utils.hashivault import hashivault_auth_client from ansible.module_utils.hashivault import check_secrets_engines from ansible.module_utils.hashivault import hashivault_argspec from ansible.module_utils.hashivault import hashivault_init from ansible.module_utils.hashivault impor...
41.362416
120
0.63719
3444cbdca63ea4bbc90f3a0d9f66bb71aac1d748
14,792
py
Python
astroquery/utils/commons.py
iskren-y-g/astroquery
8248ba8fd0aa3a4c8221db729a127db047e18f4e
[ "BSD-3-Clause" ]
6
2018-10-29T22:00:17.000Z
2021-07-18T14:33:39.000Z
astroquery/utils/commons.py
iskren-y-g/astroquery
8248ba8fd0aa3a4c8221db729a127db047e18f4e
[ "BSD-3-Clause" ]
3
2020-02-26T15:42:55.000Z
2020-03-30T13:56:06.000Z
astroquery/utils/commons.py
iskren-y-g/astroquery
8248ba8fd0aa3a4c8221db729a127db047e18f4e
[ "BSD-3-Clause" ]
3
2019-07-08T21:30:17.000Z
2021-04-15T08:24:28.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Common functions and classes that are required by all query classes. """ import re import warnings import os import shutil import socket import requests from six.moves.urllib_error import URLError import six import astropy.units as u from astropy im...
31.539446
99
0.600595
9f9a89e579c15d240052e8c06372ca89f0627875
8,096
py
Python
tests/test_tracer.py
pelotoncycle/dd-trace-py
b5254016dc42185eebfadce8dc634003408439d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_tracer.py
pelotoncycle/dd-trace-py
b5254016dc42185eebfadce8dc634003408439d7
[ "BSD-3-Clause" ]
null
null
null
tests/test_tracer.py
pelotoncycle/dd-trace-py
b5254016dc42185eebfadce8dc634003408439d7
[ "BSD-3-Clause" ]
2
2017-05-27T05:58:36.000Z
2019-02-07T13:38:53.000Z
""" tests for Tracer and utilities. """ import time from nose.tools import assert_raises, eq_ from unittest.case import SkipTest from ddtrace.encoding import JSONEncoder, MsgpackEncoder from ddtrace.tracer import Tracer from ddtrace.writer import AgentWriter def test_tracer_vars(): writer = DummyWriter() t...
24.607903
87
0.600667
1324f094165cc567c9aa7c5ee9a1cf3b6272f5da
14,459
py
Python
contrib/aseprite_codec/aseprite.py
Lylitalo/Minesweeper
37b5ea775436c588aa340e32a303b39aeb953daa
[ "BSD-3-Clause" ]
null
null
null
contrib/aseprite_codec/aseprite.py
Lylitalo/Minesweeper
37b5ea775436c588aa340e32a303b39aeb953daa
[ "BSD-3-Clause" ]
null
null
null
contrib/aseprite_codec/aseprite.py
Lylitalo/Minesweeper
37b5ea775436c588aa340e32a303b39aeb953daa
[ "BSD-3-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
36.885204
91
0.606197
490553816be4cd6d31d978ffbf5040fc92cfc1ef
3,654
py
Python
testing/model_loading.py
l2tor/underworlds
2937b6f858a1725d4581a792e34e5c08587301d0
[ "BSD-3-Clause" ]
null
null
null
testing/model_loading.py
l2tor/underworlds
2937b6f858a1725d4581a792e34e5c08587301d0
[ "BSD-3-Clause" ]
null
null
null
testing/model_loading.py
l2tor/underworlds
2937b6f858a1725d4581a792e34e5c08587301d0
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding: UTF-8 -*- import unittest import underworlds import underworlds.server import logging; logger = logging.getLogger("underworlds.testing") logging.basicConfig(level=logging.DEBUG) import time from underworlds.tools.loader import ModelLoader from underworlds.types import MESH, CAMERA...
32.336283
94
0.660372
fa0e93a72aa6b8908730a267a8390376ce314a92
18,009
py
Python
homeassistant/components/zwave_js/services.py
RavensburgOP/core
0ea76e848b182ca0ebb0fdb54558f7f733898ad7
[ "Apache-2.0" ]
5
2019-02-24T11:46:18.000Z
2019-05-28T17:37:21.000Z
homeassistant/components/zwave_js/services.py
RavensburgOP/core
0ea76e848b182ca0ebb0fdb54558f7f733898ad7
[ "Apache-2.0" ]
77
2020-07-16T16:43:09.000Z
2022-03-31T06:14:37.000Z
homeassistant/components/zwave_js/services.py
Vaarlion/core
f3de8b9f28de01abf72c0f5bb0b457eb1841f201
[ "Apache-2.0" ]
7
2021-03-20T12:34:01.000Z
2021-12-02T10:13:52.000Z
"""Methods and classes related to executing Z-Wave commands and publishing these to hass.""" from __future__ import annotations import asyncio import logging from typing import Any import voluptuous as vol from zwave_js_server.client import Client as ZwaveClient from zwave_js_server.const import CommandStatus from zw...
39.407002
92
0.547282
479b7d66368e3fa1e8bafa81200b18f8abcf4beb
3,716
py
Python
muver/wrappers/samtools.py
lavenderca/muver
074c7b158610e4cedf99b20806721afbf69a21e1
[ "MIT" ]
null
null
null
muver/wrappers/samtools.py
lavenderca/muver
074c7b158610e4cedf99b20806721afbf69a21e1
[ "MIT" ]
null
null
null
muver/wrappers/samtools.py
lavenderca/muver
074c7b158610e4cedf99b20806721afbf69a21e1
[ "MIT" ]
1
2019-07-22T07:31:03.000Z
2019-07-22T07:31:03.000Z
import os import subprocess from __init__ import PATHS, quiet_call def mapq_filter(in_sam, out_sam, q=20): ''' Filter reads by MAPQ value using samtools view. ''' quiet_call([ PATHS['samtools'], 'view', '-Sh', '-q', str(q), in_sam, ], stdout=out_sam)...
24.773333
76
0.483315
c9b16daa0da67497eb1e1e0a2845776b815dfe41
2,813
py
Python
pipscoin/consensus/pot_iterations.py
Pipscoin-Network/pipscoin-blockchain
f400d26956881eb319786230506bb441f76f64d9
[ "Apache-2.0" ]
8
2021-08-29T15:13:45.000Z
2022-03-30T17:23:04.000Z
pipscoin/consensus/pot_iterations.py
Pipscoin-Network/pipscoin-blockchain
f400d26956881eb319786230506bb441f76f64d9
[ "Apache-2.0" ]
28
2021-08-29T02:08:07.000Z
2022-03-24T23:32:00.000Z
pipscoin/consensus/pot_iterations.py
Pipscoin-Network/pipscoin-blockchain
f400d26956881eb319786230506bb441f76f64d9
[ "Apache-2.0" ]
4
2021-08-29T12:59:05.000Z
2022-03-15T08:38:29.000Z
from pipscoin.consensus.constants import ConsensusConstants from pipscoin.consensus.pos_quality import _expected_plot_size from pipscoin.types.blockchain_format.sized_bytes import bytes32 from pipscoin.util.hash import std_hash from pipscoin.util.ints import uint8, uint64, uint128 def is_overflow_block(constants: Con...
42.621212
118
0.754355
0fbf8c8d325cd77864fc2a10479993ab93d7da5b
685
py
Python
app/core/migrations/0002_tag.py
eferroni/recipe-app-api
2a242c156a97cc0d838f5afb1cc051dea7e84fc6
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
eferroni/recipe-app-api
2a242c156a97cc0d838f5afb1cc051dea7e84fc6
[ "MIT" ]
null
null
null
app/core/migrations/0002_tag.py
eferroni/recipe-app-api
2a242c156a97cc0d838f5afb1cc051dea7e84fc6
[ "MIT" ]
null
null
null
# Generated by Django 3.2.8 on 2021-10-14 23:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.CreateModel( ...
28.541667
118
0.617518
6fc824b5c8812c901c9105fbfdee5596fddac519
264
py
Python
support_files/scraping/entries/proj_1935/proj_1935/items.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_1935/proj_1935/items.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
support_files/scraping/entries/proj_1935/proj_1935/items.py
miccaldas/new_rss
9580887ac44b5c3e4c4ed5045478f2c7fef36afe
[ "MIT" ]
null
null
null
# Define here the models for your scraped items # # See documentation in: # https://docs.scrapy.org/en/latest/topics/items.html import scrapy class Proj1935Item(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
20.307692
53
0.715909
e6569812de2b898cbf7a065417413e956ac342e6
629
py
Python
Apps/Ayncio.py
srp98/Python-Stuff
fade8934718e01a3d30cf9db93515b8f02a20b18
[ "MIT" ]
null
null
null
Apps/Ayncio.py
srp98/Python-Stuff
fade8934718e01a3d30cf9db93515b8f02a20b18
[ "MIT" ]
null
null
null
Apps/Ayncio.py
srp98/Python-Stuff
fade8934718e01a3d30cf9db93515b8f02a20b18
[ "MIT" ]
1
2019-10-31T03:16:04.000Z
2019-10-31T03:16:04.000Z
from time import sleep import asyncio # Standard (Synchronous) Python def hello(): print('Hello') sleep(3) print('World') if __name__ == '__main__': hello() # Asyncio Example1 loop = asyncio.get_event_loop() @asyncio.coroutine def hello2(): print('Hello') yield from asyncio.sleep(3) ...
14.627907
37
0.669316
cf81062ee4bd673b8f8ce35fef75cb54a1b7df6f
6,697
py
Python
PyObjCTest/test_nsatstypesetter.py
Khan/pyobjc-framework-Cocoa
f8b015ea2a72d8d78be6084fb12925c4785b8f1f
[ "MIT" ]
132
2015-01-01T10:02:42.000Z
2022-03-09T12:51:01.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsatstypesetter.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
6
2015-01-06T08:23:19.000Z
2019-03-14T12:22:06.000Z
mac/pyobjc-framework-Cocoa/PyObjCTest/test_nsatstypesetter.py
mba811/music-player
7998986b34cfda2244ef622adefb839331b81a81
[ "BSD-2-Clause" ]
27
2015-02-23T11:51:43.000Z
2022-03-07T02:34:18.000Z
from PyObjCTools.TestSupport import * from AppKit import * class TestNSATSTypesetterHelper (NSATSTypesetter): def willSetLineFragmentRect_forGlyphRange_usedRect_baselineOffset_( self, lineRect, glyphRange, usedRect, offset): return None def shouldBreakLineByWordBeforeCharacterAtIndex_(s...
44.946309
135
0.727639
a1ee0b53b8703a6f38710ca4c419090132cf1f93
16,504
py
Python
qcodes/instrument_drivers/oxford/triton.py
riju-pal/QCoDeS_riju
816e76809160e9af457f6ef6d4aca1b0dd5eea82
[ "MIT" ]
223
2016-10-29T15:00:24.000Z
2022-03-20T06:53:34.000Z
qcodes/instrument_drivers/oxford/triton.py
M1racleShih/Qcodes
c03029a6968e16379155aadc8b083a02e01876a6
[ "MIT" ]
3,406
2016-10-25T10:44:50.000Z
2022-03-31T09:47:35.000Z
qcodes/instrument_drivers/oxford/triton.py
nikhartman/Qcodes
042c5e25ab9e40b20c316b4055c4842844834d1e
[ "MIT" ]
263
2016-10-25T11:35:36.000Z
2022-03-31T08:53:20.000Z
import configparser import re from functools import partial import logging from traceback import format_exc from typing import Optional, Any, Union, List, Dict from qcodes import IPInstrument from qcodes.utils.validators import Enum, Ints from time import sleep class Triton(IPInstrument): r""" Triton Driver...
40.253659
166
0.503454
d7d5bd0adfc158fb4c0e5fb4aef4582a281d1d79
1,774
py
Python
cognitive_services/speech_to_text/google_speech_to_text.py
franklinlindemberg/cognitive-services
043c6a625cd66a9351ae1366e05b1fef2907cd08
[ "MIT" ]
null
null
null
cognitive_services/speech_to_text/google_speech_to_text.py
franklinlindemberg/cognitive-services
043c6a625cd66a9351ae1366e05b1fef2907cd08
[ "MIT" ]
null
null
null
cognitive_services/speech_to_text/google_speech_to_text.py
franklinlindemberg/cognitive-services
043c6a625cd66a9351ae1366e05b1fef2907cd08
[ "MIT" ]
null
null
null
import base64 import json #from googleapiclient.discovery import build from .speech_to_text import SpeechToText from .speech_to_text_exception import SpeechToTextException class GoogleSpeechToText(SpeechToText): def __init__(self, credentials): api_key = credentials.get('api_key') if not api_key...
30.586207
110
0.57779
e05659474c38b80529682a75f506e7e4ae9ef5c3
1,818
py
Python
tests/helper.py
Docheinstein/lzw3
39098f01b66f8860390123e2662ef0662667748d
[ "MIT" ]
1
2020-06-11T10:16:55.000Z
2020-06-11T10:16:55.000Z
tests/helper.py
Docheinstein/LZW3
39098f01b66f8860390123e2662ef0662667748d
[ "MIT" ]
2
2019-03-05T22:51:19.000Z
2021-01-27T22:45:44.000Z
tests/helper.py
Docheinstein/LZW3
39098f01b66f8860390123e2662ef0662667748d
[ "MIT" ]
null
null
null
import os import shutil from typing import List from unittest import TestCase from lzw3.commons.constants import LZWConstants from lzw3.commons.log import Logger from lzw3.commons.utils import read_binary_file from lzw3.compressor import LZWCompressor from lzw3.decompressor import LZWDecompressor def remove_folder(p...
30.813559
84
0.636964
27796fdc630f4e1dd508a2fbbeb3141aab1361df
1,189
py
Python
dl/data/txtrecog/datasets/base.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-02-06T22:40:13.000Z
2021-03-26T09:15:34.000Z
dl/data/txtrecog/datasets/base.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
8
2020-07-11T07:10:51.000Z
2022-03-12T00:39:03.000Z
dl/data/txtrecog/datasets/base.py
jjjkkkjjj/pytorch.dl
d82aa1191c14f328c62de85e391ac6fa1b4c7ee3
[ "MIT" ]
2
2021-03-26T09:19:42.000Z
2021-07-27T02:38:09.000Z
import string from ...objrecog.datasets.base import ObjectRecognitionDatasetBase Alphabet_labels = list(string.ascii_lowercase) Alphabet_with_upper_labels = Alphabet_labels + list(string.ascii_uppercase) Alphabet_numbers = len(Alphabet_labels) Alphabet_with_upper_numbers = len(Alphabet_with_upper_labels) Number_labe...
44.037037
93
0.830109
6a2e8c7a0db65f1823e061925af11794f91469d5
8,199
py
Python
LogSystem_JE/venv/Lib/site-packages/pygments/lexers/grammar_notation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
LogSystem_JE/venv/Lib/site-packages/pygments/lexers/grammar_notation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
LogSystem_JE/venv/Lib/site-packages/pygments/lexers/grammar_notation.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pygments.lexers.grammar_notation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Lexers for grammar notations like BNF. :copyright: Copyright 2006-2020 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Re...
30.254613
81
0.450055
90a0282f1f88ea48a054807762b01f8954bef1fa
11,801
py
Python
lib/python3.7/site-packages/elasticsearch_dsl/faceted_search.py
nguyentranhoan/uit-mobile
8546312b01373d94cf00c64f7eacb769e0f4ccce
[ "BSD-3-Clause" ]
2
2020-04-12T02:40:34.000Z
2021-08-10T17:59:55.000Z
lib/python3.7/site-packages/elasticsearch_dsl/faceted_search.py
nguyentranhoan/uit-mobile
8546312b01373d94cf00c64f7eacb769e0f4ccce
[ "BSD-3-Clause" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
lib/python3.7/site-packages/elasticsearch_dsl/faceted_search.py
nguyentranhoan/uit-mobile
8546312b01373d94cf00c64f7eacb769e0f4ccce
[ "BSD-3-Clause" ]
1
2020-07-27T05:10:30.000Z
2020-07-27T05:10:30.000Z
from datetime import timedelta, datetime from six import iteritems, itervalues from .search import Search from .aggs import A from .utils import AttrDict from .response import Response from .query import Terms, Nested, Range, MatchAll __all__ = [ 'FacetedSearch', 'HistogramFacet', 'TermsFacet', 'DateHistogramFace...
30.104592
100
0.569189
7b7f9625c782cf82d7d634b47b483de41c126d44
2,325
py
Python
lino_book/projects/eric/tests/test_ddh.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
1
2018-01-12T14:09:58.000Z
2018-01-12T14:09:58.000Z
lino_book/projects/eric/tests/test_ddh.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
4
2018-02-06T19:53:10.000Z
2019-08-01T21:47:44.000Z
lino_book/projects/eric/tests/test_ddh.py
khchine5/book
b6272d33d49d12335d25cf0a2660f7996680b1d1
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2016-2017 Luc Saffre # License: BSD (see file COPYING for details) """Runs some tests about the disable-delete handler and cascading deletes. You can run only these tests by issuing:: $ go team $ python manage.py test tests.test_ddh Or:: $ go book $ python setup.py test ...
27.678571
74
0.597419
f3f5bf66cb91b820816d306a005dd2226274b05c
5,730
py
Python
pypbbot/affairs/registrar.py
PHIKN1GHT/pypbbot_archived
8ab70830509c43b0babc53c9972d0a73481bdaa2
[ "MIT" ]
null
null
null
pypbbot/affairs/registrar.py
PHIKN1GHT/pypbbot_archived
8ab70830509c43b0babc53c9972d0a73481bdaa2
[ "MIT" ]
null
null
null
pypbbot/affairs/registrar.py
PHIKN1GHT/pypbbot_archived
8ab70830509c43b0babc53c9972d0a73481bdaa2
[ "MIT" ]
null
null
null
from __future__ import annotations from .filters import _on_unloading from .filters import _on_loading from pypbbot.protocol import GroupMessageEvent, GroupRecallNoticeEvent from pypbbot.protocol import PrivateMessageEvent, FriendRecallNoticeEvent from .filters import _unfilterable from .filters import _on_starts_with_...
39.246575
164
0.721466
ad9995867b19dbc32bd926b4565581dfd86840d3
8,729
py
Python
tests/train_config_test.py
FranciscoShi/piepline
6105788339fc18bab39ea07625b5fd26ad687254
[ "MIT" ]
5
2020-06-24T15:25:26.000Z
2021-07-01T08:16:51.000Z
tests/train_config_test.py
FranciscoShi/piepline
6105788339fc18bab39ea07625b5fd26ad687254
[ "MIT" ]
21
2020-05-20T13:50:06.000Z
2020-07-26T09:56:19.000Z
tests/train_config_test.py
FranciscoShi/piepline
6105788339fc18bab39ea07625b5fd26ad687254
[ "MIT" ]
2
2021-06-17T12:57:37.000Z
2021-07-16T01:55:24.000Z
import unittest import numpy as np import torch from torch.nn import functional as F from torch import Tensor from piepline.train import Trainer from piepline.data_producer import DataProducer from piepline.train_config.metrics import MetricsGroup, AbstractMetric from piepline.train_config.train_config import BaseTra...
39.677273
129
0.671784
dedcdd33423f2dadae2329e75f772230b6704a5b
1,323
py
Python
waffler.py
thfm/waffler
275e430114e1ab011b71de682aada26653ad1144
[ "MIT" ]
null
null
null
waffler.py
thfm/waffler
275e430114e1ab011b71de682aada26653ad1144
[ "MIT" ]
null
null
null
waffler.py
thfm/waffler
275e430114e1ab011b71de682aada26653ad1144
[ "MIT" ]
null
null
null
import click from nltk.corpus import wordnet # Gets the unique synonyms of a word def __get_synonyms(word: str): synonyms = [] for synset in wordnet.synsets(word): name = synset.lemmas()[0].name() # Checks that the synonym is not the original word if name != word: synonyms....
30.767442
65
0.621315
d5365fdfcc91500ebf4cd1600f83d374287dfb97
2,484
py
Python
src/aiy/vision/models/face_detection.py
sonjaq/aiyprojects-raspbian
101403c1b80433f80aad483d7f4d1ad757112cd9
[ "Apache-2.0" ]
null
null
null
src/aiy/vision/models/face_detection.py
sonjaq/aiyprojects-raspbian
101403c1b80433f80aad483d7f4d1ad757112cd9
[ "Apache-2.0" ]
null
null
null
src/aiy/vision/models/face_detection.py
sonjaq/aiyprojects-raspbian
101403c1b80433f80aad483d7f4d1ad757112cd9
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google 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 writing, ...
33.567568
77
0.692432
b6e37dc494ca34bc4a7c9eefb1c74b6545eadddf
8,192
py
Python
grr/server/grr_response_server/output_plugins/sqlite_plugin.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/output_plugins/sqlite_plugin.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
null
null
null
grr/server/grr_response_server/output_plugins/sqlite_plugin.py
nkrios/grr
399e078ed522bf0555a2666fb086aa7809d54971
[ "Apache-2.0" ]
1
2020-07-09T01:08:48.000Z
2020-07-09T01:08:48.000Z
#!/usr/bin/env python """Plugin that exports results as SQLite db scripts.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import collections import io import os import zipfile from future.utils import iteritems from future.utils import iterkeys from ...
37.925926
80
0.705444
314e81dba312d97e64e18cb88e377e92cac7104f
7,222
py
Python
pypureclient/flasharray/FA_2_9/models/host.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_9/models/host.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_9/models/host.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.9 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
40.573034
745
0.599695
e0fd5c31b56dcbfc8fedda3e8dabf70a298414e5
5,026
py
Python
mycroft/audio/speech.py
fortwally/mycroft-core
a8f7aee57294078dff39b824e6300001374f0b98
[ "Apache-2.0" ]
null
null
null
mycroft/audio/speech.py
fortwally/mycroft-core
a8f7aee57294078dff39b824e6300001374f0b98
[ "Apache-2.0" ]
null
null
null
mycroft/audio/speech.py
fortwally/mycroft-core
a8f7aee57294078dff39b824e6300001374f0b98
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Mycroft AI 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.834356
79
0.619976
ffb6837d939721d44b5c6ad7e9c6ac62769246e9
4,046
py
Python
plugins/earthAnimation.py
AY-ME/botShell
16f8a7364255cefa76844d38b3df3278a47988d3
[ "MIT" ]
24
2020-07-22T00:14:25.000Z
2021-09-24T12:30:05.000Z
plugins/earthAnimation.py
AY-ME/botShell
16f8a7364255cefa76844d38b3df3278a47988d3
[ "MIT" ]
null
null
null
plugins/earthAnimation.py
AY-ME/botShell
16f8a7364255cefa76844d38b3df3278a47988d3
[ "MIT" ]
19
2020-07-17T21:01:31.000Z
2022-02-17T11:07:43.000Z
import asyncio from utilities import utilities async def run(message, matches, chat_id, step, crons=None): response = [] if not (message.out): message = await message.reply(matches) msg = "▪️▪️▪️▪️▪️▪️▪️\r\n▪️▪️▪️🌖▪️▪️▪️\r\n▪️▪️▪️▪️▪️▪️▪️\r\n▪️▪️▪️🌍▪️▪️▪️\r\n▪️▪️▪️▪️▪️▪️▪️\r\n▪️▪️▪️🌒▪️▪️▪️\r\n▪...
56.194444
131
0.367771
6544c583f715d0f828fc7b0a022bb630f6a84000
6,793
py
Python
trimage/ui.py
kalmi/Trimage
269e052ba407c16ab32953276c776d543930b917
[ "MIT" ]
434
2015-01-04T02:19:36.000Z
2022-03-29T20:26:28.000Z
trimage/ui.py
kalmi/Trimage
269e052ba407c16ab32953276c776d543930b917
[ "MIT" ]
61
2015-03-02T15:06:11.000Z
2022-01-30T02:53:03.000Z
trimage/ui.py
kalmi/Trimage
269e052ba407c16ab32953276c776d543930b917
[ "MIT" ]
61
2015-01-14T16:45:36.000Z
2021-12-04T01:03:24.000Z
#!/usr/bin/env python3 from os import path from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class TrimageTableView(QTableView): drop_event_signal = pyqtSignal(list) """Init the table drop event.""" def __init__(self, parent=None): super(TrimageTableView, self)...
39.265896
102
0.676579
e34bebe87d37fb2894c2ee6058b6dcf970136e1a
7,768
py
Python
from_cpython/Lib/test/test_imaplib.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
from_cpython/Lib/test/test_imaplib.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
from_cpython/Lib/test/test_imaplib.py
jmgc/pyston
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
from test import test_support as support # If we end up with a significant number of tests that don't require # threading, this test module should be split. Right now we skip # them all if we don't have threading. threading = support.import_module('threading') from contextlib import contextmanager import imaplib impo...
30.582677
79
0.608136
9c95c84897795c56e0bae2591c7b8f5502e229dc
2,442
py
Python
svg/tests.py
alexanderisora/django-inline-svg
33a86b8f3e4f60067bec8bb8d68827e1cde4097f
[ "MIT" ]
76
2016-03-24T14:04:07.000Z
2021-11-08T09:04:05.000Z
svg/tests.py
alexanderisora/django-inline-svg
33a86b8f3e4f60067bec8bb8d68827e1cde4097f
[ "MIT" ]
7
2016-03-24T14:52:35.000Z
2020-10-12T11:27:56.000Z
svg/tests.py
alexanderisora/django-inline-svg
33a86b8f3e4f60067bec8bb8d68827e1cde4097f
[ "MIT" ]
17
2016-03-31T15:43:46.000Z
2021-11-14T06:30:21.000Z
import os from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.template import Context, Template from django.test.testcases import SimpleTestCase from svg.exceptions import SVGNotFound class SVGTemplateTagTest(SimpleTestCase): def test_should_render_svg(self): ...
42.103448
93
0.572072
274de8df36fe128e7e8a5719260c80ccdf75929d
44
py
Python
guillotina_volto/fields/__init__.py
enfold/guillotina-volto
d38ee300470c813c99341eaeb2ba8a2b5fb7d778
[ "BSD-2-Clause" ]
1
2020-11-14T13:09:49.000Z
2020-11-14T13:09:49.000Z
guillotina_volto/fields/__init__.py
enfold/guillotina-volto
d38ee300470c813c99341eaeb2ba8a2b5fb7d778
[ "BSD-2-Clause" ]
4
2021-05-14T20:21:03.000Z
2021-11-18T01:27:04.000Z
guillotina_volto/fields/__init__.py
enfold/guillotina-volto
d38ee300470c813c99341eaeb2ba8a2b5fb7d778
[ "BSD-2-Clause" ]
null
null
null
from .richtext import RichTextField # noqa
22
43
0.795455
b936f18101a54142c16cecc67745efd3a5d6cced
8,389
py
Python
dump/main.py
liuh-80/sonic-utilities
3d3c89bd75e3c70881c64e2a59043177c56111b4
[ "Apache-2.0" ]
null
null
null
dump/main.py
liuh-80/sonic-utilities
3d3c89bd75e3c70881c64e2a59043177c56111b4
[ "Apache-2.0" ]
null
null
null
dump/main.py
liuh-80/sonic-utilities
3d3c89bd75e3c70881c64e2a59043177c56111b4
[ "Apache-2.0" ]
null
null
null
import os import sys import json import re import click from tabulate import tabulate from sonic_py_common import multi_asic from utilities_common.constants import DEFAULT_NAMESPACE from swsscommon.swsscommon import ConfigDBConnector from dump.match_infra import RedisSource, JsonSource, ConnectionPool from dump import ...
35.247899
124
0.614138
e75bf47239910c9b8d43faf733006d1125b9929f
104,501
py
Python
__main__.py
labscript-suite-temp-archive/lyse-fork--cavitylab-lyse--forked-from--labscript_suite-lyse
b77583aad39800f9e22e638db7e878160e0b43ff
[ "BSD-2-Clause" ]
null
null
null
__main__.py
labscript-suite-temp-archive/lyse-fork--cavitylab-lyse--forked-from--labscript_suite-lyse
b77583aad39800f9e22e638db7e878160e0b43ff
[ "BSD-2-Clause" ]
null
null
null
__main__.py
labscript-suite-temp-archive/lyse-fork--cavitylab-lyse--forked-from--labscript_suite-lyse
b77583aad39800f9e22e638db7e878160e0b43ff
[ "BSD-2-Clause" ]
null
null
null
from __future__ import division, unicode_literals, print_function, absolute_import # Ease the transition to Python 3 # stdlib imports import os import sys import socket import logging import threading import signal import subprocess import time import traceback import pprint import ast # Turn on our...
47.264134
160
0.620855
75b24703b4c357ed6d98a2a1b2b1ffea20540ce5
4,720
py
Python
Lib/idlelib/textview.py
Psycojoker/cpython
0afada163c7ef25c3a9d46ed445481fb69f2ecaf
[ "PSF-2.0" ]
2
2019-07-05T09:19:52.000Z
2019-12-18T10:31:38.000Z
Lib/idlelib/textview.py
Psycojoker/cpython
0afada163c7ef25c3a9d46ed445481fb69f2ecaf
[ "PSF-2.0" ]
1
2020-07-28T16:54:08.000Z
2020-07-28T16:54:08.000Z
Lib/idlelib/textview.py
izbyshev/cpython
ef8861c112ed1dac9351958c121bc24ca4ecdb08
[ "PSF-2.0" ]
1
2019-09-29T03:20:42.000Z
2019-09-29T03:20:42.000Z
"""Simple text browser for IDLE """ from tkinter import Toplevel, Text from tkinter.ttk import Frame, Scrollbar, Button from tkinter.messagebox import showerror class TextFrame(Frame): "Display text with scrollbar." def __init__(self, parent, rawtext): """Create a frame for Textview. parent...
33.475177
77
0.606992
e7c1141467900fd41463e4cc0a1159678f80104b
4,314
py
Python
examples/mark_bad_channels.py
ethanknights/mne-bids
cfb2ee9c7ddad6e3590427d65844de9f47e66d2d
[ "BSD-3-Clause" ]
null
null
null
examples/mark_bad_channels.py
ethanknights/mne-bids
cfb2ee9c7ddad6e3590427d65844de9f47e66d2d
[ "BSD-3-Clause" ]
null
null
null
examples/mark_bad_channels.py
ethanknights/mne-bids
cfb2ee9c7ddad6e3590427d65844de9f47e66d2d
[ "BSD-3-Clause" ]
null
null
null
""" =============================================== 03. Changing which channels are marked as "bad" =============================================== You can use MNE-BIDS to mark MEG or (i)EEG recording channels as "bad", for example if the connected sensor produced mostly noise – or no signal at all. Similarly, you ca...
45.410526
79
0.624942
dc041b92b14ffd46fe64e3bd6646d0af18096a4a
5,113
py
Python
tensorflow/python/keras/applications/applications_load_weight_test.py
ashutom/tensorflow-upstream
c16069c19de9e286dd664abb78d0ea421e9f32d4
[ "Apache-2.0" ]
10
2021-05-25T17:43:04.000Z
2022-03-08T10:46:09.000Z
tensorflow/python/keras/applications/applications_load_weight_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
1,056
2019-12-15T01:20:31.000Z
2022-02-10T02:06:28.000Z
tensorflow/python/keras/applications/applications_load_weight_test.py
CaptainGizzy21/tensorflow
3457a2b122e50b4d44ceaaed5a663d635e5c22df
[ "Apache-2.0" ]
6
2016-09-07T04:00:15.000Z
2022-01-12T01:47:38.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
44.46087
80
0.722472
8311b3bf8b6afe53e1ec69281af28e83e6c0641f
3,182
py
Python
pyt_regression1.py
mjbhobe/dl-pytorch
c1c443a0540b2678c38db364b56dfa1d9a1d1ae2
[ "MIT" ]
5
2020-01-09T08:58:32.000Z
2021-12-26T09:06:35.000Z
pyt_regression1.py
mjbhobe/dl-pytorch
c1c443a0540b2678c38db364b56dfa1d9a1d1ae2
[ "MIT" ]
1
2020-01-09T09:00:13.000Z
2020-01-09T09:00:13.000Z
pyt_regression1.py
mjbhobe/dl-pytorch
c1c443a0540b2678c38db364b56dfa1d9a1d1ae2
[ "MIT" ]
2
2020-01-09T08:58:40.000Z
2020-10-25T03:49:55.000Z
""" pyt_regression1.py: figure out the regression function between X & y @author: Manish Bhobe My experiments with Python, Machine Learning & Deep Learning. This code is meant for education purposes only & is not intended for commercial/production use! Use at your own risk!! I am not responsible if your CPU or GPU get...
27.669565
95
0.612194
6c3495ad5441f0303c1fb34a15cfbab9765561a0
857
py
Python
src/examples/C4-DDQNvsMinimax.py
kirarpit/connect4
ed5f2b9d4cca26e5230a124a4e3f9efe3efaf229
[ "MIT" ]
41
2018-07-14T10:05:04.000Z
2022-03-14T20:41:21.000Z
src/examples/C4-DDQNvsMinimax.py
kirarpit/connect4
ed5f2b9d4cca26e5230a124a4e3f9efe3efaf229
[ "MIT" ]
14
2019-07-22T23:28:46.000Z
2022-03-11T23:28:30.000Z
src/examples/C4-DDQNvsMinimax.py
kirarpit/connect4
ed5f2b9d4cca26e5230a124a4e3f9efe3efaf229
[ "MIT" ]
3
2019-12-05T16:12:15.000Z
2021-04-06T01:37:48.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Aug 16 20:26:39 2018 @author: Arpit """ from games.c4Game import C4Game from environment import Environment from players.minimaxC4Player import MinimaxC4Player from players.qPlayer import QPlayer from brains.qBrain import QBrain isConv = False layers ...
27.645161
81
0.681447
6955ec3a4a71b815b05675087b5589be36cf5bce
13,105
py
Python
tests/test_deadfixtures.py
Ivan-Feofanov/pytest-deadfixtures
d715a36d3a529403c85b1bd09c12c0b9ebe672c2
[ "MIT" ]
null
null
null
tests/test_deadfixtures.py
Ivan-Feofanov/pytest-deadfixtures
d715a36d3a529403c85b1bd09c12c0b9ebe672c2
[ "MIT" ]
null
null
null
tests/test_deadfixtures.py
Ivan-Feofanov/pytest-deadfixtures
d715a36d3a529403c85b1bd09c12c0b9ebe672c2
[ "MIT" ]
null
null
null
import pytest from pytest_deadfixtures import ( DUPLICATE_FIXTURES_HEADLINE, EXIT_CODE_ERROR, EXIT_CODE_SUCCESS, UNUSED_FIXTURES_FOUND_HEADLINE, ) def test_error_exit_code_on_dead_fixtures_found(pytester): pytester.makepyfile( """ import pytest @pytest.fixture() ...
22.287415
96
0.619535
e556b03c3d549dbf7d6d7d6793621d4106f01f18
1,542
py
Python
libs/layers/roi_align_tf/roi_align_tf.py
FullStackD3vs/Detectron-PYTORCH
b42c78b393098c8b678bb21bd4a48cc41028141b
[ "Apache-2.0" ]
37
2018-07-25T16:30:47.000Z
2022-03-31T00:44:32.000Z
libs/layers/roi_align_tf/roi_align_tf.py
FullStackD3vs/Detectron-PYTORCH
b42c78b393098c8b678bb21bd4a48cc41028141b
[ "Apache-2.0" ]
2
2018-08-06T06:25:37.000Z
2019-04-30T03:41:04.000Z
libs/layers/roi_align_tf/roi_align_tf.py
FullStackD3vs/Detectron-PYTORCH
b42c78b393098c8b678bb21bd4a48cc41028141b
[ "Apache-2.0" ]
14
2019-01-15T08:42:19.000Z
2021-12-25T22:35:29.000Z
import torch from torch import nn from crop_and_resize import CropAndResizeFunction class RoIAlign(nn.Module): def __init__(self, crop_height, crop_width, extrapolation_value=0): super(RoIAlign, self).__init__() self.crop_height = crop_height self.crop_width = crop_width self.ex...
35.860465
102
0.633593
200e73150881631947dbb2ae6b98ceac2c0768be
2,371
py
Python
tests/__init__.py
chronitis/ipyrmd
1e10d5de5b4df281a906159d51b3e95f6972e7d9
[ "MIT" ]
61
2015-05-27T19:59:38.000Z
2021-05-05T17:19:29.000Z
tests/__init__.py
chronitis/ipyrmd
1e10d5de5b4df281a906159d51b3e95f6972e7d9
[ "MIT" ]
7
2016-02-21T10:54:29.000Z
2019-11-15T05:14:33.000Z
tests/__init__.py
chronitis/ipyrmd
1e10d5de5b4df281a906159d51b3e95f6972e7d9
[ "MIT" ]
5
2016-02-19T05:07:36.000Z
2020-11-27T10:56:52.000Z
# run the test cases with `python3 -m unittest` from the project root import unittest import nbformat import tempfile import ipyrmd NBFORMAT_VERSION = 4 # generic test classes which start from either an ipynb or rmd source # file, write it to a tempfile, then convert it back and forth, after # which the outputs can ...
29.271605
69
0.561367
84c65a1038e0fd531fb0c8046ef636479e36737a
8,863
py
Python
backtraderbd/strategies/base.py
rochi88/backtraderbd
dddc7694bda77b0dd91a2cd87d190bcb4004f99f
[ "MIT" ]
2
2020-04-09T06:35:02.000Z
2021-05-11T22:11:58.000Z
backtraderbd/strategies/base.py
rochi88/backtraderbd
dddc7694bda77b0dd91a2cd87d190bcb4004f99f
[ "MIT" ]
null
null
null
backtraderbd/strategies/base.py
rochi88/backtraderbd
dddc7694bda77b0dd91a2cd87d190bcb4004f99f
[ "MIT" ]
5
2020-04-10T14:45:58.000Z
2021-09-06T12:29:38.000Z
from __future__ import (absolute_import, division, print_function, unicode_literals) import os import sys import datetime as dt import math import pandas as pd import backtrader as bt import backtraderbd.data.bdshare as bds import backtraderbd.strategies.utils as bsu from backtraderbd.settings import settings as con...
43.876238
126
0.528941
721abc0034e36d68f1f56ead0395216990166e67
827
py
Python
cart_venv/Lib/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/resnet50/__init__.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
2
2019-08-04T20:28:14.000Z
2019-10-27T23:26:42.000Z
cart_venv/Lib/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/resnet50/__init__.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
null
null
null
cart_venv/Lib/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/resnet50/__init__.py
juice1000/Synchronous-vs-Asynchronous-Learning-Tensorflow-
654be60f7986ac9bb7ce1d080ddee377c3389f93
[ "MIT" ]
1
2020-11-04T03:16:29.000Z
2020-11-04T03:16:29.000Z
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.keras.applications.resnet50 namespace. """ from __future__ import print_function as _print_function import sys as _sys from tensorflow.python.keras.applications impor...
37.590909
97
0.823458
84cf0bfa34bf909c7efc30c05fd287e0debdaf8a
1,845
py
Python
openstack/network/v2/auto_allocated_topology.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
openstack/network/v2/auto_allocated_topology.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
openstack/network/v2/auto_allocated_topology.py
teresa-ho/stx-openstacksdk
7d723da3ffe9861e6e9abcaeadc1991689f782c5
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
36.9
75
0.742005
4853d673869c55d62771f7cb403c5002b3c4ebb1
329
py
Python
news/migrations/0006_remove_facebookpost_slug.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
1
2020-11-17T18:50:44.000Z
2020-11-17T18:50:44.000Z
news/migrations/0006_remove_facebookpost_slug.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
9
2020-10-23T18:42:45.000Z
2022-03-12T00:39:57.000Z
news/migrations/0006_remove_facebookpost_slug.py
kermox/schronisko-krakow
8f8c546894e4b683ce463debad27db72ef820f90
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-08-14 18:26 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('news', '0005_auto_20200814_1650'), ] operations = [ migrations.RemoveField( model_name='facebookpost', name='slug', ...
18.277778
47
0.592705
7369c41f92bcb12c2440e8751bb10845fa18ce66
1,077
py
Python
setup.py
Azmirol/click-man
827a2e2fd00363e5116a4d3fedd19ca617ba599a
[ "MIT" ]
105
2017-01-04T17:41:20.000Z
2022-03-31T13:00:54.000Z
setup.py
Azmirol/click-man
827a2e2fd00363e5116a4d3fedd19ca617ba599a
[ "MIT" ]
33
2017-03-06T16:02:13.000Z
2022-01-30T09:58:38.000Z
setup.py
Azmirol/click-man
827a2e2fd00363e5116a4d3fedd19ca617ba599a
[ "MIT" ]
31
2016-12-16T17:20:45.000Z
2022-03-26T09:54:27.000Z
import os from setuptools import setup, find_packages def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup( name='click-man', version='0.4.2', url='https://github.com/click-contrib/click-man', license='MIT', description='Generate man pages for click based...
27.615385
70
0.617456
1dd161e7daf343c5d605369339b67d506bfd1bfe
2,304
py
Python
agent.py
tdelubac/A3C
ad970b24fe2f2a532ccb42cf7e034894ef9b2838
[ "BSD-3-Clause-Clear" ]
null
null
null
agent.py
tdelubac/A3C
ad970b24fe2f2a532ccb42cf7e034894ef9b2838
[ "BSD-3-Clause-Clear" ]
15
2020-01-28T22:11:56.000Z
2022-03-11T23:16:57.000Z
agent.py
tdelubac/A3C
ad970b24fe2f2a532ccb42cf7e034894ef9b2838
[ "BSD-3-Clause-Clear" ]
null
null
null
import numpy as np import random N_STEP_RETURN = 8 FRAME = 0 class Agent: def __init__(self, brain, eps_start, eps_end, eps_steps): self.brain = brain self.eps_start = eps_start self.eps_end = eps_end self.eps_steps = eps_steps self.memory = [] self.R = 0. ...
32
100
0.532118
87a5a81b75124cd10e8e438185edb32579fa0b90
12,869
py
Python
tests/test_keep_largest_connected_component.py
wizofe/MONAI
d6327a765cf23dafd680b2a4b472edf9639e1087
[ "Apache-2.0" ]
null
null
null
tests/test_keep_largest_connected_component.py
wizofe/MONAI
d6327a765cf23dafd680b2a4b472edf9639e1087
[ "Apache-2.0" ]
null
null
null
tests/test_keep_largest_connected_component.py
wizofe/MONAI
d6327a765cf23dafd680b2a4b472edf9639e1087
[ "Apache-2.0" ]
null
null
null
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
34.781081
114
0.361178
e8d7f46cf22ba1a00b9bbf2ecdd52f1c8627c537
2,519
py
Python
delta/data/utils/vocabulary.py
didichuxing/delta
31dfebc8f20b7cb282b62f291ff25a87e403cc86
[ "Apache-2.0" ]
1,442
2019-07-09T07:34:28.000Z
2020-11-15T09:52:09.000Z
delta/data/utils/vocabulary.py
didichuxing/delta
31dfebc8f20b7cb282b62f291ff25a87e403cc86
[ "Apache-2.0" ]
93
2019-07-22T09:20:20.000Z
2020-11-13T01:59:30.000Z
delta/data/utils/vocabulary.py
didichuxing/delta
31dfebc8f20b7cb282b62f291ff25a87e403cc86
[ "Apache-2.0" ]
296
2019-07-09T07:35:28.000Z
2020-11-16T02:27:51.000Z
# Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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/LI...
28.954023
80
0.647082
846a3c36e833a2c562ed026b2479289a6a4b56ba
1,534
py
Python
attendees/occasions/apps.py
xjlin0/attendees32
25913c75ea8d916dcb065a23f2fa68bea558f77c
[ "MIT" ]
null
null
null
attendees/occasions/apps.py
xjlin0/attendees32
25913c75ea8d916dcb065a23f2fa68bea558f77c
[ "MIT" ]
5
2022-01-21T03:26:40.000Z
2022-02-04T17:32:16.000Z
attendees/occasions/apps.py
xjlin0/attendees32
25913c75ea8d916dcb065a23f2fa68bea558f77c
[ "MIT" ]
null
null
null
import pghistory from django.apps import AppConfig from django.apps import apps as django_apps class OccasionsConfig(AppConfig): name = "attendees.occasions" def ready(self): schedule_calendar_model = django_apps.get_model("schedule.Calendar", require_ready=False) schedule_calendarrelation_mo...
36.52381
113
0.671447
111d0777b494bcd3d5c49aca04ebd89162294ffb
444
py
Python
model/InvertedIndexM.py
philgookang/Simulated_InvertedIndex_TFIDF_PageRank
612452f50913275b818942f82da098b78956ff3a
[ "MIT" ]
null
null
null
model/InvertedIndexM.py
philgookang/Simulated_InvertedIndex_TFIDF_PageRank
612452f50913275b818942f82da098b78956ff3a
[ "MIT" ]
null
null
null
model/InvertedIndexM.py
philgookang/Simulated_InvertedIndex_TFIDF_PageRank
612452f50913275b818942f82da098b78956ff3a
[ "MIT" ]
null
null
null
from system import * class InvertedIndexM: def __init__(self, dicts = {}): self.postman = Database.init() for key,val in dicts.items(): setattr(self, str(key), val) def createmany(self, lst): query = ''' INSERT INTO `inverted_index` ( `term`, `i...
26.117647
45
0.502252
b2a832951132ceefa41e093eaa65f36461d93686
19,299
py
Python
code/ARAX/ARAXQuery/ARAX_ranker.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/ARAX_ranker.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
code/ARAX/ARAXQuery/ARAX_ranker.py
RichardBruskiewich/RTX
ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f
[ "MIT" ]
null
null
null
#!/bin/env python3 import sys def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) import os import json import ast import re from datetime import datetime import numpy as np from response import Response from query_graph_info import QueryGraphInfo from knowledge_graph_info import KnowledgeGraphInfo f...
57.097633
213
0.550184
ddd74919e972c376750a315ccb824efc7f3187e5
1,795
py
Python
account_handler.py
Costa-SM/itabot_ferias
e3706f1b09d28a78e079e6d9ccdef4f00d41d047
[ "MIT" ]
null
null
null
account_handler.py
Costa-SM/itabot_ferias
e3706f1b09d28a78e079e6d9ccdef4f00d41d047
[ "MIT" ]
null
null
null
account_handler.py
Costa-SM/itabot_ferias
e3706f1b09d28a78e079e6d9ccdef4f00d41d047
[ "MIT" ]
null
null
null
import tweepy class Account(object): """ Represents the account that will be used with the Twitter API. """ def __init__(self, consumerkey, bearer, accesskey): """ Prepares the account for use with the Twitter API via Tweepy. :param consumerkey: Tuple containing the Consumer...
30.423729
89
0.616156
f5b95333edf3bf2f8fd3e4885a5661403d64ebf7
1,008
py
Python
isi_sdk_8_2_1/test/test_certificate_server_certificate.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_8_2_1/test/test_certificate_server_certificate.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_8_2_1/test/test_certificate_server_certificate.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 8 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_8_2_1 from i...
24.585366
114
0.736111
5cb1369bc0ebec5d6fb5fd46376e3b66e29e1cb8
1,132
py
Python
data_stats.py
raphaelmenges/PierreKrapf-Bachelorthesis
9d0b92ffb9d862032e0531e9a210964bef6d2ea0
[ "MIT" ]
null
null
null
data_stats.py
raphaelmenges/PierreKrapf-Bachelorthesis
9d0b92ffb9d862032e0531e9a210964bef6d2ea0
[ "MIT" ]
null
null
null
data_stats.py
raphaelmenges/PierreKrapf-Bachelorthesis
9d0b92ffb9d862032e0531e9a210964bef6d2ea0
[ "MIT" ]
null
null
null
import os import os.path as path import numpy as np import re from prettytable import PrettyTable from functools import reduce # TODO: Turn this into arg folder_path = path.join("G:", "BA", "Data", "Out") all_files = os.listdir(folder_path) all_files_iter = iter(all_files) counts = {} for file_name in all_files_ite...
24.608696
76
0.64576
a379d2f292b4582d908295d1891c35c0dc9b8a49
2,711
py
Python
asyncfile/usefuls.py
try-fail1/asyncfile
bef47653308a2f0ca271391e0d07a151695de757
[ "MIT" ]
2
2020-06-07T04:32:07.000Z
2020-08-16T06:12:33.000Z
asyncfile/usefuls.py
try-fail1/asyncfile
bef47653308a2f0ca271391e0d07a151695de757
[ "MIT" ]
null
null
null
asyncfile/usefuls.py
try-fail1/asyncfile
bef47653308a2f0ca271391e0d07a151695de757
[ "MIT" ]
null
null
null
from asyncio import AbstractEventLoop from typing import ( Optional, Iterable, AsyncIterator, Callable ) from collections.abc import Coroutine from functools import wraps from .threads import threadwork Loop = Optional[AbstractEventLoop] def add_async_methods(names: Iterable): def the_class(cls): ...
25.101852
83
0.617484
46c1c9796617997daac4f76506c0ae5ef786b798
7,070
py
Python
multi_script_editor/widgets/themeEditor.py
paulwinex/pw_multiScriptEditor
e447e99f87cb07e238baf693b7e124e50efdbc51
[ "MIT" ]
142
2015-03-21T12:56:21.000Z
2022-02-08T04:42:46.000Z
multi_script_editor/widgets/themeEditor.py
paulwinex/pw_multiScriptEditor
e447e99f87cb07e238baf693b7e124e50efdbc51
[ "MIT" ]
7
2016-02-16T05:44:57.000Z
2022-01-07T06:05:35.000Z
multi_script_editor/widgets/themeEditor.py
paulwinex/pw_multiScriptEditor
e447e99f87cb07e238baf693b7e124e50efdbc51
[ "MIT" ]
43
2015-04-16T06:14:54.000Z
2021-11-01T05:07:18.000Z
try: from PySide.QtCore import * from PySide.QtGui import * qt = 1 except: from PySide2.QtCore import * from PySide2.QtGui import * from PySide2.QtWidgets import * qt = 2 import themeEditor_UIs as ui import settingsManager import os from .pythonSyntax import design from .pythonSyntax import ...
32.883721
99
0.578218
465d8a3695d2f9c6321c7f2d70b8bb84b9adee5e
461
py
Python
aliyun_exporter/test_utils.py
BoringCat/aliyun-exporter
3c9af5e6ee42c9b3876ce312a3c39db046032740
[ "Apache-2.0" ]
1
2021-12-30T11:42:45.000Z
2021-12-30T11:42:45.000Z
aliyun_exporter/test_utils.py
BoringCat/aliyun-exporter
3c9af5e6ee42c9b3876ce312a3c39db046032740
[ "Apache-2.0" ]
null
null
null
aliyun_exporter/test_utils.py
BoringCat/aliyun-exporter
3c9af5e6ee42c9b3876ce312a3c39db046032740
[ "Apache-2.0" ]
1
2021-12-30T11:42:48.000Z
2021-12-30T11:42:48.000Z
from .utils import format_metric, format_period def test_format_metric(): assert format_metric("") == "" assert format_metric("a.b.c") == "a_b_c" assert format_metric("aBcD") == "aBcD" assert format_metric(".a.b.c.") == "_a_b_c_" def test_format_period(): assert format_period("") == "" assert...
30.733333
53
0.652928
4a6d47a6cf2732946639dc449c00d301268f58c9
19,321
py
Python
Step_3_train_fast_RCNN.py
sumedhasingla/ExplainingBBSmoothly
0873d7a3b1fa0e9d967d01647e0fa5fe136a7604
[ "MIT" ]
null
null
null
Step_3_train_fast_RCNN.py
sumedhasingla/ExplainingBBSmoothly
0873d7a3b1fa0e9d967d01647e0fa5fe136a7604
[ "MIT" ]
null
null
null
Step_3_train_fast_RCNN.py
sumedhasingla/ExplainingBBSmoothly
0873d7a3b1fa0e9d967d01647e0fa5fe136a7604
[ "MIT" ]
null
null
null
import sys import os import tensorflow as tf import numpy as np import scipy.io as sio #from PIL import Image from Fast_RCNN.rpn_proposal.utils import read_batch, generate_anchors, pre_process_xml from Fast_RCNN.rpn_proposal.vggnet import vgg_16 from Fast_RCNN.rpn_proposal.ops import smooth_l1, offset2bbox from Fast_RC...
56.659824
290
0.617152
0ce7e60f4fa3ffd949d39919bda549c80c6d17e1
21,135
py
Python
train.py
avasalya/yolact
14c9eceae0432219084f9157c5ea00a246ff1cc6
[ "MIT" ]
null
null
null
train.py
avasalya/yolact
14c9eceae0432219084f9157c5ea00a246ff1cc6
[ "MIT" ]
null
null
null
train.py
avasalya/yolact
14c9eceae0432219084f9157c5ea00a246ff1cc6
[ "MIT" ]
null
null
null
from data import * from utils.augmentations import SSDAugmentation, BaseTransform from utils.functions import MovingAverage, SavePath from utils.logger import Log from utils import timer from layers.modules import MultiBoxLoss from yolact import Yolact import os import sys import time import math, random from pathlib i...
41.851485
196
0.617743
efc86815bc49d6cd0430569fd656deb7363871bc
2,075
py
Python
caffe2/python/operator_test/clip_tensor_op_test.py
MagiaSN/pytorch
7513455c743d3d644b45a804902c1a0d14b69f45
[ "Intel" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
caffe2/python/operator_test/clip_tensor_op_test.py
MagiaSN/pytorch
7513455c743d3d644b45a804902c1a0d14b69f45
[ "Intel" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
caffe2/python/operator_test/clip_tensor_op_test.py
MagiaSN/pytorch
7513455c743d3d644b45a804902c1a0d14b69f45
[ "Intel" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
from caffe2.python import core import caffe2.python.hypothesis_test_util as hu import caffe2.python.serialized_test.serialized_test_util as serial import hypothesis.strategies as st from hypothesis import given, settings import numpy as np class TestClipTensorByScalingOp(serial.SerializedTestCase): @given(n...
32.421875
82
0.618313
20632b76248c8f6f81969b3d7c386a4814a19b7d
133
py
Python
seq2video/__init__.py
marcocaggioni/seq2video
53de4e7b6ae90c4544da590575d559bbae82ccee
[ "MIT" ]
null
null
null
seq2video/__init__.py
marcocaggioni/seq2video
53de4e7b6ae90c4544da590575d559bbae82ccee
[ "MIT" ]
null
null
null
seq2video/__init__.py
marcocaggioni/seq2video
53de4e7b6ae90c4544da590575d559bbae82ccee
[ "MIT" ]
null
null
null
"""Top-level package for Uptimer.""" __author__ = """Marco Caggioni""" __email__ = "marco.caggioni@gmail.com" __version__ = "0.1.0"
22.166667
38
0.691729
8a05fc1e44174ca88b9bfd39b61fbe604c16fefe
779
py
Python
src/modules/agents/rnn_agent.py
OscarPedaVendere/sc2MultiAgentES
54df34eb94f00294c2bcd1ac5a0c14386c0bbceb
[ "Apache-2.0" ]
null
null
null
src/modules/agents/rnn_agent.py
OscarPedaVendere/sc2MultiAgentES
54df34eb94f00294c2bcd1ac5a0c14386c0bbceb
[ "Apache-2.0" ]
4
2021-03-19T03:43:34.000Z
2022-01-13T01:39:12.000Z
src/modules/agents/rnn_agent.py
OscarPedaVendere/sc2MultiAgentES
54df34eb94f00294c2bcd1ac5a0c14386c0bbceb
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F class RNNAgent(nn.Module): def __init__(self, input_shape, args): super(RNNAgent, self).__init__() self.args = args self.fc1 = nn.Linear(input_shape, args.rnn_hidden_dim) self.rnn = nn.GRUCell(args.rnn_hidden_dim, args.rnn_hidde...
33.869565
71
0.655969
9bca5b5a57372c95bdff0bcae4a91ad755ffa764
3,806
py
Python
tests/test_config_lib_field.py
MacHu-GWU/configirl-project
77105874514c5520aa47aa25d89c28f51b152582
[ "MIT" ]
1
2019-07-27T17:38:32.000Z
2019-07-27T17:38:32.000Z
tests/test_config_lib_field.py
MacHu-GWU/configirl-project
77105874514c5520aa47aa25d89c28f51b152582
[ "MIT" ]
null
null
null
tests/test_config_lib_field.py
MacHu-GWU/configirl-project
77105874514c5520aa47aa25d89c28f51b152582
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Test field related options """ import pytest from pytest import raises from datetime import datetime from configirl import ConfigClass, Constant, Derivable from configirl import ValueNotSetError, DontDumpError, DerivableSetValueError class Config(ConfigClass): PROJECT_NAME = Constan...
26.615385
78
0.694693