blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
721
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
5
91
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
321 values
visit_date
timestamp[ns]date
2016-08-12 09:31:09
2023-09-06 10:45:07
revision_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
committer_date
timestamp[ns]date
2010-09-28 14:01:40
2023-09-06 06:22:19
github_id
int64
426
681M
star_events_count
int64
101
243k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[ns]date
2012-06-28 18:51:49
2023-09-14 21:59:16
gha_created_at
timestamp[ns]date
2008-02-11 22:55:26
2023-08-10 11:14:58
gha_language
stringclasses
147 values
src_encoding
stringclasses
26 values
language
stringclasses
2 values
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10.2M
extension
stringclasses
115 values
filename
stringlengths
3
113
content
stringlengths
6
10.2M
6b29a6a632181398beb0975f108629114b5a55be
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayInsCooperationProductQrcodeApplyResponse.py
990bce50e10a201d145d644966ef44c95a441668
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
745
py
AlipayInsCooperationProductQrcodeApplyResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayInsCooperationProductQrcodeApplyResponse(AlipayResponse): def __init__(self): super(AlipayInsCooperationProductQrcodeApplyResponse, self).__init__() self._code_...
4ec7f9c5c8f518d78b5fddceeb1474865d564b8b
748626778e870ce6cdfd0c1f3b46d7f8a096b5a8
/bindings/python/htcondor/dags/utils.py
dd6676fc7bd98b175784d68b4aee0c533a89826b
[ "Apache-2.0" ]
permissive
htcondor/htcondor
1c8bab33379299f64e5274a7d525f3c64c64c47f
3b67625b2f4d97bcc28f534340a6fd7ac518dc75
refs/heads/main
2023-08-31T03:17:53.070364
2023-08-31T00:18:04
2023-08-31T00:18:04
5,808,515
249
165
Apache-2.0
2023-09-14T18:44:26
2012-09-14T11:35:15
C++
UTF-8
Python
false
false
4,586
py
utils.py
# Copyright 2020 HTCondor Team, Computer Sciences Department, # University of Wisconsin-Madison, WI. # # 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/LICE...
3888d6fdefb842f5e76a83e19c6004348116072a
cbdf0e2067ce307f3bda4bf83133d72b7b89bf9e
/vuetifyforms/views.py
80fd379def3240022453834b96f4d4a452d3661a
[ "Apache-2.0" ]
permissive
repleo/bounca
24211f670a6d5e8b15b38302e693d8ac743b4227
62824332bc6199e76afe0e608365bb0cc390cba5
refs/heads/master
2023-08-03T06:32:50.232865
2023-04-20T20:12:44
2023-04-20T20:12:44
57,218,599
163
25
Apache-2.0
2023-08-02T01:30:59
2016-04-27T14:10:27
Python
UTF-8
Python
false
false
983
py
views.py
from rest_framework import exceptions from rest_framework.views import exception_handler as drf_exception_handler def _flatten_vue_validation(val, key_prefix=""): if isinstance(val, list): return [_flatten_vue_validation(x) for x in val] elif isinstance(val, dict): res = {} for k in va...
23475f35642927b3f81878ab11c614f43ef5abdc
2b5ffa18e7198e45fa77674b96dac8d91159fed7
/djangae/__init__.py
19f8e3020dce88da1bfac49a753fd15a4c6bed95
[ "BSD-3-Clause" ]
permissive
potatolondon/djangae
73681d0c8302ac216f74bc00b980de368e8d4280
bef308632790bb6f87e71bb91183f57bad6bd149
refs/heads/master
2023-09-01T15:27:51.995232
2023-08-30T14:40:48
2023-08-30T14:40:48
10,217,788
474
155
BSD-3-Clause
2023-02-08T01:05:31
2013-05-22T10:55:55
Python
UTF-8
Python
false
false
308
py
__init__.py
import os import sys extra_library_path = os.path.join(os.path.abspath(os.path.dirname(__file__)), "lib") if extra_library_path not in sys.path: sys.path.insert(1, extra_library_path) default_app_config = 'djangae.apps.DjangaeConfig' __title__ = 'Djangae' __version__ = '2.0.0' VERSION = __version__
ff18d525fa3133988a128e7c5638339ccbf74eae
57767ccd77d484ea60001f28d90270d1e34ac974
/glance/tests/unit/v2/test_image_members_resource.py
7287a3b5d27bc294cac11da0720dc73751ab846b
[ "Apache-2.0" ]
permissive
openstack/glance
ff459174fb502ac9b5030ab2d1aafc2fa5e40475
11af8f0ed5fcd53ab3865a40ae50e467a0c06e6c
refs/heads/master
2023-09-04T06:55:03.257371
2023-09-02T03:13:30
2023-09-02T03:13:30
2,155,157
389
498
Apache-2.0
2020-12-15T05:36:34
2011-08-04T15:05:19
Python
UTF-8
Python
false
false
24,562
py
test_image_members_resource.py
# Copyright 2013 OpenStack Foundation # 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 requ...
633629567136c20aaf02fbfdfe1c4378c64b13b7
17e7ce051b02669eba49d775775c16581f66f1d5
/server/libs/webserver/blueprints/effect_settings_api.py
8bc1efde26500c6bf8f69e5ddd8a8cde549521be
[ "MIT" ]
permissive
TobKra96/music_led_strip_control
576d27fa592c8df7e1fee5fdf0c6a8136280b422
ff1b9fc41fa68e2dd70ae1a1db90b8cc13e927ca
refs/heads/master
2023-08-30T12:56:55.012671
2022-07-06T23:54:19
2022-07-06T23:54:19
203,447,717
281
73
MIT
2023-08-27T05:45:49
2019-08-20T20:14:26
CSS
UTF-8
Python
false
false
4,748
py
effect_settings_api.py
from libs.webserver.executer import Executer from flask import Blueprint, request, jsonify from flask_login import login_required import copy effect_settings_api = Blueprint('effect_settings_api', __name__) @effect_settings_api.get('/api/settings/effect') @login_required def get_effect_settings(): # pylint: disabl...
e0cf079dd00c62df2f7c97b35dea7c3090e03eb2
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/dagster/dagster_tests/execution_tests/engine_tests/test_step_delegating_executor.py
cfcd73fa78dbff094647900876d1bf2e90d12ce2
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
14,879
py
test_step_delegating_executor.py
import subprocess import time import pytest from dagster import ( AssetKey, AssetsDefinition, DagsterInstance, asset, define_asset_job, executor, job, op, reconstructable, repository, ) from dagster._config import Permissive from dagster._core.definitions.cacheable_assets import...
cf6090aed71620b858a38b42c910d79988769a41
65a8d003d92482c79beeda53bab8b4342135041b
/tests/python/sealapi/utils.py
9f09a13335db3274dd3366ce065f57b5c188c05f
[ "Apache-2.0" ]
permissive
OpenMined/TenSEAL
4cc80bf6677e92969bfc13f3cb4c025235b58335
13486592953f82ca60502fd196016f815891e25a
refs/heads/main
2023-05-11T11:42:07.251927
2023-01-08T20:47:04
2023-01-08T20:47:04
236,181,743
656
150
Apache-2.0
2023-04-28T05:02:12
2020-01-25T14:36:55
C++
UTF-8
Python
false
false
3,011
py
utils.py
import os import time import tenseal.sealapi as sealapi from pathlib import Path def helper_params_bfv(poly_modulus_degree=4096, plain_modulus=1032193): parms = sealapi.EncryptionParameters(sealapi.SCHEME_TYPE.BFV) parms.set_poly_modulus_degree(poly_modulus_degree) parms.set_plain_modulus(plain_modulus) ...
ad4637fbcc79dc989951f5ad8c06cbdd345f11b7
fc89bb82dbb31cd876247e3decb9315cdf491d3e
/demos/chat/aiohttpdemo_chat/main.py
794ca834bca8dff8357048033ecb3a599ebf73ff
[ "Apache-2.0" ]
permissive
aio-libs/aiohttp-demos
3c341f532fa41d17a804764c8c150a300cb4fd52
ea628d0307834645eb6eda032812fbfdcab9e1cc
refs/heads/master
2023-08-31T06:39:23.152144
2023-08-30T10:08:15
2023-08-30T10:08:15
108,527,536
728
313
NOASSERTION
2023-09-14T09:44:34
2017-10-27T09:35:41
Makefile
UTF-8
Python
false
false
848
py
main.py
import logging import jinja2 import aiohttp_jinja2 from aiohttp import web from aiohttpdemo_chat.views import index async def init_app(): app = web.Application() app['websockets'] = {} app.on_shutdown.append(shutdown) aiohttp_jinja2.setup( app, loader=jinja2.PackageLoader('aiohttpdemo_ch...
d27f618d7a9cbb62352c163485373f2d7274e46e
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/api_tests/providers/preprints/views/test_preprint_provider_list.py
4a66bb0526f2cbbb7f226174dce8e96894c8b210
[ "LicenseRef-scancode-unknown", "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-C...
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
3,037
py
test_preprint_provider_list.py
import mock import pytest from waffle.testutils import override_switch from osf import features from api.base.settings.defaults import API_BASE from osf_tests.factories import ( AuthUserFactory, PreprintProviderFactory, ) @pytest.fixture(params=['/{}preprint_providers/?version=2.2&', '/{}providers/preprints/?...
fa615fba83d145bd218560d88267169161f5526f
fae16a539b7c1b0525aab40ddaeee3e451fc9b74
/tests/unit/server/daos/test_datasets.py
4565f17dd85fc464c4ae7cef9148576a5d53cae5
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
argilla-io/argilla
a6b45f7f64e9db82f6d9a61771d758ffbb3dab4a
7c1b2368b444b7b7a281d37ad51bcb2d8e92acf5
refs/heads/develop
2023-09-04T03:58:05.914619
2023-09-01T15:58:31
2023-09-01T15:58:31
362,500,938
1,085
122
Apache-2.0
2023-09-14T15:31:07
2021-04-28T14:37:42
Python
UTF-8
Python
false
false
3,078
py
test_datasets.py
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. 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 ...
e579436161d284a56f765fd7a26c5641efb99313
bee4b8a10d36f6b9a2b9ec860129b4754449330c
/armory/scenarios/audio_asr.py
3df11727b12b68fc4b75bdc58deb3aabfd963386
[ "MIT" ]
permissive
twosixlabs/armory
abe314ceacfd081b0bf269074d44cdc59748cd8e
3efd21652cfdc8cd192681e9daf58a4b08e82db4
refs/heads/master
2023-07-19T17:31:30.729681
2023-07-03T15:30:23
2023-07-03T15:30:23
222,796,322
153
79
MIT
2023-09-05T17:17:03
2019-11-19T21:48:44
Python
UTF-8
Python
false
false
4,374
py
audio_asr.py
""" Automatic speech recognition scenario """ from art.preprocessing.audio import LFilter, LFilterPyTorch import numpy as np from armory.instrument.export import AudioExporter from armory.logs import log from armory.scenarios.scenario import Scenario def load_audio_channel(delay, attenuation, pytorch=True): """...
d5174ea87b0422d449d9739b52d62ece10801936
635a81339db4dc4ce21e72f2d77faa92461404d9
/test/trace_processor/diff_tests/memory/android_mem_delta.py
f78597b865e39f2323490a4bfc22f765eaba08c6
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google/perfetto
b3fee34767174ca8c9e8e501eeec6f73fb3e0cda
4201d29ef8ce94a064dfbba6d9c9518b297dbc3f
refs/heads/master
2023-09-04T07:16:27.954459
2023-09-03T01:33:19
2023-09-03T01:33:19
227,091,502
1,920
274
Apache-2.0
2023-09-13T18:18:23
2019-12-10T10:32:44
C++
UTF-8
Python
false
false
1,180
py
android_mem_delta.py
#!/usr/bin/env python3 # Copyright (C) 2022 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
e59076e91eb3f9b65c5796ee4d3522b09f33f66c
f2d4c0eac2b12a64c499b533f3fe0883262f6293
/tests/test_solid_color.py
8d73ee930ec2c46a303bc264ec6ff736d7a7f215
[ "MIT" ]
permissive
mozman/svgwrite
716ef150734b42f42474fdaecc11eb646ac29bab
cd10a7ed1982de77ba85ff4556e154187d7f14bc
refs/heads/master
2022-08-10T03:19:14.453560
2022-07-14T13:59:39
2022-07-14T13:59:39
79,704,670
512
109
NOASSERTION
2022-07-14T13:34:27
2017-01-22T08:29:23
Python
UTF-8
Python
false
false
1,082
py
test_solid_color.py
#!/usr/bin/env python #coding:utf-8 # Author: mozman --<mozman@gmx.at> # Purpose: test solidcolor module # Created: 26.10.2016 # Copyright (C) 2016, Manfred Moitzi # License: MIT License import unittest from svgwrite.solidcolor import SolidColor class TestPattern(unittest.TestCase): def test_constructor(self):...
8cd3e18309a669375d22de1a9adde538faa73449
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/PaDiM/src/dataset.py
abf511e5cd3f2be8fa76c076402594b7a6034eb1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
5,661
py
dataset.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
b0ec6562a39d0b5adef408ffe230498fefc3f458
6647c484a6601f70dd348076c484843807238ddf
/tests/mlworkbench_magic/archive_tests.py
1179df8005b7524ff03e7f0632105fe93373a0eb
[ "Apache-2.0" ]
permissive
googledatalab/pydatalab
43624c271e25edfd97ac0ecf39ec4f55e9ad27b2
8bf007da3e43096aa3a3dca158fc56b286ba6f5c
refs/heads/master
2022-09-13T10:23:59.112507
2022-09-02T21:16:23
2022-09-02T21:16:23
58,776,721
200
91
Apache-2.0
2023-03-28T20:55:15
2016-05-13T22:42:57
Python
UTF-8
Python
false
false
3,015
py
archive_tests.py
# Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
b67388d1c78aabb48ff5c10e627420ff5fc70f6c
f767e709ea95e9f5a995118dfde5a70590a19abe
/clearml/utilities/config.py
5bb741a3b96980fee437cd8e53a20bda743e24ea
[ "Apache-2.0" ]
permissive
allegroai/clearml
f0d0439f933539d8bbc6b7229bceec385dcd35d7
095997492008f332a063ccc0086b4aac000c6218
refs/heads/master
2023-08-28T21:09:30.097330
2023-08-24T10:55:05
2023-08-24T10:55:05
191,126,383
2,777
438
Apache-2.0
2023-09-09T19:17:51
2019-06-10T08:18:32
Python
UTF-8
Python
false
false
3,897
py
config.py
from __future__ import division import json import six import pyparsing from .dicts import hocon_quote_key, hocon_unquote_key from .pyhocon import ConfigFactory, HOCONConverter from ..storage.util import parse_size def parse_human_size(value): if isinstance(value, six.string_types): return parse_size(v...
e0edfd313329f51314d496d9aeb8fd29d4290734
e76a79816ff5203be2c4061e263a09d31072c940
/test/com/facebook/buck/testrunner/check-allowed-entries-in-archive.py
77aa3fde4acf85d7575e7f1e3c9f9668db75ba4b
[ "Apache-2.0" ]
permissive
facebook/buck
ef3a833334499b1b44c586e9bc5e2eec8d930e09
9c7c421e49f4d92d67321f18c6d1cd90974c77c4
refs/heads/main
2023-08-25T19:30:28.803205
2023-04-19T11:32:59
2023-04-19T11:32:59
9,504,214
8,481
1,338
Apache-2.0
2023-05-04T22:13:59
2013-04-17T18:12:18
Java
UTF-8
Python
false
false
4,393
py
check-allowed-entries-in-archive.py
#!/usr/bin/env python # Copyright (c) Facebook, Inc. and its affiliates. # # 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...
dcce1661155abb49321c3f9e1326525614b71108
c2bcf42e04a1e2146b41b250ff14e62fddcdf589
/benchmarks/post_graph.py
2d3276e72926609abe58ecd87661e5943da2d09e
[ "Apache-2.0" ]
permissive
onnx/sklearn-onnx
0f958e1c090572fbe11e15f95bec975d1780cf8d
895c3a76a315c7a6567a1a07a96dc658994ec16a
refs/heads/main
2023-08-18T18:49:25.164433
2023-08-17T09:52:31
2023-08-17T09:52:31
162,340,939
455
92
Apache-2.0
2023-08-31T16:04:13
2018-12-18T20:18:48
Python
UTF-8
Python
false
false
5,342
py
post_graph.py
# SPDX-License-Identifier: Apache-2.0 import os import numpy from pandas import read_csv import matplotlib.pyplot as plt HERE = os.path.abspath(os.path.dirname(__file__)) def autolabel(ax, rects): for rect in rects: height = rect.get_height() ax.annotate( "%1.1fx" % height, ...
ce0dbb8415a971d48b906e824f07fc146f438deb
09e4ef23c31fbb248339c39ceec5226a97ca3103
/benchexec/tools/cpachecker.py
0e54d3980dbd1d0f20ab3e1d70f59497063d7cb3
[ "Apache-2.0" ]
permissive
sosy-lab/benchexec
a51676f9e501743444c96a32ec2e91ae4f3ac889
2c56e08d5f0f44b3073f9c82a6c5f166a12b45e7
refs/heads/main
2023-09-01T22:45:59.070016
2023-08-23T05:36:58
2023-08-24T09:38:40
30,758,422
176
190
Apache-2.0
2023-06-30T08:39:22
2015-02-13T13:55:15
Python
UTF-8
Python
false
false
9,289
py
cpachecker.py
# This file is part of BenchExec, a framework for reliable benchmarking: # https://github.com/sosy-lab/benchexec # # SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> # # SPDX-License-Identifier: Apache-2.0 import logging import sys import os import re import benchexec.result as result import be...
5a69cff2beb78b0cc24f8a666c3da376a9c1b082
535c36cc67805d43e3190145ddc8abde02541a5e
/ftl/common/cache_runner.py
bc0d8e8f92c91659f315d25b73190c36f8d926ce
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/runtimes-common
44aff5ca13ecfdaca0393684a5f13d084db7c325
2bd3b84b554022ba94bb5b3e15a3ccc18eb24c52
refs/heads/master
2023-08-28T05:41:27.529266
2022-10-26T19:03:54
2022-10-26T19:03:54
67,721,213
102
78
Apache-2.0
2023-08-16T19:45:39
2016-09-08T16:33:38
Python
UTF-8
Python
false
false
8,017
py
cache_runner.py
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
d5dbd6f7481257a8c6130e72e99e2d343369c0a6
25e5ad49324d7aaf484cfb69437398a7c874d59d
/test/modules/test_distribution_output.py
00605d9c890b390686f4c285b247e3b141b40459
[ "MIT", "Apache-2.0" ]
permissive
zalandoresearch/pytorch-ts
7d61a2e593803d126ed5298f17d0d88647f6369e
81be06bcc128729ad8901fcf1c722834f176ac34
refs/heads/master
2023-08-07T01:40:32.604689
2022-08-02T13:32:58
2022-08-02T13:32:58
247,768,523
1,074
178
MIT
2023-03-18T10:31:50
2020-03-16T16:47:08
Python
UTF-8
Python
false
false
9,481
py
test_distribution_output.py
from typing import List, Tuple import numpy as np import pytest import torch import torch.nn as nn from torch.distributions import ( StudentT, Beta, NegativeBinomial, LowRankMultivariateNormal, MultivariateNormal, Independent, Normal, ) from torch.nn.utils import clip_grad_norm_ from torch....
6f62ab31786b5ab876d1d69a021df8dba27974e4
55a6699aa4d9bf5d63af1168756370684312e029
/networks.py
72d6bc5bf0ba9b3b6ffa2877c7b39d312cfa4383
[ "MIT" ]
permissive
leeesangwon/PyTorch-Image-Retrieval
f33752a21426b77be0ed765ea291d6363ff4d0c9
b473b9fb7ab0e90838fecca03d8b4f58ede13049
refs/heads/public
2020-04-24T18:30:50.868025
2020-01-14T16:49:19
2020-01-14T16:49:19
172,181,997
288
56
MIT
2020-07-17T03:51:23
2019-02-23T06:50:36
Python
UTF-8
Python
false
false
6,080
py
networks.py
""" SE-ResNet, SE_ResNeXt codes are gently borrowed from https://github.com/Cadene/pretrained-models.pytorch/blob/master/pretrainedmodels/models/senet.py """ import torch import torch.nn as nn import torch.nn.functional as F from torchvision import models from senet import se_resnext101_32x4d class BaseNetwork(nn.Mo...
5f1c1fda2205a0020612372faaf2c93ed36e17ec
40dd8330e5f78c4348bbddc2c5acfd59d793dd51
/projects/medical/2d_image/fundus_photography/orvs/datasets/orvs_dataset.py
e915ae4cd2bd9a08816542eda96d229da602ea97
[ "Apache-2.0" ]
permissive
open-mmlab/mmsegmentation
0d12092312e2c465ede1fd7dd9847b6f2b37049c
30a3f94f3e2916e27fa38c67cc3b8c69c1893fe8
refs/heads/main
2023-09-04T10:54:52.299711
2023-07-24T07:28:21
2023-07-24T07:28:21
272,133,018
6,534
2,375
Apache-2.0
2023-09-14T01:22:32
2020-06-14T04:32:33
Python
UTF-8
Python
false
false
861
py
orvs_dataset.py
from mmseg.datasets import BaseSegDataset from mmseg.registry import DATASETS @DATASETS.register_module() class ORVSDataset(BaseSegDataset): """ORVSDataset dataset. In segmentation map annotation for ORVSDataset, ``reduce_zero_label`` is fixed to False. The ``img_suffix`` is fixed to '.png' and ``seg...
b6e7df4d5b91ddf403816b5335c8b44637150e25
f573c4297819ee89ac1b1ed52ba3a95bac7e255a
/scripts/keyframes.py
16d8c10f801233a0df51765bb475b91edcb15e3d
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "BSL-1.0", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Zlib" ]
permissive
LunarG/gfxreconstruct
e5b45ea6c92d281b3b563e9defebcf88238d86aa
215926d051b982a17c200ee180cef7b6622ab1dd
refs/heads/dev
2023-08-31T00:41:30.259593
2023-08-30T21:37:24
2023-08-30T21:37:24
133,849,968
316
90
MIT
2023-09-14T20:43:22
2018-05-17T17:57:33
C++
UTF-8
Python
false
false
12,876
py
keyframes.py
#!/usr/bin/env python3 """Given a file with a set of (ASCII) commands, identify "interesting" keyframes based on distinct maximal function sets used in a frame. Keyframes selected in this way tend to exercise more distinct parts of the trace, as many frames will use the same "footprint" of functions as other frames; b...
cf214df95244631e034f7fdc8693298053c6399d
bdf7fa08c8e623641dca6f30c2b5bc4bdb23e773
/electrum/tests/test_lnpeer.py
37f5cccebb408dceb459202dd3d5b0a4d8c5ae94
[ "MIT" ]
permissive
spesmilo/electrum
d6cbfdeca60a347c60b6b0426ba567a21128193e
a740a20fc2677d54e99fa981b7968b877a7b53a3
refs/heads/master
2023-09-04T01:30:19.633217
2023-09-01T13:44:24
2023-09-01T13:44:24
5,274,894
7,132
2,516
MIT
2023-09-10T08:51:24
2012-08-02T16:24:30
Python
UTF-8
Python
false
false
79,556
py
test_lnpeer.py
import asyncio import shutil import copy import tempfile from decimal import Decimal import os from contextlib import contextmanager from collections import defaultdict import logging import concurrent from concurrent import futures import unittest from typing import Iterable, NamedTuple, Tuple, List, Dict from aiorpc...
c8123c33139ade40cee1c22d58ef0279d1d914ab
4091caecbc727e6d6ae0d827afce11c5979a84fd
/demos/gesture_recognition_demo/python/gesture_recognition_demo/action_recognizer.py
80323d072254a3d2cb640aa3227e42c86796238b
[ "Apache-2.0" ]
permissive
openvinotoolkit/open_model_zoo
fdb03dd40bfccb854e4ed4f7b9beaa90596963cd
7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0
refs/heads/master
2023-08-18T18:03:47.254427
2023-08-18T10:54:31
2023-08-18T10:54:31
153,097,694
1,712
730
Apache-2.0
2023-09-11T11:31:20
2018-10-15T10:55:02
Python
UTF-8
Python
false
false
3,426
py
action_recognizer.py
""" Copyright (c) 2019-2023 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
042e79cc763a82deb7c65017bd6f351a05fb24fc
9ffbe6414664a107b00e7d5fc4ac70834219b170
/test/acceptance/features/steps/namespace.py
4d854b682b69f7d2e8fd47f2c853e6eef2fecef0
[ "Apache-2.0" ]
permissive
redhat-developer/service-binding-operator
7371d91b04783b0332c7b8017ecd574192ceb73c
e66264b9df029f52cd1bdf9be76df6587c03e44f
refs/heads/master
2023-09-03T15:33:03.057544
2023-08-25T04:40:56
2023-08-25T04:40:56
191,504,334
116
96
Apache-2.0
2023-09-14T10:59:21
2019-06-12T05:36:31
Go
UTF-8
Python
false
false
509
py
namespace.py
from environment import ctx from command import Command class Namespace(object): def __init__(self, name): self.name = name self.cmd = Command() def create(self): output, exit_code = self.cmd.run(f"{ctx.cli} create namespace {self.name}") assert exit_code == 0, f"Unexpected o...
0148468c91cdbd6a6a9164518cb0d6781e3a4bff
3a6a211ea0d32405497fbd6486c490bb147e25f9
/telemetry/telemetry/timeline/importer.py
90ff5ac61e54af16db763ec366941b91791a6f80
[ "BSD-3-Clause" ]
permissive
catapult-project/catapult
e2cbdd5eb89f3b1492fc8752494e62ea1df4bae0
53102de187a48ac2cfc241fef54dcbc29c453a8e
refs/heads/main
2021-05-25T07:37:22.832505
2021-05-24T08:01:49
2021-05-25T06:07:38
33,947,548
2,032
742
BSD-3-Clause
2022-08-26T16:01:18
2015-04-14T17:49:05
HTML
UTF-8
Python
false
false
732
py
importer.py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class TimelineImporter(object): """Reads trace data and populates timeline model with what it finds.""" def __init__(self, model, trace_data): self....
d6354b8c0254ef072bac2e9d8d98a6cdf3316581
730430ba3b45d5728ef044863598199bfa33aaaa
/parl/algorithms/torch/ppo.py
d3b525d297b999ad84e81338347e6e5d04f8661c
[ "Apache-2.0" ]
permissive
PaddlePaddle/PARL
062d1b4a5335553be6cdfc33ad12f07ebbcd7310
3bb5fe36d245f4d69bae0710dc1dc9d1a172f64d
refs/heads/develop
2023-08-09T02:12:39.741551
2023-05-19T17:52:25
2023-05-19T17:52:25
131,044,128
3,818
988
Apache-2.0
2023-07-28T03:59:20
2018-04-25T17:54:22
Python
UTF-8
Python
false
false
8,171
py
ppo.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
07ca4ef24f2e1796a3b3894682236824c4a2a1f3
b4c3019ba274e696985efa4c8c71956f98fa93c0
/dosagelib/plugins/comicgenesis.py
c0041fe57d2f76b0fe78b302ae7f1194f6196bcb
[ "MIT" ]
permissive
webcomics/dosage
35c3ba5dc8b9d26f2e730d7072e8977f9ff35c18
6f721b0634e1850f60d6bcf12a2858059198f251
refs/heads/master
2023-08-31T01:36:30.934158
2023-08-27T16:19:33
2023-08-27T16:19:33
33,205,825
120
74
MIT
2023-09-05T09:41:04
2015-03-31T19:40:19
Python
UTF-8
Python
false
false
5,203
py
comicgenesis.py
# SPDX-License-Identifier: MIT # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2015-2022 Tobias Gruetzmacher # Copyright (C) 2019-2020 Daniel Ring from ..scraper import ParserScraper # Comicgenesis has a lot of comics, but most of them are di...
979f8e742ebc3b73d814a23f45cff3d9df2c8d83
88b130d5ff52d96248d8b946cfb0faaadb731769
/config-model/src/test/integration/onnx-model/files/create_unbound_model.py
692ebce22a8311011625215302430f1906974dcf
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
vespa-engine/vespa
b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb
1f8213997718c25942c38402202ae9e51572d89f
refs/heads/master
2023-08-16T21:01:12.296208
2023-08-16T17:03:08
2023-08-16T17:03:08
60,377,070
4,889
619
Apache-2.0
2023-09-14T21:02:11
2016-06-03T20:54:20
Java
UTF-8
Python
false
false
570
py
create_unbound_model.py
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. import onnx from onnx import helper, TensorProto INPUT = helper.make_tensor_value_info('input', TensorProto.FLOAT, [-1, 2]) OUTPUT = helper.make_tensor_value_info('output', TensorProto.FLOAT, [-1, 2]) nodes = [hel...
6d43f81d80ce69b37b1a20349cfbb7cf8c5c0111
92721c7af0d94699b5a39672e2747389cee72d09
/etc/scripts/util/propschecktest.py
e6f665be707239522d3df4a797ff1de28991c1a5
[ "BSD-2-Clause" ]
permissive
compiler-explorer/compiler-explorer
f955a01131504b7d05581c66b2b9747699312ce0
0d3a675126c7b58dd0e8e931273bafc3c8fc0175
refs/heads/main
2023-08-31T12:45:37.441500
2023-08-30T00:43:22
2023-08-30T00:43:22
4,414,698
7,144
871
BSD-2-Clause
2023-09-13T15:14:02
2012-05-23T01:31:17
TypeScript
UTF-8
Python
false
false
3,387
py
propschecktest.py
import sys import os import unittest from propscheck import process_file, Line class PropsCheckTests(unittest.TestCase): def run_test(self, filename, expected_key, expected_contents): base_path = os.path.dirname(os.path.abspath(sys.argv[0])) test_case_file = os.path.join(base_path, 'test', 'cases...
1740c1647d958be7f24be7a5f72898ad24b725ec
8e59a43de9d427865c5d67fef39e9a50e44f07ce
/ppocr/modeling/backbones/e2e_resnet_vd_pg.py
97afd3460d03dc078b53064fb45b6fb6d3542df9
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleOCR
af87db8a804b9a4f4eac8a0b2faf80d1dd71633a
15963b0d242867a4cc4d76445626dc8965509b2f
refs/heads/release/2.7
2023-09-01T04:53:37.561932
2023-08-30T02:22:15
2023-08-30T02:22:15
262,296,122
34,195
7,338
Apache-2.0
2023-09-14T06:08:11
2020-05-08T10:38:16
Python
UTF-8
Python
false
false
8,898
py
e2e_resnet_vd_pg.py
# copyright (c) 2021 PaddlePaddle Authors. All Rights Reserve. # # 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...
cbf05a745a65bbbfaaa2e33759678d3f2c8b117e
4763fc023c3cd0bfa003ee5dee61e382754301b0
/tools/export_trainerpoke.py
58961c8d1bea1cbbb2420e24a60ce3a7bfd069c8
[]
no_license
JimB16/PokePlat
000386766982b1d4582ea7096335f5a4f3687ff0
ccbdf7ea8b08f23d3adcb6baa7d1f2b8dc24bbc1
refs/heads/master
2023-02-13T03:35:29.226728
2023-01-31T18:00:24
2023-01-31T18:00:24
46,543,391
116
22
null
2018-08-05T10:16:37
2015-11-20T06:15:03
Assembly
UTF-8
Python
false
false
5,420
py
export_trainerpoke.py
# -*- coding: utf-8 -*- import os import sys from ctypes import c_int8 import operator from new import classobj import configuration from filehandler import FileHandler from lists.pokemonnamelist import PokemonNameList from lists.movenamelist import MoveNameList from lists.itemnamelist import ItemNameList from lists.n...
35de9dba3d8155145356a4bebba7c008d27bc527
7cef8073f640b77b03ecbc266dcc060b00992a1c
/loopy/transform/buffer.py
b77c6a5edb477e889b52371dc1f40a1e6b55e5ec
[ "MIT" ]
permissive
inducer/loopy
f64ed45ec34a75df5ccf881c147cfe7d0957ade6
d01d6844377b5fb5c9e4344aa4b990b1ac852966
refs/heads/main
2023-09-04T02:52:10.469509
2023-08-23T18:01:12
2023-08-23T18:01:12
20,281,732
530
79
MIT
2023-09-14T04:22:51
2014-05-29T04:03:35
Python
UTF-8
Python
false
false
18,584
py
buffer.py
__copyright__ = "Copyright (C) 2012-2015 Andreas Kloeckner" __license__ = """ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
36036d8f29788f9f3ccd667abd6db068a3e45625
af101b467134e10270bb72d02f41f07daa7f57d8
/mmagic/evaluation/functional/gaussian_funcs.py
1865329a63cc35a54ed5ef231c58659f33b184d0
[ "Apache-2.0" ]
permissive
open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
2023-09-14T11:39:18
2019-08-23T13:04:29
Jupyter Notebook
UTF-8
Python
false
false
2,347
py
gaussian_funcs.py
# Copyright (c) OpenMMLab. All rights reserved. import cv2 import numpy as np def gaussian(x, sigma): """Gaussian function. Args: x (array_like): The independent variable. sigma (float): Standard deviation of the gaussian function. Return: np.ndarray or scalar: Gaussian value of ...
f98fc102ede0b736f0e11f21fb9917ab2ba993d2
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/mo/openvino/tools/mo/front/kaldi/extractors/add_shift_ext.py
19a444d22876bab67fa8a4e99032a2312b98f5b1
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
920
py
add_shift_ext.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np from openvino.tools.mo.front.caffe.extractors.utils import embed_input from openvino.tools.mo.front.extractor import FrontExtractorOp from openvino.tools.mo.front.kaldi.utils import read_binary_vector, read_learning_i...
12f0e5ad77c892f754066a8c6a35b54d54cb6194
e30874b3aa20804833dd11788176f839fcd08690
/python/cudf/cudf/core/_internals/__init__.py
6faeeffdbecf44a7243304262f0e5b9afc5fa452
[ "Apache-2.0" ]
permissive
rapidsai/cudf
eaba8948cddde8161c3b02b1b972dab3df8d95b3
c51633627ee7087542ad4c315c0e139dea58e408
refs/heads/branch-23.10
2023-09-04T07:18:27.194295
2023-09-03T06:20:33
2023-09-03T06:20:33
90,506,918
5,386
751
Apache-2.0
2023-09-14T00:27:03
2017-05-07T03:43:37
C++
UTF-8
Python
false
false
42
py
__init__.py
# Copyright (c) 2021, NVIDIA CORPORATION.
ae9af9d0f4ba04e36bb705850e531cca202d0b3a
b728c792b5171f6be6ad91919b4a76a6f198b3e9
/src/lib/dns/python/tests/tsigkey_python_test.py
ca7a61ec62c8812bf4bad846de30738efdf48f15
[ "LicenseRef-scancode-unknown-license-reference", "ISC", "BSL-1.0" ]
permissive
bundy-dns/bundy
c8beeca2c051924590794c92a3a58d1980a86024
3d41934996b82b0cd2fe22dd74d2abc1daba835d
refs/heads/master
2021-09-28T16:24:39.037808
2021-09-22T06:04:17
2021-09-22T06:04:17
19,160,469
110
33
NOASSERTION
2021-09-22T06:04:18
2014-04-25T20:54:37
C++
UTF-8
Python
false
false
10,910
py
tsigkey_python_test.py
# Copyright (C) 2010 Internet Systems Consortium. # # Permission to use, copy, modify, and distribute this software 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 PROVIDED "AS IS" AND INTERNET SYST...
8721ed21c815f968d05862ce5ecaa82fdbab1cbe
3bcc6467f68abaa8dca7a8c2a544875df42e4164
/deoldify/save.py
f7175555296b859086cc2c753888bdfe21cb502e
[ "MIT" ]
permissive
jantic/DeOldify
82cd4a520b21ebe12ac7f587297001c4ad7ebc56
141e873e42eb5e40665d20349f4b8e9a267ba1c4
refs/heads/master
2023-08-09T07:20:08.480890
2023-04-16T16:39:31
2023-04-16T16:39:31
155,636,246
17,137
2,637
MIT
2023-07-21T02:35:25
2018-10-31T23:32:34
Python
UTF-8
Python
false
false
936
py
save.py
from fastai.basic_train import Learner, LearnerCallback from fastai.vision.gan import GANLearner class GANSaveCallback(LearnerCallback): """A `LearnerCallback` that saves history of metrics while training `learn` into CSV `filename`.""" def __init__( self, learn: GANLearner, learn_gen...
75ac6e8dcd81d04307acc6e7f3a3f541b71d687a
38bd1cf9e52ea23b43223d53d8139aad52bb1c70
/py/test/selenium/webdriver/safari/launcher_tests.py
1d08a226d2fcdb95c8e3ce69d7b61b72a375d290
[ "Apache-2.0" ]
permissive
SeleniumHQ/selenium
46d9553e3a45412a7540dd3f7d1f34be6ef42b1b
cc41a883b5138962c6b4408a0fdf4e932bd08071
refs/heads/trunk
2023-09-03T22:56:56.403484
2023-09-02T19:20:45
2023-09-02T19:20:45
7,613,257
30,383
9,671
Apache-2.0
2023-09-14T18:47:42
2013-01-14T21:40:56
Java
UTF-8
Python
false
false
2,510
py
launcher_tests.py
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
498fceed42b0f964d8d19cb059dc22678afc839f
ef8e2c4a7dc839a8350da6535cd3901ae908962c
/trulens_explain/trulens/nn/distributions.py
a72d346e0500f5d30c1a4fa06315d58864398094
[ "MIT" ]
permissive
truera/trulens
145c179c7dbd134625a3c670e1bb25607278ac39
a16c1cb2e5e8ef780cd199f5db603faefc89864b
refs/heads/main
2023-08-05T09:35:05.180580
2023-08-04T21:23:22
2023-08-04T21:23:22
309,504,885
438
38
MIT
2023-09-14T18:48:02
2020-11-02T21:56:45
Jupyter Notebook
UTF-8
Python
false
false
17,239
py
distributions.py
""" The distribution of interest lets us specify the set of samples over which we want our explanations to be faithful. In some cases, we may want to explain the model’s behavior on a particular record, whereas other times we may be interested in a more general behavior over a distribution of samples. """ #from __fu...
e29dbf0de4ac72aff41313ebcdf56e1cb1e29684
485ff07efdbb3e56b9633e3134b1c81271c2d8a3
/rhinocommon/snippets/py/edit-text.py
47dba76bc5ea35f348130cf1dca7044d8f1e272e
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
mcneel/rhino-developer-samples
8f8a332d4d6a9a5fa064be6c1532e665d37c8f13
4fb376adcf94f9d583878d1c1208038f86bde312
refs/heads/7
2023-08-18T22:04:34.036498
2023-06-08T16:28:43
2023-06-08T16:28:43
72,225,588
526
362
NOASSERTION
2023-09-06T20:29:31
2016-10-28T16:52:21
C++
UTF-8
Python
false
false
564
py
edit-text.py
import Rhino import scriptcontext def EditText(): rc, objref = Rhino.Input.RhinoGet.GetOneObject("Select text", False, Rhino.DocObjects.ObjectType.Annotation) if rc!=Rhino.Commands.Result.Success: return textobj = objref.Object() if not textobj: return str = textobj.Geometry.Text rc, str = Rh...
731fbae7a7f9da4ed6be2018f85700b4eeaa74e5
3e1ae16ca94c652b5a05a9c150d85d5e909186b7
/edward2/jax/nn/normalization_test.py
93bbd123fbc544f33eaddbd0dca67cfaf1110a51
[ "Apache-2.0" ]
permissive
google/edward2
c2c75f2b7a72b96eb9cdef94756c47fc205e3110
ccdb9bfb11fe713bc449f0e884b405f619f58059
refs/heads/main
2023-08-31T10:33:16.291114
2023-07-27T20:36:19
2023-07-27T20:37:25
201,102,332
710
96
Apache-2.0
2023-09-11T20:41:55
2019-08-07T18:01:40
Jupyter Notebook
UTF-8
Python
false
false
5,378
py
normalization_test.py
# coding=utf-8 # Copyright 2023 The Edward2 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 o...
036df69944b7240887862658463c883bbca44d8e
b728c792b5171f6be6ad91919b4a76a6f198b3e9
/src/lib/dns/tests/testdata/message_fromWire11.spec
5f317464ae6f2d898202397c8b33eb65033baede
[ "LicenseRef-scancode-unknown-license-reference", "ISC", "BSL-1.0" ]
permissive
bundy-dns/bundy
c8beeca2c051924590794c92a3a58d1980a86024
3d41934996b82b0cd2fe22dd74d2abc1daba835d
refs/heads/master
2021-09-28T16:24:39.037808
2021-09-22T06:04:17
2021-09-22T06:04:17
19,160,469
110
33
NOASSERTION
2021-09-22T06:04:18
2014-04-25T20:54:37
C++
UTF-8
Python
false
false
198
spec
message_fromWire11.spec
# # A simple DNS response message with an EDNS0 indicating the maximum error code # (0xfff) # [header] qr: response rd: 1 rcode: 0xf arcount: 1 [question] # use default [edns] do: 1 extrcode: 0xff
58c57437e054dcef1ebb96b892737742943516f0
87ddcf61c2faaaa795b9c25af334a76018337f62
/frictionless/formats/pandas/parser.py
ab7b3389a03a4de6b77d44ac4fb0d1d4a28d884d
[ "MIT" ]
permissive
frictionlessdata/frictionless-py
17d663ad34c18964113c97e4d657004610fe0df0
740319edeee58f12cc6956a53356f3065ff18cbb
refs/heads/main
2023-08-26T16:24:25.353929
2023-08-04T07:55:37
2023-08-04T07:55:37
28,409,905
295
79
MIT
2023-09-04T05:01:33
2014-12-23T17:11:11
Python
UTF-8
Python
false
false
9,279
py
parser.py
from __future__ import annotations import datetime import decimal from typing import TYPE_CHECKING, Any, List, Optional, Tuple from dateutil.tz import tzoffset from ... import types from ...platform import platform from ...schema import Field, Schema from ...system import Parser if TYPE_CHECKING: from ...resour...
9c47d87147c7042970ae53275d6445917c37c2ae
e436ac52224256a0d8be7d732af10ac0805b8b52
/pettingzoo/utils/all_modules.py
e979ed4e687aacc9119bef0f77c1f72adaaac288
[ "Apache-2.0", "MIT" ]
permissive
Farama-Foundation/PettingZoo
038093fc05f4935e33d4e4e706a507fd95c4f7ae
4646a6cf905da431b73a52039e34ea099e8a49f1
refs/heads/master
2023-08-17T20:42:51.360749
2023-08-16T18:38:57
2023-08-16T18:38:57
235,012,937
1,167
256
NOASSERTION
2023-09-14T17:54:06
2020-01-20T03:41:08
Python
UTF-8
Python
false
false
3,576
py
all_modules.py
from pettingzoo.atari import ( basketball_pong_v3, boxing_v2, combat_plane_v2, combat_tank_v2, double_dunk_v3, entombed_competitive_v3, entombed_cooperative_v3, flag_capture_v2, foozpong_v3, ice_hockey_v2, joust_v3, mario_bros_v3, maze_craze_v3, othello_v3, po...
c5f84baf17efc70c706697dcdd3eae5f9b62998a
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/iam/user_login_profile.py
f624d1c5e36efeb9c174d911b8579871c2f9ac28
[ "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
21,456
py
user_login_profile.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
8fddb299be560a8711c9ab7435f9a07c8259d7ee
ee303308d85c28467a7dfe5300951d49a3866fb3
/test/examples/simple/registers/vertical_reuse/reg_S.py
5e18ba71bf84a760eff24e1c63d491b22fc0a32d
[ "Apache-2.0" ]
permissive
tpoikela/uvm-python
3a66a43100a2903f91e0bb73b84c07c1003f7763
fc5f955701b2b56c1fddac195c70cb3ebb9139fe
refs/heads/master
2023-05-02T05:08:00.792132
2023-04-24T16:07:14
2023-04-24T16:07:14
232,838,902
199
43
Apache-2.0
2023-04-24T16:10:44
2020-01-09T15:22:26
Python
UTF-8
Python
false
false
1,768
py
reg_S.py
#// #//------------------------------------------------------------------------------ #// Copyright 2011 Mentor Graphics Corporation #// Copyright 2011 Cadence Design Systems, Inc. #// Copyright 2011 Synopsys, Inc. #// Copyright 2019-2020 Tuomas Poikela (tpoikela) #// All Rights Reserved Worldwide #// #// L...
72e9c4d9464cf9eda7613e570d527c4b98ea3300
0951cc4f2a80c30cbd6be82ca8fd38c1f48422a6
/components/mlserve/mlpm/solver.py
9838e9fd8e5b5cf9c106e0c73957b0c76c732c47
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Apache-2.0" ]
permissive
autoai-org/AID
17b26aafc15944f737bb95073b4c69089f8dbd99
2368f0e1f8df78cce568266e3c88e493eff1ac89
refs/heads/main
2023-08-16T19:50:17.442097
2022-02-14T13:06:32
2022-02-14T13:06:32
147,939,393
219
24
Apache-2.0
2023-08-15T22:27:37
2018-09-08T14:14:19
TypeScript
UTF-8
Python
false
false
988
py
solver.py
# Copyright (c) 2021 Xiaozhe Yao # # coding:utf-8 from mlpm.server import aidserver, run_server class Solver(object): def __init__(self, pretrained_toml=None): self._isReady = False self.bundle = None self._hyperparameters = {} self._enable_train = False self.server = aids...
54e47c7a4fa8a870ce69046ec6557ddfde4c49ee
4d28185e7a78a569f9a449f39f183cac3024f711
/packages/Python/lldbsuite/test/__init__.py
93971c2f2364bef1c5949e3a45975402bbd90681
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
apple/swift-lldb
2789bf44f648609a1674ee520ac20b64c95de072
d74be846ef3e62de946df343e8c234bde93a8912
refs/heads/stable
2023-04-06T00:28:15.882479
2019-10-25T22:46:59
2019-10-25T22:46:59
44,838,862
780
291
Apache-2.0
2020-01-10T19:28:43
2015-10-23T21:13:18
C++
UTF-8
Python
false
false
155
py
__init__.py
# Module level initialization for the `lldbsuite.test` module. from __future__ import absolute_import from . import dotest run_suite = dotest.run_suite
9da643b503ab6990c83b5d068988c34306467100
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/python/paddle/distributed/fleet/launch.py
4a334281e90d12ab4a34752eba719425749ad537
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
28,895
py
launch.py
# Copyright (c) 2019 PaddlePaddle 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 appli...
e61a99467538cb015b40a01a7b673791327e8d8d
a752920841038f1f84df06779ff041d6c1100697
/pypinyin/phrases_dict.py
f528b9a176d87260ec79fc3873fcbe533a459c64
[ "MIT" ]
permissive
mozillazg/python-pinyin
06e5eaa5326b642d50aacbe71b7117ac6024b353
6a306a6ec0148502ae4e689a229340555ecb6333
refs/heads/master
2023-08-31T14:13:44.512972
2023-05-14T12:18:47
2023-05-14T12:18:47
12,830,126
4,564
634
MIT
2023-09-09T03:46:41
2013-09-14T14:01:40
Python
UTF-8
Python
false
false
2,282,495
py
phrases_dict.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals # Warning: Auto-generated file, don't edit. phrases_dict = { '一丁不识': [['yī'], ['dīng'], ['bù'], ['shí']], '一丁点儿': [['yī'], ['dīng'], ['diǎn'], ['er']], '一不小心': [['yí'], ['bù'], ['xiǎo'], ['xīn']], '一不扭众': [['yī'], ['bù'], ['niǔ'], ['zhòng'...
89379a7852a9b4cc3a80617936c404aa8bd83aaf
c07dd1bb2cb8e962f4293869c13c28461b8e29e4
/py-scoring/tests/test_runner.py
aa9c7590a12db4e9dc2fbdced422336d0951c39b
[ "Apache-2.0" ]
permissive
h2oai/sparkling-water
0e2ac22607257d4aaabefb7c57c4299eaf4680ea
bba263377d4b8f1f5c33b12dfbc2b719d0c5d8a8
refs/heads/master
2023-08-31T07:17:01.878598
2023-08-30T11:15:40
2023-08-30T11:15:40
25,181,584
1,030
449
Apache-2.0
2023-09-06T08:52:37
2014-10-13T23:06:35
Scala
UTF-8
Python
false
false
1,420
py
test_runner.py
# # 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 us...
f873f9de0f179027d70c05ec1f4fe23397e6985e
5e255ad1360c90478393744586663741a9569c21
/linebot/v3/audience/models/audience_group_create_route.py
664c025e85b32ad2934722e0cdfd6a53a8169657
[ "Apache-2.0" ]
permissive
line/line-bot-sdk-python
d76268e8b542060d6eccbacc5dbfab16960ecc35
cffd35948238ae24982173e30b1ea1e595bbefd9
refs/heads/master
2023-08-31T22:12:31.698183
2023-08-28T01:10:09
2023-08-28T01:10:09
70,553,423
1,898
1,181
Apache-2.0
2023-09-11T05:14:07
2016-10-11T03:42:26
Python
UTF-8
Python
false
false
1,202
py
audience_group_create_route.py
# coding: utf-8 """ LINE Messaging API This document describes LINE Messaging API. # noqa: E501 The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ import json import pprint import re # noqa: F401 from...
119a333bcc500dc0961e2ed0123e56e5ab8099e1
302ce5ab1045ee93845608c96580c63d54d730af
/src/spikeinterface/postprocessing/correlograms.py
6cd5238abdb2b276913262d9e9d2f9eb87ebf54d
[ "MIT" ]
permissive
SpikeInterface/spikeinterface
f900b62720860b2881d2e6b5fa4441e0e560f625
ee2237b3f5ce2347b2ec9df90e97b0ee6c738dcf
refs/heads/main
2023-09-02T11:27:54.687021
2023-09-01T13:48:29
2023-09-01T13:48:29
196,581,117
295
133
MIT
2023-09-14T19:12:16
2019-07-12T13:07:46
Python
UTF-8
Python
false
false
13,824
py
correlograms.py
import math import warnings import numpy as np from ..core import WaveformExtractor from ..core.waveform_extractor import BaseWaveformExtractorExtension try: import numba HAVE_NUMBA = True except ModuleNotFoundError as err: HAVE_NUMBA = False class CorrelogramsCalculator(BaseWaveformExtractorExtension):...
2fe3ad3c6e47e60b4cefeda819efae6225cfdd07
8e6bb9c1a620a162b7d017c2373dd01be54ea86d
/bio/deseq2/wald/test/Snakefile
a71baceb6e5ba233e5efd77a8550cc74c43bcb7f
[]
no_license
snakemake/snakemake-wrappers
5d0963502c26eb709513567e25422871fe477cf2
996bdcf2a96535b967dfa483c363a5496f4b3906
refs/heads/master
2023-08-19T05:18:44.337503
2023-08-18T12:03:38
2023-08-18T12:03:38
213,319,194
184
189
null
2023-09-12T11:38:35
2019-10-07T07:20:59
CAP CDS
UTF-8
Python
false
false
496
Snakefile
rule test_deseq2_wald: input: dds="dds.RDS", output: wald_rds="wald.RDS", wald_tsv="dge.tsv", deseq2_result_dir=directory("deseq_results"), normalized_counts_table="counts.tsv", normalized_counts_rds="counts.RDS", params: deseq_extra="", shrink...
6a09158b2f65b8ea16f2e6a6a8e0715c0894f77d
68cab239fc647184d8bd53651bb02303fcf3f26c
/samples/aloha/example3.py
7f76cac69f3794434b0165a25c0e4320b2606837
[]
no_license
omnetpp/omnetpp
0c91b230bf937701de95f42f2383318ed39add07
e42d35366ec3e354a528b17d0fe15ef1f0ac7b55
refs/heads/master
2023-08-19T22:10:18.311271
2023-08-18T09:18:23
2023-08-18T13:18:11
160,219,599
507
160
null
2023-09-05T18:48:09
2018-12-03T16:18:31
C
UTF-8
Python
false
false
1,268
py
example3.py
from omnetpp.runtime import * loadExtensionLibrary("aloha") CodeFragments.executeAll(CodeFragments.STARTUP) # setup complete nedLoader = cNedLoader() nedLoader.__python_owns__ = False nedLoader.loadNedFolder(".") config = """ network = Aloha **.vector-recording = false Aloha.slotTime = 0s # no slots Aloha.txRate ...
482118d97e7774eeb2f3a30fda6484a0280d78c3
b37e9690bb491324e39bcb3ae3fe08c512eb9a8b
/simplekv/memory/redisstore.py
11d002520432fdbc6c6eda5f27ff0ff0d74d56a6
[ "MIT" ]
permissive
mbr/simplekv
b2dc1c44587de83b0311962e58877db8288528e2
48657ce36f1a85c6716a2cca4adbcb67919ef1b6
refs/heads/master
2023-09-04T10:31:43.373290
2021-01-20T14:13:33
2021-02-23T15:22:22
1,732,162
117
48
MIT
2022-09-19T15:38:21
2011-05-11T08:11:21
Python
UTF-8
Python
false
false
1,825
py
redisstore.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from io import BytesIO from .. import KeyValueStore, TimeToLiveMixin, NOT_SET, FOREVER import re class RedisStore(TimeToLiveMixin, KeyValueStore): """Uses a redis-database as the backend. :param redis: An instance of :py:class:`redis.StrictRedis`. """ ...
1acdbf432785b9e6f068f3da0103a7c767817e17
3837a03fceb06dbe8d4546366750cf5c5478819d
/python/gstgva/__init__.py
a83e982d2380c3e24eb13dd04e5dcff55f288a33
[ "MIT" ]
permissive
dlstreamer/dlstreamer
b1453b1a79437cf74eaf0438e38f809dd82afae2
20f2bb6a0be2cfdb351ab2297a4ac7c4db090ed8
refs/heads/master
2023-08-18T14:54:36.496564
2023-03-03T20:31:16
2023-03-03T20:51:34
175,417,729
135
53
MIT
2023-02-07T14:59:51
2019-03-13T12:35:56
C++
UTF-8
Python
false
false
352
py
__init__.py
# ============================================================================== # Copyright (C) 2018-2020 Intel Corporation # # SPDX-License-Identifier: MIT # ============================================================================== from .region_of_interest import RegionOfInterest from .video_frame import VideoF...
5723c9edb09a124e7ef1af65a506f8efde43213b
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/unwrap/emptyLineAtCaretUnwrap_before.py
f168a1d1467b3fd17bd1f9050a90b8b66ade7198
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
45
py
emptyLineAtCaretUnwrap_before.py
if True: print 1 <caret> print 2
8137de3bad1ecc536fa835afe0ac77f9c1b624db
fdb9bdc6c4ab2f14ba71e544493706d5e275899f
/fhir/resources/R4B/sampleddata.py
a3ac2287a16a633c2c9aacafa7261393b63a689e
[ "BSD-3-Clause" ]
permissive
nazrulworld/fhir.resources
6ae8aea8180c611b0c5050759c6dcdf63e4cb061
1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3
refs/heads/main
2023-08-30T18:27:27.277249
2023-07-03T19:57:06
2023-07-03T19:57:06
165,297,877
256
83
NOASSERTION
2023-08-24T15:34:05
2019-01-11T19:26:41
Python
UTF-8
Python
false
false
8,009
py
sampleddata.py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/SampledData Release: R4B Version: 4.3.0 Build ID: c475c22 Last updated: 2022-05-28T12:47:40.239+10:00 """ import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from pydantic...
fc254360c32daba4e4ef47786046e53c668c510d
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/workflow/tests/test_http_events_3.py
974a176d268e3aff18e565f33497a6494a2fb480
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
4,079
py
test_http_events_3.py
from time import sleep import pytest from ray import workflow, serve from ray.workflow.http_event_provider import HTTPListener from ray.tests.conftest import * # noqa from ray.workflow.tests import utils import requests @pytest.mark.parametrize( "workflow_start_regular_shared_serve", [ { ...
03742ed7f4b091f2ed3204d67c4786b054a148d6
9939aab9b0bd1dcf8f37d4ec315ded474076b322
/tools/inspect/inspect_to_junit.py
0921a907db41441d38f476a7e6196c1b3335d416
[ "BSL-1.0", "LicenseRef-scancode-free-unknown" ]
permissive
STEllAR-GROUP/hpx
1068d7c3c4a941c74d9c548d217fb82702053379
c435525b4631c5028a9cb085fc0d27012adaab8c
refs/heads/master
2023-08-30T00:46:26.910504
2023-08-29T14:59:39
2023-08-29T14:59:39
4,455,628
2,244
500
BSL-1.0
2023-09-14T13:54:12
2012-05-26T15:02:39
C++
UTF-8
Python
false
false
3,117
py
inspect_to_junit.py
#!/usr/bin/env python3 # Copyright (c) 2018 Parsa Amini # # SPDX-License-Identifier: BSL-1.0 # Distributed under the Boost Software License, Version 1.0. (See accompanying # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # ## Synopsis # ``` # usage: inspect_to_junit.py [-h] [source] [destination...
76e77d97e3eed59f59f63613a88c72162fc48076
e2c04ff89a567a563c0de77ec6538861ad58500c
/shipwright/_lib/docker.py
f35821fbf138033561b42132b5c5cce8fd05ee44
[ "Apache-2.0" ]
permissive
6si/shipwright
3b36fa36738a82fd27db99af59915c5510c5d90d
f6fb93f82a83ddb856ab1a421c382302ac2e2e19
refs/heads/master
2023-04-30T02:35:29.873292
2018-07-19T13:04:11
2018-07-19T13:04:11
22,346,964
110
21
Apache-2.0
2023-04-15T21:22:09
2014-07-28T15:06:35
Python
UTF-8
Python
false
false
1,663
py
docker.py
from __future__ import absolute_import from docker import errors as d_errors def key_from_image_name(image_name): """ >>> key_from_image_name('shipwright/blah:1234') '1234' """ return image_name.split(':', 1)[1] def key_from_image_info(image_info_dict): """ >>> key_from_image_info({ ...
7fb0fc7c26fb5a225f19264451c827639074c26f
ee87c715e5d937b0380ddb87d56e9ebc4877a02b
/sklearn/gaussian_process/tests/test_gpr.py
d890dc05d9f02af09d1bbedf08a4e55757cdc481
[ "BSD-3-Clause" ]
permissive
scikit-learn/scikit-learn
27a2196f3173e0f32f7a5c5d652b70a6c57c7644
061f8777b48e5491b0c57bb8e0bc7067c103079d
refs/heads/main
2023-08-18T15:32:59.764468
2023-08-18T14:39:08
2023-08-18T14:39:08
843,222
58,456
29,777
BSD-3-Clause
2023-09-14T19:08:34
2010-08-17T09:43:38
Python
UTF-8
Python
false
false
29,775
py
test_gpr.py
"""Testing for Gaussian process regression """ # Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # Modified by: Pete Green <p.l.green@liverpool.ac.uk> # License: BSD 3 clause import re import sys import warnings import numpy as np import pytest from scipy.optimize import approx_fprime from sklearn.excepti...
0b88d025121385d3e409019e7b7de70d6cc13cb6
e53dd2252d82e19794a7763c7aab015112546001
/python/sparknlp/common/storage.py
258f0614fe75b43388a48ac556e279b5ccb99f33
[ "Apache-2.0" ]
permissive
JohnSnowLabs/spark-nlp
5017f90629bf44219db4c4880da168830b63838f
438d9e65d791b0fa8914ab250815b29d55895325
refs/heads/master
2023-08-31T12:31:40.651128
2023-08-28T09:19:10
2023-08-28T09:19:10
104,670,986
3,506
737
Apache-2.0
2023-09-14T06:30:18
2017-09-24T19:36:44
Scala
UTF-8
Python
false
false
4,842
py
storage.py
# Copyright 2017-2022 John Snow Labs # # 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...
67989e37ac51b36050fbd2b4ae329db75933d16c
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/20_杂题/atc競プロ/AtCoder Regular Contest/ARC136/A - A ↔ BB.py
9870b1546964422e99e856de29ceb7db7df412bb
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
126
py
A - A ↔ BB.py
# A 可以变成 BB # BB 可以编程 A # 求最小字典序 # 先把A 全部展开成 BB # 再用栈消除 BB 成 A
93dda2933456cc5acd9b41270e6fdb6d00977381
3e4c84031a9d7843ef0dab64c78fbeadd674b35e
/glslc/test/parameter_tests.py
6e3e1cdce7b05dd132c5b016407cf97af94c69dc
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
google/shaderc
c58f733ade920094824c83c10f1911759536fb9a
e166325b24d79d64bfa47065328890ce116ea642
refs/heads/main
2023-09-04T03:19:00.235676
2023-08-10T19:25:29
2023-08-10T19:25:29
40,277,133
1,712
426
NOASSERTION
2023-09-07T15:48:59
2015-08-06T01:17:42
C++
UTF-8
Python
false
false
15,773
py
parameter_tests.py
# Copyright 2015 The Shaderc 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 applicable...
0d2cd544fa0ecffddec46619ec00552267c7e78b
51164f48d97991d417cace251a115d25a1291518
/tools/join.py
9be4be6f786b437e207e39ffb5a751daff7e1905
[ "MIT" ]
permissive
andrew-gresyk/HFSM2
ffca116b0ea80c6c391d1e9ea30423db91100378
c59c9b1fe2f375bbfcdf57f49b7bd6e9c32965d6
refs/heads/master
2023-06-28T14:52:35.753640
2023-06-09T05:45:35
2023-06-09T05:45:35
150,378,677
381
55
MIT
2023-09-04T20:01:49
2018-09-26T06:28:21
C++
UTF-8
Python
false
false
1,558
py
join.py
import re #=============================================================================== def merge(folder, path, included, commentRE, output): pathTokens = path.split("/") current = folder + "/" + pathTokens[-1] with open(current, 'r', encoding='utf-8') as input: lastLineEmpty = False if included: outpu...
d0e33fa3fb8c1e1ba3b45d4c573e9d4919277c8b
75c0a3e9e38b55421cf9abd0d634cdfd156c71fe
/api/desecapi/serializers/records.py
54d891847acd80c8e7fe303ab19673ffd3264341
[ "MIT" ]
permissive
desec-io/desec-stack
451a8819ab3d44412ef81623be30cc25ddb4c133
bee8909e5755699d719a22cad05b1387e91ec93a
refs/heads/main
2023-08-30T11:22:47.835855
2023-08-15T14:32:18
2023-08-15T14:32:18
69,393,808
281
40
MIT
2023-09-11T03:47:00
2016-09-27T20:02:32
Python
UTF-8
Python
false
false
22,854
py
records.py
import copy import django.core.exceptions import dns.name import dns.zone from django.core.validators import MinValueValidator from django.db.models import F, Q from django.utils import timezone from netfields.functions import Masklen from rest_framework import serializers from rest_framework.settings import api_setti...
9de7e811d4024412182e59cb8e0f13a7ef3b195b
0e94b30ee428326fb65a15f6cdbd2826bea282f0
/Chapter11/microservices/thoughts_backend/ThoughtsBackend/thoughts_backend/app.py
b2cab4340588921f30f3f4ff3c9f82308892bbba
[ "MIT" ]
permissive
PacktPublishing/Hands-On-Docker-for-Microservices-with-Python
a9874ef3e70ad65b8550401e08499129beb87c8d
2ed9899e9df566c0a087682b3a85798b1c0380e9
refs/heads/master
2023-05-11T16:01:07.509199
2023-01-30T08:25:38
2023-01-30T08:25:38
185,544,286
200
249
MIT
2023-05-01T20:52:30
2019-05-08T06:26:17
Python
UTF-8
Python
false
false
3,648
py
app.py
import os import logging from flask import Flask, request, has_request_context from flask import current_app, g from flask_restplus import Api from flask_request_id_header.middleware import RequestID from logging.config import dictConfig from time import time from prometheus_flask_exporter import PrometheusMetrics fr...
51277f5388117d8e6786df22e23497f988e20cf1
ead6ec54c304046e8017289ecae2acb69f2e463d
/flotilla/compute/outlier.py
b84b6bcbdbff0554a0c7052800cb2b89babce6d3
[]
permissive
YeoLab/flotilla
93e3576002f1b51917bc8576897d399176e1fa3a
31da64567e59003c2b9c03fc8f4eb27ee62e299c
refs/heads/master
2023-04-28T04:23:30.408159
2017-04-19T07:03:03
2017-04-19T07:03:03
19,319,564
104
27
BSD-3-Clause
2023-04-15T19:16:52
2014-04-30T16:14:31
Jupyter Notebook
UTF-8
Python
false
false
2,714
py
outlier.py
""" Detect outlier samples in data """ from __future__ import (absolute_import, division, print_function, unicode_literals) import sklearn import pandas as pd class OutlierDetection(object): """Construct an outlier detection object Parameters ---------- X : pandas.DataFrame...
73af94c3cc878964640708ace89b6c5d93a276f1
c3e45c2241bf4f58bb07c8157742975bb77b12c2
/examples/sexpr.py
53f6c7c471ed13dff4c2c5334ed640649ed539cf
[ "MIT" ]
permissive
sighingnow/parsec.py
a0909bbf72aed894587129ef2169813cb8b96043
92a6e969259ed937592d4625affda07d3ee4864d
refs/heads/master
2022-11-15T02:38:10.654502
2022-11-03T13:02:00
2022-11-03T13:02:00
45,400,975
217
45
MIT
2022-11-03T12:59:07
2015-11-02T14:54:09
Python
UTF-8
Python
false
false
1,071
py
sexpr.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Use parsec.py to parse $-expression (like expression in LISP). ''' __author__ = 'He Tao, sighingnow@gmail.com' import re from parsec import * # ignore cases. whitespace = regex(r'\s+', re.MULTILINE) comment = regex(r';.*') ignore = many((whitespace | comment)) # l...
faed00b816990b26b2ccb06904b9366ff4ba7bf0
b40d1a26ea04a19ec0da7bf55db84b7ee36cc898
/leetcode.com/python/562_Longest_Line_of_Consecutive_One_in_Matrix.py
d8a292cfcbb36ea4705a8cace46fc3c3e63095ea
[ "MIT" ]
permissive
partho-maple/coding-interview-gym
5e8af7d404c28d4b9b52e5cffc540fd51d8025cf
20ae1a048eddbc9a32c819cf61258e2b57572f05
refs/heads/master
2022-09-11T16:36:01.702626
2022-03-14T08:39:47
2022-03-14T08:39:47
69,802,909
862
438
MIT
2022-08-18T06:42:46
2016-10-02T14:51:31
Python
UTF-8
Python
false
false
6,052
py
562_Longest_Line_of_Consecutive_One_in_Matrix.py
# Approach 1: Brute force. Time limit exceeded. 57 / 57 test cases passed, but took too long. # # https://tinyurl.com/vqppbae class Solution(object): def longestLine(self, M): """ :type M: List[List[int]] :rtype: int """ rowCount, colCount = len(M), len(M[0]) if M else 0 ...
960a06c4b308fb630b74f33defbe376ebc2476f5
2274908c8d7dfddd2868e621b3b1a1ac82114e3b
/summarus/stats/pearson.py
2e54d24943926c31992aa0b91de331150c668009
[ "Apache-2.0" ]
permissive
IlyaGusev/summarus
b0d96e96a417f67a29258a03655299307bc699df
525040ee80f7e8d9763af47776f0b25e5434836b
refs/heads/master
2022-07-08T13:13:18.772219
2022-07-03T18:53:30
2022-07-03T18:53:30
159,055,060
167
30
Apache-2.0
2021-07-20T14:27:10
2018-11-25T17:07:26
Python
UTF-8
Python
false
false
818
py
pearson.py
import argparse import sys import json from collections import defaultdict from scipy.stats import pearsonr def main(input_path): values = defaultdict(list) with open(input_path) as r: for line in r: record = json.loads(line) stats = record["stats"] for key, value ...
29adcfd9786ba28572155ff76ae7051d8c2d1c9b
0480082b1a9f42e251ffb3403e9a1f8728e6995c
/src/tests/websockets/websockets.py
d0f6b05fd400cd46c1519e37bb0b2a56fbb96c55
[ "MIT", "LGPL-2.0-or-later", "FSFAP", "ISC", "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-or-later", "BSL-1.0", "Apache-2.0", "LGPL-2.0-only", "Autoconf-exception-2.0", "GPL-2.0-or-later", "OCaml-LGPL-linking-exception", "MPL-1.0", "GPL-3.0-only", "Autoconf-exception-macro", "BSD...
permissive
CloudI/CloudI
5cc5cd2e97cbc737d3b412fe2fe267bd748b357d
0dd802a50b397cbd41ae04fb2e77a3615d3f2dd0
refs/heads/develop
2023-08-31T13:04:24.814582
2023-08-26T21:56:46
2023-08-26T21:56:46
293,999
289
35
MIT
2018-10-04T16:17:36
2009-09-01T06:11:16
Erlang
UTF-8
Python
false
false
4,686
py
websockets.py
#!/usr/bin/env python #-*-Mode:python;coding:utf-8;tab-width:4;c-basic-offset:4;indent-tabs-mode:()-*- # ex: set ft=python fenc=utf-8 sts=4 ts=4 sw=4 et nomod: # # MIT License # # Copyright (c) 2013-2023 Michael Truog <mjtruog at protonmail dot com> # # Permission is hereby granted, free of charge, to any person obtain...
a464285b195637608dab65db731045f21f203f8d
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipaySocialForestTreeQueryModel.py
adaaef3db5fd2d7f000973dc51c9bbf751ea9adb
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,298
py
AlipaySocialForestTreeQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySocialForestTreeQueryModel(object): def __init__(self): self._end_date = None self._open_id = None self._start_date = None self._user_id = None @propert...
5d5cfa8b5755adb4cc0462c3e34d0386e81f541a
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/unit/states/test_esxdatacenter.py
58f6df5885b5dfc48cf4de94856a2deec1a8f2fb
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
7,524
py
test_esxdatacenter.py
""" :codeauthor: :email:`Alexandru Bleotu <alexandru.bleotu@morganstanley.com>` Tests for functions in salt.states.esxdatacenter """ import salt.states.esxdatacenter as esxdatacenter from salt.exceptions import CommandExecutionError from tests.support.mixins import LoaderModuleMockMixin from tests.support.moc...
48acb530ffdc64440841703caa70b53b0229ad3f
7f7cc38779ecb42ef8d703106171f7ce30a0a539
/comment/migrations/0005_auto_20200521_1301.py
07044fa2fc0a62c49c5efe673ef6615f58edf75c
[ "MIT" ]
permissive
Radi85/Comment
3209458b7f208d99c63152ec200a41273c8f2349
0d600b951ac9e9dff0c5791a6bf32c898ac180c7
refs/heads/develop
2022-11-10T20:46:32.386656
2022-11-01T06:26:42
2022-11-01T12:06:32
147,228,387
106
49
MIT
2022-11-01T12:06:34
2018-09-03T16:19:08
Python
UTF-8
Python
false
false
485
py
0005_auto_20200521_1301.py
# Generated by Django 3.0.5 on 2020-05-21 13:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('comment', '0004_reaction_reactioninstance'), ] operations = [ migrations.AlterField( model_name...
815bf045a026fbfb93a6795b97d5161cf9c14a24
59bb398c5f23770e4725f35f932f3a5fd013efae
/jwst/ami/analyticnrm2.py
ed7cc999033cb08da57ef987ec79cc0e214fb628
[ "BSD-2-Clause" ]
permissive
spacetelescope/jwst
9826d86781c6e01aced951882471f8b967fa1f6e
a4a0e8ad2b88249f01445ee1dcf175229c51033f
refs/heads/master
2023-09-04T09:54:04.504036
2023-08-31T20:19:27
2023-08-31T20:19:27
60,551,519
449
106
NOASSERTION
2023-09-14T21:21:33
2016-06-06T18:34:23
Jupyter Notebook
UTF-8
Python
false
false
16,163
py
analyticnrm2.py
# Heritage mathematica nb from Alex & Laurent # Python by Alex Greenbaum & Anand Sivaramakrishnan Jan 2013 # updated May 2013 to include hexagonal envelope import logging import numpy as np import scipy.special from . import leastsqnrm from . import utils from . import hextransformee log = logging.getLogger(__name__)...
9397a56d6790668ddf59826a103631a9c895fec7
40195e6f86bf8620850f0c56e98eae5693e88277
/coremltools/converters/mil/mil/operation.py
19157b0352350ff159658bd7f0a0c9c082235592
[ "MIT", "BSD-3-Clause" ]
permissive
apple/coremltools
009dfa7154d34cab8edcafa618e689e407521f50
feed174188f7773631a3d574e1ff9889a135c986
refs/heads/main
2023-09-01T23:26:13.491955
2023-08-31T18:44:31
2023-08-31T18:44:31
95,862,535
3,742
705
BSD-3-Clause
2023-09-14T17:33:58
2017-06-30T07:39:02
Python
UTF-8
Python
false
false
22,435
py
operation.py
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from typing import Any, Dict, Tuple import numpy as np from coremltools.converters.mil.mil import t...
8774207b79e722f8339e6d709f8bb55b628e19e7
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMOffline/Configuration/python/DQMOffline_cff.py
898bc80fbd67f3e4c98d71d2696f3dfb79b777ba
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
12,476
py
DQMOffline_cff.py
import FWCore.ParameterSet.Config as cms from DQMServices.Components.DQMMessageLogger_cfi import * from DQMServices.Components.DQMProvInfo_cfi import * from DQMServices.Components.DQMFastTimerService_cff import * from DQMOffline.L1Trigger.L1TriggerDqmOffline_cff import * from DQMOffline.Ecal.ecal_dqm_source_offline_c...
8ce443ca3d1edc860ba78de1fc2b2a7423f16f24
038af1bfd275530413a7b4e28bf0e40eddf632c6
/parsifal/apps/reviews/settings/__init__.py
28abef73c2c5e403b3fc64ee792f5d5c0a73f674
[ "MIT" ]
permissive
vitorfs/parsifal
5c5345ff75b48c5596977c8e0a9c4c537ed4726c
68c3ce3623a210a9c649a27f9d21ae6130541ea9
refs/heads/dev
2023-05-24T16:34:31.899776
2022-08-14T16:30:06
2022-08-14T16:30:06
11,648,402
410
223
MIT
2023-05-22T10:47:20
2013-07-25T00:27:21
Python
UTF-8
Python
false
false
74
py
__init__.py
default_app_config = "parsifal.apps.reviews.settings.apps.SettingsConfig"
1bb2e50c879d963473decf0c66af6148c976c871
0cd893fddf3a43459030292dad953c3810713513
/examples/wrap_protos/python/wrap_protos_test.py
34c02f67805748db6ab601bba7a3960438679bf8
[ "Apache-2.0" ]
permissive
google/clif
8fc6d75f7e4a1a443f9bd596d05ea3e4c820e1c4
7501b3ca70a92a7a15022b3035bc4b1706f7569a
refs/heads/main
2023-08-19T06:26:17.321706
2023-08-18T23:18:45
2023-08-18T23:20:30
88,560,371
1,026
146
Apache-2.0
2023-08-31T23:41:41
2017-04-17T23:36:06
C++
UTF-8
Python
false
false
2,357
py
wrap_protos_test.py
# 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,...
830a1dbf825a7bd13b859dc4e57c0604397632fe
73305ddcc6dc9775b1e9a71506e2f3c74f678edc
/starthinker_ui/recipe/compute.py
2aa8d825863005aab6949833c2e683560f52ab22
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
google/starthinker
ef359557da4140275a8524d0d813eecf022ece9e
b596df09c52511e2e0c0987f6245aa4607190dd0
refs/heads/master
2023-08-25T21:16:45.578012
2023-07-17T22:19:18
2023-07-17T22:20:10
123,017,995
167
64
Apache-2.0
2023-08-02T01:24:51
2018-02-26T19:15:09
Python
UTF-8
Python
false
false
2,269
py
compute.py
########################################################################### # # 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 # # https://www.apache.org/l...
f700cdb77f4b2b2757cb86e725f90830e9c4fa8e
b0d72fbb386a07af8d8ebcce82c2337b3dd1f008
/binsearch.py
d69081241ba79fa774759add8693a0b4260d099e
[]
no_license
garyexplains/examples
f6a12b5082b6f83f32a84ae3c0941e1a6cd68766
febca17fdec5cbd36791bcfaf24185dd5f133125
refs/heads/master
2023-08-04T16:19:50.884319
2023-08-01T16:18:14
2023-08-01T16:18:14
138,168,111
504
218
null
2022-09-19T12:10:52
2018-06-21T12:35:26
Python
UTF-8
Python
false
false
587
py
binsearch.py
def binary_search(arr, start, end, target): i = 1 while start <= end: mid = start + (end - start) // 2; if arr[mid] == target: return mid, i elif arr[mid] < target: start = mid + 1 else: end = mid - 1 i = i + 1 # N...
ba2ec3f8cf2d960d6139b62618deffcfc8a52ee8
5d55e0885bacd718588f25b71675c1127c93fc0a
/river/stream/iter_csv.py
d94ad332f1575089a0b07420449fbdae7f1e7b35
[ "BSD-3-Clause" ]
permissive
online-ml/river
5698b60e65493eba28d0c0c1992f19eb996c0bfa
c658393084ed4147a782daa6bcd4a467c3abb0cb
refs/heads/main
2023-09-03T00:12:55.121301
2023-08-29T12:04:20
2023-08-29T12:04:20
167,388,434
3,372
389
BSD-3-Clause
2023-09-12T08:11:15
2019-01-24T15:18:26
Python
UTF-8
Python
false
false
6,583
py
iter_csv.py
from __future__ import annotations import csv import datetime as dt import random from .. import base from . import utils __all__ = ["iter_csv"] class DictReader(csv.DictReader): """Overlay on top of `csv.DictReader` which allows sampling.""" def __init__(self, fraction, rng, *args, **kwargs): sup...
031e49d225cfe9e4c6d3a5ec2a0d5549d69ea78e
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/tests/arrays/integer/test_concat.py
feba574da548fd597c25103f67821145bccec9ed
[ "BSD-3-Clause" ]
permissive
pandas-dev/pandas
e7e639454a298bebc272622e66faa9829ea393bb
c7325d7e7e77ecb4a4e57b48bc25265277c75712
refs/heads/main
2023-09-01T12:42:07.927176
2023-09-01T11:14:10
2023-09-01T11:14:10
858,127
36,166
18,728
BSD-3-Clause
2023-09-14T21:18:41
2010-08-24T01:37:33
Python
UTF-8
Python
false
false
2,351
py
test_concat.py
import numpy as np import pytest import pandas as pd import pandas._testing as tm @pytest.mark.parametrize( "to_concat_dtypes, result_dtype", [ (["Int64", "Int64"], "Int64"), (["UInt64", "UInt64"], "UInt64"), (["Int8", "Int8"], "Int8"), (["Int8", "Int16"], "Int16"), ([...
a70b25e825ee5a78307e634cbff406e5434259f6
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/unit/engines/test_engines.py
aaf8280a74dcd575aaccd678722013603efbe11e
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
750
py
test_engines.py
import pytest import salt.engines from tests.support.mock import MagicMock, patch @pytest.fixture def kwargs(): opts = {"__role": "minion"} name = "foobar" fun = "{}.start".format(name) config = funcs = runners = proxy = {} return dict( opts=opts, name=name, fun=fun, ...
6576ecbc001954037983ff89c25d8100c175fb92
f0b741f24ccf8bfe9bd1950425d83b6291d21b10
/components/PyTorch/pytorch-kfp-components/pytorch_kfp_components/components/minio/executor.py
ff55f19bf073839a5befa7ca1e1fc0390863713d
[ "Apache-2.0" ]
permissive
kubeflow/pipelines
e678342b8a325559dec0a6e1e484c525fdcc8ce8
3fb199658f68e7debf4906d9ce32a9a307e39243
refs/heads/master
2023-09-04T11:54:56.449867
2023-09-01T19:07:33
2023-09-01T19:12:27
133,100,880
3,434
1,675
Apache-2.0
2023-09-14T20:19:06
2018-05-12T00:31:47
Python
UTF-8
Python
false
false
7,297
py
executor.py
#!/usr/bin/env/python3 # Copyright (c) Facebook, Inc. and its affiliates. # 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 b...
ceb8207c05a2758ed1853e3e42d39e1e45ffcf9b
c3542b98289c1ba85f62d08b5edbe1a3c18f3c80
/Decimal_To_Binary.py
a8e85097a14340870782237ed88f565fd4a3a199
[ "LicenseRef-scancode-unknown", "GPL-1.0-or-later", "MIT" ]
permissive
geekcomputers/Python
16674289843f89f6cc287097f033b928f4181d84
bc55e2a2c5a98f4c7597e901a04457dfb9d5df0c
refs/heads/master
2023-08-18T21:04:18.163283
2023-08-17T17:38:16
2023-08-17T17:38:16
2,881,789
32,418
15,024
MIT
2023-09-02T18:40:33
2011-11-30T09:04:08
Python
UTF-8
Python
false
false
1,356
py
Decimal_To_Binary.py
# patch-255 decimal_accuracy = 7 def dtbconverter(num): whole = [] fractional = ["."] decimal = round(num % 1, decimal_accuracy) w_num = int(num) i = 0 while decimal != 1 and i < decimal_accuracy: decimal = decimal * 2 fractional.append(int(decimal // 1)) ...
bb0c37674b426c037e5ea433ad79540c3622777c
6b265b404d74b09e1b1e3710e8ea872cd50f4263
/Python/Cython/Numpy/compute_sums.py
b5a56693d014e97e032ee97dad8fb400dc5a8ea0
[ "CC-BY-4.0" ]
permissive
gjbex/training-material
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
e748466a2af9f3388a8b0ed091aa061dbfc752d6
refs/heads/master
2023-08-17T11:02:27.322865
2023-04-27T14:42:55
2023-04-27T14:42:55
18,587,808
130
60
CC-BY-4.0
2023-08-03T07:07:25
2014-04-09T06:35:58
Jupyter Notebook
UTF-8
Python
false
false
1,117
py
compute_sums.py
#!/usr/bin/env python from argparse import ArgumentParser import numpy as np import timeit from array_sum import array_sum def py_sum(a): total = 0.0 for i in range(a.shape[0]): for j in range(a.shape[1]): total += a[i, j] return total if __name__ == '__main__': arg_parser = Argu...
907411ad8f5edf2f229dcde45543a868caff6f51
2c5dffdcdb3d9a1df7d318da69339a1dd223c89f
/playhouse/sqlite_udf.py
050dc9b151b61467b23635bf36c33de5be0d9209
[ "MIT" ]
permissive
coleifer/peewee
44cd6fe174b1a618852099fc70b3d1ae19ed6af1
a6f479dc0e8063a9a7f7053b04d93f34d67737ce
refs/heads/master
2023-08-31T19:23:04.646702
2023-08-30T12:12:23
2023-08-30T12:12:23
979,480
9,841
1,885
MIT
2023-08-22T12:54:42
2010-10-11T20:14:11
Python
UTF-8
Python
false
false
13,665
py
sqlite_udf.py
import datetime import hashlib import heapq import math import os import random import re import sys import threading import zlib try: from collections import Counter except ImportError: Counter = None try: from urlparse import urlparse except ImportError: from urllib.parse import urlparse try: fro...
deb995de7af794f865879920de6bb190908ed61a
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_yolo_box_op.py
81445c081fea11426456325a5e47fb6ee154292a
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
10,232
py
test_yolo_box_op.py
# Copyright (c) 2022 PaddlePaddle 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 appli...
a5e1ce10d4fc0b89c799f619837c6d64810d878a
8d77f3b72dc52b85ee0c4ef6ba06f63a6920841f
/python/aitemplate/backend/rocm/pool2d/avg_pool2d.py
cf1fffef87153c71466552c30423ea7501e17881
[ "Apache-2.0" ]
permissive
facebookincubator/AITemplate
b643c217e1d15f7f17dab1eb1cc6855eab664b97
c60dc19788217556ba12ea378c02b9fd0aea9ffe
refs/heads/main
2023-08-28T18:22:15.828008
2023-08-28T14:43:41
2023-08-28T14:43:41
514,321,895
4,065
334
Apache-2.0
2023-09-14T04:53:57
2022-07-15T15:40:58
Python
UTF-8
Python
false
false
1,378
py
avg_pool2d.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # 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...
2b34082e510345d68e2b4508109a20eec2089d48
0760fb4901a75766921a205b55686d6d6f049b30
/python/ray/air/_internal/session.py
db1e10d0a7cf1c7e2cbeb5fce1631aa9d8b0b5ca
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
ray-project/ray
a4bb6940b08b59a61ef0b8e755a52d8563a2f867
edba68c3e7cf255d1d6479329f305adb7fa4c3ed
refs/heads/master
2023-08-31T03:36:48.164405
2023-08-31T03:20:38
2023-08-31T03:20:38
71,932,349
29,482
5,669
Apache-2.0
2023-09-14T21:48:14
2016-10-25T19:38:30
Python
UTF-8
Python
false
false
632
py
session.py
import logging logger = logging.getLogger(__name__) def _get_session(warn: bool = True): from ray.train._internal.session import _session as train_session from ray.tune.trainable.session import _session as tune_session if train_session and tune_session: if warn: logger.warning( ...
47aee3caa3585983809fdda165efa92dcbdff995
84bdf2b9e7a684b3322f08fe995fec0fb6ef0b43
/pycaret/loggers/base_logger.py
8c1b84f2af3b7d4fbc742a2ba5fe0782eba856cf
[ "MIT" ]
permissive
pycaret/pycaret
ea613de9b8da2e38b1988ff7a2952abe59a3b93c
ea88b2d3ee22c080ca5059f2f6f1547952b9451c
refs/heads/master
2023-08-31T23:33:50.953586
2023-08-30T09:31:32
2023-08-30T09:31:32
223,636,350
7,915
1,994
MIT
2023-09-11T03:58:59
2019-11-23T18:40:48
Jupyter Notebook
UTF-8
Python
false
false
1,501
py
base_logger.py
from abc import ABC from copy import deepcopy from sklearn.pipeline import Pipeline SETUP_TAG = "Session Initialized" class BaseLogger(ABC): def init_logger(self): pass def __del__(self): try: self.finish_experiment() except Exception: pass def __repr__(...
ad958aafdd637e93f8d2a7d5844623c496676851
c0db0500c009fc9e812a619a80997e008611b384
/speg/__init__.py
8df4bbde64552ce5e29179eaf3b0e35a9fccd45b
[ "MIT-0" ]
permissive
norbusan/debian-speg
5d10a6d4e773cae8db9541b2890b0f84cac7a20e
47bcb6ee4ee6aace2e0d350ef6b68d1833d53556
refs/heads/master
2023-09-05T14:56:13.421121
2020-12-18T11:22:19
2020-12-18T12:06:30
173,508,966
621
4
NOASSERTION
2020-12-18T12:06:32
2019-03-02T23:11:42
Python
UTF-8
Python
false
false
33
py
__init__.py
from .peg import peg, ParseError