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
c11ea35d271d7f8962bd79545e36065ff32ef6e7
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/conf-pkg/src/genie/libs/conf/ospf/iosxe/areanetwork.py
82745778b4cd1275cb3c3cfa3d94dde997271999
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
1,310
py
areanetwork.py
''' OSPF Genie Conf Object Implementation for IOSXE: - AreaNetwork multi-line configuration implementation for IOSXE - CLI ''' # Python import warnings from abc import ABC # Genie from genie.conf.base.cli import CliConfigBuilder from genie.conf.base.attributes import AttributesHelper class AreaNetwork(ABC): ...
b578e449c0664de8f3ce6f280d945937f26e1937
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayBossFncInvoiceApplyModel.py
99e12846b57264813d4e9171cec1a0ef31536397
[ "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
4,985
py
AlipayBossFncInvoiceApplyModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi class AlipayBossFncInvoiceApplyModel(object): def __init__(self): self._biz_id = None self._biz_no ...
941792efc44e3ad533ff29a69eab2e2703a4b867
a29b8d6ae6642ef80d04ae99d721b703de06db69
/maro/rl/utils/__init__.py
0be12e6bc486c12cc7731a22290250b06d5e0fd2
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
microsoft/maro
6aab1a4e86fddabf7f242f0d1020d985a5f7a5f3
b3c6a589ad9036b03221e776a6929b2bc1eb4680
refs/heads/master
2023-08-24T16:52:38.250279
2023-05-15T04:31:58
2023-05-15T04:31:58
230,389,247
764
158
MIT
2023-07-25T20:59:06
2019-12-27T06:48:27
Python
UTF-8
Python
false
false
700
py
__init__.py
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Union from .objects import SHAPE_CHECK_FLAG from .torch_utils import average_grads, get_torch_device, match_shape, ndarray_to_tensor from .trajectory_computation import discount_cumsum from .transition_batch import MultiTransi...
3dee2a289052e87910da23a2ff8b3784de538322
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow/source/pbr/tests/test_setup.py
f3fcd40905df053e1c9691f0987d0e0c773285a8
[ "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
18,163
py
test_setup.py
# Copyright (c) 2011 OpenStack Foundation # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # 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:/...
35e88a1dbbf80b3e8ee5b03c90698ddf16221d5c
5f49680d6c50d554ca25b37798bc3113f637a68c
/GQN/model.py
628d3cc29ddf18ef6dbe6851ce365b602f587021
[]
no_license
masa-su/pixyzoo
ad9bd4b28dc80f26d5582129f37d4c34a9ee9312
1fa0d9ded00c4e10e35ed1bf99892f81e5a5e3d2
refs/heads/master
2023-01-19T06:31:40.566390
2023-01-10T07:18:44
2023-01-10T07:18:44
156,181,088
107
23
null
2023-01-10T07:18:45
2018-11-05T08:02:08
Jupyter Notebook
UTF-8
Python
false
false
6,792
py
model.py
import torch from torch import nn from torch.nn import functional as F from pixyz.distributions import Normal from representation import Pyramid, Tower, Pool from inference import InferenceCore, Inference from generation import GenerationCore, Prior, Generation from pixyz.losses import KullbackLeibler class GQN(nn.Mod...
2766a868502fbd829abcc315b609551e4119bf1e
7e1c4dd6a2cae0597b4f4e961063cf077acdfd4c
/couchbase/tests/rate_limit_t.py
200049fa187ea0a7713c83ea03ec9002f40c2038
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
couchbase/couchbase-python-client
753fa434db910d175bf9ea53a5829a40ba36e938
c7d80434be3f917d6f25439a918aed30273f63f4
refs/heads/master
2023-08-29T14:04:13.532717
2023-08-24T22:53:30
2023-08-25T03:35:21
2,122,194
223
87
Apache-2.0
2023-05-30T16:05:59
2011-07-29T04:24:46
Python
UTF-8
Python
false
false
18,860
py
rate_limit_t.py
# Copyright 2016-2022. Couchbase, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
51ff85ed98c78f0264a84779b839c28edbc445f7
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/python/paddle/hapi/model_summary.py
262547444d8d2f4eb7216f4a2ccdd460d6e26b1d
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
23,989
py
model_summary.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
a18ddd65d043f15b63afdff80bfb762e4829b30c
b4c3019ba274e696985efa4c8c71956f98fa93c0
/dosagelib/plugins/wumo.py
832994a06b1852c1661bc745616ecbb0ee232d1b
[ "MIT" ]
permissive
webcomics/dosage
35c3ba5dc8b9d26f2e730d7072e8977f9ff35c18
6f721b0634e1850f60d6bcf12a2858059198f251
refs/heads/master
2023-08-31T01:36:30.934158
2023-08-27T16:19:33
2023-08-27T16:19:33
33,205,825
120
74
MIT
2023-09-05T09:41:04
2015-03-31T19:40:19
Python
UTF-8
Python
false
false
690
py
wumo.py
# SPDX-License-Identifier: MIT # Copyright (C) 2004-2008 Tristan Seligmann and Jonathan Jacobs # Copyright (C) 2012-2014 Bastian Kleineidam # Copyright (C) 2015-2022 Tobias Gruetzmacher from ..scraper import ParserScraper class KindOfNormal(ParserScraper): imageSearch = '//article[1]//div[@class="box-content"]//i...
aececff08dfcc5fd38f37bff3290444d3315fc66
f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b
/samples/python/guides/images02.py
89abd4c77bd6d7f1965573318478c8e679ded245
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
google/earthengine-community
4e054b421f66f03507d58668084aee981062fc24
ce931040c518860f8788b4888c0acfdebd2952fc
refs/heads/master
2023-09-01T14:47:54.812703
2023-08-31T23:01:00
2023-08-31T23:01:39
200,732,820
428
552
Apache-2.0
2023-09-13T21:46:51
2019-08-05T21:42:11
Jupyter Notebook
UTF-8
Python
false
false
2,524
py
images02.py
# Copyright 2020 The Google Earth Engine Community 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...
dd549db60e942d05e9749cca6da8c030dd76eecc
c530897cb72b6943c7226b25824444cad5f3503b
/usaspending_api/common/cache.py
562c56ce7fbb59887c7e73c7b1805165184120c1
[ "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
2,215
py
cache.py
import hashlib import json from rest_framework_extensions.key_constructor import bits from rest_framework_extensions.key_constructor.constructors import DefaultKeyConstructor from usaspending_api.common.helpers.dict_helpers import order_nested_object class PathKeyBit(bits.QueryParamsKeyBit): """ Adds query ...
85ad0aa7e943deab65b6fc12ac97df52794f6e87
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/19_数学/数论/BSGS/bsgs.py
17897b18c47180acc93a4dc194cff165e21c84d5
[]
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
2,791
py
bsgs.py
"""bsgs与exbsgs 离散对数(Discrete Logarithm) https://dianhsu.com/2022/08/27/template-math/#bsgs """ from math import ceil, gcd, sqrt from typing import Tuple def bsgs(base: int, target: int, mod: int) -> int: """Baby-step Giant-step 在base和mod互质的情况下,求解 base^x ≡ target (mod mod) 的最小解x, 若不存在解则返回...
de139ed27a1cda0256e693a34e33ad430d9e6004
fd8ef75bb06383538cdb21ed2a0ef88e570179b7
/src/openfermion/circuits/trotter/algorithms/split_operator.py
7fe83fa449aaf8e1060cd4b2c6feed1367c1af27
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
quantumlib/OpenFermion
d1147383f99573d19005bd0f3e0120e9e9bed04c
788481753c798a72c5cb3aa9f2aa9da3ce3190b0
refs/heads/master
2023-09-04T11:00:32.124157
2023-08-24T21:54:30
2023-08-24T21:54:30
104,403,768
1,481
406
Apache-2.0
2023-08-24T21:54:31
2017-09-21T22:10:28
Python
UTF-8
Python
false
false
11,908
py
split_operator.py
# 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, software # distribu...
f3d4da332c6237160cea3370eac5fce382d4e24c
67f6ca6dd3f8fb1d3104f931546c50445846083c
/src/main/python/smart/smartplots2_run.py
6edfcd66b7a7d1ef58965a6f017bbf73cafea8b2
[ "BSD-3-Clause-LBNL" ]
permissive
LBNL-UCB-STI/beam
7e63cf28854a0b78e5f123629f5ff84966d75deb
ca433c85c592285cf4ff6c28620b3538fe9cc9ba
refs/heads/develop
2023-09-01T03:51:59.353627
2023-08-31T15:04:26
2023-08-31T15:04:26
73,118,824
142
71
NOASSERTION
2023-09-11T14:53:58
2016-11-07T20:38:29
Jupyter Notebook
UTF-8
Python
false
false
2,169
py
smartplots2_run.py
import pandas as pd import smartplots2_setup plt_setup_smart2 = { 'name': 'no-futuristic-base', 'expansion_factor': (7.75/0.315) * 27.0 / 21.3, 'scenarios_itr': [15, 15, 15, 15, 15, 15, 15], 'scenarios_id': [1, 6, 7, 8, 9, 10, 11], 'scenarios_year': [2010, 2025, 2025, 2025, 2025, 2040, 2040], ...
a57c790a4086b7ad622a20d85820a00bed003f6a
e8b38b8dfa348ff006eb197a7906ca8e491a23dc
/tests/epyccel/modules/loops.py
6f6fec112e9ba62d32c28f97b81b334b9b8b39ef
[ "MIT" ]
permissive
pyccel/pyccel
d79a81dbdff1172839a6a1227abfcc1f97e6c97b
1896b761ba662c90b14c195bbb6eb5cddc57cbfc
refs/heads/devel
2023-08-30T12:15:25.244401
2023-08-28T09:31:32
2023-08-28T09:31:32
100,463,736
307
39
MIT
2023-09-14T19:29:26
2017-08-16T07:59:14
Python
UTF-8
Python
false
false
4,482
py
loops.py
# pylint: disable=missing-function-docstring, missing-module-docstring #============================================================================== def sum_natural_numbers(n : int): x = 0 for i in range( 1, n+1 ): x += i return x # ... def factorial(n : int): x = 1 for i in range( 2, n...
3b312679edf153f2be3c7801064089cdb91b47ae
01184c7098e40569dd48219fbe3012321cf31244
/rdflib/query.py
9ea5c2b0f2303154da3550fc20668b932dba25f6
[ "BSD-3-Clause" ]
permissive
RDFLib/rdflib
1c81136f2656207042f81374540d8e1f02be28f5
077f4ac3abb3038b266f40dc95a8ccf9f4e9a84c
refs/heads/main
2023-08-30T11:22:00.041615
2023-08-29T21:31:43
2023-08-29T21:31:43
3,342,046
1,754
562
BSD-3-Clause
2023-09-12T14:58:35
2012-02-03T05:49:13
Python
UTF-8
Python
false
false
15,019
py
query.py
from __future__ import annotations import itertools import types import warnings from io import BytesIO from typing import ( IO, TYPE_CHECKING, Any, BinaryIO, Dict, Iterator, List, Mapping, MutableSequence, Optional, Tuple, Union, cast, overload, ) from urllib.pa...
3c2b575628ed3c9674453bff1a7c1dd5130ea86d
e986b7650d2317f740d65f44b19e663cb646d85e
/jdaviz/configs/imviz/plugins/footprints/__init__.py
069469d820330eac60eafb898abf2d2ac28de97b
[ "BSD-3-Clause" ]
permissive
spacetelescope/jdaviz
a223230d2296f7fdee17a43ae1a4bee45452ec13
17a864ed7d64cece18fbc29f3561c137e6bf0942
refs/heads/main
2023-08-17T05:59:55.109052
2023-08-15T19:46:49
2023-08-15T19:46:49
185,452,341
105
70
BSD-3-Clause
2023-09-14T15:20:16
2019-05-07T17:54:06
Python
UTF-8
Python
false
false
35
py
__init__.py
from .footprints import * # noqa
e17fe135223a68a5f0a433cb0bd021277d6e0922
7eae8668c2e35bfbbca526f47685702e5311cdfa
/tests/pubsub/test_gossipsub.py
20611300c861113f4a033286ec39460237237001
[ "Apache-2.0", "MIT" ]
permissive
libp2p/py-libp2p
2fcfab669e0c3a959b63a4855403d958e5ebccab
b38b36862f44421aec998e438b668cff265de75c
refs/heads/master
2023-09-04T20:28:42.952740
2023-06-28T08:54:08
2023-06-28T08:54:08
149,072,635
399
98
MIT
2022-12-08T21:49:47
2018-09-17T05:20:41
Python
UTF-8
Python
false
false
18,278
py
test_gossipsub.py
import random import pytest import trio from libp2p.pubsub.gossipsub import PROTOCOL_ID from libp2p.tools.factories import IDFactory, PubsubFactory from libp2p.tools.pubsub.utils import dense_connect, one_to_all_connect from libp2p.tools.utils import connect @pytest.mark.trio async def test_join(): async with P...
5e225091b01cbce2530241d2a40735724c0de856
fda6a1be714d8e27a5d8dd3df795df45538f2fe7
/graphene/types/tests/test_type_map.py
55665b6b8888efe0b71d31653cc6aa352e329355
[ "MIT" ]
permissive
graphql-python/graphene
6badaaa97c8ad78552a656f9da9ed577cfc37add
93cb33d359bf2109d1b81eaeaf052cdb06f93f49
refs/heads/master
2023-08-05T02:48:36.967050
2023-07-26T07:43:40
2023-07-26T07:43:40
43,056,951
8,187
1,088
MIT
2023-09-01T19:59:19
2015-09-24T09:18:18
Python
UTF-8
Python
false
false
10,417
py
test_type_map.py
from graphql import Undefined from graphql.type import ( GraphQLArgument, GraphQLEnumType, GraphQLEnumValue, GraphQLField, GraphQLInputField, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLNonNull, GraphQLObjectType, GraphQLString, ) from ..dynamic import Dynamic from ..en...
67378211176e98a26fa1325000d3c5bd724d539f
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/libdrm/src/symbols-check.py
2e7ba68d10229cfb48a7694cd9b7123d143f3c3c
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later" ]
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
3,785
py
symbols-check.py
#!/usr/bin/env python3 import argparse import os import platform import subprocess # This list contains symbols that _might_ be exported for some platforms PLATFORM_SYMBOLS = [ '__bss_end__', '__bss_start__', '__bss_start', '__end__', '_bss_end__', '_edata', '_end', '_fini', '_init...
5c8ad240ab60f50624fb865575809ae866e1ba7f
54292bb222c6525217458e92ddacfc4e2635b83e
/python/phonenumbers/carrierdata/data1.py
865b7c3d57bdfc7c4ba9f77e023089f2f17cd42e
[ "Apache-2.0" ]
permissive
daviddrysdale/python-phonenumbers
0d69b48033d1464c0a6c358274062f1db2ee8c4a
2f06ef6db2ca83f3856fbb8019a0c665f5971b13
refs/heads/dev
2023-08-31T09:37:20.570690
2023-08-22T05:18:22
2023-08-22T05:18:22
1,643,611
2,944
406
Apache-2.0
2023-08-08T06:49:07
2011-04-21T03:06:38
Python
UTF-8
Python
false
false
356,575
py
data1.py
"""Per-prefix data, mapping each prefix to a dict of locale:name. Auto-generated file, do not edit by hand. """ from ..util import u # Copyright (C) 2011-2023 The Libphonenumber Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Licens...
7df781e150f083ad6c3f299471621947eac6efef
8d585fa3b2419d9b993be2f2652e448cfeedc8b2
/utils/kubernetes/__init__.py
f070f0ec97696bab109000dcfc8f7f9796e9c80b
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
DataDog/dd-agent
bd4ef0edb234293b51d30894a529ce94b37060f8
16fa4ec9ae11ca0adfffbd260c5b4899dc73509f
refs/heads/master
2023-08-16T09:52:21.816487
2023-07-11T15:37:34
2023-07-11T15:37:34
1,210,071
1,227
991
NOASSERTION
2023-06-28T12:20:19
2010-12-31T03:02:47
Python
UTF-8
Python
false
false
384
py
__init__.py
# (C) Datadog, Inc. 2016 # All rights reserved # Licensed under Simplified BSD License (see LICENSE) from .leader_elector import LeaderElector # noqa: F401 from .kube_event_retriever import KubeEventRetriever # noqa: F401 from .pod_service_mapper import PodServiceMapper # noqa: F401 from .kubeutil import detect_is...
1a18ca3b1e38c18bba305cd3f1886f385284c119
a9139fc3f4762b657d141651829db7ccb6da1bb7
/tests/algorithms/test_occupation_classifiers.py
a3e3d961764e35964bae1eb367c50fc2fd3abeb7
[ "MIT" ]
permissive
workforce-data-initiative/skills-ml
25d8239f0ead0d94ceba32c97f447abd58d8ab23
feffead90815ccdecf24bf1a995f79683442b046
refs/heads/master
2023-08-31T11:45:59.352116
2023-05-05T15:29:54
2023-05-05T15:29:54
71,592,191
164
76
NOASSERTION
2023-09-04T22:29:18
2016-10-21T19:51:14
Jupyter Notebook
UTF-8
Python
false
false
9,317
py
test_occupation_classifiers.py
from skills_ml.algorithms.occupation_classifiers.classifiers import CombinedClassifier, KNNDoc2VecClassifier, SocClassifier from skills_ml.algorithms.embedding.train import EmbeddingTrainer from skills_ml.algorithms.occupation_classifiers import SOCMajorGroup, DesignMatrix from skills_ml.algorithms.embedding.models imp...
0559cebde8a49618ac782242eabe9690b2bb5260
649b0c3fda1546d933c862fa13a96684447a94c8
/tomviz/python/BinTiltSeriesByTwo.py
febbc434a9d151ba12b67c97eb7ced62135d9788
[ "BSD-3-Clause" ]
permissive
OpenChemistry/tomviz
fa181db37eb5992dff6cae7a55d982495eabdba9
dd39cc4cf43ce1ea9224602508d372e5c5a5fd66
refs/heads/master
2023-06-01T13:51:40.416494
2023-04-20T19:21:12
2023-04-20T19:21:12
17,905,329
330
85
BSD-3-Clause
2023-05-22T21:34:33
2014-03-19T13:35:20
C++
UTF-8
Python
false
false
815
py
BinTiltSeriesByTwo.py
def transform(dataset): """Downsample tilt images by a factor of 2""" from tomviz import utils import scipy.ndimage import numpy as np import warnings array = dataset.active_scalars zoom = (0.5, 0.5, 1) result_shape = utils.zoom_shape(array, zoom) result = np.empty(result_shape, a...
cc5840da1098581c71e7e036cae86ae8bf23673e
3256af0d6c19732bb84b256a9f792aaf7f3d901a
/f5/bigip/tm/sys/file.py
4f90e62b8af7dae5483b71d194f80dea4b784c7a
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
F5Networks/f5-common-python
73e33ea489d989399d205077163f24ce584d83b9
3050df0079c2426af99b9a1b8f93d0b512468ff4
refs/heads/development
2023-08-29T10:11:23.713392
2022-09-21T02:45:03
2022-09-21T02:45:03
45,062,555
286
180
Apache-2.0
2023-05-12T23:13:03
2015-10-27T18:48:06
Python
UTF-8
Python
false
false
7,894
py
file.py
# coding=utf-8 # # Copyright 2019 F5 Networks Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
3572c556a96f23671d4c375ccf77c04b60c52aa3
3a8678a73ff5caa3df02da97a0a0b49ab4482994
/python/pyiceberg/avro/codecs/snappy_codec.py
2da8ed8f720d99b0af532b3b2c17faed7063d62a
[ "Apache-2.0" ]
permissive
apache/iceberg
b21a9c1bfbb328919f51cd257772dfd1bd86aaff
c9ce6a123b49c1c4e5bd950b388d69e6ff849b5d
refs/heads/master
2023-09-03T15:54:18.098529
2023-09-03T12:37:39
2023-09-03T12:37:39
158,256,479
4,358
1,659
Apache-2.0
2023-09-14T16:31:51
2018-11-19T16:26:46
Java
UTF-8
Python
false
false
2,702
py
snappy_codec.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...
83915d16baa7fc50804f4a27e78232447edc7ea8
d05ff6dda43729011b7d469b0a2bc02ed66b6342
/frappe/patches/v11_0/update_list_user_settings.py
5209b9e384e969e9fc0ef7dff7677aebb660b7b7
[ "MIT" ]
permissive
frappe/frappe
520c14bed3810c3360629a81dcc33f0ebe21ac4d
dd8f314bf4a8a4739eebbfac741abc533ac58bc1
refs/heads/develop
2023-08-30T19:29:10.406706
2023-08-30T11:20:40
2023-08-30T11:20:40
1,864,194
5,955
3,735
MIT
2023-09-14T16:08:04
2011-06-08T08:14:16
Python
UTF-8
Python
false
false
1,107
py
update_list_user_settings.py
import json import frappe from frappe.model.utils.user_settings import sync_user_settings, update_user_settings def execute(): """Update list_view's order by property from __UserSettings""" users = frappe.db.sql("select distinct(user) from `__UserSettings`", as_dict=True) for user in users: # get user_setting...
bc3b47d3138ab50cf6591982c4e01423582e52c1
53a83642c01a8828e3d7bd0b18e33c3b694c2b84
/Python/GeeksforGeeks/sum-of-ap-series.py
76c7bbb2e3247db7c290306286f2b15534037d1f
[]
no_license
anantkaushik/Competitive_Programming
1dcd60a28b5b951c23024d6090942be081ad249f
6dba38fd7aa4e71b5196d01d64e81f9336d08b13
refs/heads/master
2022-03-06T15:36:23.797340
2022-02-21T12:00:37
2022-02-21T12:00:37
82,700,948
271
95
null
2020-10-27T17:34:39
2017-02-21T16:18:16
Python
UTF-8
Python
false
false
763
py
sum-of-ap-series.py
""" A series with same common difference is known as arithmetic series. The first term of series is 'a' and common difference is d. The series looks like a, a + d, a + 2d, a + 3d, . . . Find the sum of series. Input : a = 1 d = 2 n = 4 Output : 16 1 + 3 + 5 + 7 = 16 Input : a = 2.5 d = 1.5 ...
2efbf2c533d3a5cfeb53292dddcd25f8bd5e9306
3750387e046dfd287d02decc846860fae874bf3e
/hydra/core/utils.py
43ff3649a76c6bb7f82a37b9877de2a2075bd030
[ "MIT" ]
permissive
facebookresearch/hydra
baf152caa30cd1d8a7e76ba2111fb9a49ecbe18c
b5ff66134f268164a20712d18b1230f4dd737444
refs/heads/main
2023-08-28T02:33:18.063795
2023-07-25T17:58:43
2023-07-25T17:58:43
191,632,914
7,667
692
MIT
2023-09-11T15:38:52
2019-06-12T19:33:15
Python
UTF-8
Python
false
false
10,502
py
utils.py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import copy import logging import os import re import sys from contextlib import contextmanager from dataclasses import dataclass from datetime import datetime from enum import Enum from os.path import splitext from pathlib import Path from textwrap...
3b7a1e88faa3b878e7902369fc09589fb3619449
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/tools/final_ut_parallel_rule.py
e0fc86c19a8cc46e9452a75dca7d9697b20b0db4
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
6,008
py
final_ut_parallel_rule.py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
b4a2209c78959c6515736b5cde8d1ffa0bb6a3fe
77c4f4dd27b8d7497e66a7a5a87ad7ea83f2c4be
/python/pyarrow/interchange/dataframe.py
59ba765c175ad471274a99bf857c8880a072e0b8
[ "Apache-2.0", "MIT", "BSD-3-Clause", "BSD-2-Clause", "ZPL-2.1", "BSL-1.0", "LicenseRef-scancode-public-domain", "NTP", "OpenSSL", "CC-BY-4.0", "LLVM-exception", "Python-2.0", "CC0-1.0", "LicenseRef-scancode-protobuf", "JSON", "Zlib", "CC-BY-3.0", "LicenseRef-scancode-unknown-licens...
permissive
apache/arrow
0714bfbf6fd491e1f4ed4acf838845ce4b94ec3e
59954225d4615f9b3bd7a3c266fb68761794229a
refs/heads/main
2023-08-24T09:04:22.253199
2023-08-24T07:21:51
2023-08-24T07:21:51
51,905,353
12,955
3,585
Apache-2.0
2023-09-14T20:45:56
2016-02-17T08:00:23
C++
UTF-8
Python
false
false
8,405
py
dataframe.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...
bc1933e848a27d33b278bcc3c4e4379404162c80
6b6d42eadf53e90b08ce564fb188a9a4b126ef12
/utils/update_copyright.py
9bc54cd7bb6b7c30434f8f9d1b9777e39de7ad06
[ "Apache-2.0", "LLVM-exception", "NCSA" ]
permissive
AdaCore/libadalang
f97b95d1672cb1e5083c49ee632c6f9c787d36c2
50d658afa70ccbf46b8f7d9d43a21d45d56b206c
refs/heads/master
2023-09-01T18:34:26.976692
2023-08-25T15:53:43
2023-08-25T15:53:43
47,627,172
158
49
Apache-2.0
2022-12-14T10:29:45
2015-12-08T14:28:22
Ada
UTF-8
Python
false
false
4,074
py
update_copyright.py
#!/usr/bin/env python3 import argparse import datetime import glob import re import sys from typing import Match class Updater: """Namespace for copyright updating code.""" copyright_re_list = [ re.compile(pattern) for pattern in [ # For Ada/C source code r"(?P<copyri...
6a1dec88cee29405b26fe4963f593ef900ea9293
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/yamaha/__init__.py
92a34517ec6eaed77214cb96e9fee02c8b563680
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
28
py
__init__.py
"""The yamaha component."""
4a40b6842907fb5a3d46dd74733f21a597c1cf60
d6f6d1d1aac892f7555c8ae436430f8da415b455
/chempy/util/tests/test_rendering.py
4542a41e76ae6c4bc9095021df2b77d70124a371
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bjodah/chempy
9884e1475cb62ec9c5ae3ecc0833efe7e36dbbab
1ef1bf6751884b57dc13dc420e1f5c634e954375
refs/heads/master
2023-08-10T07:47:32.227130
2023-07-16T09:59:09
2023-07-16T10:13:17
36,242,853
481
92
BSD-2-Clause
2023-07-16T09:57:03
2015-05-25T16:49:18
Python
UTF-8
Python
false
false
726
py
test_rendering.py
import math from chempy import Reaction from chempy.units import allclose, default_units as u from ..testing import requires from ..rendering import eval_template from ..parsing import get_parsing_context from chempy.units import units_library @requires(units_library) def test_eval_template(): rendered = eval_tem...
b8e6240b72d93b294a791be2777914dbabfaffd2
037a5d4c286d1c373f1771382e0baa057524cef5
/tests/backend/test_common.py
7df59cef56c05dfe234283506377606bb7fdfae8
[ "Apache-2.0" ]
permissive
fizyr/keras-retinanet
4e26631f6a643ae55a4229c416be03007a39f75e
7ac91dfbbacce77d6d9633fc09e16cd0ee71fd5e
refs/heads/main
2023-07-28T21:40:32.400051
2023-03-16T14:51:24
2023-03-16T14:51:24
100,249,425
4,696
2,335
Apache-2.0
2023-09-06T07:32:39
2017-08-14T09:14:29
Python
UTF-8
Python
false
false
3,822
py
test_common.py
""" Copyright 2017-2018 Fizyr (https://fizyr.com) 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 w...
b0cd2e3915790e0d25b8a3cbcf71a94534f98693
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/scipy/py3/scipy/spatial/distance.py
1941e467b62828cfe4ffc09a34888d549c663cf0
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "Qhull", "BSD-3-Clause", "BSL-1.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
90,588
py
distance.py
""" Distance computations (:mod:`scipy.spatial.distance`) ===================================================== .. sectionauthor:: Damian Eads Function reference ------------------ Distance matrix computation from a collection of raw observation vectors stored in a rectangular array. .. autosummary:: :toctree: g...
9ed386d3715fcd61a423f7b0321ed453a5d2cb85
515e45025082ffbfda960635e31f99c4ca1aa7d8
/unix_build.py
83f916f26a2fe91c546f71ec2a6efc01e837a296
[ "Apache-2.0" ]
permissive
kovidgoyal/html5-parser
62a3e626cba563076c7503fafb2fd83c506c61dd
ef7d4af932293fa04c3ac78a77b7fb2f0ac2f26d
refs/heads/master
2023-05-30T09:44:52.629086
2023-04-12T05:07:46
2023-04-12T05:07:46
93,229,662
714
42
Apache-2.0
2021-07-26T13:23:04
2017-06-03T06:56:36
C
UTF-8
Python
false
false
10,933
py
unix_build.py
#!/usr/bin/env python # vim:fileencoding=utf-8 # License: Apache 2.0 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net> from __future__ import (absolute_import, division, print_function, unicode_literals) import argparse import errno import glob import os import re import shlex import shutil import subprocess imp...
2913efe52848982b21ccc09f0debb6339ceccb5d
aa37406dba4d5ce557bf0777fe29db145d237d10
/tests/serialization/test_model_utils.py
c188bb2a26bac3d0a72aa307d1ef754d5c1abfa8
[ "MIT" ]
permissive
marcosschroh/dataclasses-avroschema
ef7c4963bf28203cb7e5c068162726fe3df53167
d0097dfff09881a95a9d0ef48f58ac73f826fe36
refs/heads/master
2023-08-18T18:16:45.284134
2023-08-15T09:11:56
2023-08-15T09:11:56
205,188,270
173
50
MIT
2023-09-13T14:37:42
2019-08-29T14:58:17
Python
UTF-8
Python
false
false
2,375
py
test_model_utils.py
import enum import json import typing from dataclasses import dataclass import pytest from dataclasses_avroschema import AvroModel from tests.serialization.test_serialization import CLASSES_DATA_BINARY @pytest.mark.parametrize("klass, data, avro_binary, avro_json, instance_json, python_dict", CLASSES_DATA_BINARY) d...
6a83cabf7bdcf48fc985c749f322540ad15b1056
a158b5b0cc491912ad0166fd891efd5abb951f51
/examples/python/qfssample.py
8a4cfd0294051b49a3c0466fb2918bb976e35caf
[ "Apache-2.0" ]
permissive
quantcast/qfs
467651a3af7e77e779f199429d74dde67cee8c10
0d9dab4e51b27dde5869dd948e26b62e769e7d95
refs/heads/master
2023-08-04T12:47:56.591858
2023-05-06T02:42:34
2023-05-06T02:42:34
5,447,814
372
136
Apache-2.0
2023-05-06T01:22:44
2012-08-17T03:59:37
C++
UTF-8
Python
false
false
5,732
py
qfssample.py
# # $Id$ # # Author: Thilee Subramaniam # # Copyright 2012,2016 Quantcast Corporation. All rights reserved. # # This file is part of Kosmos File System (KFS). # # 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...
0694e475a7c83cfdd932a150ff747f58a5de4a7b
4506d81df5ae98078e5cbe79f613514ad12b1c83
/nipype/pipeline/plugins/lsf.py
dbd7f7d8107d99cadd4f468532cf94a87a6e04c3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nipy/nipype
d52eba1b98fda68e24d006ac0d5701fc8a531b9c
03a236320fa229299d637ff9af97865a6ae76aca
refs/heads/master
2023-08-28T10:36:07.020541
2023-08-25T13:40:09
2023-08-25T13:40:09
791,477
692
569
NOASSERTION
2023-09-11T06:04:51
2010-07-22T17:06:49
Python
UTF-8
Python
false
false
4,798
py
lsf.py
"""Parallel workflow execution via LSF """ import os import re from time import sleep from ... import logging from ...interfaces.base import CommandLine from .base import SGELikeBatchManagerBase, logger iflogger = logging.getLogger("nipype.interface") class LSFPlugin(SGELikeBatchManagerBase): """Execute using ...
25d2e2c8644732ff4d68807ea3aa346778710e00
2c092a0bc0d04821d61fbbda5f75fc04812ead62
/demo.py
76043417de7cca74fec16f3ae13fe4c65e3a4e7e
[ "MIT" ]
permissive
coffeehat/BIT-srun-login-script
9867c24030062fd7d75cb3bea65bfbd7f1756a6a
f9b1f18f14e1d9d36690e532ff36e49f2565c4bd
refs/heads/master
2022-09-14T16:11:41.243543
2022-09-13T12:27:19
2022-09-13T12:27:19
252,195,553
135
47
MIT
2022-09-13T12:27:20
2020-04-01T14:17:26
Python
UTF-8
Python
false
false
151
py
demo.py
from BitSrunLogin.LoginManager import LoginManager lm = LoginManager() lm.login( username = "Your srun account", password = "Your password" )
7fb3437e3e881c9b5adb6b2ccea566da55e1211a
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayPcreditLoanLoanUnclearQueryResponse.py
e7dbe4ae0f833bc1773472f62146b67c0207148d
[ "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,463
py
AlipayPcreditLoanLoanUnclearQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.LoanApplyBudgetVO import LoanApplyBudgetVO class AlipayPcreditLoanLoanUnclearQueryResponse(AlipayResponse): def __init__(self): super(AlipayPcreditLoanLo...
6f19d6c1588057bcb992dc5cde5134aab17c20e7
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/terraform/checks/resource/aws/ECSServicePublicIP.py
2d4326dc4f7f418fb5b6e3dc31dba580b423f892
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
1,345
py
ECSServicePublicIP.py
from checkov.common.models.enums import CheckCategories from checkov.terraform.checks.resource.base_resource_negative_value_check import BaseResourceNegativeValueCheck from typing import Any, List class ECSServicePublicIP(BaseResourceNegativeValueCheck): def __init__(self): """ NIST.800-53.r5 AC-2...
e5120fb34e3c4cfe77f99c98a39d4db824bb4dc2
e75a40843a8738b84bd529a549c45776d09e70d9
/samples/server/petstore/python-blueplanet/app/openapi_server/__main__.py
333f12d0795f0b41a18a397171d83271e0a1c15f
[ "Apache-2.0" ]
permissive
OpenAPITools/openapi-generator
3478dbf8e8319977269e2e84e0bf9960233146e3
8c2de11ac2f268836ac9bf0906b8bb6b4013c92d
refs/heads/master
2023-09-02T11:26:28.189499
2023-09-02T02:21:04
2023-09-02T02:21:04
133,134,007
17,729
6,577
Apache-2.0
2023-09-14T19:45:32
2018-05-12T09:57:56
Java
UTF-8
Python
false
false
341
py
__main__.py
#!/usr/bin/env python3 import connexion from openapi_server import encoder def main(): app = connexion.App(__name__, specification_dir='./swagger/') app.app.json_encoder = encoder.JSONEncoder app.add_api('swagger.yaml', arguments={'title': 'OpenAPI Petstore'}) app.run(port=8080) if __name__ == '_...
019ada4bdef2286d7c51932f91b1c845b9520b3a
a38bf459ae380f67e0de22f7106a8df4385a7076
/rules_python_gapic/pytest.py
72095851636e9f25a9b35957994d7d3d944c2816
[ "Apache-2.0" ]
permissive
googleapis/gapic-generator-python
73ce9d52f6f5bb2652d49b237b24263d6637b1da
4eee26181e8db9fb5144eef5a76f178c1594e48a
refs/heads/main
2023-09-04T11:12:14.728757
2023-09-02T10:34:44
2023-09-02T10:34:44
129,809,857
116
65
Apache-2.0
2023-09-12T18:57:01
2018-04-16T21:47:04
Python
UTF-8
Python
false
false
612
py
pytest.py
import sys import pytest import os if __name__ == "__main__": # The generated file name will be of the form `<module_name>_pytest.py`. # The generated gapic will be in a directory `<module_name>_srcjar.py``. # Extract the `<module_name>`` from this file, and use it to determine the # directory of the ...
2acb1fb9f8560536f92efb9cef46bdffb9a601d9
7e6f0efd6f4733d09e61b4c6658455e6727cd48f
/seed/models/ubid_models.py
c89f7084f385a7f39a8c6038edb3c1301daec5d6
[ "BSD-2-Clause" ]
permissive
SEED-platform/seed
0e4a6a2fa93f4c2528d0c295163a91f836a4253d
680b6a2b45f3c568d779d8ac86553a0b08c384c8
refs/heads/develop
2023-09-01T10:46:25.502697
2023-08-30T18:44:21
2023-08-30T18:44:21
25,450,714
108
75
NOASSERTION
2023-09-13T22:18:47
2014-10-20T04:26:53
Python
UTF-8
Python
false
false
2,166
py
ubid_models.py
# !/usr/bin/env python # encoding: utf-8 """ SEED Platform (TM), Copyright (c) Alliance for Sustainable Energy, LLC, and other contributors. See also https://github.com/seed-platform/seed/main/LICENSE.md """ from django.db import models from django.db.models import Q from django.db.models.signals import post_save, pre...
da585b0085bca15afb6bba8ff851cd62a7f20f60
d05ff6dda43729011b7d469b0a2bc02ed66b6342
/frappe/custom/doctype/doctype_layout/patches/convert_web_forms_to_doctype_layout.py
7d22ee3c7dc139855d1d234aa7384894768f18de
[ "MIT" ]
permissive
frappe/frappe
520c14bed3810c3360629a81dcc33f0ebe21ac4d
dd8f314bf4a8a4739eebbfac741abc533ac58bc1
refs/heads/develop
2023-08-30T19:29:10.406706
2023-08-30T11:20:40
2023-08-30T11:20:40
1,864,194
5,955
3,735
MIT
2023-09-14T16:08:04
2011-06-08T08:14:16
Python
UTF-8
Python
false
false
476
py
convert_web_forms_to_doctype_layout.py
import frappe def execute(): for web_form_name in frappe.get_all("Web Form", pluck="name"): web_form = frappe.get_doc("Web Form", web_form_name) doctype_layout = frappe.get_doc( dict( doctype="DocType Layout", document_type=web_form.doc_type, name=web_form.title, route=web_form.route, fiel...
1c3057fbc9f767500952cb84da18598cd4082341
f0a2768eee431c20ea9f4c2c589fdb7ea878f62f
/pmfx.py
bfe385823f9abbc5c58a8977a1812ef7bda20ab3
[ "MIT" ]
permissive
polymonster/pmfx-shader
5c7f58f8325e7ce1d8c41bc76d9d261b23b01921
86e04a766885f3ac9946af0b14c9e500d2671a7d
refs/heads/master
2023-07-07T08:30:21.884207
2023-07-02T10:50:40
2023-07-02T10:50:40
195,820,234
337
13
MIT
2023-04-19T10:09:16
2019-07-08T13:43:01
Python
UTF-8
Python
false
false
119,986
py
pmfx.py
import os import sys import json import jsn import re import math import subprocess import platform import copy import threading import cgu import hashlib import pmfx_pipeline # print error with colour def print_error(msg): ERROR = '\033[91m' ENDC = '\033[0m' print(ERROR + msg + ENDC, flush=True) # print...
67da92a11b52b4049efd7adfc5176768bac04bbc
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/data_interfaces/migrations/0024_add_automaticupdaterule_upstream_id.py
0fa2884a93e7ef175eef35202828db4534842fa9
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
422
py
0024_add_automaticupdaterule_upstream_id.py
# Generated by Django 2.2.24 on 2021-10-28 20:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_interfaces', '0023_auto_20210914_1726'), ] operations = [ migrations.AddField( model_name='automaticupdaterule', ...
69d077fbc6e0e7849080e3fc3ed7398ad3d8180d
ec9fd70a945d9ad6c7018ed96ca71a65c76bb471
/onshape_to_robot/pure_sketch.py
1e485400a36cab93beb755e8b639e9f86d4e6895
[ "MIT" ]
permissive
Rhoban/onshape-to-robot
0c252e37c09988d878bdaed2ffd42e460bd48411
f4716a23046bada1c90e3e1acd81686a6d1f2593
refs/heads/master
2023-08-17T23:22:54.592494
2023-03-14T15:52:19
2023-03-14T15:52:19
176,774,675
175
40
MIT
2023-09-05T23:31:58
2019-03-20T16:30:53
Python
UTF-8
Python
false
false
5,226
py
pure_sketch.py
import numpy as np import math import commentjson as json import os import sys, os from colorama import Fore, Back, Style def main(): if len(sys.argv) < 2: print('Usage: onshape-to-robot-pure-shape {STL file} [prefix=PureShapes]') else: fileName = sys.argv[1] robotDir = os.path.dirname...
d5a1b26332b4e407c23b85752687862f336342f1
b40d1a26ea04a19ec0da7bf55db84b7ee36cc898
/leetcode.com/python/997_Find_the_Town_Judge.py
3cd5b17877d5a22cf9490fd0f158f17d219aa041
[ "MIT" ]
permissive
partho-maple/coding-interview-gym
5e8af7d404c28d4b9b52e5cffc540fd51d8025cf
20ae1a048eddbc9a32c819cf61258e2b57572f05
refs/heads/master
2022-09-11T16:36:01.702626
2022-03-14T08:39:47
2022-03-14T08:39:47
69,802,909
862
438
MIT
2022-08-18T06:42:46
2016-10-02T14:51:31
Python
UTF-8
Python
false
false
1,089
py
997_Find_the_Town_Judge.py
from collections import defaultdict class Solution(object): def findJudge(self, N, trust): """ :type N: int :type trust: List[List[int]] :rtype: int """ graph = defaultdict(list) for i in range(1, N + 1): graph[i] = [] for trustPair in ...
4a820dbffde3844cddf0b7c8e917e2cace72ab0d
7f59e2c4e771c19378e9839406c220d3985e7efe
/public-engines/sms-spam-engine/marvin_sms_spam_engine/data_handler/training_preparator.py
8dba2e9ccef67cb6c00ba2bb7d6738169fca7c3e
[ "Apache-2.0" ]
permissive
apache/incubator-marvin
c6ff32d50eb01ccd84266587d79f562a9e371496
58fdccf2e677041a13966ddbdd96d484edf3b474
refs/heads/develop
2023-08-30T12:46:56.973102
2022-11-18T15:27:52
2022-11-18T15:27:52
148,087,939
112
77
Apache-2.0
2023-03-07T05:45:59
2018-09-10T02:27:54
Jupyter Notebook
UTF-8
Python
false
false
1,154
py
training_preparator.py
#!/usr/bin/env python # coding=utf-8 """TrainingPreparator engine action. Use this module to add the project main code. """ from .._compatibility import six from .._logging import get_logger from marvin_python_toolbox.engine_base import EngineBaseDataHandler from sklearn.feature_extraction.text import CountVectorize...
d6fb126e558b6cdbb5c0f23c47424daaff24ee43
0c3c8d83fd375c54d228cc9ee490765b92b41084
/raccoon_src/utils/help_utils.py
e097e2049f5d70fa3879ff3e3da3c3aa5a311f45
[ "MIT" ]
permissive
evyatarmeged/Raccoon
4a082ebe25490e4ab5ed07191621048d06e0609e
9cf6c1129221aa51280f5705106660d23b2f1b92
refs/heads/master
2022-10-18T01:21:34.548060
2022-01-10T12:33:00
2022-01-10T12:33:00
133,257,682
2,911
429
MIT
2022-09-28T09:23:00
2018-05-13T17:05:21
Python
UTF-8
Python
false
false
6,620
py
help_utils.py
import os import distutils.spawn from platform import system from collections import Counter from subprocess import PIPE, check_call, CalledProcessError from requests.exceptions import ConnectionError from raccoon_src.utils.exceptions import RaccoonException, ScannerException, RequestHandlerException from raccoon_src.u...
0f14e5c256e7e0134adb14989c4d2fe727b63472
279f415dd1e06c594c6c87deda57e201c73c4542
/espnet2/asr/frontend/fused.py
34f3315fa71c9d81bd6954431a86644b02718305
[ "Apache-2.0" ]
permissive
espnet/espnet
f7ba47271c1a6b1ed606dbbfb04a7f14220bb585
bcd20948db7846ee523443ef9fd78c7a1248c95e
refs/heads/master
2023-08-28T23:43:34.238336
2023-08-23T02:51:39
2023-08-23T02:51:39
114,054,873
7,242
2,244
Apache-2.0
2023-09-14T08:01:11
2017-12-13T00:45:11
Python
UTF-8
Python
false
false
5,752
py
fused.py
from typing import Tuple import numpy as np import torch from typeguard import check_argument_types from espnet2.asr.frontend.abs_frontend import AbsFrontend from espnet2.asr.frontend.default import DefaultFrontend from espnet2.asr.frontend.s3prl import S3prlFrontend class FusedFrontends(AbsFrontend): def __ini...
32dab7469bcd6431520e24ffd9da9442bacd2f8c
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQM/L1TMonitorClient/python/L1TStage2CaloLayer2DEClient_cfi.py
c4f32762c73def8e859f7d0fb4e98c22b01d9216
[ "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
480
py
L1TStage2CaloLayer2DEClient_cfi.py
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDHarvester import DQMEDHarvester l1tStage2CaloLayer2DEClient = DQMEDHarvester("L1TStage2CaloLayer2DEClient", monitorDir = cms.untracked.string('L1TEMU/L1TStage2CaloLayer2/L1TStage2CaloLayer2DERatio'), inputDataDir = ...
9812629e91305439c42ce59262ebf3d9cfa25a8c
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/cr/cr/actions/builder.py
ee237bb2dff206d30caba8fd0f2a1bda3fdd25c3
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
2,513
py
builder.py
# Copyright 2013 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """A module for the Builder base class.""" import difflib import cr class Builder(cr.Action, cr.Plugin.Type): """Base class for implementing builders. Builder implementat...
ff4f64ead6e9f5d3fa68200a4e192af2f0b115e1
bbd69601912a3361d788efd03a47f9d4e3bac09e
/wx/lib/pubsub/core/topicobj.py
edff958484db6d00f7bfdad87fa7f198e52e0029
[ "BSD-2-Clause" ]
permissive
wxWidgets/Phoenix
56929484460a0399a8f1d9582bc77c20aa14748d
a1184286703cf24c4b88e5bc14cf2979c1b1ea00
refs/heads/master
2023-09-01T07:10:17.437093
2023-08-31T05:38:01
2023-08-31T05:38:01
5,078,061
2,268
677
null
2023-09-09T17:06:59
2012-07-17T06:22:25
Python
UTF-8
Python
false
false
19,013
py
topicobj.py
""" Provide the Topic class. :copyright: Copyright since 2006 by Oliver Schoenborn, all rights reserved. :license: BSD, see LICENSE_BSD_Simple.txt for details. """ from weakref import ref as weakref from .listener import ( Listener, ListenerValidator, ) from .topicutils import ( ALL_TO...
b7dc47a9284ed816a8c2977d6669ccaf027c72ee
aeef2494b283012ed619870c4275e7d015f4017a
/sdk/python/pulumi_gcp/dataplex/task.py
ba437f62e334a333a6f88977fd9a5c3eaea6d77f
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-gcp
d4fd3f80c3df5290edaf33eb5eafe34e6699d0ff
7deea0a50a4ee5ab7bd722a83eca01707e298f85
refs/heads/master
2023-08-31T07:12:45.921522
2023-08-31T06:16:27
2023-08-31T06:16:27
97,485,806
160
63
Apache-2.0
2023-09-14T19:49:36
2017-07-17T14:28:37
Java
UTF-8
Python
false
false
40,110
py
task.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...
4b46d6907eadffac66865dc94a46df35c33fa214
620323fc090cebaf7aca456ff3f7fbbe1e210394
/socket__tcp__examples/http__post__contact_ng_server.py
90fa93a9e96fdeda3a104a89322f8d65953f5cbe
[ "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
1,185
py
http__post__contact_ng_server.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import socket INT_SOFT_ID = "<INT_SOFT_ID>" POINT_CODE = "<POINT_CODE>" # NG Server HOST = "10.7.8.31" PORT = 12000 post_data = f""" <?xml version="1.0"?> <REQUEST OBJECT_CLASS="TAbonentObject" ACTION="GET_CHANGES" VERSION="0" TYPE_VERSION="...
188e426e9e2873268a960759426c465f190a16f5
3a3e715407bff57f7811356ddbb58d097d3ce6ab
/tests/integration/conftest.py
8f0d89170eb462329b988d9d91b9ee25f2666377
[ "MIT", "Apache-2.0" ]
permissive
smartsheet-platform/smartsheet-python-sdk
cc72585df2290ce89adc236f2c38e04717b75269
e32cef3c7faeba30a4cec37f9ac15b5a1d72cc83
refs/heads/master
2023-01-12T19:22:31.806414
2022-12-06T16:35:04
2022-12-06T16:35:04
28,953,329
137
94
Apache-2.0
2023-01-19T12:35:26
2015-01-08T06:59:27
Python
UTF-8
Python
false
false
5,275
py
conftest.py
import pytest import smartsheet from datetime import datetime from dateutil.tz import * import json import os import six @pytest.fixture(scope="module") def smart_setup(request): # set up a test session folder with basic starting points smart = smartsheet.Smartsheet(max_retry_time=60) now = datetime.now(t...
235c9b6c7f435e4e89f1c19d6b9e6c175c824849
09c87fe780df6d1f9eb33799ed516a0bbd7ab1e3
/Research/wx doco/ImageViewer4.py
ae138a23a84ff39376e565ccfc968cfa960a846f
[]
no_license
abulka/pynsource
8ad412b85dc1acaeb83d7d34af8cc033c6baba91
979436525c57fdaeaa832e960985e0406e123587
refs/heads/master
2023-04-13T12:58:02.911318
2023-04-11T09:56:32
2023-04-11T09:56:32
32,249,425
271
46
null
2022-10-10T04:36:57
2015-03-15T07:21:43
Python
UTF-8
Python
false
false
527
py
ImageViewer4.py
#!/usr/bin/python import wx class TestApp(wx.App): def OnInit(self): self.MainFrame = wx.Frame(None, -1, "Test Frame") self.MainFrame.SetBackgroundColour(wx.WHITE) self.BMP = wx.Bitmap("../../outyuml.png", wx.BITMAP_TYPE_PNG) self.MainFrame.Bind(wx.EVT_PAINT, self.OnPaint) ...
644b4b19b9c6c2543e81f8972870fb6b7f11e951
f4095ef092092399102bb21d1198e324f10f53ed
/pontoon/base/errors.py
566810a1ae49411fee2c19a665056bb8a2002fa7
[ "BSD-3-Clause" ]
permissive
mozilla/pontoon
2c53227570099ca666467d4e3d78e929bf456c9c
0c4f74e15b1e442a9cee9b1cd636214b24f5352b
refs/heads/master
2023-09-06T04:15:41.009180
2023-09-01T14:23:51
2023-09-01T14:23:51
1,385,890
1,367
713
BSD-3-Clause
2023-09-13T18:04:41
2011-02-19T11:25:51
Python
UTF-8
Python
false
false
481
py
errors.py
import logging from django.conf import settings from raygun4py import raygunprovider log = logging.getLogger(__name__) def send_exception(exception, exc_info=None): """ Function sends exception to selected provider. """ api_key = settings.RAYGUN4PY_CONFIG["api_key"] if api_key: provide...
ffd8216ae4c71ae073f2a50692f5df0007d4e4db
0e36ab6fe38ff8a95b0773e37d86e43476ae9d18
/src/1258.synonymous-sentences.1191/solution.py
752942e4f79d0ea9fb4c967006101d191d07d5cd
[ "MIT" ]
permissive
jiangshanmeta/meta
368a7920ade4568d5c51ef2669d87e7c18b862f8
2cc5c27e897bb227a6b50bafd1f14771b9592717
refs/heads/master
2023-08-16T14:39:48.310006
2023-08-06T08:57:53
2023-08-06T08:57:53
115,569,337
266
59
MIT
2023-08-06T08:57:54
2017-12-28T00:47:17
JavaScript
UTF-8
Python
false
false
1,961
py
solution.py
# union-find + backTracking class Solution: def generateSentences(self, synonyms, text): group = {} for item in synonyms : word1 = item[0] word2 = item[1] if word1 not in group : group[word1] = word1 if word2 not in group : ...
2823c846535c3205a13a53f00f90551426e4e57a
6958f617af0c5a76304ceb1006c77bc70ca0e195
/benchmarks/microbenchmarks/_items.py
3d3a7cbf1b672ffe42964dd250ea2df27b5f44c2
[ "Apache-2.0" ]
permissive
taichi-dev/taichi
3fae315a494f1c97392d5b931c939abbbfba1bdc
b30b511f55e3d0ebff765ee048d0aaa4ba9e7667
refs/heads/master
2023-09-02T13:28:18.208792
2023-08-23T23:22:43
2023-08-23T23:22:43
74,660,642
17,231
1,841
Apache-2.0
2023-09-14T11:29:32
2016-11-24T10:00:05
C++
UTF-8
Python
false
false
2,905
py
_items.py
from microbenchmarks._utils import size2tag import taichi as ti class BenchmarkItem: name = "item" def __init__(self): self._items = {} # {'tag': impl, ...} def get(self): return self._items def get_tags(self): return list(self._items.keys()) def impl(self, tag: str):...
5bd04afe1899f8fc8b37591010745be474766cf9
cca493aeb14bb9e56e5c90eed176366896e675ac
/ColorPalette/__main__.py
c359e1f35be9a102008282002b0a1be717982461
[ "MIT" ]
permissive
rodartha/ColorPalette
8e4819f192a25f4fdad7315722b805cf3568e25e
6fdad5c065106ea4e79e6d8269608da0021604fd
refs/heads/master
2023-07-21T13:48:33.388819
2020-08-26T18:43:09
2020-08-26T18:43:09
217,322,625
310
38
MIT
2023-07-06T21:48:01
2019-10-24T14:43:10
Python
UTF-8
Python
false
false
5,892
py
__main__.py
""" Colorpalette python package. Colin Page <cwpage@umich.edu> Copyright 2019. """ import os from PIL import Image, ImageFont, ImageDraw import matplotlib.pyplot as plt from scipy import cluster import pandas as pd import math import colorsys import click def get_color_pallete(input_file, output_file, num_colors, dis...
602d183f7d69dfc0c9bde6150458034c0aaf24fe
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/6_tree/重构json/297.二叉树的序列化与反序列化-json.py
b2422c2ca7d98c09400edbbb51aeac8ff5cccd45
[]
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
765
py
297.二叉树的序列化与反序列化-json.py
import json from typing import Optional class TreeNode: def __init__(self, x: int): self.val = x self.left: Optional['TreeNode'] = None self.right: Optional['TreeNode'] = None class Codec: def serialize(self, root: TreeNode) -> str: def dfs(root: Optional['TreeNo...
da0c125a8f3418fe3687483050095b381274233e
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/tests/test_auto_parallel/test_tensor_shard/test_metainfo/test_embedding_metainfo.py
e3f76a95c4a5f4d7832b5916e4172276d2c43a41
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
hpcaitech/ColossalAI
a082ed08a3807b53c49d1f86835b9808590d9042
c7b60f75470f067d1342705708810a660eabd684
refs/heads/main
2023-09-01T04:13:13.834565
2023-08-30T15:07:21
2023-08-30T15:07:21
422,274,596
32,044
4,084
Apache-2.0
2023-09-14T15:19:54
2021-10-28T16:19:44
Python
UTF-8
Python
false
false
2,383
py
test_embedding_metainfo.py
import pytest import torch from colossalai.auto_parallel.tensor_shard.sharding_strategy import OperationData, OperationDataType from colossalai.testing.utils import clear_cache_before_run from tests.test_auto_parallel.test_tensor_shard.test_metainfo.utils import print_results if torch.__version__ >= '1.12.0': fro...
14e175f20fa543a9069822980835947d0307ffb9
fdbfbcf4d6a0ef6f3c1b600e7b8037eed0f03f9e
/examples/hydroelastic/python_nonconvex_mesh/drop_pepper.py
9ad715b905980fa129ea18abce95f8037716f98e
[ "BSD-3-Clause" ]
permissive
RobotLocomotion/drake
4529c397f8424145623dd70665531b5e246749a0
3905758e8e99b0f2332461b1cb630907245e0572
refs/heads/master
2023-08-30T21:45:12.782437
2023-08-30T15:59:07
2023-08-30T15:59:07
16,256,144
2,904
1,270
NOASSERTION
2023-09-14T20:51:30
2014-01-26T16:11:05
C++
UTF-8
Python
false
false
5,394
py
drop_pepper.py
""" This is an example of using hydroelastic contact model through pydrake with non-convex meshes. It reads SDFormat files of: - a non-convex mesh of a yellow bell pepper with compliant-hydroelastic properties, - a non-convex mesh of a bowl with rigid-hydroelastic properties, - and a table top (anchored to the World)...
a139583627320d8a6356629132ebce27f0164a1b
8a33857e67de2bcdd6ab67dd69fa21debb3810fe
/webserver/endpoints/annotations.py
7ea5a34e729990a2afc9b09810160fdb97f235c6
[ "MIT" ]
permissive
sacdallago/bio_embeddings
78c5f11e852c46bb98c78633f529f53457639c7a
efb9801f0de9b9d51d19b741088763a7d2d0c3a2
refs/heads/develop
2023-05-10T18:49:39.640162
2022-08-04T07:43:37
2022-08-04T07:43:37
180,608,802
383
60
MIT
2023-02-16T01:41:53
2019-04-10T15:17:42
HTML
UTF-8
Python
false
false
8,897
py
annotations.py
from itertools import groupby from flask import request, abort from flask_restx import Resource from webserver.endpoints import api from webserver.endpoints.request_models import sequence_post_parameters_annotations, sequence_get_parameters_annotations, \ residue_landscape_post_parameters from webserver.endpoints....
53a40395ca2ac795b2ea3872ff2e54d29c976598
c1b77c0b1630c2e319e7ba7782a744f4ac867f7d
/gpytorch/functions/_log_normal_cdf.py
8662b7db0a1cf59d8571862d10a71e1eb8e6341a
[ "MIT", "Python-2.0" ]
permissive
cornellius-gp/gpytorch
6b9ab969b2888fa7f27f236a1b20041f00cc0253
5e93d2c04ac0634a7aeea9fd964be529bb250888
refs/heads/master
2023-08-31T21:13:02.741585
2023-08-25T19:24:53
2023-08-25T19:24:53
93,868,719
3,182
578
MIT
2023-09-13T01:06:00
2017-06-09T14:48:20
Python
UTF-8
Python
false
false
3,778
py
_log_normal_cdf.py
#!/usr/bin/env python3 import math import torch from torch.autograd import Function from torch.distributions import Normal class LogNormalCDF(Function): @staticmethod def forward(ctx, z): c = torch.tensor( [ 0.00048204, -0.00142906, 0.00132...
c7816e3f35de86a0f7dcd897c491a6d062368f37
f3806d9fb54773908cd9704121a543b114470aca
/angr/engines/soot/expressions/cast.py
2b2752aee019cb04b5dfcd2a94a4c4896b3d4831
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
753
py
cast.py
import logging from archinfo import ArchSoot from .base import SimSootExpr from ..values.thisref import SimSootValue_ThisRef l = logging.getLogger("angr.engines.soot.expressions.cast") class SimSootExpr_Cast(SimSootExpr): def _execute(self): # get value local = self._translate_value(self.expr.v...
71dc65ca3382d84b385da54a3cfbb3cb934d01b6
80f94bea418d7956df1ba19d4d6a1d7715a94ade
/lib/galaxy/version.py
40152f5d6ac1ac1649af4fc9fbcc7190376ac4c7
[ "CC-BY-2.5", "MIT", "CC-BY-3.0", "AFL-3.0" ]
permissive
galaxyproject/galaxy
5748409eb6693b1611f289d164f85e20c3237495
b9ae7a16ba0465995e880ae9701b7e87226b9bab
refs/heads/dev
2023-08-28T22:35:51.248138
2023-08-26T08:02:33
2023-08-26T08:02:33
31,211,061
1,277
1,137
NOASSERTION
2023-09-14T19:39:01
2015-02-23T14:18:06
Python
UTF-8
Python
false
false
119
py
version.py
VERSION_MAJOR = "23.2" VERSION_MINOR = "dev0" VERSION = VERSION_MAJOR + (f".{VERSION_MINOR}" if VERSION_MINOR else "")
b4f6fc1b241fa076a5568672002c3a4f30539991
99199db3f78a344e72b281c71c690518ae07375a
/octavia/controller/worker/v2/flows/amphora_flows.py
54df1ff8f919c73a2e2cc977214e06c8fdd21c2a
[ "Apache-2.0" ]
permissive
openstack/octavia
3faf2afe2ade5bd3978bb3a0558d2eeefc648ba2
0426285a41464a5015494584f109eed35a0d44db
refs/heads/master
2023-09-01T20:12:48.272344
2023-08-31T17:24:04
2023-08-31T17:24:04
21,018,188
147
180
Apache-2.0
2021-03-30T12:34:30
2014-06-19T22:47:19
Python
UTF-8
Python
false
false
28,343
py
amphora_flows.py
# Copyright 2015 Hewlett-Packard Development Company, L.P. # Copyright 2020 Red Hat, 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/licens...
2131e8c36d58b791548150dcd22193222e1f90a2
aee26a4c731a84481a499679c3d4cef9ec954aed
/tacker/api/vnflcm/v1/sync_resource.py
f9219bfef4c7b1d11b93049eb8d29097a81d87c7
[ "Apache-2.0" ]
permissive
openstack/tacker
6976cbee3afadfd9390849b56da2837feb93e912
9c7918f0b501cdeaffae40f585b76fc92b8e196e
refs/heads/master
2023-09-04T01:22:43.106241
2023-08-31T00:06:42
2023-08-31T00:42:20
21,259,951
125
172
Apache-2.0
2021-05-09T06:13:08
2014-06-27T01:11:56
Python
UTF-8
Python
false
false
5,064
py
sync_resource.py
# # 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, software # ...
42c5a61d98a9f27253d15a2169acf84bb0ec4094
3c6b36eb1f4f9760c52903f6d0ec4a501f948c90
/osp/fields/models/field_index.py
814a1e567b9999a7b15b90965a046764c1d9ccc5
[ "Apache-2.0" ]
permissive
davidmcclure/open-syllabus-project
38444249af845013e3f281a7a713dca83159c56e
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
refs/heads/master
2021-06-30T21:47:07.636558
2021-06-27T15:15:35
2021-06-27T15:15:35
50,152,020
220
14
Apache-2.0
2021-06-27T15:11:15
2016-01-22T02:29:57
Python
UTF-8
Python
false
false
1,409
py
field_index.py
from osp.common import config from osp.common.mixins.elasticsearch import Elasticsearch from osp.common.utils import query_bar from osp.fields.models import Field from clint.textui import progress class Field_Index(Elasticsearch): es_index = 'field' es_mapping = { '_id': { 'index': 'n...
fa6d26001faf15b30cbb7a8203fa2eccd1381ee5
d8aabbc108b074817cb05eba4acff68d4f5c2d6c
/test/zmq/zmq_watcher_server.py
5a9d698027571e2231d1b5dbf0430526507e97c2
[ "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
256
py
zmq_watcher_server.py
from tensorwatch.watcher import Watcher import time from tensorwatch import utils utils.set_debug_verbosity(10) def main(): watcher = Watcher() for i in range(5000): watcher.observe(x=i) # print(i) time.sleep(1) main()
4e7cb3696feec22022155ded3ab3f54433682725
abe6c00f9790df7e6ef20dc02d0b1b225b5020cb
/tests/agent/test_agent_run_cancellation.py
f13345e6ee77c4e1e360d41939f922819c8a490a
[ "Apache-2.0" ]
permissive
PrefectHQ/prefect
000e6c5f7df80f76a181f0a30f8661c96417c8bd
2c50d2b64c811c364cbc5faa2b5c80a742572090
refs/heads/main
2023-09-05T20:25:42.965208
2023-09-05T18:58:06
2023-09-05T18:58:06
139,199,684
12,917
1,539
Apache-2.0
2023-09-14T20:25:45
2018-06-29T21:59:26
Python
UTF-8
Python
false
false
23,389
py
test_agent_run_cancellation.py
from typing import Generator from unittest.mock import call import anyio import pytest from prefect.agent import PrefectAgent from prefect.blocks.core import Block from prefect.client.orchestration import PrefectClient from prefect.exceptions import InfrastructureNotAvailable, InfrastructureNotFound from prefect.infr...
e4e37dead42be51dd807ff9adbd60a5f678a22b7
444a9480bce2035565332d4d4654244c0b5cd47b
/research/cv/centernet/src/__init__.py
6fd650c3f7d374ff3f74402512b8283c24e3b86c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
1,493
py
__init__.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...
8b3f787fb9f2cf34dfcdf8d29f9badb1366101c2
76f23cc69dc10c44bc7cf00b78e37db04c7a9c45
/datalad/support/third/loris_token_generator.py
3118f5b8611103fa0991a54a76ea4dca71b50e37
[ "BSD-3-Clause", "MIT" ]
permissive
datalad/datalad
2d9c247344d340325ba84e7ab674ac320e57f30c
40332b5ad25bf8744f7399f6c3575f7d28f71384
refs/heads/maint
2023-09-04T11:03:02.264714
2023-08-10T15:56:19
2023-08-10T15:56:19
14,052,034
453
134
NOASSERTION
2023-09-14T19:10:18
2013-11-01T19:40:08
Python
UTF-8
Python
false
false
1,457
py
loris_token_generator.py
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 et: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ### ...
c167ec964d7da124917bae7fe6b83946dbe9f330
083312af3c596aad1a5123fb66bf73ca9907a928
/sqlglot/dataframe/sql/readwriter.py
080448622bf2bc651864682b4d5f5d8a34efcadf
[ "MIT" ]
permissive
tobymao/sqlglot
8f7a6da463c765d39f75390cddafbd9a0b3076a9
32d8e5423a7d7e1b56805fd0020b4aac3ce15d84
refs/heads/main
2023-09-01T05:18:17.148809
2023-09-01T01:53:06
2023-09-01T01:53:17
347,277,349
3,617
365
MIT
2023-09-14T21:43:44
2021-03-13T05:01:56
Python
UTF-8
Python
false
false
3,456
py
readwriter.py
from __future__ import annotations import typing as t import sqlglot from sqlglot import expressions as exp from sqlglot.helper import object_to_dict if t.TYPE_CHECKING: from sqlglot.dataframe.sql.dataframe import DataFrame from sqlglot.dataframe.sql.session import SparkSession class DataFrameReader: d...
4d423d7f4dfaa991fa3cca441dee3f44c6acdda0
8cca481c8dd508012aa794e2f9a07e11c3706a87
/presidio-analyzer/setup.py
5329a91d8bacc5c366e3d4ae03f3d5b2d236d008
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "BSD-3-Clause", "Unlicense", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "CNRI-Python", "MIT", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/presidio
174472891e241e292982eee26a666d71ca263d42
3effc1467b8714714d5112ef7b627889507ea83d
refs/heads/main
2023-08-15T20:14:00.962803
2023-08-14T19:13:49
2023-08-14T19:13:49
132,129,752
2,092
412
MIT
2023-09-13T18:17:58
2018-05-04T11:08:58
Python
UTF-8
Python
false
false
1,784
py
setup.py
"""Setup.py for Presidio Analyzer.""" import os.path from os import path import setuptools __version__ = "" this_directory = path.abspath(path.dirname(__file__)) parent_directory = os.path.abspath(os.path.join(this_directory, os.pardir)) with open(path.join(this_directory, "README.MD"), encoding="utf-8") as f: l...
6d7f4f5593501f0f613269fa01021a349ad01e8b
b60686a2e351a756f249e0d9faab8fe154a08f11
/examples/shouldi/shouldi/python/safety.py
37b73cb45fdcc4c775cb6a261846a74e1813b98d
[ "MIT", "LicenseRef-scancode-generic-export-compliance", "Apache-2.0", "Python-2.0" ]
permissive
intel/dffml
86483b47229b9b62c9f8dfef51491aa02563347e
7d381bf67a72fe1ecb1012393d5726085564cb0e
refs/heads/main
2023-08-28T00:35:04.219193
2023-06-06T18:29:16
2023-06-06T18:29:16
149,512,216
237
204
MIT
2023-05-05T15:39:35
2018-09-19T21:06:34
Python
UTF-8
Python
false
false
575
py
safety.py
import sys import json import asyncio from dffml import op @op async def safety_check(package: str, version: str) -> int: pinned = f"{package}=={version}" proc = await asyncio.create_subprocess_exec( sys.executable, "-m", "safety", "check", "--stdin", "--json"...
36abe75ad5a86997edf03349de8b126c30c14f11
c739a77733f60c12eff919e0cd9e4937cb063450
/husky_control/launch/teleop_joy.launch.py
964bd71cdb3ac6493e9c428460357611ecdbdd2f
[]
no_license
husky/husky
b3661befb7ae88087eb16ee77af8ce699cbf48a8
63981e8df2023d3f2c437409f2b8b68588a33abe
refs/heads/foxy-devel
2023-08-16T19:58:31.541727
2023-04-18T23:55:58
2023-04-18T23:55:58
32,733,110
436
460
null
2023-08-03T03:10:14
2015-03-23T13:14:57
C++
UTF-8
Python
false
false
1,078
py
teleop_joy.launch.py
from launch import LaunchContext, LaunchDescription from launch.substitutions import EnvironmentVariable, PathJoinSubstitution from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare def generate_launch_description(): lc = LaunchContext() joy_type = EnvironmentVariable('CPR_JO...
f5bdfb63bf6ab7830b3ec3f021ee3d7e72de420c
e84637da2fbbd9cda34fac10a1024c8a413d1690
/radian/latex/latex_symbols.py
5c44ea0bf2996b2374a6a9f93995e85f266ac7e7
[ "MIT" ]
permissive
randy3k/radian
5162bb6625ea2305d7439ba4942b13762e70fdd9
fb643c4c4dad33aa674eb09407c0caa6e41c2d42
refs/heads/master
2023-08-27T01:16:36.647660
2023-08-26T01:04:05
2023-08-26T01:04:05
86,867,223
1,495
80
MIT
2023-08-26T01:04:06
2017-03-31T23:13:43
Python
UTF-8
Python
false
false
64,127
py
latex_symbols.py
# This Python file uses the following encoding: utf-8 from __future__ import unicode_literals latex_symbols = [ ("\\1/8", u"⅛"), ("\\bscra", u"𝓪"), ("\\guilsinglright", u"›"), ("\\blacktriangleright", u"▶"), ("\\bisansc", u"𝙘"), ("\\^4", u"⁴"), ("\\Re", u"ℜ"), ("\\pitchfork", u"⋔"), ("\\bisanskapp...
5332ece181e5eedc35195482d66c017f84a9a789
0be19cd3a3ec44141f03dd523da6fb770b08f569
/test/smart_compose/train/test_data_fn.py
c63e2330a779344b3cec8ad3744cd275db8af9f2
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
linkedin/detext
f2cdace77d4b3c6cc88d3992a67dde305e2b8a52
671d43c5ffc83cae635174ed15c58d0bc84b76ef
refs/heads/master
2023-09-01T00:53:57.571516
2023-03-02T22:27:06
2023-03-02T22:27:06
234,432,813
1,289
151
BSD-2-Clause
2023-03-02T22:03:34
2020-01-16T23:38:58
Python
UTF-8
Python
false
false
2,675
py
test_data_fn.py
from os.path import join as path_join import tensorflow as tf from official.utils.misc import distribution_utils from smart_compose.train import data_fn from smart_compose.utils import vocab_utils from smart_compose.utils.parsing_utils import InputFtrType, iterate_items_with_list_val from smart_compose.utils.testing....
375839ea4e9dc109b9f6577aa8c299ab84e690ef
9efca95a55cb4df52d895d42f1ec10331516a734
/tools/c7n_gcp/tests/test_memstore.py
6bbf3663accdc725214b5e9cd0f66be8bb2dcd01
[ "Apache-2.0" ]
permissive
cloud-custodian/cloud-custodian
519e602abe00c642786441b64cc40857ef5bc9de
27563cf4571040f923124e1acb2463f11e372225
refs/heads/main
2023-09-04T10:54:55.963703
2023-09-01T17:40:17
2023-09-01T17:40:17
52,837,350
3,327
1,096
Apache-2.0
2023-09-14T14:03:30
2016-03-01T01:11:20
Python
UTF-8
Python
false
false
872
py
test_memstore.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from gcp_common import BaseTest class RedisInstanceTest(BaseTest): def test_redis_instance_query(self): project_id = 'gcp-lab-custodian' factory = self.replay_flight_data('test_redis_instance_list_query', project_id=pr...
085f0f1f14d621f1d0702f2d6fbe1a3c3eced6ec
483424524c70852cc043e0d77bf1b757a61d797a
/deepspeed/ops/transformer/inference/op_binding/base.py
5a997f95d5cc53e3323180ad7cd70ed9e8210a1b
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/DeepSpeed
810f1af320020718d0794f5a97cde6f1d17af122
55d9964c59c0c6e23158b5789a5c36c28939a7b0
refs/heads/master
2023-09-06T07:40:52.145692
2023-09-05T23:51:23
2023-09-05T23:51:23
235,860,204
27,557
3,347
Apache-2.0
2023-09-14T21:38:46
2020-01-23T18:35:18
Python
UTF-8
Python
false
false
536
py
base.py
# Copyright (c) Microsoft Corporation. # SPDX-License-Identifier: Apache-2.0 # DeepSpeed Team import torch from ..config import DeepSpeedInferenceConfig from deepspeed.ops.op_builder import InferenceBuilder class BaseOp(torch.nn.Module): inference_module = None def __init__(self, config: DeepSpeedInferenc...
e4b13f88e7c938f35defe1743b678f4da3d6f96d
b43e0384ec4bfacec2571a2bb41ce563267db449
/jesse/models/SpotExchange.py
ce737409528d22fb62de1cae47930b5b9309e22d
[ "MIT" ]
permissive
jesse-ai/jesse
55b73448b767492a20f8bc56c28306a1a24f8599
fadb03b5fcc06f0655c6a5d877435fb872a97c5e
refs/heads/master
2023-08-24T15:28:52.875208
2023-08-24T13:53:31
2023-08-24T13:53:31
156,847,937
5,259
722
MIT
2023-09-10T13:51:26
2018-11-09T10:38:44
Python
UTF-8
Python
false
false
5,762
py
SpotExchange.py
import jesse.helpers as jh from jesse.enums import sides from jesse.exceptions import InsufficientBalance from jesse.models import Order from jesse.models.Exchange import Exchange from jesse.enums import order_types from jesse.utils import sum_floats, subtract_floats class SpotExchange(Exchange): def __init__(sel...
b03ef66be61677f591c6e209f7f1892d02c4db71
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoTracker/MkFitCore/standalone/plotting/makeBenchmarkPlots.py
0fb60aa57b63186c3c13afc03cb2f381d6e4252f
[ "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
6,509
py
makeBenchmarkPlots.py
import os.path, glob, sys import ROOT import array import math # N.B.: Consult ./xeon_scripts/benchmark-cmssw-ttbar-fulldet-build.sh for info on nTHs, nVUs, and text file names def run(): # command line input arch = sys.argv[1] # SNB, KNL, SKL-SP sample = sys.argv[2] build = sys.argv[3] # BH, STD,...
9497567c1d8dff5a2f1af1b2a27184426110fb65
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/dts/airbyte/airbyte-integrations/connectors/source-okta/unit_tests/test_streams.py
35b8b8fd637535e5b51053ea2c4e6bdb215ef72d
[ "MIT", "Apache-2.0", "BSD-3-Clause", "Elastic-2.0" ]
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
21,925
py
test_streams.py
# # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # import datetime import time from abc import ABC from http import HTTPStatus from unittest.mock import MagicMock import pytest import requests from airbyte_cdk.models import SyncMode from source_okta.source import ( CustomRoles, GroupMembers, Gro...
0229c825933aa95325771d8d7b583593e3d9ff60
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/mandelbrot-set-python/viewport.py
33918b40cf1311cd567961d382b315c5973a7033
[ "MIT" ]
permissive
realpython/materials
cd2f548276be2c82f134ca03eadb1cd279e0f26e
d2d62756d3854f54a12a767f2bf9470486c0ceef
refs/heads/master
2023-09-05T22:12:29.806738
2023-08-31T20:56:28
2023-08-31T20:56:28
132,374,697
4,678
6,482
MIT
2023-09-12T22:22:06
2018-05-06T20:46:18
HTML
UTF-8
Python
false
false
1,009
py
viewport.py
# viewport.py from dataclasses import dataclass from PIL import Image @dataclass class Viewport: image: Image.Image center: complex width: float @property def height(self): return self.scale * self.image.height @property def offset(self): return self.center + complex(-se...
445c6231f1d2613e0ae0c4b8247facf78780cdec
bee77315d08def61c1155930285211ef3d8d7654
/nevergrad/functions/pyomo/test_core.py
ad48749c5147f5f48284017905580bfaeac617f2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
facebookresearch/nevergrad
d2da592c1bf3b7c398392b3d39217a3753a4912c
daddb18184bf64ba9082ecc55a56e07429a23103
refs/heads/main
2023-09-04T10:53:42.903505
2023-08-30T17:10:37
2023-08-30T17:10:37
158,468,845
3,526
367
MIT
2023-09-11T13:37:36
2018-11-21T00:33:17
Python
UTF-8
Python
false
false
3,463
py
test_core.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import typing as tp import os import numpy as np import pyomo.environ as pyomo import nevergrad as ng from . import core def test_concrete_...
a609c41d0c17724bf99e424ffefa2a07e91fee94
57c77e6ca4867fe03f733c4b0778491c7042154b
/rlcard/envs/env.py
93e23954878d8014835ae2da8313488634875b28
[ "MIT" ]
permissive
datamllab/rlcard
60754423478a8854c0d3af6e3766c1c6f6ffb855
7fc56edebe9a2e39c94f872edd8dbe325c61b806
refs/heads/master
2023-08-17T06:01:08.615989
2023-07-11T22:19:45
2023-07-11T22:19:45
206,562,316
2,447
639
MIT
2023-07-11T22:19:46
2019-09-05T12:48:01
Python
UTF-8
Python
false
false
8,525
py
env.py
from rlcard.utils import * class Env(object): ''' The base Env class. For all the environments in RLCard, we should base on this class and implement as many functions as we can. ''' def __init__(self, config): ''' Initialize the environment Args: config (dict): A co...
7dc67dc72fb23112819c85711096cc159aefad70
12fa6ac5fb9472acbe2eb1871d3bfaa893940335
/prototype_source/maskedtensor_sparsity.py
74024f8e229dbbc75c1313ecf74fd6133cb5a2ba
[ "BSD-3-Clause" ]
permissive
pytorch/tutorials
e6670dc301fd48edbca5a554df2af44e016712c7
32d834139b8627eeacb5fb2862be9f095fcb0b52
refs/heads/main
2023-08-31T19:27:17.448171
2023-08-28T15:45:25
2023-08-28T15:45:25
69,709,572
7,919
4,731
BSD-3-Clause
2023-09-14T17:25:49
2016-09-30T23:48:36
Python
UTF-8
Python
false
false
12,377
py
maskedtensor_sparsity.py
# -*- coding: utf-8 -*- """ (Prototype) MaskedTensor Sparsity ================================= """ ###################################################################### # Before working on this tutorial, please make sure to review our # `MaskedTensor Overview tutorial <https://pytorch.org/tutorials/prototype/masked...
23fb7bdbf7e369d5b31fcbf7b84da4e2b26e1ef4
6c628b7b72eef4dbcc982803eb18c20a01d50a25
/brownie/network/alert.py
cfcf6611449a9381bad29fb5d515d52a11b78bf7
[ "MIT" ]
permissive
eth-brownie/brownie
174c5cb549427f4814fa5a1dc9ede225acc983f8
bc7b511583060fdaff1d4b5269aedcc1cb710bc6
refs/heads/master
2023-09-04T15:53:39.804726
2023-06-12T07:27:29
2023-06-12T07:27:29
155,913,585
2,408
518
MIT
2023-09-06T14:20:17
2018-11-02T19:39:26
Python
UTF-8
Python
false
false
4,453
py
alert.py
#!/usr/bin/python3 import time from threading import Thread from typing import Callable, Dict, List, Tuple, Union from brownie.utils import color __console_dir__ = ["Alert", "new", "show", "stop_all"] _instances = set() class Alert: """Setup notifications and callbacks based on state changes to the blockchain...
25222ce4cb3a62c4d9835074a32844f6e4656f6d
e3cfab409afb5ff9a0b3812bf848be6ca9239cee
/pygeodesy/dms.py
7562ba9d748ab7dcfd7e751251882adc74f57dd7
[ "MIT" ]
permissive
mrJean1/PyGeodesy
565266a4f7f6cda5abe98e915bbd868f6cbe1760
eba35704b248a7a0388b30f3cea19793921e99b7
refs/heads/master
2023-08-23T13:58:20.069917
2023-08-20T18:50:45
2023-08-20T18:50:45
68,028,481
283
66
null
2022-04-09T00:40:52
2016-09-12T16:49:10
Python
UTF-8
Python
false
false
44,267
py
dms.py
# -*- coding: utf-8 -*- u'''Parsers and formatters of angles in degrees, minutes and seconds or radians. Functions to parse and format bearing, compass, lat- and longitudes in various forms of degrees, minutes and seconds with or without degrees, minute and second symbols plus a compass point suffix, including parsi...
70d1cc8c75bf20ef22f7c9be0f275cb45ab26e42
2ad93a1cf25a580fe980482d2d17a657de3b2523
/django-stubs/contrib/postgres/functions.pyi
414a0998af303b0cacd426adddf647eb84c1ab5c
[ "MIT" ]
permissive
typeddjango/django-stubs
f35dfcb001e54694a0a1e8c0afcc6e6a3d130c32
0117348c3c7713f25f96b46e53ebdeed7bdba544
refs/heads/master
2023-08-25T19:42:52.707151
2023-08-23T15:13:25
2023-08-23T15:13:25
142,779,680
1,133
376
MIT
2023-09-13T19:05:06
2018-07-29T17:08:50
Python
UTF-8
Python
false
false
95
pyi
functions.pyi
from django.db.models import Func class RandomUUID(Func): ... class TransactionNow(Func): ...
d59596434f5cbc84e9dbf61313ccfd4398712683
a41e1498e3c080f47abd8e8e57157548df3ebbf1
/pandas/tests/scalar/timestamp/test_constructors.py
b65b34f7482608607196e361d7fd1613e55eb7e2
[ "BSD-3-Clause" ]
permissive
pandas-dev/pandas
e7e639454a298bebc272622e66faa9829ea393bb
c7325d7e7e77ecb4a4e57b48bc25265277c75712
refs/heads/main
2023-09-01T12:42:07.927176
2023-09-01T11:14:10
2023-09-01T11:14:10
858,127
36,166
18,728
BSD-3-Clause
2023-09-14T21:18:41
2010-08-24T01:37:33
Python
UTF-8
Python
false
false
32,760
py
test_constructors.py
import calendar from datetime import ( date, datetime, timedelta, timezone, ) import zoneinfo import dateutil.tz from dateutil.tz import tzutc import numpy as np import pytest import pytz from pandas._libs.tslibs.dtypes import NpyDatetimeUnit from pandas.compat import PY310 from pandas.errors import O...
d42eeeb18708f00b59d8a04af54b8fba232be10c
150b528ec8b413c33333a6d03e66a41a695e5e5f
/dcdownloader/utils.py
d9e8a00d4a15bd5a0d5d60e625302bbb15a0aa3b
[ "MIT" ]
permissive
dev-techmoe/python-dcdownloader
c37dd3970ff332f525c0ddd6a6d0fc35b9ce9787
cd9aeec2b15c608aae8345f4c1b4c29890df8e13
refs/heads/dev
2021-04-09T13:22:05.598246
2019-11-02T05:10:28
2019-11-02T05:10:28
125,320,296
184
27
MIT
2021-04-02T05:59:19
2018-03-15T06:06:46
Python
UTF-8
Python
false
false
2,790
py
utils.py
import re, os, traceback from dcdownloader import config, title def decode_packed_codes(code): def encode_base_n(num, n, table=None): FULL_TABLE = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' if not table: table = FULL_TABLE[:n] if n > len(table): ...
42d77384e8794fde73a0fdd228a8f6f948e415a8
85373d45a83e4096affafa4f4e5b400787413e57
/test/programytest/storage/stores/file/store/test_properties.py
c69d7606014bac93ecabe9f05c2c8286d6130f4f
[ "MIT" ]
permissive
keiffster/program-y
a02bb9d8278835547cc875f4f9cd668d5b1f44da
fc7b0a3afa4fa6ed683e0c817a9aa89f9543bb20
refs/heads/master
2023-08-23T13:55:39.255535
2022-12-13T09:51:57
2022-12-13T09:51:57
74,462,571
379
173
NOASSERTION
2023-05-23T00:51:21
2016-11-22T10:43:41
Python
UTF-8
Python
false
false
2,375
py
test_properties.py
import os import os.path from unittest.mock import patch from programy.mappings.properties import PropertiesCollection from programy.storage.stores.file.config import FileStorageConfiguration from programy.storage.stores.file.engine import FileStorageEngine from programy.storage.stores.file.store.properties import File...
594e8a9941a5471133ef9b981a67f3f4365209c3
017b1261bac4a6ed7e613474f328239188366491
/src/rpdk/core/contract/suite/hook/hook_handler_commons.py
a50dee41e335e036a782fc16bd965f5e309eddb8
[ "Apache-2.0" ]
permissive
aws-cloudformation/cloudformation-cli
bd4834bfe8b39c9fc926f9c77710b2c6d1b167c1
75bed278bcec94739e4c132e2b3d88a4fddb5bf4
refs/heads/master
2023-08-07T18:24:56.153849
2023-07-31T22:54:23
2023-07-31T22:54:23
143,929,054
270
164
Apache-2.0
2023-08-31T16:06:04
2018-08-07T21:33:19
Python
UTF-8
Python
false
false
3,979
py
hook_handler_commons.py
# pylint: disable=import-outside-toplevel import logging import pytest from rpdk.core.contract.hook_client import HookClient from rpdk.core.contract.interface import HandlerErrorCode, HookStatus from rpdk.core.contract.suite.contract_asserts_commons import failed_event LOG = logging.getLogger(__name__) TARGET_NAME_...