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
e14e6360e6ba194840800c3540808f29098f228b
0ad5557b4264f5d0387aa8c5a01e0946bb6e1b5f
/hack/jinja2/cdi-j2.py
c336bcf81b114ee091117842b7b6e43e37d70b63
[ "Apache-2.0" ]
permissive
kubevirt/hyperconverged-cluster-operator
ad4127a956bb01ede5979778282853fc4931b54a
24336013a2d554b465e6a2e18c4935980924f103
refs/heads/main
2023-08-31T19:15:39.442851
2023-08-31T12:46:04
2023-08-31T12:46:04
173,346,239
125
157
Apache-2.0
2023-09-14T13:40:06
2019-03-01T17:59:51
Go
UTF-8
Python
false
false
1,530
py
cdi-j2.py
#!/bin/env python import sys import os from jinja2 import Environment, FileSystemLoader j2FilePath = sys.argv[1] dockerPrefix = sys.argv[2] operatorImage = sys.argv[3] dockerTag = sys.argv[4] controllerImage = sys.argv[5] importerImage = sys.argv[6] clonerImage = sys.argv[7] apiserverImage = sys.argv[8] uploadproxyI...
efadccb0af1089e558bddf9956f3d1d29f61dc94
83da171ef6c1f8201a88534737c9e753247afee1
/fm_testing_tool/functions.py
74848cff902ef95cebe4a7b8db3ddca864a699bc
[ "BSD-3-Clause" ]
permissive
OasisLMF/OasisLMF
7bb691eb08f11641887257fe154d5356509707c5
23e704c335629ccd010969b1090446cfa3f384d5
refs/heads/main
2023-08-25T12:14:44.449756
2023-08-23T10:08:17
2023-08-23T10:08:17
117,560,568
122
53
BSD-3-Clause
2023-09-14T09:37:17
2018-01-15T15:12:25
Python
UTF-8
Python
false
false
7,580
py
functions.py
# Note that only the currently used fields are shown unless show_all is set to True. import os import pandas as pd import anytree from anytree.search import find from anytree.exporter import DotExporter import collections PolicyTuple = collections.namedtuple('PolicyTuple', 'layer_id agg_id calc_rules') CalcRuleTuple =...
1ca4380ce6bcc1c40b641cf2bcf07a3c5a9c9b64
607dc8df19fc5248f6289cdda97857b5d58ca16f
/examples/1_basics/6_priors.py
218bd8f46022a365dc3ea406cccf0b25c7cd24e6
[ "BSD-3-Clause", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-unknown-license-reference" ]
permissive
automl/SMAC3
7dce243a33023c52d6819deff966f7b502e90ed0
541ee7e0383b491b86d1a23dcff669f2efad616d
refs/heads/main
2023-08-31T17:36:06.067579
2023-08-01T13:02:51
2023-08-01T13:02:51
65,900,469
943
259
NOASSERTION
2023-09-11T02:36:57
2016-08-17T10:58:05
Python
UTF-8
Python
false
false
6,177
py
6_priors.py
""" User Priors over the Optimum ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Example for optimizing a Multi-Layer Perceptron (MLP) setting priors over the optimum on the hyperparameters. These priors are derived from user knowledge (from previous runs on similar tasks, common knowledge or intuition gained from manual tuning). To cre...
9c618c9347b8f15d5110a3bdab3f99e99b36b8d3
f14bd0618e08e81078afb4afee1990179543c994
/tests/python/headland_generator/const_hl_test.py
d636e0dfc29620c58df67f047e0c02267d1761a7
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Fields2Cover/Fields2Cover
5fc35c3848b384fd08b44f4e5354dcfc4254fab9
f75aaab695275ecae389d4740d136875e01d5ece
refs/heads/main
2023-09-03T10:14:51.088651
2023-08-21T11:10:56
2023-08-21T11:10:56
501,080,115
237
46
BSD-3-Clause
2023-08-02T14:29:29
2022-06-08T03:01:32
C++
UTF-8
Python
false
false
1,238
py
const_hl_test.py
#============================================================================== # Copyright (C) 2021-2022 Wageningen University - All Rights Reserved # Author: Gonzalo Mier # BSD-3 License #============================================================================== i...
bbc967df51575926c623a509eb4a9fa9e7b09484
db43055180800e54526affb7941fc77e0226c4b3
/city_scrapers/spiders/chi_animal.py
382c0e1112474d84f1c4744a8a45fccfca5e70ca
[ "MIT" ]
permissive
City-Bureau/city-scrapers
53724d4e973d71ec331cd9749e350c460aa6fb9d
611fce6a2705446e25a2fc33e32090a571eb35d1
refs/heads/main
2023-08-15T01:06:49.336847
2023-07-01T20:39:28
2023-07-01T20:39:28
97,890,025
308
366
MIT
2023-09-07T07:30:12
2017-07-21T00:45:13
Python
UTF-8
Python
false
false
2,440
py
chi_animal.py
import re from datetime import timedelta from city_scrapers_core.constants import ADVISORY_COMMITTEE from city_scrapers_core.items import Meeting from city_scrapers_core.spiders import CityScrapersSpider from dateutil.parser import parse as dateparse class ChiAnimalSpider(CityScrapersSpider): name = "chi_animal"...
01eb00063b50a3a06afb3cfb4e1e812bd4494a60
113d5a8590a578817e1cfdbebb24584931630e9a
/tikz/pi/create.py
a9695854b8ba65c84f85f1464bf7aa37f24116e0
[ "MIT" ]
permissive
MartinThoma/LaTeX-examples
17f0d147269035b8e0e454964c76521cf26cf899
6d517700348d86e21c874c131582f0e74da342dc
refs/heads/master
2023-08-23T01:27:57.441809
2022-03-25T14:05:36
2022-03-25T14:05:36
5,351,405
1,492
452
MIT
2023-03-02T18:51:55
2012-08-09T05:02:14
TeX
UTF-8
Python
false
false
796
py
create.py
#!/usr/bin/env python """Create a data.csv file.""" import csv try: # import version included with old SymPy from sympy.mpmath import mp except ImportError: # import newer version from mpmath import mp mp.dps = 1000 # set number of digits pi = mp.pi print(pi) # Split pi in groups of two digits pi ...
bdb63042c30748abae1dadc08002f89628ca4928
975b2d421d3661e6770b601929d5f11d981d8985
/msgraph/generated/models/security/ediscovery_review_tag.py
546f9d9883f171ced24a507ea5793312fcea9a2e
[ "MIT" ]
permissive
microsoftgraph/msgraph-sdk-python
a7c551b85daadeebf76ec4ae12668664ea639b42
27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949
refs/heads/main
2023-09-03T21:45:27.989672
2023-08-31T06:22:18
2023-08-31T06:22:18
534,665,999
135
18
MIT
2023-09-14T11:04:11
2022-09-09T14:00:17
Python
UTF-8
Python
false
false
2,996
py
ediscovery_review_tag.py
from __future__ import annotations from dataclasses import dataclass, field from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from .child_selectability import ChildSelectability fr...
d7b25ef2bb6ef70cd245cfc722bd48e61727153d
5d7be5902f2136b5ca229776e0274a7d45328d22
/code/exampleStrats/alwaysCooperate.py
68752fd4c559a8d242bd0428fb290460c3f606a6
[ "MIT" ]
permissive
carykh/PrisonersDilemmaTournament
c207be62369329423fefb9d6283ee134fa983e1c
7ccf50a9c0e3155463f060d2bf857f98adf29746
refs/heads/main
2023-06-12T03:55:08.041052
2021-05-25T04:39:39
2021-05-25T04:39:39
364,188,537
247
203
MIT
2021-06-01T04:30:02
2021-05-04T08:25:16
Python
UTF-8
Python
false
false
49
py
alwaysCooperate.py
def strategy(history, memory): return 1, None
44a31419e73d02decff91391b25a1cbe7a75a22a
2066e9e86a81291ef25029a37719a10d519c6545
/tools/openwebtext/remove_group_duplicates.py
44b62d62c19f35ef555507f7a07fc2bb73c8ca51
[ "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,977
py
remove_group_duplicates.py
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. import json import time import sys if __name__ == '__main__': url_filename = sys.argv[1] data_filename = sys.argv[2] output_filename = sys.argv[3] urls = set() with open(url_filename, 'r') as f: for line in f: m...
f5ddafd24cf46667158470b60df6ec5bbd7c4c79
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/parallel/test_concat.py
8146091bceee19e01e2d3ac7f258e1267d3a6c6f
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
5,624
py
test_concat.py
# Copyright 2020 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...
669fb95d0a7ccb62d7552650a84bb9bbb2c0efa0
9ba214bbcdb58f5134b96bd41f5f54b60faf77a4
/avalanche/benchmarks/datasets/core50/core50.py
cefce9fb52d0e635da691655ca72d0bbf96a6909
[ "MIT" ]
permissive
ContinualAI/avalanche
aedc55059d7b952beb50898f213b9c66953cb764
deb2b3e842046f48efc96e55a16d7a566e022c72
refs/heads/master
2023-08-08T23:26:10.835875
2023-08-02T14:39:40
2023-08-02T14:39:40
245,145,949
1,424
270
MIT
2023-09-04T04:17:05
2020-03-05T11:32:13
Python
UTF-8
Python
false
false
9,620
py
core50.py
################################################################################ # Copyright (c) 2021 ContinualAI. # # Copyrights licensed under the MIT License. # # See the accompanying LICENSE file for terms. ...
9952dd9f1c4ad9ddcbf502f5d50ba45c467d021b
bce455fd7aecea25000fe07c7814e8b85beb91e7
/hooks/clang_format.py
f2f60f6da8f974125acbfc1ba7dc1be5e02a1bf5
[ "Apache-2.0" ]
permissive
pocc/pre-commit-hooks
766b563ce8ae3d6a07736d79b810c987b98bfbf7
336fdd7c3cab698ead0b1c95157b9e74d3906b62
refs/heads/master
2023-08-17T11:36:22.005965
2021-12-29T07:06:50
2021-12-29T07:12:35
182,405,929
269
63
Apache-2.0
2023-08-14T15:28:22
2019-04-20T12:54:26
Python
UTF-8
Python
false
false
938
py
clang_format.py
#!/usr/bin/env python3 """Wrapper script for clang-format""" import sys from typing import List from hooks.utils import FormatterCmd class ClangFormatCmd(FormatterCmd): """Class for the ClangFormat command.""" command = "clang-format" lookbehind = "clang-format version " def __init__(self, args: Li...
91cc3144b7f7b8d5531d59ddc87f521a6011a263
e5e0d729f082999a9bec142611365b00f7bfc684
/tensorflow/python/training/tracking/layer_utils.py
b83b0f84f91edfd58fe37b18ae1eab056df5faf1
[ "Apache-2.0" ]
permissive
NVIDIA/tensorflow
ed6294098c7354dfc9f09631fc5ae22dbc278138
7cbba04a2ee16d21309eefad5be6585183a2d5a9
refs/heads/r1.15.5+nv23.03
2023-08-16T22:25:18.037979
2023-08-03T22:09:23
2023-08-03T22:09:23
263,748,045
763
117
Apache-2.0
2023-07-03T15:45:19
2020-05-13T21:34:32
C++
UTF-8
Python
false
false
4,065
py
layer_utils.py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
28e68d76da3888406b920a7f67a81231104951e0
cfa35dc2ea93ee0eceb2399a9e6112e987579c09
/stonesoup/sensormanager/reward.py
5b1fb1f24a0fb52abbbb069fbcc02978ff884df1
[ "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "Python-2.0", "LicenseRef-scancode-secret-labs-2011" ]
permissive
dstl/Stone-Soup
227e6a9e6fbdceca14af3f0259f311ec74095597
f24090cc919b3b590b84f965a3884ed1293d181d
refs/heads/main
2023-09-01T14:33:14.626428
2023-09-01T11:35:46
2023-09-01T11:35:46
98,420,803
315
126
MIT
2023-09-14T14:55:34
2017-07-26T12:34:28
Python
UTF-8
Python
false
false
5,818
py
reward.py
from abc import ABC import copy import datetime from typing import Mapping, Sequence, Set import numpy as np from ..types.detection import TrueDetection from ..base import Base, Property from ..predictor.kalman import KalmanPredictor from ..updater.kalman import ExtendedKalmanUpdater from ..types.track import Track f...
12972c0c3d04bf3863f87c84435ab170558a2fd5
e70ccd8d27af13e1568e2d1d6f3d918df2b72e3f
/src/qrl/__init__.py
cdd2fb84459b5eae8e75f9c6985de01e007d403a
[ "MIT" ]
permissive
theQRL/QRL
21be76cdea5134ae8f8b83a334f3a569ca85ab14
7600ec054edecc22f0b86b76b8e00f11a161486a
refs/heads/master
2023-08-16T23:58:58.566589
2023-08-01T17:45:29
2023-08-01T17:45:29
71,055,814
462
215
MIT
2023-08-01T17:45:31
2016-10-16T14:32:40
Python
UTF-8
Python
false
false
147
py
__init__.py
# -*- coding: utf-8 -*- __all__ = ['core', 'crypto'] from ._version import get_versions __version__ = get_versions()['version'] del get_versions
831562cf531b92e4979bf47892952b947f8fe301
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/parallel/test_parallel_mirror_group.py
36eb2fbee2d36f9d3599957c12c49a49a769784f
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
9,492
py
test_parallel_mirror_group.py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
9497f0970b34389a87d0f666c63ad26349f4d89a
2cfe6bb4a509c33c32ffde9edbc0f992bc6218ad
/examples/example_preprocessor.py
a2c1003aea4409e579453ce62b667d8b43c73a66
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
PyHDI/Pyverilog
7b0c642f58b809b106c689fbfa51f337fda956c2
81838bc463d17148ef6872af34eb27585ee349ba
refs/heads/develop
2023-08-05T23:09:47.258312
2022-12-23T14:16:24
2022-12-23T14:16:24
14,871,471
527
161
Apache-2.0
2023-05-15T12:05:26
2013-12-02T18:53:03
Python
UTF-8
Python
false
false
1,441
py
example_preprocessor.py
from __future__ import absolute_import from __future__ import print_function import sys import os from optparse import OptionParser # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import pyverilog from pyverilog.vparser.preprocessor imp...
27d5aabd4fef34d44bf8a1525f4e5b53fa70f0bd
d594f3926f6379ef7c382c608cb211f507240420
/csunplugged/at_home/migrations/0013_auto_20220520_0506.py
527022ff8abe08e016136a578caa8e617ba639f4
[ "LicenseRef-scancode-secret-labs-2011", "MIT", "OFL-1.1", "LGPL-2.0-or-later", "AGPL-3.0-only", "CC-BY-4.0", "Apache-2.0", "BSD-3-Clause", "CC-BY-SA-4.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
uccser/cs-unplugged
0b9151f84dd490d5b90771a3706327a623d39edc
363e281ff17cefdef0ec61078b1718eef2eaf71a
refs/heads/develop
2023-08-25T08:45:29.833025
2023-08-22T02:58:35
2023-08-22T02:58:35
66,315,075
200
41
MIT
2023-09-14T02:15:40
2016-08-22T23:16:40
Python
UTF-8
Python
false
false
691
py
0013_auto_20220520_0506.py
# Generated by Django 3.2.11 on 2022-05-20 05:06 import django.contrib.postgres.indexes import django.contrib.postgres.search from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('at_home', '0012_auto_20210929_2238'), ] operations = [ migrations.AddF...
c6497b73ed2d1e9aa567fe2189bcc65ccafba8f3
6416b746ee71d897789eab1e450000831674dbd0
/src/otx/api/utils/shape_factory.py
b27eacb987173123a85e925d80ab16e1fdbd3442
[ "Apache-2.0" ]
permissive
openvinotoolkit/training_extensions
c921f83ad52311af96ff45ae0b88d0aecddd855b
80454808b38727e358e8b880043eeac0f18152fb
refs/heads/develop
2023-08-31T06:29:07.229339
2023-08-31T01:57:26
2023-08-31T01:57:26
154,843,614
397
230
Apache-2.0
2023-09-14T06:17:01
2018-10-26T14:02:29
Python
UTF-8
Python
false
false
7,691
py
shape_factory.py
"""This module implements helpers for converting shape entities.""" # Copyright (C) 2021-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 # from otx.api.entities.shapes.ellipse import Ellipse from otx.api.entities.shapes.polygon import Point, Polygon from otx.api.entities.shapes.rectangle import Rectangle...
6b4b7f63bab8bedfc3b12af5087eb44b41914f44
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/ut/python/dataset/test_eager_vision.py
9f8760d9e2b7847baef9840518f5aa9b45b4351a
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
22,701
py
test_eager_vision.py
# Copyright 2020-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 agre...
2e3dd4f72a2a4e86eeb389cf885fd48ec83f8cb7
0351ff5888ba1bec6b8643ea0b4fb4aa2d805b53
/biggraphite/cli/command_clean.py
10aacf2174e45529065eff5b3e38690cd15a5e7f
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
criteo/biggraphite
aa71ca2105df0da92d41c5894f191e4cc54f7a2e
1f647ada6b3f2b2f3fb4e59d326f73a2c891fc30
refs/heads/master
2022-12-11T04:00:28.341918
2021-10-01T09:07:29
2021-10-01T09:07:29
57,889,412
129
43
Apache-2.0
2022-11-04T19:39:42
2016-05-02T12:42:07
Python
UTF-8
Python
false
false
6,255
py
command_clean.py
#!/usr/bin/env python # Copyright 2016 Criteo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
d0fcc0cbcd0fd778f84dc09620d4b0598a9e6901
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/datafactory/managed_private_endpoint.py
3848ffa92265d7057583663ac80b94a158342619
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-azure
a8f8f21c46c802aecf1397c737662ddcc438a2db
c16962e5c4f5810efec2806b8bb49d0da960d1ea
refs/heads/master
2023-08-25T00:17:05.290397
2023-08-24T06:11:55
2023-08-24T06:11:55
103,183,737
129
57
Apache-2.0
2023-09-13T05:44:10
2017-09-11T20:19:15
Java
UTF-8
Python
false
false
21,259
py
managed_private_endpoint.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...
8a3fa06daa3e454e257d5ac5eb773cb0916a5d79
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/pypy/objspace/std/test/test_setstrategies.py
1088d8c734cb348fdbe86ccf222f729d02453262
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
6,034
py
test_setstrategies.py
from pypy.objspace.std.setobject import W_SetObject from pypy.objspace.std.setobject import ( BytesIteratorImplementation, BytesSetStrategy, EmptySetStrategy, IntegerIteratorImplementation, IntegerSetStrategy, ObjectSetStrategy, UnicodeIteratorImplementation, UnicodeSetStrategy) from pypy.objspace.std.listo...
13f04cab29128cd237a248eaf5f90de24492369f
23cb4636462e4cd85f0ab238684b37f75a176396
/src/gerrit/review/review.py
c701fdef8e8a476b5b5c208cbfcf9cd61eb2a486
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SAP/InfraBox
0c4489de996438b332f1cea70e767ba3ff906117
481f23d5fce7c9654bc0b0a5a54d4c77b728adf0
refs/heads/master
2023-08-14T17:58:39.147263
2023-07-24T07:12:50
2023-07-24T07:12:50
126,344,645
275
81
Apache-2.0
2023-09-12T05:52:12
2018-03-22T14:06:46
Python
UTF-8
Python
false
false
6,459
py
review.py
import json import select import urllib import time import os import psycopg2 import paramiko from pyinfraboxutils import get_logger, get_env, get_root_url from pyinfraboxutils.db import connect_db from pyinfraboxutils.leader import elect_leader, is_leader, is_active logger = get_logger("gerrit") def execute_sql(co...
0ce7b90f0647a608b56b30a2505356a0ba4adb59
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayIserviceIsresourceUserquerybyclvuidsQueryModel.py
4c6385f7efc7ee14b8318de1e09808c3352e454f
[ "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
3,649
py
AlipayIserviceIsresourceUserquerybyclvuidsQueryModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayIserviceIsresourceUserquerybyclvuidsQueryModel(object): def __init__(self): self._clv_user_ids = None self._query_role = None self._query_skill_group = None ...
3385ba5bbfa5f542d695a8fbf72d5dbcdb21e1c9
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/EnterpriseOpenRuleRelationInfo.py
88c8cc013217f6b623a48000325c99ba0969100e
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,973
py
EnterpriseOpenRuleRelationInfo.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class EnterpriseOpenRuleRelationInfo(object): def __init__(self): self._enterprise_id = None self._gmt_create = None self._gmt_modified = None self._owner_id = None ...
2b74fce58dddd3b0ec51fd304a75b3fd56e3c55d
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/contrib/pigz/template.py
d68ab3187de604f3c3aec43447b3ec51de131fc5
[ "BSD-2-Clause" ]
permissive
chimera-linux/cports
fdae59dc25856942be3041e10e3533dbf8f883c3
714680161cd719dd047452c95fbb9b447bc23a86
refs/heads/master
2023-09-03T19:30:40.720670
2023-09-03T15:07:40
2023-09-03T15:07:40
374,000,317
118
37
BSD-2-Clause
2023-09-14T20:31:08
2021-06-05T02:07:34
Python
UTF-8
Python
false
false
601
py
template.py
pkgname = "pigz" pkgver = "2.8" pkgrel = 0 build_style = "makefile" make_check_target = "test" makedepends = ["zlib-devel"] pkgdesc = "Parallel implementation of gzip" maintainer = "psykose <alice@ayaya.dev>" license = "Zlib" url = "https://github.com/madler/pigz" source = f"https://zlib.net/pigz/pigz-{pkgver}.tar.gz" ...
6fcb715425340fbbe5878e93a98a8b0b061d0364
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/addons/forward/tests/test_models.py
3a544a2f12cccf342d62a6565c3694d837f535ce
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
1,732
py
test_models.py
# -*- coding: utf-8 -*- import unittest from nose.tools import assert_raises, assert_equal import pytest from django.core.exceptions import ValidationError from osf_tests.factories import ProjectFactory, RegistrationFactory from addons.forward.tests.factories import ForwardSettingsFactory pytestmark = pytest.mark.dj...
9f2758b283c2326d32563799d596b10578cd3c3d
23eafaa60b66769190227c80ac1b087697c72ed8
/common/devpi_common/types.py
145b875f233df25dbb8f90ba5f00960265d4b6df
[ "MIT" ]
permissive
devpi/devpi
fe4d76f2ab57da3a766a9e13c51cd4f229598083
56c266744ddfd182d46ca480b787ab44a6ee4692
refs/heads/main
2023-09-04T02:57:22.075986
2023-08-06T10:32:46
2023-08-06T10:32:46
86,787,680
760
148
null
2023-09-09T19:53:10
2017-03-31T06:51:39
Python
UTF-8
Python
false
false
4,861
py
types.py
from __future__ import absolute_import, unicode_literals from lazy import lazy as cached_property # noqa from types import FunctionType import hashlib import operator # re-introduced for 2.0 series but not used anymore def propmapping(name, convert=None): if convert is None: def fget(self): r...
a7b8cef4b51056009da205b20cbb44bee5995f25
b54db4f80d50fac2e880fa32312d5e39fd71cdf0
/torchelie/nn/utils.py
87ee5010620d13acbf03daa8762e15d42083ca16
[ "MIT" ]
permissive
Vermeille/Torchelie
91fde0145d67a3b50472db4f1429937fe277e45b
3b09ea9a4cfa195aa78dcac676aab1c43815bd53
refs/heads/master
2023-08-17T08:26:44.549037
2023-08-14T15:49:16
2023-08-14T15:49:16
196,767,053
124
14
MIT
2023-08-21T12:22:42
2019-07-13T21:14:50
Python
UTF-8
Python
false
false
12,318
py
utils.py
import warnings from collections import OrderedDict from typing import Any, TypeVar, Callable, Tuple import torch import torch.nn as nn from torch.nn import Module from torchelie.utils import kaiming_gain, kaiming, fast_zero_grad from torch.nn.parameter import Parameter def patch_repr(m: nn.Module): import type...
5ab9a28330b472145e84c5abea43d897d731d679
7f620e7902c0b9ccb1fcfd1427acd5936ea33814
/mlrun/api/utils/events/iguazio.py
aa535d7e856dcecb5fd06288fdc1c60d31efa5d9
[ "Apache-2.0" ]
permissive
mlrun/mlrun
2074c230070129ce3becb211b92c90b29a2ce850
b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77
refs/heads/development
2023-09-06T00:09:21.546135
2023-09-05T19:38:13
2023-09-05T19:38:13
205,706,595
1,093
229
Apache-2.0
2023-09-14T14:14:10
2019-09-01T16:59:19
Python
UTF-8
Python
false
false
8,798
py
iguazio.py
# Copyright 2023 Iguazio # # 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, softwa...
b2710f4500af29d89ee8dd653037155dc1e8c097
0f72450fe0eb3238a0faf876b8b63b2a47d76166
/aiohttp_devtools/cli.py
db06d1456ef280bc57b0bcd02e1d14428ad6074a
[ "MIT" ]
permissive
aio-libs/aiohttp-devtools
5503bc8687c40569f0a85bd0641e318f25410c31
22c395b8e6a57fef7dca483db4dfca80ca61576c
refs/heads/master
2023-09-01T02:08:43.771864
2023-08-30T22:46:41
2023-08-30T22:46:41
68,917,117
240
61
MIT
2023-09-07T22:24:26
2016-09-22T12:03:09
Python
UTF-8
Python
false
false
5,611
py
cli.py
import sys import traceback from typing import Any import click from aiohttp.web import run_app from . import __version__ from .exceptions import AiohttpDevException from .logs import main_logger, setup_logging from .runserver import INFER_HOST from .runserver import runserver as _runserver from .runserver import ser...
a76be3a7a15779dd4232089520b3a3bb49e55113
8d77f3b72dc52b85ee0c4ef6ba06f63a6920841f
/fx2ait/fx2ait/test/converters/test_ait_gelu.py
444d885d274bab2cb1573a673177fd7b8d717bb6
[ "Apache-2.0" ]
permissive
facebookincubator/AITemplate
b643c217e1d15f7f17dab1eb1cc6855eab664b97
c60dc19788217556ba12ea378c02b9fd0aea9ffe
refs/heads/main
2023-08-28T18:22:15.828008
2023-08-28T14:43:41
2023-08-28T14:43:41
514,321,895
4,065
334
Apache-2.0
2023-09-14T04:53:57
2022-07-15T15:40:58
Python
UTF-8
Python
false
false
2,063
py
test_ait_gelu.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
ba4aadf78aa268df2d5b2cbdb93e08e5939d35db
3d51ca27b37f9ae01eeefe05fd4905681faff441
/setup.py
4ffbee296089aff6dcbebf36db33285f03b2c59a
[ "MIT" ]
permissive
denisenkom/pytds
513466a72b87d982188b2606ac1fadc48ac916ea
9bebbe4e3539a2bd6d0011581882a0a1a30350c1
refs/heads/master
2023-09-01T12:07:28.152217
2023-08-27T18:22:48
2023-08-27T18:22:48
6,725,332
164
57
MIT
2023-06-22T23:47:51
2012-11-16T17:28:20
Python
UTF-8
Python
false
false
994
py
setup.py
import os import setuptools from setuptools import setup import version requirements = list(open(os.path.join(os.path.dirname(__file__), 'requirements.txt'), 'r').readlines()) print(setuptools.find_packages('src')) setup(name='python-tds', version=version.get_git_version(), description='Python DBAPI driv...
5a4f4b1fe7916a9ba2a44c30cffae018cfeb9742
808edf89a9c4d08ed636ff37141f0affe0c7deb9
/yalign/__init__.py
142a2c61167e96b0cf0354d67b3542929eb6edd6
[]
no_license
machinalis/yalign
bf88b93140274f5d6d7614e506f3bf861b239fde
e063b4f62d043476492bb0add06f60a90f7f025f
refs/heads/develop
2021-01-17T10:32:27.984333
2015-08-14T19:48:23
2015-08-14T19:48:23
12,383,081
101
32
null
2016-05-19T16:07:19
2013-08-26T15:46:31
Python
UTF-8
Python
false
false
2,567
py
__init__.py
# -*- coding: utf-8 -*- """ Examples of how to use the yalign API: .. code-block:: python # Load a model from model that was saved to a folder eg.. en-es: from yalign import YalignModel model = YalignModel.load('en-es') # Align text from yalign import text_to_document english_text = \"""...
71262e027e299bfb0748d2e0f56fc18ae42be740
45dc95e5487723baf1114000962e0138034db678
/archive/unintended_ml_bias/new_madlibber/word_helper.py
a1d6e73d6a6da4bea0464585422a0ddb32f42021
[ "MIT", "Apache-2.0", "CC-BY-4.0" ]
permissive
conversationai/unintended-ml-bias-analysis
4a86348b9e720f1270767490f2a742f70490e630
97b110b029f9cd8372bae4b1919486c046f0a768
refs/heads/main
2023-09-04T18:25:53.084052
2023-08-14T22:38:13
2023-08-14T22:38:13
90,418,308
340
113
Apache-2.0
2023-08-14T22:38:15
2017-05-05T21:36:46
Jupyter Notebook
UTF-8
Python
false
false
1,345
py
word_helper.py
# Copyright 2021 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, ...
79f358749f08ec29d767acf192b31b30e565ac50
5354d3a2ab53b7a1b76ac4b8fab3976cd7e3460e
/dearpygui/_dearpygui.pyi
f10ed2de2e70aef407e5aaa1a51663379b981287
[ "MIT" ]
permissive
hoffstadt/DearPyGui
810e53f733e1eedd9622becd6577c73a38446bd8
1fe2f6c34037ed529c987b9fc4d13e2ac757508b
refs/heads/master
2023-08-31T14:48:34.407217
2023-08-30T01:21:59
2023-08-30T01:21:59
267,649,918
11,144
871
MIT
2023-09-10T11:20:55
2020-05-28T17:12:57
C++
UTF-8
Python
false
false
109,017
pyi
_dearpygui.pyi
from typing import List, Any, Callable, Union, Tuple from dearpygui._dearpygui import * ########################################################## # This file is generated automatically by mvPythonParser # ########################################################## # ~ Dear PyGui Version: master def add_2d_histogram_s...
f805b69949806f1cf6f9e105f8856ea3ade789ee
6f36df6219f8e50374068bb4b3e1a5387c7a2f34
/fipy/meshes/builders/grid3DBuilder.py
464f24fa715785fccb59b1857d50ecb9c82f4bfc
[ "NIST-PD" ]
permissive
usnistgov/fipy
0a3db715fea452ae710eea3999d9cd42dfe76fe7
fdc17193bc293da7511be9021e6d4766757e1966
refs/heads/master
2023-08-31T21:59:36.611448
2023-06-27T16:28:58
2023-06-27T16:28:58
23,316,495
444
171
NOASSERTION
2023-09-06T19:21:19
2014-08-25T14:27:58
Python
UTF-8
Python
false
false
8,698
py
grid3DBuilder.py
from __future__ import unicode_literals __docformat__ = 'restructuredtext' __all__ = [] from fipy.meshes.builders.abstractGridBuilder import _AbstractGridBuilder from fipy.tools import numerix from fipy.tools import vector from fipy.tools.dimensions.physicalField import PhysicalField from fipy.meshes.builders.utility...
155e430999723f5257efcc7d7069ee4363d763f6
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-InstantMessage/PyObjCTest/test_imavmanager.py
82e413751bb18c4284c339dc3db44cdab79a3239
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
2,024
py
test_imavmanager.py
import InstantMessage from PyObjCTools.TestSupport import TestCase, min_os_level import objc class TestIMAVManagerHelper(InstantMessage.NSObject): def getPixelBufferPixelFormat_(self, _): return 10 def renderIntoPixelBuffer_forTime_(self, buf, time): return False def getOpenGLBufferConte...
e01bf01e77bb6c6dc713e31081b145f57e3fc568
fd3f800821299f64ff59844eea2797a216c9c42a
/hulearn/experimental/interactive.py
35df5dcd69b9c7d84e1d7c7f7760cd8757f5191f
[ "MIT" ]
permissive
koaning/human-learn
336da4b36a0c818861f1d0a0034cbbbc6cd9d6ed
6c7501aba5faf7be1b6f4daae98b30a7a35cad5d
refs/heads/master
2023-04-06T00:11:07.673197
2023-03-31T03:35:41
2023-03-31T03:35:41
278,844,314
741
54
MIT
2023-03-31T03:22:55
2020-07-11T11:03:11
Jupyter Notebook
UTF-8
Python
false
false
9,734
py
interactive.py
import os import uuid import random import pathlib from string import Template from pkg_resources import resource_filename from clumper import Clumper from IPython.core.display import HTML from bokeh.models import ColumnDataSource from bokeh.plotting import figure, show from bokeh.models import PolyDrawTool, PolyEditT...
8d6368fa805131155858b3d2a75ca2c4baf2329b
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/examples/asr/quantization/speech_to_text_calibrate.py
264806c7b1ba0f68dc8bc8e92db2a7def127e575
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
6,301
py
speech_to_text_calibrate.py
# Copyright (c) 2020, NVIDIA CORPORATION. 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...
46d0626d7a064390245549a41628aabd74bb323c
35b6013c1943f37d1428afd2663c8aba0a02628d
/functions/memorystore/redis/main.py
aa91b2924c243062e2b1a504503f512e6093df4c
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
1,009
py
main.py
# Copyright 2019 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, s...
0f7bf0ff6db0083fe8d50f4a25ae9be5699ca126
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/datahub/databus/tests/modules/clean_views_test.py
adbcec5e9ee9e638284e05325544f3233f1856ef
[ "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
28,563
py
clean_views_test.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 蓝鲸基础平台: ------------------------------------------...
d0b201e2caa59e7e1141463598062c3c16ce55a8
5bfd50a215f3db21cd93c69a93a50382fa3268dc
/pylibs/numpy_db/__init__.py
ca8f078786eee21927615ad46cc8f55429a36d54
[ "BSD-2-Clause-Views" ]
permissive
leoshine/Spherical_Regression
95097e5730f077de8c02ddafabc965b55032e389
d19bc2f6f52982d4d58f5ddabe4231381d7facd7
refs/heads/master
2021-09-26T09:13:56.466686
2021-09-13T15:06:47
2021-09-13T15:06:47
177,441,335
152
19
null
null
null
null
UTF-8
Python
false
false
263
py
__init__.py
""" @Author : Shuai Liao """ from basic.common import is_py3 if is_py3: # python3 from .numpy_db_py3 import npy_table, npy_db, dtype_summary, reorder_dtype else: # python2 from .numpy_db import npy_table, npy_db, dtype_summary, reorder_dtype
f26521436ca769c652a4be718ebb1fbaf9ee6252
7766096d6b2032562304e4b20190256ac2a5023e
/xbox/webapi/api/provider/achievements/__init__.py
106bcbac4fbfcc1637d02814969c7df8554fb5dd
[ "MIT" ]
permissive
OpenXbox/xbox-webapi-python
c9d47be15cebc258ced7afde1ead70b5cd2d7a8c
398320c7777475959e4f8c6716297735be04aac4
refs/heads/master
2023-03-16T23:02:06.051438
2022-11-12T15:28:50
2022-11-12T15:28:50
125,562,423
166
55
MIT
2022-11-15T13:31:11
2018-03-16T19:43:18
Python
UTF-8
Python
false
false
4,709
py
__init__.py
""" Achievements Get Xbox 360 and Xbox One Achievement data """ from xbox.webapi.api.provider.achievements.models import ( Achievement360ProgressResponse, Achievement360Response, AchievementResponse, RecentProgressResponse, ) from xbox.webapi.api.provider.baseprovider import BaseProvider class Achiev...
60b5c3e2b0671e069d2e87d4e243ae058c7f0c52
6deafbf6257a5c30f084c3678712235c2c31a686
/Toolz/sqlmap/thirdparty/odict/odict.py
9b7e9d7be27c931b4000ead40e601aa2d481b2cc
[ "Unlicense", "LicenseRef-scancode-generic-cla", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license", "GPL-2.0-only", "LicenseRef-scancode-commercial-license", "LicenseRef-scancode-other-permissive" ]
permissive
thezakman/CTF-Heaven
53fcb4a72afa821ad05d8cc3b309fb388f958163
4b52a2178922f1502ab00fa8fc156d35e1dc653f
refs/heads/master
2023-04-05T18:20:54.680378
2023-03-21T13:47:45
2023-03-21T13:47:45
167,290,879
182
24
Unlicense
2022-11-29T21:41:30
2019-01-24T02:44:24
Python
UTF-8
Python
false
false
46,249
py
odict.py
# odict.py # An Ordered Dictionary object # Copyright (C) 2005 Nicola Larosa, Michael Foord # E-mail: nico AT tekNico DOT net, fuzzyman AT voidspace DOT org DOT uk # This software is licensed under the terms of the BSD license. # http://www.voidspace.org.uk/python/license.shtml # Basically you're free to copy, modify,...
4f79a0e3b19f47cc21558d07ec95539ce7030e31
d6971b685e1a4e819eb820ec51d03b077a80c177
/protect_archiver/downloader/download_file.py
01197c8ec63332de8b07615cdc757db9d21bbb65
[ "MIT" ]
permissive
danielfernau/unifi-protect-video-downloader
620063329198f0ac3990bf55aaabfedd64fdd3e2
ee683c2d8bbcc80ef8e6a02628b5fed85cba74af
refs/heads/master
2023-08-31T13:50:55.714195
2023-08-27T16:25:16
2023-08-27T16:25:16
214,804,592
188
22
MIT
2023-09-12T14:27:38
2019-10-13T11:00:51
Python
UTF-8
Python
false
false
6,701
py
download_file.py
# file downloader import json import logging import os import time from typing import Any import requests from protect_archiver.errors import Errors from protect_archiver.utils import format_bytes def download_file(client: Any, query: str, filename: str) -> None: exit_code = 1 retry_delay = max(client.down...
fbed69811a67f0f9fcf5b82324910155eaac91b5
ba5eabcf0e3880a4cc86e9222fcb2ecd5f53b103
/experimental/tools/get_examples.py
a2a17e8912cab8758bab37ce0ca2d8dfb01467d3
[ "BSD-3-Clause" ]
permissive
aseprite/skia
d2b63003610c796594e81deea093eb6b13704838
478f512f7a84658167d9f83f35d42fb0903b4a37
refs/heads/aseprite-m102
2023-08-24T00:47:30.288547
2023-02-28T20:21:26
2023-03-03T18:12:59
45,053,736
139
51
BSD-3-Clause
2023-03-03T18:14:21
2015-10-27T16:20:42
C++
UTF-8
Python
false
false
3,718
py
get_examples.py
#! /usr/bin/env python # Copyright 2020 Google LLC. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. ''' get_examples.py: Populate docs/examples/ from the list of named fiddles. ''' import os import re import sys if sys.version_info[0] < 3: from urllib2 import u...
4488086405f2e64d628a5da0c05877ecff78d072
620323fc090cebaf7aca456ff3f7fbbe1e210394
/PySvn_examples/common.py
dc845bc8ed7b03c25640e8c4501b271185b39dc6
[ "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
827
py
common.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" # SOURCE: https://github.com/dsoprea/PySvn import os from collections import defaultdict import svn.local import svn.remote def get_log_list(url__or__file_name: str, revision_from=None, limit=None) -> list: if os.path.exists(url__or__fil...
5cb7c75979f332b14e97075f1ed68fce2f6145a4
55bfe899250607e99aa6ed20c5d688200ce4225f
/mini_ros/src/servo_calibration
24e8b4506b361900bee8d90aca1f789fa698c698
[ "MIT" ]
permissive
OpenQuadruped/spot_mini_mini
96aef59505721779aa543aab347384d7768a1f3e
c7e4905be176c63fa0e68a09c177b937e916fa60
refs/heads/spot
2022-10-21T04:14:29.882620
2022-10-05T21:33:53
2022-10-05T21:33:53
251,706,548
435
125
MIT
2022-09-02T07:06:56
2020-03-31T19:13:59
C++
UTF-8
Python
false
false
1,556
servo_calibration
#!/usr/bin/env python """ DESCRIPTION: SUBSCRIBERS: """ from __future__ import division import rospy from mini_ros.srv import CalibServo, CalibServoResponse from mini_ros.msg import JointPulse import numpy as np import sys import rospkg rospack = rospkg.RosPack() sys.path.append(rospack.get_path('mini_ros') + '/.....
b0e0c1c47d94bbe6b31e44d9b0065e3a76c9f377
c6fde526e288e404495abf992fb71634ab857270
/mat2py.py
d3584e4d0441685cd752934dbc1d93844440a91f
[ "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
Tandon-A/emotic
75b4d47924bed24d899820356b17b20775982dc4
862a1cad48256efeb32fb6ec66046d9a9bd51758
refs/heads/master
2022-07-21T08:18:55.674878
2022-07-12T17:21:24
2022-07-12T17:21:24
252,577,010
113
53
MIT
2023-03-26T02:25:21
2020-04-02T22:20:12
Python
UTF-8
Python
false
false
11,412
py
mat2py.py
import argparse import csv import cv2 import numpy as np import os from scipy.io import loadmat class emotic_train: def __init__(self, filename, folder, image_size, person): self.filename = filename self.folder = folder self.im_size = [] self.bbox = [] self.cat = [] ...
0a3503dc54eac3feafc59f3fd70e8a267672aa3f
9af35e5c4f685a7acdc47917b3c528f4cc019b9d
/tests/updaters/test_updaters.py
20e2136ac1f64150372f909c63b12eca48f38d7a
[ "BSD-3-Clause" ]
permissive
mggg/GerryChain
7855acd762613fc2c0386760fa90f461ba65f566
04ff4f9e8454f5a2216ac6a1c7309dae481ac067
refs/heads/main
2023-07-22T11:40:33.832836
2023-04-29T02:18:00
2023-04-29T02:18:00
136,683,696
115
56
NOASSERTION
2023-07-06T23:12:31
2018-06-09T02:22:44
Python
UTF-8
Python
false
false
9,282
py
test_updaters.py
import math import networkx import pytest from gerrychain import MarkovChain from gerrychain.constraints import Validator, no_vanishing_districts from gerrychain.graph import Graph from gerrychain.partition import Partition from gerrychain.proposals import propose_random_flip from gerrychain.random import random from...
2c9687e1c225a3898f85b99a42a983a7499d0f6c
554718851656376ad2bceb282de30459167ffeb2
/smdebug/core/tfevent/util.py
ac923eb054733497ef393fdb00c4275c1f16b319
[ "Apache-2.0" ]
permissive
awslabs/sagemaker-debugger
d6ae6a6177a6cb457972772e2b3021e8a9dcc621
37ecf0aaeb24ab2adbe7f0ad664d0e50fa4154f2
refs/heads/master
2023-09-05T05:20:02.458427
2023-04-20T20:48:11
2023-04-20T20:48:11
222,554,670
162
89
Apache-2.0
2023-08-23T14:31:27
2019-11-18T22:12:36
Python
UTF-8
Python
false
false
2,187
py
util.py
# Third Party import numpy as np # First Party from smdebug.core.logger import get_logger from smdebug.exceptions import SMDebugTypeError # Local from .proto.tensor_pb2 import TensorProto from .proto.tensor_shape_pb2 import TensorShapeProto logger = get_logger() # hash value of ndarray.dtype is not the same as np....
2411e197d24d57ff36611d239a4d48a374101fba
1652fa9949b64cc3d45a0bb86d86892a282ad678
/pmdarima/compat/statsmodels.py
cd4db486445f2d5ecaf88dc04c09587d27cf0ac1
[ "MIT" ]
permissive
alkaline-ml/pmdarima
2e19f7a9f25b395ce6f000de2d0575138bcddc9a
1bb0ef5246c4e34712ef3e7843cf51a64b62bf0a
refs/heads/master
2023-08-10T20:19:23.041170
2023-07-03T18:08:53
2023-07-03T18:08:53
86,715,491
1,018
160
MIT
2023-08-07T13:28:03
2017-03-30T14:58:30
Python
UTF-8
Python
false
false
1,872
py
statsmodels.py
# -*- coding: utf-8 -*- # # Handle inconsistencies in the statsmodels API versions from collections.abc import Iterable from packaging.version import Version import statsmodels as sm __all__ = [ 'bind_df_model' ] _sm_version = sm.__version__ def bind_df_model(model_fit, arima_results): """Set model degrees...
7c1b3006764e98d9d79a31c552956a72ef67a388
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/skeletons/gui/platform/controller.py
859b8616ada7e122140627f3838dde2d6a3d7e95
[]
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
279
py
controller.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/skeletons/gui/platform/controller.py class IPlatformRequestController(object): def init(self): raise NotImplementedError def fini(self): raise NotImplementedError
3b2217f41cadf9e80ece2c40961dc0ffb9de193e
83b8b30ebb633eecd29ca0a7a20cc43a293c9333
/tests/float/true_value.py
4c8d2e5c8212de6fd8f7d7031b2bc4f1e6109c58
[ "MIT", "GPL-1.0-or-later" ]
permissive
adafruit/circuitpython
430ec895149d1eb814b505db39b4977a35ee88a7
506dca71b0cbb7af749bb51f86b01021db5483b3
refs/heads/main
2023-08-21T16:30:46.781068
2023-08-20T00:39:44
2023-08-20T00:39:44
66,166,069
3,806
1,560
MIT
2023-09-14T19:23:51
2016-08-20T20:10:40
C
UTF-8
Python
false
false
104
py
true_value.py
# Test true-ish value handling if not 0.0: print("float 0") if not 0 + 0j: print("complex 0")
919eef358ab27783f0e016d2009f1a63c837745f
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/ffmpeg/tools/python/convert_from_tensorflow.py
38e64c1c941a06a31996a8fdda85cc60364811ac
[ "LGPL-2.1-only", "LGPL-3.0-only", "LGPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.1-or-later", "GPL-3.0-or-later", "LGPL-3.0-or-later", "IJG", "LicenseRef-scancode-other-permissive", "MIT", "GPL-2.0-or-later", "Apache-2.0", "GPL-3.0-only", "BSD-3-Clause" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
25,895
py
convert_from_tensorflow.py
# Copyright (c) 2019 Guo Yejun # # This file is part of FFmpeg. # # FFmpeg is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # #...
340d061d231bd8187d2d62f3ed348c0a680f41db
7cec63f4dd6d944d834783b7f764460ba6a8a8cb
/gengine/app/route.py
fcea80d85052fec62239afbcc54a8fd91cb20742
[ "MIT", "ZPL-2.1", "Apache-2.0", "BSD-3-Clause-Modification", "LGPL-2.0-or-later" ]
permissive
ActiDoo/gamification-engine
a8e51e795fd9d36d228885e19f263d7ffcb979c6
b82a900f2f4a43cea463853e36d6f8237c7f255e
refs/heads/master
2023-08-30T14:28:57.095777
2022-02-11T11:10:15
2022-02-11T11:10:15
31,541,379
413
130
MIT
2023-02-15T22:54:16
2015-03-02T13:28:17
Python
UTF-8
Python
false
false
1,183
py
route.py
from pyramid_swagger_spec.namespace import create_api_namespace from pyramid_swagger_spec.swagger import create_swagger_view api_route = create_api_namespace(namespace="api") def config_routes(config): config.add_route('get_progress', '/progress/{subject_id}') config.add_route('increase_value', '/increase_val...
8822e459ac4fdfcd72345c9d10644d5002045ea9
689a78e08c957abc02ea5f89fb657b1f78f88b6e
/det3d/models/readers/dynamic_voxel_encoder.py
5cfc476d97534af83ee55e386104bfeed871fd14
[ "MIT", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tianweiy/CenterPoint
2bb9a7def8d4bf87b66af2e3b671736eae6fa275
d3a248fa56db2601860d576d5934d00fee9916eb
refs/heads/master
2023-08-30T23:11:49.528882
2022-10-24T13:09:52
2022-10-24T13:09:52
274,006,091
1,692
476
MIT
2023-05-06T10:30:06
2020-06-22T00:32:05
Python
UTF-8
Python
false
false
4,505
py
dynamic_voxel_encoder.py
from det3d.core.utils.scatter import scatter_mean from torch.nn import functional as F from ..registry import READERS from torch import nn import numpy as np import torch def voxelization(points, pc_range, voxel_size): keep = (points[:, 0] >= pc_range[0]) & (points[:, 0] <= pc_range[3]) & \ (points[:,...
e12817d8bfffe26552d18090dd2a5d43c46e6599
49201afc8c3515d9f5cb569f45cd34ba291e84ca
/autobahntestsuite/autobahntestsuite/case/case5_15.py
398e5bcc7087f2432312b44a52b46bddffa02352
[ "Apache-2.0" ]
permissive
crossbario/autobahn-testsuite
2f3fe9a46a806550dddb23ed7bc98a94c47d5bd8
09cfbf74b0c8e335c6fc7df88e5c88349ca66879
refs/heads/master
2023-09-06T01:16:06.357182
2022-11-02T18:00:25
2022-11-02T18:00:25
3,762,517
718
74
Apache-2.0
2022-01-26T11:07:29
2012-03-19T09:59:18
Python
UTF-8
Python
false
false
1,812
py
case5_15.py
############################################################################### ## ## Copyright (c) Crossbar.io Technologies GmbH ## ## 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...
b128196c998d3ae31a8cbfbe6543af07808645a9
c470a6e3154791ccabb0c0ab6f8141be37410599
/tests/conftest.py
66211452de9862c4b37547d1de2421bc9027cf36
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
frgfm/torch-cam
ea20605eeb5cf5390f555e93aaa6158d152d64b4
dee2e74a50790c9027cfb1e9f380d53ea95fbfee
refs/heads/main
2023-07-24T01:29:49.694051
2023-07-13T02:26:09
2023-07-13T02:26:09
249,513,553
1,480
166
Apache-2.0
2023-07-13T02:26:11
2020-03-23T18:34:51
Python
UTF-8
Python
false
false
2,201
py
conftest.py
from io import BytesIO import pytest import requests import torch from PIL import Image from torch import nn from torchvision.transforms.functional import normalize, resize, to_tensor @pytest.fixture(scope="session") def mock_img_tensor(): try: # Get a dog image URL = "https://www.woopets.fr/asse...
6830d2616af7913db48bbfc73f14d6facc7907d7
d05c946e345baa67e7894ee33ca21e24b8d26028
/machine-learning/nlp/tokenization-stemming-lemmatization/wordnet_lemmatizer.py
9a709d060a173e751c521cba3238856c109b2d1e
[ "MIT" ]
permissive
x4nth055/pythoncode-tutorials
327255550812f84149841d56f2d13eaa84efd42e
d6ba5d672f7060ba88384db5910efab1768c7230
refs/heads/master
2023-09-01T02:36:58.442748
2023-08-19T14:04:34
2023-08-19T14:04:34
199,449,624
1,858
2,055
MIT
2023-08-25T20:41:56
2019-07-29T12:35:40
Jupyter Notebook
UTF-8
Python
false
false
394
py
wordnet_lemmatizer.py
from nltk.stem import WordNetLemmatizer word_lst = [] def lemmatizer(file): lem_lst = [] lem = WordNetLemmatizer() f = open(file, 'r') for l in f: word_lst.append(l.strip()) w = lem.lemmatize(str(l.strip())) lem_lst.append(w) return lem_lst lem_lst = lemmatizer('reviews.txt...
eeed5d5e5e4bdebe57adcaa0b0a0546eb9dc054b
1157d52932c29b87cdceeb03c4598c91113fce21
/py/jupyterlite-core/jupyterlite_core/addons/base.py
bacd9c75d6363a84692661d9f757bd813456efff
[ "BSD-3-Clause" ]
permissive
jupyterlite/jupyterlite
b32282040e4956fd6dd90d62289b4dfcf541b0fd
fa5f44ff3f0eec2c75cada62fa659f13c9f26ab0
refs/heads/main
2023-09-01T18:13:20.490421
2023-08-24T18:32:23
2023-08-24T18:32:23
352,160,885
1,991
203
BSD-3-Clause
2023-09-14T13:53:44
2021-03-27T19:36:52
TypeScript
UTF-8
Python
false
false
13,904
py
base.py
import email.utils import json import os import shutil import tarfile import tempfile import time import zipfile from pathlib import Path from typing import Any, Dict, Generator, List from traitlets import Bool, Instance from traitlets.config import LoggingConfigurable from ..constants import ( DISABLED_EXTENSION...
247e8288dffe795e52beb5bb397db4b4204f78be
0e4860fecfdd34a3255003cc8c8df086c14083dd
/python/source_code/source_code_of_lp3thw/ex24.py
7199b4deb93651333b6727fdcfeedd7fb5c3af17
[]
no_license
anzhihe/learning
503ab9a58f280227011da5eaa4b14b46c678e6f3
66f7f801e1395207778484e1543ea26309d4b354
refs/heads/master
2023-08-08T11:42:11.983677
2023-07-29T09:19:47
2023-07-29T09:19:47
188,768,643
1,443
617
null
2023-08-24T02:10:34
2019-05-27T04:04:10
Python
UTF-8
Python
false
false
2,149
py
ex24.py
print("Let's practice everything.") print('You\'d need to know \'bout escape with \\ that do:') #反斜杠是用来转换意义的\'是把单引号的公式功能注释掉,只保留纯意义上的字符,免得造成引用混乱。 print("You'd need to know about escape with \\ that do:") print('\n newlines and \t tabs.') poem = """ \tThe lovely world with logic so firmly planted cannot discern \n the n...
d086c7fa1a3c490aaa69566f4cb65aaf5b55e069
493d86071bb96ef33a38623a144fe55e49a0aa44
/socceraction/data/opta/parsers/whoscored.py
0a8402914d0c2c7576da8179f11aa0fcb13dfb1b
[ "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
18,167
py
whoscored.py
"""JSON parser for WhoScored feeds.""" import json # type: ignore import re from datetime import datetime, timedelta from typing import Any, Dict, Optional, Tuple from ...base import MissingDataError from .base import OptaParser, _get_end_x, _get_end_y, assertget def _position_mapping(formation: str, x: float, y: f...
c9868a39bba2bcf30ff7a5b55684a9b37dea48f5
f2c1c86b1eedf46e62834644758a44e16dde6119
/keepercommander/sox/sox_data.py
601b57221d4d7729fb5f012a10e47658517329b4
[ "MIT" ]
permissive
Keeper-Security/Commander
8ba7e3dbe2a75ca524546e0714ed180c714a01e2
06cb3af20a5c115b09d7276d5f618545278e5351
refs/heads/master
2023-08-30T19:28:58.166103
2023-08-25T19:17:36
2023-08-25T20:14:29
41,707,343
201
90
MIT
2023-09-11T19:05:15
2015-09-01T00:19:47
Python
UTF-8
Python
false
false
10,461
py
sox_data.py
import logging from typing import Iterable, Dict, Set, List, Optional from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey from . import sox_types, sqlite_storage, storage_types from .sox_types import RecordPermissions, SharedFolder from .. import crypto, utils from ..error import Error fr...
fcca6753296f24de4cc71a61e2be34829b07372c
fd61eb5dec053682ffd3d4887cbab1b56c564365
/examples/input_format/check_results.py
28d29a5d7c2541d07ffcc521145038ccc789b2cc
[ "Apache-2.0" ]
permissive
crs4/pydoop
f6a0cc5687891a893fc806e4c5405d238aa6e286
c7233b3a9feceb6055ea4b23213f273daed65e58
refs/heads/develop
2023-08-20T22:35:11.500338
2022-01-20T16:25:51
2022-01-20T16:25:51
10,475,304
214
64
Apache-2.0
2022-01-20T16:19:10
2013-06-04T09:37:11
Python
UTF-8
Python
false
false
1,436
py
check_results.py
# BEGIN_COPYRIGHT # # Copyright 2009-2022 CRS4. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
612be4a446f33b7edb7285d1092c7f50aac68682
3eb3c4046b17e265930aaf89fa93f41896f243cb
/spynnaker_integration_tests/test_spike_source/test_variable_rate.py
6fef421f97f9b97b836cf279f96386c0da6c9dae
[ "Apache-2.0" ]
permissive
SpiNNakerManchester/sPyNNaker
b177613a114cfc7e7687ec36c1f72a2f07f66977
891cfb3046f66185fd8df52d270380fa94c32eab
refs/heads/master
2023-09-01T11:28:21.252266
2023-08-17T08:07:43
2023-08-17T08:07:43
20,801,613
101
53
Apache-2.0
2023-09-14T18:39:29
2014-06-13T11:07:19
Python
UTF-8
Python
false
false
10,024
py
test_variable_rate.py
# Copyright (c) 2017 The University of Manchester # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
15d2d0b66715168e6c7cde3727efab4e5d463456
5a6ccde5f37cc86b6fc0812b2bf40f42eab23906
/B-set/122B.Lucky Substring.py
34eaef77113a06c4337241dc23ea6db8d714e6ab
[]
no_license
Waqar-107/Codeforces
23f2b1edffb85f6f020107f03e09a455d3e6e792
f0d2f25aa6a09c06083b82c39cdf3288ec2eecba
refs/heads/master
2023-03-09T07:55:46.583363
2023-03-04T09:57:44
2023-03-04T09:57:44
82,915,896
196
138
null
2023-02-11T22:06:20
2017-02-23T10:29:34
C++
UTF-8
Python
false
false
241
py
122B.Lucky Substring.py
#from dust i have come dust i will be n=input() f=0 s=0 for i in range(len(n)): if n[i]=='4': f+=1 elif n[i]=='7': s+=1 if f==0 and s==0: print(-1) else: if s>f: print(7) else: print(4)
9ae105ea29d607d99f24efbb79322845726c7755
49b58731978b930bf90b6c5a69c99c56081d282f
/loophole/polar/pb/pftp_notification_pb2.py
06c8a143ad3d0b0eb0c8599682670eeb497037a4
[ "MIT" ]
permissive
rsc-dev/loophole
e12c4c82479f0680792863b1708fc46fae2d96e9
f9389c73f06b419c97ad32847346663a30d80225
refs/heads/master
2021-08-19T03:13:29.839236
2021-01-12T17:34:32
2021-01-12T17:34:32
50,019,628
158
20
MIT
2020-05-12T06:57:36
2016-01-20T09:33:47
Python
UTF-8
Python
false
true
57,591
py
pftp_notification_pb2.py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pftp/pftp_notification.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf impor...
85942eb1b7371982901a1430e8db1aa584403300
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/studio/modules/service-data-dts-parent/service-data-dts/src/main/shell/chunjun-python3.py
497ee593a19d96ebf7d9979515466c1997d00a15
[ "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
916
py
chunjun-python3.py
#!/usr/bin/env python # -*- coding:utf-8 -*- import sys import os import signal import subprocess import time import re import socket import json from optparse import OptionParser from optparse import OptionGroup from string import Template import codecs import platform def printCopyright(): print (''' AllDataDC ...
6bbc39de051f79ebf8f0279ed7a8b9624be2d313
e0cc314aa73c0a965a2022f19900df3ccc8c9f43
/tests/test_event_trace.py
3004c67472680eef073ce30f2de0131392adc0df
[ "BSD-3-Clause" ]
permissive
hakril/PythonForWindows
21823e743ee4ae7ff99e376378357833f2e19d26
82d0c5cc5c9b4d569dca2c755f26b947e3ff74f5
refs/heads/master
2023-06-08T03:25:50.354768
2023-05-26T07:31:06
2023-05-26T07:31:06
49,235,784
568
111
BSD-3-Clause
2023-01-30T12:04:03
2016-01-07T22:54:33
Python
UTF-8
Python
false
false
1,028
py
test_event_trace.py
import collections import os import windows import windows.generated_def as gdef TASK_SCHEDULER_PROVIDER = "047311A9-FA52-4A68-A1E4-4E289FBB8D17" EVENT_ID_COUNT = collections.Counter() def show(event): EVENT_ID_COUNT.update([event.id]) def test_etw_trace_open_with_guid(): trace = windows.system.etw.open_...
e3d7e8ff5259cfa161b88c9a3dc5f0184af84be6
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/ai/mmdetection/mmdet/models/task_modules/samplers/score_hlr_sampler.py
0227585b92329625d053f1e9f8c161fd02af8aef
[ "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
12,663
py
score_hlr_sampler.py
# Copyright (c) OpenMMLab. All rights reserved. from typing import Union import torch from mmcv.ops import nms_match from mmengine.structures import InstanceData from numpy import ndarray from torch import Tensor from mmdet.registry import TASK_UTILS from mmdet.structures.bbox import bbox2roi from ..assigners import ...
cdc39c7e95f2f06e7e51559c460507a39a3164e4
0225a1fb4e8bfd022a992a751c9ae60722f9ca0d
/tools/python/airmaps/instruments/storage.py
e62b3da68a4ee819e665d0a00e47198d985e5c77
[ "Apache-2.0" ]
permissive
organicmaps/organicmaps
fb2d86ea12abf5aab09cd8b7c55d5d5b98f264a1
76016d6ce0be42bfb6ed967868b9bd7d16b79882
refs/heads/master
2023-08-16T13:58:16.223655
2023-08-15T20:16:15
2023-08-15T20:16:15
324,829,379
6,981
782
Apache-2.0
2023-09-14T21:30:12
2020-12-27T19:02:26
C++
UTF-8
Python
false
false
749
py
storage.py
import logging import webdav.client as wc from airmaps.instruments import settings logger = logging.getLogger("airmaps") WD_OPTIONS = { "webdav_hostname": settings.WD_HOST, "webdav_login": settings.WD_LOGIN, "webdav_password": settings.WD_PASSWORD, } def wd_fetch(src, dst): logger.info(f"Fetch for...
21d6e4d9bcd17cc7a63b254564f92c62f8c0a09b
17e2a3a1d962d6528ee1efa45c253a198afd2537
/pyproj/__init__.py
99640abec0980a014a93018768a079fed5db425e
[ "MIT", "LicenseRef-scancode-us-govt-public-domain" ]
permissive
pyproj4/pyproj
21f63a51c5fef66f2a1e0cf49f06dc47293f1bf5
8e5f683f58a42933972daf48a9cd0d6dfede87f5
refs/heads/main
2023-09-01T01:07:41.428675
2023-08-31T17:59:33
2023-08-31T17:59:33
28,607,354
649
150
MIT
2023-09-09T02:08:56
2014-12-29T21:38:25
Python
UTF-8
Python
false
false
2,925
py
__init__.py
""" Python interface to PROJ (https://proj.org), cartographic projections and coordinate transformations library. Download: http://python.org/pypi/pyproj Requirements: Python 3.9+. Contact: Jeffrey Whitaker <jeffrey.s.whitaker@noaa.gov> Copyright (c) 2006-2018, Jeffrey Whitaker. Copyright (c) 2019-2023, Open sourc...
c7a99536179415a287eebc5d764e4504f3e5b419
e7f2a8c466c14b9821e59740ed0407107e1254a4
/tests/integration_tests/core/test_cli_response.py
ffa78d9b6d1034721632fd2291c657eb77aa3469
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "MIT" ]
permissive
RasaHQ/rasa
4a31134308a9a4d8824fe7faef02526accdd0f19
50857610bdf0c26dc61f3203a6cbb4bcf193768c
refs/heads/main
2023-08-28T01:53:56.981600
2023-08-25T10:20:49
2023-08-25T10:20:49
70,908,208
13,167
3,739
Apache-2.0
2023-09-14T09:54:40
2016-10-14T12:27:49
Python
UTF-8
Python
false
false
5,446
py
test_cli_response.py
from pathlib import Path import pytest from typing import Callable import shutil from _pytest.pytester import Pytester from _pytest.pytester import RunResult from _pytest.fixtures import FixtureRequest # NOTE this will be extended to test cli logs at process run to validate log level @pytest.fixture def run(pytester:...
3b4d241a918e31da50366044b5dde731b7289175
11cd362cdd78c2fc48042ed203614b201ac94aa6
/desktop/core/ext-py3/eventlet-0.30.2/eventlet/green/urllib2.py
c53ecbb91220dcdf2b883db63f61e8398ecc6c03
[ "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
488
py
urllib2.py
from eventlet import patcher from eventlet.green import ftplib from eventlet.green import httplib from eventlet.green import socket from eventlet.green import ssl from eventlet.green import time from eventlet.green import urllib patcher.inject( 'urllib2', globals(), ('httplib', httplib), ('socket', soc...
6025186c0befb1c8cca1ce0ba367b51e96e24a64
6c8cf2992477c4113bc161fac04f693fd8e49491
/src/chapter-2/test_xml_report.py
f0f05872f8534b8d16a2addf4b1dfcb63c061e0a
[ "MIT" ]
permissive
luizyao/pytest-chinese-doc
19899b049ad066ef8724b6a08cec82cfab8a42fa
d513071630f2b08593688cc82c83df3fcd641efd
refs/heads/5.1.3
2021-09-28T21:38:28.224366
2021-09-25T09:24:56
2021-09-25T09:24:56
211,014,806
344
83
MIT
2021-09-25T09:24:57
2019-09-26T06:21:08
Python
UTF-8
Python
false
false
1,136
py
test_xml_report.py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ''' Author: Luiz Yao (luizyao@163.com) Created Date: 2019-09-27 14:44:24 ----- Last Modified: 2019-09-27 16:18:35 Modified By: Luiz Yao (luizyao@163.com) ----- THIS PROGRAM IS FREE SOFTWARE, IS LICENSED UNDER MIT. A short and simple permissive license with conditions only ...
7dd39fa0f99d69680a8925fdd8d9526ca5884cac
6f0ceee714bccf2a89c34a06aabd3bcb781a2fa4
/docs/tutorial_utils/data/oxford_102_flower_dataset.py
0dcae2209c6e340e850cdcd631e16c99f45dcbc4
[ "Apache-2.0", "MIT", "Unlicense", "BSL-1.0", "NCSA", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-2-Clause", "OFL-1.0", "BSD-2-Clause-Views", "Zlib" ]
permissive
yajiedesign/mxnet
5a495fd06dd1730c17d2d27d7e46c8a770847f17
8e5a16cf673db5aceb48d2cf7a0fc1abd0ee5e51
refs/heads/master
2021-03-30T22:37:18.603396
2020-10-23T06:40:17
2020-10-23T06:40:17
43,763,550
214
59
Apache-2.0
2020-06-01T23:31:15
2015-10-06T16:36:40
C++
UTF-8
Python
false
false
6,165
py
oxford_102_flower_dataset.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...
068c53f4784bd37cf81af0caed7a39409f968214
f1c2e4b3147af77e23306f841610aafd6db1c6b0
/submarine-sdk/pysubmarine/submarine/ml/pytorch/optimizer.py
08e1ca2e73fb6241a2f8cd62d76a97eefc8ed953
[ "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "BSD-2-Clause", "GPL-2.0-only", "LicenseRef-scancode-public-domain", "MIT", "CDDL-1.1", "Classpath-exception-2.0" ]
permissive
apache/submarine
a2927f5f4f7f5faff4701139f2f0f88a98195e7f
0c10613f39b707d5e446c515c12fa28295c8052e
refs/heads/master
2023-08-30T14:35:43.145942
2023-08-20T00:19:54
2023-08-24T23:50:49
209,459,144
663
269
Apache-2.0
2023-09-03T09:05:06
2019-09-19T04:00:17
Java
UTF-8
Python
false
false
1,161
py
optimizer.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 t...
630c6c69dbc81a3170307e629e68f5743e30e22a
df35f22365bb3cd74b0629eae37ac79c594e7f1f
/tests/sqlsklearn/lexer.py
2707789415d50e6c20c9915825d992b22ea3dd9b
[ "Apache-2.0" ]
permissive
lqkweb/sqlflow
187e90e54acf4d4adb96b8bd6703c6a78979a39d
cda23539270873a5c307c85f52ba1981894e3892
refs/heads/master
2023-02-21T16:38:18.851615
2022-08-01T09:52:06
2022-08-01T09:52:06
142,440,517
154
33
Apache-2.0
2023-02-15T19:38:07
2018-07-26T12:52:17
Python
UTF-8
Python
false
false
1,355
py
lexer.py
# coding=utf-8 import ply.lex as lex # List of token names. reversed = ( # 基本操作 'LOAD', 'SAVE', 'TRAIN', 'RUN', 'OVERWRITE', 'CONNECT', 'SET', # 数据源 'PARQUET', 'CSV', 'JSON', 'MLSQL', # sklearn算法 'SKLEARN', 'KNN', 'LR', # pandas and numpy 'PD', 'NP', ) tokens = reversed + ( # Symb...
1eb69258ee7f473e6506b9f895f74b395b58abed
f0f07a94d3876779d27c6b01e2c08c08391fbafb
/tensorflow_model_analysis/extractors/tflite_predict_extractor_test.py
1dad50b6d7c56eb8cbff8c0a67742155ec8bce5e
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
tensorflow/model-analysis
4ec2f637a657d49aa503f2f047bed45b82c93f7b
ee0d8eff562bfe068a3ffdc4da0472cc90adaf41
refs/heads/master
2023-08-18T22:51:47.404027
2023-08-17T22:39:56
2023-08-17T22:40:27
126,528,713
1,200
313
Apache-2.0
2023-08-14T20:18:27
2018-03-23T19:08:49
Python
UTF-8
Python
false
false
6,983
py
tflite_predict_extractor_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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
1653c9421bd06a911859196cf021f891b5d73806
0db19410e9751790af8ce4a0a9332293e379c02f
/mmpose/models/backbones/__init__.py
cb2498560a34afca0f3218eb9fb3d9a5dce04f33
[ "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
1,365
py
__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .alexnet import AlexNet from .cpm import CPM from .hourglass import HourglassNet from .hourglass_ae import HourglassAENet from .hrformer import HRFormer from .hrnet import HRNet from .litehrnet import LiteHRNet from .mobilenet_v2 import MobileNetV2 from .mobilenet_v3...
8cbc63958624b597ded5c618e93ea6165ab257b5
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/Pygments/py3/pygments/styles/zenburn.py
35d5ec5279212a29d8b41680b53c56e1c14a230a
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
2,148
py
zenburn.py
""" pygments.styles.zenburn ~~~~~~~~~~~~~~~~~~~~~~~ Low contrast color scheme Zenburn. See: https://kippura.org/zenburnpage/ https://github.com/jnurmine/Zenburn :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygmen...
9ccbc3ceff8810653816e645b7a55b385218aea3
365d3b4afb3bf5daf48dddbf9f86103dc613d993
/server/protocols/ructf_tcp.py
fcf85ef7618972deb4ecd1ec330f189010be822b
[ "MIT" ]
permissive
DestructiveVoice/DestructiveFarm
af228fbcaf2d6d138e54537aee61cc6420e0e69d
69cc5821a16fc38e6670e666bc0c8d5ee311e57a
refs/heads/master
2022-05-29T09:48:53.569376
2022-03-17T13:19:26
2022-03-17T13:19:26
140,931,924
234
91
NOASSERTION
2022-05-24T17:40:31
2018-07-14T09:01:37
CSS
UTF-8
Python
false
false
2,489
py
ructf_tcp.py
import socket from server import app from server.models import FlagStatus, SubmitResult RESPONSES = { FlagStatus.QUEUED: ['timeout', 'game not started', 'try again later', 'game over', 'is not up', 'no such flag'], FlagStatus.ACCEPTED: ['accepted', 'congrat'], FlagStatus.REJECTED:...
27b5dbc3ad2de9e3476ae268f864e42c5e0d693b
79f1522bc9da6586037f2d8df5a0d9a76df1c2ce
/evue/elements/progress.py
bc099a3b9421559b0d0a1f08275cf110d44fd749
[ "Apache-2.0" ]
permissive
scriptiot/evue
824d531af42f63e7c8e684bfddbce74705b44608
6f1b57babd1a0d63d64b0963132c664e6c1ab753
refs/heads/master
2023-06-21T19:05:11.025481
2023-01-11T07:50:33
2023-01-11T07:50:33
577,321,977
112
8
Apache-2.0
2023-02-09T16:26:31
2022-12-12T13:36:09
Python
UTF-8
Python
false
false
3,094
py
progress.py
# -*- coding: utf-8 -*- from flet import ( Draggable, alignment, border_radius ) from .fletbaseelement import FletBaseElement from .widgets import BaseContainer class ProgressElement(FletBaseElement): def __init__(self, node, parent, draggable=False, sessionID=None): super().__init__(node, pa...
92e0aa76a69983b90f82c1d54be517e82ea944f7
45de7d905486934629730945619f49281ad19359
/examples/user_types2.py
714792d8dce567d547634c5903a8506f2b1fe065
[ "BSD-2-Clause" ]
permissive
jmcnamara/XlsxWriter
599e1d225d698120ef931a776a9d93a6f60186ed
ab13807a1be68652ffc512ae6f5791d113b94ee1
refs/heads/main
2023-09-04T04:21:04.559742
2023-08-31T19:30:52
2023-08-31T19:30:52
7,433,211
3,251
712
BSD-2-Clause
2023-08-28T18:52:14
2013-01-04T01:07:06
Python
UTF-8
Python
false
false
1,329
py
user_types2.py
############################################################################## # # An example of adding support for user defined types to the XlsxWriter write() # method. # # SPDX-License-Identifier: BSD-2-Clause # Copyright 2013-2023, John McNamara, jmcnamara@cpan.org # import xlsxwriter import math # Create a funct...
6a1e78906d7e3a5935106fa4266b05638ee26272
1d08ad13c33f1c9a5724fd126066a8bac634d7fe
/tutorial/advanced/stepwise.py
ec64ea71b292a877ec798da5a55b7d07e8cab250
[ "MIT" ]
permissive
oemof/tespy
b4d78e3249c51f31c41d55f0ed1215625ddae609
cdb2b31f796744d2b312a7bfaec67eedd983a2e6
refs/heads/dev
2023-08-10T01:40:01.860654
2023-07-30T16:49:47
2023-07-30T16:49:47
113,834,202
199
82
MIT
2023-08-21T16:56:15
2017-12-11T08:44:12
Python
UTF-8
Python
false
false
6,276
py
stepwise.py
# %%[sec_1] from tespy.networks import Network working_fluid = "NH3" nw = Network( fluids=["water", working_fluid], T_unit="C", p_unit="bar", h_unit="kJ / kg", m_unit="kg / s" ) # %%[sec_2] from tespy.components import Condenser from tespy.components import CycleCloser from tespy.components import H...
c5a7d3028bc47dbd346fbed225421cafe9b1bce8
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/help/help_integration_test.py
38130dad88a1f315466f30738169c83acfd55716
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
6,506
py
help_integration_test.py
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import json import re import textwrap from pants.testutil.pants_integration_test import run_pants from pants.util.docutil import doc_url def test_help() -> None: pants_run = run_pan...
ecc697b6ffabedf444d25fdea8e1e648b2f44357
4805a71711625735215cc1a773a85712be305b59
/Cython/Tests/TestJediTyper.py
ede99b3a8a96caa4c4d9a2bb76c5e41a00ad0984
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cython/cython
0a75b75b7eaf19eeedaaebca9d49adb603e3e8f5
6ba3daf319d94058de74e8e7f53f932092b38441
refs/heads/master
2023-09-04T11:09:56.569277
2023-09-04T07:45:47
2023-09-04T07:45:47
1,099,265
8,352
1,704
Apache-2.0
2023-09-14T06:33:34
2010-11-21T07:44:20
Python
UTF-8
Python
false
false
7,021
py
TestJediTyper.py
# -*- coding: utf-8 -*- # tag: jedi from __future__ import absolute_import import sys import os.path from textwrap import dedent from contextlib import contextmanager from tempfile import NamedTemporaryFile from Cython.Compiler.ParseTreeTransforms import NormalizeTree, InterpretCompilerDirectives from Cython.Compil...
0b4a720857912ccc16e3146da122af995dd93085
6a468c1650b3c083f102f19ace0b0d6e4d0686f7
/sympy/stats/sampling/tests/test_sample_finite_rv.py
96cabe0ff4aaa5977e16600217fbbdeb08b962ae
[ "BSD-3-Clause", "MIT" ]
permissive
sympy/sympy
a5f8accaa7686c59d9b5c94212fef60d746dac4b
69f98fb2b0d845e76874067a381dba37b577e8c5
refs/heads/master
2023-09-01T15:51:37.886107
2023-08-31T20:54:33
2023-08-31T20:54:33
640,534
10,928
5,362
NOASSERTION
2023-09-14T17:29:13
2010-04-30T20:37:14
Python
UTF-8
Python
false
false
3,061
py
test_sample_finite_rv.py
from sympy.core.numbers import Rational from sympy.core.singleton import S from sympy.external import import_module from sympy.stats import Binomial, sample, Die, FiniteRV, DiscreteUniform, Bernoulli, BetaBinomial, Hypergeometric, \ Rademacher from sympy.testing.pytest import skip, raises def test_given_sample(): ...
0a5b136fba1021fd88f25ac800e218d4a2c09184
faa390890e17219fd763bd66e66bb6753c692b14
/jactorch/nn/rnn_utils.py
5ac2fb849fcdb1a2f0b27695687e6a9acad762a1
[ "MIT" ]
permissive
vacancy/Jacinle
7170b1c798e4a903186abe74d28e4a7e034ec766
20021790fd32ef1ad40c67fba7582c6db54235da
refs/heads/master
2023-07-20T03:54:46.693649
2023-07-12T21:00:10
2023-07-12T21:00:10
117,910,172
135
275
MIT
2023-01-18T17:41:33
2018-01-18T00:35:55
Python
UTF-8
Python
false
false
1,893
py
rnn_utils.py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : rnn_utils.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 01/25/2018 # # This file is part of Jacinle. # Distributed under terms of the MIT license. from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence from jactorch.fu...
1fba40245b72174fed759bb99e33bec0953efda4
e4b2d6863fadf63bdc6b42fafb4ad298d7ad0d08
/elyra/tests/pipeline/util.py
8cbda9dc91ea4bf99c105a9369b6ff0be721ac2d
[ "Apache-2.0", "CC-BY-4.0", "LicenseRef-scancode-unknown-license-reference", "CC-BY-SA-4.0", "BSD-3-Clause" ]
permissive
elyra-ai/elyra
eef32416b7c6039090a2d2a9da08238bb55569b2
3c27ada25a27b719529e88268bed38d135e40805
refs/heads/main
2023-08-19T02:58:52.615956
2023-06-19T16:00:23
2023-06-19T16:00:23
216,914,329
1,707
345
Apache-2.0
2023-08-14T23:34:05
2019-10-22T21:37:58
Python
UTF-8
Python
false
false
6,094
py
util.py
# # Copyright 2018-2023 Elyra 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 writ...
d98fa7302ab0694742a4179917a650e2c5a57335
ccb0740c4846e943003b075bddd52fd7c884b6d8
/auto_pose/visualization/render_pose.py
1fd7a5fa6d15621ee9207d5b58f0dee9a2cc5c62
[ "MIT" ]
permissive
DLR-RM/AugmentedAutoencoder
87a8bc5e32832cadbbfaafca8e19f15f2ce7718a
9f0a56f622fabf6200d9f034fcb2eef106997118
refs/heads/master
2022-09-12T08:51:59.086448
2022-08-16T09:43:02
2022-08-16T09:43:02
156,195,670
347
106
MIT
2022-06-22T00:55:31
2018-11-05T09:56:25
Python
UTF-8
Python
false
false
4,235
py
render_pose.py
import cv2 import numpy as np import os import glob from auto_pose.meshrenderer import meshrenderer from auto_pose.ae.utils import lazy_property class PoseVisualizer: def __init__(self, ae_pose_est, downsample=1): self.downsample = downsample self.classes = list(ae_pose_est.class_2_encoder.keys...
7ae3b30d556e1e148dd40def1a6eccbbd1c96103
0e4860fecfdd34a3255003cc8c8df086c14083dd
/python/source_code/source_code_of_lp3thw/ex35n.py
50733b5de702d910e59a6d9de5e7872c7abdc235
[]
no_license
anzhihe/learning
503ab9a58f280227011da5eaa4b14b46c678e6f3
66f7f801e1395207778484e1543ea26309d4b354
refs/heads/master
2023-08-08T11:42:11.983677
2023-07-29T09:19:47
2023-07-29T09:19:47
188,768,643
1,443
617
null
2023-08-24T02:10:34
2019-05-27T04:04:10
Python
UTF-8
Python
false
false
3,732
py
ex35n.py
from sys import exit#从sys模块里导入exit模块 def gold_room():#定义一个函数:金屋子。 print("这个屋子里堆满了金子,你准备要带走多少?") choice = input("请输个数吧> ")#只有选择0和1的时候将choice转换成int?其他的数呢?因此我改了。 if choice.isdigit():#判断你输入的是否是数字。 how_much = int(choice) if how_much < 50: print("很好,你不贪婪,你赢了!") exit(0) ...
5472dd9f8c32f8ac69ea2b31a61c00dc4fa8ed98
59bb398c5f23770e4725f35f932f3a5fd013efae
/jwst/associations/tests/test_validate.py
1c9d769d6f8cda6638684513df402da0d8c09686
[ "BSD-2-Clause" ]
permissive
spacetelescope/jwst
9826d86781c6e01aced951882471f8b967fa1f6e
a4a0e8ad2b88249f01445ee1dcf175229c51033f
refs/heads/master
2023-09-04T09:54:04.504036
2023-08-31T20:19:27
2023-08-31T20:19:27
60,551,519
449
106
NOASSERTION
2023-09-14T21:21:33
2016-06-06T18:34:23
Jupyter Notebook
UTF-8
Python
false
false
583
py
test_validate.py
import pytest from jwst.associations.tests import helpers from jwst.associations import ( AssociationRegistry, AssociationNotValidError, load_asn ) def test_invalid(): rules = AssociationRegistry() with pytest.raises(AssociationNotValidError): rules.validate({}) def test_valid(): r...
b7b3daa8d730689f10df9a46c9596309762c39e5
04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4
/Lib/objc/UIKit.py
5a91ae0caa64551045fb2204d89826192d8e8c73
[ "MIT" ]
permissive
ColdGrub1384/Pyto
64e2a593957fd640907f0e4698d430ea7754a73e
7557485a733dd7e17ba0366b92794931bdb39975
refs/heads/main
2023-08-01T03:48:35.694832
2022-07-20T14:38:45
2022-07-20T14:38:45
148,944,721
884
157
MIT
2023-02-26T21:34:04
2018-09-15T22:29:07
C
UTF-8
Python
false
false
261,542
py
UIKit.py
""" Classes from the 'UIKit' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None _UITargetedProxy = _Class("_UITargetedProxy") _UIViewServiceUI...
523cd5822505ad7736049a9b999968b4b6d17ae3
32813222f51ca2a82907e59c5f05e08f862ee80d
/eval.py
e3bbd26719d59d34fa4f7d57453875cfb01626ac
[]
no_license
DeokyunKim/Progressive-Face-Super-Resolution
5946efb5cdf770936153c692541823b3ff458cf2
8d7a354fa96c92f6efdb2074732c343a351d2ce8
refs/heads/master
2022-07-15T13:45:37.009522
2022-06-29T02:10:40
2022-06-29T02:10:40
200,457,499
268
67
null
2020-04-02T19:14:16
2019-08-04T06:20:32
Python
UTF-8
Python
false
false
4,395
py
eval.py
import torch from torch import optim, nn import argparse from dataloader import CelebDataSet from torch.utils.data import DataLoader from model import Generator import os from torch.autograd import Variable, grad import sys from torchvision import utils from math import log10 from ssim import ssim, msssim ...
6613982205af5ea138ce04d04e2211c30c0b4468
c530897cb72b6943c7226b25824444cad5f3503b
/usaspending_api/search/migrations/0004_transactionsearch_award_date_signed.py
9ad9f527141518c287fe8b522964d6be93137760
[ "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
406
py
0004_transactionsearch_award_date_signed.py
# Generated by Django 2.2.17 on 2021-08-11 16:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('search', '0003_auto_20210629_1550'), ] operations = [ migrations.AddField( model_name='transactionsearch', name='aw...
886d5c3111db9cae8d40a90facb08278feb9dcea
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/torch_geometric/nn/conv/hetero_conv.py
e1d4d2a9d26ee25ce0c98f40b63cb5a7449d96dc
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
6,470
py
hetero_conv.py
import warnings from collections import defaultdict from typing import Dict, List, Optional import torch from torch import Tensor from torch_geometric.nn.conv import MessagePassing from torch_geometric.nn.module_dict import ModuleDict from torch_geometric.typing import Adj, EdgeType, NodeType from torch_geometric.uti...