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
c7add5ebe503f3e1836aba75218a0d048afee9d2
39568e19301a7a112398be542154950af25591de
/hw/ip/otbn/dv/otbnsim/sim/dmem.py
f3bc1cf3a049aa484746167c3b4e95834e19e71a
[ "CC-BY-4.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lowRISC/opentitan
493995bc7cf7cb3aee486a5203af3fd62bba3bfc
51f6017b8425b14d5a4aa9abace8fe5a25ef08c8
refs/heads/master
2023-08-31T22:05:09.425796
2023-08-14T14:52:15
2023-08-31T20:31:13
204,516,692
2,077
634
Apache-2.0
2023-09-14T21:16:21
2019-08-26T16:30:16
SystemVerilog
UTF-8
Python
false
false
9,326
py
dmem.py
# Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 import struct from typing import Dict, List, Sequence, Optional from shared.mem_layout import get_memory_layout from .trace import Trace class TraceDmemStore(Trace): ...
a7c13246d52f1d80d1ddfeb43a035e0a013a7501
eabd9f751ab399f1217a5dec0ce44eb8c434b143
/pyzipper/zipfile_aes.py
ddfd84a1c83b2676b238ff0e92364ea51b9eead3
[ "MIT" ]
permissive
danifus/pyzipper
a1500eb77339fc5094b19e19d269a43f8afc2462
35825ac8fd9649ca5dccf0c2f0c67ee49d113704
refs/heads/master
2023-05-01T12:23:05.473800
2022-07-31T09:50:34
2022-07-31T09:50:34
156,195,471
108
22
NOASSERTION
2023-09-06T13:48:08
2018-11-05T09:54:54
Python
UTF-8
Python
false
false
11,589
py
zipfile_aes.py
import struct from Cryptodome.Protocol.KDF import PBKDF2 from Cryptodome.Cipher import AES from Cryptodome.Hash import HMAC from Cryptodome.Hash.SHA1 import SHA1Hash from Cryptodome.Util import Counter from Cryptodome import Random from .zipfile import ( ZIP_BZIP2, ZIP_LZMA, BadZipFile, BaseZipDecrypt...
e9da011923ec84e89ffa3d648ddf6b211b6b1665
7378aaee27ef676db95dce7702c48f8643c63313
/grow/common/markdown_extensions.py
f5b5ceaedcb60d65c3a13aa23901d53b034f6b84
[ "MIT" ]
permissive
grow/grow
323fa25c7690643bf170cc4558fffdfbd406ac76
17471c436621ebfd978b51225fa4de05367a53e1
refs/heads/main
2023-06-15T09:51:08.288251
2022-07-21T16:19:33
2022-07-21T16:19:33
12,899,663
352
56
MIT
2023-02-08T02:35:36
2013-09-17T15:51:40
Python
UTF-8
Python
false
false
7,074
py
markdown_extensions.py
"""Extension for parsing markdown documents.""" import json import re from markdown import extensions from markdown import preprocessors from markdown.extensions import toc from protorpc import messages from protorpc import protojson from pygments import highlight from pygments import lexers from pygments.formatters i...
aff7e9eea4f1a98841b93ffbf8f363ad34ff013d
31aee922759bcfd2bcfb56a81f814d52ebcd3dcc
/tests/unit/test_device.py
2a3f9a0a26192fae3139e29042b683e0e548bdf1
[ "Apache-2.0" ]
permissive
Juniper/py-junos-eznc
2eba47a5feb440bc46163e1bc709138d09a568f5
e19a7683be1da67140798987ac42e8c82041c393
refs/heads/master
2023-09-04T10:26:41.094991
2023-08-02T04:06:38
2023-08-02T04:06:38
13,530,047
628
384
Apache-2.0
2023-09-12T03:56:01
2013-10-12T22:21:38
Python
UTF-8
Python
false
false
39,085
py
test_device.py
try: import unittest2 as unittest except ImportError: import unittest from nose.plugins.attrib import attr from mock import MagicMock, patch, mock_open, call import os from lxml import etree import sys import json from ncclient.manager import Manager, make_device_handler from ncclient.transport import SSHSessi...
1fa60e05e89b3d582d562d79e7e632dc97b5911f
cc127478f47a3af9d9ac3d4418cd2643ed510ded
/nlp_architect/data/cdc_resources/gen_scripts/create_wiki_dump.py
68715ef0dd7554d2b91985337c6bc5171702be72
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
IntelLabs/nlp-architect
3830c8e778081246b6b04b8462b30f44f66d70fb
88b323678642d046415768ef7764523003000ed7
refs/heads/master
2023-09-03T21:02:10.518747
2022-11-07T16:21:47
2022-11-07T16:21:47
133,867,923
459
85
Apache-2.0
2022-11-07T15:30:53
2018-05-17T21:00:13
Python
UTF-8
Python
false
false
4,226
py
create_wiki_dump.py
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
5fd45efe2cfbcad272d0fb3fe16e4cfb2815e5df
76fbeba0ba16382ca9ae4eb5d649dfb183040e96
/skforecast/ForecasterAutoregMultiVariate/tests/test_predict.py
74d5fa7676ea50a791dc486d330240b567b1825b
[ "BSD-3-Clause" ]
permissive
JoaquinAmatRodrigo/skforecast
901a2957f834d777fced96150d0dea9975b6d7e2
5f88e3acbef73d878920b7f2399db707ff2871b2
refs/heads/master
2023-08-31T07:48:14.299062
2023-07-28T19:48:21
2023-07-28T19:48:21
337,705,968
604
80
BSD-3-Clause
2023-09-09T16:06:59
2021-02-10T11:40:34
Jupyter Notebook
UTF-8
Python
false
false
17,408
py
test_predict.py
# Unit test predict ForecasterAutoregMultiVariate # ============================================================================== import re import pytest from pytest import approx import numpy as np import pandas as pd from skforecast.ForecasterAutoregMultiVariate import ForecasterAutoregMultiVariate from sklearn.comp...
58709cfec3f602fb2fde0f21667c27dbac2dd87e
643410b6ed94f3b11fb7fcab1dcb9f9f9532a8bb
/rolepermissions/__init__.py
356ebf533a843502af5bc5285c9301688329f534
[ "MIT" ]
permissive
vintasoftware/django-role-permissions
51158a4c550fbce93b088a2563d0dbc93cdd962b
e74613d78d188788ee4c5c84b99341648e06e78c
refs/heads/master
2023-09-01T19:12:34.472365
2023-06-09T20:27:07
2023-06-09T20:27:07
13,388,701
666
130
MIT
2023-06-09T20:27:08
2013-10-07T16:13:02
Python
UTF-8
Python
false
false
130
py
__init__.py
__version__ = '3.2.0' import django if django.VERSION < (3, 2): default_app_config = 'rolepermissions.apps.RolePermissions'
d136b98d1ea8f0c08ea8072a02ab9588b03fe1c0
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/kaleidescape/test_init.py
d0826f4714af760cbc669a50ec87573ad1a103ca
[ "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
1,837
py
test_init.py
"""Tests for Kaleidescape config entry.""" from unittest.mock import AsyncMock from homeassistant.components.kaleidescape.const import DOMAIN from homeassistant.config_entries import ConfigEntryState from homeassistant.core import HomeAssistant from homeassistant.helpers import device_registry as dr from . import MO...
53cb4ff20abbd3263f74af00713df8c4877da807
8e0f9a928e7e7ca01925ece31d1e581b0b8862a8
/testing/app/purchase.py
9021aaf363c80a9ffc7e14c81d8b7839af1b044c
[ "BSD-2-Clause" ]
permissive
proofit404/dependencies
b697faddefababe7e252a36c38bb9d1080325dc6
0e6709e2010148132965c7e6309397434aebd6a4
refs/heads/release
2023-08-18T13:45:41.041414
2022-11-01T19:51:33
2022-11-01T19:51:33
50,125,353
187
9
BSD-2-Clause
2023-04-04T00:04:03
2016-01-21T17:47:25
Python
UTF-8
Python
false
false
353
py
purchase.py
class AbstractNotificationService: """Service interface declaration.""" pass class AbstractPaymentService: """Service interface declaration.""" pass class SMSService(AbstractNotificationService): """Service implementation.""" pass class PaypalService(AbstractPaymentService): """Serv...
53daa51e0a2bb273303641cd56d231fe73f49f3f
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/renderer/modules/sanitizer_api/build_corpus.py
49792626d9efca908e4a6331aab59493919fa47d
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
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,267
py
build_corpus.py
#!/usr/bin/env python # Copyright 2021 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import os import re def basename(path): return os.path.splitext(os.path.basename(path))[0] def char_escape(c): # Escaping suitabl...
7a699bb81e9b9652baf9a288f1bd2fcfd2a70fe7
ed865aed525556fd7aa5ac5a024af720de8438e3
/cli/src/pcluster/templates/cdk_builder.py
d5a76ac99b5fdc125f340af6c5b56def2bdce98b
[ "Python-2.0", "GPL-1.0-or-later", "MPL-2.0", "MIT", "LicenseRef-scancode-python-cwi", "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT-0", "BSD-2-Clause" ]
permissive
aws/aws-parallelcluster
7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff
a213978a09ea7fc80855bf55c539861ea95259f9
refs/heads/develop
2023-09-05T15:12:18.533270
2023-09-05T14:38:59
2023-09-05T14:38:59
19,718,034
520
226
Apache-2.0
2023-09-14T15:56:30
2014-05-12T22:42:19
Python
UTF-8
Python
false
false
3,232
py
cdk_builder.py
# Copyright 2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
136d29d76340600bd749a8bfe9f6ace4dd6e38ab
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/ops-pkg/src/genie/libs/ops/route_policy/ios/tests/route_policy_output.py
3d68c6750e4a5c2e7c4c73878c0a09f40ef58410
[ "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
7,951
py
route_policy_output.py
''' RoutePolicy Genie Ops Object Outputs for IOS ''' class RoutePolicyOutput(object): showRouteMapAll = {'test': {'statements': {'10': {'actions': {'clause': True, ...
c7c354473bc1c0f6fe26f93fb2b4179b9bac0c99
2337351b228818e41be3002bd38f68f77c2aa074
/core/topology/types.py
913c802ff5ad34f8974a802830251b4825b9df80
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
2,505
py
types.py
# ---------------------------------------------------------------------- # Topology types # ---------------------------------------------------------------------- # Copyright (C) 2007-2020 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Python module...
344926adcbc43e8df1bf8f78daa54f7205a4c36d
f3dfbfb9c128ac5bc7c0098f7eff91a2119d6183
/src/biotite/application/viennarna/rnaalifold.py
aadc61b973045a3c67c1ff635e15be59f6f044fe
[ "BSD-3-Clause" ]
permissive
biotite-dev/biotite
2c2afafc6c4dad51af023c50c156c8f19a20154d
67d801683bfe79087a8e67e82de7333e79c827bb
refs/heads/master
2023-09-06T00:03:24.761607
2023-09-03T14:28:27
2023-09-03T14:28:27
98,795,444
463
80
BSD-3-Clause
2023-09-09T16:47:12
2017-07-30T12:18:33
Python
UTF-8
Python
false
false
10,556
py
rnaalifold.py
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __name__ = "biotite.application.viennarna" __author__ = "Tom David Müller" __all__ = ["RNAalifoldApp"] import copy from tempfile import NamedTemporaryFile import n...
bacd1efe8787b6ba9ae91688851c4ec84668ce44
def993d87717cd42a9090a17d9c1df5648e924ce
/python/IECore/Enum.py
5f44f553b977dcbe5de5b207976edb0e1d5c3a42
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
ImageEngine/cortex
688388296aad2b36dd0bfb7da7b25dcbdc7bd856
6eec66f5dccfd50dda247b04453bce65abc595eb
refs/heads/main
2023-09-05T07:01:13.679207
2023-08-17T23:14:41
2023-08-17T23:14:41
10,654,465
439
104
NOASSERTION
2023-09-14T11:30:41
2013-06-12T23:12:28
C++
UTF-8
Python
false
false
3,618
py
Enum.py
########################################################################## # # Copyright (c) 2007-2012, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
77a6e703ea0a974ed364ffa2dfbf21d9ce08bda5
d3aa7d6fdb3aeb627a5951ab4826108b58341d7f
/apps/base/pages/sip_interface_auto_conf_form.py
e7c889a629c08f2a0b12ea2ef184eb988953c9f6
[]
no_license
JoneXiong/YouPBX
d92b58ea036570afbc2f7f4e52d6e8ca11a4ec7c
4e3156877e22e19959f6f8978feae53089e9b97c
refs/heads/master
2023-05-05T17:35:06.185313
2022-05-15T09:29:49
2022-05-15T09:29:49
67,493,869
269
124
null
2023-04-17T11:19:33
2016-09-06T09:29:34
Python
UTF-8
Python
false
false
1,599
py
sip_interface_auto_conf_form.py
# coding=utf-8 from django import forms from xadmin.views.page import FormPage from xadmin.sites import site from xadmin import widgets from xadmin.views.base import filter_hook from pbx import init from pbx import utils as pbx_utils class SipInterfaceAutoConf(FormPage): verbose_name = u'自动检测' app_label...
88889473d2fc1843a8dbd9aa29d9cbef630c64d0
1bb42bac177fb4e979faa441363c27cb636a43aa
/gans/experiments/emnist/emnist_data_utils_test.py
d312aa3f77ae6765c6df8e7c3acc5c630292a60b
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
google-research/federated
a6040e80fa0fbf533e0d665c66a9bc549d208b3d
329e60fa56b87f691303638ceb9dfa1fc5083953
refs/heads/master
2023-08-28T13:10:10.885505
2023-08-22T23:06:08
2023-08-22T23:06:40
295,559,343
595
187
Apache-2.0
2022-05-12T08:42:53
2020-09-14T23:09:07
Python
UTF-8
Python
false
false
4,501
py
emnist_data_utils_test.py
# Copyright 2018, 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...
667a35735c94b5935cd0e3b8fb8eefd960781a38
30afd852703e2d23cb0b4b6e73e261d685aab08d
/pydgn/data/transform.py
f6fa0b88f5017616d41c5db82404ee179442f479
[ "BSD-3-Clause" ]
permissive
diningphil/PyDGN
688ca9faec3f17dc7c1fb65f548a202ccaa417ae
8a0a1873a42eea13b582d59750afb3d0e0f4798c
refs/heads/main
2023-08-07T09:07:42.936696
2023-07-30T14:30:20
2023-07-30T14:30:20
249,058,070
202
17
BSD-3-Clause
2023-09-09T07:05:57
2020-03-21T20:47:13
Python
UTF-8
Python
false
false
2,722
py
transform.py
import torch from torch_geometric.utils import degree class ConstantIfEmpty: r""" Adds a constant value to each node feature only if x is None. Args: value (int): The value to add. Default is ``1`` """ def __init__(self, value=1): self.value = value def __call__(self, data):...
6f5f1ef3c38f9e760c84289a0348361c9acecb48
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipaySecurityProdSignatureFileUploadResponse.py
9d2765f3275832635d7e4ba536e7487af1890f94
[ "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
769
py
AlipaySecurityProdSignatureFileUploadResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipaySecurityProdSignatureFileUploadResponse(AlipayResponse): def __init__(self): super(AlipaySecurityProdSignatureFileUploadResponse, self).__init__() self._oss_fil...
ba775123bb9cef3f14bf04be902432a2b7b8c834
299648a8c633728662d0b7651cd98afdc28db902
/src/thirdparty/sentry-native/external/crashpad/test/test.gyp
aea1675aeefb1d40ea9567b5b51aaf770193a7ff
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
aardvarkxr/aardvark
2978277b34c2c3894d6aafc4c590f3bda50f4d43
300d0d5e9b872ed839fae932c56eff566967d24b
refs/heads/master
2023-01-12T18:42:10.705028
2021-08-18T04:09:02
2021-08-18T04:09:02
182,431,653
183
25
BSD-3-Clause
2023-01-07T12:42:14
2019-04-20T16:55:30
TypeScript
UTF-8
Python
false
false
4,336
gyp
test.gyp
# Copyright 2015 The Crashpad 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 applicabl...
f061183303a83a6e58093abd1d9136198d6ed786
445b3666585565b9a4a3ed82df0d80bfe859d988
/inference/run_classifier_cv_infer.py
d62d713854162f924a86f780deb051e2ec0d86ca
[ "Apache-2.0", "MIT" ]
permissive
dbiir/UER-py
11d669ee6eb94d648039d60e8f7fba91ebc42f77
3ce0127ba8630f978304ea98833eb39ef55fc506
refs/heads/master
2023-09-02T14:50:44.011889
2023-08-25T04:39:53
2023-08-25T04:39:53
180,572,200
2,865
535
Apache-2.0
2023-08-24T08:30:53
2019-04-10T12:00:20
Python
UTF-8
Python
false
false
4,053
py
run_classifier_cv_infer.py
""" This script provides an example to wrap UER-py for classification inference (cross validation). """ import sys import os import argparse import torch import torch.nn as nn import numpy as np uer_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.append(uer_dir) from uer.utils.constant...
7462931a3041f40f4598623794e5ea53c42a194a
e34810541899182d3a0835e02fa68389af63a805
/test/test_plotting.py
07c1a41797f4ed138b1864be5a7bbf537a862961
[ "MIT" ]
permissive
PyPSA/PyPSA
483216289643ca496d66d316a22e000afa15706c
38b710c73950d05164e7d6c9dd786065ee7cde44
refs/heads/master
2023-08-19T20:55:17.329666
2023-08-17T10:40:50
2023-08-17T10:40:50
49,414,256
891
399
MIT
2023-09-14T14:09:38
2016-01-11T09:04:18
Python
UTF-8
Python
false
false
5,960
py
test_plotting.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Feb 1 13:13:59 2022. @author: fabian """ import os import matplotlib.pyplot as plt import networkx as nx import numpy as np import pandas as pd import pytest from pypsa.plot import add_legend_circles, add_legend_lines, add_legend_patches try: i...
df10e910df19f99a2c2216b39b4f59a8a32a70e5
3ab0ce5a37683744fca77c0ee7172eea7b839feb
/tests/test_quantity.py
de6a9fb1e13d3373c06220cb905a02e8b3e0fbd9
[ "BSD-3-Clause" ]
permissive
jobovy/galpy
8ee6c00a2796e6bdb920625ce7c5cb32b47b5bc9
a46619fd4f5979acfccad23f4d57503033f440c5
refs/heads/main
2023-08-25T04:18:39.588870
2023-08-14T02:34:26
2023-08-14T02:34:26
2,375,854
182
119
BSD-3-Clause
2023-09-11T03:28:59
2011-09-13T03:20:30
Python
UTF-8
Python
false
false
673,704
py
test_quantity.py
# Make sure to set configuration, needs to be before any galpy imports import pytest from packaging.version import parse as parse_version from galpy.util import config config.__config__.set("astropy", "astropy-units", "True") import numpy _NUMPY_VERSION = parse_version(numpy.__version__) _NUMPY_1_22 = (_NUMPY_VERSIO...
3b335a6eedcd458528b6800e36c6bddca4322137
1bc67a91d85a7106106ca31307ef9ee93f1d1a20
/examples/quickstart-pandas/server.py
c8230437483620a748bb9d094579cf9c204cc7a7
[ "Apache-2.0" ]
permissive
adap/flower
4915d143c674eb675504d585e1e90ed06833812f
55be690535e5f3feb33c888c3e4a586b7bdbf489
refs/heads/main
2023-08-17T01:18:12.168723
2023-08-16T17:17:48
2023-08-16T17:17:48
241,095,326
2,999
658
Apache-2.0
2023-09-14T15:43:22
2020-02-17T11:51:29
Python
UTF-8
Python
false
false
2,775
py
server.py
import pickle from typing import Callable, Dict, List, Optional, Tuple, Union import numpy as np import flwr as fl from flwr.common import ( EvaluateIns, EvaluateRes, FitIns, FitRes, Metrics, MetricsAggregationFn, NDArrays, Parameters, Scalar, ndarrays_to_parameters, parame...
2399bf3018e76ad2546a565211423cdef4fe19d3
52245910f830dbfb2b1432ad2a967df7321ee6de
/panel/models/__init__.py
9edea61bc2f6ee3cb8b357743fe053a2a5760aa3
[ "BSD-3-Clause" ]
permissive
holoviz/panel
92c19f979353d456512abbce5a027dff6ddb3a5c
2c6e165e2bba96c0cb97947aa072d4429133cf7a
refs/heads/main
2023-08-17T11:28:06.581979
2023-08-17T11:23:09
2023-08-17T11:23:09
145,848,899
2,544
373
BSD-3-Clause
2023-09-14T17:13:31
2018-08-23T12:14:24
Python
UTF-8
Python
false
false
704
py
__init__.py
""" The models module defines custom bokeh models which extend upon the functionality that is provided in bokeh by default. The models are defined as pairs of Python classes and TypeScript models defined in .ts files. """ from .datetime_picker import DatetimePicker # noqa from .ipywidget import IPyWidget # noqa from...
dba2b6d588644402cceeb7cbcf3a8140ed4abad7
6c9e1a5139ca56b7a5df7d1e7cc7ce4f60e1c8af
/histomicstk/segmentation/label/delete_border.py
140c9721fdbbc1debe4de606d708493efd6a2770
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
DigitalSlideArchive/HistomicsTK
251b016066144fbad3efb2065993d7981265ab04
c03c852e72f1497d22535c6b7d5aba25c74e620d
refs/heads/master
2023-08-31T02:32:13.773082
2023-08-30T20:40:45
2023-08-30T20:40:45
44,324,447
351
125
Apache-2.0
2023-09-13T12:24:13
2015-10-15T14:49:21
Python
UTF-8
Python
false
false
1,116
py
delete_border.py
import numpy as np from .condense import condense from .delete import delete def delete_border(im_label): """ Deletes objects touching the border of the image and relabel Parameters ---------- im_label : array_like A label mask generated by segmentation methods. Returns ------- ...
b4ba43a8d76f9db1e9e3b78d1ca93ce8993060a7
9907672fcd81ab73ac63b2a83422a82bf31eadde
/atcoder/tyama_atcodermaximumcup2018D.py
889e5867671d147c5e86a59f44aa6bc49b7ab5c4
[ "0BSD" ]
permissive
cielavenir/procon
bbe1974b9bddb51b76d58722a0686a5b477c4456
746e1a91f574f20647e8aaaac0d9e6173f741176
refs/heads/master
2023-06-21T23:11:24.562546
2023-06-11T13:15:15
2023-06-11T13:15:15
7,557,464
137
136
null
2020-10-20T09:35:52
2013-01-11T09:40:26
C++
UTF-8
Python
false
false
244
py
tyama_atcodermaximumcup2018D.py
#!/usr/bin/python n,m,l,x=map(int,raw_input().split()) a=map(int,raw_input().split()) q=[1]+[float('inf')]*(m-1) for i in range(n): q0=list(q) for j in range(m): t=j+a[i] q0[t%m]=min(q[t%m],q[j]+t/m) q=q0 print 'No' if q[l]>x else 'Yes'
5ee9754836f5edb5bb88d5a1fde91836c9e85fad
ca8b840405601e4cde66ec9b98854f829f1bdd5c
/homeschool/students/migrations/0001_initial.py
5764777efe6f5f01dd83867b34f44003f7ceed7e
[ "MIT" ]
permissive
mblayman/homeschool
5689f02fb4ef30286145d48688bd780f00bc0fd6
ebc4ae4812d4128e5e79d0885767c8620f7b1c6a
refs/heads/main
2023-08-07T19:24:48.367045
2023-08-03T03:22:00
2023-08-03T03:22:00
219,647,036
219
58
MIT
2023-09-11T22:39:48
2019-11-05T03:10:35
Python
UTF-8
Python
false
false
4,400
py
0001_initial.py
# Generated by Django 3.0.7 on 2020-08-08 15:46 import uuid import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [("schools", "0001_initial"), ("courses", "0001_initial")] operations = [ migrations.Create...
320783791abc4d881f6d7f6ca0565087a0f9396e
6ed034d0a5e239d7b0c528b287451409ffb4a494
/tests/test_losses/test_mesh_losses.py
98907675d26bfe65790edfc2bde7b8179aee4ad8
[ "Apache-2.0" ]
permissive
ViTAE-Transformer/ViTPose
8f9462bd5bc2fb3e66de31ca1d03e5a9135cb2bf
d5216452796c90c6bc29f5c5ec0bdba94366768a
refs/heads/main
2023-05-23T16:32:22.359076
2023-03-01T06:42:22
2023-03-01T06:42:22
485,999,907
869
132
Apache-2.0
2023-03-01T06:42:24
2022-04-27T01:09:19
Python
UTF-8
Python
false
false
5,793
py
test_mesh_losses.py
# Copyright (c) OpenMMLab. All rights reserved. import pytest import torch from numpy.testing import assert_almost_equal from mmpose.models import build_loss from mmpose.models.utils.geometry import batch_rodrigues def test_mesh_loss(): """test mesh loss.""" loss_cfg = dict( type='MeshLoss', ...
99384bc566a8122990d354c5a70daad5cab2de61
008c1eaa9354c76bc42700c81df1a65b8ecc5f0d
/backend/labels/managers.py
6d7540c7ae45113f08e2e7137bd0cc1a71bcb263
[ "MIT" ]
permissive
doccano/doccano
d3417706fa8a431fe2ac36a2a9b87c8604a0e4d6
63870976cc62811807648075d04a2531a1a6734d
refs/heads/master
2023-08-18T04:33:46.271524
2023-08-10T04:32:53
2023-08-10T04:32:53
132,709,824
6,297
1,393
MIT
2023-09-06T05:55:55
2018-05-09T06:10:05
Python
UTF-8
Python
false
false
2,972
py
managers.py
from django.db.models import Count, Manager class LabelManager(Manager): label_type_field = "label" def calc_label_distribution(self, examples, members, labels): """Calculate label distribution. Args: examples: example queryset. members: user queryset. lab...
40db155efca7ac990bb0d08d43161f9de6af54ef
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/intentions/convertVariadicParamSeveralCallsWithDifferentKeysCaretOnContainer.py
9fb61718ab770822b89efc0a1913a0b00ca590b5
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
166
py
convertVariadicParamSeveralCallsWithDifferentKeysCaretOnContainer.py
def foo(**kwa<caret>rgs): a = kwargs.get("bar1", 22) b = kwargs.get("bar1", default=22) c = kwargs.get("bar2", 22) d = kwargs.get("bar2", default=23)
2fe61f6befb83cbf9ca8e20d2f2cf35a1c0e6099
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/braintree/braintree/dispute_details/evidence.pyi
c488be75c0b6325c7d7c390bc9e1e5c6eccde020
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
163
pyi
evidence.pyi
from braintree.attribute_getter import AttributeGetter as AttributeGetter class DisputeEvidence(AttributeGetter): def __init__(self, attributes) -> None: ...
be16bb160367203eed0601a1a35c661d167073ca
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/override/py3k.py
d68058a7e0b71e9cc4ee3e1e1150e77d21282f12
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
67
py
py3k.py
class A: def m(self): pass class B(A): <caret>pass
a262cea9ac3928fc6e39609863a642cd89c04944
3a24f63c8742560993b5465b26339e7c0ed05a27
/crates/ruff/resources/test/fixtures/pylint/sys_exit_alias_9.py
326901d18378dfd69c89f11f99f1d3821df808db
[ "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
astral-sh/ruff
8f1de11263474c6293454b02c728df2f113801db
82410524d9612f11387c2675a03869d489bb97ef
refs/heads/main
2023-08-02T23:20:34.351174
2023-08-02T21:32:43
2023-08-02T21:32:43
523,043,277
2,264
122
MIT
2023-09-14T20:08:59
2022-08-09T17:17:44
Rust
UTF-8
Python
false
false
47
py
sys_exit_alias_9.py
def main(): exit(0) from sys import argv
ff01f98b209fac9c4001d6528eecda7ada523bae
7c91ff850f81bf8759b055971d592a71ef025732
/tests/unit/test_atlas.py
0a7bc9bc2d0c3f0be04f5a4308ce0d6e428d3d48
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
pyglet/pyglet
d9da2cccd52a6bc5c09548536876602f6e1412f0
094c638f0529fecab4e74556487b92453a78753c
refs/heads/master
2023-08-17T15:08:09.192350
2023-08-17T01:51:50
2023-08-17T01:51:50
191,043,601
1,687
427
BSD-3-Clause
2023-09-14T08:51:31
2019-06-09T18:55:00
Python
UTF-8
Python
false
false
2,596
py
test_atlas.py
import unittest from pyglet.image import atlas __noninteractive = True class Rect: def __init__(self, x1, y1, x2, y2): self.x1 = x1 self.y1 = y1 self.x2 = x2 self.y2 = y2 def __repr__(self): return 'Rect(%d, %d to %d, %d)' % ( self.x1, self.y1, self.x2, s...
297d1f25ab8194b6e7015edf446d95731705cce7
fd1c1bf9bf69a6e4990c66fd971ce27b9b791958
/tests/test_feature_flattener.py
904224fafd9bf7ef84480f5a5799756642def40f
[ "BSD-3-Clause" ]
permissive
machinalis/featureforge
4c1b950e25c018e69e7e552dea7f310a12e75d71
9fe64508c52c2279e1cff7ed3ce46fcabc95ffff
refs/heads/develop
2022-08-04T18:39:54.226830
2017-12-26T17:08:12
2017-12-26T17:08:12
16,920,465
371
89
BSD-3-Clause
2017-12-26T17:08:13
2014-02-17T17:21:12
Python
UTF-8
Python
false
false
13,483
py
test_feature_flattener.py
# -*- coding: utf-8 -*- from collections import Counter import random import unittest from future.builtins import range, str import numpy import scipy from featureforge.flattener import FeatureMappingFlattener class Person(object): # Hashable object example used on tests def __init__(self, name, age): ...
bc5edd1806641fa47f23b6e188abb369ae6d31f3
fe41ede15b4cb24fc15b6b1eb7e9a393ec6bb778
/monobit/magic.py
ede48a97e6bb17d9fb7675dc72071f0031af08b9
[ "MIT" ]
permissive
robhagemans/monobit
424bcb2253c22d8c00d287204f04e9b69867ac48
3d19d930344f18080253b4046bb711aaea5620ba
refs/heads/master
2023-08-29T08:32:43.276030
2023-08-12T09:23:20
2023-08-12T09:23:20
188,114,254
154
11
MIT
2023-06-03T12:50:25
2019-05-22T21:10:56
HTML
UTF-8
Python
false
false
10,129
py
magic.py
""" monobit.magic - file type recognition (c) 2019--2023 Rob Hagemans licence: https://opensource.org/licenses/MIT """ import logging from pathlib import Path from fnmatch import fnmatch import re from .streams import get_name, DirectoryStream # number of bytes to read to check if something looks like text _TEXT_S...
83ec4c48218da90c41054691a6770fe8584c0433
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_transpose.py
9b9ff9291eadf9ebdffd36e1f72c845d5d38f351
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
899
py
pyunit_h2oH2OFrame_transpose.py
import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.utils.typechecks import assert_is_type from random import randrange import numpy as np from h2o.frame import H2OFrame def h2o_H2OFrame_transpose(): """ Python API test: h2o.frame.H2OFrame.transpose() """ row_n...
49e250c4fd89347b357e22ff60378b37afee0b76
29eac50cc208d8aaebde699e8c851ed84b2de591
/lhotse/shar/readers/utils.py
fae7dc1332d1969d5003fe08cc82ae5e094313b5
[ "Apache-2.0" ]
permissive
lhotse-speech/lhotse
fcbbfbfd2e2bf95f9587268d605faa1d68df7790
088f1802d5fa528f64ee32d1f79197e42fb8aae5
refs/heads/master
2023-09-01T12:58:57.383768
2023-08-29T14:22:45
2023-08-29T14:22:45
258,529,948
667
159
Apache-2.0
2023-09-14T18:48:31
2020-04-24T14:08:10
Python
UTF-8
Python
false
false
1,901
py
utils.py
import os def pytorch_worker_info(group=None): """ Return node and worker info for PyTorch and some distributed environments. This function is copied from WebDataset: https://github.com/webdataset/webdataset """ rank = 0 world_size = 1 worker = 0 num_workers = 1 if "RANK" in os.env...
22970607fdbe100e6739f8896a91d379b1e85e3b
55a4f143d857d97f165731b2075f0f258bcec9df
/testHaarCascade.py
759d55ad438cab48e24aed61558b1b2517ce737f
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
LukeAllen/optimeyes
aed79eeedad23e7a4740e0d200d14851fe0f27f0
b686b3252a6c1250b895e029cf10ad4dc72dd7b7
refs/heads/master
2021-08-08T04:58:04.621038
2021-03-25T04:33:54
2021-03-25T04:33:54
18,481,560
193
67
MIT
2021-03-25T04:33:54
2014-04-06T02:46:08
Python
UTF-8
Python
false
false
2,162
py
testHaarCascade.py
# -*- coding: utf-8 -*- """ Basic test of our ability to do a Haar Cascade """ import cv2 haarFaceCascade = cv2.CascadeClassifier('haarcascades/haarcascade_frontalface_default.xml') WINDOW_NAME = "preview" def detect(img, cascade, minimumFeatureSize=(20,20)): if cascade.empty(): raise(Exception("There wa...
9a1feceb6f8ab601389e97b146eb12b66aa5795b
6b265b404d74b09e1b1e3710e8ea872cd50f4263
/Python/Paramiko/ls.py
8e4c27b6420a62d2ce0ee5249914b3c1bde7c5c1
[ "CC-BY-4.0" ]
permissive
gjbex/training-material
cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae
e748466a2af9f3388a8b0ed091aa061dbfc752d6
refs/heads/master
2023-08-17T11:02:27.322865
2023-04-27T14:42:55
2023-04-27T14:42:55
18,587,808
130
60
CC-BY-4.0
2023-08-03T07:07:25
2014-04-09T06:35:58
Jupyter Notebook
UTF-8
Python
false
false
1,054
py
ls.py
#!/usr/bin/env python from argparse import ArgumentParser import paramiko import sys def connect(host, user): ssh = paramiko.SSHClient() ssh.load_system_host_keys() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.connect(host, username=user) return ssh if __name__ == '__main__': ...
09e6ede9a3dc65883f1d35fcfeab74744f2957c0
5789e7a0ba139b4cb26c5f1d1c04429448290e83
/examples/Happy_Birthday.py
b91db6c0c354c2bd229ac72621249723ec6bd438
[ "MIT" ]
permissive
vinitshahdeo/HBD
178f307911359c82f53578d48a809519876d002e
f1af136e9058f5ec3a86aa7df5dd22ced7b16426
refs/heads/master
2022-11-01T08:05:56.349301
2022-06-11T13:11:45
2022-06-11T13:11:45
90,665,274
175
488
MIT
2023-09-14T14:20:31
2017-05-08T19:33:15
HTML
UTF-8
Python
false
false
1,645
py
Happy_Birthday.py
import turtle import random # sets background bg = turtle.Screen() bg.bgcolor("black") # Bottom Line 1 turtle.penup() turtle.goto(-170,-180) turtle.color("white") turtle.pendown() turtle.forward(350) # Mid Line 2 turtle.penup() turtle.goto(-160,-150) turtle.color("white") turtle.pendown() turtle.forward(300) # Firs...
72cc318af2138104a89a126f5faab19eb45d4dc4
091e97bcfe5acc0635bd601aa8497e377b74d41a
/ansible/roles/lib_oa_utils/action_plugins/node_group_checks.py
198ef94cf13519e8b194c67b52af391f360d188d
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
openshift/openshift-tools
d59b63778f25cb8fb3c7a0253afe22a173e72f9d
e342f6659a4ef1a188ff403e2fc6b06ac6d119c7
refs/heads/prod
2023-08-30T01:52:04.108978
2022-03-23T21:07:28
2022-03-23T21:07:28
36,827,699
170
254
Apache-2.0
2022-06-16T12:11:51
2015-06-03T20:09:22
Python
UTF-8
Python
false
false
5,426
py
node_group_checks.py
""" Ansible action plugin to ensure inventory variables are set appropriately related to openshift_node_group_name """ from ansible.plugins.action import ActionBase from ansible import errors # Runs on first master # Checks each openshift_node_group_name is found in openshift_node_groups # Checks that master label is ...
071f9e1ea1d098ad15d0298b01ee74c30a93d910
88efd76316e4184d76a5e0585d95fe734233942c
/tests/test_classifier/test_base.py
a98af1592f45e3bb41a4ef601361350bb6f7e4fe
[ "Apache-2.0" ]
permissive
DistrictDataLabs/yellowbrick
1ecd9f33e58f0d007569904401c204a6cdeb5661
f7a8e950bd31452ea2f5d402a1c5d519cd163fd5
refs/heads/develop
2023-08-03T12:25:26.511916
2023-07-05T18:14:28
2023-07-05T18:14:28
59,121,694
4,242
660
Apache-2.0
2023-07-15T17:50:31
2016-05-18T14:12:17
Python
UTF-8
Python
false
false
9,424
py
test_base.py
# tests.test_classifier.test_base # Tests for the base classification visualizers # # Author: Benjamin Bengfort # Created: Wed Jul 31 11:21:28 2019 -0400 # # Copyright (C) 2019 The scikit-yb developers # For license information, see LICENSE.txt # # ID: test_base.py [da729da] benjamin@bengfort.com $ """ Tests for th...
447e0b5e1f14ea64c2207dc1c21349a538898e2b
0750ba37594eef0fc3a52a656131c6f679338870
/gimme_aws_creds/webauthn.py
b240186b4cb0d72c246f290244894122d9366bc5
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "ISC" ]
permissive
Nike-Inc/gimme-aws-creds
46616ecdab0bb57dccdc795a179cfbaf80a4f23f
b5e87bed64dfc8d4923fadb4f155d2adaa749c23
refs/heads/master
2023-09-02T22:01:53.941304
2023-08-28T17:24:59
2023-08-28T17:24:59
84,228,579
874
295
Apache-2.0
2023-09-06T15:15:46
2017-03-07T17:41:23
Python
UTF-8
Python
false
false
6,459
py
webauthn.py
""" Copyright 2018-present SYNETIS. 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...
787ff5cf1b6b6dcdd018602bf2c306f71af69dca
a0be7ce6e074cd080c81da1c1d473b8da558a9d8
/sccoda/model/other_models.py
47b5a91996f7388d660d93882179febd3558e1ce
[ "BSD-3-Clause" ]
permissive
theislab/scCODA
219ef10eecccf389889517018eb08973d465112b
887955e5f968960e2112fdab4258a205596540ee
refs/heads/master
2023-05-23T04:53:04.199509
2023-05-02T15:00:09
2023-05-02T15:00:09
166,775,214
119
18
BSD-3-Clause
2022-06-29T08:03:10
2019-01-21T08:20:55
Jupyter Notebook
UTF-8
Python
false
false
35,766
py
other_models.py
""" Models for the model comparison benchmark in `scCODA: A Bayesian model for compositional single-cell data analysis` (Büttner, Ostner et al., 2020). These models are otherwise not part of scCODA, but make a nice addition for comparison purposes and are thus part of the main package. :authors: Johannes Ostner, Mare...
44ce5d5fa5634915f70dbf9aed7447697dcb25b1
a5622dafafd782af153be2bc0bd19cb086fd07b2
/rest-service/manager_rest/rest/resources_v3_1/plugins.py
abd47dc3d5c5c7ed1d248f9ffca180e364eb315e
[ "Apache-2.0" ]
permissive
cloudify-cosmo/cloudify-manager
8b2d226ad5a9dd8103d7690b2f8081bef24078e1
c0de6442e1d7653fad824d75e571802a74eee605
refs/heads/master
2023-09-06T09:11:51.753912
2023-09-04T08:01:58
2023-09-04T08:01:58
18,326,574
146
84
Apache-2.0
2023-09-04T08:02:00
2014-04-01T11:06:47
Python
UTF-8
Python
false
false
14,516
py
plugins.py
from flask import request as flask_request from werkzeug.exceptions import BadRequest from cloudify.models_states import VisibilityState from manager_rest import manager_exceptions from manager_rest.persistent_storage import get_storage_handler from manager_rest.rest import swagger from manager_rest.security import S...
23140a1a676f583612a8688ea39bf1785378fe0c
94c1805df5a09c39159d502f420d19ad54b567fc
/runtime/deps/gyp/test/actions-none/src/fake_cross.py
2913f66a68d22935902a701fbb708f9dceffd85a
[ "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
tmikov/jscomp
9805a5a4d06520549c57380f0df4a1c0aa0dab56
83828441cb38ec96603a6a60be06977d4852940a
refs/heads/develop
2021-01-19T02:56:35.102659
2016-04-12T06:19:30
2016-04-12T06:19:30
36,981,674
237
13
Apache-2.0
2018-10-14T09:48:12
2015-06-06T13:49:26
C
UTF-8
Python
false
false
295
py
fake_cross.py
#!/usr/bin/python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys fh = open(sys.argv[-1], 'wb') for filename in sys.argv[1:-1]: fh.write(open(filename).read()) fh.close()
5c1661ee246094c726f9511e8a9a923bce3faa68
181e46c0ee758b0207968edf2326b1d27f13948a
/src/static_precompiler/registry.py
413f619eea0836a02031721519c90cf3489790d9
[ "MIT" ]
permissive
andreyfedoseev/django-static-precompiler
a8dc25f6385c93eee7a683fbece45af53bd06a71
26fab45478edbe7d001fb4cd5694157d96ee6f9d
refs/heads/main
2023-07-15T11:54:58.283879
2022-12-28T13:14:47
2022-12-28T13:41:56
13,348,441
174
65
NOASSERTION
2023-08-22T15:11:55
2013-10-05T16:34:19
Python
UTF-8
Python
false
false
2,820
py
registry.py
import importlib import warnings from typing import Dict, Optional import django.apps import django.core.exceptions from . import exceptions, settings from .compilers import BaseCompiler registry: Optional[Dict[str, BaseCompiler]] = None def get_compilers() -> Dict[str, BaseCompiler]: global registry if re...
79d00a064acad34cd07e1c64d67a93e6af67bc4b
234c46d1249c9209f268417a19018afc12e378b4
/allennlp/modules/matrix_attention/scaled_dot_product_matrix_attention.py
9b0f6bf82d40897f9ee70428f6103b796b0d7413
[ "Apache-2.0" ]
permissive
allenai/allennlp
1f4bcddcb6f5ce60c7ef03a9a3cd6a38bdb987cf
80fb6061e568cb9d6ab5d45b661e86eb61b92c82
refs/heads/main
2023-07-07T11:43:33.781690
2022-11-22T00:42:46
2022-11-22T00:42:46
91,356,408
12,257
2,712
Apache-2.0
2022-11-22T00:42:47
2017-05-15T15:52:41
Python
UTF-8
Python
false
false
739
py
scaled_dot_product_matrix_attention.py
import math import torch from allennlp.modules.matrix_attention.dot_product_matrix_attention import DotProductMatrixAttention from allennlp.modules.matrix_attention.matrix_attention import MatrixAttention @MatrixAttention.register("scaled_dot_product") class ScaledDotProductMatrixAttention(DotProductMatrixAttentio...
bc0125625aa6757cae3e805a5c10770ce5fadd65
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/tests/transformations/tiling_vectorization_test.py
e042c77f7e1b4cf811fe2c6ab61b3ca1219c326d
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
1,316
py
tiling_vectorization_test.py
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import numpy as np from dace.transformation.dataflow import StripMining, Vectorization from dace.libraries.standard.memory import aligned_ndarray N = dace.symbol('N') @dace.program def multiply(X: dace.float64[N], Y: dace.float64...
7f50619c845cc865da93c6d5171a240c5260c885
cadb6dceb7bb67ce47ef48b2c83f480a65d6b01a
/s3prl/upstream/byol_a/byol_a.py
e05dd61ec13baba559f6c6ffa39608a06d7013e5
[ "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
s3prl/s3prl
52ec2ae4df5a61c786c122085603aa9c5e8c2681
76a9432b824f6ae3eae09a35a67782c4ed582832
refs/heads/main
2023-08-17T02:26:57.524087
2023-06-10T17:12:27
2023-06-10T17:12:27
196,905,457
1,549
398
Apache-2.0
2023-09-14T13:07:05
2019-07-15T01:54:52
Python
UTF-8
Python
false
false
4,407
py
byol_a.py
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ upstream/byol_a/byol_a.py ] # Synopsis [ the byol-a model, derived from the official repo ] # Author [ NTT Communication Science Laboratories (https://github.com...
88d9dd68e1985a656c63a11c9fbcb694fb8ecf54
b7afa87e9b382199219d6e533419654a8ff670bb
/mamonsu/tools/zabbix_cli/operations.py
e12db8afc0d13de3d5bee1b1debc1cc736c13bf7
[ "BSD-3-Clause" ]
permissive
postgrespro/mamonsu
a7f63421ecadb5e11a54f0307022525ef89079da
dd372df24c4bc356a7aafd89135187c21146681d
refs/heads/master
2023-09-01T01:06:38.146729
2023-06-13T08:42:11
2023-06-13T08:42:11
50,690,011
207
48
BSD-3-Clause
2022-12-20T11:43:58
2016-01-29T20:42:24
Python
UTF-8
Python
false
false
13,364
py
operations.py
# -*- coding: utf-8 -*- from __future__ import print_function import sys import json from mamonsu.tools.zabbix_cli.request import Request from mamonsu.lib.parser import zabbix_msg from distutils.version import LooseVersion from mamonsu.tools.zabbix_cli.dashboard import generate_dashboard class Operations(object): ...
5da0a9f53c0546bade7acc662e7a6cf263dbeb4f
674caa0d07acfa73a49a8762ca48eccef22e68d8
/utils/gcm/decrypt.py
9abe245914c362fdbf48e372cf90994a937eb23a
[ "MIT" ]
permissive
corkami/mitra
2e52d85d7a6fc158155299e8e5e786260fdc1759
c2a1939465a36b70a0ddf37c18e67c71352d8c9c
refs/heads/master
2023-04-16T23:49:36.719441
2023-04-11T09:37:40
2023-04-11T09:37:40
297,723,842
1,113
80
MIT
2020-11-02T15:54:03
2020-09-22T17:33:10
Python
UTF-8
Python
false
false
2,207
py
decrypt.py
#!/usr/bin/env python3 import sys import os import hashlib import binascii import struct from Crypto.Util.number import long_to_bytes,bytes_to_long from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.backends import default_backend def gcm_decrypt(_key,_nonce,_ctxt,...
068660c36bce13e3a81b8e66f5a79144990f16a1
bfb55f5cd85a8516510ad00a3c5f298afadecad3
/sc2/proxy.py
2e2041785b9c2a4cf40604fd72c4c3a0c0b127ae
[ "MIT" ]
permissive
BurnySc2/python-sc2
b53429a4bc733446e0676b96892577a18c604f00
76e4a435732d4359e5bd9e15b6283a0498e212ca
refs/heads/develop
2023-08-31T12:56:47.734503
2023-08-03T11:05:47
2023-08-03T11:05:47
188,820,422
409
188
MIT
2023-08-03T11:04:11
2019-05-27T10:13:35
Python
UTF-8
Python
false
false
10,401
py
proxy.py
# pylint: disable=W0212 import asyncio import os import platform import subprocess import time import traceback from aiohttp import WSMsgType, web from loguru import logger from s2clientprotocol import sc2api_pb2 as sc_pb from sc2.controller import Controller from sc2.data import Result, Status from sc2.player import...
424dabca73b7a60f21fcf8a183b6bb88264462ee
d110546d747d7e3865ce5742d5fca09f404623c0
/salt/modules/artifactory.py
0f01d89e82f51216a5b2ee3513cbd6f8a00016e6
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
25,372
py
artifactory.py
""" Module for fetching artifacts from Artifactory """ import http.client import logging import os import urllib.request import xml.etree.ElementTree as ET from urllib.error import HTTPError, URLError import salt.utils.files import salt.utils.hashutils import salt.utils.stringutils from salt.exceptions import Command...
375371b1235169a74649e5d9cfe10ac008d25fc0
4a211e279ec89239033c5fe2d6d8d3e49b48d369
/salvo/src/lib/source_manager.py
fa45fb566ce3d9156ced45229ad14fddc98d5f64
[ "Apache-2.0" ]
permissive
envoyproxy/envoy-perf
cfb1e8f7af806600f11ebc235c1a72939420b087
d131bc2f1a7f8ae4f640da30fd30c027735d9788
refs/heads/main
2023-08-31T14:02:50.891888
2023-08-24T16:19:26
2023-08-24T16:19:26
94,845,161
109
29
Apache-2.0
2023-08-24T16:19:28
2017-06-20T03:20:02
Python
UTF-8
Python
false
false
13,139
py
source_manager.py
"""This module abstracts the higher level functions of managing source code.""" import logging from typing import Set from src.lib import (constants, source_tree) import api.source_pb2 as proto_source import api.control_pb2 as proto_control log = logging.getLogger(__name__) """The KNOWN_REPOSITORIES map contains the...
33fe01f86dfcb25e3fd198d0a96ab55789429998
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/studio/micro-services/SREWorks/saas/system/api/resource/backend-framework/webpy/tesla-faas/teslafaas/common/trace_id.py
cd0a22476f582969f47f0b7f9696239bebb6bfcf
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "EPL-1.0", "LGPL-2.0-or-later", "MPL-2.0", "GPL-2.0-only", "JSON" ]
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
1,582
py
trace_id.py
#!/usr/bin/env python # encoding: utf-8 """ """ __author__ = 'adonis' import web import struct import random import socket import time import uuid def _ip2long(ip): packed_IP = socket.inet_aton(ip) return struct.unpack("!L", packed_IP)[0] def _get_hex_str(value): return str(hex(value...
fe65aa9c648dba06df9ad1340554af74d644e551
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/ppapi/native_client/tests/breakpad_crash_test/nacl.scons
23b212a4a412b2d2c0a9cc24f88607aa3c01182b
[ "BSD-3-Clause", "LicenseRef-scancode-khronos" ]
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
4,614
scons
nacl.scons
# -*- python -*- # Copyright 2012 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os Import('env') if env.Bit('host_windows') or env.Bit('host_mac'): expected_crash_dumps = 1 else: # We are also checking that crash dumping does not...
7b3d849b57b64c432f842f2d46857dd9727ad0d0
af101b467134e10270bb72d02f41f07daa7f57d8
/tests/test_utils/test_cli.py
2ed0c53b6480e0f10dadc7e926599cd86e82ea22
[ "Apache-2.0" ]
permissive
open-mmlab/mmagic
4d864853417db300de4dfe7e83ce380fd1557a23
a382f143c0fd20d227e1e5524831ba26a568190d
refs/heads/main
2023-08-31T14:40:24.936423
2023-08-30T05:05:56
2023-08-30T05:05:56
203,999,962
1,370
192
Apache-2.0
2023-09-14T11:39:18
2019-08-23T13:04:29
Jupyter Notebook
UTF-8
Python
false
false
194
py
test_cli.py
# Copyright (c) OpenMMLab. All rights reserved. import sys from mmagic.utils import modify_args def test_modify_args(): sys.argv = ['test.py', '--arg_1=1', '--arg-2=2'] modify_args()
7300817c2f8694140e1f7401a3f0d8f121e8d5b3
194d055c7f769ca6c8c3443c6575784337accf26
/photogrammetry_importer/file_handlers/transformation_file_handler.py
eb19c7759700cbc84acd5fdda04e9630e92b96a0
[ "MIT" ]
permissive
SBCV/Blender-Addon-Photogrammetry-Importer
23bf44d7f4a400c33ccc47ad304972cdee33d8fe
da404ebf8d4412196c2740f0b569cbf9e542952d
refs/heads/master
2023-08-29T17:07:05.729044
2023-08-28T13:59:35
2023-08-28T13:59:35
99,435,028
718
71
MIT
2023-06-13T08:13:55
2017-08-05T16:35:11
Python
UTF-8
Python
false
false
1,048
py
transformation_file_handler.py
import os import numpy as np from photogrammetry_importer.blender_utility.logging_utility import log_report class TransformationFileHandler: """Class to read directories with files storing transformations.""" @staticmethod def parse_transformation_folder(t_idp, op=None): """Parse a directory with...
47e0b6138298c09cc9bd33118c60131bc086d04f
d3ef2463f556d6cd166eb29d3a5f5b210a6402e7
/cupyx/linalg/sparse/_solve.py
ca12ae0a5fb40fb23e9f9ae797aab35394df7169
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cupy/cupy
ce7a010a57504dbfe4fb5af10d354a22e79f4907
96105afb78aa3f8380834d2516184b8365e23fcb
refs/heads/main
2023-08-31T00:36:47.967611
2023-08-30T09:19:27
2023-08-30T09:19:27
72,523,920
7,505
1,072
MIT
2023-09-14T01:04:42
2016-11-01T09:54:45
Python
UTF-8
Python
false
false
1,788
py
_solve.py
import numpy import cupy from cupy.cuda import cusolver from cupy.cuda import device from cupy.linalg import _util from cupyx.scipy import sparse def lschol(A, b): """Solves linear system with cholesky decomposition. Find the solution to a large, sparse, linear system of equations. The function solves `...
2668ff1114d5d35ebb4316ebd27e30c098c8a014
dcbef06d5a00f07756339b9e62c684dec2fee425
/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Subst.py
298df3881a1dc0956f5e9064295970b719daf415
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Nuitka/Nuitka
f9543d8d95bfa0b81d4e60af0dfad99fb72893a4
d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2
refs/heads/develop
2023-08-28T14:00:32.861328
2023-08-27T09:16:45
2023-08-27T09:16:45
9,626,741
8,573
599
Apache-2.0
2023-09-13T02:49:41
2013-04-23T15:40:33
Python
UTF-8
Python
false
false
36,753
py
Subst.py
# MIT License # # Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, ...
968d9e515541a6be6393e9527500cac874d136d7
506646378092805d0cc5c154e043b9a1df7eb911
/hammer/test_RPC.py
714ae1e6693f370c9d14885e728efc9e983573af
[ "MIT" ]
permissive
drandreaskrueger/chainhammer
d4fe879b177d62de225a2f9eaf028d4f550ddb8d
ee5a31e2ec7d7ef7eb37bba5c378168120a77d25
refs/heads/master
2023-03-10T00:56:06.229034
2022-03-04T15:06:14
2022-03-04T15:06:14
151,062,562
132
65
NOASSERTION
2023-02-15T20:08:10
2018-10-01T09:11:53
Python
UTF-8
Python
false
false
2,361
py
test_RPC.py
#!/usr/bin/env python3 """ @summary: test Ethereum RPC = helps to identify the correct RPC-address @version: v60 (26/October/2020) @since: 26/October/2020 @author: https://github.com/drandreaskrueger @see: https://github.com/drandreaskrueger/chainhammer for updates """ from pprint import pprint import requests...
c6ae9f86d6007c3ecc9dc5aacc0c59ed3618cf0f
2a412d558ccb52de1ac674ae9f0c930a3ee0542a
/tools/generate-wikimedia.py
4a4132d9825b1cfade205fc17624a02e0126103e
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
MISP/misp-warninglists
23a8072bfdc53986e75ade2f69dabbb2a3d7ff2e
5932250a91ebaff08923abf0383b967ba1a81cb5
refs/heads/main
2023-08-31T16:04:55.727226
2023-08-30T12:50:02
2023-08-30T12:50:02
56,586,021
409
193
null
2023-08-30T12:50:34
2016-04-19T10:03:31
Python
UTF-8
Python
false
false
977
py
generate-wikimedia.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import codecs import ipaddress import re from generator import download, get_version, write_to_file def process(url, dst): warninglist = { 'name': 'List of known Wikimedia address ranges', 'version': get_version(), 'description': 'Wikimedia ...
6c0631416cef685e36118918d3833b256eddf669
3ca67d69abd4e74b7145b340cdda65532f90053b
/BOJ/2851.슈퍼마리오/sAp00n.py
d7f49ef68a5ff54e6e405d9f85303f238005d6bc
[]
no_license
DKU-STUDY/Algorithm
19549516984b52a1c5cd73e1ed1e58f774d6d30e
6f78efdbefd8eedab24e43d74c7dae7f95c2893b
refs/heads/master
2023-02-18T06:48:39.309641
2023-02-09T07:16:14
2023-02-09T07:16:14
258,455,710
175
49
null
2023-02-09T07:16:16
2020-04-24T08:42:27
Python
UTF-8
Python
false
false
679
py
sAp00n.py
import sys mush_list = [] temp = 0 for _ in range(10): mush_list += [int(sys.stdin.readline())] '''from random import randint mush_list = [] temp = 0 for _ in range(10): mush_list += [randint(0,100)] print(f'mush_list = {mush_list}')''' score = 0 i = 0 for idx in range(10): if score + mush_list[idx] > 100: ...
b93469846a632b8e317d3e661113993990569bb1
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Introduction_to_Statistics_using_Python/Code3/readZip.py
1ff1602140a33c2e376e2dea7ba695c0cbee5ae0
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
1,047
py
readZip.py
'''Get data from MS-Excel files, which are stored zipped on the Web. ''' # author: Thomas Haslwanter, date: Jan-2014 import urllib import io import zipfile import pandas as pd def getDataDobson(url, inFile): '''Extract data from a zipped-archive''' # get the zip-archive GLM_archive = urllib.request.urlo...
0115f3fb307624e5f54959ead8e2630ed52140f2
f74e34e1f308f2d453d66b4a531a88c44cfd4a5f
/aruco_detect/scripts/marker_generation/__init__.py
41e3972694ce106fbc725c1aa8599fe80e115295
[ "BSD-3-Clause" ]
permissive
UbiquityRobotics/fiducials
40059bd4a3e3098dba18e3408ec84c638c39c43d
6c09104dd183925549e73825d50123ba5339d258
refs/heads/noetic-devel
2023-01-06T19:04:33.108565
2022-09-23T20:37:23
2022-09-23T20:37:23
30,819,640
263
143
BSD-3-Clause
2022-11-17T12:20:13
2015-02-15T06:11:15
C
UTF-8
Python
false
false
26
py
__init__.py
from .marker_gen import *
b395edf71f52281634185abd6159e852f0d5984c
316e768ac2ba60fb393a8b914f5c761e077609d1
/archivebox/core/mixins.py
4711dd0e071ec04ce7f1f15696c108321710f54b
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
ArchiveBox/ArchiveBox
88fc98ac08800d9785d4333572627a7f354f3a43
73a5f74d3840284bceaabced9cf99575b8c15d54
refs/heads/dev
2023-09-03T15:31:13.265845
2023-08-31T22:17:45
2023-08-31T22:17:45
90,356,372
9,794
606
MIT
2023-09-04T05:04:41
2017-05-05T08:50:14
Python
UTF-8
Python
false
false
897
py
mixins.py
from django.contrib import messages from archivebox.search import query_search_index class SearchResultsAdminMixin: def get_search_results(self, request, queryset, search_term: str): """Enhances the search queryset with results from the search backend""" qs, use_distinct = super().get_sea...
7fe7cb56f8e3f314576aaab119951e88280b47b0
55540f3e86f1d5d86ef6b5d295a63518e274efe3
/customer_app/bl602_demo_wifi/tests/bl602_demo_wifi_RPI_open_iperf/bl602_demo_wifi_RPI_open_iperf_tc_test.py
706a0e95ac6d5138e7d50e3fc9f0ff2d7b785eab
[ "Apache-2.0" ]
permissive
bouffalolab/bl_iot_sdk
bc5eaf036b70f8c65dd389439062b169f8d09daa
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
refs/heads/master
2023-08-31T03:38:03.369853
2023-08-16T08:50:33
2023-08-18T09:13:27
307,347,250
244
101
Apache-2.0
2023-08-28T06:29:02
2020-10-26T11:16:30
C
UTF-8
Python
false
false
11,879
py
bl602_demo_wifi_RPI_open_iperf_tc_test.py
from __future__ import print_function from __future__ import unicode_literals import socket,fcntl,struct,psutil import time,re,os import subprocess import psutil import datetime from tiny_test_fw import DUT, App, TinyFW from ttfw_bl import BL602App, BL602DUT @TinyFW.test_method(app=BL602App.BL602App, dut=BL602DUT.BL6...
aa590c8c0e2ad7b036c7e4a3ecddcea326ef35c9
e43377508fca0ce984594710e5a019f0b7e249a4
/O365/__init__.py
e0c22f25c1cff3fb4932448ef29a2c42d855f344
[ "Apache-2.0" ]
permissive
O365/python-o365
d6e443df1d98840c24bf284f571e4ab373b0b354
f1cb472c0c2835e1a7f398e489da8443887abdaa
refs/heads/master
2023-09-01T20:38:14.639088
2023-08-31T10:55:58
2023-08-31T10:55:58
30,961,752
1,305
381
Apache-2.0
2023-08-31T10:53:55
2015-02-18T10:50:04
Python
UTF-8
Python
false
false
471
py
__init__.py
""" A simple python library to interact with Microsoft Graph and Office 365 API """ import warnings import sys from .__version__ import __version__ from .account import Account from .connection import Connection, Protocol, MSGraphProtocol, MSOffice365Protocol from .utils import FileSystemTokenBackend, EnvTokenBackend...
0b4fd6c281ee351ca3a3577fcda2793dd99d7f41
abbf6a11c0590f6e5b7327e6f6df5a6c71af891d
/binstar_client/utils/pprint.py
ec5dc0d32767feb02f47e3de80fdd71ce7e4695c
[]
permissive
Anaconda-Platform/anaconda-client
3ce7848d938cfe62a2bad397a958774e5d28f8ff
45fb0a363ba7833deccee6db82a26a0b51a7ca75
refs/heads/master
2023-08-30T21:11:47.468128
2023-08-08T14:36:23
2023-08-08T14:36:23
9,064,487
119
238
BSD-3-Clause
2023-09-14T15:10:54
2013-03-27T21:52:37
Python
UTF-8
Python
false
false
4,050
py
pprint.py
# pylint: disable=missing-class-docstring,missing-function-docstring """ Created on Aug 8, 2013 @author: sean """ from __future__ import unicode_literals import logging from dateutil.parser import parse as parse_date from binstar_client.utils import config logger = logging.getLogger('binstar.pprint') fmt_access...
29f5f812e560d8a0a9e21de676ba10a01bfdfc40
c6858fdb11eee3beee96bc48e815b4c9e64eb545
/src/corner/__init__.py
2e8b2c4250c12f21281b9304733aa7eda299b41f
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
dfm/corner.py
b32a85f0344e3010da938469415011d7e11af048
e260dad7cbfcd6c8df234a43eac007d75c1ffa8f
refs/heads/main
2023-08-31T19:29:07.612100
2023-07-16T14:18:04
2023-07-16T14:18:04
5,706,934
385
205
BSD-2-Clause
2023-09-14T17:30:57
2012-09-06T18:51:44
Python
UTF-8
Python
false
false
263
py
__init__.py
# -*- coding: utf-8 -*- __all__ = ["corner", "hist2d", "quantile", "overplot_lines", "overplot_points"] from corner.core import hist2d, overplot_lines, overplot_points, quantile from corner.corner import corner from corner.version import version as __version__
181f6d688cb6284703526a8d1c28448a6abce1d2
34305ef03fffd872195fced3d946fcaccbc79ddf
/skrf/vi/vna/keysight/tests/test_pna.py
e88d00ded9c961a4ce7e5915d6f91e56c4a4de59
[ "BSD-3-Clause" ]
permissive
scikit-rf/scikit-rf
20477c643883b6b46dca50fca31ad1010a9512e9
26243ffc45160f17612badc880ad5d022036537a
refs/heads/master
2023-08-19T03:34:42.208425
2023-07-28T13:56:06
2023-07-28T13:56:06
3,218,028
555
276
BSD-3-Clause
2023-09-12T21:56:17
2012-01-19T14:25:58
Python
UTF-8
Python
false
false
8,409
py
test_pna.py
import numpy as np import pytest import skrf from skrf.vi.vna import ValuesFormat, keysight from skrf.vi.vna.keysight.pna import SweepMode, SweepType @pytest.fixture def mocked_ff(mocker): mocker.patch('skrf.vi.vna.keysight.PNA.__init__', return_value=None) mocker.patch('skrf.vi.vna.keysight.PNA.write') ...
b07f0254fc8bd85eed7fc7eba8a5bd6d603ab2f5
b0dd7779c225971e71ae12c1093dc75ed9889921
/tools/regression/xsl_reports/utils/makedirs.py
799c1849eeece29532c5061f6dba07c0c87e4e7f
[ "LicenseRef-scancode-warranty-disclaimer", "BSL-1.0" ]
permissive
blackberry/Boost
6e653cd91a7806855a162347a5aeebd2a8c055a2
fc90c3fde129c62565c023f091eddc4a7ed9902b
refs/heads/1_48_0-gnu
2021-01-15T14:31:33.706351
2013-06-25T16:02:41
2013-06-25T16:02:41
2,599,411
244
154
BSL-1.0
2018-10-13T18:35:09
2011-10-18T14:25:18
C++
UTF-8
Python
false
false
119
py
makedirs.py
import os.path import os def makedirs( path ): if not os.path.exists( path ): os.makedirs( path )
44f9d8555ff2a620f4cdd2cc4d6abe6ec6c1ec46
ae5d2b070383af8accf090e2cff69aaacb631147
/scripts/validate_crds.py
614c5ff1967d2566a93c1f016f1dab18e20fda52
[ "Apache-2.0" ]
permissive
istio/api
e530ebb0bff1193ef4963ad30d4479f7b4758687
56a12e041c2d968643abc2a5bc2dd08b6003f053
refs/heads/master
2023-09-04T11:22:05.084242
2023-08-31T15:29:11
2023-08-31T15:29:11
76,586,412
456
597
Apache-2.0
2023-09-11T21:39:32
2016-12-15T18:47:13
Shell
UTF-8
Python
false
false
3,890
py
validate_crds.py
# Copyright Istio 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 writing, soft...
aec3af1985c0b91410a96d4ec4ab6f0d5487f4bc
620323fc090cebaf7aca456ff3f7fbbe1e210394
/html_parsing/anivost_org.py
9df339aa03dd6adf41d275c21c6c2e6edc5ea6d4
[ "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
782
py
anivost_org.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import re import requests from bs4 import BeautifulSoup def get_last_series(url: str) -> int: rs = requests.get(url) root = BeautifulSoup(rs.content, "html.parser") fields_str = root.select_one("ul.flist").get_text(strip=True) ...
a2fd524863b311f531241428dff0d5cb1281688c
d2621d10d6d0aa4fcecbb11c281e3dd680b985fc
/ci/launcher/utils/__init__.py
8ecabed30a53270425ebf18b16da841496fb8518
[ "Apache-2.0" ]
permissive
pytorch/serve
7b562a4d6372e77ce28fc71a5b8d5455c6f02290
242895c6b4596c4119ec09d6139e627c5dd696b6
refs/heads/master
2023-08-31T05:24:10.950144
2023-08-31T02:49:22
2023-08-31T02:49:22
212,488,700
3,689
895
Apache-2.0
2023-09-13T22:34:31
2019-10-03T03:17:43
Java
UTF-8
Python
false
false
231
py
__init__.py
import logging import sys LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.INFO) LOGGER.addHandler(logging.StreamHandler(sys.stderr)) DEFAULT_REGION = "us-west-2" GPU_INSTANCES = ["p2", "p3", "p4", "g2", "g3", "g4"]
7091e00e9eb458e4a80799acc2f12310b807c508
61673ab9a42f7151de7337608c442fa6247f13bb
/tkinter/__canvas__/canvas-dash/example-1.py
d5bc79940246d4439bcf9c26d78240575fe4eb75
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
469
py
example-1.py
#!/usr/bin/env python3 import tkinter as tk root = tk.Tk() canvas = tk.Canvas(root) canvas.pack() canvas.create_line(0, 10, 400, 10, dash=(5, 1)) canvas.create_line(0, 20, 400, 20, dash=(5, 5)) canvas.create_line(0, 30, 400, 30, dash=(1, 1)) canvas.create_line(0, 40, 400, 40, dash=(4, 1)) canvas.create_line(0, 50, ...
e465fedc8093c5fd5e1d89e7a1e40267430d4a71
057a475216e9beed41983481aafcaf109bbf58da
/tests/integration/test_replicated_fetches_bandwidth/test.py
cd969746c31c9a96c35a6db2f130f8e7cf7cc144
[ "Apache-2.0" ]
permissive
ClickHouse/ClickHouse
fece5204263a5b4d693854b6039699265f1bb27f
6649328db809d51a694c358571539bc5820464be
refs/heads/master
2023-08-31T18:48:36.615225
2023-08-31T17:51:24
2023-08-31T17:51:24
60,246,359
23,878
5,449
Apache-2.0
2023-09-14T20:10:52
2016-06-02T08:28:18
C++
UTF-8
Python
false
false
10,032
py
test.py
#!/usr/bin/env python3 from helpers.cluster import ClickHouseCluster import pytest import random import string from helpers.network import NetThroughput import subprocess import time import statistics cluster = ClickHouseCluster(__file__) node1 = cluster.add_instance("node1", with_zookeeper=True) node2 = cluster.add_i...
7d0dd78b94a415b5959e29b5da20d9fe095366d9
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/autoscaling/attachment.py
6906774fea8ae348d4e8886d6803ff05cbe64862
[ "BSD-3-Clause", "Apache-2.0", "MPL-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
16,523
py
attachment.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...
d21cca21b0f84d7e534a3e1e223290c2837d4b7e
c5310ec02f28eb148d723b39c39dc437fc5fe983
/couler/tests/proto_repr_test.py
7d4982d5dbd2e4b7f1265ac7749f30289e33451c
[ "Apache-2.0" ]
permissive
couler-proj/couler
7ff6ae920dc454e75ef574d36467ff3bc56803a5
4203fa0eb7d01caa9b59c5e0087ffcf1ad4524ac
refs/heads/master
2023-08-26T11:36:06.162353
2023-08-02T18:50:34
2023-08-02T18:50:34
288,523,518
870
94
Apache-2.0
2023-07-03T20:23:11
2020-08-18T17:41:29
Python
UTF-8
Python
false
false
6,319
py
proto_repr_test.py
# Copyright 2021 The Couler Authors. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
96ff87bf657b093e1e100ac22b700b8aa3ef8b3b
172258e84111128f67351029b1418f3e48b9ad28
/min-image/runtimes/python/setup.py
af74cd1015ad018f0db935be39b29d0f8f9ff05d
[ "Apache-2.0" ]
permissive
open-lambda/open-lambda
41aff8e721d5df3298156dc34c20e98901d2b4ae
deaa1b6a8635c9cc789208a8beee17d8f07607b3
refs/heads/main
2023-08-30T21:56:32.180377
2023-08-27T02:06:28
2023-08-27T02:23:16
61,392,620
933
126
Apache-2.0
2023-09-07T17:08:45
2016-06-17T18:01:08
Go
UTF-8
Python
false
false
121
py
setup.py
from distutils.core import setup, Extension setup( ext_modules=[Extension("ol", ["ol.c"], libraries=["seccomp"])] )
4445912d8f8d0ae8355fb848a3b807056266a0c8
de84a9c84e9fd00fb1cf52c69381b20c96463f2b
/tests/test_cursing_nword.py
06c75bfd8066fa5261ebe9a531c53d7357cd8b3f
[ "BSD-3-Clause" ]
permissive
amperser/proselint
23b7b1a0963bf036dde9326b3bb0bbbfcdf26c61
b5b7536bec5fd461e45cacad87c2aab9ea33ac35
refs/heads/main
2023-08-11T08:45:59.641463
2023-07-27T13:28:58
2023-07-27T13:28:58
29,220,809
4,513
267
BSD-3-Clause
2023-09-10T20:53:11
2015-01-14T01:24:07
Python
UTF-8
Python
false
false
488
py
test_cursing_nword.py
"""Tests for cursing.nword check.""" from proselint.checks.cursing import nword as chk from .check import Check class TestCheck(Check): """The test class for cursing.nword.""" __test__ = True @property def this_check(self): """Boilerplate.""" return chk def test_smoke(self): ...
7d9e1be43f718541ead3d4ec7ce760d551546de2
6c88b2cea38b2cead9e2402d46a8fc64949c53df
/pkg/codegen/testing/test/testdata/output-funcs/python-extras/tests/test_codegen.py
a5d7718328cc65d8829333a7d57f68855b6dc9a2
[ "Apache-2.0" ]
permissive
pulumi/pulumi
a9b36c32f0cdd445c22f9ca64ce26c9ae5147575
46e2753d02d46a1c077930eeccdfe6738f46c0d2
refs/heads/master
2023-08-19T10:25:49.849189
2023-08-16T04:59:07
2023-08-16T04:59:07
72,477,752
17,553
1,082
Apache-2.0
2023-09-14T21:05:35
2016-10-31T21:02:47
Go
UTF-8
Python
false
false
7,592
py
test_codegen.py
# Copyright 2016-2021, Pulumi Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
d14f32f5aee6f7d7df2b024544933941c8f42bc7
c2bcf42e04a1e2146b41b250ff14e62fddcdf589
/tests/test_utils/utils_backend_onnx.py
ff9cb5763dbc67fd9238829dabb04044fd897b27
[ "Apache-2.0" ]
permissive
onnx/sklearn-onnx
0f958e1c090572fbe11e15f95bec975d1780cf8d
895c3a76a315c7a6567a1a07a96dc658994ec16a
refs/heads/main
2023-08-18T18:49:25.164433
2023-08-17T09:52:31
2023-08-17T09:52:31
162,340,939
455
92
Apache-2.0
2023-08-31T16:04:13
2018-12-18T20:18:48
Python
UTF-8
Python
false
false
44,348
py
utils_backend_onnx.py
# SPDX-License-Identifier: Apache-2.0 """ Helpers to test runtimes. """ import io import contextlib import types import numpy as np from scipy.special import expit # noqa import pandas import onnx from onnx import AttributeProto, numpy_helper import onnx as onnx_package from onnx.defs import onnx_opset_version try: ...
0f0fe3d037e00bc3b2c1b6fdeb9cb4109b8b2333
13ce98780a7e6e7e1412ae91a0fa97a91cf66a73
/examples/offline_examples/test_user_agent.py
27f4374f22810ab5b5c588cd8b1c6988b802b536
[ "MIT" ]
permissive
seleniumbase/SeleniumBase
c607312c0b8f45297088c1283150eb73ea32c553
63d95c42fc84bbcea415c6d8a3a201587b89c92e
refs/heads/master
2023-09-06T05:58:07.923058
2023-09-02T14:14:03
2023-09-02T14:14:03
17,420,614
3,656
944
MIT
2023-09-13T21:12:20
2014-03-04T23:07:33
Python
UTF-8
Python
false
false
1,446
py
test_user_agent.py
import pytest from seleniumbase import BaseCase BaseCase.main(__name__, __file__) @pytest.mark.offline # Can be run with: "pytest -m offline" class OfflineTests(BaseCase): def test_get_user_agent(self): self.open("data:,") user_agent = self.get_user_agent() print('\nUser Agent = "%s"' % u...
b36a4338a4ecb62c06ecb44577d1307d9fcca47b
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/scripts/nlp_language_modeling/t0/t0_dataset_preproc.py
618c02c0cc1321ec638a6e7ad6ccd1b1ad461ccf
[ "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
7,512
py
t0_dataset_preproc.py
# Copyright (c) 2022, 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...
d264764913a447be511fc42ee50dd36d3119191d
3648e4b254fcc2ee3e5d6b9082869c8abf2e3533
/simplejson/tests/__init__.py
79d1d1706f7e876914b3e809d9a3c9bc7a2952b8
[ "AFL-2.1", "Python-2.0", "MIT" ]
permissive
simplejson/simplejson
9a74f735b79222020306e784bd4c6206485c8517
aeb63ee451732b1e77008c28153380d8dd0fda20
refs/heads/master
2023-09-01T15:09:10.463204
2023-04-06T19:00:56
2023-04-06T19:00:56
1,333,666
1,471
339
NOASSERTION
2023-04-06T17:26:02
2011-02-06T05:47:45
Python
UTF-8
Python
false
false
2,512
py
__init__.py
from __future__ import absolute_import import unittest import sys import os class NoExtensionTestSuite(unittest.TestSuite): def run(self, result): import simplejson simplejson._toggle_speedups(False) result = unittest.TestSuite.run(self, result) simplejson._toggle_speedups(True) ...
07f38a28b7a5279a60453b1f65c53e95e53ea67b
d718da620c1adffdd202355e2b641d1a1fc18cbe
/src/pyfme/environment/environment.py
08e8260ccb0d873251696f42b7fe99ad045cf729
[ "MIT" ]
permissive
AeroPython/PyFME
af46465725ee9adb5ac149757d02032a8a40ddc3
156fa9f1db097f107c20ad7354c71b1eaee4cbb1
refs/heads/master
2021-01-24T06:47:30.243437
2020-08-13T11:34:37
2020-08-13T11:34:37
42,995,365
210
103
MIT
2020-08-13T11:34:39
2015-09-23T10:47:58
Python
UTF-8
Python
false
false
1,341
py
environment.py
""" Python Flight Mechanics Engine (PyFME). Copyright (c) AeroPython Development Team. Distributed under the terms of the MIT License. """ class Environment(object): """ Stores all the environment info: atmosphere, gravity and wind. """ def __init__(self, atmosphere, gravity, wind): """ ...
ca80607bb177ea309079bb1f0c38c24d3f371bb1
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/ai/modelscope/modelscope/models/cv/image_instance_segmentation/datasets/transforms.py
f0dde75990903ecd5a042715cfc5d6d27e16581e
[ "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
3,992
py
transforms.py
# Copyright (c) Alibaba, Inc. and its affiliates. import os.path as osp import numpy as np from modelscope.fileio import File def build_preprocess_transform(cfg): assert isinstance(cfg, dict) cfg = cfg.copy() type = cfg.pop('type') if type == 'LoadImageFromFile': return LoadImageFromFile(**c...
4bcffb2d270e0a5b55653af4274e75b0c14115da
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/python_for_finance_yuxing/GARCH/GARCH.py
5bd9ac5fd0e1fc7d985965630ea74b588772051a
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
545
py
GARCH.py
import scipy as sp sp.random.seed(12345) n=1000 # n is the number of observations n1=100 # we need to drop the first several observations n2=n+n1 # sum of two numbers alpha=(0.1,0.3) # GARCH (1,1) coefficients alpha0 and alpha1, see Equation (3) beta=0.2 errors=sp.random.normal(0,1,n2) t=sp.zeros(n2) t[0]=sp.random.nor...
200174bc4eea6e39ed65a44c191b444f7ae532f4
35ffbadf2f410ba8a195271af28ee2804121661f
/tests/smoke/panda_thumb.py
971367ceeefcb87d0d290055fa5117792a533401
[ "Apache-2.0" ]
permissive
avatartwo/avatar2
08799f13fd416c24eef374333e87eaa831573f60
a2d06c9313db55f11a10579c8a45d05b025fa9ea
refs/heads/main
2023-08-29T21:17:23.962466
2023-03-21T16:33:07
2023-03-21T16:33:07
94,234,201
498
118
Apache-2.0
2023-03-21T16:33:09
2017-06-13T16:31:51
Python
UTF-8
Python
false
false
1,929
py
panda_thumb.py
import os from os.path import abspath from time import sleep from nose.tools import * import socket from avatar2 import * from avatar2.peripherals.nucleo_usart import * ''' The ARM architecture encodes the thumbbit at a different bit in xpsr/cpsr based on the used ISA version. The PandaTarget does not correctly e...
919e52fa5b5db358d8811bd3da0f311f79ed7b69
8f267fe1157904023004aa1fcee8cdcaf1d69f74
/tempest/tests/lib/services/network/test_qos_minimum_packet_rate_rules_client.py
3cc3de3662e623c98a82d260a8ac83a114f7d734
[ "Apache-2.0" ]
permissive
openstack/tempest
a65737f3e62d4ebeb7e387feac7bcc636d3f5fe0
3932a799e620a20d7abf7b89e21b520683a1809b
refs/heads/master
2023-08-28T15:04:21.241805
2023-08-28T10:16:57
2023-08-28T10:16:57
2,356,406
270
407
Apache-2.0
2022-06-29T15:52:45
2011-09-09T15:56:02
Python
UTF-8
Python
false
false
5,034
py
test_qos_minimum_packet_rate_rules_client.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 # d...
a7c2761dd50056f7d29cdc700739f3ea841cff6c
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Numerical_Methods_in_Engineering_with_Python_Kiusalaas/downhill.py
8d58bdf251116d1a150830ad4404d2e9bfd7495e
[]
no_license
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
2,298
py
downhill.py
## module downhill ''' x = downhill(F,xStart,side,tol=1.0e-6) Downhill simplex method for minimizing the user-supplied scalar function F(x) with respect to the vector x. xStart = starting vector x. side = side length of the starting simplex (default is 0.1) ''' from numpy import zeros,dot,argma...
2e726dce34d8ca1356a29428916ef1dc458e9936
f1190adf3f20c17508d9791fd79cb59470ee5d8e
/django_echarts/entities/layouts.py
471791effa9bf6ef502577423a64860f36ee6acb
[ "MIT" ]
permissive
kinegratii/django-echarts
38c42d6cd2078d01220b981fd7322b59d54f4fc5
12de6cf4faab1ecbbc06bd487727cc16791ee556
refs/heads/master
2023-03-18T02:26:11.916961
2023-03-17T02:33:34
2023-03-17T02:33:34
98,728,999
264
73
MIT
2023-03-17T02:33:35
2017-07-29T11:45:17
Python
UTF-8
Python
false
false
1,790
py
layouts.py
import re from functools import singledispatch from typing import List, Union __all__ = ['LayoutOpts', 'TYPE_LAYOUT_OPTS', 'any2layout'] _defaults = {'l': 8, 'r': 8, 's': 8, 't': 6, 'b': 6, 'f': 12} _rm = re.compile(r'([lrtbfsa])(([1-9]|(1[12]))?)') class LayoutOpts: """Layout for user defined. """ __s...
a9d218203f2a728ad3af79f62055d1e59882a35c
b1c7e72548eaa15907d94449ef5d672ac141580c
/classes/notification.py
16cce244ff599ec791c4e63344e0752b469c2cc6
[ "MIT" ]
permissive
JasonMillward/Autorippr
cea5afdfb0a6a7062f510fcfbc2bd1d2dfa63a5f
226ce079e8cf582450bb4ce6e6f705754e50effd
refs/heads/master
2021-01-17T01:20:30.680340
2018-09-18T21:54:04
2018-09-18T21:54:04
6,088,710
191
59
MIT
2018-10-19T21:18:30
2012-10-05T10:16:10
Python
UTF-8
Python
false
false
1,906
py
notification.py
# -*- coding: utf-8 -*- """ Notification Class Released under the MIT license Copyright (c) 2014, Jason Millward @category misc @version $Id: 1.7.0, 2016-08-22 14:53:29 ACST $; @author Jason Millward @license http://opensource.org/licenses/MIT """ import logger class Notification(object): def __i...
77234502a497e798819c8a982e41b550aaf73241
ecaba173879f92f24e3c951866fda23c0a4fc426
/perfkitbenchmarker/providers/openstack/os_disk.py
5c254a9e68e73fa4f93ba312d53757827811f03d
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
8,574
py
os_disk.py
# Copyright 2015 PerfKitBenchmarker 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...
cebf415a0f39285e1cc737c0d65f91825ed9cc5e
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/tests/schema/test_interface.py
2c8047adbb22bd4e3aee80a1943b0ae5ae03c5dd
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
11,218
py
test_interface.py
from dataclasses import dataclass from typing import Any, List import pytest from pytest_mock import MockerFixture import strawberry from strawberry.types.types import StrawberryObjectDefinition def test_query_interface(): @strawberry.interface class Cheese: name: str @strawberry.type class...
1c2f6e5c31b3f684dc805f11c375f33dbcbb4e2e
b16d94254ad16565e1d197e74fa2c24d9a8506ba
/src-distributed/train/train.py
966978dd307e564b8664b94e53695fc5a4c54d95
[ "LGPL-2.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "CC0-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "Python-2.0", "MIT" ]
permissive
data-science-on-aws/data-science-on-aws
438455319f05e18e9d154777a474db26cd73005f
2e2405f2968c454065447a0ef9aa1dcc2c05b477
refs/heads/generative
2023-07-22T16:55:38.372524
2023-05-03T03:31:04
2023-05-03T03:31:04
244,029,618
687
231
Apache-2.0
2023-04-12T17:01:11
2020-02-29T19:33:58
Jupyter Notebook
UTF-8
Python
false
false
15,235
py
train.py
import argparse from functools import partial from pathlib import Path import os import datetime import datasets import evaluate import nltk import numpy as np import torch from accelerate import Accelerator from accelerate.utils import LoggerType from datasets import concatenate_datasets, load_dataset from nltk.token...