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
43b06401cdd5e2e6719530812e0bea8ab2e649e7
f754c7515ba6cd510748e74036a9148b7d4167c7
/chapter_1/module_1_3_linked_list.py
734272571fb3dcd3d8dc21ccc08052d5d7d15776
[]
no_license
ChangeMyUsername/algorithms-sedgewick-python
26497e986b8133beae526946fd7565d9e1f4163b
d3ccd86c93016c7fee270ad02e1a823d205cea80
refs/heads/master
2022-01-21T05:30:02.418482
2021-12-30T02:55:29
2021-12-30T02:55:29
35,562,449
330
110
null
2021-12-30T02:55:29
2015-05-13T17:06:50
Python
UTF-8
Python
false
false
8,854
py
module_1_3_linked_list.py
#!/usr/bin/env python # -*- encoding:UTF-8 -*- from __future__ import print_function import doctest from typing import Any, Union from common import Node class LinkedList(object): """ Linked list practice """ def __init__(self) -> None: """ Initialize method """ ...
7371f6b0417f2ddc834d47e4517b66b1c883aef4
c5fd80ede07f0972a9b99d0c65a0df40e6d487fa
/pyocd/coresight/ap.py
8a37ef06422b1d6ccaac94ed81a2eccb64cb4d4a
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pyocd/pyOCD
46330f3a10c9be381293d220cc025e0e347513ce
9253740baf46ebf4eacbce6bf3369150c5fb8ee0
refs/heads/main
2023-08-18T07:56:54.205305
2023-08-13T19:11:01
2023-08-13T19:11:01
13,862,423
507
204
Apache-2.0
2023-09-09T20:13:57
2013-10-25T14:10:05
Python
UTF-8
Python
false
false
56,484
py
ap.py
# pyOCD debugger # Copyright (c) 2015-2020 Arm Limited # Copyright (c) 2021-2022 Chris Reed # SPDX-License-Identifier: Apache-2.0 # # 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:...
cc6cd335f4ee015f38da41253900d995ae381064
05b0c763ab92086e69a8d00ae6465009c596f6bc
/tests/cpu/test_runtime_api_jit.py
edb76de82ded893386496b393d8dda6ce86ed913
[ "Apache-2.0" ]
permissive
intel/intel-extension-for-pytorch
60ce2af2ec3a1dacae0d0db13dd51a5b44512e61
7f9266789de7ca9d8bcf55606f3204f1a3640640
refs/heads/master
2023-09-01T09:13:16.866410
2023-08-31T08:00:37
2023-08-31T08:00:37
256,061,008
991
144
Apache-2.0
2023-08-13T13:56:07
2020-04-15T23:35:29
Python
UTF-8
Python
false
false
34,536
py
test_runtime_api_jit.py
import unittest import torch import intel_extension_for_pytorch as ipex from torch.testing._internal.jit_utils import JitTestCase from test_ao_jit_llga_utils import JitLlgaTestCase from test_runtime_api import TestInputOutputModule from common_ipex_conf import runtime_thread_affinity_test_env class SimpleNet(torch.nn...
183621c1fe2a60458bf8091aad4db6a4ebce5748
48ca6f9f041a1e9f563500c8a7fa04dbb18fa949
/docs/manual/gears/examples/mul.py
3314b206de649e3fbf4ef21a64b2566e84e3132a
[ "MIT" ]
permissive
bogdanvuk/pygears
71404e53d4689ec9cdd9db546bfc0f229a7e02da
705b11ab6de79868b25753fa9d0ce7128791b346
refs/heads/master
2023-07-08T11:38:54.625172
2022-03-07T12:29:00
2022-03-07T12:29:00
124,890,922
146
16
MIT
2022-08-15T07:57:08
2018-03-12T13:10:06
Python
UTF-8
Python
false
false
168
py
mul.py
from pygears.lib import drv, check from pygears.typing import Uint a = drv(t=Uint[4], seq=[0, 1, 2]) b = drv(t=Uint[4], seq=[0, 1, 2]) (a * b) | check(ref=[0, 1, 4])
5c0c3fee62039aac2fd9d316a1772944cf4e74ad
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/SQLAlchemy/sqlalchemy/dialects/sqlite/base.pyi
31efadb6c92076cc3f8d26e78242d1e4afe35e20
[ "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
5,816
pyi
base.pyi
from typing import Any import sqlalchemy.types as sqltypes from ...engine import default from ...sql import compiler from ...types import ( BLOB as BLOB, BOOLEAN as BOOLEAN, CHAR as CHAR, DECIMAL as DECIMAL, FLOAT as FLOAT, INTEGER as INTEGER, NUMERIC as NUMERIC, REAL as REAL, SMAL...
5d8fd1868953cd6ece6bd7ebb353a603fdb9cfe0
0cd893fddf3a43459030292dad953c3810713513
/clif/testing/python/extend_properties_test.py
926f856bbd6473ef5a384d0df096f95e463348b0
[ "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,437
py
extend_properties_test.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, ...
e1ccb8be90cc6c706336a56d4b72aa326d2a4405
568fa58296378fa129ab3349adf010daa44ed45b
/tests/common/test_run/cpu/pooling_run.py
5172da149b97c8999e38b241e9317a0ad63331a3
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
6,688
py
pooling_run.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 agreed to...
c2f443180c100ff196744f1fa6b0f133758b1731
f5870458d4e1b747bc0dbd30ab5d68c987e19d13
/pdoc/doc_pyi.py
2c8b10af95ad8050ad42388d4c6770770386dd1e
[ "Unlicense" ]
permissive
mitmproxy/pdoc
ab2527d85fc1cb507b463bb21457e998459cfb12
c10bc068ab07d250cef2ab91943887f6de537efb
refs/heads/main
2023-09-04T00:49:31.583747
2023-09-01T08:53:39
2023-09-01T08:53:39
11,885,132
1,274
150
Unlicense
2023-09-10T09:50:34
2013-08-04T21:12:50
Python
UTF-8
Python
false
false
4,060
py
doc_pyi.py
""" This module is responsible for patching `pdoc.doc.Doc` objects with type annotations found in `.pyi` type stub files ([PEP 561](https://peps.python.org/pep-0561/)). This makes it possible to add type hints for native modules such as modules written using [PyO3](https://pyo3.rs/). """ from __future__ import annotati...
acfa3abf7af351f4e5370ff1095e8e21b479ea00
349471295cbaea395f0f8e493dc010cf170f6ed0
/bayesian_bootstrap/tests/test_bootstrap.py
2a2a5fd4063d9df9a7823feb67bb782942a9c9d9
[ "MIT" ]
permissive
lmc2179/bayesian_bootstrap
f167a6f2c89a36b67ceec51ba1718e6b6010d6d6
93b8cf41b0675ec24a18e554f5011cdd07de7d91
refs/heads/master
2022-06-07T06:29:18.788807
2022-03-12T15:57:51
2022-03-12T15:57:51
89,321,721
127
22
MIT
2022-03-12T15:49:03
2017-04-25T05:42:32
Python
UTF-8
Python
false
false
8,262
py
test_bootstrap.py
import unittest import numpy as np import scipy import bayesian_bootstrap as bb from bayesian_bootstrap import ( mean, var, bayesian_bootstrap, central_credible_interval, highest_density_interval, BayesianBootstrapBagging, covar, ) from sklearn.linear_model import LinearRegression RNG = np....
b16d1369b50ab90ffaeb03d5eae6b85bc0f946a5
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/colossalai/shardformer/modeling/blip2.py
69730fd3d254e266441d4f18dd3068ce886726f5
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
hpcaitech/ColossalAI
a082ed08a3807b53c49d1f86835b9808590d9042
c7b60f75470f067d1342705708810a660eabd684
refs/heads/main
2023-09-01T04:13:13.834565
2023-08-30T15:07:21
2023-08-30T15:07:21
422,274,596
32,044
4,084
Apache-2.0
2023-09-14T15:19:54
2021-10-28T16:19:44
Python
UTF-8
Python
false
false
4,352
py
blip2.py
import math from typing import Optional, Tuple, Union import torch import torch.nn as nn def forward_fn(): def forward( self, hidden_states: torch.Tensor, head_mask: Optional[torch.Tensor] = None, output_attentions: Optional[bool] = False, ) -> Tuple[torch.Tensor, Optional[to...
16cab5c1db904939062fea82d6c2c204dc774a6e
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/ir/inference/test_trt_gather_nd_op.py
a6389756df915ab97cf2f38b85e7d67d9a8f115b
[ "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
3,846
py
test_trt_gather_nd_op.py
# Copyright (c) 2021 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...
9f6a4edaff1d2aa24375f7f92e5aa25ad21dcea2
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CalibPPS/ESProducers/python/ctppsOpticalFunctions_cff.py
a114bb9ad8249fd5e0697d67e27e2acb69725c63
[ "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
1,400
py
ctppsOpticalFunctions_cff.py
import FWCore.ParameterSet.Config as cms from CalibPPS.ESProducers.ctppsLHCInfo_cff import * # by default, (raw) optical functions are now loaded from CondDB using a GT #from CalibPPS.ESProducers.ctppsOpticalFunctionsESSource_cfi import * # ## add 2016 pre-TS2 configuration #config_2016_preTS2 = cms.PSet( # validit...
6fde79d880d2025985e443709a5e0e043f4713a5
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/collect-coins-in-a-tree.py
36af359520125ba6507f5c123a0921d4e885954a
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
1,057
py
collect-coins-in-a-tree.py
# Time: O(n) # Space: O(n) # tree, bfs class Solution(object): def collectTheCoins(self, coins, edges): """ :type coins: List[int] :type edges: List[List[int]] :rtype: int """ DISTANCE = 2 adj = [set() for _ in xrange(len(coins))] for u, v in edges:...
6afb61b6db57472525be08749ccea3bc70dd96aa
0db19410e9751790af8ce4a0a9332293e379c02f
/tests/test_models/test_backbones/test_resnet.py
4774f250c29165b5ffa494cbfa2b5956bd8f01b0
[ "Apache-2.0" ]
permissive
open-mmlab/mmpose
2c9986521d35eee35d822fb255e8e68486026d94
537bd8e543ab463fb55120d5caaa1ae22d6aaf06
refs/heads/main
2023-08-30T19:44:21.349410
2023-07-04T13:18:22
2023-07-04T13:18:22
278,003,645
4,037
1,171
Apache-2.0
2023-09-14T09:44:55
2020-07-08T06:02:55
Python
UTF-8
Python
false
false
23,537
py
test_resnet.py
# Copyright (c) OpenMMLab. All rights reserved. from unittest import TestCase import torch import torch.nn as nn from mmcv.cnn import ConvModule from mmengine.utils.dl_utils.parrots_wrapper import _BatchNorm from mmpose.models.backbones import ResNet, ResNetV1d from mmpose.models.backbones.resnet import (BasicBlock, ...
3c1b9cee1a561e64be5a8b96cf30b1068d4cbd48
4a5681a81c8720087291bcf6caacef083cb7af16
/src/python/strelka/tests/test_scan_vhd.py
f63c57e18b70c345def9cdf35418a522eb462c73
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
target/strelka
8d0801dbca270c46bd2ea998c0cf72f80e741cee
e42800362535a8fec956689e4de81235231022db
refs/heads/master
2023-08-18T15:35:01.150070
2023-08-15T12:05:07
2023-08-15T12:05:07
149,654,117
739
114
NOASSERTION
2023-09-12T18:18:25
2018-09-20T18:38:12
Python
UTF-8
Python
false
false
3,901
py
test_scan_vhd.py
from pathlib import Path from unittest import TestCase, mock from strelka.scanners.scan_vhd import ScanVhd as ScanUnderTest from strelka.tests import run_test_scan def test_scan_vhd(mocker): """ Pass: Sample event matches output of scanner. Failure: Unable to load file or sample event fails to match. ...
10a44a5111cd4aed9d692442c832a3fc22c030d5
03380a2cf46385b0d971e150078d992cd7840980
/.github/workflows/source/ci_matrix.py
79f4d878c5d8f535481f26d4b0df3fc430f0a084
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause-LBNL" ]
permissive
ECP-WarpX/WarpX
0cfc85ce306cc5d5caa3108e8e9aefe4fda44cd3
e052c6d1994e4edb66fc27763d72fcf08c3a112a
refs/heads/development
2023-08-19T07:50:12.539926
2023-08-17T20:01:41
2023-08-17T20:01:41
150,626,842
210
147
NOASSERTION
2023-09-13T23:38:13
2018-09-27T17:53:35
C++
UTF-8
Python
false
false
1,051
py
ci_matrix.py
#!/usr/bin/env python # Concatenation of tests in each of the 6 elements in CI matrix f = open('./ci_matrix_elements.txt') ; matrix_elements = f.readlines() ; f.close() # All tests read by prepare_file_ci.py f = open('./ci_all_tests.txt') ; all_tests = f.readlines() ; f.close() # Now let's make sure these two are equ...
e6104453fecfe933a0b51e333237071018d58530
ced3f2cdcfe770f2d018a4837c42326fb6e0d27d
/examples/graph/test_dice.py
d468609d12fb85747a7547864e5e79bf87442de2
[ "MIT", "CC0-1.0", "GPL-1.0-or-later" ]
permissive
DSE-MSU/DeepRobust
308a4c03887eb1394a6d68b64ac3d7837b32f395
d25d95b33724af9ab0385d5171c989f9b4ff2359
refs/heads/master
2023-08-11T00:42:08.091214
2023-06-29T13:24:19
2023-06-29T13:24:19
210,014,892
978
200
MIT
2023-09-11T02:56:14
2019-09-21T16:09:07
Python
UTF-8
Python
false
false
2,585
py
test_dice.py
import torch import numpy as np import torch.nn.functional as F import torch.optim as optim from deeprobust.graph.defense import GCN from deeprobust.graph.global_attack import DICE from deeprobust.graph.utils import * from deeprobust.graph.data import Dataset import argparse parser = argparse.ArgumentParser() parser....
f85e0d95e3d0f43dca4226baceb1e703f8a3effc
c46754b9600a12df4f9d7a6320dfc19aa96b1e1d
/examples/research_projects/distillation/scripts/binarized_data.py
951530d5c75aa6a8c52d880d820b7d1eae6037a5
[ "Apache-2.0" ]
permissive
huggingface/transformers
ccd52a0d7c59e5f13205f32fd96f55743ebc8814
4fa0aff21ee083d0197a898cdf17ff476fae2ac3
refs/heads/main
2023-09-05T19:47:38.981127
2023-09-05T19:21:33
2023-09-05T19:21:33
155,220,641
102,193
22,284
Apache-2.0
2023-09-14T20:44:49
2018-10-29T13:56:00
Python
UTF-8
Python
false
false
3,660
py
binarized_data.py
# coding=utf-8 # Copyright 2019-present, the HuggingFace Inc. team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
dfa9213abc7a8077d5ad4480f4cd6e03ca8babeb
6c628b7b72eef4dbcc982803eb18c20a01d50a25
/brownie/project/compiler/solidity.py
85a55b06213c823f39f792d1d638b700ac26eb98
[ "MIT" ]
permissive
eth-brownie/brownie
174c5cb549427f4814fa5a1dc9ede225acc983f8
bc7b511583060fdaff1d4b5269aedcc1cb710bc6
refs/heads/master
2023-09-04T15:53:39.804726
2023-06-12T07:27:29
2023-06-12T07:27:29
155,913,585
2,408
518
MIT
2023-09-06T14:20:17
2018-11-02T19:39:26
Python
UTF-8
Python
false
false
27,819
py
solidity.py
#!/usr/bin/python3 import logging from collections import deque from hashlib import sha1 from typing import Any, Dict, List, Optional, Set, Tuple, Union import solcast import solcx from requests.exceptions import ConnectionError from semantic_version import Version from solcast.nodes import NodeBase, is_inside_offset...
316c0fecafa033b8585f1103944a6a9460623e63
f1973e136f49f0b5ea2ec63c4d862188d197e5a5
/vms/migrations/0005_subnet_vxlan_id.py
e8e96b995795fcfed2556c740e304e6f56cfe344
[ "Apache-2.0" ]
permissive
erigones/esdc-ce
65dc7d84e1bca3e3fcec668f54acae20183096a2
7e3dedddbe821283d909393f333eed4acd452953
refs/heads/master
2023-02-07T17:57:15.970089
2022-02-03T12:55:14
2022-02-03T12:55:14
73,122,985
123
36
Apache-2.0
2023-01-24T23:22:54
2016-11-07T21:34:53
Python
UTF-8
Python
false
false
468
py
0005_subnet_vxlan_id.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vms', '0004_vm_node_add_note_field'), ] operations = [ migrations.AddField( model_name='subnet', nam...
9f3479e2ffe585c9f9317babfc9abdf01ed18d91
fcab2679a5c5030c54bbee10857a64263e8d7b46
/tests/lib/nftables_test.py
ba0986114b2caddcdfd4c0d6cc123fd657d7a786
[ "Apache-2.0" ]
permissive
google/capirca
38eb9339e565b30667d264e18e9b81ee0ac41d18
d145ca447e0e04895507777b8c5834c22e90df11
refs/heads/master
2023-08-28T02:37:19.814474
2023-08-23T13:59:33
2023-08-23T13:59:33
40,198,544
743
238
Apache-2.0
2023-09-11T20:02:40
2015-08-04T17:25:11
Python
UTF-8
Python
false
false
25,829
py
nftables_test.py
# Copyright 2023 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # unless required by applicable law or a...
06236c0df47767d47440065274f28ab950af74b2
0032d988541e85c47b5034c20ecf88220dde5a95
/openbook_auth/migrations/0041_usernotificationssettings_post_comment_reaction_notifications.py
1347dd1f5cf7c08abdcee2a1c21b7d2b47bcfa3e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
OkunaOrg/okuna-api
eabd37fef9d2be59b590ed8d72bee084ac377997
f87d8e80d2f182c01dbce68155ded0078ee707e4
refs/heads/master
2022-02-04T21:31:10.577601
2021-12-28T18:20:39
2021-12-28T18:20:39
151,052,951
185
92
MIT
2022-01-13T01:00:40
2018-10-01T07:44:46
Python
UTF-8
Python
false
false
492
py
0041_usernotificationssettings_post_comment_reaction_notifications.py
# Generated by Django 2.2.2 on 2019-06-21 08:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('openbook_auth', '0040_auto_20190606_0944'), ] operations = [ migrations.AddField( model_name='usernotificationssettings', ...
dc2f83c30c7c85047d72aeae41e6c3e4bfde18fe
ab40571d5051ad53c0f205fa797ba36eac516d06
/language/compgen/nqg/tasks/geoquery/funql_normalization_test.py
4fc9ac64464f8272c932fc2b264b7d556632ccdf
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
google-research/language
e941b1a92ab46d40d8d03bb0c314905cb6902ce2
ac9447064195e06de48cc91ff642f7fffa28ffe8
refs/heads/master
2023-08-24T23:10:13.207294
2023-05-25T20:47:18
2023-05-25T22:29:27
153,201,352
1,567
371
Apache-2.0
2023-07-06T23:03:15
2018-10-16T00:58:14
Python
UTF-8
Python
false
false
1,891
py
funql_normalization_test.py
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
aaa027a671af25cfdc00637b17087982f9be889d
52a32a93942b7923b7c0c6ca5a4d5930bbba384b
/dojo/tools/cobalt/parser.py
172982dd67d3bd3738898954110689f95e0bf8cf
[ "MIT-open-group", "GCC-exception-2.0", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LGPL-3.0-only", "GPL-3.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-3.0-or-later", "IJG", "Zlib", "LicenseRef-scancode-proprietary-license", "PSF-2.0", "LicenseRef-scancode-python-cwi...
permissive
DefectDojo/django-DefectDojo
43bfb1c728451335661dadc741be732a50cd2a12
b98093dcb966ffe972f8719337de2209bf3989ec
refs/heads/master
2023-08-21T13:42:07.238370
2023-08-14T18:00:34
2023-08-14T18:00:34
31,028,375
2,719
1,666
BSD-3-Clause
2023-09-14T19:46:49
2015-02-19T17:53:47
HTML
UTF-8
Python
false
false
2,839
py
parser.py
import csv import hashlib import io from dojo.models import Finding __author__ = "dr3dd589" class CobaltParser(object): def get_scan_types(self): return ["Cobalt.io Scan"] def get_label_for_scan_types(self, scan_type): return scan_type def get_description_for_scan_types(self, scan_type...
cb07d1870ef3bccdc1b7a66c87a73d2486145087
57592d24e21aa39ff93a246784fea957f74b4c84
/Pennylane Demos/1 - Basics/1 - Getting Started/3. Hybrid.py
d45f7c8d0829dcaf0beb14b05960cdf1e9ac4c84
[]
no_license
theerfan/Q
e334df61e862206adf24440297c735750f314311
a9855e8b5ac5193832bf822ecc866bc8650ea461
refs/heads/master
2022-10-14T19:53:28.246593
2022-09-13T06:57:02
2022-09-13T06:57:02
220,534,168
113
57
null
2022-09-13T06:57:03
2019-11-08T19:27:19
Jupyter Notebook
UTF-8
Python
false
false
1,074
py
3. Hybrid.py
import pennylane as qml from pennylane import numpy as np ## Plugin dev_fock = qml.device("strawberryfields.fock", wires=2, cutoff_dim=2) @qml.qnode(dev_fock, diff_method="parameter-shift") def photon_redirection(params): qml.FockState(1, wires=0) qml.Beamsplitter(params[0], params[1], wires=[0, 1]) retur...
7933526993992b6dbe3a68a40032b82d8cb40b34
f9f074c44b67a11d4630b5e1cc15e016e8d73cc8
/factory-ai-vision/EdgeSolution/modules/CVCaptureModule/stream_manager.py
c4673e41f5f6afdbdf9c2c1d79aa8b1421296923
[ "MIT" ]
permissive
Azure-Samples/azure-intelligent-edge-patterns
361694680c7e48d3761c5416175788355b684dcd
1d2f42cbf9f21157c1e1abf044b26160dfed5b16
refs/heads/master
2023-05-26T13:15:47.085088
2023-02-28T17:25:53
2023-02-28T17:25:53
186,706,933
193
164
MIT
2023-02-28T17:25:55
2019-05-14T22:02:41
JavaScript
UTF-8
Python
false
false
4,568
py
stream_manager.py
import logging import threading import zmq from streams import Stream # FIXME RON logger = logging.getLogger(__name__) # logger.setLevel(logging.INFO) class StreamManager(object): def __init__(self): self.streams = {} self.mutex = threading.Lock() self.context = None self.sender...
70b2e2a796ea19e5e56d71529672a31a547b9c95
9f73d653197b5218f1a5a02e06cb7f56d858a572
/pywikibot/data/memento.py
ed770fef9561737258b1bbcd9f022a44317bd1f4
[ "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
13,779
py
memento.py
"""Fix ups for memento-client package version 0.6.1. .. versionadded:: 7.4 .. seealso:: https://github.com/mementoweb/py-memento-client#readme """ # # (C) Shawn M. Jones, Harihar Shankar, Herbert Van de Sompel. # -- Los Alamos National Laboratory, 2013 # Parts of MementoClient class codes are # licensed under the ...
d7d00d30ec5b90d7939994f313f7a04afc9cdb53
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/ops-pkg/src/genie/libs/ops/ospf/iosxr/tests/ospf_output.py
f7492cba39f87b9128a52ca3831fd299d8a99c31
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
215,374
py
ospf_output.py
''' OSPF Genie Ops Object Outputs for IOSXR. ''' class OspfOutput(object): ############################################################################ # OSPF INFO OUTPUTS ############################################################################ # 'show protocols afi-al...
286e7d867b36f68a7658baceceb67f2289515319
40195e6f86bf8620850f0c56e98eae5693e88277
/coremltools/converters/mil/backend/nn/passes/conv1d_decomposition.py
48c207c55d81fa4de27eff38dcfb7cf447b13c7e
[ "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
3,705
py
conv1d_decomposition.py
# Copyright (c) 2023, 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 coremltools.converters.mil.mil import Block from coremltools.converters.mil.mil import Builder a...
54fbdac373dd47fdbf4da4baba2e188fbe3baa73
9a43f4b0d532fe5fab90a6cbbf62b3dd6c65a4a6
/tests/integration/test_poller.py
01a26ddc8c9fbd590312122e8819138c0e2863b7
[ "Apache-2.0" ]
permissive
saltstack/pepper
9cf0acc5ab3923c026ff612485bcfcc11e58b8e4
8ab18e8fb81c275e19c1345146116cf14b9f1223
refs/heads/develop
2023-08-07T03:10:32.344940
2023-05-03T12:53:12
2023-05-03T12:53:12
8,509,557
233
138
NOASSERTION
2023-05-04T20:10:40
2013-03-01T20:21:48
Python
UTF-8
Python
false
false
757
py
test_poller.py
# -*- coding: utf-8 -*- def test_local_poll(pepper_cli, session_minion_id): '''Test the returns poller for localclient''' ret = pepper_cli('--fail-if-incomplete', '*', 'test.sleep', '1') assert ret[session_minion_id] is True assert len(ret) == 1 def test_local_poll_long(pepper_cli, session_minion_id...
7257bcd2f4f9f87886e162679e92000c4b6eb257
5a07e1afa5d172dcd4288f12636edd9c53148073
/tests/benchmarks/test_benchmark.py
35fbf0c1ece450fb6003a1066a03f041dc46e1e2
[ "Apache-2.0" ]
permissive
scikit-hep/pyhf
3df3f9b12d1b362919629275b8746060833713f3
205eecfb0b57591eb6b70e98b01511797340a0c7
refs/heads/main
2023-09-02T18:50:35.990103
2023-08-31T00:10:41
2023-08-31T00:10:41
118,789,569
246
82
Apache-2.0
2023-09-13T21:57:02
2018-01-24T16:14:39
Python
UTF-8
Python
false
false
2,356
py
test_benchmark.py
import pyhf from pyhf.simplemodels import uncorrelated_background import numpy as np import pytest def generate_source_static(n_bins): """ Create the source structure for the given number of bins. Args: n_bins: `list` of number of bins Returns: source """ binning = [n_bins, -...
c063d4280d34710a7268541dfa38aa6351fe5a5c
a2721da4c1de8308966850d2f6dea1e334ace532
/docs/source/example.py
f83ea9c3d5d187736ff0d7aa8e764a73f3da1a2b
[ "Apache-2.0" ]
permissive
cdent/gabbi
bb895b9943051d674894ea692bc679a4847524d0
8ee6cb7b53abdfbe6e5648f485124b80011a6f40
refs/heads/main
2023-08-31T13:25:21.926791
2023-08-26T12:06:48
2023-08-26T12:06:48
27,924,304
152
51
NOASSERTION
2023-08-26T11:31:59
2014-12-12T14:46:59
Python
UTF-8
Python
false
false
904
py
example.py
"""A sample test module.""" # For pathname munging import os # The module that build_tests comes from. from gabbi import driver # We need access to the WSGI application that hosts our service from myapp import wsgiapp # We're using fixtures in the YAML files, we need to know where to # load them from. from myapp.t...
ceda9fd89e26e2c47dceee21524f1042011c4ebc
812d234c37a9291768018b20c54d45395c07ea97
/tavern/_core/pytest/util.py
7c0d94c1ec94b14d0c3baa07ec1884b94bfe8626
[ "MIT" ]
permissive
taverntesting/tavern
060f0cb6b13b5df7129342dce1fa68f16033dc8b
9f2d2be9c1321f3f51744675f3b30cb6dda22549
refs/heads/master
2023-08-10T12:37:22.337961
2023-08-05T18:24:24
2023-08-05T18:24:24
109,144,395
984
206
MIT
2023-08-05T17:59:21
2017-11-01T14:51:25
Python
UTF-8
Python
false
false
5,941
py
util.py
import logging from functools import lru_cache from typing import Any, Dict import pytest from tavern._core.dict_util import format_keys, get_tavern_box from tavern._core.general import load_global_config from tavern._core.pytest.config import TavernInternalConfig, TestConfig from tavern._core.strict_util import Stri...
7b220f956a9687a64510b5837980ff47a2782095
98d9a43778d2d0eebe3820ab3dfd0ceb488e204d
/core/modules/dockerscan/actions/scan/cli.py
50c06dd9e59003a8b30926d6b362d8cbf41b9302
[ "MIT" ]
permissive
jm33-m0/emp3r0r
f52c3ad75e23a250ff964bf6455677980e3ea281
a2f9dfb3fa489493fbf00e23013a2cda0259b82d
refs/heads/master
2023-08-31T04:32:10.688717
2023-08-10T17:04:36
2023-08-10T17:04:36
236,146,680
1,097
215
MIT
2023-09-07T06:29:45
2020-01-25T08:55:08
Go
UTF-8
Python
false
false
650
py
cli.py
import click from .model import * from .console import * from ..helpers import check_console_input_config @click.command(help="Search for Open Docker Registries") @click.pass_context @click.argument("target") @click.option("--timeout", "-t", "timeout", help="timeout for each port-check") @click.option("--ports", "-p...
49f37018b08eac8f38049d7bd7eb97cd0f9f6193
a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c
/notebook/numpy_vstack.py
c6072ce202cebd915fd5d5f5ad68bfc688cf5df2
[ "MIT" ]
permissive
nkmk/python-snippets
a6c66bdf999502e52f4795a3074ced63bf440817
f9dd286a9cf93f474e20371f8fffc4732cb3c4d5
refs/heads/master
2023-08-03T04:20:05.606293
2023-07-26T13:21:11
2023-07-26T13:21:11
98,900,570
253
77
MIT
2020-10-25T01:12:53
2017-07-31T14:54:47
Jupyter Notebook
UTF-8
Python
false
false
639
py
numpy_vstack.py
import numpy as np a1 = np.ones((2, 3), int) print(a1) # [[1 1 1] # [1 1 1]] a2 = np.full((2, 3), 2) print(a2) # [[2 2 2] # [2 2 2]] print(np.vstack([a1, a2])) # [[1 1 1] # [1 1 1] # [2 2 2] # [2 2 2]] print(np.concatenate([a1, a2], 0)) # [[1 1 1] # [1 1 1] # [2 2 2] # [2 2 2]] a1 = np.ones(3, int) print(a...
e763a27be9368e46d88a49f61e8e1710aa6a73c5
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/android/instant_start/benchmark.py
4d6fe567e2eda020aa2210d39c9e8bf7d73f7014
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
7,362
py
benchmark.py
#!/usr/bin/env vpython3 # # Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Run benchmark for Instant start.""" from __future__ import print_function import argparse from datetime import datetime import logging import os impo...
708b4abf46e453455f46fae4a74935a6880d2ec5
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CloudIncidentResponse/Scripts/ExtractIndicatorsCloudLogging/ExtractIndicatorsCloudLogging_test.py
75b52c53dd0fab25bd916c29da452a500535b25e
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
3,528
py
ExtractIndicatorsCloudLogging_test.py
from ExtractIndicatorsCloudLogging import extract_aws_info, extract_gcp_info, extract_event_info def test_extract_event_info(): aws_event = { "userIdentity": { "arn": "arn:aws:sts::1111111111:assumed-role/test-1111111034205526016/test", "accessKeyId": "1111111111", "ins...
ca806d2d0fa75b27306cb721d915254949aa2cd7
6d40c76564adacb9c481e87582c239f9b708f592
/benchmarking/harness.py
1be054d0686d071eff769584c3531a272fb9d466
[ "Apache-2.0" ]
permissive
facebook/FAI-PEP
40c9636fcc5f6416783384667449b76d7354d156
75ffd8ba91da66987904603a2a13c259c59840c9
refs/heads/main
2023-08-31T07:48:53.781883
2023-08-29T18:41:53
2023-08-29T18:41:53
111,588,048
390
93
Apache-2.0
2023-06-12T23:37:55
2017-11-21T18:47:29
Python
UTF-8
Python
false
false
12,653
py
harness.py
#!/usr/bin/env python ############################################################################## # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. ################################...
0c650f0c01cd0d9e01c16078280950ab2bb7d6dc
38c290c804501eff492f1fa7ee8abb00b46c70ef
/runtime/space/operators.py
5a3eb2d583e6d110f3bbd42a15c5d2445175d00a
[ "MIT" ]
permissive
cheery/lever
8a9524387bf3bc511889fa9a48f89927fd0b78f2
6fa8cd6afec440b32232f87236b0457fb8bfb8b1
refs/heads/master
2021-01-25T22:09:13.829448
2018-05-14T00:09:17
2018-05-14T00:09:17
45,874,533
144
13
null
2017-10-27T03:04:05
2015-11-09T23:40:43
Python
UTF-8
Python
false
false
14,157
py
operators.py
# We may want to invert many of these dependencies. from builtin import Builtin, signature from interface import Object, Interface, null, cast from customobject import Id from multimethod import Multimethod from numbers import Float, Integer, Boolean, to_float, to_int, true, false, is_true, is_false, boolean from rpyth...
0c76c6464bfcf003793567ba4cb0c1b41b3d9276
7ae27ce9a8c477855f8fd5fac54685716d868349
/invokeai/backend/__init__.py
2e77d12eca4d62d5faac3c50327f2d2c9c613475
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
invoke-ai/InvokeAI
5f7a2c1f19b1f686099a8cf4cec85aa9c7b6d81d
2bd3cf28eabff2dcf3339669be222061dd208cb8
refs/heads/main
2023-08-31T07:06:56.721576
2023-08-30T19:05:17
2023-08-30T19:05:17
525,592,995
15,987
1,678
Apache-2.0
2023-09-14T20:29:39
2022-08-17T01:04:27
TypeScript
UTF-8
Python
false
false
236
py
__init__.py
""" Initialization file for invokeai.backend """ from .model_management import ModelManager, ModelCache, BaseModelType, ModelType, SubModelType, ModelInfo # noqa: F401 from .model_management.models import SilenceWarnings # noqa: F401
5d82cd48219d7a0593be41e360001528df9b80a0
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/nxos/show_lag.py
a4c9f47b4672594eb0c9e717d4b43eb75c683b5e
[ "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
19,939
py
show_lag.py
"""show_lag.py supported commands: * show lacp system-identifier * show lacp counters * show lacp neighbor * show port-channel summary * show port-channel database """ # Python import re # Metaparser from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Schema,...
f89b61cbc183480704194b0871820ca3c7fb1707
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-quality/soda-core/soda/core/soda/execution/check/group_by_check.py
0ab393ed390a8212976f2eb28a938f7abdbf292e
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown" ]
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
4,726
py
group_by_check.py
from __future__ import annotations import copy from soda.execution.check.check import Check from soda.execution.check_outcome import CheckOutcome from soda.execution.check_type import CheckType from soda.execution.metric.metric import Metric from soda.execution.partition import Partition GROUP_BY_RESULTS = "group_by...
1cf83f8a2c0c95789dbe69fa578b3ce258129a56
5d31f28f56b125f7e22d538a735587cfe779cd2d
/thumbor/context.py
b35dcca156ece8158f533fc5a70244e5e09b64d0
[ "MIT" ]
permissive
thumbor/thumbor
c3cb0fbdbf66492d321d4d64e9bc3cb59bfbc1fa
3e35fc024e895313d4b8c1da29286b96859ae122
refs/heads/master
2023-07-19T20:45:22.507924
2023-01-27T16:34:15
2023-07-14T19:02:46
1,488,139
7,641
839
MIT
2023-09-05T21:36:16
2011-03-16T17:30:05
Python
UTF-8
Python
false
false
9,207
py
context.py
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com from os.path import abspath, exists from thumbor.filters import Fil...
9976e54ba4685272ae614819d4d680a12e234a15
165be8367f5753b03fae11430b1c3ebf48aa834a
/tools/converter/tools/testConvertor.py
8316f319566a8daf943f19b6dc87a2e2b62f7d04
[ "Apache-2.0" ]
permissive
alibaba/MNN
f21b31e3c62d9ba1070c2e4e931fd9220611307c
c442ff39ec9a6a99c28bddd465d8074a7b5c1cca
refs/heads/master
2023-09-01T18:26:42.533902
2023-08-22T11:16:44
2023-08-22T11:16:44
181,436,799
8,383
1,789
null
2023-09-07T02:01:43
2019-04-15T07:40:18
C++
UTF-8
Python
false
false
309
py
testConvertor.py
#!/usr/bin/python import os import sys def run(path): cmd = "find " + path + " -name \"*.pb\" | xargs -I {} ./MNNConvert -f TF --modelFile {} --MNNModel temp.mnn --bizCode test" # print(cmd) print(os.popen(cmd).read()) return 0 if __name__ == "__main__": path = sys.argv[1] run(path)
0870392d659b1a3103ff454d3e868b6b54f36731
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-ecd/aliyunsdkecd/request/v20200930/CreateDesktopsRequest.py
79a3d134615d3f51bf206b0a0f645645807f6d56
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
8,185
py
CreateDesktopsRequest.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 u...
6da0f606b29e0b7003987e42c00bb8e11ef2e15b
66f383fec502102bfec58ed8cb9c43a71e599c55
/utils/text/general.py
790f97308e92da9c3d76e1502a7d41d1f952daad
[ "MIT" ]
permissive
hacktoolkit/django-htk
0a984a28f7fbc7eed8e2b1975d210792ddbee829
935c4913e33d959f8c29583825f72b238f85b380
refs/heads/master
2023-08-08T11:52:54.298160
2023-07-21T19:08:37
2023-07-21T19:08:37
15,924,904
210
65
MIT
2023-09-08T23:59:28
2014-01-15T04:23:40
Python
UTF-8
Python
false
false
236
py
general.py
def is_alpha(c): result = ord('A') <= ord(c.upper()) <= ord('Z') return result def is_ascii(c): result = 0 <= ord(c) <= 127 return result def is_ascii_extended(c): result = 128 <= ord(c) <= 255 return result
38b4b03992b9f6fc5c2a36360e9ce23f24f81b49
75f6caa20ec4de14fabd30b29cc4e7a47a4e6ec9
/gym_trading/tests/test_broker.py
f15e686c9c057756dd9d6546d006c339ba241315
[]
no_license
sadighian/crypto-rl
e9cd89279554278732e1017923fbb502f031ddc0
078081e5715cadeae9c798a3d759c9d59d2041bc
refs/heads/arctic-streaming-ticks-full
2022-01-27T18:15:57.831073
2021-11-30T13:52:18
2021-11-30T13:52:18
138,102,346
676
202
null
2022-01-12T11:58:09
2018-06-21T01:06:01
Python
UTF-8
Python
false
false
14,715
py
test_broker.py
import unittest from gym_trading.utils.broker import Broker from gym_trading.utils.decorator import debugging from gym_trading.utils.order import LimitOrder, MarketOrder class MarketOrderTestCases(unittest.TestCase): @debugging def test_case_one(self): print('\nTest_Case_One') test_position...
ab1a3eaac361056ea9a765345d2f85716610db79
48d6a692666f85a353cd2c7a89581e2207fdd6a0
/pymeasure/instruments/velleman/velleman_k8090.py
366081ae51713d83b7af7e1adefa42ea7af04f7d
[ "MIT" ]
permissive
pymeasure/pymeasure
21fa07592adfb63944fd35723d82853133e103be
c04cfc05dc48fa5f3c4ff1e0f223751da6e7d8b5
refs/heads/master
2023-09-02T02:07:05.118773
2023-09-01T18:27:43
2023-09-01T18:27:43
18,864,038
271
172
MIT
2023-09-11T16:42:56
2014-04-17T02:31:52
Python
UTF-8
Python
false
false
9,164
py
velleman_k8090.py
# # This file is part of the PyMeasure package. # # Copyright (c) 2013-2023 PyMeasure Developers # # 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 limit...
89e22a0feb088890ea2e8325de1eddc9ef393e8d
becf2cde221ca33b165d348203400e3290630f81
/winpython/_vendor/qtpy/tests/QtDesigner.py
969d8480b1b6aa448f131f0f7fbcad6b089adf40
[ "MIT" ]
permissive
winpython/winpython
620fe3c7aa91e593f614d5806184f28eb6c8f480
323c6fef4100220a84daf964ed0b78058862bc29
refs/heads/master
2023-09-05T00:43:32.719477
2023-08-26T14:59:41
2023-08-26T14:59:41
24,275,324
1,796
373
MIT
2023-08-26T14:59:42
2014-09-20T21:47:26
Python
UTF-8
Python
false
false
646
py
QtDesigner.py
# ----------------------------------------------------------------------------- # Copyright © 2014-2015 Colin Duquesnoy # # Licensed under the terms of the MIT License # (see LICENSE.txt for details) # ----------------------------------------------------------------------------- """Provides QtDesigner classes and func...
329b595238379ded4d3ef3aa312f6990b481dd06
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_functionapp_access_restriction_commands.py
ef764c499aa305b74e8387ded5956e79a62621de
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
13,723
py
test_functionapp_access_restriction_commands.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
9abbc9f9e312bcdff76e63cbf72a409425f5c4f3
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/0109. Convert Sorted List to Binary Search Tree/0109.py
40bbdf9b97147efc8f6e18fae0186a00e309728a
[ "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
574
py
0109.py
class Solution: def sortedListToBST(self, head: ListNode) -> TreeNode: def findMid(head: ListNode) -> ListNode: prev = None slow = head fast = head while fast and fast.next: prev = slow slow = slow.next fast = fast.next.next prev.next = None return slo...
39711f632d7b362d5a7126f40a15067bf2b8c0aa
d6aa06bd9925ad39a045c7bf4534776fe417f4b4
/asm/cosasm.py
b377313a19cb6aaf95230374537a8878aaaaf62c
[ "MIT", "Unlicense" ]
permissive
clbx/Cosmic
a86e099b221ed7ec15725a7141d784e5ff7032ec
98eef8e1ee3105dd51e8d5b015920218c5807009
refs/heads/master
2022-01-03T04:37:33.965491
2021-12-05T21:43:41
2021-12-05T21:43:41
206,172,141
115
5
MIT
2020-05-27T17:01:02
2019-09-03T21:05:13
C++
UTF-8
Python
false
false
14,923
py
cosasm.py
import sys import math import re #The Instruction Set InstructionSet = { "IMP NOP":0x00, "IMP HCF":0x01, "IMP PUSH":0x02, "IMP POP":0x03, "REG SWP":0x04, "IMM CALL":0x05, "ABS CALL":0x06, "IND CALL":0x07, "IMP RET":0x08, "IMM ADD":0x10, "ABS ADD":0x11, "IND ADD":0x12, ...
93253d737d1f34322fddf155222cdac824eb5617
5c76189530289332d0e80f2261b4358b71f915eb
/tests/conftest.py
7a869da16ee7f6f377c38cf336a106c5df5cc130
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/qlib
4fe53e6512b1846d44efed67a2365438b860ed02
4c30e5827b74bcc45f14cf3ae0c1715459ed09ae
refs/heads/main
2023-08-29T05:29:23.001517
2023-08-24T13:24:50
2023-08-24T13:24:50
287,463,830
12,822
2,342
MIT
2023-09-06T09:03:31
2020-08-14T06:46:00
Python
UTF-8
Python
false
false
247
py
conftest.py
import os import sys """Ignore RL tests on non-linux platform.""" collect_ignore = [] if sys.platform != "linux": for root, dirs, files in os.walk("rl"): for file in files: collect_ignore.append(os.path.join(root, file))
eabee2c81a1a46a21a2dc19a27358621545a7305
b8441dc1987be9e64fa3081d456b2a3060ec44d1
/mars/lib/uhashring/ring.py
c1201ca26ea79d35c9fc34e4400d3675eec721d9
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mars-project/mars
f99fefbce999d58a9249bc72046787a9731c9c73
c36c53fa22e10ef9477d9c454401a2f281375f31
refs/heads/master
2023-07-23T00:23:55.133015
2023-07-03T11:44:54
2023-07-03T11:44:54
160,543,708
2,704
362
Apache-2.0
2023-09-11T07:57:35
2018-12-05T16:04:03
Python
UTF-8
Python
false
false
11,109
py
ring.py
# -*- coding: utf-8 -*- from bisect import bisect from .ring_ketama import KetamaRing from .ring_meta import MetaRing class HashRing(object): """Implement a consistent hashing ring.""" def __init__(self, nodes=[], **kwargs): """Create a new HashRing given the implementation. :param nodes: ...
31fadcc61cb8b221b9737be5b9d9882524408c93
ecaaa7d9137225b05a59bc1127e8f5351a26fd3f
/tests/tests/test_app_settings.py
fb77ade55da29682d4b8562ac963be5fb1fd1ec5
[ "MIT" ]
permissive
klis87/django-cloudinary-storage
ad787f08c3e77f5d4358419ad24e4f3c69bffdca
6f9ad3f61656df3c22ae1815d35c84c7fd4d264a
refs/heads/master
2022-10-25T18:54:57.856582
2022-09-01T11:14:08
2022-09-01T11:54:47
63,619,003
131
37
MIT
2022-09-01T11:54:47
2016-07-18T16:25:36
Python
UTF-8
Python
false
false
3,396
py
test_app_settings.py
import os from django.test import SimpleTestCase, override_settings from django.core.exceptions import ImproperlyConfigured from cloudinary_storage.app_settings import set_credentials from cloudinary_storage import app_settings from .test_helpers import import_mock mock = import_mock() @mock.patch.dict(os.environ,...
bfd50b9b06bd27d79656521d35e5462c43255683
fce81b804cae23f525a5ad4370b684bf0dc531a5
/numpy/f2py/cfuncs.py
f89793061bada6c0a6352282664f6753afeff0bb
[ "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
numpy/numpy
ba2abcc1d2d46affbb6aabe5aed6407b4b57507e
dc2ff125493777a1084044e6cd6857a42ee323d4
refs/heads/main
2023-09-05T10:10:52.767363
2023-09-04T18:03:29
2023-09-04T18:03:29
908,607
25,725
11,968
BSD-3-Clause
2023-09-14T21:26:09
2010-09-13T23:02:39
Python
UTF-8
Python
false
false
51,719
py
cfuncs.py
#!/usr/bin/env python3 """ C declarations, CPP macros, and C functions for f2py2e. Only required declarations/macros/functions will be used. Copyright 1999,2000 Pearu Peterson all rights reserved, Pearu Peterson <pearu@ioc.ee> Permission to use, modify, and distribute this software is given under the terms of the Num...
4170e6b53bce96976f648ff8ef97202d03707ded
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/notebook/services/config/manager.py
59f267dd9615573a95e5855ce06aadf5fa609032
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
2,056
py
manager.py
"""Manager to read and modify frontend config data in JSON files. """ # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import os.path from notebook.config_manager import BaseJSONConfigManager, recursive_update from jupyter_core.paths import jupyter_config_dir, jupyt...
c282cf290f9bf42b73587b09a519f6dbf610368d
360328d098a74581d0822fba489dd15e0d4e7ab3
/src/richie/plugins/simple_picture/helpers.py
669919c3bece4558a314d76de0090c436cc97a7e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
openfun/richie
0cef545486267bfb40e75e5fb2ce2a74f85a53ff
f2d46fc46b271eb3b4d565039a29c15ba15f027c
refs/heads/master
2023-08-31T23:51:37.714179
2023-08-29T15:25:04
2023-08-29T15:48:39
111,388,461
238
96
MIT
2023-09-13T12:48:53
2017-11-20T09:23:40
Python
UTF-8
Python
false
false
1,894
py
helpers.py
"""SimplePicture plugin for DjangoCMS.""" from .defaults import SIMPLEPICTURE_PRESETS def get_picture_info(instance, preset_name): """ Compute picture information for a given preset defined in settings. A preset is of the form: "default": { "src": {"size": (1000, 1000), "crop": "smart"}, # e...
49886d898b2e7b62fc86264df9a26c8aaa210491
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/pytorch/source/caffe2/python/operator_test/checkpoint_test.py
dc42d471f722b41ac3421b69abe5d7fdae8df104
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
1,570
py
checkpoint_test.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, workspace import os import shutil import tempfile import unittest class CheckpointTest(unittest.TestCase): """A simple test case to ...
30f99c6e8b0ed683da472c8b5d6c0186e3067171
ce1c91c33d9b612e97361527e5a974996208c90d
/glue/plugins/dendro_viewer/qt/layer_style_editor.py
c72401393fea855c3d7c60828fc2430612b5b098
[ "BSD-3-Clause" ]
permissive
glue-viz/glue
5f52faaf91e1ca4822d3983b6a4b9b60e8807f38
1a5c7676c025a1a025068b806f6f90ed53bba543
refs/heads/main
2023-09-04T09:24:00.519833
2023-08-17T09:40:04
2023-08-17T09:40:04
1,768,238
609
149
NOASSERTION
2023-09-13T20:56:14
2011-05-18T20:58:54
Python
UTF-8
Python
false
false
320
py
layer_style_editor.py
import warnings from glue.utils.error import GlueDeprecationWarning warnings.warn('Importing from glue.plugins.dendro_viewer.qt.layer_style_editor is deprecated, use glue_qt.plugins.dendro_viewer.layer_style_editor instead', GlueDeprecationWarning) from glue_qt.plugins.dendro_viewer.layer_style_editor import * # noqa
a3f091f94e9b1174f3bce17bf2b149ac9d110005
c1b32c2e36f64c6d7c352242e9e1f6b16ea02da5
/tf_explain/utils/image.py
f7638e5bc383c6acff5a2eb0d72e85b2af44c207
[ "MIT" ]
permissive
sicara/tf-explain
00246fde5305ad96611fdba23563c97fbc4cdc38
9d7d1e900ec3e3e4b5338fbc43dfb93539acecc2
refs/heads/master
2023-08-21T22:58:55.150396
2022-06-30T08:14:18
2022-06-30T08:14:18
196,956,879
1,033
122
MIT
2022-06-30T08:14:19
2019-07-15T08:26:24
Python
UTF-8
Python
false
false
1,196
py
image.py
""" Module for image operations """ import numpy as np import tensorflow as tf def apply_grey_patch(image, top_left_x, top_left_y, patch_size): """ Replace a part of the image with a grey patch. Args: image (numpy.ndarray): Input image top_left_x (int): Top Left X position of the applied ...
0579c0c75cb17a67241359ceacea8afc70efb2dc
40dd8330e5f78c4348bbddc2c5acfd59d793dd51
/projects/gid_dataset/configs/deeplabv3plus_r101-d8_4xb2-240k_gid-256x256.py
70cb6005f81a4fa859a2abf8cc1b4afe59893ab3
[ "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
557
py
deeplabv3plus_r101-d8_4xb2-240k_gid-256x256.py
_base_ = [ '../../../configs/_base_/models/deeplabv3plus_r50-d8.py', './_base_/datasets/gid.py', '../../../configs/_base_/default_runtime.py', '../../../configs/_base_/schedules/schedule_240k.py' ] custom_imports = dict(imports=['projects.gid_dataset.mmseg.datasets.gid']) crop_size = (256, 256) data_prepro...
8a4bfeb7521340eaf3d6d46978514a3c9cbf18bb
21e67cc6406a3c8063fae691a5f8b5c46bf5d53f
/hcloud/deprecation/domain.py
cd1b53656f4a672c8a24dd639acddee277bbadd0
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hetznercloud/hcloud-python
6b524f4519fb933d65fbf039e7f78b251b493d10
982e35b47e36e24b140fcad84817a4b28dc09c2d
refs/heads/main
2023-09-03T14:08:03.920174
2023-08-25T14:14:21
2023-08-25T14:14:21
162,585,627
221
49
MIT
2023-09-12T07:02:46
2018-12-20T13:48:22
Python
UTF-8
Python
false
false
1,139
py
domain.py
from __future__ import annotations from dateutil.parser import isoparse from ..core import BaseDomain class DeprecationInfo(BaseDomain): """Describes if, when & how the resources was deprecated. If this field is set to ``None`` the resource is not deprecated. If it has a value, it is considered deprecated. ...
99e4b6436859d0250607172794a3f67adb17e0da
c9502eb1420a32a7bf36a32391d6b66b7018f9a7
/docker/jupyter_config.py
ef5a95f6ee3f0520d37b28d717ebab30f1a4f5a4
[ "MIT" ]
permissive
kundajelab/dragonn
ae81f00885494e61b81a6ce359130e2283038364
d2442a27a3991a18717ef199e3197d6692f14c33
refs/heads/master
2023-08-13T21:52:20.555859
2022-07-08T03:29:04
2022-07-08T03:29:04
60,218,942
262
95
MIT
2023-03-24T22:57:13
2016-06-02T00:03:18
Jupyter Notebook
UTF-8
Python
false
false
108
py
jupyter_config.py
c.NotebookApp.allow_origin = '*' c.NotebookApp.ip = '*' c.NotebookApp.port = 8888 c.NotebookApp.token = ''
37966bd679c8c763fb31432962446eeb25e6e619
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/testing/_internal/opinfo/definitions/sparse.py
ac042d3343f929d60aee9db5575c1964c09a90f0
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
34,059
py
sparse.py
import os import torch from torch.testing import make_tensor # noqa: F401 from torch.testing._internal.opinfo.core import ( # noqa: F401 BinaryUfuncInfo, ErrorInput, generate_elementwise_binary_tensors, ReductionOpInfo, sample_inputs_reduction, SampleInput, ) def _check_validate(op_info, sa...
abfd0ff5ac1187358225657ce8ebccaae2f1f2cd
450916eee7580beb928ed8f387db4f0a8c1aa508
/src/amuse/community/sei/__init__.py
615c14382f2921c90db05fa7628700106a07cf81
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
amusecode/amuse
42095545893f5a86ea79c2a52ce54d3ce8eb204f
b57c1e2fda1457d5025307be105c2aa59b19b574
refs/heads/main
2023-08-31T04:50:48.880044
2023-08-30T12:00:20
2023-08-30T12:00:20
18,516,331
158
118
Apache-2.0
2023-08-30T12:00:22
2014-04-07T12:35:07
AMPL
UTF-8
Python
false
false
27
py
__init__.py
from .interface import Sei
924b25dc9b52bfb38eeb4b80bc3fee1f6d5288a3
fa2bb4efa5e19bc8378012c61a33c0d2f5709f74
/conda_smithy/azure_defaults.py
8852535507d712e523a64b6a78fc25f463b22677
[ "BSD-3-Clause" ]
permissive
conda-forge/conda-smithy
bb7456ebaea7db3792edd5a5d1ae77f7b6bdf9e6
288dea84b54e5937d9202094b2bd0580aea12ebb
refs/heads/main
2023-08-27T12:12:36.091645
2023-08-24T07:06:28
2023-08-24T07:06:28
33,767,206
144
171
BSD-3-Clause
2023-09-12T07:56:48
2015-04-11T07:38:36
Python
UTF-8
Python
false
false
82
py
azure_defaults.py
AZURE_DEFAULT_ORG = "conda-forge" AZURE_DEFAULT_PROJECT_NAME = "feedstock-builds"
f8953bcd635870e65aa2a0f2ab1cdda37cb4a79a
b1d941be5cd577ce34475339b021784aa9af6395
/libcloudforensics/providers/aws/forensics.py
505b3b1ea6e79077a08659c6af47644b44f29447
[ "Apache-2.0" ]
permissive
google/cloud-forensics-utils
ef21ac682e040b5b977aa897aaf75b3b8ec1ed6d
38926ef5d075696b2b0f6714f3758be1e6ea1658
refs/heads/main
2023-09-04T11:05:42.136161
2023-08-28T03:25:22
2023-08-28T03:25:22
238,205,900
418
95
Apache-2.0
2023-09-14T05:55:03
2020-02-04T12:54:51
Python
UTF-8
Python
false
false
25,190
py
forensics.py
# -*- coding: utf-8 -*- # Copyright 2020 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 ...
2598971a0b31d3985cb7380a3673cfd76b908edc
2fd7505c101e03ea53a84fedde3ab1677c6947c6
/src/OpenSSL/debug.py
e39b128a7e2d94df9753a4a6beb2bd4bdac482d3
[ "Apache-2.0" ]
permissive
pyca/pyopenssl
2c9467932c16ff532210a388a1526813ccd2b232
b259bfbd660f5680783e1abfab27ed0d5bf91c1a
refs/heads/main
2023-08-27T19:14:25.037914
2023-07-29T15:46:41
2023-07-29T15:46:41
15,778,059
829
436
Apache-2.0
2023-09-05T11:56:59
2014-01-09T20:10:36
Python
UTF-8
Python
false
false
1,049
py
debug.py
from __future__ import print_function import ssl import sys import cffi import cryptography import OpenSSL.SSL from . import version _env_info = """\ pyOpenSSL: {pyopenssl} cryptography: {cryptography} cffi: {cffi} cryptography's compiled against OpenSSL: {crypto_openssl_compile} cryptography's linked OpenSSL: {...
8938bcffb914ab6f27f002312d13f11dfd1020fe
7ebb2f0458d3813737dd045473d7c1398d08392d
/tests/test_generate_distance_matrix.py
f44ba7061b99d577852dd0d53b5949aa99a9e093
[ "Python-2.0", "BSD-3-Clause" ]
permissive
clEsperanto/pyclesperanto_prototype
b3192d6984f45571fe0a7dfcceee2058bc4debbe
b465c8669f8e9326874139cf4b9c9af22c22757c
refs/heads/master
2023-09-04T11:07:55.828329
2023-08-25T17:18:30
2023-08-25T17:18:30
248,206,619
152
36
BSD-3-Clause
2023-05-23T09:44:51
2020-03-18T10:56:29
Jupyter Notebook
UTF-8
Python
false
false
981
py
test_generate_distance_matrix.py
import pyclesperanto_prototype as cle import numpy as np def test_generate_distance_matrix(): gpu_input = cle.push(np.asarray([ [0, 0, 0, 0, 0], [0, 1, 0, 3, 0], [0, 0, 0, 0, 0], [0, 0, 2, 0, 0], [0, 0, 0, 0, 4] ])) gpu_reference = cle.push(np...
e03c1ea59fb37817bb8d9f67d83c8fb1ed7da1d4
a257e6ae61a5448d4ebff0c23de35cbaa2748c69
/basketball_reference_scraper/constants.py
c8d3c60747e2c429070bb5fc2b75fa0e38e2ef9b
[ "MIT" ]
permissive
vishaalagartha/basketball_reference_scraper
ceed216682d853ec3a9e193977e4504187e4ed87
cbda552ac8818a1ddafed2d73726ea8de25b19c4
refs/heads/master
2023-05-26T14:07:20.895765
2022-08-19T17:15:56
2022-08-19T17:15:56
232,410,409
240
97
MIT
2023-09-06T16:05:28
2020-01-07T20:23:37
Python
UTF-8
Python
false
false
3,001
py
constants.py
TEAM_TO_TEAM_ABBR = { 'ATLANTA HAWKS': 'ATL', 'ST. LOUIS HAWKS': 'SLH', 'MILWAUKEE HAWKS': 'MIL', 'TRI-CITIES BLACKHAWKS': 'TCB', 'BOSTON CELTICS': 'BOS', 'BROOKLYN NETS': 'BRK', 'NEW JERSEY NETS' : 'NJN', 'NEW YORK NETS' : 'NYN', 'CHICAGO BULLS': ...
0f38f3678de35a8d5dcbadd9772dd3792f47ecca
a29afc1d7342271ecfd2f4952c859a7a6e665a7a
/stellar_sdk/xdr/transaction_signature_payload_tagged_transaction.py
44b5d78e3f94353ff1a20fd7b9e0bb1ffbcdf5c2
[ "Apache-2.0" ]
permissive
StellarCN/py-stellar-base
20252abb8ae90b20ac4d7a071046b52a8ccfb273
259ae05ca8155bd1e09fc5d83b8f6c6431eedf31
refs/heads/main
2023-09-02T17:18:18.158221
2023-07-21T02:47:10
2023-07-21T02:47:10
43,143,745
365
205
Apache-2.0
2023-09-14T02:08:18
2015-09-25T13:26:01
Python
UTF-8
Python
false
false
3,203
py
transaction_signature_payload_tagged_transaction.py
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib3 import Packer, Unpacker from .envelope_type import EnvelopeType from .fee_bump_transaction import FeeBumpTransaction from .transaction import Transaction __all__ = ["TransactionSignaturePayloadTagged...
b4a8d03fb418a1eb93cfc9ae61927996b88f3b91
306db13e7cbfb944323dca287cafe39440e28afa
/weasyl/frienduser.py
63319158c15a7ebee9e6d4884b51ac135973be11
[ "Apache-2.0" ]
permissive
Weasyl/weasyl
3c03fed8ad9475c35725742c9d33589ac38832fc
dc63e71423e0be7efb3588152f980a7e3185ffb7
refs/heads/main
2023-08-11T07:33:16.351558
2023-08-05T02:28:25
2023-08-05T02:28:25
58,244,355
126
48
Apache-2.0
2023-09-12T02:31:05
2016-05-07T01:53:26
Python
UTF-8
Python
false
false
5,758
py
frienduser.py
import sqlalchemy as sa from weasyl import define as d from weasyl import ignoreuser from weasyl import media from weasyl import welcome from weasyl.error import WeasylError def check(userid, otherid): """ Check whether two users are confirmed friends. A user is considered their own friend. """ ...
a82c438ad4e2fa84f9cb37a366ec6cd7f6134dae
c530897cb72b6943c7226b25824444cad5f3503b
/usaspending_api/download/v2/year_limited_downloads.py
65663153a72697d925f4c7b1b043abf04cd0da23
[ "CC0-1.0" ]
permissive
fedspendingtransparency/usaspending-api
fc63a22d32ea0207b7273d3e1ef26ba9dbabc42a
38f920438697930ae3ac57bbcaae9034877d8fb7
refs/heads/master
2023-09-01T22:00:36.633612
2023-08-29T18:39:18
2023-08-29T18:39:18
65,394,827
276
118
CC0-1.0
2023-09-14T20:33:15
2016-08-10T15:39:45
Python
UTF-8
Python
false
false
667
py
year_limited_downloads.py
from usaspending_api.download.v2.base_download_viewset import BaseDownloadViewSet from usaspending_api.download.v2.request_validations import AwardDownloadValidator class YearLimitedDownloadViewSet(BaseDownloadViewSet): """ This route sends a request to the backend to begin generating a zipfile of award data ...
67285f1b29d78ecd6c225509f62129acbdaaa67b
9c774a31ff1e98a6366e71e54e84ea97e6f050a2
/tables/misc/proxydict.py
df288ef4cb3051cf1afb99c4706d4f758b976145
[ "BSD-3-Clause" ]
permissive
PyTables/PyTables
65c355d47d68b5e8f4240fc7cc32906c3b6f2eea
f3817d7637b465de1a2ab5da9dffd3aba185c331
refs/heads/master
2023-08-30T02:46:42.212028
2023-08-18T05:32:06
2023-08-18T05:32:06
1,844,194
1,076
267
BSD-3-Clause
2023-09-09T06:56:39
2011-06-03T19:44:46
Python
UTF-8
Python
false
false
1,851
py
proxydict.py
"""Proxy dictionary for objects stored in a container.""" import weakref class ProxyDict(dict): """A dictionary which uses a container object to store its values.""" def __init__(self, container): self.containerref = weakref.ref(container) """A weak reference to the container object. ...
a121703a2f8d2f991e3c15bd59e475ea36603290
e62c8ee151671b999c6720ab8c2aa2f96c0d7f55
/src/dependency_injector/ext/__init__.py
26e0e04b3493eda2e2636ab07303926100280a66
[]
permissive
ets-labs/python-dependency-injector
45645973456bb6494386ad12103d06e1f1be2cd8
cc2304e46e054ae08dc12995428759fbfb51af10
refs/heads/master
2023-08-23T03:59:53.509743
2022-12-19T03:14:24
2022-12-19T03:14:24
28,774,758
3,217
273
BSD-3-Clause
2023-09-08T21:46:18
2015-01-04T13:23:05
Python
UTF-8
Python
false
false
26
py
__init__.py
"""Extensions package."""
77b38ffb9f6aced0e09a097cefb4eb69c5d83e3b
1aa4a01014ff5408c8979d2ee91435515a376bcb
/src/ui/SWMM/Test_Run_SWMM.py
27003926b929c60ca2cd9c1a42500267979e7ebb
[]
no_license
USEPA/SWMM-EPANET_User_Interface
49b41b27bfcf7a934203935ccac3cee2ed7c538c
d49a589fc923c716c9ff607228282073126ce6cc
refs/heads/dev-ui-py3qt5
2022-10-06T14:55:55.322050
2022-09-26T19:25:09
2022-09-26T19:25:09
48,242,880
121
77
null
2020-09-15T15:18:32
2015-12-18T15:41:52
Python
UTF-8
Python
false
false
2,886
py
Test_Run_SWMM.py
import os, sys import sip for typ in ["QString","QVariant", "QDate", "QDateTime", "QTextStream", "QTime", "QUrl"]: sip.setapi(typ, 2) from Externals.swmm.model.swmm5 import pyswmm import Externals.swmm.outputapi.SMOutputSWIG as SMO from core.project_base import ProjectBase from core.swmm.swmm_project import SwmmPro...
788813c1a36f6cf7812b7e3784fd2a7d62e06594
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CommonTools/ParticleFlow/python/GeneratorTools/sortGenParticles_cff.py
22d1cc0b892f5a0751223f10fb84f51ca2949921
[ "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
379
py
sortGenParticles_cff.py
import FWCore.ParameterSet.Config as cms from SimGeneral.HepPDTESSource.pythiapdt_cfi import * decaysFromZs = cms.EDProducer( "GenParticlePruner", src = cms.InputTag("genParticles"), select = cms.vstring( "drop * ", # this is the default "keep+ pdgId = {Z0}", "drop pdgId = {Z0}" ) ) sortG...
4efd5eeb72080492bba55ecc09f37382497f9cc6
6415c13547e6943f7b65337cbd2790c4e18723c8
/netbox/core/api/serializers.py
4117a609cb6043da83a936a6283f9d60063498ed
[ "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
2,047
py
serializers.py
from rest_framework import serializers from core.choices import * from core.models import * from netbox.api.fields import ChoiceField, ContentTypeField from netbox.api.serializers import BaseModelSerializer, NetBoxModelSerializer from users.api.nested_serializers import NestedUserSerializer from .nested_serializers im...
93f1c3cc7c8d673714fb5b8ff6bb5ef6e39c1a0d
7af0ff378525ef6132f74bac0b1eb54ce4c40c08
/indico/core/plugins/controllers.py
3103f41cd726e9349eda36a98fe9dded6377a2c2
[ "MIT" ]
permissive
indico/indico
1126ee0ac3e9d36510a64989ce71be9c02680831
463951511d3a8409f944f98f29875c4323f3e897
refs/heads/master
2023-08-31T11:15:00.092526
2023-08-30T11:07:25
2023-08-30T11:07:25
2,113,067
1,549
429
MIT
2023-09-13T20:09:56
2011-07-27T13:56:30
Python
UTF-8
Python
false
false
2,589
py
controllers.py
# This file is part of Indico. # Copyright (C) 2002 - 2023 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from collections import defaultdict from operator import attrgetter from flask import flash, request from...
1ff3f70fc354a11b6cc4c0520c9d8e3fdfc2f231
6c88b2cea38b2cead9e2402d46a8fc64949c53df
/pkg/codegen/testing/test/testdata/output-funcs/python/pulumi_mypkg/list_storage_account_keys.py
823548345bece10124e2a2e9738625a1b3459f39
[ "Apache-2.0" ]
permissive
pulumi/pulumi
a9b36c32f0cdd445c22f9ca64ce26c9ae5147575
46e2753d02d46a1c077930eeccdfe6738f46c0d2
refs/heads/master
2023-08-19T10:25:49.849189
2023-08-16T04:59:07
2023-08-16T04:59:07
72,477,752
17,553
1,082
Apache-2.0
2023-09-14T21:05:35
2016-10-31T21:02:47
Go
UTF-8
Python
false
false
3,628
py
list_storage_account_keys.py
# coding=utf-8 # *** WARNING: this file was generated by test. *** # *** 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 . import...
a288d7dcdb592a42ed18eacfa54ae6869bb54fa7
e7bf1ff05319acc59bba5af5890041bd82c3e197
/mne/_fiff/tests/test_proc_history.py
185537d33c0cd9213f9e97f5ecd332632e908f94
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mne-tools/mne-python
7e8d7e945dfbbee6432a4955cf050fa823f2d34b
f44636f00666b8eb869417960926d01690ff4f42
refs/heads/main
2023-09-04T03:05:37.402100
2023-09-03T14:15:18
2023-09-03T14:15:18
1,301,584
2,437
1,418
BSD-3-Clause
2023-09-14T19:23:38
2011-01-28T03:31:13
Python
UTF-8
Python
false
false
1,437
py
test_proc_history.py
# Authors: Denis A. Engemann <denis.engemann@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # License: Simplified BSD from pathlib import Path import numpy as np from numpy.testing import assert_array_equal from mne.io import read_info from mne._fiff.constants import FIFF base_dir = Path(__file__).pare...
32df857d03e714de28d40edc4ac961eb77e56d87
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/tests/transformations/gpu_grid_stride_tiling_test.py
4418054cc9ae5025af4189781fd6d9d8f92ac22c
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
3,590
py
gpu_grid_stride_tiling_test.py
# Copyright 2019-2023 ETH Zurich and the DaCe authors. All rights reserved. """Tests for GPU grid-strided tiling transformation.""" from typing import List, Tuple import pytest import dace from dace.transformation.dataflow import TrivialTaskletElimination, GPUGridStridedTiling import numpy as np import scipy.sparse as ...
c2b94179d4c6e64f4d6dfdc5fa5b07dd239ff870
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-core/huaweicloudsdkcore/signer/hkdf.py
55ce03e8d6145196742784f8274ebac86517ec95
[ "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
3,711
py
hkdf.py
# coding: utf-8 """ 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");...
9b313b94f437ee01729c18252e147a976743f6d7
e03bce53de6f88c0e09f56e4fe11c36af0f1161f
/runway/variables.py
37a1f34bbcfd6c78ebe7a81f44ffad237e4fe0e2
[ "Apache-2.0" ]
permissive
onicagroup/runway
20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f
0763b06aee07d2cf3f037a49ca0cb81a048c5deb
refs/heads/master
2023-08-30T22:35:54.113981
2023-08-29T14:13:35
2023-08-29T14:13:35
122,529,924
156
79
Apache-2.0
2023-09-13T13:43:50
2018-02-22T20:12:55
Python
UTF-8
Python
false
false
29,955
py
variables.py
"""Runway variables.""" from __future__ import annotations import logging import re from typing import ( TYPE_CHECKING, Any, Dict, Generic, Iterable, Iterator, List, MutableMapping, MutableSequence, Optional, Set, Type, TypeVar, Union, cast, overload, ) ...
bdcf9d227d2f439b98f880588de1208251e9e709
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/terraform/checks/resource/alicloud/RDSInstanceLogDisconnections.py
5500f0c2882cd2081b55d8d1b192678ef808e9e7
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
287
py
RDSInstanceLogDisconnections.py
from checkov.terraform.checks.resource.alicloud.AbsRDSParameter import AbsRDSParameter class RDSInstanceLogDisconnections(AbsRDSParameter): def __init__(self): super().__init__(check_id="CKV_ALI_36", parameter="log_disconnections") check = RDSInstanceLogDisconnections()
856f8f3a3feb59bbdbce8542cba6377336ee5326
afbe5adc51a1aee0467a0bba87e249d8afc77069
/shapely/tests/legacy/test_buffer.py
4ed8ce5a3af4f77bf14a98a74501272697c84ef4
[ "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
shapely/shapely
0df99bfb45d01d35ac77d587b4665797541029c8
bc2dd229760fc2df102ab7d3c91834489cf76f1a
refs/heads/main
2023-09-04T11:20:42.376340
2023-08-19T21:28:11
2023-08-19T21:28:11
3,080,613
897
130
BSD-3-Clause
2023-09-12T20:38:36
2011-12-31T19:43:11
Python
UTF-8
Python
false
false
6,521
py
test_buffer.py
import unittest import pytest from shapely import geometry from shapely.constructive import BufferCapStyle, BufferJoinStyle from shapely.geometry.base import CAP_STYLE, JOIN_STYLE @pytest.mark.parametrize("distance", [float("nan"), float("inf")]) def test_non_finite_distance(distance): g = geometry.Point(0, 0) ...
3208f6eafd24547c1056c6108640fea24e9581f2
7d901e1a364d1fd7389bf9c1c46d08493a99b3d7
/overlayer/textractoverlayer/_version.py
34fc6b28b0d6ae8bd60135f791473daf2ae0ef1c
[ "Apache-2.0" ]
permissive
aws-samples/amazon-textract-textractor
9531e75783a37767a8c791c65149a1a2e5a55b82
e5051e53c062f8af60ec5fa9445affb0c7485f7b
refs/heads/master
2023-08-05T05:14:52.216417
2023-07-24T11:07:29
2023-07-24T11:07:29
185,276,103
286
117
Apache-2.0
2023-09-07T20:52:04
2019-05-06T21:43:30
Jupyter Notebook
UTF-8
Python
false
false
24
py
_version.py
__version__ = '0.0.11'
2a8f4c1665ad321c19bb938db9ef02838d019690
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/identity/azure-identity/azure/identity/__init__.py
8030b55ee033a7ce962c81d53daa7858955961f2
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
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,833
py
__init__.py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """Credentials for Azure SDK clients.""" from ._auth_record import AuthenticationRecord from ._exceptions import AuthenticationRequiredError, CredentialUnavailableError...
e2b10366f28427c3f14551641b5a60745fc225d3
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/twisted/trial/test/test_assertions.py
e3f0fcd2638ce36fc2542c5bc06093dd14788930
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
46,630
py
test_assertions.py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Tests for assertions provided by C{SynchronousTestCase} and C{TestCase}, provided by L{twisted.trial.unittest}. L{TestFailureTests} demonstrates that L{SynchronousTestCase.fail} works, so that is the only method on C{twisted.trial.unittest.Sy...
d1faab50e0a21ab258d22df8bde1b091bb73f1f6
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/decoding/GAD/fairseq/logging/metrics.py
7b56e31592da6f7362b1fee780071081df43fa28
[ "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "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
9,304
py
metrics.py
# 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. """ A standalone module for aggregating metrics. Metrics can be logged from anywhere using the `log_*` functions defined in this module. The l...
8253a6a3f5f89fa1e5f5d597b9a9efdcd347e920
1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d
/src/python/gem5/components/cachehierarchies/ruby/caches/mesi_three_level/l1_cache.py
e746579834e7f7a3376489b7e0bb71b5be808552
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
gem5/gem5
9ec715ae036c2e08807b5919f114e1d38d189bce
48a40cf2f5182a82de360b7efa497d82e06b1631
refs/heads/stable
2023-09-03T15:56:25.819189
2023-08-31T05:53:03
2023-08-31T05:53:03
27,425,638
1,185
1,177
BSD-3-Clause
2023-09-14T08:29:31
2014-12-02T09:46:00
C++
UTF-8
Python
false
false
4,049
py
l1_cache.py
# Copyright (c) 2022 The Regents of the University of California # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this lis...
38764c3abc78d9f668f84c48e4cb095f4f4f31e4
77044a7d5beabe7dbdaed4cbf0add6f877f3bf3c
/python/cross-stack-resources/native-objects/app.py
101ed9a63ad70b4d64012241a9a3c8a08c081328
[ "Apache-2.0" ]
permissive
aws-samples/aws-cdk-examples
1153f27ccbcc3b647e0a3f608a69279ebff1b27c
63caf4f3deddc8b00c9d2ae69c6886180143c3ee
refs/heads/master
2023-09-04T04:49:37.077412
2023-09-01T20:48:26
2023-09-01T20:48:26
168,772,474
4,366
2,083
Apache-2.0
2023-09-11T07:57:00
2019-02-01T23:16:42
Python
UTF-8
Python
false
false
565
py
app.py
#!/usr/bin/env python3 from aws_cdk import App from native_objects.application_stack import ApplicationStack from native_objects.infrastructure_stack import InfrastructureStack app = App() env={'region': 'us-west-2'} # Base infrastructure stack, Lambda Functions, DynamoDB Tables, etc.... infra = InfrastructureStac...
e96a75713e7aa4fd7da4ddaa7d0738a9ef411601
13cca935063091d7510c3f9636a2ab817edb59e5
/opensfm/commands/export_report.py
ab6722ee22a7b80eb797c651e9ae66bf8ac0c4b4
[ "BSD-3-Clause", "LGPL-3.0-only", "HPND", "BSD-2-Clause" ]
permissive
mapillary/OpenSfM
488440b04546fd0dccf661771bf04838602b353e
c798da16206aa52395eaef09ea4d7746028479d3
refs/heads/main
2023-09-05T11:04:10.131418
2023-08-30T15:46:11
2023-08-30T15:46:11
26,531,519
3,109
914
BSD-2-Clause
2023-09-13T21:01:17
2014-11-12T10:47:29
Python
UTF-8
Python
false
false
465
py
export_report.py
from . import command import argparse from opensfm.dataset import DataSet from opensfm.actions import export_report class Command(command.CommandBase): name = "export_report" help = "Export a nice report based on previously generated statistics" def run_impl(self, dataset: DataSet, args: argparse.Namespa...
24ddf1c28fda94e0dbfaac00fab945f6de257153
7343ece3b82ac87a594865c4074623b45b0297b4
/tests/config/test_registration_config.py
f6869d7f0645cc3c79d960040526dc19f907c5f1
[ "Apache-2.0" ]
permissive
matrix-org/synapse
a00111f83310783b78e2996557f8bbae4d9fb229
d35bed8369514fe727b4fe1afb68f48cc8b2655a
refs/heads/develop
2023-09-05T05:24:20.808942
2023-09-04T16:14:09
2023-09-04T16:14:09
22,844,864
12,215
2,869
Apache-2.0
2023-09-14T15:20:48
2014-08-11T15:51:42
Python
UTF-8
Python
false
false
3,662
py
test_registration_config.py
# Copyright 2021 The Matrix.org Foundation C.I.C. # # 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...
3c1d97c2010a2c4e5e323818543f99216c858a81
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/stubs/TypingNamedTupleFieldsKeyword.py
8ab3695c9a80e4465d8a2205f157bd3c6c3a192a
[ "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
87
py
TypingNamedTupleFieldsKeyword.py
from typing import NamedTuple nt = NamedTuple("name", fields=[("x", str), ("y", int)])
2968f51ab5e4522fc5d885a4fb5cc32c7bd642f8
32b01231af56c01a0ed057222ede46490b1488ce
/amplify/ext/mysql/collectors/metrics.py
d8b31f8fc3a73c215bc3752ebd0c441f4574d357
[ "BSD-2-Clause" ]
permissive
nginxinc/nginx-amplify-agent
118478cf17ff3788e5c3d807c0f9a97a584afa65
f6be8cf8f8bcc61c549a821bf2aba41b2d843f18
refs/heads/master
2023-08-24T18:55:44.088497
2022-10-25T09:54:50
2022-10-25T09:54:50
46,153,777
312
80
BSD-2-Clause
2022-06-07T16:34:53
2015-11-14T00:07:42
Python
UTF-8
Python
false
false
4,948
py
metrics.py
# -*- coding: utf-8 -*- import time from amplify.agent.common.context import context from amplify.agent.collectors.abstract import AbstractMetricsCollector __author__ = "Andrew Alexeev" __copyright__ = "Copyright (C) Nginx Inc. All rights reserved." __license__ = "" __maintainer__ = "Mike Belov" __email__ = "dedm@ngi...
d5688d4f6edc5291807d543df2e1e2ca6ee9b819
8a40a3db07eec18178c9b8757aafdb35724ff324
/examples/server/sanic/latency.py
a451d113b734647154351a7e5b787907f3b5aa6a
[ "MIT" ]
permissive
miguelgrinberg/python-engineio
52313e7fd2cd740e5a083976231c056d53c9a590
35cc5ec0a69b5274697928af4a163e0ca42e1afb
refs/heads/main
2023-08-18T05:55:37.901376
2023-08-15T18:02:04
2023-08-15T18:02:04
37,830,040
236
175
MIT
2023-09-03T15:13:49
2015-06-21T23:17:21
Python
UTF-8
Python
false
false
437
py
latency.py
from sanic import Sanic from sanic.response import html import engineio eio = engineio.AsyncServer(async_mode='sanic') app = Sanic(name='latency') eio.attach(app) @app.route('/') async def index(request): with open('latency.html') as f: return html(f.read()) @eio.on('message') async def message(sid, d...
5282746f140a504b8d6d200e8dd1e4badab3a066
48ca6f9f041a1e9f563500c8a7fa04dbb18fa949
/pygears/sim/extens/svsock.py
3e2032390627637a55a136e78944131959242b33
[ "MIT" ]
permissive
bogdanvuk/pygears
71404e53d4689ec9cdd9db546bfc0f229a7e02da
705b11ab6de79868b25753fa9d0ce7128791b346
refs/heads/master
2023-07-08T11:38:54.625172
2022-03-07T12:29:00
2022-03-07T12:29:00
124,890,922
146
16
MIT
2022-08-15T07:57:08
2018-03-12T13:10:06
Python
UTF-8
Python
false
false
7,607
py
svsock.py
import time import atexit import tempfile from math import ceil import jinja2 import array import math import os import socket import logging from pygears.definitions import ROOT_DIR from subprocess import DEVNULL, Popen from pygears import reg from pygears.sim.extens.sim_extend import SimExtend from pygears.sim import...
b0e1134a7a8ec5906f1727fdfd30fa75cd39acc0
961c62d9dc6c9699a9c9ce4f320447cf6441d108
/src/human_aware_rl/human/tests.py
9870d8e1b59e6f19b2f51e0ad281e61e87ee1245
[ "MIT" ]
permissive
HumanCompatibleAI/overcooked_ai
e6defb38c82e37b79d918318ea5ec07d9ab7d266
6bde8b27b5a1dcdba571e8f53d98c6fc836eca8c
refs/heads/master
2023-07-20T17:18:53.025742
2023-07-11T23:36:49
2023-07-11T23:36:49
193,407,023
510
119
MIT
2023-07-11T23:36:51
2019-06-23T23:58:41
Jupyter Notebook
UTF-8
Python
false
false
7,837
py
tests.py
import copy import os import pickle import shutil import sys import unittest import numpy as np from numpy.testing._private.utils import assert_raises from human_aware_rl.human.process_dataframes import ( csv_to_df_pickle, get_trajs_from_data, ) from human_aware_rl.human.process_human_trials import ( main...