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
fd191f1c5da210ada72d3d2402ec8aabc3981132
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/datamgr/datamanager/collection/cmdb/base.py
91d97111556602a33806e86c1221d0ff056a629e
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
8,137
py
base.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
75f8e9237ffbb5bbe27e4ea79d10948782caafb6
c7a993dcd7efa07038a77ba7057b04b9450be550
/marching_cube/val.py
e2feeda6da81a082b83e4a33f3c149945ca788d7
[ "MIT" ]
permissive
yiyiliao/deep_marching_cubes
6d5f889a45367239c719892c426bfd8a7865a4db
e6efeb4da828403442b930709666f51a2476636c
refs/heads/master
2023-03-10T19:21:12.207458
2023-02-28T01:50:51
2023-02-28T01:50:51
137,336,879
256
36
null
2020-09-17T19:00:11
2018-06-14T09:29:27
Python
UTF-8
Python
false
false
3,077
py
val.py
import numpy as np import torch from torch.autograd import Variable import sys import os sys.path.append(os.path.join(os.getcwd(), 'model/cffi')) import matplotlib as mpl mpl.use('Agg') from utils.visualize import save_occupancy_fig, save_mesh_fig from utils.config import parse_args from model.table import get_accept_t...
b572663262a4786a27825cdfcbee90d528499456
807438e6974bf68762208ec24cf824dd0e5fabd6
/libcloud/test/storage/test_digitalocean_spaces.py
4c8146a68c01fb705405152b3ec1f6ca8121a37e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
apache/libcloud
019c5bd839dedd2423f9604936886eaff252e04b
abba8c1719a8bda6db8efde2d46fd1b423ae4304
refs/heads/trunk
2023-08-31T20:14:22.369970
2023-08-21T20:17:57
2023-08-21T20:17:57
419,555
1,644
968
Apache-2.0
2023-09-13T19:34:44
2009-12-11T09:00:14
Python
UTF-8
Python
false
false
5,303
py
test_digitalocean_spaces.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 use ...
7f4da01c743ea3907df701a06c4d71fd3840c0e3
7ebb2f0458d3813737dd045473d7c1398d08392d
/pyclesperanto_prototype/_tier0/_array_operators.py
cb7d95b3fbf1ca36ad4c10157175916ff54f1602
[ "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
20,045
py
_array_operators.py
import numpy as np cl_buffer_datatype_dict = { bool: "bool", np.uint8: "uchar", np.uint16: "ushort", np.uint32: "uint", np.uint64: "ulong", np.int8: "char", np.int16: "short", np.int32: "int", np.int64: "long", np.float32: "float", np.complex64: "cfloat_t", int: "int", ...
ab9de67ab0739dfa2d824f85aa93470dc49828fc
6ffc81125d6bb5f8476f95b2334a27807b8290de
/flexneuart/ranker/bm25py.py
d41873bad0d97717e0a1c8ac8bf044bb7365d5d8
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
oaqa/FlexNeuART
4cb341ca3c3f94fa28a7cfd4aef5451de3a4a2cb
0bd3e06735ff705731fb6cee62d3486276beccdf
refs/heads/master
2023-09-01T00:19:33.980081
2023-05-26T19:19:30
2023-05-26T19:19:30
64,071,121
156
21
Apache-2.0
2023-09-10T01:27:05
2016-07-24T15:08:03
Java
UTF-8
Python
false
false
5,434
py
bm25py.py
# # Copyright 2014+ Carnegie Mellon University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
9a9f82ed13e2bad28b3673612606906a9976a696
e4816b15dc8b82610676aae3a853eef1cd29a13b
/bigsi/__init__.py
147ef65ee679b8e7c7d5016cc1d07112fddea7c8
[ "MIT" ]
permissive
Phelimb/BIGSI
eae3f1fc42aac0eb615d791597e66e0ab6f73668
bf34abbb9d6f72a9f0c64c40eefc44d810a2502e
refs/heads/master
2023-09-03T22:27:18.099341
2021-08-31T17:23:22
2021-08-31T17:23:22
66,791,051
113
20
MIT
2023-08-24T20:12:06
2016-08-28T21:12:24
Python
UTF-8
Python
false
false
112
py
__init__.py
# from bigsi import version from bigsi.utils import * from bigsi.graph.bigsi import BIGSI # from main import *
06225360e29932dbebe4c75cb1bde087c9a080c1
dc387b1d0c247aca4d6227a2dcc34c30cd2558fd
/loadgen/demos/lon/py_demo_server_lon.py
bee0b2f8b4a62d152dbb48e1dfecd8e0f4d79e28
[ "Apache-2.0" ]
permissive
mlcommons/inference
6f0c725fb3a8d65c349bbd60be23e1db7f8dea74
c540fcc99eeacfb5c51de8daa0f8cca339f50799
refs/heads/master
2023-08-29T11:09:18.621119
2023-08-25T16:22:26
2023-08-25T16:22:26
148,566,613
575
253
Apache-2.0
2023-09-11T11:26:45
2018-09-13T01:53:57
Python
UTF-8
Python
false
false
6,566
py
py_demo_server_lon.py
# Copyright 2019 The MLPerf Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
f6ec38876a9b115cd1e56eda29003924b786b1ed
d6712c5008277098937ac90cfe42533ed9ee55a0
/tests/providers/test_ultradns.py
fdb37d7b257c55fec351c17268dd769002455d5e
[ "MIT" ]
permissive
AnalogJ/lexicon
50492bccc304c6d703d29382d6d18359a8a171eb
55914350aa28851b0c4df487bc5176b5a4841b88
refs/heads/master
2023-08-17T00:52:46.893312
2023-08-16T14:11:46
2023-08-16T14:11:46
50,903,853
1,397
402
MIT
2023-09-14T14:41:41
2016-02-02T07:53:04
Python
UTF-8
Python
false
false
648
py
test_ultradns.py
"""Integration tests for UltraDNS""" from unittest import TestCase from integration_tests import IntegrationTestsV2 # Hook into testing framework by inheriting unittest.TestCase and reuse # the tests which *each and every* implementation of the interface must # pass, by inheritance from integration_tests.Integration...
79dc85dee81ae5da150effeb7ce15143f4b66bb5
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/ai/modelscope/modelscope/trainers/nlp/space/trainer/intent_trainer.py
dc6b317b0d198e915f822f64e9f2d1c0fc9c5f69
[ "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
29,570
py
intent_trainer.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os import time from collections import OrderedDict import json import numpy as np import torch from tqdm import tqdm from transformers.optimization import AdamW, get_linear_schedule_with_warmup from modelscope.trainers.nlp.space.metrics.metrics_tracker import ...
f49451496d86d3b8216eeedf7352fc234f30f75e
7a6b4705293709e32a6927ad4f76eb0549f3bea9
/orchestra/workflow/directory.py
438f9aa7d57e416bb700f22f2782178effde7aeb
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
b12io/orchestra
a71941d80d1eeddb73f301da8f601b2c31a4b279
ee8a29122a3491feae1e1c2c4699142726ae6c21
refs/heads/main
2023-08-20T17:46:36.360755
2023-06-27T13:32:46
2023-06-27T13:32:46
42,593,972
459
66
Apache-2.0
2023-06-27T13:32:48
2015-09-16T14:55:16
Python
UTF-8
Python
false
false
1,506
py
directory.py
import json import os from orchestra.core.errors import WorkflowError def parse_workflow_directory(workflow_directory): parsed = { 'versions': [], } # Verify that the directory exists. if not os.path.exists(workflow_directory): raise WorkflowError('Workflow directory does not exist.'...
4d54c3a1643c77ad041a935e99daad8e775a7fa4
9c6fb2c163307c267dc62f4bb14fadb088f199eb
/tests/trainers/test_key_checking.py
04235416855606ae6aece16e7301b380a8b46120
[ "MIT" ]
permissive
KevinMusgrave/pytorch-metric-learning
ca67a64bcef29f4f1b1e6b5617ddbb4746bfd170
ac607007dc62666f9de850cd5b8e5694ff0da1c2
refs/heads/master
2023-08-31T10:08:03.878425
2023-07-25T15:00:08
2023-07-25T15:00:08
217,113,590
5,552
688
MIT
2023-09-12T08:32:14
2019-10-23T17:20:35
Python
UTF-8
Python
false
false
2,678
py
test_key_checking.py
import copy import logging import unittest import torch from torchvision import datasets from pytorch_metric_learning.losses import NTXentLoss, TripletMarginLoss from pytorch_metric_learning.trainers import ( DeepAdversarialMetricLearning, MetricLossOnly, TrainWithClassifier, TwoStreamMetricLoss, ) fr...
cc40fff7aff65967055ef0b0d8a0196674b9379d
c6f236361649a4bf56576fcb499ca80b4b00bc7f
/tests/my_dict_test.py
bfab349b14b1745c495ff2be291aabb3b43128d9
[ "MIT" ]
permissive
kaste/mockito-python
e3ae81630f3123aed5ef1cbcb247e61a6bf63f9d
7483a5f76c7e7fb8121c2dc129bfb147a24e8eca
refs/heads/master
2022-10-09T04:37:02.227871
2022-09-30T21:07:49
2022-09-30T21:07:49
56,911,241
111
18
MIT
2022-08-25T20:46:41
2016-04-23T09:23:52
Python
UTF-8
Python
false
false
1,194
py
my_dict_test.py
import pytest from mockito.mock_registry import _Dict from mockito.mocking import Mock class TestCustomDictLike: def testAssignKeyValuePair(self): td = _Dict() obj = {} mock = Mock(None) td[obj] = mock def testGetValueForKey(self): td = _Dict() obj = {} ...
5d6199d22c23195b4d54323e0efb1b236260a2ec
06955f6c7f2a0ce54413fcb9ed10453298e36dcf
/fsspec/implementations/webhdfs.py
cc595934f9a0161be24d3e300260fb73d4fd9784
[ "BSD-3-Clause" ]
permissive
fsspec/filesystem_spec
aba07f52331dc380370af326ea79a0f2061816c0
212c26f34ada124e3d6ff9b2b520fdadc4903094
refs/heads/master
2023-09-01T00:02:37.323404
2023-08-31T19:14:12
2023-08-31T19:14:12
130,727,736
308
135
BSD-3-Clause
2023-09-14T20:25:47
2018-04-23T16:45:08
Python
UTF-8
Python
false
false
15,391
py
webhdfs.py
# https://hadoop.apache.org/docs/r1.0.4/webhdfs.html import logging import os import secrets import shutil import tempfile import uuid from contextlib import suppress from urllib.parse import quote import requests from ..spec import AbstractBufferedFile, AbstractFileSystem from ..utils import infer_storage_options, ...
afa4b070e97f153354edfd14728ee4342df8b8de
5f1881006aaf4f3c2515f375ad29c15fd6612de2
/poset_decoding/traversal_path_prediction/MatchZoo-py/matchzoo/datasets/embeddings/__init__.py
d6c86f24920089cc80579f3c1fe2310e4a5199eb
[ "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
microsoft/ContextualSP
4edb598d40f683f9a1143b92a9d24e1066d51ec4
4198ebce942f4afe7ddca6a96ab6f4464ade4518
refs/heads/master
2023-08-02T22:08:40.503853
2023-07-14T07:22:50
2023-07-14T07:22:50
255,534,819
332
70
MIT
2023-07-25T19:23:48
2020-04-14T07:01:54
Python
UTF-8
Python
false
false
339
py
__init__.py
from pathlib import Path from .load_glove_embedding import load_glove_embedding from .load_fasttext_embedding import load_fasttext_embedding DATA_ROOT = Path(__file__).parent EMBED_RANK = DATA_ROOT.joinpath('embed_rank.txt') EMBED_10 = DATA_ROOT.joinpath('embed_10_word2vec.txt') EMBED_10_GLOVE = DATA_ROOT.joinpath('em...
b0d0354ffc263868500becfd50a367a2fc8dcf5a
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayCommerceTransportAdStocktaskresultQueryResponse.py
fe5cd62d612b8d2834d9ea43b963f18d47517de7
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,056
py
AlipayCommerceTransportAdStocktaskresultQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.StockTaskResult import StockTaskResult class AlipayCommerceTransportAdStocktaskresultQueryResponse(AlipayResponse): def __init__(self): super(AlipayComme...
38210eae33191f3349f6661779a61e9b241922b5
4091caecbc727e6d6ae0d827afce11c5979a84fd
/tools/accuracy_checker/openvino/tools/accuracy_checker/evaluators/custom_evaluators/sr_evaluator.py
fda66de078bc92e80dd15058412ba323ce56bf87
[ "Apache-2.0" ]
permissive
openvinotoolkit/open_model_zoo
fdb03dd40bfccb854e4ed4f7b9beaa90596963cd
7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0
refs/heads/master
2023-08-18T18:03:47.254427
2023-08-18T10:54:31
2023-08-18T10:54:31
153,097,694
1,712
730
Apache-2.0
2023-09-11T11:31:20
2018-10-15T10:55:02
Python
UTF-8
Python
false
false
11,741
py
sr_evaluator.py
""" Copyright (c) 2018-2023 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
1a3c5a56c02301fb027f8a6d0094e5b0c95b32c1
cd99fe697ce43e30a64df9cc1df9470d1b0712ab
/forge/ethyr/torch/stim.py
d8b0f3fd65fc74f1fdb42c128ebb69e667d88e01
[ "MIT" ]
permissive
openai/neural-mmo
ecde7382aa06123b9951cd78712e5eb1497204aa
38fd0310bc784de9b86e5144d0e78f4d31005e6b
refs/heads/v1.0
2023-08-05T02:48:18.988444
2019-09-13T23:46:13
2019-09-13T23:46:13
173,154,826
1,607
203
MIT
2023-07-21T13:04:40
2019-02-28T17:17:24
Python
UTF-8
Python
false
false
375
py
stim.py
from forge.ethyr.torch import utils as tu from forge.ethyr import stim from pdb import set_trace as T class Stim: def __init__(self, ent, env, config): sz = config.STIM flat = stim.entity(ent, ent, config) conv, ents = stim.environment(env, ent, sz, config) self.flat = tu.var(flat) s...
b3a43edb033fbc19c681f822e51da2f60f8c2942
ac235a23f22be0d6f1818bb53902177f9969813a
/tests/contrib/gunicorn/test_gunicorn.py
e3335ca87fd948bdbd8313ceb8431cf21cda87c5
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
DataDog/dd-trace-py
f09d6d48c4c69aea68f999fc8a458ade5c6150cf
1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17
refs/heads/1.x
2023-09-01T20:25:26.746324
2023-09-01T18:54:37
2023-09-01T18:54:37
61,572,326
461
426
NOASSERTION
2023-09-14T20:38:57
2016-06-20T18:52:23
Python
UTF-8
Python
false
false
7,261
py
test_gunicorn.py
from contextlib import contextmanager import json import os import subprocess import sys import time from typing import Dict from typing import NamedTuple from typing import Optional import pytest from ddtrace.internal import compat from ddtrace.internal.utils.retry import RetryError # noqa from tests.utils import s...
05bab4c4a0c3e1667974e0799d68e396e612b87d
aac83d1162f41ed6de230ebb8eb9dfa760017443
/crawler/tools/legacy/export.py
b812a12ab9bc52d3ff5d007ba7755a195ab2648f
[ "MIT" ]
permissive
g0v/tw-rental-house-data
e4e405f98cc5a38a635ba1e1593a67f23638455f
28957d50a47945c75b7138120b6eca5570744b69
refs/heads/master
2023-08-28T11:29:32.263983
2023-08-27T05:26:22
2023-08-27T05:26:22
133,367,858
142
30
MIT
2023-02-08T02:16:37
2018-05-14T13:50:37
Python
UTF-8
Python
false
false
12,187
py
export.py
import sys import os import csv import argparse import json from datetime import datetime, timedelta from django.utils import timezone from django.core.paginator import Paginator sys.path.append('{}/..'.format( os.path.dirname(os.path.realpath(__file__)))) from tools.utils import load_django load_django() from t...
88590916661ef5f570a814467f6bcd9d33ca7ff2
469c1754788d8637a74e6306ae3a4e536dba88b0
/astroML/density_estimation/xdeconv.py
31e2baed6e7608675e486db5174d953ae979817c
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
astroML/astroML
17bbbfdbd9da06407d727c6e032d23c5a63ec098
3ec75de08cddd59577e8c2a79be354c5eaebf9db
refs/heads/main
2023-08-07T11:54:17.311594
2022-12-12T08:52:31
2022-12-12T08:52:31
6,269,799
878
300
BSD-2-Clause
2023-05-09T14:41:47
2012-10-17T22:33:50
Python
UTF-8
Python
false
false
7,199
py
xdeconv.py
""" Extreme deconvolution solver This follows Bovy et al. http://arxiv.org/pdf/0905.2979v2.pdf Arbitrary mixing matrices R are not yet implemented: currently, this only works with R = I. """ from time import time import numpy as np from scipy import linalg try: # SciPy >= 0.19 from scipy.special import logsumex...
4759d3b8b301784b1e0a5b21e1cdc2bd998c0558
20d4aac372684501ce6d1b35b8d0beeb20769341
/pyart/aux_io/pattern.py
fb3e7871fc849d929118e29ac6e4644d0e594887
[ "BSD-3-Clause" ]
permissive
ARM-DOE/pyart
c108dd28a2d6eb1eaaa414408757feefac9515c3
172bbcf1cf3bcdb953c76ebae72c27c95dc2e606
refs/heads/main
2023-08-18T07:41:28.137014
2023-08-17T15:58:24
2023-08-17T15:58:24
6,248,645
455
255
NOASSERTION
2023-09-14T20:09:51
2012-10-16T17:51:30
Python
UTF-8
Python
false
false
3,822
py
pattern.py
""" Routines for reading files from the X-band radar from the PATTERN_ project. .. _PATTERN: http://www.mi.uni-hamburg.de/PATTERN-Pre.6763.0.html """ import datetime import netCDF4 import numpy as np from ..config import FileMetadata from ..core.radar import Radar from ..io.common import _test_arguments, make_time...
677ca3b5fb5beffd7bceb5db0a95699192737137
767c07db1fb131047af3d9b0a065b8fdc8aac9ab
/74-sns/sns_facets_multiple.py
41b25a5a7b598249e64c6500e00917bd78e42fc8
[]
no_license
DUanalytics/pyAnalytics
e52c5469da30a5f436ec0f3120d9f15fb82fd9b3
107a08bebe46ea51afccfeae4a666213bb405d41
refs/heads/master
2023-07-08T04:32:54.758902
2023-07-03T14:37:04
2023-07-03T14:37:04
202,094,535
394
31
null
null
null
null
UTF-8
Python
false
false
3,829
py
sns_facets_multiple.py
#Facet PLot #https://seaborn.pydata.org/tutorial/axis_grids.html #----------------------------- import seaborn as sns import matplotlib.pyplot as plt sns.set(style="ticks") # sns.FacetGrid? sns.FacetGrid( data, row=None, col=None, hue=None, col_wrap=None, sharex=True, sharey=True,height=3, aspect=1, palette=None, ro...
ceb592f23e5ebda698f79ca3e0533d5b27f95e76
ed80826b0e9f4ae360fa50d33bb82b4abb618f2e
/ipydatagrid/datagrid.py
556698028291de716d55d8524e6ac96a415106da
[ "BSD-3-Clause" ]
permissive
bloomberg/ipydatagrid
a2fc2b3b928bb18bcb47be4a95670883be8e1791
5720115b158abd286678e35b6c9e9714746573cc
refs/heads/main
2023-07-25T14:50:19.410607
2023-05-22T15:26:46
2023-05-22T15:56:06
197,740,704
422
49
BSD-3-Clause
2023-09-08T18:11:48
2019-07-19T09:06:19
TypeScript
UTF-8
Python
false
false
29,575
py
datagrid.py
# Copyright (c) Bloomberg. # Distributed under the terms of the Modified BSD License. import datetime import decimal from collections.abc import Iterator from copy import deepcopy from math import floor import numpy as np import pandas as pd from ipywidgets import CallbackDispatcher, DOMWidget, widget_serialization f...
4ab445ade110777f073a014fa1dab2c092afe6a2
02462a2fdf4ecb06a7d0493ad08e60003775a74b
/loompy/view_manager.py
e21a38a5c97c2097187055f96f015a3642e05493
[ "BSD-2-Clause" ]
permissive
linnarsson-lab/loompy
135fe7ffc9124bc47a96f2fdfdd71ed62a7dd8aa
07d5ad7bda1b140f05b0d294dcf11de64351acc8
refs/heads/master
2023-07-19T07:58:19.950741
2023-07-10T10:51:27
2023-07-10T10:51:27
86,575,060
121
40
BSD-2-Clause
2022-03-05T08:39:57
2017-03-29T11:38:54
Python
UTF-8
Python
false
false
1,009
py
view_manager.py
import numpy as np import loompy from typing import * class ViewManager: """ Create views by slicing an underlying LoomConnection or LoomView """ def __init__(self, ds: Any) -> None: self.ds = ds def __getitem__(self, slice_: Tuple[Union[slice, np.ndarray, int], Union[slice, np.ndarray, int]]) -> loompy.LoomV...
c41c404b0e7b5e454548bc01828ec8455265bf76
e1bc3f6ba4b5be07eacb7447897e04f6bd292f4b
/cookiecutter_template/{{cookiecutter.project_name}}/rastervision_{{cookiecutter.project_name}}/rastervision/{{cookiecutter.project_name}}/configs/test.py
f4de7b1aa59dbfa75b5ae290513ccbb1431517cb
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
azavea/raster-vision
15bcab9cbc88dce7ebcb6dfe741d482018718e40
4f0ab5f04769a7eb5e677cbfa73f2391f4ab7d39
refs/heads/master
2023-08-30T10:19:09.204623
2023-08-28T19:46:08
2023-08-28T19:46:08
80,733,109
1,941
384
NOASSERTION
2023-09-14T20:35:16
2017-02-02T14:31:54
Python
UTF-8
Python
false
false
253
py
test.py
from rastervision.{{cookiecutter.project_name}}.test_pipeline_config import ( TestPipelineConfig) def get_config(runner, root_uri='/opt/data/test-pipeline', message='hello world'): return TestPipelineConfig(root_uri=root_uri, message=message)
023833fdc8cb7e6a2e53e41ba310e10bbb62d928
9882a8d98429fe0f227b062b0e89da9b881e902c
/losses/alignment.py
e7d233c334fed2541ceae8cd881dc6005d022f47
[ "Apache-2.0" ]
permissive
grib0ed0v/face_recognition.pytorch
87306a5b8c7ded2bf61ddaf2166bb868be8e72cc
05cb9b30e8220445fcb27988926d88f330091c12
refs/heads/develop
2020-04-26T04:11:51.213924
2019-04-10T11:04:21
2019-04-10T11:04:21
173,293,569
170
23
Apache-2.0
2019-04-10T11:04:22
2019-03-01T11:49:14
Python
UTF-8
Python
false
false
2,786
py
alignment.py
""" Copyright (c) 2018 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
502b02d1c61d4e86509630f79c837a98d579e3d2
39d3a01f30dd24be11f284a6fd25aae3c3ac56e5
/pixeldefend/models/pixelcnn_cifar.py
2bd1d74b9beec39dd65d303e28781ab2cafd0007
[]
no_license
anishathalye/obfuscated-gradients
a94470ad4ca7a9f16f2856f7fbab558e2e4c891e
9ef8b37ae985183f1cd37a40d126af7ab6c8d057
refs/heads/master
2023-06-21T19:37:43.648545
2023-06-10T14:11:29
2023-06-10T14:11:29
119,627,984
917
187
null
2018-11-04T23:15:52
2018-01-31T03:13:46
Jupyter Notebook
UTF-8
Python
false
false
2,166
py
pixelcnn_cifar.py
import models.pixel_cnn_pp.nn as nn from models.pixel_cnn_pp.model import model_spec from utils import optimistic_restore import tensorflow as tf import numpy as np import os _PIXELCNN_CHECKPOINT_NAME = 'params_cifar.ckpt' DATA_DIR = os.path.join( os.path.dirname(__file__), os.pardir, 'data' ) _obs_shape ...
94ba1ac5ca4e96bbfe8db89ae86087b430ab254f
7ae27ce9a8c477855f8fd5fac54685716d868349
/invokeai/app/invocations/noise.py
1f1d9fe3ce8d3d85b870dcbed792c14b724d599d
[ "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
3,386
py
noise.py
# Copyright (c) 2023 Kyle Schouviller (https://github.com/kyle0654) & the InvokeAI Team import torch from pydantic import validator from invokeai.app.invocations.latent import LatentsField from invokeai.app.util.misc import SEED_MAX, get_random_seed from ...backend.util.devices import choose_torch_device, torch_dty...
ccfdd7514aa9113dc237e829c156d16759018eca
60ba5cc2f817471dd0ff84a15996b46b1dbfa6ba
/park/unittest/test_multi_dim_index.py
044efa666beac88fd27e218f4dafb1248c2e604c
[ "MIT" ]
permissive
park-project/park
dd15d27e5859fe421c878a90627716623892b6f9
08f8f7f0dea14e011af2d5ce2a72410084eb8713
refs/heads/master
2023-06-28T11:38:30.359938
2022-04-07T14:42:21
2022-04-07T14:42:21
184,142,889
216
55
MIT
2023-06-14T16:10:38
2019-04-29T20:55:25
Python
UTF-8
Python
false
false
472
py
test_multi_dim_index.py
import sys sys.path.append('/home/ubuntu/park') import unittest from park.unittest.run_env import run_env_with_random_agent class TestMultiDimIndex(unittest.TestCase): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.env_name = 'multi_dim_index' def test_run_env_n_t...
3ff8d14a1652271308d12774bdbc2afbf41b2635
6436d1e6c23f9f43a8025889dc4414a3ad66acf2
/Assets/Python/BUG/Tabs/BugCityScreenOptionsTab.py
5e78f26838546355a735b97c4c554c2ab9108d53
[ "MIT" ]
permissive
dguenms/Dawn-of-Civilization
b710195c4f46fe11d9229182c3b1e07b77f42637
a305e7846d085d6edf1e9c472e8dfceee1c07dd4
refs/heads/develop
2023-09-04T04:57:00.086384
2023-09-01T15:24:28
2023-09-01T15:24:28
45,362,597
116
121
MIT
2023-02-08T00:18:53
2015-11-01T23:52:28
C++
UTF-8
Python
false
false
6,908
py
BugCityScreenOptionsTab.py
## BugCityScreenOptionsTab ## ## Tab for the BUG City Screen Options. ## ## Copyright (c) 2007-2008 The BUG Mod. ## ## Author: EmperorFool import BugOptionsTab class BugCityScreenOptionsTab(BugOptionsTab.BugOptionsTab): "BUG City Screen Options Screen Tab" def __init__(self, screen): BugOptionsTab...
e90049026804e7436f9e7b962052cf3072cd9cda
b8bbdfc593b6d816e67a344f720f90ec05236778
/airflow/providers/apache/sqoop/operators/sqoop.py
8aaae63dabda4458722ed4d66c766f17c66a2b0e
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
11,027
py
sqoop.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...
2f90a5bdb40b8fd4f3230a6328d9a6aaeb7dbccb
d50ec43131be668368200315d1d9d307071d5385
/keanu-python/nd4j/nd4j/__version__.py
190d5b391a8f259545044fe6289da6c8f5469ecb
[ "MIT" ]
permissive
improbable-research/keanu
605e4dc6a2f90f095c2c1ec91fa1222ae8d04530
99de10a15e0d4b33d323093a5cc2dd10b31c9954
refs/heads/develop
2023-04-14T01:17:29.130975
2021-09-21T10:24:48
2021-09-21T10:24:48
128,393,918
155
47
MIT
2023-04-12T00:18:07
2018-04-06T12:48:36
Java
UTF-8
Python
false
false
28
py
__version__.py
__version__ = '1.0.0-beta3'
e08fc5ccd9cb56f4548c7ba2abaebd54451c1bea
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/19_数学/计算几何/六边形蜂巢距离.py
95359bc7f5b4982e148d5bfbc84d8fcdda15db12
[]
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
578
py
六边形蜂巢距离.py
# 六边形距离公式(蜂巢距离公式) def hexagon_distance(x1: int, y1: int, x2: int, y2: int) -> int: """蜂巢六边形中两点(x1, y1)和(x2, y2)的距离(移动步数)""" dx, dy = x1 - x2, y1 - y2 return max(abs(dx), abs(dy), abs(dx - dy)) # 注意这也是三维空间中到原点的切比雪夫距离 assert hexagon_distance(0, 0, 1, 1) == 1 assert hexagon_distance(1, 1, 2, 0) ...
dcbdaba607a880fdb4dd7b6fe79b15fa4a824aa2
a689769a760105bfae0feba6bbab0111eddedd5b
/tests/inputs/config.py
6da1f887d52ae6225416fb696bbacf2841ee3c67
[ "MIT" ]
permissive
danielgtaylor/python-betterproto
b7ee67f19700de3c31047568d2edf2d52d333d7d
4cdf1bb9e0651b0604c1cc21172e13053da7653c
refs/heads/master
2023-08-24T14:47:15.068858
2023-07-29T11:06:56
2023-07-29T11:06:56
214,084,028
1,207
188
MIT
2023-09-02T10:12:28
2019-10-10T04:09:03
Python
UTF-8
Python
false
false
996
py
config.py
# Test cases that are expected to fail, e.g. unimplemented features or bug-fixes. # Remove from list when fixed. xfail = { "namespace_keywords", # 70 "googletypes_struct", # 9 "googletypes_value", # 9 "import_capitalized_package", "example", # This is the example in the readme. Not a test. } se...
869d14dde146ab10443dd1a78212033034c84109
476f16f7af921e53287efad025ae3ce32f38a4fa
/external/bloodhound/enumeration/outputworker.py
34ef92ae93e6e2e5517222cf7d3604a7a55995fa
[ "MIT" ]
permissive
CasperGN/ActiveDirectoryEnumeration
dcf760ac7193d4de99449f77a633ef75404b3d0a
49641f7edd451fb07ebdada8b60b0451a1a38c16
refs/heads/master
2023-08-21T15:05:54.151817
2023-02-17T12:31:37
2023-02-17T12:31:37
245,241,283
133
40
MIT
2023-08-03T00:17:19
2020-03-05T18:41:59
Python
UTF-8
Python
false
false
3,941
py
outputworker.py
#################### # # Copyright (c) 2018 Fox-IT # # 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...
997e91c1cf3d507747abd7556c59c7b269adc437
119fd34e3481b78b90f76ac1ea2829aa3ba670b0
/ktrain/text/ner/anago/models.py
7a66f9e4736d0653302d26c0505c413675d0f3e1
[ "Apache-2.0", "CC-BY-NC-4.0", "MIT" ]
permissive
amaiya/ktrain
7b7862faa37909c038640177ae504b4869738e48
ab03ae68053b727cb8907e08c35f265531d1cb3a
refs/heads/master
2023-08-28T06:42:41.111198
2023-08-17T10:51:40
2023-08-17T10:51:40
169,442,310
1,217
309
Apache-2.0
2023-03-30T14:33:43
2019-02-06T17:01:39
Jupyter Notebook
UTF-8
Python
false
false
6,478
py
models.py
""" Model definition. """ from .... import utils as U from ....imports import * # if U.is_tf_keras(): # from .layers import CRF # else: # from .layers_standalone import CRF def save_model(model, weights_file, params_file): with open(params_file, "w") as f: params = model.to_json() json.dump(json....
b8489f2deba2091748bf104259489729b44f2aa7
3d8951322db8a6251ec9d73cab45b56d8d4f06de
/ops.py
9b574663f6138cd2eda98854980afcd56800471a
[ "Apache-2.0" ]
permissive
linjieyangsc/video_seg
f67e47e5ec9cfdea0e01805817e71c4a01165780
b956142691660f02bd72fad936879fc156ee5b47
refs/heads/master
2021-05-04T15:40:11.729445
2020-05-12T18:44:58
2020-05-12T18:44:58
120,236,287
172
28
null
null
null
null
UTF-8
Python
false
false
2,826
py
ops.py
import tensorflow as tf import os slim = tf.contrib.slim def instance_normalization(inputs,reuse=None, variables_collections=None,output_collections=None, use_biases=True, trainable=True, scope=None): with tf.variable_scope(scope, 'InstanceNorm', [inputs], reuse=reuse) as sc: ...
abd2936b419aa87361bc847005c214abb27ce588
00f950030a550cfd7e972794ee993d94a92d75be
/ck/ck/repo/module/package/template-git-soft-customize.py
d2c27dd07a28ff3326907bb39b4011d1f88de019
[ "Apache-2.0", "CC-BY-SA-3.0", "MIT", "BSD-3-Clause", "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
653
py
template-git-soft-customize.py
# # Automatically generated # import os ############################################################################## # setup environment def setup(i): s='' cus=i['customize'] env=i['env'] fp=cus.get('full_path','') ep=cus.get('env_prefix','') if ep=='': re...
f4fb59423eeb2e8d128543b03b0d629a6842d81d
2066e9e86a81291ef25029a37719a10d519c6545
/tasks/glue/data.py
d96f6962d97cee1d1b4b7948b906b01af0724cfb
[ "MIT", "Apache-2.0" ]
permissive
NVIDIA/Megatron-LM
143cd64258191390a369442b705d5b348083c685
99b044bff07f8e5d48b45223ed4bb11bd4e884e6
refs/heads/main
2023-09-04T05:57:16.169810
2023-08-30T18:25:58
2023-08-30T18:25:58
176,982,014
6,315
1,136
NOASSERTION
2023-09-14T11:34:29
2019-03-21T16:15:52
Python
UTF-8
Python
false
false
1,994
py
data.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. """GLUE dataset.""" from abc import ABC from abc import abstractmethod from torch.utils.data import Dataset from megatron import print_rank_0 from tasks.data_utils import build_sample from tasks.data_utils import build_tokens_types_paddings_from_text ...
13894b214e3740b6a073540424c5ab59f9c8e8dc
8c39ba92cc71ff78242477d3256f6ee3daa872c7
/conans/test/integration/package_id/python_requires_package_id_test.py
3648dd8cf3faee57c4af70ac3878befd1998ff9e
[ "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
6,041
py
python_requires_package_id_test.py
import textwrap import unittest from conans.test.utils.tools import TestClient, GenConanfile from conans.util.files import save PKG_ID_1 = "47b42eaf657374a3d040394f03961b66c53bda5e" PKG_ID_2 = "8b7006bf91e5b52cc1ac24a7a4d9c326ee954bb2" class PythonRequiresPackageIDTest(unittest.TestCase): def setUp(self): ...
785c4e1b10e973b28e2b3629d572577ae4022857
e196fe807b2720eb7f08ad9ca914887341bd9b44
/src/streamlink/utils/path.py
daba580dd4a0240ec40a626124c8a7098da629f5
[ "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
491
py
path.py
from pathlib import Path from shutil import which from typing import List, Optional, Union def resolve_executable( custom: Optional[Union[str, Path]] = None, names: Optional[List[str]] = None, fallbacks: Optional[List[Union[str, Path]]] = None, ) -> Optional[Union[str, Path]]: if custom: retur...
9fcffa6d22cf9430819095180c91525f6943c098
23895eba556353a116d97a3e9fa60f7ed9c9f693
/Paths/Find Near Vertical Misses.py
d58d11239a608e3275849cae202528b4908fe9f8
[ "Apache-2.0" ]
permissive
mekkablue/Glyphs-Scripts
9970200e6b7223be58ff9122dd519af176f210de
fe09b4cf3754bc10c3037c3312a19c1b909a74d6
refs/heads/master
2023-08-28T15:02:21.931491
2023-08-25T17:12:34
2023-08-25T17:12:34
2,517,418
322
108
Apache-2.0
2023-08-15T15:24:50
2011-10-05T07:12:37
Python
UTF-8
Python
false
false
21,532
py
Find Near Vertical Misses.py
#MenuTitle: Find Near Vertical Misses # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__ = """ Finds nodes that are close but not exactly on vertical metrics. """ import vanilla class FindNearVerticalMisses(object): marker = "❌" heightsToCheck = [] prefID = "com.mek...
4982073ff0217be3395b4d90730b3ee7ee87df0d
af20739e34a39f0a0a99537ce047f502a3531ea5
/tests/extension/test_serverextension.py
b0c0fa446e126ed4373f6c7278c70022b9db60d6
[ "BSD-3-Clause" ]
permissive
jupyter-server/jupyter_server
66cf0ac45804aa5dd6bf8dff7050db02f3696b92
93fde1ad9fece22607960184501f5c9c80cd3765
refs/heads/main
2023-09-04T03:44:41.696097
2023-08-31T08:20:36
2023-08-31T08:20:36
68,849,978
237
186
BSD-3-Clause
2023-09-09T02:42:25
2016-09-21T19:18:45
Python
UTF-8
Python
false
false
4,680
py
test_serverextension.py
from collections import OrderedDict import pytest try: from jupyter_core.paths import prefer_environment_over_user except ImportError: prefer_environment_over_user = None # type:ignore from traitlets.tests.utils import check_help_all_output from jupyter_server.config_manager import BaseJSONConfigManager fr...
fc7e33251ad2b3f08da50291d2fb65d5600cd7f6
e8846f706a428a91659ac6e24974dc696089fe4a
/pandapower/test/timeseries/test_data_source.py
46d7a690d721c8745f9ee4ecaeff7b94bdf1a8de
[ "BSD-3-Clause" ]
permissive
e2nIEE/pandapower
3e434bf81b29e9c88905abbd82fd0309e2191ffb
5592ba1f6fcd727053a37dcf246b9bf36874c24a
refs/heads/develop
2023-09-03T23:21:25.979973
2023-08-31T11:00:17
2023-08-31T11:00:17
78,748,060
608
481
NOASSERTION
2023-09-14T18:22:08
2017-01-12T13:27:53
Python
UTF-8
Python
false
false
1,290
py
test_data_source.py
# -*- coding: utf-8 -*- # Copyright (c) 2016-2023 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import os import pandas as pd import pytest import copy import pandapower.control import pandapower.timeseries from pand...
6cf79b9ae3f5000310893309f9d3140c4e6c3780
fbbffcc0c0d689b0bca759c37399374c3772f922
/weChatApi/testwechatsendfilemessage.py
0a834fa09b14d404ad4568e0f81507bf40d0b529
[]
no_license
holdyeah/wechat-pc-hook-python
147872ce9818541e367319ea63eba40ddbb90ad5
763a882de5c8aa4f9bb71855a74e02ee66a9e563
refs/heads/master
2023-03-17T06:17:30.988003
2023-03-04T08:44:37
2023-03-04T08:44:37
204,273,242
284
86
null
null
null
null
UTF-8
Python
false
false
329
py
testwechatsendfilemessage.py
import requests import urllib url = "http://127.0.0.1:2020/file" test_str = "D:/2.mp4" test22 = urllib.parse.quote(test_str) payload='wxid=filehelper&msg='+ test22 print(payload) headers = {'Content-Type': 'application/x-www-form-urlencoded'} response = requests.post(url, headers=headers, data=payload) print(response...
5f30588fbd449735adae1498b9a396eb12a3bbec
6f54ba22cf13c8168ecdae96bce068bcc74c1ecc
/uatest/reconnection_server.py
b41efa817d2bfce163644794a420014b20fe833d
[ "MIT" ]
permissive
gopcua/opcua
b318aeea308cb41de1fdb2ea713e747a78ad577d
10b83a76e2e7eebbdf9417f20f479594da5e5e76
refs/heads/main
2023-08-31T09:32:47.680706
2023-08-29T12:19:53
2023-08-29T12:19:53
142,013,463
693
236
MIT
2023-09-05T09:20:41
2018-07-23T12:48:35
Go
UTF-8
Python
false
false
2,533
py
reconnection_server.py
#!/usr/bin/env python3 from opcua import ua, Server from opcua.common.callback import CallbackType from opcua.ua.ua_binary import struct_to_binary, header_to_binary server = None # HACK: opcua does not support sending error message def send_error_message(status_code, reason="test bench simulation"): # take the fir...
fd7890609838f0a3601716f0bebb0dea1fe526d3
028ddc5e85d89c26f8320b70d8ffe80f3d5aec52
/src/UQpy/surrogates/polynomial_chaos/polynomials/PolynomialsND.py
31e6a2b5b019efff44463619cfba95f970cdb0a9
[ "MIT" ]
permissive
SURGroup/UQpy
3b516706e9072c6fac80da0bdfbd23e2193f5844
9e98a6279aa5a2ec2d6d4c61226c34712547bcc6
refs/heads/master
2023-09-04T03:38:35.294389
2023-08-04T12:55:02
2023-08-04T12:55:02
112,795,497
215
70
MIT
2023-09-14T14:18:22
2017-12-01T23:05:13
Python
UTF-8
Python
false
false
1,868
py
PolynomialsND.py
import numpy as np from UQpy.surrogates.polynomial_chaos.polynomials.baseclass.Polynomials import Polynomials class PolynomialsND(Polynomials): def __init__(self, distributions, multi_index): """ Class for multivariate Wiener-Askey chaos polynomials. :param distributions: Joint probabil...
a2a3d4566a563a2654c71a2a872bf537c85604bd
9f8bfd5e566a6e69beb9d3f695ee048a63237f79
/nornir/core/plugins/register.py
f28553d69e12a4b5d990dd6a261127db7f998d07
[ "Apache-2.0" ]
permissive
nornir-automation/nornir
4ae96909d06210e2493113d6f42f8ed6a91bbe6f
719b57c770aa72127578a13bbc3162f0b797e54a
refs/heads/main
2023-08-30T10:30:42.075614
2023-08-30T07:39:32
2023-08-30T07:39:32
76,636,028
1,206
279
Apache-2.0
2023-08-30T07:39:34
2016-12-16T08:27:09
Python
UTF-8
Python
false
false
2,334
py
register.py
import sys from typing import Dict, TypeVar, Generic from nornir.core.exceptions import ( PluginAlreadyRegistered, PluginNotRegistered, ) if sys.version_info >= (3, 10): from importlib import metadata else: import importlib_metadata as metadata T = TypeVar("T") class PluginRegister(Generic[T]): ...
d4f623d9d9c8cf5367d396381ca7bfe27e72f724
3782e25b6db35d82d63bb81e398deab85ef2236e
/Autocoders/Python/src/fprime_ac/utils/DictTypeConverter.py
e757226a7b8a5f1b99887ea8387b40673215cd49
[ "Apache-2.0" ]
permissive
nasa/fprime
e0c8d45dfc0ff08b5ef6c42a31f47430ba92c956
a56426adbb888ce4f5a8c6a2be3071a25b11da16
refs/heads/devel
2023-09-03T15:10:33.578646
2023-08-29T15:39:59
2023-08-29T15:39:59
95,114,723
10,071
1,426
Apache-2.0
2023-09-08T14:31:00
2017-06-22T12:45:27
C++
UTF-8
Python
false
false
2,804
py
DictTypeConverter.py
import sys class DictTypeConverter: def __init__(self): pass def convert(self, t, size): # check for various type variations type_string = "" type_name = t ser_import = None use_size = not size is None # check for enums if isinstance(t, tuple):...
9d4ad2c5918a03dec5538585b880351eeb33e16c
620323fc090cebaf7aca456ff3f7fbbe1e210394
/Decorators__examples/hello_world.py
38ae2dfa60df4644e2f546afa1941e8c63362aa9
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
738
py
hello_world.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import functools def makebold(func): @functools.wraps(func) def wrapped(*args, **kwargs): return "<b>" + func(*args, **kwargs) + "</b>" return wrapped def makeitalic(func): @functools.wraps(func) def wrapped(*args...
1a5e21c52a3374d47c21da28dc081385444fbf6f
46732d613208ee4096fbbd3fd74f22146471d1ce
/wechat-friends_info/weixin朋友城市.py
d5629d3bc30dd56f76a76b99abb87a0b34b2b7e0
[]
no_license
cassieeric/python_crawler
7cb02f612382801ae024e2cee70e0c2bcdba927c
6d2b4db3d34183d729f6fd30555c6d6f04514260
refs/heads/master
2022-11-30T20:30:50.031960
2022-11-27T02:53:22
2022-11-27T02:53:22
118,204,154
322
283
null
2022-12-21T09:33:08
2018-01-20T03:17:14
HTML
UTF-8
Python
false
false
440
py
weixin朋友城市.py
# -*- coding: utf-8 -*- import itchat import pandas as pd def get_info(): itchat.login() friends = itchat.get_friends(update=True) df_friends = pd.DataFrame(friends) City = df_friends.City City_count = City.value_counts() # 有一些好友地理信息为空,过滤掉这一部分人。 City_count = City_count[City_count.index != ''] ...
b349db98ad26231abf0fd65f1c22a97668220688
2c6e9374fe1216a99d833354213ca676407e1197
/mqtt_as/mqtt_as_timeout.py
8927ace56289f52cc086542de32292ab7a1224ab
[ "MIT" ]
permissive
peterhinch/micropython-mqtt
7729d2b00ad2e41440fe278a0aec938537edebf8
041b0213caee0d990cb0eb454b9e627bf515edde
refs/heads/master
2023-09-01T08:37:26.372051
2023-08-24T09:52:42
2023-08-24T09:52:42
94,690,722
456
118
MIT
2023-02-03T14:54:07
2017-06-18T14:00:48
Python
UTF-8
Python
false
false
2,173
py
mqtt_as_timeout.py
# mqtt_as_timeout.py Implementation of a timeout on publication. # (C) Copyright 2019 Kevin Köck. # Released under the MIT licence. # This solution detects the case where a publication is delayed by lack of # connectivity and cancels it if the delay exceeds a timeout. # Note that it blocks other attempts at publicat...
d2f8fd03512c7f457e3ec452968ff07411fae9da
94c1805df5a09c39159d502f420d19ad54b567fc
/runtime/deps/gyp/test/win/gyptest-asm-files.py
007b52eb267688b6827356620a8f2a885bf29e20
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
tmikov/jscomp
9805a5a4d06520549c57380f0df4a1c0aa0dab56
83828441cb38ec96603a6a60be06977d4852940a
refs/heads/develop
2021-01-19T02:56:35.102659
2016-04-12T06:19:30
2016-04-12T06:19:30
36,981,674
237
13
Apache-2.0
2018-10-14T09:48:12
2015-06-06T13:49:26
C
UTF-8
Python
false
false
722
py
gyptest-asm-files.py
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Make sure .s files aren't passed to cl. """ import TestGyp import sys if sys.platform == 'win32': test = TestGyp.TestGyp(formats=['...
b4c7d34e7a25100f6cc72b599a28f27178c51a4a
43c870b240a807db330a7abf53758c1fef924432
/cloudkitty/api/v1/__init__.py
1f1cfcb74b06e4d7ac7a3f3d3cf2968268ae879f
[ "Apache-2.0" ]
permissive
openstack/cloudkitty
fb3cb83d8d89b27efe64768862f07781a2ef3b5a
94630b97cd1fb4bdd9a638070ffbbe3625de8aa2
refs/heads/master
2023-08-31T15:10:44.524252
2023-08-23T16:27:35
2023-08-23T20:01:01
20,042,606
103
57
Apache-2.0
2017-11-29T15:39:28
2014-05-22T00:52:38
Python
UTF-8
Python
false
false
1,694
py
__init__.py
# Copyright 2018 Objectif Libre # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
b86d091d5840e02a11baafdd3c70f06fd51428d6
bbfc9f05efefe29b6ce9832bb3506efb900c1c93
/tests/integration/cvm/test_describe_instances_common_client.py
4b46898144887b42b0e3e46aa6681c12a8d9781e
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-python
a2fab235926b0a27e9cfdf55e085a8bb15b3f506
6baf00a5a56ba58b6a1123423e0a1422d17a0201
refs/heads/master
2023-09-04T10:52:28.060438
2023-09-01T03:09:16
2023-09-01T03:09:16
130,147,399
594
300
Apache-2.0
2023-09-06T07:03:24
2018-04-19T02:23:12
Python
UTF-8
Python
false
false
483
py
test_describe_instances_common_client.py
# -*- coding: utf8 -*- import os from tencentcloud.common import credential from tencentcloud.common.common_client import CommonClient def test_describe_instances(): cred = credential.Credential( os.environ.get("TENCENTCLOUD_SECRET_ID"), os.environ.get("TENCENTCLOUD_SECRET_KEY")) client = Co...
834ab86782541177a9362fa79ae2658df2240153
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/eventhub/azure-eventhub-checkpointstoreblob/azure/eventhub/extensions/checkpointstoreblob/_vendor/storage/blob/_generated/models/_azure_blob_storage_enums.py
2df7b1ad6219c5d1b4156c9741e71bf46f189e43
[ "MIT", "LicenseRef-scancode-generic-cla", "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
12,339
py
_azure_blob_storage_enums.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
77d5c6cfaab90084443347a86e80d377ce912af9
1228750f9b95c5c2fb9a1d5cb339275db979356b
/petridish/data/misc.py
7d0300014373746a9be4932f5560a3fb1acf8ca1
[ "MIT" ]
permissive
microsoft/petridishnn
be0236b9385c7523ca71cfd171f95beaca5d851a
0e0431a56db893ef8ee14501f12bf7046d4d6024
refs/heads/master
2023-06-29T20:58:01.980267
2023-06-12T18:22:32
2023-06-12T18:22:32
180,651,701
123
24
MIT
2023-06-12T18:22:33
2019-04-10T19:39:36
Python
UTF-8
Python
false
false
4,116
py
misc.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import numpy as np import scipy.io.arff as arff import bisect import os, sys import json from tensorpack.dataflow import RNGDataFlow, BatchData, PrefetchData, imgaug from tensorpack.callbacks import Inferencer def preprocess_data_flow(ds, optio...
1f230d7edf05fca8047a87b3298d5200e7752e67
abb035c51b15464d2caa454ecc439b883a726c59
/utils.py
1693bfeeed7195c82edb09f8ac9a28aabf6c67f6
[ "Apache-2.0" ]
permissive
allenai/tpu_pretrain
03c2532882a48ae5bfd533b423cb90ba778b5918
10e8f262b9a28d3bef51a103ce6f7003e8bc19a9
refs/heads/master
2023-07-07T12:39:20.609724
2019-10-24T00:41:57
2019-10-24T00:41:57
207,008,877
136
13
Apache-2.0
2019-10-24T00:41:58
2019-09-07T18:21:12
Python
UTF-8
Python
false
false
12,675
py
utils.py
from argparse import ArgumentParser import os from pathlib import Path import shutil import glob import logging import json import random import numpy as np from tempfile import TemporaryDirectory from collections import namedtuple from tqdm import tqdm import torch from torch.utils.data import Dataset from pytorch_tra...
ba8205e9cb9a6efc3ece9b373d132ef0947499bc
f314fb70c20eee3baf5dc7b7258964e4ff6a397b
/vidaug/augmentors/group.py
560ed2b9d4064295199ddf1034fe945931a4af61
[ "MIT" ]
permissive
okankop/vidaug
14d11942c8d6cbc0ea27430885585435529e1481
1c1ddf2640fe4a9171267d64ae5e3bd70c24d54a
refs/heads/master
2021-10-11T11:50:49.620375
2021-09-27T09:05:27
2021-09-27T09:05:27
136,959,442
357
81
MIT
2021-10-05T18:45:16
2018-06-11T17:32:27
Python
UTF-8
Python
false
false
3,704
py
group.py
""" Augmenters that apply to a group of augmentations, like selecting an augmentation from a list, or applying all the augmentations in a list sequentially To use the augmenters, clone the complete repo and use `from vidaug import augmenters as va` and then e.g. : seq = va.Sequential([ va.HorizontalFlip(), ...
ecb0b24546e423dfae1b9f49a7fa4c2931508e3e
1e1f444c97bfef8c6831b820822cc94c89b8c20a
/mlfinlab/networks/graph.py
b2d247c8d9afbae846400f2e96bad33c7aed73e8
[ "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hudson-and-thames/mlfinlab
4fa7be033a7be9725a577fd25e1d590648eb344b
79dcc7120ec84110578f75b025a75850eb72fc73
refs/heads/master
2023-03-28T11:58:55.171692
2021-12-01T08:04:50
2021-12-01T08:04:50
170,544,934
3,763
1,024
NOASSERTION
2023-03-25T00:52:55
2019-02-13T16:57:25
Python
UTF-8
Python
false
false
2,741
py
graph.py
""" This file contains Graph classes, which create NetworkX's Graph objects from matrices. """ from abc import ABC import networkx as nx from matplotlib import pyplot as plt class Graph(ABC): """ This Graph class is a parent class for different types of graphs such as a MST. """ def __init__(self, ...
7908b622d4f80e5d98b4db86b3abaff6ab867a61
98c372a42cb7f04ad52e6630c0bb3d1eecd30e16
/testing/test_python.py
bad2904a81687e53411e32535093f051d218481b
[ "Apache-2.0" ]
permissive
zippy84/vtkbool
73b9e6bd78ad1798e6aebf178025f5fe46500c7f
dca2f7cc9a242f5c33482ca7bbf6afa3bd4c0c7c
refs/heads/master
2023-09-05T02:58:37.643374
2023-08-31T20:45:22
2023-08-31T20:45:22
14,350,407
129
38
Apache-2.0
2022-08-21T20:26:51
2013-11-13T01:25:57
C++
UTF-8
Python
false
false
1,069
py
test_python.py
#!/usr/bin/env python # *-* coding: UTF-8 *-* # Copyright 2012-2023 Ronald Römer # # 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 ...
3cbca638e76cf2391859bb1a6b4b24da6c46f664
0744dcc5394cebf57ebcba343747af6871b67017
/external/iotivity/iotivity_1.2-rel/resource/csdk/security/unittest/SConscript
3c3339eef416c86db9c14b623dd8594ba79bd5d8
[ "Apache-2.0", "GPL-2.0-only", "MIT", "BSD-3-Clause" ]
permissive
Samsung/TizenRT
96abf62f1853f61fcf91ff14671a5e0c6ca48fdb
1a5c2e00a4b1bbf4c505bbf5cc6a8259e926f686
refs/heads/master
2023-08-31T08:59:33.327998
2023-08-08T06:09:20
2023-08-31T04:38:20
82,517,252
590
719
Apache-2.0
2023-09-14T06:54:49
2017-02-20T04:38:30
C
UTF-8
Python
false
false
6,200
SConscript
# //****************************************************************** # // # // Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved. # // # //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= # // # // Licensed under the Apache License, Version 2.0 (the "License"); # // you may not use t...
f865ba70bf49a81592ed92375186c24baeffb443
6c8305ea1df9687df1c0d2b0ace56733516c6322
/readthedocs/telemetry/migrations/0001_initial.py
6171a9529b80dbedab536e69692b403fcc2251fb
[ "MIT" ]
permissive
readthedocs/readthedocs.org
9806083aa744c2308267919480a692e1e003e45d
bf88ce6d1085d922322a5fadce63a22c5544c830
refs/heads/main
2023-09-05T20:22:34.281891
2023-09-05T12:41:52
2023-09-05T12:41:52
841,835
2,894
1,509
MIT
2023-09-14T20:36:00
2010-08-16T19:18:06
Python
UTF-8
Python
false
false
1,234
py
0001_initial.py
# Generated by Django 3.2.13 on 2022-04-26 18:56 import django_extensions.db.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="BuildData", fields=[ ...
d12b47d47318c55d50a40b9a5530e2b25099b786
863bfa36852b84e2e2834abb67171e37d48b9b81
/returns/contrib/mypy/_structures/types.py
df9a004fdf1ba4b70850adf69b6f188f2328c718
[ "BSD-2-Clause" ]
permissive
dry-python/returns
33f763a34439cb6aa5419f16c6f45f27610d82d4
ae8d9ffaf20c459296337b78ba5ecb2f98870f61
refs/heads/master
2023-09-04T07:33:39.768675
2023-09-01T20:45:59
2023-09-01T20:45:59
167,689,891
2,967
130
BSD-2-Clause
2023-09-11T15:18:58
2019-01-26T13:08:38
Python
UTF-8
Python
false
false
214
py
types.py
from typing import Union from mypy.plugin import FunctionContext, MethodContext #: We treat them equally when working with functions or methods. CallableContext = Union[ FunctionContext, MethodContext, ]
371ee716165321bc2506620e672541e8e7634a18
10dde921afb622b58054260ccddb61ca1c1fb3a7
/mask2polygons.py
3741623674c6e4ddd7b74f14f54948e26e5c01b4
[]
no_license
ryouchinsa/Rectlabel-support
db8d4e995405f28a66dc717cc37c1a513a05cbce
6a328c93deaf9725ecfd322d70559ef0295aa084
refs/heads/master
2023-09-04T17:41:07.799819
2023-09-02T10:39:54
2023-09-02T10:39:54
86,496,548
486
76
null
2023-05-04T05:08:25
2017-03-28T19:00:03
Python
UTF-8
Python
false
false
657
py
mask2polygons.py
import cv2 import numpy as np mask_path = 'grayscale_mask.png' image = cv2.imread(mask_path, cv2.IMREAD_GRAYSCALE) h, w = image.shape line_width = int((h + w) * 0.5 * 0.0025) contours, _ = cv2.findContours(image, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_TC89_KCOS) contours_approx = [] polygons = [] for contour in contours...
4bf89c7dde8de8e2cd59533d924fc5e6db0aab80
e4fb3fba8bab17ab18587ce1dfa8414fa4074cdb
/partition/visualize.py
56b7c6743bd83a7fb864094284db73557d73ad68
[ "MIT" ]
permissive
loicland/superpoint_graph
787f60a367cafdbd79b6b35d11f464e1b3de4488
0209777339327c9b327b6947af6c89b20bb45981
refs/heads/ssp+spg
2023-08-03T17:14:45.417753
2023-07-19T20:50:48
2023-07-19T20:50:48
111,715,635
747
241
MIT
2023-07-19T20:50:49
2017-11-22T17:52:02
Python
UTF-8
Python
false
false
5,663
py
visualize.py
""" Large-scale Point Cloud Semantic Segmentation with Superpoint Graphs http://arxiv.org/abs/1711.09869 2017 Loic Landrieu, Martin Simonovsky this functions outputs varied ply file to visualize the different steps """ import os.path import numpy as np import argparse import sys sys.path.append("./part...
db1d50f9d980d330c4dc6b2adc80f414d2444af1
59a05ac6f169fbc5a98a76707b4c31ea446e5d6a
/examples/kinematic_styles.py
32dcb73f1aeb79043c9abda5440303602f0826ce
[ "MIT" ]
permissive
joferkington/mplstereonet
68afd6d3585e19257f70103a2d43eb3a9ceff6b1
89a3b5a028703452bfc5dbfc3d77af355f645485
refs/heads/master
2023-01-06T02:06:45.078929
2022-12-29T23:05:50
2022-12-29T23:05:50
4,018,357
143
55
MIT
2022-12-29T23:05:51
2012-04-13T17:16:28
Python
UTF-8
Python
false
false
1,872
py
kinematic_styles.py
""" Demonstrating more control on the parameters (e.g. friction angle and lateral limits) of the analysis and plotting style for planar sliding and toppling failure. Similar for wedge failure. """ import matplotlib.pyplot as plt import mplstereonet import mplstereonet.kinematic_analysis as kinematic # Set up the a...
e86906546d5709bb143c540a3d02b9fb77e10673
27b86f422246a78704e0e84983b2630533a47db6
/tests/test_05_tools/test_534_dwg_info.py
3b9e92c3d0eced9c637c8286aceef1c82a2dbdfa
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
988
py
test_534_dwg_info.py
# Copyright (c) 2022, Manfred Moitzi # License: MIT License import pytest from ezdxf.dwginfo import dwg_info R12 = "41 43 31 30 30 39" R2000 = "41 43 31 30 31 35" R2018 = "41 43 31 30 33 32" R20XX = "41 43 31 30 33 33" unknown1 = "32 32 31 30 33 32" unknown2 = "" def data(s) -> bytes: return bytes(int(x, 16) ...
fede20e0b036ccaf8efcd9c0e757fd5781bc174b
f324cd2cbebd303fd34cd2e26fe1a51c44202d55
/test/acceptance/test_cli.py
dbe2cf42a290cd8019fb7705d1c6be5f689eaa1b
[ "MIT" ]
permissive
Vimjas/vint
d71579154d177daf458ec68423a66055f90fa308
e12091830f0ae7311066b9d1417951182fb32eb5
refs/heads/master
2023-09-02T07:31:31.299270
2022-10-24T13:06:33
2022-10-24T13:06:33
20,857,415
191
11
MIT
2022-10-24T13:10:00
2014-06-15T14:38:32
Python
UTF-8
Python
false
false
5,707
py
test_cli.py
import unittest from pathlib import Path import json import subprocess import sys class TestCLI(unittest.TestCase): if sys.version_info <= (3,): def assertRegex(self, string, pattern): return super(TestCLI, self).assertRegexpMatches(string, pattern) def assertReturnedStdoutEqual(self, ex...
3f4924f2b8935823d10794ee379085b65107da42
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/sagemaker/device.py
08660dc770390e2d180cb913ee62c081571807d9
[ "MPL-2.0", "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
11,104
py
device.py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload fr...
ce340b629000a517bc21617bdcb6fd2702cd8c60
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CondCore/CondHDF5ESSource/scripts/condhdf5tohdf5.py
470febaa9bdddce527ecaad9d242d40a97c1c14f
[ "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
5,461
py
condhdf5tohdf5.py
#!/usr/bin/env python3 import argparse import sys import logging import copy import h5py import numpy as np from collections import OrderedDict import zlib import lzma from CondCore.CondHDF5ESSource.hdf5Writer import writeH5File #Global tags hold a list of Tags # Tags give the # record name, # list of data p...
5d61c32bcfc60573f79893c7ef237c5e5f909424
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoTracker/SiTrackerMRHTools/python/SiTrackerMultiRecHitUpdator_cfi.py
1c68e75127c60c25a2b54632d350e558f1679f7d
[ "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
570
py
SiTrackerMultiRecHitUpdator_cfi.py
import FWCore.ParameterSet.Config as cms siTrackerMultiRecHitUpdator = cms.ESProducer("SiTrackerMultiRecHitUpdatorESProducer", ComponentName = cms.string('SiTrackerMultiRecHitUpdator'), TTRHBuilder = cms.string('WithAngleAndTemplate'), HitPropagator = cms.string('trackingRecHitPropagator'), #AnnealingP...
f88601ec913a399405997749144e8367643651cf
8bd6ebb097edf536db657c963247bbf493cbba52
/cmasher/colormaps/savanna/savanna.py
d1a88d54554b64148314511555e55b845d30f5ed
[ "BSD-3-Clause" ]
permissive
1313e/CMasher
3a5f70b2238a2f4494de60d492c71b5fa1da1630
1e76ef900557e1a3aa40a7fe85a356d296f8379b
refs/heads/master
2023-08-22T10:51:44.778752
2021-11-30T12:20:02
2021-11-30T12:20:02
222,056,142
346
28
BSD-3-Clause
2023-08-07T16:59:40
2019-11-16T06:15:58
Python
UTF-8
Python
false
false
13,142
py
savanna.py
# %% IMPORTS # Package imports from matplotlib.cm import register_cmap from matplotlib.colors import ListedColormap # All declaration __all__ = ['cmap'] # Author declaration __author__ = "Ellert van der Velden (@1313e)" # Package declaration __package__ = 'cmasher' # %% GLOBALS AND DEFINITIONS # Type of this color...
e2b46bb6c93b0e0e75c9e206f7db7d5236b4ca84
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/battle_results/reusable/economics.py
e52048ccc4ad11d6f74727c934d3bdfe4efd56c5
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
23,914
py
economics.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_results/reusable/economics.py import typing import itertools from collections import namedtuple from constants import PREMIUM_TYPE, ARENA_BONUS_TYPE from gui.battle_results.reusable import shared from gui.battle_results.r...
474e694a47d4b0fa66865715ac0a4e90c210b698
493d86071bb96ef33a38623a144fe55e49a0aa44
/socceraction/data/opta/parsers/f9_json.py
5d6b66966fcb0de68d90cfafb5f41a9d0c880979
[ "MIT" ]
permissive
ML-KULeuven/socceraction
3b8d2411333114436239850d02278785ea0ed83b
1261a31cf99d0c9a819b67f568549aa47df83f08
refs/heads/master
2023-08-31T02:25:42.349813
2023-08-30T08:53:01
2023-08-30T08:53:01
194,881,505
517
131
MIT
2023-09-14T09:46:42
2019-07-02T14:38:30
Python
UTF-8
Python
false
false
11,898
py
f9_json.py
"""JSON parser for Opta F9 feeds.""" from datetime import datetime from typing import Any, Dict, List, Optional, Tuple from ...base import MissingDataError from .base import OptaJSONParser, assertget class F9JSONParser(OptaJSONParser): """Extract data from a Opta F9 data stream. Parameters ---------- ...
7438a6554c52f8ef8f6930f8e44a0bd8c9012dc0
568a2667a1b6ec33a0dec9ac01844ef74e11ab2b
/landlab/utils/window_statistic.py
9d9fe118463b6eb83b9adcaf9bfb52a6b4e61c48
[ "MIT" ]
permissive
landlab/landlab
0bcc9b7b1d8c4d7f79bad687e1526b80ebc83728
1cd72e5832ece1aa922cd1b239e2e94ed0f11f8b
refs/heads/master
2023-08-31T07:24:21.545523
2023-08-29T18:51:06
2023-08-29T18:51:06
19,599,383
326
313
MIT
2023-09-14T19:12:23
2014-05-09T04:52:50
Python
UTF-8
Python
false
false
8,643
py
window_statistic.py
"""Function to calculate node statistics in a moving window.""" import numpy as np from landlab import FieldError def calculate_window_statistic( grid, field, func, search_radius, calc_on_closed_nodes=True, **kwargs ): """Calculate a statistic using a function within a search window. .. note:: ...
d2449e6fbaca8d369761f09997a6603b8c279e2e
e07fc7e64c91c4026d931528a41b67b3eb5918c2
/rl_agents/trainer/graphics.py
f5e6c79ab93537c2d53e78fdb29f4536bf08bdbe
[ "MIT" ]
permissive
eleurent/rl-agents
18a854f753780d80945048c9a7fb4dc63ea885f6
63d3734123fffcfcc84d9fc84195256a94d74638
refs/heads/master
2023-08-15T05:05:13.132900
2023-07-25T10:12:06
2023-07-25T10:12:06
93,446,064
490
150
MIT
2023-08-07T13:16:32
2017-06-05T20:53:59
Python
UTF-8
Python
false
false
670
py
graphics.py
from __future__ import division, print_function import matplotlib.pyplot as plt import pandas as pd import seaborn as sns sns.set() class RewardViewer(object): def __init__(self): self.rewards = [] def update(self, reward): self.rewards.append(reward) self.display() def display(s...
27b72da12a82d98a13c42143da209e0955352063
fe85b4811c93510006b666858d6029156f167f89
/bin/mtag/audio-bpm.py
d7f2c1c54a2ca243538fcf08e12450dbac859f62
[ "MIT", "GPL-1.0-or-later", "LGPL-2.0-or-later", "GPL-1.0-only", "GPL-3.0-only", "GPL-2.0-only", "Artistic-2.0" ]
permissive
9001/copyparty
39207421ccdc501566105da562a168996e0f9b4c
48a3898aa692770735a926b0c18300d7da8b021f
refs/heads/hovudstraum
2023-08-18T15:19:36.934124
2023-08-16T19:57:19
2023-08-16T19:57:19
188,700,274
273
21
MIT
2023-08-09T20:50:27
2019-05-26T15:28:33
Python
UTF-8
Python
false
false
2,033
py
audio-bpm.py
#!/usr/bin/env python import os import sys import vamp import tempfile import numpy as np import subprocess as sp from copyparty.util import fsenc """ dep: vamp dep: beatroot-vamp dep: ffmpeg """ # save beat timestamps to ".beats/filename.txt" SAVE = False def det(tf): # fmt: off sp.check_call([ ...
a8f0a3ac18fdba5b5fc2da221958540a8e1436b8
a88b87b745ba50287c0d44dc6ac06b4f3a27624a
/C++指标计算引擎/py版本/hqchartpy2_tushare_test.py
7d680626d648c72db987aac8b994edce76c3a4de
[ "Apache-2.0" ]
permissive
jones2000/HQChart
1739d93300babbb3967d8cb1746bbcc49432a1ee
3e490ccc044aa41c240fbb9b913a764419fd9e99
refs/heads/master
2023-09-04T00:20:02.134641
2023-09-01T02:09:02
2023-09-01T02:09:02
125,995,921
2,675
716
Apache-2.0
2023-05-17T04:57:55
2018-03-20T09:51:48
JavaScript
UTF-8
Python
false
false
3,357
py
hqchartpy2_tushare_test.py
############################################################# ## hqchartPy2使用tushare数据对接测试用例 ## ## ############################################################# from hqchartpy2_fast import FastHQChart,PERIOD_ID from hqchartpy2_pandas import HQChartPy2Helper from hqchartpy2_tushare import TushareHQChartData, TushareKLo...
3aaac58ab339aa65c57a500455b92da9cc8ba6f0
a00ceae7fc625dc8a76341f32c76569090ca8489
/examples/low_level/login_with_auth.py
c11aa9f2cb48d0e08b58f8f741acf64ec4aa9e59
[ "MIT" ]
permissive
pycontribs/jenkinsapi
23be879b284437f1b061dede69d782634da3c171
44942789b912de3d4952cc3c517562e92259a409
refs/heads/master
2023-08-28T16:43:22.641088
2023-06-16T09:18:19
2023-08-19T03:18:18
3,111,557
606
335
MIT
2023-08-19T03:18:20
2012-01-05T16:43:13
Python
UTF-8
Python
false
false
245
py
login_with_auth.py
""" A lower level example of how we login with authentication """ from __future__ import print_function from jenkinsapi import jenkins J = jenkins.Jenkins("http://localhost:8080", username="sal", password="foobar") J.poll() print(J.items())
ecb83fa2a24f223c29e6cb3ed024bec5675935c6
532e3f4530353fdf9b6befb8a88c1dd450f42c36
/query_freshness.py
8dca2fd511817a6d033b02b61c5a5b5de8a3139f
[ "BSD-3-Clause" ]
permissive
DataDog/Miscellany
9aad31b7ac2d635c1a9dd9af8f4ab927c9914e3a
b55849ab0b2ec95642d4082a834218b32276884e
refs/heads/master
2023-08-10T20:20:41.437060
2022-09-23T06:40:40
2022-09-23T06:40:40
48,389,989
204
149
BSD-3-Clause
2023-07-21T13:35:55
2015-12-21T19:27:04
Python
UTF-8
Python
false
false
1,052
py
query_freshness.py
######################################################################### #Use a cronjob to submit regularily the Metric # #crontab -e #(vim) */1 * * * * cd <path_to_the_script> ; python query_freshness.py #(vim) !wq #crontab -l #########...
cfae5aaa39347e3afae3a3677dac804417e18929
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Validation/RecoHI/test/step2_RAW2DIGI_RECO_VALIDATION.py
96c7aaeaed22b4dad06089c925c99a36941413d1
[ "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
2,680
py
step2_RAW2DIGI_RECO_VALIDATION.py
# Auto generated configuration file # using: # Revision: 1.173 # Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v # with command line options: step2 -s RAW2DIGI,RECO,VALIDATION -n 2 --filein file:step1_HLT.root --eventcontent RECOSIM --conditions MC_37Y_V0::All...
f760f3bdf68bed0862c4a586d78be0f11e67a2f1
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/pytorch/source/caffe2/python/models/__sym_init__.py
79f045879ebcd445282402b560e651e0a289c283
[ "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
639
py
__sym_init__.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os from caffe2.proto import caffe2_pb2 def _parseFile(filename): out_net = caffe2_pb2.NetDef() # TODO(bwasti): A more robust handler for pathnames. di...
63305545ad7f1d1d3c797317cad5e910a8d49e9d
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/meta/MissionsPremiumViewMeta.py
1199ef1cfbe5aa394c443abd645494a2289f1968
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
292
py
MissionsPremiumViewMeta.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/MissionsPremiumViewMeta.py from gui.Scaleform.daapi.view.meta.MissionsViewBaseMeta import MissionsViewBaseMeta class MissionsPremiumViewMeta(MissionsViewBaseMeta): pass
482149c3df0a65bb8eb5f7181744e79c082227e1
5fa348b53191cc8d8cb8df2d213d1a0d1a07a820
/hls4ml/utils/plot.py
e3424bb1ad53bacfdafa38a8ac947d159f94d2ea
[ "Apache-2.0" ]
permissive
fastmachinelearning/hls4ml
29496536ca5a63a51e009d246019680bd4950007
4b4b5a0cf0bc59801e94b2bb64d63d8734645c3b
refs/heads/main
2023-08-31T15:52:18.564650
2023-08-28T22:57:50
2023-08-28T23:25:36
108,329,371
562
199
Apache-2.0
2023-09-13T17:19:05
2017-10-25T21:43:56
C++
UTF-8
Python
false
false
8,204
py
plot.py
# Heavily inspired by Keras's plot_model """Utilities related to model visualization.""" import os import sys try: import pydot except ImportError: pydot = None def check_pydot(): """Returns True if PyDot and Graphviz are available.""" if pydot is None: return False try: # Attemp...
e496a6013e2a0cc0cd6ba3f344f5d669f1b070ff
d8aabbc108b074817cb05eba4acff68d4f5c2d6c
/tensorwatch/saliency/deeplift.py
f8e208550933cea4c2a8c36fcad0927c272d4083
[ "MIT", "BSD-2-Clause", "LGPL-2.1-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
microsoft/tensorwatch
e5e868795bd1536f9f2e3cb56b34a97a82e6704e
f59730dc7a8735232ef417685800652372c3b5dd
refs/heads/master
2023-06-29T21:52:27.900779
2023-06-12T18:21:59
2023-06-12T18:21:59
186,783,422
3,626
394
MIT
2023-08-30T06:59:14
2019-05-15T08:29:34
Jupyter Notebook
UTF-8
Python
false
false
2,713
py
deeplift.py
from .backprop import GradxInputExplainer import types import torch.nn.functional as F from torch.autograd import Variable # Based on formulation in DeepExplain, https://arxiv.org/abs/1711.06104 # https://github.com/marcoancona/DeepExplain/blob/master/deepexplain/tensorflow/methods.py#L221-L272 class DeepLIFTRescaleEx...
fc2ee86d9a38b0a5a44fde05a276bf29d7bb63de
b71a6e7050b0a4368007350d91ee078288a7318c
/examples/1_tree.py
937d410963c8ec297194da5252ab5abe8b933597
[ "Apache-2.0" ]
permissive
jarvisteach/appJar
2dfd0da6cb85ea3535379ed000efd97fb42fe4f8
0b59ce041da2197dcff3410e20f298676f1f7266
refs/heads/appJar
2023-08-29T09:42:01.812005
2019-09-28T18:34:06
2019-09-28T18:34:06
39,996,518
696
103
NOASSERTION
2023-02-20T01:01:16
2015-07-31T08:59:20
Python
UTF-8
Python
false
false
371
py
1_tree.py
import sys sys.path.append("../") from appJar import gui def press(btn): print(btn) def press2(btn): print("EDIT", btn) app=gui() data="<people><person><name>Richard</name><age>21</age></person><person><name>kh</name><age>44</age></person></people>" app.addTree("tree", data) app.setTreeDoubleClickFunction("tree", press...
32b3fb2fa1b74fa2ccb36c9b553574e0f7125450
368960cc5dc09284dff33129b2b8c31773705b81
/src/icalendar/cal.py
35a288bfffe8f490caabc473a9bd25aed3c3f9f4
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
collective/icalendar
802f70ecaa325cc5a8ce65e0c41bfcbdccf0a97b
8fb3353408df94d54b74a7e05586fd6c99eed7ef
refs/heads/master
2023-09-01T08:50:59.574456
2023-08-31T06:05:59
2023-08-31T06:05:59
2,222,138
716
166
NOASSERTION
2023-09-06T17:54:06
2011-08-17T14:16:35
Python
UTF-8
Python
false
false
26,597
py
cal.py
"""Calendar is a dictionary like Python object that can render itself as VCAL files according to rfc2445. These are the defined components. """ from datetime import datetime, timedelta from icalendar.caselessdict import CaselessDict from icalendar.parser import Contentline from icalendar.parser import Contentlines fro...
47578e8c9a4c34c9af096881f360db701ba24c9d
576764ad37667f8da2c63aaa1a9f96da211795a6
/tests/forte/data/datapack_type_infer_test.py
c2949f896adaa2c4e31102b30bbfbea84c815208
[ "Apache-2.0" ]
permissive
asyml/forte
96f852601647836dda3bccf3bd7900b9d10e6fcb
13e50aebe2afd79a7a8b3c01f0bb2568addea54f
refs/heads/master
2023-04-09T17:52:31.203644
2023-04-06T15:04:49
2023-04-06T15:04:49
201,518,876
233
73
Apache-2.0
2023-04-06T15:04:51
2019-08-09T18:12:12
Python
UTF-8
Python
false
false
1,486
py
datapack_type_infer_test.py
import unittest from ddt import data, ddt from forte.data.caster import MultiPackBoxer, MultiPackUnboxer from forte.data.data_pack import DataPack from forte.data.multi_pack import MultiPack from forte.data.readers.misc_readers import RawPackReader, RawMultiPackReader from forte.data.readers.multipack_sentence_reader ...
e198cc386a775751d9de1fbdba4acf6f48e18287
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/tests/extensions/test_custom_objects_for_setting_attribute.py
48a4b0ea4962ea9e4f40a4dbedf65dcdb9f9a27a
[ "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
3,759
py
test_custom_objects_for_setting_attribute.py
import pytest from strawberry.extensions.tracing.opentelemetry import OpenTelemetryExtension @pytest.fixture def otel_ext(): return OpenTelemetryExtension() class SimpleObject: def __init__(self, value): self.value = value def __str__(self): return f"SimpleObject({self.value})" class...
707621419f6a581693712630fbf9cc4d983499ba
5a4ff4e0a07ac57eead862a21d33fd441d89f05b
/proximal/prox_fns/__init__.py
a3ba9858774b3ff4381e8e750e55aefa8dc54e9a
[ "MIT" ]
permissive
comp-imaging/ProxImaL
758b25a41fb008a49236ed893b38b244968a0afa
3437814f70b45669aab5a44f7da02ee2da5751db
refs/heads/master
2023-08-18T15:22:10.030926
2023-07-23T17:26:31
2023-08-09T18:16:14
63,992,576
114
33
MIT
2023-09-13T21:42:35
2016-07-23T01:12:16
Python
UTF-8
Python
false
false
506
py
__init__.py
from .prox_fn import ProxFn from .diff_fn import diff_fn from .nonneg import nonneg, weighted_nonneg, masked_nonneg from .norm1 import norm1, weighted_norm1 from .sum_squares import sum_squares, weighted_sum_squares, least_squares, lsqr_options, cg_options from .group_norm1 import group_norm1, weighted_group_norm1 from...
6cfb8f790c345904cb3c7679ab19a3cb6029dbba
19f76203bbd176fe5a5ff7a2470ada9fb9af7c39
/taskflow/types/graph.py
5d6912797ee9c67d6f626d229b4108c7b4753733
[ "Apache-2.0" ]
permissive
openstack/taskflow
19f1c614f2fc175b6e57ac9280dc510e402c9f56
3b40c04594fb49ab17f8834f2f0df294a1f3e996
refs/heads/master
2023-09-04T23:38:07.154364
2023-08-16T13:57:37
2023-08-16T13:57:37
16,626,961
338
75
Apache-2.0
2018-10-29T14:30:27
2014-02-07T20:45:53
Python
UTF-8
Python
false
false
10,504
py
graph.py
# -*- coding: utf-8 -*- # Copyright (C) 2012 Yahoo! 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...
079e0d8c14f1752bd8a70fc23d4426739619c61b
304b690ca83b82ec52dae5f53146981860f799e1
/BasicLevel_Python/1009 说反话 (20 分).py
d0f6c480fa5df341b33437bc20d7d8f339354f9f
[]
no_license
liuchuo/PAT
53e6a01a5c54ebe0d8c575e10173d16b7d7cc91d
fe7a01b3ef233ac9f03b732b08947a85efe44a2a
refs/heads/master
2023-08-03T20:42:01.980531
2022-08-22T04:35:31
2022-08-22T04:35:31
49,113,721
3,713
1,168
null
2023-05-11T15:36:10
2016-01-06T05:06:34
C++
UTF-8
Python
false
false
76
py
1009 说反话 (20 分).py
i=input().split() a=(i[::-1]) b='' for c in a: b=b+c+' ' print(b[0:-1])
aefadd6d2ce4cf56175000f83f93cb30e7288506
98dbb9cd9523809b4ee0e6b92334fa6a2a6af2a3
/bingads/v13/bulk/bulk_service_manager.py
1f9b33b47c09a12745caecd97fdd4b61a4a91a75
[ "MIT" ]
permissive
BingAds/BingAds-Python-SDK
a2f9b0c099b574a4495d0052218f263af55cdb32
373a586402bf24af7137b7c49321dbc70c859fce
refs/heads/main
2023-07-27T15:31:41.354708
2023-07-10T03:21:03
2023-07-10T03:21:03
31,927,550
105
182
NOASSERTION
2023-09-04T06:51:20
2015-03-09T23:09:01
Python
UTF-8
Python
false
false
21,490
py
bulk_service_manager.py
import tempfile import uuid import codecs import csv import io from .bulk_operation import * from .upload_parameters import * from .file_reader import * from .file_writer import * from bingads.manifest import * from bingads.service_client import ServiceClient from bingads.authorization import * from bingads.util impo...
65faf6d1b9d2b7c2c348ad115c20fc840e0dcd4c
5c1746c4ae9f5eb4c94c9b3a70a4d3feb966ceda
/pcapkit/const/hip/esp_transform_suite.py
e9782ce8c45e9fdbd20a2c4f79eeeac2de3de635
[ "BSD-3-Clause" ]
permissive
JarryShaw/PyPCAPKit
8b53c76cf54f2ef1a9e4d0a7aeb3d52605dc1d5a
a6fe49ec58f09e105bec5a00fb66d9b3f22730d9
refs/heads/main
2023-08-29T12:49:58.611378
2023-08-28T14:05:43
2023-08-28T14:05:43
109,791,841
204
29
BSD-3-Clause
2023-09-11T17:09:06
2017-11-07T05:41:56
Python
UTF-8
Python
false
false
2,727
py
esp_transform_suite.py
# -*- coding: utf-8 -*- # pylint: disable=line-too-long,consider-using-f-string """ESP Transform Suite IDs ============================= .. module:: pcapkit.const.hip.esp_transform_suite This module contains the constant enumeration for **ESP Transform Suite IDs**, which is automatically generated from :class:`pcapki...
42df663e70e5b0d8a6202f3334f164d6be1a1779
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/TbapiQueryAmountResponse.py
c393dfb78ced614cb7e963299f230d57a60906b4
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,494
py
TbapiQueryAmountResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class TbapiQueryAmountResponse(object): def __init__(self): self._amt_map = None self._available_group_amt = None @property def amt_map(self): return self._amt_map ...
4a4a0fc7cf6bc9107c44724cb87bebff85815371
9e417620383442e018a677179fa09cebb2ff8c6f
/tests/test_model.py
dae8d28cc2a79dd207d1e59adb4a1a2bf9f3cb85
[ "MIT" ]
permissive
rgc99/irrigation_unlimited
12375871953af7fb5ccedd231560d946c51be2d2
21345ec6775b3d36eced42aa75178de451fc22b1
refs/heads/master
2023-08-23T09:22:56.898275
2023-08-19T02:00:11
2023-08-19T02:00:11
332,911,333
241
48
MIT
2023-07-30T23:21:42
2021-01-25T23:17:04
Python
UTF-8
Python
false
false
2,509
py
test_model.py
"""irrigation_unlimited model test template""" # pylint: disable=unused-import from datetime import timedelta import json import pytest import homeassistant.core as ha from custom_components.irrigation_unlimited.const import ( SERVICE_TIME_ADJUST, ) from tests.iu_test_support import IUExam, mk_utc, mk_local IUExam...
bee3c7ed1e26631b70701b916fefa2830bf89b26
cc819c6f09f522547c256056e6e5183dd1549755
/crossview_dataset/visualization/visualizer_3d.py
60fc76f5b47370ba0aa432f041c1df71121148fa
[]
no_license
longcw/crossview_3d_pose_tracking
f826a1a2fe1c0783860f47948b8edf187ea8702e
718e5ca5628f1dac01dfd693043f3bb6b6604dfa
refs/heads/master
2023-03-18T20:36:32.884028
2023-03-09T02:52:15
2023-03-09T02:52:15
248,119,205
129
22
null
null
null
null
UTF-8
Python
false
false
5,035
py
visualizer_3d.py
from vispy import scene from vispy.scene import cameras, visuals from vispy.visuals.line import LineVisual from threading import Thread from multiprocessing import Process, Queue from queue import Full import time import numpy as np import copy class XYZAxisVisual(LineVisual): """ Simple 3D axis for indicati...
801d3ba21a7cf9704d3ef59d5f9477b3eb83f65e
05643b9b4d20db912c3dbfbc191cadea3143016c
/instrumentation/opentelemetry-instrumentation-pymongo/tests/test_pymongo.py
8eab3b701c8bdb7a124fca8a4782e94b847dc425
[ "Apache-2.0" ]
permissive
open-telemetry/opentelemetry-python-contrib
35566cd088aa0b23ca977109fcd435ee480784b9
0871dd455c0adfa125a2f258a0b55c47a5da5227
refs/heads/main
2023-08-26T07:30:40.212226
2023-08-21T16:42:12
2023-08-21T16:42:12
220,524,743
476
401
Apache-2.0
2023-09-14T21:36:33
2019-11-08T18:23:43
Python
UTF-8
Python
false
false
7,983
py
test_pymongo.py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
8e930c4743f456593ba84c72408f7b78f5e0cef2
29bd0e9b5bdef7e2b4ff79edda3be258d5bde63c
/tests/test_lazyjson.py
f29482f0748b89041275f956933a41f1191d338a
[ "BSD-2-Clause" ]
permissive
xonsh/xonsh
4dec5e4c14a4a82f81277a89d8ab6091869fc29e
60f0145ed893cb73bbfcf336c448238981010d41
refs/heads/main
2023-08-31T03:37:57.786839
2023-08-23T15:30:20
2023-08-23T15:30:20
29,620,400
6,374
684
NOASSERTION
2023-09-11T02:52:37
2015-01-21T22:05:27
Python
UTF-8
Python
false
false
3,736
py
test_lazyjson.py
"""Tests lazy json functionality.""" from io import StringIO from xonsh.lazyjson import LazyJSON, LJNode, index, ljdump def test_index_int(): exp = {"offsets": 0, "sizes": 2} s, obs = index(42) assert exp == obs def test_index_str(): exp = {"offsets": 0, "sizes": 7} s, obs = index("wakka") ...