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
55188ab2b54ddddd6385389a4369c974fd6e31f7
ae31542273a142210a1ff30fb76ed9d45d38eba9
/gpMgmt/bin/gppylib/commands/test/unit/test_unit_base.py
6de0f145edf40b5e71bb4537cc30fd6a5fab27bb
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "OpenSSL", "LicenseRef-scancode-stream-benchmark", "ISC", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-ssleay-windows", "BSD-2-Clause", "Python-2.0" ]
permissive
greenplum-db/gpdb
8334837bceb2d5d51a684500793d11b190117c6a
2c0f8f0fb24a2d7a7da114dc80f5f5a2712fca50
refs/heads/main
2023-08-22T02:03:03.806269
2023-08-21T22:59:53
2023-08-22T01:17:10
44,781,140
6,417
2,082
Apache-2.0
2023-09-14T20:33:42
2015-10-23T00:25:17
C
UTF-8
Python
false
false
2,814
py
test_unit_base.py
#!/usr/bin/env python3 # # Copyright (c) Greenplum Inc 2012. All Rights Reserved. # import unittest from mock import call, Mock, patch, ANY from gppylib.commands.base import Command, WorkerPool, RemoteExecutionContext, GPHOME, LocalExecutionContext class WorkerPoolTestCase(unittest.TestCase): def tearDown(self)...
efd117eb8a84a1dc413cbdf0652b434997fe5cc2
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/PAMTRI/infer/sdk/eval_mt.py
183d26317694b71b86caa4c945fcec89fa21ed5c
[ "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
15,054
py
eval_mt.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
c26d15be5b2bfad8ee3890ffc2733f31f238e36b
c43b5835b4499f4e6d6fa4efda9546dc67ae0767
/sfepy/examples/diffusion/laplace_iga_interactive.py
10b0a27cf3b685e95d4422282d684604421525be
[ "BSD-3-Clause" ]
permissive
sfepy/sfepy
4b74e7839b5e7b5e8d90e19ab6e90a068fe33df4
0c2d1690e764b601b2687be1e4261b82207ca366
refs/heads/master
2023-09-04T22:07:28.041123
2023-08-28T14:47:50
2023-08-28T14:47:50
802,525
651
188
BSD-3-Clause
2023-09-12T07:28:19
2010-07-28T09:14:41
Python
UTF-8
Python
false
false
9,736
py
laplace_iga_interactive.py
#!/usr/bin/env python r""" Laplace equation with Dirichlet boundary conditions solved in a single patch NURBS domain using the isogeometric analysis (IGA) approach, using commands for interactive use. This script allows the creation of a customisable NURBS surface using igakit built-in CAD routines, which is then save...
1ba24fc22f9067cb34f11da38da871a768426056
503bc00f0a403c225073502a3db5da3e864346f0
/btrfs-heatmap
a4a4825e2f795121ba2dd579e3f122b35c6a577a
[ "MIT" ]
permissive
knorrie/btrfs-heatmap
5a605a9d7c26d444053803cc27f6f02e8f3946a4
381fad6a0e38d8273fab1f9a7f90eb28007811e9
refs/heads/master
2021-07-03T08:55:01.584728
2020-10-14T17:12:40
2020-10-14T17:35:11
51,668,428
176
7
MIT
2022-02-22T17:28:15
2016-02-13T22:17:21
Python
UTF-8
Python
false
false
25,307
btrfs-heatmap
#!/usr/bin/python3 # # Copyright (C) 2016 Hans van Kranenburg <hans@knorrie.org> # # 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 righ...
e937c992b7b81c5ade130b8d3e0ea46ce08a3e7c
0aaba744749d86e0ed7b0cb088707857de0e6d82
/mlos_bench/mlos_bench/tests/optimizers/__init__.py
509ecbd842b0f0ec31123c8c1efbca8bd784fd78
[ "MIT" ]
permissive
microsoft/MLOS
66968fd0e00df9a3d819ce5287dc057585b2bd8c
0db80043dad256d77dc4c2b4fc54aa0b0aa2597f
refs/heads/main
2023-08-19T02:10:54.290106
2023-08-18T20:29:48
2023-08-18T20:29:48
253,620,591
109
50
MIT
2023-09-14T18:52:13
2020-04-06T21:33:40
Python
UTF-8
Python
false
false
178
py
__init__.py
# # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # """ Tests for mlos_bench.optimizers. Used to make mypy happy about multiple conftest.py modules. """
4bb61b2e0dbe2973484d4cc690a9fba261920f92
25783871609cc18715e2cf454f9c91fcbaef3798
/owasp-top10-2021-apps/a8/amarelo-designs/app/app.py
92e24231e65157bf21333d3914d03d12f3a096d5
[ "BSD-3-Clause" ]
permissive
globocom/secDevLabs
da65414122cca79845c9305ecf0e4865d92782d8
13a98dd853a1538d4971fed073bff23e42de88ec
refs/heads/master
2023-09-04T14:04:48.963314
2023-07-10T19:30:33
2023-07-10T19:30:33
159,996,500
830
413
BSD-3-Clause
2023-07-10T19:30:36
2018-12-01T23:26:50
PHP
UTF-8
Python
false
false
1,298
py
app.py
# coding: utf-8 from flask import Flask, request, make_response, render_template, redirect, flash import uuid import pickle import base64 app = Flask(__name__) @app.route("/") def ola(): return render_template('index.html') @app.route("/admin", methods=['GET','POST']) def login(): if request.method == 'POST...
bd2337b3a2c16a7cfb9ce13858b3d1f784e59bf3
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/kernel_tests/distributions/normal_test.py
e2ad1956a3ec1a1bb2227331db66f85283e86cab
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
21,729
py
normal_test.py
# Copyright 2015 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...
44d011881b2ca3d76b6c82f9a5bb06962c8504b7
19085cb1763ed552aa3f3600bdcf9f79bc43a6aa
/tests/test_util.py
c64a43d946d2b1300b553a49b9003ac00059956a
[ "MIT" ]
permissive
michaeljoseph/changes
44822cfd43861a10e8f106e660ab728e1fd1ccba
81dfa6b44041d124c3c6195bb8dce926138242bf
refs/heads/main
2022-10-31T04:12:01.677533
2021-06-15T21:51:28
2021-06-15T21:51:28
12,110,516
138
12
MIT
2022-10-27T04:58:49
2013-08-14T14:14:35
Python
UTF-8
Python
false
false
359
py
test_util.py
from changes import util def test_extract(): assert {'a': 1, 'b': 2} == util.extract({'a': 1, 'b': 2, 'c': 3}, ['a', 'b']) def test_extract_arguments(): assert {'major': True, 'minor': False, 'patch': False} == util.extract_arguments( {'--major': True, '--minor': False, '--patch': False}, ['...
33ee09644c83dd5d9c319134261223fc65f7a38d
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/passlib/passlib/exc.pyi
7c9f1c4ddbb0f110db2149d323f4bf977b9058f6
[ "Apache-2.0", "MIT" ]
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
1,896
pyi
exc.pyi
from typing import Any class UnknownBackendError(ValueError): hasher: Any backend: Any def __init__(self, hasher, backend) -> None: ... class MissingBackendError(RuntimeError): ... class InternalBackendError(RuntimeError): ... class PasswordValueError(ValueError): ... class PasswordSizeError(PasswordValu...
394c8971fb7e9b55412376f1ba942911bc898bf5
093cf0048b504d5ffc389e6c57b1515ef80f0834
/databricks/notebooks/legacy/mlflow_galleries/models_basic/python/02f_Sklearn_Train_Predict_ModelServer.py
520ba2fb25299bde9dbf0fa437840a7a8114632c
[]
no_license
amesar/mlflow-examples
68d7e2c274ec61a5157c6af15a32a30e5396d563
a9f29cde4fe1fd0203712e1e20a9b8d335c18470
refs/heads/master
2023-09-01T07:11:14.470369
2023-08-22T02:17:14
2023-08-22T02:17:14
219,743,783
163
68
null
2023-01-27T01:08:19
2019-11-05T12:49:04
HTML
UTF-8
Python
false
false
5,944
py
02f_Sklearn_Train_Predict_ModelServer.py
# Databricks notebook source # MAGIC %md # Basic Sklearn MLflow train and predict with Databricks model server # MAGIC # MAGIC **Overview** # MAGIC * End-to-end example of train a model, deploy it to Databricks model server and score. # MAGIC * Trains and registers model. # MAGIC * Deploys registered model to Databric...
f1ddab314555b1c053aee9b0e9f57e1adf4775ff
00f950030a550cfd7e972794ee993d94a92d75be
/cm-mlops/automation/cache/module.py
4739c514c304019151da5d8901946a5b3c2727ec
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mlcommons/ck
6261de6a99934cdd84c413de01d2ee4df6f9217a
e4306117546ea01f688afc7540c0ae2e1c007470
refs/heads/master
2023-09-01T23:26:28.195951
2023-09-01T17:26:00
2023-09-01T17:26:00
26,230,485
122
33
Apache-2.0
2023-09-13T12:01:35
2014-11-05T17:14:43
Python
UTF-8
Python
false
false
4,734
py
module.py
import os from cmind.automation import Automation from cmind import utils class CAutomation(Automation): """ Automation actions """ ############################################################ def __init__(self, cmind, automation_file): super().__init__(cmind, __file__) #############...
decf842bf7a79f3e0fef20e89e7414daa55b2ea4
63ace5832d453e325681d02f6496a0999b72edcb
/bip_utils/ecc/ed25519/ed25519_point.py
827f4c8b8e56c7bd4420ef907f1756e38e0368df
[ "MIT" ]
permissive
ebellocchia/bip_utils
c9ec04c687f4247e57434319e36b2abab78f0b32
d15c75ddd74e4838c396a0d036ef6faf11b06a4b
refs/heads/master
2023-09-01T13:38:55.567370
2023-08-16T17:04:14
2023-08-16T17:04:14
251,130,186
244
88
MIT
2023-08-23T13:46:19
2020-03-29T20:42:48
Python
UTF-8
Python
false
false
6,465
py
ed25519_point.py
# Copyright (c) 2022 Emanuele Bellocchia # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish,...
02c4c7e3743f4e43528204fd140861bb5a162caf
44ba493efd0fd7ae78880d3d93cc0d66166935e5
/tests/integrations/docker/test_Docker__verify.py
969d37a65c267ff5a968333f8afbe6020133f177
[ "BSD-3-Clause" ]
permissive
beeware/briefcase
1b3eaebf0791728c68986809aa07abc436e422c6
cc2dae1ffc58f9700d0ca57461cb05909bc01bec
refs/heads/main
2023-09-01T19:24:15.424713
2023-09-01T04:35:53
2023-09-01T04:35:53
39,841,700
1,609
256
BSD-3-Clause
2023-09-11T10:04:34
2015-07-28T15:20:03
Python
UTF-8
Python
false
false
13,786
py
test_Docker__verify.py
import subprocess from collections import namedtuple from pathlib import Path, PurePosixPath from unittest.mock import MagicMock, call import pytest from briefcase.exceptions import BriefcaseCommandError, UnsupportedHostError from briefcase.integrations.base import ToolCache from briefcase.integrations.docker import ...
39cc97f2d7e93560a45e57e1d875b999cc220275
c0eeaae1a689a349a86b1e0cf672f7b90fa32886
/solara/website/pages/examples/fullscreen/layout_demo.py
05ba61b46663bb2b1267c37f040c3800c90aa31c
[ "MIT" ]
permissive
widgetti/solara
a624b9e6408b080cb9845c46d9a3dd56da61a1b7
baa36623c3eb7db50672d8eb3d3cdab9220a50a6
refs/heads/master
2023-08-31T06:59:51.637969
2023-07-31T19:04:29
2023-07-31T19:04:29
467,834,772
959
68
MIT
2023-09-13T19:33:42
2022-03-09T08:12:01
Python
UTF-8
Python
false
false
44
py
layout_demo.py
redirect = "/apps/layout-demo" Page = True
ae33e997b7f94eb74dad7b2b86df06a872ddc701
8c39ba92cc71ff78242477d3256f6ee3daa872c7
/conans/test/functional/graph/test_graph_build_mode.py
3e26201cf34b667ac23f6a40975bfee2fe08b6f9
[ "MIT" ]
permissive
conan-io/conan
eb4427e534a0edbb1fb06c753d5d9587faaef93c
bac455d1329b6744cdc41747354a727c9233179f
refs/heads/release/2.0
2023-09-03T18:51:54.345761
2023-09-03T17:30:43
2023-09-03T17:30:43
47,190,624
7,754
1,182
MIT
2023-09-14T15:16:09
2015-12-01T13:17:02
Python
UTF-8
Python
false
false
9,503
py
test_graph_build_mode.py
import pytest from conans.test.assets.genconanfile import GenConanfile from conans.test.utils.tools import TestClient @pytest.fixture(scope="module") def build_all(): """ Build a simple graph to test --build option foobar <- bar <- foo <--------| All packages are built from sources ...
d30ff01f1fc2e6d99613b6596159a0b71b088be2
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/assets/federated_learning_silo.py
80c4ba7ebe7cc643a4074f0c6a533fc68e18aa20
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-python-cwi", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", ...
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,023
py
federated_learning_silo.py
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- # # TODO determine where this file should live. from marshmallow import fields from azure.ai.ml._schema.core.resource import YamlFileSchema...
028ae21180f6ab7403888216be042a956038cf5c
ce32e0e1b9568c710a3168abc3c638d6f9f6c31b
/vnpy/data/tdx/refill_tdx_future_bars.py
74eb6f54cb1a86027b45c49bed91595e617438a9
[ "MIT" ]
permissive
msincenselee/vnpy
55ae76ca32cae47369a66bd2d6589c13d7a0bdd4
7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7
refs/heads/vnpy2
2022-05-19T10:06:55.504408
2022-03-19T15:26:01
2022-03-19T15:26:01
38,525,806
359
158
MIT
2020-09-09T00:09:12
2015-07-04T07:27:46
C++
UTF-8
Python
false
false
2,531
py
refill_tdx_future_bars.py
# flake8: noqa """ 下载通达信指数合约1分钟bar => vnpy项目目录/bar_data/ """ import os import sys import json from collections import OrderedDict import pandas as pd vnpy_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..')) if vnpy_root not in sys.path: sys.path.append(vnpy_root) os.environ["VNPY_TES...
f3502bf46debf3803ad9c081a967197558b2a103
1dbbb05b30d27c6419b9f34eea3b9a47f92582a0
/parlai/tasks/msc/agents.py
a0978d9f488937ef043e52999b135e771fddf8dc
[ "MIT" ]
permissive
facebookresearch/ParlAI
815334323d0ebef51bf9837336fe3eef6fe1655d
e1d899edfb92471552bae153f59ad30aa7fca468
refs/heads/main
2023-08-31T22:20:45.918129
2023-08-14T19:39:56
2023-08-14T19:39:56
89,266,735
10,943
2,395
MIT
2023-09-13T23:07:40
2017-04-24T17:10:44
Python
UTF-8
Python
false
false
30,947
py
agents.py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from parlai.core.teachers import DialogTeacher from parlai.utils.io import PathManager from parlai.core.opt import Opt f...
bae5390abae4a1d52fed5d353f7e59d869c7edae
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/22_专题/滑动窗口替换k次最长连续 1 模型/1156. 单字符重复子串的最大长度-变形题.py
e9dbdd94e68d59d0b78797385e6a52878d5c8c02
[]
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
1,263
py
1156. 单字符重复子串的最大长度-变形题.py
from collections import Counter from itertools import groupby # 1 <= text.length <= 20000 # 给你一个字符串 text,你只能交换其中两个字符一次或者什么都不做,然后得到一些单字符重复的子串。返回其中最长的子串的长度。 # [k for k, g in groupby('AAAABBBCCDAABBB')] --> A B C D A B # [list(g) for k, g in groupby('AAAABBBCCD')] --> AAAA BBB CC D # 考虑两种情况 # 1. ..aaaabaa...
e39b39ab5a3f01153d068490ec222f0c05121561
abbc2d332bdfa036ac12438983e6d74cf4107e64
/SiamDW/SiamDW-RPN/siamrpn/config.py
fd4357c3f3a205c0fefa4fd9730f6702563019ae
[]
permissive
HonglinChu/SiamTrackers
c494cff7543a433e8ec7dbf6d9439b1e7395b0c0
805208b5348346d35e64abcbe901a3829743e157
refs/heads/master
2023-08-29T06:50:59.532271
2023-03-06T09:13:53
2023-03-06T09:13:53
253,718,080
1,166
243
Apache-2.0
2023-08-03T16:39:53
2020-04-07T07:24:00
Python
UTF-8
Python
false
false
3,917
py
config.py
import numpy as np class Config: # dataset related exemplar_size = 127 # exemplar size instance_size = 271 # 默认SiamDW # instance size context_amount = 0.5 # context amount sample_type = 'uniform' #-------- train_epoch_size = 1000 # ? va...
115cb7eec09a694ccf960e613886e6d3f04ac2af
73435e02a95865e74f03015ec0237f9b66a8318d
/aiogoogle/models.py
3b2f6efd65af2fc06bae9a6d501208ef85bb5692
[ "MIT" ]
permissive
omarryhan/aiogoogle
fc33177c0e5a03a1a3a3a7093021689cbc9074fd
3728c77d246e58111d36aacc4f4733cad79b0b5d
refs/heads/master
2023-08-16T20:55:34.577527
2023-08-05T16:05:10
2023-08-05T16:05:10
157,001,739
168
53
MIT
2023-09-02T10:34:52
2018-11-10T16:55:49
Python
UTF-8
Python
false
false
15,440
py
models.py
from urllib.parse import urlparse, urlunparse, urlencode, parse_qs from typing import AsyncIterable import pprint from .excs import HTTPError, AuthError, ValidationError DEFAULT_DOWNLOAD_CHUNK_SIZE = 1024 * 1024 DEFAULT_UPLOAD_CHUNK_SIZE = 1024 * 1024 class ResumableUpload: """ Resumable Upload Object. Work...
389c153d8d857f68d3f5336ec40650c9f8de61e4
2b8f195b10e8e12db1252318922668cb432ea8ab
/mvlearn/utils/_testing.py
20bdd2dd6401d76c98f4892d6f28792cb9bba106
[ "MIT" ]
permissive
mvlearn/mvlearn
70fba0fc52e1467101adadf46cf61e7076838c2f
003dccea563926fca5d957f5bbf39c1494acfe94
refs/heads/main
2023-04-18T15:47:53.716354
2022-04-05T22:17:18
2022-04-05T22:17:18
206,838,300
136
17
MIT
2023-03-08T17:37:59
2019-09-06T16:56:51
Python
UTF-8
Python
false
false
684
py
_testing.py
from functools import partial def requires_module(function, name, call=None): """Skip a test if package is not available (decorator).""" import pytest call = ("import %s" % name) if call is None else call reason = "Test %s skipped, requires %s." % (function.__name__, name) try: exec(call)...
a663968b5cb001d46eff13243c1e6ad053dce639
3ca67d69abd4e74b7145b340cdda65532f90053b
/programmers/난이도별/level02.다리를_지나는_트럭/sangmandu.py
ed90c18d26c27ec2eabddd96ae8bddf26350a0c5
[]
no_license
DKU-STUDY/Algorithm
19549516984b52a1c5cd73e1ed1e58f774d6d30e
6f78efdbefd8eedab24e43d74c7dae7f95c2893b
refs/heads/master
2023-02-18T06:48:39.309641
2023-02-09T07:16:14
2023-02-09T07:16:14
258,455,710
175
49
null
2023-02-09T07:16:16
2020-04-24T08:42:27
Python
UTF-8
Python
false
false
2,245
py
sangmandu.py
''' https://programmers.co.kr/learn/courses/30/lessons/42583 다리를 지나는 트럭 : 다리의 길이와 트럭의 무게 다리의 하중을 고려하여 모든 트럭이 지나는 시간 구하기 다리를 지나는 시간은 이전 트럭이 출발한 시점부터 자신이 출발한 시점까지의 대기 시간을 모두 합 + 다리 길이 + 1 이다. ''' from collections import deque def solution(bridge_length, weight, truck_weights): b, w, t = bridge_length, weight, truck...
5e53fe48d93d8d989350f0c230cdf903a0cda0e0
fbefc01f9f984eadf068ec25b7f3250949da6da0
/src/pyvesync/vesyncswitch.py
af06fc02f5e3354d9aed84a7c6a1cd4a2257ff31
[ "MIT" ]
permissive
webdjoe/pyvesync
a779772ae068a6e820f001c7a4e90d9854f9ed56
433b51618539bbce854e972aef0258946b25eced
refs/heads/master
2023-08-23T02:32:13.049313
2023-08-09T01:26:37
2023-08-09T01:26:37
123,392,081
125
56
MIT
2023-09-02T03:15:44
2018-03-01T06:24:08
Python
UTF-8
Python
false
false
12,644
py
vesyncswitch.py
"""Classes for VeSync Switch Devices.""" import logging import json from abc import ABCMeta, abstractmethod from typing import Dict, Union, Optional from pyvesync.helpers import Helpers as helpers from pyvesync.vesyncbasedevice import VeSyncBaseDevice logger = logging.getLogger(__name__) feature_dict: Dict[str, Dic...
8c701e9d9a741275d63b05b475d5359edf9d45ac
d125dc644ecb37c014c771c02549c1ebf35eca4d
/common/fuzzer_stats.py
3a0353fa68fefdd4932e8c1404e97d633c719698
[ "Apache-2.0" ]
permissive
google/fuzzbench
316d28b2eff2015fe2f479668151b3259bfa2579
ff8ef0c6da62268521061a432c5b9e228c2f53dc
refs/heads/master
2023-09-04T11:04:20.324945
2023-08-29T17:37:10
2023-08-29T17:37:10
238,105,619
1,005
402
Apache-2.0
2023-09-13T15:07:49
2020-02-04T02:22:18
Python
UTF-8
Python
false
false
1,410
py
fuzzer_stats.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
0dddcefe313c09d6722c1b810d3246df561f7b7d
05e634a232574f676434dfa8e4183f3d0a1a4bc9
/paddlecv/ppcv/utils/timer.py
f5be5b983c0f8a8ce886180d5dcbe887da89c7df
[ "Apache-2.0" ]
permissive
PaddlePaddle/models
67ac00d93c5255ac64a9d80ae5be2e8927e47cee
8042c21b690ffc0162095e749a41b94dd38732da
refs/heads/release/2.4
2023-09-04T15:23:59.543625
2023-07-20T11:54:16
2023-07-20T11:54:16
88,868,842
7,633
3,597
Apache-2.0
2023-09-05T23:23:54
2017-04-20T13:30:15
Python
UTF-8
Python
false
false
2,980
py
timer.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...
afb1a74a34f158dc386e23b77493c9a397e77800
8ddd4c20622a6df48d808e03c084cbd2b1043182
/summertime/evaluation/rouge_metric.py
1c6817d9a481d00f1fde6dafc7336e360380ee38
[ "Apache-2.0" ]
permissive
Yale-LILY/SummerTime
7f92824ef56d57af5292dba910f9c52913c5d29f
761676ddda5dce5cf776ab16ee38b6d995b631ac
refs/heads/main
2023-08-17T16:10:08.684350
2022-03-27T21:19:15
2022-03-27T21:19:15
348,897,374
232
29
Apache-2.0
2023-08-29T05:42:47
2021-03-18T00:59:17
Python
UTF-8
Python
false
false
718
py
rouge_metric.py
from summ_eval.rouge_metric import RougeMetric from summertime.evaluation.summeval_metric import SummEvalMetric from typing import List, Dict class Rouge(SummEvalMetric): metric_name = "rouge" range = (0, 1) higher_is_better = True requires_heavy_compute = False def __init__(self): se_met...
6d8a673a13e61192149f720d3b0c2ea95d1bbee0
8da41ffa2ccb09e04f95db0f211e0ed69a42a352
/courses/machine_learning/deepdive/10_recommend/labs/endtoend/airflow/dags/training.py
0bf4eac2befa0ff64af4edf0e2644b2bd5ae48b6
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/training-data-analyst
808af9b09a0e5f5657c4ca76cdd205f808d76d89
975a95032ce5b7012d1772c7f1f5cfe606eae839
refs/heads/master
2023-09-05T19:50:59.722334
2023-09-04T14:25:33
2023-09-04T14:25:33
56,459,948
7,311
5,917
Apache-2.0
2023-09-13T21:45:54
2016-04-17T21:39:27
Jupyter Notebook
UTF-8
Python
false
false
6,029
py
training.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 agree...
94f5b78ebeccc576ce5937e7ba97baa4b8de5809
3dcf6e78be6d822861ca0d81b2fae7050b58f945
/oct2py/core.py
b75a4fe126464cd18b3b47d8b376ae30b5cd96ba
[ "MIT" ]
permissive
blink1073/oct2py
3c2e71a9480d0f9a4411f1a98fa830c1e78076ed
0ca02d853390f695494a5d23ad219c62da46eb66
refs/heads/main
2023-08-25T19:27:30.490304
2023-08-08T13:33:49
2023-08-08T13:33:49
5,377,231
228
40
MIT
2023-09-09T11:02:06
2012-08-11T04:19:27
Jupyter Notebook
UTF-8
Python
false
false
28,865
py
core.py
"""Core oct2py functionality.""" # Copyright (c) oct2py developers. # Distributed under the terms of the MIT License. import atexit import logging import os import os.path as osp import shutil import tempfile import warnings import numpy as np from metakernel.pexpect import EOF, TIMEOUT # type:ignore ...
c0ae069cdbf5dc7e50c7beef4476827cd187c008
31be8b08142116537fb68490490048fc95344a41
/stubs/pycparser/c_ast.pyi
570c9781c15d371c0800112797272f910038e312
[ "MIT" ]
permissive
simonlindholm/decomp-permuter
f79ab10ae0e46d1e1be0aab1c8a248c1cc31c1af
3f8a292ed0353569ccb727d57703b369df55507f
refs/heads/main
2023-05-25T16:44:06.803784
2023-05-15T21:44:16
2023-05-15T21:44:16
172,801,212
102
33
MIT
2023-04-03T02:53:55
2019-02-26T22:33:20
Python
UTF-8
Python
false
false
14,119
pyi
c_ast.pyi
# ----------------------------------------------------------------- # pycparser: c_ast.py # # AST Node classes. # # Eli Bendersky [https://eli.thegreenplace.net/] # License: BSD # ----------------------------------------------------------------- from typing import TextIO, Iterable, List, Any, Optional, Union as Union_...
70f2f124311ce2a2b2b1bfe13ec141e59ad3267a
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/PyUnresolvedReferencesInspection/unresolvedUnreachable.py
e47812f45030c52b111b1a238c076a83e710033b
[ "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
106
py
unresolvedUnreachable.py
def f(): x = 1 print(<error descr="Unresolved reference 'z'">z</error>) return x print(x)
0275ab2064ec0ea146ab6500b6ca14fdc34eeb38
32d934cabb1eac917bb583a1428b87f78b335a4e
/code_per_day/day_49_to_50.py
1ac93caa762f41ba6d77c814b32401ee73857b2d
[]
no_license
zotroneneis/magical_universe
7339fefcfdf47e21e5ebcc6f56e3f1949230932a
c5da3367b7854c4cf9625c45e03742dba3a6d63c
refs/heads/master
2022-12-07T20:21:25.427333
2022-11-13T14:33:01
2022-11-13T14:33:01
141,951,821
414
58
null
null
null
null
UTF-8
Python
false
false
442
py
day_49_to_50.py
import sys sys.path.append('../') import yaml from magical_universe import CastleKilmereMember, Pupil if __name__ == "__main__": with open('config.yaml', 'r') as c: config = yaml.load(c) bromley = CastleKilmereMember(**config['bromley']) print('bromley: ', bromley) lissy = Pupil...
30baa136f7355bfa86df90d16b566d47c39683b2
04142fdda9b3fb29fb7456d5bc3e504985f24cbe
/tests/test_cnn/test_wrappers.py
8c76ccbdd4f930a1f50d38b38d1d47d09d6d5b3b
[ "Apache-2.0" ]
permissive
open-mmlab/mmcv
419e301bbc1d7d45331d67eccfd673f290a796d5
6e9ee26718b22961d5c34caca4108413b1b7b3af
refs/heads/main
2023-08-31T07:08:27.223321
2023-08-28T09:02:10
2023-08-28T09:02:10
145,670,155
5,319
1,900
Apache-2.0
2023-09-14T02:37:16
2018-08-22T07:05:26
Python
UTF-8
Python
false
false
12,852
py
test_wrappers.py
# Copyright (c) OpenMMLab. All rights reserved. from unittest.mock import patch import pytest import torch import torch.nn as nn from mmengine.utils import digit_version from mmengine.utils.dl_utils import TORCH_VERSION from mmcv.cnn.bricks import (Conv2d, Conv3d, ConvTranspose2d, ConvTranspose3d, ...
46de98eb4c03f2da3c878cfdc0cedda183df28d8
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/s3prl/problem/ssl/mockingjay.py
47c44a575b92b199ed07c7bb5e8186039fdcd8b9
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
6,333
py
mockingjay.py
import torch from torch.nn import L1Loss from s3prl.corpus.librispeech import librispeech_for_pretrain from s3prl.dataset.pretrain_mockingjay_pipe import PretrainMockingjayPipe from s3prl.nn.predictor_mockingjay import PredictorMockingjay from s3prl.nn.transformer_mockingjay import TransformerMockingjay from s3prl.sam...
8a30e4efc37012b6047ea34192a96c83c990fe6c
a133a7c64f6e08def0f936898466990d1fd1b31f
/atomate/feff/firetasks/parse_outputs.py
301dc1126bb4cc1a3250f502a5982ed90f1838cf
[ "LicenseRef-scancode-hdf5", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
hackingmaterials/atomate
a6458f9323b8f14d7b4ebb6558fb578d50a3f1ed
f4060e55ae3a22289fde9516ff0e8e4ac1d22190
refs/heads/main
2023-08-07T21:53:24.701157
2023-07-25T22:28:06
2023-07-25T22:28:06
43,023,379
217
173
NOASSERTION
2023-08-25T22:09:48
2015-09-23T19:53:55
Python
UTF-8
Python
false
false
4,299
py
parse_outputs.py
import json import os from datetime import datetime from glob import glob import numpy as np from fireworks import FiretaskBase, FWAction, explicit_serialize from fireworks.user_objects.firetasks.filepad_tasks import get_fpad from fireworks.utilities.fw_serializers import DATETIME_HANDLER from pymatgen.io.feff.inputs ...
c5ecdc82964c4838cbe09d11b5d4f2f139fa745b
50bfacc4354005439ce8f1614b38a08c48811625
/tests/debugpy/test_attach.py
7d635dbce90a8967a47e46c5b6ddd3b5d178e7d0
[ "MIT" ]
permissive
microsoft/debugpy
ef8dd7d5382e4dab44cf73b0e2ac6c801a6f91d7
86d542e55986e1290b0b99eb2cac5bc961206bbe
refs/heads/main
2023-09-01T17:23:31.223770
2023-08-28T19:23:23
2023-08-28T20:14:39
234,187,391
1,384
124
NOASSERTION
2023-09-12T18:14:57
2020-01-15T22:38:20
Python
UTF-8
Python
false
false
7,979
py
test_attach.py
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE in the project root # for license information. import pytest import sys from tests import debug from tests.debug import runners from tests.patterns import some @pytest.mark.parametrize("stop_method", ["breakpoi...
64593e291fe894fecca0520498feae05497265b0
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/infoxlm/src-infoxlm/infoxlm/data/tlm_dataset.py
92429ed1206f245c8807c1cbe4fb496b05d7ad1f
[ "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
726
py
tlm_dataset.py
import torch from fairseq.data import FairseqDataset class TLMDataset(FairseqDataset): def __init__(self, src_dataset, tgt_dataset, bos, eos): assert len(src_dataset) == len(tgt_dataset) self.src_dataset = src_dataset self.tgt_dataset = tgt_dataset self.bos = bos self.eos = eos self._sizes...
bfe53c12b2586044c904925eadff961cd2641292
334174f296ec618d5813e028187461519583ae06
/network_controllers/dnac/device_list.py
1bfe9af2ee0ce4973622dc13e1047ee77559b8b8
[ "MIT" ]
permissive
CiscoDevNet/netprog_basics
096713a564189c7b08da443537a8f2ea15effdef
ecdd5a2c884ac27fae4dcf469daed684ebf9abfa
refs/heads/master
2023-04-27T12:23:15.784293
2023-02-23T14:57:23
2023-02-23T14:57:23
98,338,085
738
456
MIT
2023-09-05T16:54:09
2017-07-25T18:33:33
Python
UTF-8
Python
false
false
2,286
py
device_list.py
#! /usr/bin/env python """ Learning Series: Network Programmability Basics Module: Network Controllers Lesson: Program your own DNA with DNA Center APIs Author: Hank Preston <hapresto@cisco.com> example1.py Illustrate the following concepts: - Building DNA Center API Code - Start from Postman Auto-generated code - Mul...
338175a7747f9ac93d17086704152ceb865515e4
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/keras/constraints.py
85a38e8dc850660cf24bb217a05d45e757dff6cc
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
11,444
py
constraints.py
# Copyright 2015 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...
f717c5407a6098319a9cab05c73f0340d8941758
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/examples/sharding/separate_databases.py
f836aaec00af67fe5213e5094120f78044437e1d
[ "MIT" ]
permissive
sqlalchemy/sqlalchemy
9d949c67c9b5396b1f33e7ff0f3230c81babf5be
b382bff6e3464f039db0fd1f2ce1b79038675e48
refs/heads/main
2023-08-31T17:40:59.565421
2023-08-30T15:01:41
2023-08-30T15:01:41
159,271,175
8,083
1,489
MIT
2023-09-12T18:53:55
2018-11-27T03:35:03
Python
UTF-8
Python
false
false
10,311
py
separate_databases.py
"""Illustrates sharding using distinct SQLite databases.""" from __future__ import annotations import datetime from sqlalchemy import Column from sqlalchemy import create_engine from sqlalchemy import ForeignKey from sqlalchemy import inspect from sqlalchemy import Integer from sqlalchemy import select from sqlalchem...
61423f352833862c9ac7a33254717e2d023cd0f0
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/braintree/braintree/webhook_notification_gateway.pyi
9f26304aa798ec4820553f3c24dac5db52fcee47
[ "Apache-2.0", "MIT" ]
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
636
pyi
webhook_notification_gateway.pyi
from typing import Any from braintree.exceptions.invalid_challenge_error import InvalidChallengeError as InvalidChallengeError from braintree.exceptions.invalid_signature_error import InvalidSignatureError as InvalidSignatureError from braintree.util.crypto import Crypto as Crypto from braintree.util.xml_util import X...
69a4a85ce333b5cef65cd0930fed937231901954
35b6013c1943f37d1428afd2663c8aba0a02628d
/securitycenter/snippets/snippets_notification_receiver.py
7c6fae680b98ccf5c08a3591868a9594a7fb447c
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
2,110
py
snippets_notification_receiver.py
#!/usr/bin/env python # # 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/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37513edaecf74ffcb3a6af9be16976d3c9f9ab03
88ae8695987ada722184307301e221e1ba3cc2fa
/native_client/pnacl/driver/pnacl-nm.py
cb5e0357a6d5e1c56fa03d6725c31ce1b4622a53
[ "BSD-3-Clause", "Zlib", "Classpath-exception-2.0", "BSD-Source-Code", "LZMA-exception", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-intel-osl-1993", "HPND-sell-var...
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
1,710
py
pnacl-nm.py
#!/usr/bin/python3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import driver_tools from driver_env import env from driver_log import Log import filetype EXTRA_ENV = { 'TOOLNAME': '', 'I...
5841b94d2ee3c37ac44d2c485a047f8d766de9b1
54292bb222c6525217458e92ddacfc4e2635b83e
/python/phonenumbers/shortdata/region_RO.py
37c90cfba979b7bdaca3722e62240eeff474e71c
[ "Apache-2.0" ]
permissive
daviddrysdale/python-phonenumbers
0d69b48033d1464c0a6c358274062f1db2ee8c4a
2f06ef6db2ca83f3856fbb8019a0c665f5971b13
refs/heads/dev
2023-08-31T09:37:20.570690
2023-08-22T05:18:22
2023-08-22T05:18:22
1,643,611
2,944
406
Apache-2.0
2023-08-08T06:49:07
2011-04-21T03:06:38
Python
UTF-8
Python
false
false
1,081
py
region_RO.py
"""Auto-generated file, do not edit by hand. RO metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_RO = PhoneMetadata(id='RO', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[18]\\d{2,5}', possible_length=(3, 4, 5...
55053166569e1ea6f768e1d839a3e3e5de4c46c7
4805a71711625735215cc1a773a85712be305b59
/Tools/site_scons/site_tools/pyext.py
003d2deb469c2d02ebd4eca64bb37675af402bc4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cython/cython
0a75b75b7eaf19eeedaaebca9d49adb603e3e8f5
6ba3daf319d94058de74e8e7f53f932092b38441
refs/heads/master
2023-09-04T11:09:56.569277
2023-09-04T07:45:47
2023-09-04T07:45:47
1,099,265
8,352
1,704
Apache-2.0
2023-09-14T06:33:34
2010-11-21T07:44:20
Python
UTF-8
Python
false
false
9,226
py
pyext.py
"""SCons.Tool.pyext Tool-specific initialization for python extensions builder. AUTHORS: - David Cournapeau - Dag Sverre Seljebotn """ # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to dea...
31692beb0b08ef83410bcc5e6c9a38ac01172428
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/keywordCompletion/keywordAfterComment.after.py
48a7d223aa7b2258d20db20986a7ac1320718f2b
[ "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
20
py
keywordAfterComment.after.py
# foo import <caret>
1bea411ff759301784dd4ce0ba9c857b9eda89cc
90b974771cff3addd43ded8c62c3667c64045976
/tensorflow_data_validation/statistics/generators/natural_language_stats_generator.py
838e47c5cbd7b2b4f66fe82091788105ac326df0
[ "Apache-2.0" ]
permissive
tensorflow/data-validation
84066c9c8db76d6b49bab0cec95113508d86dbdb
606cd26b69f648e1f151c024d38baa6ab1d7d0c8
refs/heads/master
2023-09-01T11:54:32.797061
2023-08-21T19:21:20
2023-08-21T19:21:48
139,463,182
736
180
Apache-2.0
2023-08-14T06:28:47
2018-07-02T15:47:02
Python
UTF-8
Python
false
false
27,413
py
natural_language_stats_generator.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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
803b1a8dc9a30246ab2945a731f3ad2a092d7583
5917ffcb780cfcfe4e2b87b11fca1f68f387b239
/plenum/test/checkpoints/test_lagged_checkpoint_completion.py
7fa201a86fbf0d7b080baa9edb59a42f1c3e299d
[ "Apache-2.0" ]
permissive
hyperledger/indy-plenum
6ff9f705af80dfa28d4cb92743683f78bb937aa3
698b9500ad3a7a15993af72a1c35a406c5673262
refs/heads/main
2023-08-29T01:32:26.384729
2023-06-20T16:42:11
2023-06-20T16:42:11
51,585,028
171
420
Apache-2.0
2023-06-20T16:42:14
2016-02-12T12:03:16
Python
UTF-8
Python
false
false
2,812
py
test_lagged_checkpoint_completion.py
from plenum.test import waits from plenum.test.checkpoints.helper import check_num_received_checkpoints, \ check_received_checkpoint_votes, check_stable_checkpoint, check_num_unstable_checkpoints from plenum.test.delayers import cDelay from plenum.test.helper import sdk_send_random_and_check from stp_core.loop.even...
1c5db60f3bc14f81ff9e18a66c3be97be0590e9c
549270020f6c8724e2ef1b12e38d11b025579f8d
/recipes/ninja/all/conanfile.py
6fede8df5ba1b52a2b573a4a4c1a77b10b9588ee
[ "MIT" ]
permissive
conan-io/conan-center-index
1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43
3b17e69bb4e5601a850b6e006e44775e690bac33
refs/heads/master
2023-08-31T11:34:45.403978
2023-08-31T11:13:23
2023-08-31T11:13:23
204,671,232
844
1,820
MIT
2023-09-14T21:22:42
2019-08-27T09:43:58
Python
UTF-8
Python
false
false
1,885
py
conanfile.py
from conan import ConanFile, conan_version from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout from conan.tools.files import copy, get from conan.tools.scm import Version import os required_conan_version = ">=1.52.0" class NinjaConan(ConanFile): name = "ninja" package_type = "application" d...
23b3e5b1c999fb7d1b2b3bf461db4535b009dd74
e196fe807b2720eb7f08ad9ca914887341bd9b44
/src/streamlink/plugins/dogus.py
3664a1ecc546e829d20a60c7a3d51f959fd18995
[ "BSD-2-Clause" ]
permissive
streamlink/streamlink
ab2ce4a8d71d2abd67f300628f04ce960e7696d0
561f7ef854e3ec076e5bd3efb3e7f8efe5df32df
refs/heads/master
2023-08-29T15:03:17.008502
2023-08-26T19:24:39
2023-08-27T11:02:30
68,402,336
9,529
1,385
BSD-2-Clause
2023-09-13T13:37:33
2016-09-16T17:52:50
Python
UTF-8
Python
false
false
2,040
py
dogus.py
""" $description Turkish live TV channels from Dogus Group, including Euro Star, Star and NTV. $url eurostartv.com.tr $url kralmuzik.com.tr $url ntv.com.tr $url startv.com.tr $type live """ import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream....
fdff9dab427d38d9fc1857b809849ffde41063d8
4daab5ba90185bae65169ebb8183c635385ab3f8
/tests/test_ts/test_ts_guess.py
9f90d450338483d31499686f7a01c52ced325041
[ "MIT" ]
permissive
duartegroup/autodE
bcf69440bd04411f97d39df0df0ae1f2bf6feb8c
4d6667592f083dfcf38de6b75c4222c0a0e7b60b
refs/heads/master
2023-09-01T15:08:16.028378
2023-07-25T08:09:05
2023-07-25T08:09:05
196,085,570
132
42
MIT
2023-09-12T15:20:54
2019-07-09T21:20:27
Python
UTF-8
Python
false
false
371
py
test_ts_guess.py
from autode.atoms import Atom from autode.species.molecule import Molecule from autode.transition_states.ts_guess import TSguess def test_that_a_molecules_solvent_is_inherited(): mol = Molecule(atoms=[Atom("H")], mult=2, solvent_name="water") assert mol.solvent.smiles == "O" ts_guess = TSguess.from_spec...
0328f8dcc3a648b10f39a593d158a00cd2c5ddd5
26cadb387da6dc71f5536b9d74ad44b7b974d26d
/test_launch_testing/test/test_launch_testing/actions/test_pytest.py
350fef87b8fd52385f3d0ea8d65259efbc2a1993
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
ros2/launch
84971e86f6131976bdfaf872fca12f1a6a377cd6
f2b232555900d62c3cec839a49afd4cdc01cda58
refs/heads/rolling
2023-08-24T14:33:18.237122
2023-08-23T17:12:30
2023-08-23T17:12:30
32,485,326
116
139
Apache-2.0
2023-09-14T12:07:30
2015-03-18T21:27:58
Python
UTF-8
Python
false
false
1,330
py
test_pytest.py
# Copyright 2019 Open Source Robotics Foundation, 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...
9d4b18b641e3fd6bcece14004ee78e4b8490d573
73f4f74f678fadee409560b78ffacb7aec38c545
/Tests/test_interactive.py
930cec76dad37343457078c76714854068b2191f
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
IronLanguages/ironpython3
14ec38566d7c27675215042d72e38f6a979011ab
e8ed79bd7f0f33eb2af1a538dd7e98767c86c211
refs/heads/master
2023-09-03T03:36:51.590171
2023-09-02T19:02:51
2023-09-02T19:02:51
17,266,066
2,396
349
Apache-2.0
2023-09-09T01:46:11
2014-02-27T21:50:49
Python
UTF-8
Python
false
false
34,241
py
test_interactive.py
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. from iptest.assert_util import * skiptest("win32") from iptest.console_util import IronPythonInstance remove_...
0bb3df189458c2b54010916702636e962aabd3a6
b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb
/orchestration/dbnd-spark/benchmark/process.py
b2364b0413c33583b7458d4ae541ed8788cc6578
[ "Apache-2.0" ]
permissive
databand-ai/dbnd
70c95d95e12bfb8ab471a6dce27691ed658cb92d
d59c99dcdcd280d7eec36a693dd80f8c8c831ea2
refs/heads/develop
2023-06-24T18:07:56.524526
2023-05-28T07:57:36
2023-05-28T07:57:36
231,361,064
257
33
Apache-2.0
2023-08-06T08:30:28
2020-01-02T10:42:47
Python
UTF-8
Python
false
false
2,827
py
process.py
# © Copyright Databand.ai, an IBM Company 2022 import random import time from typing import Tuple from pyspark.sql import DataFrame, SparkSession from dbnd import log_dataframe, log_metric, task @task def unit_imputations(raw_data: DataFrame, value: int) -> DataFrame: counter = int(raw_data.describe().first()...
9b6b7f43a9a8c489c22d854f64183248a2da6f8f
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_nms_op.py
7c1e4dbcedcf12c31edb1ed065754ad4263b24a4
[ "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
2,930
py
test_nms_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...
d3b25de64807268ba580d9b8ed86e73ecb705e65
3779caa500c53f0ee12baa039cda4cde1e7391b9
/Power of Two.py
6df7e1ebc01ae42e8ff0393d5a5143ec5abf87aa
[]
no_license
kongzhidea/leetcode
924d66bcbc8b7b0f793399184870d4f8da309dba
57fc31718ee9cd6a4282c752382e538e42ff02ce
refs/heads/master
2021-10-29T07:07:41.603363
2021-10-27T13:49:29
2021-10-27T13:49:29
63,241,496
125
2
null
null
null
null
UTF-8
Python
false
false
212
py
Power of Two.py
class Solution(object): def isPowerOfTwo(self, n): if n <= 0 : return False count = 0 while n > 0: count += n&1 n = n >> 1 return count == 1
d3f0fbf874e7007e5656bc01c69cffcc110a1cf5
5a08383f434b56b65ff327e50a7cb8e94a43eeaf
/tests/test___main__.py
e9b49172cef454825433bf55d6fc697d80a2cf14
[ "Apache-2.0" ]
permissive
python/bedevere
698e64c8424b658b21974ee4dd2d7e08d499a22f
34b378d02ed7e961c6230e35a01a65637ab8a3f7
refs/heads/main
2023-08-28T20:43:35.463799
2023-08-18T22:52:12
2023-08-18T22:52:12
87,574,304
121
69
Apache-2.0
2023-09-11T12:09:51
2017-04-07T18:15:00
Python
UTF-8
Python
false
false
1,240
py
test___main__.py
from aiohttp import web import pytest from bedevere import __main__ as main async def test_ping(aiohttp_client): app = web.Application() app.router.add_post("/", main.main) client = await aiohttp_client(app) headers = {"x-github-event": "ping", "x-github-delivery": "1234"} data = {...
af8afa1fa475becb603d31a1ab78954f8b8bb94a
7f24023d365e013ec0924844c1a872edfb0c75b4
/pyxb/bundles/opengis/sos_1_0.py
617d9febc73e432977a4c44e6cbc3e9ed65dea02
[ "Python-2.0", "MIT", "Apache-2.0" ]
permissive
pabigot/pyxb
cd42c024607572c6363682d389e9296caf3f2857
5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a
refs/heads/next
2023-05-11T03:23:19.599756
2023-04-29T20:38:15
2023-04-29T20:45:13
20,547,850
130
63
Apache-2.0
2021-08-19T16:52:18
2014-06-06T01:49:03
Python
UTF-8
Python
false
false
47
py
sos_1_0.py
from pyxb.bundles.opengis.raw.sos_1_0 import *
82bb17920c8a8cec14926d2e3a369b7a48c9e3b9
3bc139860403ebd05e278c95fca26e24d5189271
/tests/core/daemon/test_daemon.py
a366a6249765316d0511976eeb05811c5ba0ce3e
[ "Apache-2.0" ]
permissive
Chia-Network/chia-blockchain
a09183b7240b159419b45f8373a41a1062f77ef3
d966f3f9e63aed52dbd73544164202a9f11ce3d2
refs/heads/main
2023-08-31T09:37:13.741283
2023-08-30T18:27:22
2023-08-30T18:27:22
197,153,676
12,936
2,474
Apache-2.0
2023-09-14T19:08:51
2019-07-16T08:32:40
Python
UTF-8
Python
false
false
62,234
py
test_daemon.py
from __future__ import annotations import asyncio import json import logging from dataclasses import dataclass, field, replace from typing import Any, Dict, List, Optional, Tuple, Type, Union, cast import aiohttp import pkg_resources import pytest from aiohttp.web_ws import WebSocketResponse from chia.daemon.client ...
7180bb4ca6ca0c11b9d6aab3766c69da05be9a9b
a28d672c50faf9632983287d206e8691282cab51
/basicsr/train.py
e02d98fe07f8c2924dda5b49f95adfa21990fa91
[ "Apache-2.0" ]
permissive
XPixelGroup/BasicSR
42cf240fbc91bee10cfa12930ab86820969e854c
033cd6896d898fdd3dcda32e3102a792efa1b8f4
refs/heads/master
2023-06-07T15:16:21.940587
2023-02-02T07:07:47
2023-02-02T07:07:47
130,259,654
2,088
300
Apache-2.0
2023-09-14T00:50:17
2018-04-19T18:58:00
Python
UTF-8
Python
false
false
9,672
py
train.py
import datetime import logging import math import time import torch from os import path as osp from basicsr.data import build_dataloader, build_dataset from basicsr.data.data_sampler import EnlargedSampler from basicsr.data.prefetch_dataloader import CPUPrefetcher, CUDAPrefetcher from basicsr.models import build_model...
df8911eda4bca82b68a1db2a1a31b01dca77fd09
de2392fb0c9dec8ad5bfc85576ff7f992f15ab72
/test/imports_test.py
e745ed5baacd0a8a7a141891e3fb497ad537b81c
[ "Apache-2.0" ]
permissive
remicres/otbtf
a4b9ef16905c7f4a8551e4f59c9302bb6b6636a0
2cfff86912ea47ed07185bc7e0289acc4fed2855
refs/heads/develop
2023-09-01T21:05:24.552844
2023-08-26T19:34:10
2023-08-26T19:34:10
136,026,679
156
45
Apache-2.0
2021-11-19T22:53:55
2018-06-04T13:09:09
C++
UTF-8
Python
false
false
944
py
imports_test.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pytest import unittest class ImportsTest(unittest.TestCase): def test_import_both1(self): import tensorflow self.assertTrue(tensorflow.__version__) import otbApplication self.assertTrue(otbApplication.Registry_GetAvailableApplic...
7b0cdd58cadcdd96fd42874d2bbe78fc117ba732
b11113d4e20d5c2dca31a7e9a1fe33c8242c9416
/palm-nfts/scripts/deploy_vikings.py
da1315e3959c9b208b70956fde0ba20f16827ee0
[]
no_license
MoralisWeb3/youtube-tutorials
ce182b6b70443af36891ea3f3c25bde6914b9dd9
4f6fa634344614840b80f7a3942976f09837a77d
refs/heads/main
2023-07-06T10:22:32.342053
2023-07-04T22:26:39
2023-07-04T22:26:39
346,786,715
639
1,821
null
2023-05-21T12:00:47
2021-03-11T17:40:31
C#
UTF-8
Python
false
false
254
py
deploy_vikings.py
from brownie import PalmNFT from scripts.helpful_scripts import get_account def deploy_random_nft(): account = get_account() nft_contract = PalmNFT.deploy({"from": account}) print(nft_contract.address) def main(): deploy_random_nft()
54edbb470f3d4ce64920a670b5b02ed1fcbd6e48
dd221d1ab80a49190a0c93277e2471debaa2db95
/hanlp/components/parsers/ud/ud_parser.py
704d137211dcc07c11066a996e348ba675692435
[ "Apache-2.0", "CC-BY-NC-SA-4.0" ]
permissive
hankcs/HanLP
29a22d4e240617e4dc67929c2f9760a822402cf7
be2f04905a12990a527417bd47b79b851874a201
refs/heads/doc-zh
2023-08-18T12:48:43.533453
2020-02-15T17:19:28
2023-03-14T02:46:03
24,976,755
32,454
9,770
Apache-2.0
2023-08-13T03:11:39
2014-10-09T06:36:16
Python
UTF-8
Python
false
false
15,674
py
ud_parser.py
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-12-14 20:34 import logging from copy import deepcopy from typing import Union, List, Callable import torch from torch.utils.data import DataLoader from hanlp_common.constant import IDX from hanlp.common.dataset import PadSequenceDataLoader, SortingSamplerBuilder fr...
5d38c86e833ba1815a3f3f66450fdaf85e81e79d
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxr/show_cdp.py
f56c57d8b9c6df850129c6a2a6794cdbca366138
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
18,482
py
show_cdp.py
""" show_cdp.py IOSXR parsers for the following commands: * 'show cdp neighbors' * 'show cdp neighbors detail' * 'show cdp' * 'show cdp interface' * 'show cdp interface {interface}' """ # Python import re # Metaparser from genie.libs.parser.utils.common import Common from genie.metaparser impor...
0b37c5c626037a9ca68bdb8889d6aba442f1a925
474c281c47aed69036b2a13e9a60d150d8ecddc5
/tests/test_path.py
af3b85761438036afb1fe7e8b07731b3575cd3ab
[ "MIT" ]
permissive
ramonhagenaars/jsons
c2445eb7c002544abdfde4ac63d42f5a93e4d776
9abbf3a3bd32435ac74bc98c3554ad3c71086036
refs/heads/master
2023-07-23T22:08:10.093119
2022-06-09T19:50:52
2022-06-09T19:50:52
140,337,655
286
52
MIT
2023-07-14T15:20:59
2018-07-09T20:18:08
Python
UTF-8
Python
false
false
8,923
py
test_path.py
from pathlib import Path, PureWindowsPath, PurePosixPath from unittest import TestCase import jsons class TestPath(TestCase): def test_dump_singlepart_relative_path(self): self.assertEqual('abc', jsons.dump(Path('abc'))) def test_dump_singlepart_pure_windows_path(self): self.assertEqual('ab...
602105273ca7eca5a42052f89820c39edc9e0641
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/databox/v20230301/get_job.py
55fd5f0f7717afafb597c67fe888f78be8bb48da
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
16,000
py
get_job.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** 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 from ... import _utilities from . im...
bd4b9acb1b9af86b6a27947d39485a1521902414
e9911598c43e8526da22b2773a73d9b5966f602a
/docsrc/exts/sphinxlocal/builders/gitstamp.py
0d37012a7837bc88dad0ffb06656e67e40fb53b0
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
cyrusimap/cyrus-imapd
07236dfd887ed92c147938cf1ed2591449d7e8fd
315441d067ba85814768f840f20bc3bb7f20ea6b
refs/heads/master
2023-09-05T09:57:10.683822
2023-09-05T06:09:43
2023-09-05T06:09:43
59,071,965
508
164
NOASSERTION
2023-09-13T04:34:31
2016-05-18T01:33:49
C
UTF-8
Python
false
false
3,469
py
gitstamp.py
# -*- coding: utf-8 -*- """ sphinxlocal.builders.insertdatestamp ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Inserts a git datestamp into the context as 'gitstamp', to make it available for template use. Only runs for builders that generate html. (not manpage) Adds itself as a page context handler: gets invok...
4a58d6a2d103db3506a1460845d1ccca4362645f
9f73d653197b5218f1a5a02e06cb7f56d858a572
/scripts/category_redirect.py
04153a60f6e7cb0ff1e29bb7f2f0c6a1ea90a784
[ "MIT" ]
permissive
wikimedia/pywikibot
b32fbc2eb3d688f57668aed4dc488b4055196e8f
5c01e6bfcd328bc6eae643e661f1a0ae57612808
refs/heads/master
2023-09-03T19:22:13.926740
2023-09-03T14:56:01
2023-09-03T14:59:45
10,798,864
432
166
MIT
2023-08-10T23:36:48
2013-06-19T16:18:45
Python
UTF-8
Python
false
false
21,581
py
category_redirect.py
#!/usr/bin/env python3 """This bot will move pages out of redirected categories. The bot will look for categories that are marked with a category redirect template, take the first parameter of the template as the target of the redirect, and move all pages and subcategories of the category there. It also changes hard r...
42722403942caa106d4a7b386a6f273746974ae2
0b134572e3ac3903ebb44df6d4138cbab9d3327c
/app/grandchallenge/challenges/models.py
95680084da30ab1aed4ee5833cf206e7db91a275
[ "Apache-2.0" ]
permissive
comic/grand-challenge.org
660de3bafaf8f4560317f1dfd9ae9585ec272896
dac25f93b395974b32ba2a8a5f9e19b84b49e09d
refs/heads/main
2023-09-01T15:57:14.790244
2023-08-31T14:23:04
2023-08-31T14:23:04
4,557,968
135
53
Apache-2.0
2023-09-14T13:41:03
2012-06-05T09:26:39
Python
UTF-8
Python
false
false
35,579
py
models.py
import datetime import logging import math from itertools import chain, product from actstream.actions import follow, unfollow from actstream.models import Follow from django.conf import settings from django.contrib.auth.models import Group from django.contrib.contenttypes.models import ContentType from django.contrib...
52d8a5eeeb1b3a1a4089c612824f0a21e1e831f9
26e8c952b4d7235c35fa4d2b5ad668931d3c0ef8
/tests/mock_eventloop.py
654071e8ce2a190abe7edf924c365df6071b95df
[ "MIT" ]
permissive
ukBaz/python-bluezero
fb7a2e1eea4ee4ef8b58dda308884bceaa62ef0d
2b0aba891655bae44c1f281852d5669d5dc9db19
refs/heads/main
2023-08-17T06:33:27.460187
2023-08-06T16:19:09
2023-08-06T16:19:09
49,202,026
360
134
MIT
2023-08-06T16:14:33
2016-01-07T11:57:01
Python
UTF-8
Python
false
false
611
py
mock_eventloop.py
import dbus from gi.repository import GLib def run_pending_events(): """ Iterate event loop until all pending events are cleared """ main_context = GLib.MainContext.default() while main_context.pending(): main_context.iteration(False) class MockAsync: def __init__(self): dbu...
023a1302710b62fb741e7c39b600e2864d9a33b6
6545abba423bdc1554d3b5ba0f62ed9ee94839a2
/channels_graphql_ws/subscription.py
62f03d9c72de2959ef17184cf0911da9dee180ba
[ "MIT" ]
permissive
datadvance/DjangoChannelsGraphqlWs
428ca34f531a82e7b4a7fa42269730d1accca500
09a2ffdde45a1553abd09b5b3e595402b6e6c9b1
refs/heads/master
2023-08-25T15:56:01.861894
2023-05-10T09:46:41
2023-05-10T09:46:41
138,874,616
295
82
MIT
2023-08-15T19:55:19
2018-06-27T11:50:46
Python
UTF-8
Python
false
false
16,209
py
subscription.py
# Copyright (C) DATADVANCE, 2010-2023 # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # ...
299b3b310891b61fe7a6380f61c21529c64a40ae
069c2295076c482afadfe6351da5ae02be8e18e6
/django/contrib/messages/storage/cookie.py
2008b31843597f3b9e16d24e87e07822a8c7cc42
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
8,678
py
cookie.py
import binascii import json from django.conf import settings from django.contrib.messages.storage.base import BaseStorage, Message from django.core import signing from django.http import SimpleCookie from django.utils.safestring import SafeData, mark_safe class MessageEncoder(json.JSONEncoder): """ Compactly...
cb28a06de509df9aaa86e32cf7a37ce49577dd58
e27f9f1f8bef8b1f4676df84ee3e753974d21a1c
/examples/transformers/utils.py
8f49066335bb949469440409e9352d81790da0be
[ "BSD-3-Clause" ]
permissive
pytorch/ignite
8fb275638e94e702762eec932b21dc8df7a54cb0
34a707e53785cf8a524589f33a570a7516fe064e
refs/heads/master
2023-09-02T00:27:22.485479
2023-08-31T15:10:14
2023-08-31T15:10:14
111,835,796
4,613
788
BSD-3-Clause
2023-09-13T07:46:41
2017-11-23T17:31:21
Python
UTF-8
Python
false
false
1,522
py
utils.py
import torch from dataset import TransformerDataset from datasets import load_dataset from model import TransformerModel from transformers import AutoTokenizer from ignite.handlers import DiskSaver def get_tokenizer(tokenizer_name, tokenizer_dir): tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, cache_d...
9239390ce704d5fb667a4f86175d377c057bf847
0933f9ecf49ed89db35cee051a64648886f13e40
/fs/lrucache.py
8ae26de5cac1d6e6d8ed0f8aad26f60367482f79
[ "MIT" ]
permissive
PyFilesystem/pyfilesystem2
63da155692594d0405dd237db7d66be243658249
8ed9dc495d8ba2f83fbb2a1145d34d92e13644be
refs/heads/master
2023-09-01T17:05:54.176292
2022-10-18T10:59:07
2022-10-18T10:59:07
70,920,962
1,956
254
MIT
2023-08-24T20:00:22
2016-10-14T15:05:27
Python
UTF-8
Python
false
false
1,303
py
lrucache.py
"""Least Recently Used cache mapping. """ from __future__ import absolute_import, unicode_literals import typing from collections import OrderedDict _K = typing.TypeVar("_K") _V = typing.TypeVar("_V") class LRUCache(OrderedDict, typing.Generic[_K, _V]): """A dictionary-like container that stores a given maxim...
1041ba6d9223f3f1abc57f1e9e38d6ddbf300bb7
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/0780. Reaching Points/0780.py
131b6302accc457b58279e8778c01989d31e9b7a
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
268
py
0780.py
class Solution: def reachingPoints(self, sx: int, sy: int, tx: int, ty: int) -> bool: while sx < tx and sy < ty: tx, ty = tx % ty, ty % tx return sx == tx and sy <= ty and (ty - sy) % tx == 0 or \ sy == ty and sx <= tx and (tx - sx) % ty == 0
1950057ca1b8453015c23471010c16197c76dd52
487b3bfc69dd211c83861f79818b90a5142824cd
/ahk/_async/window.py
5de120ad6bf0eb13247065b20c7d3d5616631a97
[ "MIT" ]
permissive
spyoungtech/ahk
bf39a7fe671ca2da8c7d04fc3c47df238c55b28a
7615f9389a831f7b601a1edfe7f3d25cfbe036dc
refs/heads/main
2023-08-31T04:44:09.616179
2023-08-22T22:35:50
2023-08-22T22:35:50
158,650,053
746
75
MIT
2023-09-14T18:10:54
2018-11-22T06:07:12
Python
UTF-8
Python
false
false
29,128
py
window.py
from __future__ import annotations import sys import warnings from typing import Any from typing import Coroutine from typing import Literal from typing import Optional from typing import overload from typing import Sequence from typing import Tuple from typing import TYPE_CHECKING from typing import Union from ahk.m...
2cdbc4faae1e64299f23bb69337b50a01588da47
5b2fddc5fbe199735a7cfd8de62bd890381955ba
/tensorflow_quantum/core/ops/math_ops/simulate_mps_test.py
114706d64d9ddb276b0fc37439ba9904d147f2d4
[ "Apache-2.0" ]
permissive
tensorflow/quantum
d4c17cb8821c832dcf0b194658a44caf6405422e
f56257bceb988b743790e1e480eac76fd036d4ff
refs/heads/master
2023-08-19T03:07:10.092102
2023-07-05T22:01:24
2023-07-05T22:01:24
238,772,762
1,799
564
Apache-2.0
2023-07-13T12:37:47
2020-02-06T19:58:35
Python
UTF-8
Python
false
false
46,614
py
simulate_mps_test.py
# Copyright 2020 The TensorFlow Quantum 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...
fe7447b40ebb83002542e07261f3720e480d6464
0e92203844a29b8c36d2c289ef0658204f80c127
/utils/Base_Logging.py
7a64668576b349824c8c0c03d6b89f648117d674
[ "MIT" ]
permissive
qxf2/qxf2-page-object-model
b61ae2bd77cb2e6b97db991707945779c6254224
17b9d6095b881c6e9f25f8a467d90fc4bb6cef91
refs/heads/master
2023-08-08T08:30:10.739019
2023-07-27T14:15:07
2023-07-27T14:15:07
77,039,202
263
197
MIT
2023-07-27T14:15:08
2016-12-21T09:50:23
Python
UTF-8
Python
false
false
4,351
py
Base_Logging.py
""" Qxf2 Services: A plug-n-play class for logging. This class wraps around Python's loguru module. """ import os, inspect import logging from loguru import logger from pytest_reportportal import RPLogger, RPLogHandler class Base_Logging(): "A plug-n-play class for logging" def __init__(self,log_file_name=None...
73813c9f937e6cdda3d1ddaee258abbee2708065
6415c13547e6943f7b65337cbd2790c4e18723c8
/netbox/virtualization/apps.py
1b6b110dfb408aa7a346977671a3a70262a9065a
[ "Apache-2.0" ]
permissive
netbox-community/netbox
287254a9698270d51f57b1297118e9f01536da5a
506884bc4dc70299db3e2a7ad577dd7fd808065e
refs/heads/develop
2023-08-24T09:11:46.685121
2023-08-23T18:44:14
2023-08-23T18:44:14
52,796,596
8,122
1,817
Apache-2.0
2023-09-14T18:16:01
2016-02-29T14:15:46
Python
UTF-8
Python
false
false
154
py
apps.py
from django.apps import AppConfig class VirtualizationConfig(AppConfig): name = 'virtualization' def ready(self): from . import search
cd0418294c59fa821b63d31dac65567a4d52abcd
c43b5835b4499f4e6d6fa4efda9546dc67ae0767
/sfepy/base/goptions.py
4475ab7b7d74db917b64f1686ce8fdf8e6c1bc12
[ "BSD-3-Clause" ]
permissive
sfepy/sfepy
4b74e7839b5e7b5e8d90e19ab6e90a068fe33df4
0c2d1690e764b601b2687be1e4261b82207ca366
refs/heads/master
2023-09-04T22:07:28.041123
2023-08-28T14:47:50
2023-08-28T14:47:50
802,525
651
188
BSD-3-Clause
2023-09-12T07:28:19
2010-07-28T09:14:41
Python
UTF-8
Python
false
false
1,614
py
goptions.py
""" Various global options/parameters. Notes ----- Inspired by rcParams of matplotlib. """ from __future__ import absolute_import import six def validate_bool(val): """ Convert b to a boolean or raise a ValueError. """ if type(val) is str: val = val.lower() if val in ('t', 'y', 'yes', 'on...
f8d7cc3fc2cff02bbd32ddcb8e219d79334bc2bb
cce6cf621ee444b0e87a4c9cd86f81265ef8a21a
/test/test_source_dummy.py
0558ecbce59d0542c0bfcdd9f0511cfc122ae3d1
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
girder/large_image
2f2ee5ad65a4158e7a7e46bd404788a9b46c2e0d
955c25d7e3ba2860ad4529a287f0ef8d172b70d3
refs/heads/master
2023-08-31T05:31:31.010468
2023-08-30T19:25:00
2023-08-30T19:25:00
45,569,214
164
41
Apache-2.0
2023-09-14T18:54:38
2015-11-04T21:39:10
Python
UTF-8
Python
false
false
694
py
test_source_dummy.py
import large_image_source_dummy import large_image def testDummyTileSource(): source = large_image_source_dummy.open() tileMetadata = source.getMetadata() assert tileMetadata['tileWidth'] == 0 assert tileMetadata['tileHeight'] == 0 assert tileMetadata['sizeX'] == 0 assert tileMetadata['sizeY'...
f4429e55523f12110b2b1748267fed4153a5a07e
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/strawberry/channels/__init__.py
455513babb337d84e3d238b96464cbbed2516a52
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
671
py
__init__.py
from .handlers.base import ChannelsConsumer, ChannelsWSConsumer from .handlers.graphql_transport_ws_handler import GraphQLTransportWSHandler from .handlers.graphql_ws_handler import GraphQLWSHandler from .handlers.http_handler import ( ChannelsRequest, GraphQLHTTPConsumer, SyncGraphQLHTTPConsumer, ) from .h...
8391278f5f7708a78cd9efaddb745f0e75994f52
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/library/python/pytest/config.py
703e442c0b2e7f10d69d21e2067ad19ba7a46c7b
[ "Apache-2.0" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
116
py
config.py
_test_mode = [False] def is_test_mode(): return _test_mode[0] def set_test_mode(): _test_mode[0] = True
bdebadf40c3b5a771788a555a0f4f449e4c16c2d
8287c1677795d23856edefecaf5e878f348e99ba
/biostar/planet/urls.py
2c764eb4075b53c73ac5df6c2a7362394a9fd806
[ "MIT" ]
permissive
ialbert/biostar-central
ba325593d6b3a9e2b1ebaddb6257b863b22eface
a051511350871dcd82bdf0b88ce5cda9fd9ef141
refs/heads/master
2023-08-30T06:07:44.892831
2023-07-24T15:43:02
2023-07-24T15:43:02
1,511,294
535
271
MIT
2023-02-15T18:49:10
2011-03-22T13:09:30
Python
UTF-8
Python
false
false
453
py
urls.py
from django.urls import path, include from biostar.planet import views from django.contrib import admin planet_patterns = [ path('', views.blog_list, name="blog_list"), path(r'view/<int:id>/', views.blog_view, name="blog_view"), path(r'bump/<int:id>/', views.blog_bump, name="blog_bump"), ] urlpatterns =...
bbba50073006a47fd6e0ef5b1d05815ef23faa1f
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/ai/mmdetection/mmdet/models/detectors/dab_detr.py
b61301cf6660924f0832f4068841a4664797c585
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
5,907
py
dab_detr.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Dict, Tuple from mmengine.model import uniform_init from torch import Tensor, nn from mmdet.registry import MODELS from ..layers import SinePositionalEncoding from ..layers.transformer import (DABDetrTransformerDecoder, ...
adc36e1094ebbca42e2bee65708e6e0252750d7c
29dfa1deefc72493d1b1eecf1a8df62e24599a77
/tests/vfs/extent.py
07b1d61c5e9935d5dbfa952fac98e7b8ed0e59fb
[ "Apache-2.0" ]
permissive
log2timeline/dfvfs
fd301eaf721a9945641a44ff722aec963158a6b3
28756d910e951a22c5f0b2bcf5184f055a19d544
refs/heads/main
2023-08-07T22:45:45.432668
2023-07-30T12:17:56
2023-07-30T12:17:56
23,820,144
197
65
Apache-2.0
2023-07-30T12:17:58
2014-09-09T05:06:44
Python
UTF-8
Python
false
false
438
py
extent.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for the VFS extent.""" import unittest from dfvfs.vfs import extent from tests import test_lib as shared_test_lib class ExtentTest(shared_test_lib.BaseTestCase): """Tests the VFS extent.""" def testInitialize(self): """Test the __init__ function.""" ...
ebe33e4afb705b108c487c95a304287f23bdcd8f
2d5f297ec3274ce93f1f5592d5b80c2605f8edc5
/pydiffvg_tensorflow/image.py
18eb1e6b66ae077b1c9d4b534a5fce250fe3958a
[ "Apache-2.0" ]
permissive
BachiLi/diffvg
9ec3e3e7b3674c82ca42b18fe49c69991c076370
6f60468bfdef5b9fec8cc3fa47b441dc2720eefc
refs/heads/master
2023-06-21T18:49:09.604301
2023-06-13T17:16:46
2023-06-13T17:16:46
292,727,955
747
134
Apache-2.0
2023-06-13T17:16:47
2020-09-04T02:23:40
Python
UTF-8
Python
false
false
700
py
image.py
import numpy as np import skimage import skimage.io import os def imwrite(img, filename, gamma = 2.2, normalize = False): directory = os.path.dirname(filename) if directory != '' and not os.path.exists(directory): os.makedirs(directory) if not isinstance(img, np.ndarray): img = img.numpy()...
d90ff704d333c3ec9fea045ed8d972b9595786cb
b310854c11812430cb434eaa34643c7758f4f8a1
/ulid/codec.py
e6afec80e18cbf99fbad9f9f8e5f1883b3e59285
[ "Apache-2.0" ]
permissive
ahawker/ulid
90ca46d2a729cda7d15b50210c0246c3cc703167
06289583e9de4286b4d80b4ad000d137816502ca
refs/heads/master
2023-04-02T02:19:25.846467
2021-09-06T18:46:12
2021-09-06T18:54:40
93,703,838
560
35
Apache-2.0
2023-03-14T11:26:18
2017-06-08T03:30:51
Python
UTF-8
Python
false
false
4,268
py
codec.py
""" ulid/codec ~~~~~~~~~~ Defines encoding/decoding functions for ULID data representations. """ import datetime import typing from . import base32, hints, ulid #: Type hint that defines multiple primitive types that can represent #: a Unix timestamp in seconds. TimestampPrimitive = typing.Union[hints.Pr...
ae2de339a5f2d94eb50c90348959b1266e2a9930
2337351b228818e41be3002bd38f68f77c2aa074
/sa/models/action.py
0dcd17ad065a460fe68d0086a399bafef9171374
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
7,363
py
action.py
# ---------------------------------------------------------------------- # Action # ---------------------------------------------------------------------- # Copyright (C) 2007-2021 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Python modules import...
18a13f23b8aba1b725c5c89372c26293ce604fda
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/test_ops_maxpool_with_argmax_v2.py
8d90562132875e6fbab8d311318e78f8ee006b90
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
5,622
py
test_ops_maxpool_with_argmax_v2.py
# Copyright 2023 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
fbb409686e4cab8b88ae3a450d9b06b7fa1ce7d4
15f0514701a78e12750f68ba09d68095172493ee
/Python3/183.py
5902e2b47594d578946ecf4da992a21c232e4630
[ "MIT" ]
permissive
strengthen/LeetCode
5e38c8c9d3e8f27109b9124ae17ef8a4139a1518
3ffa6dcbeb787a6128641402081a4ff70093bb61
refs/heads/master
2022-12-04T21:35:17.872212
2022-11-30T06:23:24
2022-11-30T06:23:24
155,958,163
936
365
MIT
2021-11-15T04:02:45
2018-11-03T06:47:38
null
UTF-8
Python
false
false
623
py
183.py
__________________________________________________________________________________________________ SELECT Name AS Customers FROM Customers WHERE Id NOT IN (SELECT CustomerId FROM Orders); __________________________________________________________________________________________________ SELECT Name AS Customers FROM Cu...
95f20943d916a1e80e365b35bcb4c0a4fe64f3d4
bfb55f5cd85a8516510ad00a3c5f298afadecad3
/sc2/unit_command.py
00a47406bb53d18ce5d1ac182db7c336526a30af
[ "MIT" ]
permissive
BurnySc2/python-sc2
b53429a4bc733446e0676b96892577a18c604f00
76e4a435732d4359e5bd9e15b6283a0498e212ca
refs/heads/develop
2023-08-31T12:56:47.734503
2023-08-03T11:05:47
2023-08-03T11:05:47
188,820,422
409
188
MIT
2023-08-03T11:04:11
2019-05-27T10:13:35
Python
UTF-8
Python
false
false
1,404
py
unit_command.py
from __future__ import annotations from typing import TYPE_CHECKING, Tuple, Union from sc2.constants import COMBINEABLE_ABILITIES from sc2.ids.ability_id import AbilityId from sc2.position import Point2 if TYPE_CHECKING: from sc2.unit import Unit class UnitCommand: def __init__(self, ability: AbilityId, u...
3d2337c780d3704512a860cf292f6e32e8fe3604
ca98f0332b773f9b1982118daf94ba75ffeaa90d
/src/mygrad/nnet/initializers/__init__.py
6c43295347684993430f67e744c55f852dac16b2
[ "MIT" ]
permissive
rsokl/MyGrad
f5b745b26a01ddda4ff6ce279746c47cb2f021cf
133072b526966e235d70bbfcf9eb86d43d0fcfa1
refs/heads/master
2023-07-09T01:20:42.314017
2023-07-03T19:13:30
2023-07-03T19:13:30
97,431,804
186
28
MIT
2023-07-03T19:13:32
2017-07-17T03:31:24
Python
UTF-8
Python
false
false
482
py
__init__.py
from mygrad.tensor_creation.funcs import identity from .constant import constant from .dirac import dirac from .glorot_normal import glorot_normal from .glorot_uniform import glorot_uniform from .he_normal import he_normal from .he_uniform import he_uniform from .normal import normal from .uniform import uniform __al...
45f2f1ddeea7bfbe7fdda26893006d103ce52127
8d5df43c1611a709ddf19d8b23b8763eb37b4e8f
/tests/unit/blocking_connection_tests.py
7222223e890f93790bfdb58e04a98d4e020b4d25
[ "BSD-3-Clause" ]
permissive
pika/pika
86ed56bec6aa813ffd8a7037bbef756a9388533e
f4d8f8ff02a4da4653749c86161b7d52e53f73fe
refs/heads/main
2023-09-03T18:19:30.231575
2023-07-28T23:01:02
2023-07-29T21:16:38
342,869
3,040
919
BSD-3-Clause
2023-08-03T21:20:50
2009-10-19T23:22:02
Python
UTF-8
Python
false
false
15,288
py
blocking_connection_tests.py
# -*- coding: utf-8 -*- """ Tests for pika.adapters.blocking_connection.BlockingConnection """ import sys import unittest from unittest import mock from unittest.mock import patch import pika from pika.adapters import blocking_connection from pika.adapters.utils import nbio_interface import pika.channel import pika.e...
a000eaf1ccae2804554e729ac056907321bafc38
9f48878caa37ac5f2ccf938fc476efa47c89c644
/src/NumericalAlgorithms/Interpolation/Python/__init__.py
0c5191335f7fb7165b3451690f046932386b356f
[ "MIT" ]
permissive
sxs-collaboration/spectre
34f7733ab4c75dbca2f432028145fed110c9ef24
96f573cf158201f712da2bfb3378edf497a35a0d
refs/heads/develop
2023-08-19T11:18:18.465609
2023-08-19T04:24:25
2023-08-19T04:24:25
87,570,510
149
190
NOASSERTION
2023-09-14T20:10:35
2017-04-07T17:28:20
C++
UTF-8
Python
false
false
227
py
__init__.py
# Distributed under the MIT License. # See LICENSE.txt for details. from ._Pybindings import * Irregular = {1: Irregular1D, 2: Irregular2D, 3: Irregular3D} RegularGrid = {1: RegularGrid1D, 2: RegularGrid2D, 3: RegularGrid3D}
3651d7b786063bedae92a6d7cc96dafb70172271
8294fbe3389bebe56c42f958c87e0482c412887d
/2017/May/3_data/rjmessibarca.py
c95c76a45fdda798063163e1eb0d9674b034cd56
[]
no_license
py-study-group/challenges
8717376d1f44c4846d05052e8446b647f84c26f6
9129f48fb7c61fb5610c16e8da427149f0a9ed0a
refs/heads/master
2021-01-20T08:37:14.224261
2018-02-28T16:27:52
2018-02-28T16:27:52
90,166,445
133
70
null
2018-02-28T10:22:04
2017-05-03T15:48:15
Python
UTF-8
Python
false
false
4,040
py
rjmessibarca.py
""" The subquestions have been answered in various functions. To get the answer of a question, simply type the function in last line The various available functions are: 1) plotting() : This function plots all the data of the crime rates 2) unusual_developments_in_crime() : This function finds the type of crime whic...
773f9c1b0c1ec2f90a88e6818661bddfaf7c6ef2
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/mindrecord/skip_test_mindrecord_shard.py
775dbd1d0d644491a157d5ada0d03626e73944ba
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
13,578
py
skip_test_mindrecord_shard.py
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
dbb5e5f7cdef0ef22617f004005a82a53581fd89
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-as/huaweicloudsdkas/v1/model/list_all_scaling_v2_policies_request.py
b629d99a08106ac0a0cf301a87c037521715e15a
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
18,933
py
list_all_scaling_v2_policies_request.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListAllScalingV2PoliciesRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key...
c3c825891d6c53e99e15f953af274b30b66da236
702347798650c4f125fcd5291a52e51e9d20c63c
/learn2learn/text/datasets/__init__.py
2f7f4a12ae26841128c1d281fce651932f3cb713
[ "MIT" ]
permissive
learnables/learn2learn
8c8165297d9567450eb83f0591014de1da5f7363
db5cee3795490071282bbdfa81179ef732349196
refs/heads/master
2023-09-03T07:05:45.651636
2023-07-03T18:50:46
2023-07-03T18:50:46
201,314,421
2,397
352
MIT
2023-07-03T18:50:47
2019-08-08T18:22:41
Python
UTF-8
Python
false
false
76
py
__init__.py
#!/usr/bin/env python3 from .news_classification import NewsClassification
0b00ff05403ea246489b5cf9812bb8934a5cd0e3
95b4a15808b9c412c8364db80fd619a65dd587e0
/src/compas/artists/exceptions.py
8b21c798c028e2fff8786b9e532ce54d605f2285
[ "MIT" ]
permissive
compas-dev/compas
11d5c4d9afd554833297b4a5dbe6a975e6940ce3
486e2e9332553240bcbd80e100d26bff58071709
refs/heads/main
2023-08-31T15:49:32.430570
2023-08-17T10:19:52
2023-08-17T10:19:52
104,857,648
286
116
MIT
2023-09-12T13:53:36
2017-09-26T08:28:01
Python
UTF-8
Python
false
false
784
py
exceptions.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division class DataArtistNotRegistered(Exception): """Exception that is raised when no artist is registered for a given data type.""" class NoArtistContextError(Exception): """Exception that is raised when no...