hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
1ad8dc3181c1d5760fb6f61914578bc7856d0a6d
21,309
py
Python
sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
1
2021-09-07T18:35:49.000Z
2021-09-07T18:35:49.000Z
sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-blob/azure/storage/blob/aio/_download_async.py
azclibot/azure-sdk-for-python
390e17ce71f874f067b4ef8e8038ee96b23e943b
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- # pylint: ...
40.20566
108
0.622648
1ad8f433bbd8d24c69234d575b76154e7ce1e387
4,076
py
Python
alipay/aop/api/request/AlipayOfflineProviderIndirectisvActivityEffectRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOfflineProviderIndirectisvActivityEffectRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOfflineProviderIndirectisvActivityEffectRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOfflineProviderIndirectisvActivityEffectModel import AlipayOfflineProviderIndirectisvActivityEffectModel class AlipayOfflinePr...
28.110345
148
0.653582
1ad8fb006cf32a5ef3cecb0f83e743d9b59389a9
515
py
Python
hs_script_resource/migrations/0002_repo_charfield_to_urlfield.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_script_resource/migrations/0002_repo_charfield_to_urlfield.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_script_resource/migrations/0002_repo_charfield_to_urlfield.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_script_resource', '0001_initial'), ] operations = [ migrations.AlterField( model_name='scriptspecificmetadata', name='scriptCodeReposito...
25.75
172
0.638835
1ad906b21b5c2fa7c60a1f840ad14bfbfdedf5fa
3,095
py
Python
tests/openapi/test_responses_groups.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
4,618
2015-08-06T18:17:02.000Z
2022-03-31T10:03:07.000Z
tests/openapi/test_responses_groups.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
1,578
2015-07-30T09:47:41.000Z
2022-03-31T13:12:50.000Z
tests/openapi/test_responses_groups.py
vincentfretin/kinto
34ff8093ab708eae55fc4eefa237fb420e808a6a
[ "Apache-2.0" ]
546
2015-07-30T10:31:35.000Z
2022-03-31T12:44:32.000Z
from bravado_core.response import validate_response from .support import MINIMALIST_GROUP, OpenAPITest class OpenAPIGroupResponsesTest(OpenAPITest): def test_get_group_200(self): response = self.app.get("/buckets/b1/groups/g1", headers=self.headers, status=200) response = self.cast_bravado_respon...
44.214286
93
0.674313
1ad90ee6871eb52614dbb67d2af12e8bc5a261cb
803
py
Python
monitor/consumer/database_writer.py
andletenkov/website-monitor
80db5e002727bc672e4906c67103dd16e734bd28
[ "Apache-2.0" ]
null
null
null
monitor/consumer/database_writer.py
andletenkov/website-monitor
80db5e002727bc672e4906c67103dd16e734bd28
[ "Apache-2.0" ]
null
null
null
monitor/consumer/database_writer.py
andletenkov/website-monitor
80db5e002727bc672e4906c67103dd16e734bd28
[ "Apache-2.0" ]
null
null
null
from .db import PostgresStorage from .receiver import KafkaReceiver from ..common.logger import get_logger logger = get_logger(__name__) class DatabaseWriter: """ Database writer implementation. Receives website check results from kafka and puts it to postgres storage. """ def __init__(self, con...
25.903226
78
0.637609
1ad92a71284088b56638780e99fe051db319a2f8
1,465
py
Python
marchena/modules/links/views/base.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/links/views/base.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
marchena/modules/links/views/base.py
samuelmaudo/marchena
e9a522a9be66f7043aa61e316f7e733e8ccf1e32
[ "BSD-3-Clause" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import unicode_literals from yepes.apps import apps from yepes.conf import settings from yepes.view_mixins import CanonicalMixin from yepes.views import ListView BlogMixin = apps.get_class('blogs.view_mixins', 'BlogMixin') LinkCategoryMixin = apps.get_class('links.view_mixins',...
27.12963
78
0.692833
1ad9508a4f1203f429b49c77499e41f6dddc1c81
2,496
py
Python
datalad/interface/tests/test_base.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/interface/tests/test_base.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
datalad/interface/tests/test_base.py
soichih/datalad
797dde3ab7497be170e2c4ea8824f33a4b38e5d8
[ "MIT" ]
null
null
null
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
30.439024
87
0.643029
1ad951b31657dbd2310b1775957edc86a82642ac
215
py
Python
pgbouncer/datadog_checks/pgbouncer/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
4
2021-06-21T19:21:49.000Z
2021-06-23T21:21:55.000Z
pgbouncer/datadog_checks/pgbouncer/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2018-08-15T05:50:17.000Z
2018-08-15T05:50:17.000Z
pgbouncer/datadog_checks/pgbouncer/__init__.py
seants/integrations-core
1e5548915fc24f1bbd095e845f0940c22992b09c
[ "BSD-3-Clause" ]
1
2019-03-06T14:30:52.000Z
2019-03-06T14:30:52.000Z
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from .pgbouncer import PgBouncer from .__about__ import __version__ __all__ = ['PgBouncer', '__version__']
26.875
59
0.75814
1ad998b442794a3b3355e8a99b8adeab2284ea2a
4,940
py
Python
PyFunceble/helpers/merge.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/helpers/merge.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
PyFunceble/helpers/merge.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
""" The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ...
31.870968
88
0.545142
1ad9b030f170dec5af76377b048d9d2adbc8c972
579
py
Python
toontown/nametag/NametagFloat2d.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/nametag/NametagFloat2d.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/nametag/NametagFloat2d.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from pandac.PandaModules import Point3 from toontown.nametag.NametagFloat3d import NametagFloat3d class NametagFloat2d(NametagFloat3d): def doBillboardEffect(self): pass def update(self): NametagFloat3d.update(self) self.updateClickRegion() def setClickRegionFrame(self, left, ri...
27.571429
67
0.690846
1ad9cc68c7b0061dbbb099aa734c38080ea1c95c
9,639
py
Python
util/audiotool.py
sailist/ASRFrame
2fd022c3c00af1d5178dee4b367b2269241bc73c
[ "Apache-2.0" ]
223
2019-07-13T06:31:18.000Z
2022-03-11T08:23:01.000Z
util/audiotool.py
mayite/ASRFrame
484cf1ee5beec4c39439de683c5b4c1f1ea3a94a
[ "Apache-2.0" ]
7
2019-12-27T08:48:42.000Z
2021-09-01T09:45:13.000Z
util/audiotool.py
mayite/ASRFrame
484cf1ee5beec4c39439de683c5b4c1f1ea3a94a
[ "Apache-2.0" ]
71
2019-07-14T13:14:13.000Z
2022-03-18T06:58:54.000Z
import os,math import librosa import numpy as np from matplotlib import pyplot as plt from scipy.io import wavfile class Recoder(): @staticmethod def record(second = 5,chunk = 256,sample_rate = 16000,channels = 1,format = None): import pyaudio frames = [] if format is None: ...
31.707237
141
0.535118
1ad9d296684214a0aa720be5d63fa8089df84af4
2,918
py
Python
leetcode_python/Math/random-flip-matrix.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Math/random-flip-matrix.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Math/random-flip-matrix.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V1 class Solution(object): import random def __init__(self, n_rows, n_cols): """ :type n_rows: int :type n_cols: int """ self.M = n_rows self.N = n_cols self.total = self.M * self.N self.fliped = set() def flip(self): randon_x = random.randint(0, self.total - 1) randon_y = random.randint(...
23.15873
69
0.5
1ad9d61fec23bfd21daf979518c38a394c55b7ef
1,177
py
Python
test/test_pivot_list_response_container.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_pivot_list_response_container.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
null
null
null
test/test_pivot_list_response_container.py
jlk/qualys-cs-python-client
e2e39fd64d41fd6671d45343843ef36fa3ab59a4
[ "Apache-2.0" ]
1
2020-05-15T04:20:48.000Z
2020-05-15T04:20:48.000Z
# coding: utf-8 """ Container Security APIs All features of the Container Security are available through REST APIs.<br/>Access support information at www.qualys.com/support/<br/><br/><b>Permissions:</b><br/>User must have the Container module enabled<br/>User must have API ACCESS permission # noqa: E501 ...
29.425
265
0.744265
1ad9ec79c0e0d1327dbf187e6b320ce35df03fe8
26,504
py
Python
finds/sectors.py
terence-lim/investment-data-science
22c1cf7b1d9c012f0e2c586a0c5bda64e6f59471
[ "MIT" ]
2
2020-04-18T00:00:15.000Z
2020-08-17T14:24:49.000Z
finds/sectors.py
terence-lim/investment-data-science
22c1cf7b1d9c012f0e2c586a0c5bda64e6f59471
[ "MIT" ]
null
null
null
finds/sectors.py
terence-lim/investment-data-science
22c1cf7b1d9c012f0e2c586a0c5bda64e6f59471
[ "MIT" ]
2
2021-06-18T23:26:44.000Z
2021-10-04T08:03:01.000Z
"""Implement industry sectoring, and convenience methods for BEA data - pandas, requests, sqlalchemy, json - SIC, NAICS, Fama-French industry crosswalks - Bureau of Economic Analysis, Input-Output Use Tables Author: Terence Lim License: MIT """ import numpy as np import pandas as pd from pandas import DataFrame, Seri...
41.027864
81
0.540069
1ad9f51985f23604e40dd06dfe001d88508898ae
4,371
py
Python
magenta/models/polyamp/sequence_prediction_util.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
magenta/models/polyamp/sequence_prediction_util.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
1
2020-03-01T16:02:10.000Z
2020-03-01T16:02:10.000Z
magenta/models/polyamp/sequence_prediction_util.py
Jss7268/magenta
10e0b2c50baaa01a9c942ed3334b5b2cca761bef
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Jack Spencer Smith # # 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 wr...
40.850467
93
0.696179
1ad9fa76a5c8da98f054059ff32daf03c627cf3d
597
py
Python
reliabilly/tests/factories/test_factory.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2018-11-24T02:07:37.000Z
2018-11-24T02:07:37.000Z
reliabilly/tests/factories/test_factory.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-23T07:12:30.000Z
2019-01-23T07:12:30.000Z
reliabilly/tests/factories/test_factory.py
corpseware/reliabilly
e8d310d43478407e2cf8b45cc746362124140385
[ "MIT" ]
1
2019-01-16T05:30:49.000Z
2019-01-16T05:30:49.000Z
import warnings from unittest import TestCase from reliabilly.components.authorization import Authorization from reliabilly.components.factories.factory import Factory, Components class FactoryTests(TestCase): def setUp(self): warnings.filterwarnings("ignore", category=ResourceWarning) def test_dyna...
31.421053
71
0.770519
1ada00847483b8abbdb820b7d72819b323fdd8c6
401
py
Python
solutions/climbing-stairs.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
solutions/climbing-stairs.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
1
2022-02-22T15:42:54.000Z
2022-02-25T00:10:04.000Z
solutions/climbing-stairs.py
edab/-LC_StudyPlan_Python
e065f0ced68d23800d7b5001102c2e930ee35e23
[ "MIT" ]
null
null
null
# Leetcode 70. Climbing Stairs # # Link: https://leetcode.com/problems/climbing-stairs/ # Difficulty: Easy # Solution using DP # Complexity: # O(N) time | where N represent the number of steps of the staircase # O(1) space class Solution: def climbStairs(self, n: int) -> int: one, two = 1, 1 ...
21.105263
70
0.613466
1ada087c285772963d92926e90d5e5e0e29a0b5e
2,392
py
Python
src/utils/augument.py
AlfredWGA/House-Property-QA
47fed327b1714e417e56a88e67af7486e8118b2c
[ "MIT" ]
null
null
null
src/utils/augument.py
AlfredWGA/House-Property-QA
47fed327b1714e417e56a88e67af7486e8118b2c
[ "MIT" ]
null
null
null
src/utils/augument.py
AlfredWGA/House-Property-QA
47fed327b1714e417e56a88e67af7486e8118b2c
[ "MIT" ]
null
null
null
# coding=utf-8 import os import pandas as pd from eda import * from tqdm import tqdm script_abs_path = os.path.dirname(__file__) ROOT_DIR = os.path.join(script_abs_path, '../../') DATA_DIR = os.path.join(ROOT_DIR, 'data') RAW_DATA = os.path.join(DATA_DIR, 'raw_data') train_query_file = os.path.join(RAW_DATA, 'train'...
34.171429
110
0.600334
1ada45503a8ed1a667da850bb344fd9b31857354
12,315
py
Python
fsspec/implementations/webhdfs.py
AlbertDeFusco/filesystem_spec
3622478474fb71eede3f652b027996b87806e727
[ "BSD-3-Clause" ]
null
null
null
fsspec/implementations/webhdfs.py
AlbertDeFusco/filesystem_spec
3622478474fb71eede3f652b027996b87806e727
[ "BSD-3-Clause" ]
null
null
null
fsspec/implementations/webhdfs.py
AlbertDeFusco/filesystem_spec
3622478474fb71eede3f652b027996b87806e727
[ "BSD-3-Clause" ]
null
null
null
# https://hadoop.apache.org/docs/r1.0.4/webhdfs.html import requests from urllib.parse import quote import uuid from ..spec import AbstractFileSystem, AbstractBufferedFile class WebHDFS(AbstractFileSystem): """ Interface to HDFS over HTTP Three auth mechanisms are supported: insecure: no auth is ...
37.093373
100
0.584409
1ada5b0ab4fcd31c88f484ece79f7465b51ef153
2,902
py
Python
mailanalyzer/detector/customheader.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
4
2018-01-18T15:29:22.000Z
2021-11-23T12:32:50.000Z
mailanalyzer/detector/customheader.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
null
null
null
mailanalyzer/detector/customheader.py
COMSYS/MailAnalyzer
8cc51c4165f4f7851eaf513cfc5db6d930c289e8
[ "MIT" ]
1
2019-10-08T19:07:25.000Z
2019-10-08T19:07:25.000Z
from mailanalyzer.detector.abstract import AbstractDetector import os import glob import re import xml.etree.cElementTree as ET from collections import defaultdict class CustomHeaderDetector(AbstractDetector): def __init__(self): path = os.path.join(os.path.dirname(__file__),'customHeaders') files = glob.glo...
32.244444
107
0.658167
1ada7a97b4a18eacb10f8dce71c16ab115432bc6
16,815
py
Python
deprecated/opencl_computations_demo.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
deprecated/opencl_computations_demo.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
deprecated/opencl_computations_demo.py
naummo/swarm_maze_opencl_solver
1047e1293e90f484ccc4ff77cfe61196fb7cbbc6
[ "MIT" ]
null
null
null
import os import pyopencl as cl import numpy as np import configs as cfg import agents_demo as agents import collision_detection as coll_detect import maze def init_opencl(): """ Set up OpenCL """ platform = cl.get_platforms() my_gpu_devices = platform[0].get_devices(device_type=cl.device_type.GPU) ...
42.142857
113
0.653286
1ada85643b20b82402ae27c42ef8c235951a4727
860
py
Python
hashicorp_vault_client/test/test_body6.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/test/test_body6.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/test/test_body6.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest ...
21.5
104
0.680233
1ada8671313ec4f8626a98e79c23f4a9560b39dc
1,839
py
Python
Common/IO/FileInfo/IFileInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
2
2020-03-04T11:18:38.000Z
2020-05-10T15:36:42.000Z
Common/IO/FileInfo/IFileInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
6
2020-03-30T16:42:47.000Z
2021-12-13T20:37:21.000Z
Common/IO/FileInfo/IFileInfo.py
enriqueescobar-askida/Kinito.Finance
5308748b64829ac798a858161f9b4a9e5829db44
[ "MIT" ]
1
2020-04-14T11:26:16.000Z
2020-04-14T11:26:16.000Z
from abc import abstractmethod from Common.Objects.Interfaceable import Interfaceable class IFileInfo(Interfaceable): @abstractmethod def AppendText(self) -> bool: pass @abstractmethod def CopyTo(self) -> bool: pass @abstractmethod def Create(self) -> bool: pass ...
14.830645
54
0.585644
1ada8b9d35ae25a71bf6b537c92dac1a10fa7bc2
16,038
py
Python
src/tools/api_compiler/baseapplication.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
2
2020-09-17T20:51:18.000Z
2020-11-03T15:58:10.000Z
src/tools/api_compiler/baseapplication.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
97
2020-08-26T05:07:08.000Z
2022-03-28T16:01:49.000Z
src/tools/api_compiler/baseapplication.py
facade-technologies-inc/facile
4c9134dced71734641fed605e152880cd9ddefe3
[ "MIT" ]
null
null
null
""" .. /------------------------------------------------------------------------------\ | -- FACADE TECHNOLOGIES INC. CONFIDENTIAL -- | |------------------------------------------------------------------------------| | ...
42.316623
149
0.578688
1ada986e958a8d258035872329d0e59ee8bf3498
1,100
py
Python
docs/demo/extend_assistant.py
tlambert-forks/napari_pyclesperanto_assistant
6ac859a28917bfc3f9b38baf463606134dbb25fb
[ "BSD-3-Clause" ]
null
null
null
docs/demo/extend_assistant.py
tlambert-forks/napari_pyclesperanto_assistant
6ac859a28917bfc3f9b38baf463606134dbb25fb
[ "BSD-3-Clause" ]
1
2021-04-13T20:06:42.000Z
2021-04-13T20:08:02.000Z
docs/demo/extend_assistant.py
tlambert-forks/napari_pyclesperanto_assistant
6ac859a28917bfc3f9b38baf463606134dbb25fb
[ "BSD-3-Clause" ]
1
2021-04-13T18:13:22.000Z
2021-04-13T18:13:22.000Z
import napari import napari_pyclesperanto_assistant from magicgui import magicgui from napari.layers import Image # start napari viewer = napari.Viewer() viewer.open('../../napari_pyclesperanto_assistant/data/CalibZAPWfixed_000154_max-16.tif') # attach the assistant assistant_gui = napari_pyclesperanto_assistant.nap...
27.5
89
0.744545
1adab050a1161940234c4b76c070b859837bcbdc
1,599
py
Python
external/snake-0.3/examples/openfoam/plotForceCoefficientsCompareOther.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
67
2015-01-25T18:33:39.000Z
2022-02-17T17:50:00.000Z
external/snake-0.3/examples/openfoam/plotForceCoefficientsCompareOther.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
20
2015-01-25T05:29:30.000Z
2018-05-14T02:07:03.000Z
external/snake-0.3/examples/openfoam/plotForceCoefficientsCompareOther.py
mesnardo/cuIBM
0b63f86c58e93e62f9dc720c08510cc88b10dd04
[ "MIT" ]
39
2015-01-22T16:32:11.000Z
2022-02-17T08:17:09.000Z
""" Post-processes the force coefficients from a OpenFOAM simulation and compare them to another simulation. This script reads the forces, computes the mean forces within a given range, computes the Strouhal number within a range, plots the force coefficients, saves the figure, and prints a data-frame that contains th...
39
76
0.674171
1adacd280b2ea2e192580c31b8803b916cc0cb2a
1,340
py
Python
examples/evm_loss.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
61
2019-11-19T03:53:54.000Z
2022-03-26T15:57:47.000Z
examples/evm_loss.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
2
2020-12-08T10:07:21.000Z
2021-02-24T00:29:15.000Z
examples/evm_loss.py
AlexeyReshetnyak/rfml
99ae3af822a037eb2757d6efadd25eb35a50c2b2
[ "BSD-3-Clause" ]
30
2019-12-03T13:43:22.000Z
2022-03-26T15:57:59.000Z
from rfml.ptradio import RRC, Upsample, Downsample from rfml.ptradio.modem import _qpsk_constellation from rfml.nn.F import evm import numpy as np import torch from torch.nn import Sequential, Parameter from torch.autograd import Variable from torch.optim import SGD n_symbols = 32 indices = np.random.randint(low=0, ...
29.777778
87
0.721642
1adaf9c321958b93f9be44e678f62efa9a4e7dd9
12,446
py
Python
demisto_sdk/commands/common/hook_validations/incident_field.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/incident_field.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
demisto_sdk/commands/common/hook_validations/incident_field.py
SepioSystems/demisto-sdk
f28007a637b7a38f4165bc522328ccbbd9b05628
[ "MIT" ]
null
null
null
""" This module is designed to validate the correctness of incident field entities in content. """ import re from distutils.version import LooseVersion from enum import Enum, IntEnum from demisto_sdk.commands.common.constants import Errors from demisto_sdk.commands.common.hook_validations.base_validator import \ B...
31.912821
117
0.57633
1adaf9d625a4e2039b473d176a7e441b5f5e5a61
184
py
Python
JDjango/frames/mainFrame/common.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
3
2020-12-28T05:09:02.000Z
2021-06-23T10:02:03.000Z
JDjango/frames/mainFrame/common.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
JDjango/frames/mainFrame/common.py
JIYANG-PLUS/JDjango
57cbb13b2b4c07f34d546c0c637c22f60c1e692a
[ "MIT" ]
null
null
null
from ..common import * """ 作用:共用库,主要功能键 """ cmd = CmdTools() # 命令行对象 classifies = ['global', 'apps', 'views', 'urls', 'templates', 'forms', 'models', 'database', 'admin'] # 所有的功能按钮
18.4
111
0.603261
1adb07244b6681670b4f184681d7a921800e3211
33,396
py
Python
src/align/detect_face.py
ZequnZ/face-verification
99154cd27d11604d1b4702579e8c401e7aa5fde4
[ "Apache-2.0" ]
null
null
null
src/align/detect_face.py
ZequnZ/face-verification
99154cd27d11604d1b4702579e8c401e7aa5fde4
[ "Apache-2.0" ]
6
2020-09-26T01:22:06.000Z
2022-02-10T02:15:00.000Z
src/align/detect_face.py
ZequnZ/face-verification
99154cd27d11604d1b4702579e8c401e7aa5fde4
[ "Apache-2.0" ]
null
null
null
""" Tensorflow implementation of the face detection / alignment algorithm found at https://github.com/kpzhang93/MTCNN_face_detection_alignment """ # MIT License # # Copyright (c) 2016 David Sandberg # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated docume...
36.779736
150
0.53728
1adbb0c84eff4a21f7e40bb91038436c4a59a4c3
4,487
py
Python
eva_submission/ingestion_templates.py
itsroops/eva-submission
16c0860e020013ce1d1c2b8a3688676460269f40
[ "Apache-2.0" ]
null
null
null
eva_submission/ingestion_templates.py
itsroops/eva-submission
16c0860e020013ce1d1c2b8a3688676460269f40
[ "Apache-2.0" ]
null
null
null
eva_submission/ingestion_templates.py
itsroops/eva-submission
16c0860e020013ce1d1c2b8a3688676460269f40
[ "Apache-2.0" ]
null
null
null
from ebi_eva_common_pyutils.config import cfg # Name of collections in variant warehouse annotation_metadata_collection_name = 'annotationMetadata_2_0' annotation_collection_name = 'annotations_2_0' def accession_props_template( instance_id, taxonomy_id, project_accession, postgres_u...
43.563107
105
0.685313
1adc1b48ae7b75abbd8cdd0f825c7aab58884dfb
6,073
py
Python
ui.py
Artemia76/discord-audio-pipe
2023e5c72c33fe8b0c63c7830c4b949cf6caa2dd
[ "MIT" ]
null
null
null
ui.py
Artemia76/discord-audio-pipe
2023e5c72c33fe8b0c63c7830c4b949cf6caa2dd
[ "MIT" ]
null
null
null
ui.py
Artemia76/discord-audio-pipe
2023e5c72c33fe8b0c63c7830c4b949cf6caa2dd
[ "MIT" ]
null
null
null
import sound import discord import asyncio import logging import tkinter as tk class UI(): def __init__(self, bot): self.root = tk.Tk() self.root.title('Bot') self.bot = bot self.voice = None self.stream = sound.PCMStream() self.cred ...
37.487654
108
0.531039
1adc1cc5c8dc421695ca7cf1841778ae26666418
441
py
Python
api/routers/tags.py
Amsterdam/fixxx-cspp-mini-crm-api
73af7cff8ca577bc13ce5f47713645b9edd6848a
[ "MIT" ]
1
2021-09-29T12:41:14.000Z
2021-09-29T12:41:14.000Z
api/routers/tags.py
Amsterdam/fixxx-cspp-mini-crm-api
73af7cff8ca577bc13ce5f47713645b9edd6848a
[ "MIT" ]
1
2020-09-23T14:03:28.000Z
2020-09-23T14:03:28.000Z
api/routers/tags.py
Amsterdam/fixxx-cspp-mini-crm-api
73af7cff8ca577bc13ce5f47713645b9edd6848a
[ "MIT" ]
1
2020-10-22T13:50:45.000Z
2020-10-22T13:50:45.000Z
from typing import List from fastapi import APIRouter, Depends, Request from sqlalchemy.orm import Session from api.models.response import TagResponse from api import tag router = APIRouter() # Dependency def get_db(request: Request): return request.state.db @router.get("/api/v1/tags", response_model=List[Tag...
24.5
95
0.78458
1adc1ef9f795679bd3aa7f8d27f85178d7e71523
18,982
py
Python
topic_coherence_model_selection.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
topic_coherence_model_selection.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
topic_coherence_model_selection.py
peterwilliams97/ToneRanger
61ab8b5a96bbf3f82b8e6a07e470831189afff8c
[ "MIT" ]
null
null
null
# coding: utf-8 """ Performing Model Selection Using Topic Coherence This notebook will perform topic modeling on the 20 Newsgroups corpus using LDA. We will perform model selection (over the number of topics) using topic coherence as our evaluation metric. This will showcase some of the features of th...
46.410758
106
0.747972
1adc2819feb01bfbdd6f60520d01afa4b48de8c2
1,244
py
Python
lib/Logging.py
nkrios/VMAttack
67dcce6087163d85bbe7780e3f6e6e9e72e2212a
[ "MIT" ]
724
2016-09-19T09:38:54.000Z
2022-02-20T14:01:56.000Z
lib/Logging.py
nkrios/VMAttack
67dcce6087163d85bbe7780e3f6e6e9e72e2212a
[ "MIT" ]
11
2016-10-21T02:05:42.000Z
2021-06-20T09:35:41.000Z
lib/Logging.py
nkrios/VMAttack
67dcce6087163d85bbe7780e3f6e6e9e72e2212a
[ "MIT" ]
173
2016-09-21T12:23:54.000Z
2022-02-28T09:28:47.000Z
# coding=utf-8 __author__ = 'Anatoli Kalysch' class LoggingEngine(object): logger = None # private class class __Logger(object): def __init__(self): self._log = open('VMAttack.log', 'a') def log(self, message): assert(isinstance(message, str)) message_l...
21.084746
59
0.557878
1adc2b9fcea570a689ec249559f36466b9367fe4
7,932
py
Python
dnacentersdk/api/v2_1_2/command_runner.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v2_1_2/command_runner.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
dnacentersdk/api/v2_1_2/command_runner.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNA Center Command Runner API wrapper. Copyright (c) 2019-2020 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, includi...
36.552995
78
0.593419
1adc3e80b748dd6fb31e99e8fce0fadf7260c92c
2,346
py
Python
nova/network/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/network/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/network/__init__.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # 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 ...
34.5
78
0.704604
1adc4eef869fcfdab2fb27fbad64e4e590cad7e9
4,615
py
Python
sispm/__init__.py
robho/pysispm
96dc694442c3936e6543305eba200bf21b57f446
[ "BSD-2-Clause" ]
null
null
null
sispm/__init__.py
robho/pysispm
96dc694442c3936e6543305eba200bf21b57f446
[ "BSD-2-Clause" ]
null
null
null
sispm/__init__.py
robho/pysispm
96dc694442c3936e6543305eba200bf21b57f446
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2016, Heinrich Schuchardt <xypron.glpk@gmx.de> # 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 abov...
29.394904
95
0.707476
1adca3ec2e0f581ab91e10cee2387de422747fa8
1,567
py
Python
apps/users/tests/test_views.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/users/tests/test_views.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/users/tests/test_views.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
import pytest from django.conf import settings from django.test import RequestFactory from apps.users.views import UserRedirectView, UserUpdateView from apps.users.tests.factories import UserFactory, SocialAccountFactory pytestmark = pytest.mark.django_db class TestUserView: """ TODO: extracting view ...
31.34
85
0.681557
1adca4cfad70ca3dd076f5081a0ebc72efcfab88
1,456
py
Python
app/recipe/serializers.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
1
2019-06-01T10:14:02.000Z
2019-06-01T10:14:02.000Z
app/recipe/serializers.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
null
null
null
app/recipe/serializers.py
konkrer/recipe-app-api
7ccfd8683b4fae8fe0ef410684dc84e8bb96989b
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Ingredient, Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class IngredientSerializer(serializers...
26
65
0.642857
1adcca2750b643d4dfb2244b3e36208355558d2a
3,514
py
Python
tools/azure-sdk-tools/packaging_tools/auto_codegen.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
tools/azure-sdk-tools/packaging_tools/auto_codegen.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
tools/azure-sdk-tools/packaging_tools/auto_codegen.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
import argparse import json import logging from pathlib import Path from subprocess import check_call from .swaggertosdk.SwaggerToSdkCore import CONFIG_FILE, CONFIG_FILE_DPG from .generate_sdk import generate from .generate_utils import get_package_names, init_new_service, update_servicemetadata _LOGGER = logging.get...
38.615385
118
0.669323
1adcd3f8c16b4d258fae12f1bf70c6a1b65da4a2
30,584
py
Python
star_forming_region_class.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:30.000Z
2022-02-05T19:43:30.000Z
star_forming_region_class.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
null
null
null
star_forming_region_class.py
rieder/ekster
0f9a6fc534a9c69d56f25b8860a105bae5cebbe9
[ "Apache-2.0" ]
1
2022-02-05T19:43:38.000Z
2022-02-05T19:43:38.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Faster module for star formation from sinks This module omits multiple stars for simplicity """ import logging import numpy from amuse.units import units # , constants, nbody_system from amuse.datamodel import Particle, Particles # from amuse.ic.plummer import new_p...
33.982222
83
0.622319
1adce01c4fa77dcf55d283a53ae1696ee5975aad
3,802
py
Python
TBD/instrument_module.py
bgorr/instrupy
e3dca871ce2dcd2ef279898fcc36bf9d18f0c243
[ "Apache-2.0" ]
1
2022-01-14T17:22:05.000Z
2022-01-14T17:22:05.000Z
TBD/instrument_module.py
bgorr/instrupy
e3dca871ce2dcd2ef279898fcc36bf9d18f0c243
[ "Apache-2.0" ]
4
2021-06-20T13:45:54.000Z
2022-02-05T05:55:43.000Z
TBD/instrument_module.py
bgorr/instrupy
e3dca871ce2dcd2ef279898fcc36bf9d18f0c243
[ "Apache-2.0" ]
1
2022-03-08T19:06:38.000Z
2022-03-08T19:06:38.000Z
import argparse import os import sys import csv import glob import json import instrupy import pandas from instrupy.public_library import Instrument def main(arch_dir): ##### Deprecated ##### poi_filepath = os.path.join(arch_dir, 'poi.csv') _AccessInfo_files = glob.glob(arch_dir+"/*_accessInfo.csv") ...
38.795918
90
0.632036
1add0057320749620f33562f7ef4ace02df278ab
1,120
py
Python
test/test_parser_eq.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
test/test_parser_eq.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
test/test_parser_eq.py
pombredanne/headerparser
a653272b44b3334b910d8d317a37f56bb6f9e50f
[ "MIT" ]
null
null
null
import pytest from headerparser import HeaderParser def test_eq_empty(): p1 = HeaderParser() p2 = HeaderParser() assert p1 == p2 @pytest.mark.parametrize("other", [None, False, True, 42, "", [], {}]) def test_neq_empty_other(other): p = HeaderParser() assert p != other assert other != p de...
20.363636
76
0.640179
1add10749d0a5556be1f6b0771afe336b100ee0d
4,306
py
Python
demo/xmlproc/xvcmd.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
demo/xmlproc/xvcmd.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
demo/xmlproc/xvcmd.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
#!/usr/bin/python """ A command-line interface to the validating xmlproc parser. Prints error messages and can output the parsed data in various formats. """ usage=\ """ Usage: xvcmd.py [options] [urlstodocs] ---Options: -c catalog: path to catalog file to use to resolve public identifiers -l language: I...
27.081761
79
0.640502
1add1708e2bec457e035dec6c5af17a36b0a0ad8
9,873
py
Python
lkh_solver/doc/conf.py
crigroup/lkh
6fb139e21c494c733b103156c6ffef2fbc70e898
[ "BSD-3-Clause" ]
4
2020-06-17T22:25:51.000Z
2022-01-27T17:20:21.000Z
lkh_solver/doc/conf.py
crigroup/lkh
6fb139e21c494c733b103156c6ffef2fbc70e898
[ "BSD-3-Clause" ]
null
null
null
lkh_solver/doc/conf.py
crigroup/lkh
6fb139e21c494c733b103156c6ffef2fbc70e898
[ "BSD-3-Clause" ]
1
2022-03-31T05:04:18.000Z
2022-03-31T05:04:18.000Z
# -*- coding: utf-8 -*- # # crinspect_openrave documentation build configuration file, created by # sphinx-quickstart on Tue Jul 11 17:16:19 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
32.370492
80
0.720247
1add297194a58b4c530575355aadd1e11391a9d2
63,419
py
Python
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview/operations/_deployments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview/operations/_deployments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2020_11_01_preview/operations/_deployments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
43.437671
236
0.666362
1add4b09ba542558e5d5939158f5fef3403dfe68
11,081
py
Python
performance/repex/trestles-variable-pilots-variable-replicas.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
performance/repex/trestles-variable-pilots-variable-replicas.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
performance/repex/trestles-variable-pilots-variable-replicas.py
chemlove/radical.ensemblemd
0ec4b127760d2fee88d4eae1768fecec4bdd6b21
[ "MIT" ]
null
null
null
import sys import time import numpy import os import datetime from textwrap import wrap from operator import add import matplotlib.pyplot as plt PWD = os.path.dirname(os.path.abspath(__file__)) #------------------------------------------------------------------------------- def gen_graph(): enmd_avg_md_prep...
35.977273
119
0.625756
1add61052fb6bc6670cec1ffc8e3341c50aa4651
1,520
py
Python
modl/datasets/recsys.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
135
2016-05-04T01:52:44.000Z
2022-03-01T18:38:13.000Z
modl/datasets/recsys.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
20
2016-06-03T12:53:27.000Z
2020-05-12T22:35:52.000Z
modl/datasets/recsys.py
johnbanq/modl
dcabb6b4793db57b858221a1c184741255b6396d
[ "BSD-2-Clause" ]
49
2016-05-09T02:48:04.000Z
2022-03-01T18:40:55.000Z
# Author: Mathieu Blondel, Arthur Mensch # From spira # License: BSD import os from sklearn.externals.joblib import load from modl.utils.recsys.cross_validation import train_test_split from modl.datasets import get_data_dirs def load_movielens(version): data_home = get_data_dirs()[0] if version == "100k": ...
28.679245
79
0.634868
1add6e033ff6aafb6048647d15d8853cc9c407f3
629
py
Python
lib/codegen/meta/isa/__init__.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
lib/codegen/meta/isa/__init__.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
lib/codegen/meta/isa/__init__.py
brson/cretonne
9384d3d7363246245b2ffd1a09938e4028f620a2
[ "Apache-2.0" ]
null
null
null
""" Cretonne target ISA definitions ------------------------------- The :py:mod:`isa` package contains sub-packages for each target instruction set architecture supported by Cretonne. """ from __future__ import absolute_import from cdsl.isa import TargetISA # noqa from . import riscv, x86, arm32, arm64 try: from...
25.16
79
0.674086
1add84ab54ec1db2e628d0b7229d0c5ce7e1f807
1,059
py
Python
taskmanager/tasklets/ReconfigureTasklet.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
3
2016-02-20T00:47:52.000Z
2018-07-27T22:57:36.000Z
taskmanager/tasklets/ReconfigureTasklet.py
IslandzVW/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
1
2016-07-29T07:19:01.000Z
2016-07-29T07:19:01.000Z
taskmanager/tasklets/ReconfigureTasklet.py
InWorldz/maestro
ae3965d61c79985adb03c72be2a744c70a677bf5
[ "Apache-2.0" ]
2
2018-04-09T18:15:18.000Z
2018-05-20T16:14:28.000Z
''' Created on Jan 15, 2014 @author: David Daeschler ''' import string from tasklets.TaskletBase import TaskletBase class ReconfigureTasklet(TaskletBase): ''' Tasklet for reconfiguring regions or services ''' def execute(self): # ReconfigureTasklet # { # "target"...
27.153846
69
0.565628
1addbbb3c72df2a84e6ad3a2533466c7f7db615e
1,292
py
Python
oscar/lib/python2.7/site-packages/dns/version.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/version.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/dns/version.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PRO...
36.914286
76
0.686533
1addc41ea232bf6a85475f14644d3a3d912ae5e6
254
py
Python
manage.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
2
2019-03-06T02:17:25.000Z
2019-10-03T17:43:26.000Z
manage.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
null
null
null
manage.py
patilnayan92/online
0f9a8d8da5aa84a408a9a8e5825a045f6c86f481
[ "Python-2.0" ]
4
2019-02-01T16:10:40.000Z
2020-08-30T02:44:39.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "online_test.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.090909
75
0.775591
1adde63e2f738dad80f69dd9a1549307742329b4
4,876
py
Python
heat/engine/resources/route_table.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
1
2020-08-15T14:29:15.000Z
2020-08-15T14:29:15.000Z
heat/engine/resources/route_table.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/route_table.py
CiscoSystems/heat
1b609f3c0621c44e4988a166a38f36c2b57eb4c6
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # 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 applicab...
32.945946
78
0.627974
1addedffd3f92fd2da53843df26929a63d552770
3,505
py
Python
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/resources/azure-mgmt-resource/azure/mgmt/resource/policy/v2018_05_01/_configuration.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# 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 ...
47.364865
125
0.693581
1addf23350445dbe9126c4059a9aae8309731bc7
10,652
py
Python
hivemind/server/expert_backend.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
hivemind/server/expert_backend.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
hivemind/server/expert_backend.py
ploshkin/hivemind
7bb656567417895e9f1d8684a0c0e9ef4e4de25d
[ "MIT" ]
null
null
null
from typing import Dict, Sequence, Any, Tuple, Union, Callable import torch from torch import nn from hivemind.server.task_pool import TaskPool from hivemind.utils import BatchTensorDescriptor, DUMMY_BATCH_SIZE from hivemind.utils.logging import get_logger from hivemind.utils.nested import nested_flatten, nested_pack...
50.245283
125
0.679403
1ade143d611e7ec27d9f2728d4bae675e772b8f9
215
py
Python
auth_server/docker/metacat/env.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
1
2022-03-18T19:01:29.000Z
2022-03-18T19:01:29.000Z
auth_server/docker/metacat/env.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
auth_server/docker/metacat/env.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
from webpie import WPApp import sys def env(request, relpath): out = [f"Python version: {sys.version}\n"] return out + [f"{k}:\t{v}\n" for k, v in request.environ.items()], "text/plain" application = WPApp(env)
23.888889
80
0.67907
1ade2057c9ebe864fe315cd97b985a223f124f23
1,184
py
Python
Arquivos em Python/CursoemVideo/Aula14estruturedrepeticaowhile.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
1
2022-02-05T21:07:38.000Z
2022-02-05T21:07:38.000Z
Arquivos em Python/CursoemVideo/Aula14estruturedrepeticaowhile.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
null
null
null
Arquivos em Python/CursoemVideo/Aula14estruturedrepeticaowhile.py
PereiraLegend/Anotacoes
223383adfffec1ebe9bed5e38ada0464ad6b1949
[ "MIT" ]
null
null
null
""" for c in range(1, 10): print(C) print("Fim") """ # O de cima e o de baixo são am mesma coisa """ c = 1 while c <10: print(c) c = c + 1 print("Fim") """ # Nesse exemplo de baixo eu tenho um número de vezes definido do que eu quero """ for c in range(1,3): n = int(input("Digite um valor: ")) print("Fi...
24.666667
100
0.608953
1ade472246b6bc9ba6b596593070e4b24d53cfad
2,901
py
Python
alipay/aop/api/domain/AlipayOpenMiniAmpeDevicedataCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayOpenMiniAmpeDevicedataCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayOpenMiniAmpeDevicedataCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenMiniAmpeDevicedataCreateModel(object): def __init__(self): self._device_data = None self._device_id = None self._product_id = None self._user_key = None ...
28.722772
73
0.588418
1ade6199f0d1fae19ba76b01b527a96c7fd53a25
4,668
py
Python
tests/test_activation_count.py
ericmintun/fvcore
c02cc2f653c15e4839df11ed17dbcae032661475
[ "Apache-2.0" ]
null
null
null
tests/test_activation_count.py
ericmintun/fvcore
c02cc2f653c15e4839df11ed17dbcae032661475
[ "Apache-2.0" ]
null
null
null
tests/test_activation_count.py
ericmintun/fvcore
c02cc2f653c15e4839df11ed17dbcae032661475
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # pyre-ignore-all-errors[2] import typing import unittest from collections import Counter, defaultdict from typing import Any, Dict, List, Tuple import torch import torch.nn as nn from fvcore.nn.activation_count import ActivationCountAnalysis, ac...
31.540541
87
0.594901
1ade9fedd0631fca5ab9310dadf9b3a883d92b4a
8,322
py
Python
code/generation-model/progressive_transformer/helpers.py
Merterm/-Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
5
2022-03-14T15:52:09.000Z
2022-03-30T11:42:47.000Z
code/generation-model/progressive_transformer/helpers.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
code/generation-model/progressive_transformer/helpers.py
Merterm/Modeling-Intensification-for-SLG
800fff3d3c7bacc86c1db8382f7c2e68d2f0c074
[ "MIT" ]
null
null
null
# coding: utf-8 """ Collection of helper functions """ import copy import glob import os import os.path import errno import shutil import random import logging from logging import Logger from typing import Callable, Optional, List import numpy as np import torch from torch import nn, Tensor from torch.utils.tensorboar...
31.052239
109
0.668709
1adea455f70eabaa41b83fd303619d26a0777514
122,804
py
Python
pyjac/core/array_creator.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
9
2018-10-08T07:49:20.000Z
2021-06-26T15:28:30.000Z
pyjac/core/array_creator.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
13
2018-09-01T14:17:51.000Z
2021-07-30T16:19:33.000Z
pyjac/core/array_creator.py
arghdos/spyJac
bdd6940c27681e3b19ee41efb31abd20a89d1be8
[ "MIT" ]
7
2018-09-08T11:57:34.000Z
2022-02-14T13:57:20.000Z
# -*- coding: utf-8 -*- """Contains various utility classes for creating loopy arrays and indexing / mapping """ import logging import six import copy from string import Template import loopy as lp import numpy as np from loopy.kernel.data import AddressSpace as scopes from pyjac.core.enum_types import JacobianForma...
40.961975
85
0.482794
1adebbaebe51cf73d19328f5d6f50ffd5f471606
1,348
py
Python
setup.py
lucilecoutouly/nenupy
8bfcab9558087f0696080d750293d9b8edc30665
[ "MIT" ]
null
null
null
setup.py
lucilecoutouly/nenupy
8bfcab9558087f0696080d750293d9b8edc30665
[ "MIT" ]
null
null
null
setup.py
lucilecoutouly/nenupy
8bfcab9558087f0696080d750293d9b8edc30665
[ "MIT" ]
null
null
null
#! /usr/bin/python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages import nenupy setup( name='nenupy', packages=find_packages(), include_package_data=True, install_requires=[ 'numpy', 'scipy', 'astropy', 'matplotlib', 'healpy', #==1.13.0 ...
22.098361
93
0.611276
1adec6733833ab88c054ad3caeb1ab9518e3c3a4
5,292
py
Python
src/admin/godmode/api.py
aimanow/sft
dce87ffe395ae4bd08b47f28e07594e1889da819
[ "Apache-2.0" ]
280
2016-07-19T09:59:02.000Z
2022-03-05T19:02:48.000Z
godmode/api.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
3
2016-07-20T05:36:49.000Z
2018-12-10T16:16:19.000Z
godmode/api.py
YAR-SEN/GodMode2
d8a79b45c6d8b94f3d2af3113428a87d148d20d0
[ "WTFPL" ]
20
2016-07-20T10:51:34.000Z
2022-01-12T23:15:22.000Z
# pylint: disable=redefined-builtin import hashlib import json import re from time import time from godmode.exceptions import BadParams class API: @staticmethod def useragent(request): return request.headers.get("User-Agent", "") @staticmethod def ipaddress(request): return request.h...
25.814634
110
0.553099
1aded7e1b461118d994f93197ecfd83430a77b75
7,927
py
Python
source/grammar.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
source/grammar.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
null
null
null
source/grammar.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
''' Defines search operators and can expand kernels Created Nov 2012 @authors: James Robert Lloyd (jrl44@cam.ac.uk) David Duvenaud (dkd23@cam.ac.uk) Roger Grosse (rgrosse@mit.edu) ''' # TODO # - reintroduce old kernel operators once kernels are implemented import itertools import numpy as np im...
41.941799
131
0.570077
1adeea98b3685e72fcc8f62c321ca2a8aeb232f4
1,513
py
Python
leetcode_python/Greedy/split-array-into-consecutive-subsequences.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
18
2019-08-01T07:45:02.000Z
2022-03-31T18:05:44.000Z
leetcode_python/Greedy/split-array-into-consecutive-subsequences.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
null
null
null
leetcode_python/Greedy/split-array-into-consecutive-subsequences.py
yennanliu/Python_basics
6a597442d39468295946cefbfb11d08f61424dc3
[ "Unlicense" ]
15
2019-12-29T08:46:20.000Z
2022-03-08T14:14:05.000Z
# V0 # V1 # https://blog.csdn.net/fuxuemingzhu/article/details/82185011 class Solution(object): def isPossible(self, nums): """ :type nums: List[int] :rtype: bool """ saved = collections.defaultdict(list) for num in nums: last = saved[num - 1] ...
28.54717
72
0.419035
1adef19404974d02938740ff6c5a69ffffa0c81a
11,333
py
Python
src/extensions/rolemanagement/converters.py
unified-moderation-network/salamander
98578aa1974a0d7778569ac9d822f13614d31269
[ "Apache-2.0" ]
10
2020-08-20T21:25:01.000Z
2021-06-30T05:28:24.000Z
src/extensions/rolemanagement/converters.py
mikeshardmind/salamander
f57ba6a8b2b2c9e2fb238df9595caf8ee51f18bf
[ "Apache-2.0" ]
61
2020-09-28T14:56:23.000Z
2022-02-19T20:04:59.000Z
src/extensions/rolemanagement/converters.py
mikeshardmind/salamander
f57ba6a8b2b2c9e2fb238df9595caf8ee51f18bf
[ "Apache-2.0" ]
2
2020-10-03T17:07:57.000Z
2020-11-02T02:06:11.000Z
# Copyright 2020-present Michael Hall # # 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...
36.795455
119
0.598429
1adef37df8fc324d36483b21aec8580448ac8499
1,399
py
Python
applications/dataprotect/models.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
applications/dataprotect/models.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
1
2022-03-12T00:57:37.000Z
2022-03-12T00:57:37.000Z
applications/dataprotect/models.py
dev-easyshares/mighty
a6cf473fb8cfbf5b92db68c7b068fc8ae2911b8b
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from django.template.defaultfilters import slugify from mighty.fields import JSONField from mighty.models.base import Base from mighty.applications.dataprotect import choices as _c class ServiceData(Base): name = models.CharField(max_length=255) cat...
31.795455
105
0.704789
1adf155dd009ea664ccfbc54b083e566c7de9196
605
py
Python
template/{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/datastream/gradient_datastream.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:39:24.000Z
2021-09-12T22:11:00.000Z
template/{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/datastream/gradient_datastream.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
4
2020-09-23T15:07:39.000Z
2020-10-30T10:26:24.000Z
template/{{cookiecutter.repository_name}}/{{cookiecutter.package_name}}/datastream/gradient_datastream.py
Aiwizo/ml-workflow
88e104fce571dd3b76914626a52f9001342c07cc
[ "Apache-2.0" ]
null
null
null
import numpy as np from datastream import Datastream from {{cookiecutter.package_name}}.datastream import ( evaluate_datastreams, augmenter ) from {{cookiecutter.package_name}}.problem import settings def GradientDatastream(): dataset = evaluate_datastreams()['gradient'].dataset augmenter_ = augment...
26.304348
59
0.659504
1adf24111e0c698b4a7ef8026a6cfed2103c1a1e
8,683
py
Python
nciauth_girder3/rest.py
knowledgevis/NCIAuth-girder3
cb4b7a71ae0aeec068dc3e1a5f321cd700c79ad5
[ "Apache-2.0" ]
null
null
null
nciauth_girder3/rest.py
knowledgevis/NCIAuth-girder3
cb4b7a71ae0aeec068dc3e1a5f321cd700c79ad5
[ "Apache-2.0" ]
null
null
null
nciauth_girder3/rest.py
knowledgevis/NCIAuth-girder3
cb4b7a71ae0aeec068dc3e1a5f321cd700c79ad5
[ "Apache-2.0" ]
null
null
null
from girder.api.rest import Resource,boundHandler from girder.api.describe import Description, autoDescribeRoute from girder.api import access import cherrypy from .DMSAuth import DMSAuthentication import re import requests import json from girder import events from girder.models.user import User from girder.models.se...
33.655039
164
0.658528
1adf443c768dab4fc8fe4e14e20a011a27c4631d
18,606
py
Python
ansible/plugins/inventory/mm_inventory.py
menandmice/ansible-module
519b0f87ee5a665609232087f82b0c124d48ba35
[ "MIT" ]
2
2021-10-05T16:40:57.000Z
2021-10-05T16:41:01.000Z
ansible/plugins/inventory/mm_inventory.py
menandmice/ansible-module
519b0f87ee5a665609232087f82b0c124d48ba35
[ "MIT" ]
2
2021-06-05T01:19:31.000Z
2021-10-05T16:19:08.000Z
ansible/plugins/inventory/mm_inventory.py
menandmice/ansible-module
519b0f87ee5a665609232087f82b0c124d48ba35
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2020, Men&Mice # GNU General Public License v3.0 # see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt # # https://docs.ansible.com/ansible/latest/dev_guide/developing_inventory.html # # python 3 headers, required if submitting to Ansible """Ansible inven...
37.063745
113
0.575083
1adfdbfa5988e7317cefaa3c3b60562d35b1f88d
4,538
py
Python
matlab/gpd2/train_lenet.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
23
2018-10-30T02:34:39.000Z
2022-01-13T09:58:00.000Z
matlab/gpd2/train_lenet.py
mgualti/DeepRLManip
6b982a319edae51d9c7c740c3a83fe8ce3a97ca7
[ "MIT" ]
2
2018-07-31T07:11:24.000Z
2019-05-30T13:06:30.000Z
simulation/matlab/gpd2/train_lenet.py
mgualti/PickAndPlace
15cdf2a6d5a255ecb78488ca75657af559d0c2da
[ "MIT" ]
5
2018-11-03T19:56:59.000Z
2020-03-02T08:28:31.000Z
# -*- coding: utf-8 -*- """ Created on Mon Sep 7 20:41:09 2015 @author: rplatt """ # python train_lenet.py bb_singleobj_bottles_orthnorm/softsoap_gold_clsLearning ./data/bb_category_bottles_orthnorm/lenet_iter_25000_015.caffemodel import numpy as np import matplotlib.pyplot as plt from pylab import * import sys # ...
31.734266
147
0.651388
1adfe660680c73eee790b0c015451dd23607155d
11,002
py
Python
NBA Project/venv/Lib/site-packages/plotly/graph_objs/funnel/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
1
2020-08-08T21:56:11.000Z
2020-08-08T21:56:11.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/funnel/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
2
2021-03-31T19:54:17.000Z
2021-06-02T02:33:56.000Z
NBA Project/venv/Lib/site-packages/plotly/graph_objs/funnel/hoverlabel/__init__.py
EnriqueGambra/Most-Efficient-NBA-Players
ea67c28b5294dbc9713200a937deb9f4211ba754
[ "MIT" ]
null
null
null
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000'...
34.38125
82
0.563988
1adffea9ab7ed994ee5c31c6ca5e7c562739b6b0
9,064
py
Python
client/commands.py
SuperSmay/Uno2
4cb9a000064a4ce117779c8de89be637d8e1d55d
[ "Apache-2.0" ]
1
2021-05-06T14:24:57.000Z
2021-05-06T14:24:57.000Z
client/commands.py
SuperSmay/Uno2
4cb9a000064a4ce117779c8de89be637d8e1d55d
[ "Apache-2.0" ]
1
2021-04-11T06:28:29.000Z
2021-04-18T02:24:36.000Z
client/commands.py
SuperSmay/Uno2
4cb9a000064a4ce117779c8de89be637d8e1d55d
[ "Apache-2.0" ]
null
null
null
import discord from storage.globalVariables import channelHasLobby, channelInGame, client, openGames, openLobbies, playerInGame, playerInLobby, playersInGame, playersInLobby from client.game import Game, GameLobby from client.messageClasses import HelpMessage ### Commands async def fooTest(ctx) -> None: #Foo comman...
60.426667
215
0.693733
1ae002f1d6da4e519602d5ee83e592effdd28908
3,815
py
Python
pluginsmanager/util/persistence_decoder.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
9
2017-05-24T09:55:34.000Z
2020-06-22T03:55:51.000Z
pluginsmanager/util/persistence_decoder.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
97
2016-11-17T16:30:35.000Z
2021-10-09T00:27:56.000Z
pluginsmanager/util/persistence_decoder.py
SpotlightKid/PluginsManager
2dcc9f6a79b48e9c9be82efffd855352fa15c5c7
[ "Apache-2.0" ]
3
2017-05-21T19:20:38.000Z
2019-11-04T23:53:59.000Z
# Copyright 2017 SrMouraSilva # # 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,...
32.058824
103
0.703014
1ae01589778439e99c83f2f7487b8ee845385289
18,128
py
Python
src/olympia/constants/activity.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-07-27T11:22:17.000Z
2020-07-27T11:22:17.000Z
src/olympia/constants/activity.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/constants/activity.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
null
null
null
# The absolute import feature is required so that we get the root celery # module rather than `amo.celery`. from __future__ import absolute_import from collections import namedtuple from inspect import isclass from django.utils.translation import ugettext_lazy as _ __all__ = ('LOG', 'LOG_BY_ID', 'LOG_KEEP',) clas...
23.300771
79
0.649272
1ae02af21008be8fd18fa0b90f453dd26231f55d
1,416
py
Python
tests/test_integration.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
25
2018-09-21T13:21:25.000Z
2021-12-30T06:00:57.000Z
tests/test_integration.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
48
2019-01-26T10:10:43.000Z
2021-07-27T02:23:19.000Z
tests/test_integration.py
nelfin/pylint-protobuf
dbdfaecfbf248ccc75f6cdef4b29e4fb6a21e70e
[ "MIT" ]
12
2018-09-27T09:19:58.000Z
2021-02-12T17:17:07.000Z
import os.path import pytest import pylint_protobuf try: import google.protobuf except ImportError: pytest.fail('behaviour of E1101 differs if protobuf is not installed') @pytest.fixture def person_pb2(proto_builder): return proto_builder(""" message Person { required string name = 1;...
26.222222
78
0.668079
1ae07624c1a03953fc52c3fdfec20d2b718bf85f
667
py
Python
src/devel/___remote_control/___special_keys.py
jakub-vesely/hugo
604e7824c39f6da43ede9064001292917c1ee4ae
[ "MIT" ]
null
null
null
src/devel/___remote_control/___special_keys.py
jakub-vesely/hugo
604e7824c39f6da43ede9064001292917c1ee4ae
[ "MIT" ]
null
null
null
src/devel/___remote_control/___special_keys.py
jakub-vesely/hugo
604e7824c39f6da43ede9064001292917c1ee4ae
[ "MIT" ]
null
null
null
# Copyright (c) 2022 Jakub Vesely # This software is published under MIT license. Full text of the license is available at https://opensource.org/licenses/MIT class SpecialKeys: left = "left" right = "right" up = "up" down = "down" space = "space" delete = "delete" backspace = "backspace" enter = "en...
22.233333
125
0.631184
1ae07774a191e202dff019438ded2ba303cc6daa
567
py
Python
apps/organizations/migrations/0003_non_unique_ico.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/organizations/migrations/0003_non_unique_ico.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
apps/organizations/migrations/0003_non_unique_ico.py
remocrevo/celus
682b13168eb475d7f970502113e756e40a899877
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-06-26 13:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organizations', '0002_nullable_internal_id'), ] operations = [ migrations.AlterField( model_name='organization', nam...
24.652174
88
0.606702
1ae07cce244e8596d44b8a2fde5b339742edac3b
74
py
Python
python/07_collections/5_wordorder.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/07_collections/5_wordorder.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
python/07_collections/5_wordorder.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
Solution to [Word Order](https://www.hackerrank.com/challenges/word-order)
74
74
0.797297
1ae08c335dba5f6a66705bc4667a0b3af7b01e17
4,277
py
Python
werobot/crypto/__init__.py
lilac/WeRobot
29fd70631b736a0c339f16f7729ea89f986c8bae
[ "MIT" ]
2
2018-06-03T16:32:07.000Z
2018-06-03T16:32:10.000Z
werobot/crypto/__init__.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
9
2020-06-05T19:51:33.000Z
2022-03-11T23:40:25.000Z
werobot/crypto/__init__.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals import base64 import socket import struct import time try: from cryptography.hazmat.primitives.ciphers import ( Cipher, algorithms, modes ) from cryptography.hazmat.backends import default_backend except ImportError: ...
29.496552
79
0.601122
1ae09d21d5f193a8c01dbf242372d493edac3ced
41,141
py
Python
alphagradient/_finance/_asset.py
nathanheidacker/AlphaGradient
cf031058f3e91381575e2df44cc029bcc7f4cc73
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
alphagradient/_finance/_asset.py
nathanheidacker/AlphaGradient
cf031058f3e91381575e2df44cc029bcc7f4cc73
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
alphagradient/_finance/_asset.py
nathanheidacker/AlphaGradient
cf031058f3e91381575e2df44cc029bcc7f4cc73
[ "MIT", "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """AG module containing base Asset class and associated enums This module contains all of the necessary components for the proper function of standard asset classes within AlphaGradient, as well as the API. Todo: * Complete google style docstrings for all module components * Complete f...
34.113599
155
0.590117
1ae0a5aade04778a16b0992ff71e00f8748b0cb6
5,660
py
Python
AED_clim_clim_conv_train.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
AED_clim_clim_conv_train.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
AED_clim_clim_conv_train.py
GunnarBehrens/CBRAIN-CAM
1b59b5b4731ada7c077c181b543339412d25e5c3
[ "MIT" ]
null
null
null
""" training of AE_clim_clim_conv network """ from tensorflow.keras.layers import Input, Dense from cbrain.layers import * from tensorflow.keras.models import Model from tensorflow.keras.losses import mse from tensorflow.keras.utils import plot_model from tensorflow.keras import backend as K from tensorflow.keras.callb...
27.342995
114
0.746996
1ae0e9c2a612e69efdba34b8201168ea699b2d4c
1,069
py
Python
analytics.py
Toofifty/Oracle2
aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d
[ "MIT" ]
1
2015-07-15T15:24:54.000Z
2015-07-15T15:24:54.000Z
analytics.py
Toofifty/Oracle2
aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d
[ "MIT" ]
null
null
null
analytics.py
Toofifty/Oracle2
aea7db04d1f470cf04cf6b9b291b1fd47e4b6b4d
[ "MIT" ]
null
null
null
# Created by Liang Sun <i@liangsun.org> in 2012 # This code is for Python 2.x import os, sys exts = ['.py'] count_empty_line = True here = os.path.abspath(os.path.dirname(sys.argv[0])) def read_line_count(fname): count = 0 for line in open(fname).readlines(): if count_empty_line or len(line.strip()) ...
30.542857
60
0.497661
1ae0f1e9f7781be84e71790146a90cf99a5e9831
13,382
py
Python
tensorflow/python/estimator/canned/parsing_utils.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/estimator/canned/parsing_utils.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/estimator/canned/parsing_utils.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2017 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.165017
92
0.700717
1ae10de318a3529dd1d4f6ce91060624d4ced030
42
py
Python
gobbli/model/use/__init__.py
awesome-archive/gobbli
71aacbdc1184871b164185dc0c9f615f07b83173
[ "Apache-2.0" ]
276
2019-09-13T08:25:51.000Z
2022-03-05T13:07:55.000Z
gobbli/model/use/__init__.py
awesome-archive/gobbli
71aacbdc1184871b164185dc0c9f615f07b83173
[ "Apache-2.0" ]
15
2019-09-06T14:05:30.000Z
2022-01-01T20:15:06.000Z
gobbli/model/use/__init__.py
awesome-archive/gobbli
71aacbdc1184871b164185dc0c9f615f07b83173
[ "Apache-2.0" ]
24
2019-09-18T15:11:42.000Z
2021-12-23T18:59:55.000Z
from .model import USE __all__ = ["USE"]
10.5
22
0.666667
1ae13f8a4cb55e88c901534bf3f82fcde8e13d4b
54,984
py
Python
oscar/run_re.py
Junction4Nako/mvp_pytorch
66db043d7beb1481c7a4c62908a4a46c7bfbc57a
[ "MIT" ]
20
2022-02-27T16:26:57.000Z
2022-03-23T07:09:47.000Z
oscar/run_re.py
Junction4Nako/mvp_pytorch
66db043d7beb1481c7a4c62908a4a46c7bfbc57a
[ "MIT" ]
4
2022-03-09T11:16:00.000Z
2022-03-28T13:03:26.000Z
oscar/run_re.py
Junction4Nako/mvp_pytorch
66db043d7beb1481c7a4c62908a4a46c7bfbc57a
[ "MIT" ]
6
2022-03-05T07:28:07.000Z
2022-03-24T09:38:10.000Z
# Copyright (c) 2020 Microsoft Corporation. Licensed under the MIT license. from __future__ import absolute_import, division, print_function import argparse import glob import logging import os import copy, time, json from shutil import ReadError import base64 import sys sys.path.insert(0, '.') import numpy as np i...
49.940054
188
0.62931
1ae164a828ce1c4bcd2654f754c35a6ad534d1cf
1,401
py
Python
app/recipe/serializers.py
MahmudulHassan5809/recipe-app-api-drf
10d841dbfbf9e38d9c238138501af592bea4f656
[ "MIT" ]
null
null
null
app/recipe/serializers.py
MahmudulHassan5809/recipe-app-api-drf
10d841dbfbf9e38d9c238138501af592bea4f656
[ "MIT" ]
null
null
null
app/recipe/serializers.py
MahmudulHassan5809/recipe-app-api-drf
10d841dbfbf9e38d9c238138501af592bea4f656
[ "MIT" ]
null
null
null
from rest_framework import serializers from recipe.models import Tag,Ingredient,Recipe class TagSerializer(serializers.ModelSerializer): """Serializer for tag object""" class Meta: model = Tag fields = ['id','name'] read_only_fields = ['id'] class IngredientSerializer(serializers.Mode...
28.591837
82
0.658101
1ae164b8ae2fe47c434f13502fba4c964d253839
13,446
py
Python
atom/proton/python/proton_api/models/purchase_calculator_amount_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2019-04-16T02:11:17.000Z
2021-12-16T22:51:40.000Z
atom/proton/python/proton_api/models/purchase_calculator_amount_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
81
2019-11-19T23:24:28.000Z
2022-03-28T11:35:47.000Z
atom/proton/python/proton_api/models/purchase_calculator_amount_request.py
AbhiGupta03/SDK
f3a61aae7a847f07f0c22a154ca88dc378e9d25e
[ "Apache-2.0" ]
11
2020-07-08T02:29:56.000Z
2022-03-28T10:05:33.000Z
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.9.2 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from proton_...
37.454039
271
0.666072
1ae17a49bbfc338ae5034139642b986c81902e77
1,490
py
Python
zs/tests/data/make-letters.py
njsmith/zs
42ca7679c2b986243abcff048bc42d49c204048c
[ "BSD-2-Clause" ]
35
2015-06-19T02:36:14.000Z
2021-09-22T21:19:59.000Z
zs/tests/data/make-letters.py
njsmith/zs
42ca7679c2b986243abcff048bc42d49c204048c
[ "BSD-2-Clause" ]
2
2016-03-07T00:52:41.000Z
2021-11-14T16:48:33.000Z
zs/tests/data/make-letters.py
njsmith/zs
42ca7679c2b986243abcff048bc42d49c204048c
[ "BSD-2-Clause" ]
4
2015-01-30T09:23:18.000Z
2019-02-05T18:03:08.000Z
#!/usr/bin/env python # This file is part of ZS # Copyright (C) 2013-2014 Nathaniel Smith <njs@pobox.com> # See file LICENSE.txt for license information. import os from six import BytesIO, int2byte, byte2int import binascii from zs import ZSWriter letters_records = [] for i in xrange(1, 26, 2): letter = int2by...
31.702128
78
0.550336
1ae18b05dfac19b303c5c8a00ae42e7728e686c7
28,846
py
Python
tests/drop_packets/drop_packets.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/drop_packets/drop_packets.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
tests/drop_packets/drop_packets.py
vincent201881/sonic-mgmt
4f02bb5f91600ae5180ace1620a718caf02c63a1
[ "Apache-2.0" ]
null
null
null
import pytest import ptf.testutils as testutils import ptf.mask as mask import ptf.packet as packet import logging import netaddr import importlib RX_DRP = "RX_DRP" RX_ERR = "RX_ERR" L2_COL_KEY = RX_DRP L3_COL_KEY = RX_ERR pytest.SKIP_COUNTERS_FOR_MLNX = False MELLANOX_MAC_UPDATE_SCRIPT = os.path.join(os.path.dirname...
41.267525
145
0.667649
1ae1bafad2c4316d29529a8ecfc3bf8a3c17288b
2,841
py
Python
cuenca/http/client.py
paolodamico/cuenca-python
0a29aa1a4acfd5325d375ca0afd69ea526a34699
[ "MIT" ]
null
null
null
cuenca/http/client.py
paolodamico/cuenca-python
0a29aa1a4acfd5325d375ca0afd69ea526a34699
[ "MIT" ]
null
null
null
cuenca/http/client.py
paolodamico/cuenca-python
0a29aa1a4acfd5325d375ca0afd69ea526a34699
[ "MIT" ]
null
null
null
import os from typing import Optional, Tuple from urllib.parse import urljoin import requests from cuenca_validations.typing import ( ClientRequestParams, DictStrAny, OptionalDict, ) from requests import Response from ..exc import CuencaResponseException from ..version import API_VERSION, CLIENT_VERSION ...
29.28866
77
0.613516
1ae1eb6122beb0ee5cd87075562c5249a835c532
36,977
py
Python
gslib/tests/test_copy_helper_funcs.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
649
2015-01-08T01:50:15.000Z
2022-03-31T08:33:38.000Z
gslib/tests/test_copy_helper_funcs.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
798
2015-01-02T07:46:09.000Z
2022-03-31T20:37:19.000Z
gslib/tests/test_copy_helper_funcs.py
stanhu/gsutil
e8403ed5e07caed3027455c7b883fef733612360
[ "Apache-2.0" ]
315
2015-01-02T10:26:53.000Z
2022-03-27T02:18:58.000Z
# -*- coding: utf-8 -*- # Copyright 2013 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 require...
47.224777
87
0.726316
1ae2060905e07cccc8c4a10989b7965dee096385
443
py
Python
sitemap.py
StudioDivier/seo-urls
ea1dc0b687d7bce4dcc76401883c2a0abcd569ad
[ "Apache-2.0" ]
null
null
null
sitemap.py
StudioDivier/seo-urls
ea1dc0b687d7bce4dcc76401883c2a0abcd569ad
[ "Apache-2.0" ]
null
null
null
sitemap.py
StudioDivier/seo-urls
ea1dc0b687d7bce4dcc76401883c2a0abcd569ad
[ "Apache-2.0" ]
null
null
null
import sys import logging from pysitemap import crawler if __name__ == '__main__': if '--iocp' in sys.argv: from asyncio import events, windows_events sys.argv.remove('--iocp') logging.info('using iocp') el = windows_events.ProactorEventLoop() events.set_event_loop(el) ...
27.6875
56
0.663657
1ae22cced65dd84ab0c0041db05ae5463f425ea1
5,946
py
Python
trax/rl/trajectory/replay_buffer_test.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
1
2020-05-30T15:19:39.000Z
2020-05-30T15:19:39.000Z
trax/rl/trajectory/replay_buffer_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/rl/trajectory/replay_buffer_test.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 a...
33.59322
80
0.659771
1ae23a728ec7de153f335f94554b3dc23fa00b29
7,269
py
Python
revrand/utils/datasets.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
62
2015-11-06T00:45:21.000Z
2022-03-21T08:08:29.000Z
revrand/utils/datasets.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
112
2015-11-05T06:47:16.000Z
2021-06-28T20:07:26.000Z
revrand/utils/datasets.py
basaks/revrand
4c1881b6c1772d2b988518e49dde954f165acfb6
[ "Apache-2.0" ]
16
2016-04-10T08:54:07.000Z
2021-04-27T11:43:53.000Z
""" Dataset loading utilities Portions of this module derived from http://scikit-learn.org/stable/modules/classes.html#module-sklearn.datasets """ import numpy as np import requests import tarfile import os from six.moves import urllib from scipy.io import loadmat from scipy.spatial.distance import cdist from unipat...
29.310484
78
0.632687
1ae250f746dc122a031b44d24b541d686466c57a
13,385
py
Python
google/cloud/compute_v1/services/license_codes/transports/rest.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/license_codes/transports/rest.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
google/cloud/compute_v1/services/license_codes/transports/rest.py
LaudateCorpus1/python-compute
a36c637f153c7b4ef49bb6a78c8b09f3746e7af1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
38.684971
110
0.614867
1ae27fec88569e891ffbf5e02313e34f137241c0
11,272
py
Python
tests/plugins/test_sharded_plugin.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
tests/plugins/test_sharded_plugin.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
tests/plugins/test_sharded_plugin.py
lemairecarl/pytorch-lightning
85304d4672a9ed24a16f7f5b2abaa34148ab86f4
[ "Apache-2.0" ]
null
null
null
import os from unittest import mock from unittest.mock import Mock import pytest import torch from pytorch_lightning import LightningModule, Trainer from pytorch_lightning.plugins import DDPShardedStrategy, DDPSpawnShardedStrategy from pytorch_lightning.trainer.states import TrainerFn from pytorch_lightning.utilities...
39.550877
120
0.750976
1ae2ac9be99c73ff014a5e88315e41599817a55f
420
py
Python
src/10-async-web/cityscape_api/views/home.py
johnnymetz/async-techniques-python-course
ac3a56c0e480d21bda3f60bac9351102b6d36744
[ "MIT" ]
null
null
null
src/10-async-web/cityscape_api/views/home.py
johnnymetz/async-techniques-python-course
ac3a56c0e480d21bda3f60bac9351102b6d36744
[ "MIT" ]
null
null
null
src/10-async-web/cityscape_api/views/home.py
johnnymetz/async-techniques-python-course
ac3a56c0e480d21bda3f60bac9351102b6d36744
[ "MIT" ]
null
null
null
import flask blueprint = flask.blueprints.Blueprint(__name__, __name__) @blueprint.route("/") def index(): return ( "Welcome to the city_scape API. " "Use /api/sun/[zipcode]/[country code (e.g. us)] and" "/api/weather/[zipcode]/[country code (e.g. us)] for API calls." ) @blueprint.e...
23.333333
72
0.65
1ae2b92b9e2d62565aa67ed83afdb21986194a38
8,597
py
Python
classification/utility_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
7
2018-10-14T14:55:10.000Z
2021-01-04T13:42:09.000Z
classification/utility_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
classification/utility_test.py
rechardchen123/Classification-and-regression-of-vessel-AIS-data
e9d8c7a807cb6e49577739b53832e53becb3251c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. and Skytruth 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 agr...
39.077273
79
0.549959