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
ef4bda7c330df05128c5cca72f93a3257c4f56f9
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/eventhub/azure-eventhub/samples/sync_samples/receive_batch_with_checkpoint.py
7dcff583b43a5af3c72785567069d7ffb28be1d9
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
2,065
py
receive_batch_with_checkpoint.py
#!/usr/bin/env python # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # ---------------------------------------------...
f873ab1695a58114b2506935fff359c73e2ee78e
bd4c2a3cdb08ec17564b1072c9ef4ac1fc2bfd96
/python/src/nnabla_ext/cuda/utils/inspection/profile.py
872d8200711b6e84df24fecad3974851bd94c81b
[ "Apache-2.0" ]
permissive
sony/nnabla-ext-cuda
9dac5f70e91001ddd79b88c3c8a88b00fe219112
75ae622cc014f8c9f4d879b12c67c7c3b862613b
refs/heads/master
2023-08-09T11:07:01.897201
2023-08-08T00:52:52
2023-08-08T00:52:52
94,951,955
106
39
Apache-2.0
2023-08-23T00:39:08
2017-06-21T01:54:57
Cuda
UTF-8
Python
false
false
2,289
py
profile.py
# Copyright 2020,2021 Sony Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34e12727b80da99e6b0d13fc2f998dcad6d8c662
4ff11364a6dc59bd6bf7fb4efd868c7e45b1caab
/calamari_ocr/ocr/voting/params.py
06847f4e2818822d4fa25eeb13acc2663951ccd0
[ "Apache-2.0" ]
permissive
Calamari-OCR/calamari
6cf29512e71025b90807462b452595abe94cb8f3
2f71b7eb08339d25ccb21d80c1d5b851f3d5bdaa
refs/heads/master
2023-08-22T05:34:23.008839
2023-08-18T11:01:23
2023-08-18T11:01:23
126,039,059
1,019
245
Apache-2.0
2023-09-05T09:30:58
2018-03-20T15:22:29
Python
UTF-8
Python
false
false
374
py
params.py
from dataclasses import dataclass from dataclasses_json import dataclass_json from tfaip.util.enum import StrEnum class VoterType(StrEnum): SequenceVoter = "sequence_voter" ConfidenceVoterDefaultCTC = "confidence_voter_default_ctc" @dataclass_json @dataclass class VoterParams: type: VoterType = VoterTy...
f280628187e92cfe146ac8aae34b81269b903eaf
77c94e8d7297c009a57bee406c601dcc985bf5b9
/src/ZPublisher/tests/test_pubevents.py
fad2f32eca52c3c973046eb3fb329086ad9df9cc
[ "ZPL-2.1" ]
permissive
zopefoundation/Zope
94b71ce10e501e4c0e55d16d94f1bc94ff575212
c31b1c635e85a1766f2666cb0bd117337ae5fa67
refs/heads/master
2023-09-03T20:22:32.121746
2023-08-30T06:34:44
2023-08-30T06:34:44
8,436,350
335
115
NOASSERTION
2023-09-11T21:21:27
2013-02-26T16:13:23
Python
UTF-8
Python
false
false
12,861
py
test_pubevents.py
from io import BytesIO from sys import exc_info from sys import modules from unittest import TestCase import zExceptions from Testing.ZopeTestCase import FunctionalTestCase from Testing.ZopeTestCase import user_name from Testing.ZopeTestCase import user_password from ZODB.POSException import ConflictError from zope.co...
994ee973c25675684f1d2afabd8b8a18ee97d7c8
4129d5b10c0ac8288db205f91ed45a40b812ef5c
/photutils/psf/models.py
83bc6e24a675fb8559fc465a7d6864c9ae705ca1
[ "BSD-3-Clause" ]
permissive
astropy/photutils
163762aa560fd13c8a4a49aff2d6b0a522cedbcc
a6d629774c52cc82af18d0444c6e5584e5d0b492
refs/heads/main
2023-09-01T20:51:05.823954
2023-08-28T19:35:54
2023-08-28T19:35:54
2,640,766
204
130
BSD-3-Clause
2023-09-13T22:46:41
2011-10-25T02:39:28
Python
UTF-8
Python
false
false
33,166
py
models.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module provides models for doing PSF/PRF-fitting photometry. """ import copy import warnings import numpy as np from astropy.modeling import Fittable2DModel, Parameter from astropy.utils.exceptions import AstropyWarning from photutils.aperture ...
c6062e5b9ef97bf7dc4bb4217f8b30c6a6058825
a5a36aa7200b0be6ea11ad669ba0534ee1b896a6
/tests/cast_to_array_test.py
dc40361c0439ff5f2ee57ee4eaebb68f5f3a1101
[ "MIT" ]
permissive
vaexio/vaex
ec42919f272a723f884fece3c83975112e7a6f30
15245cf4332d4423ac58bd737aee27d911a1b252
refs/heads/master
2023-08-11T08:03:33.248943
2023-07-21T10:40:58
2023-07-21T10:40:58
24,528,468
7,892
686
MIT
2023-09-04T05:07:11
2014-09-27T09:44:42
Python
UTF-8
Python
false
false
805
py
cast_to_array_test.py
from common import * import pytest def test_preserve_int64(ds_local): ds = ds_local assert np.array(ds[['ints']], dtype=np.int64).dtype.kind == 'i', "expected int type precision" assert np.array(ds[['ints']], dtype=np.int64)[0][0] == -2**62-1, "lost precision" def test_safe_casting(ds_local): ds = ds...
4ab02c99876c5c05362379620d974637e5ae95a0
40e8515dba964d51660f72bb497ac7fbb3246b2c
/tests/seleniumwire/test_storage.py
67f83a837fe3f78cbe95708028e0287fd65e3bc4
[ "MIT" ]
permissive
wkeeling/selenium-wire
47e4caf4ed114aa274d428736779277716b3bada
79fa2e81e690b9c32882d006a6799c3a316fe346
refs/heads/master
2023-08-07T19:45:35.911730
2022-11-05T15:54:47
2022-11-05T15:54:47
137,925,467
1,625
232
MIT
2023-07-31T02:40:30
2018-06-19T17:43:24
Python
UTF-8
Python
false
false
21,023
py
test_storage.py
import glob import os import pickle import shutil import tempfile from collections.abc import Iterator from datetime import datetime, timedelta from fnmatch import fnmatch from unittest import TestCase from unittest.mock import patch from seleniumwire.request import Request, Response, WebSocketMessage from seleniumwir...
334af5d77cca4d47af355cc912af2b8961b84564
0351ff5888ba1bec6b8643ea0b4fb4aa2d805b53
/tests/test_settings.py
df4e15291a2cc997c9f52fd9b757111f162a2531
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
criteo/biggraphite
aa71ca2105df0da92d41c5894f191e4cc54f7a2e
1f647ada6b3f2b2f3fb4e59d326f73a2c891fc30
refs/heads/master
2022-12-11T04:00:28.341918
2021-10-01T09:07:29
2021-10-01T09:07:29
57,889,412
129
43
Apache-2.0
2022-11-04T19:39:42
2016-05-02T12:42:07
Python
UTF-8
Python
false
false
1,548
py
test_settings.py
#!/usr/bin/env python # Copyright 2018 Criteo # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
e74c102df6bf4a893a745e62139a5e34834e1abe
3a2071c34e3c35847b2bcc2a5d3b3a74114daa0f
/win-tests.py
0581659281a752721346a929b3d324e31d8dd582
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-other-permissive", "X11", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT", "HPND-Markus-Kuhn", "LicenseRef-scancode-unicode", "Apache-2.0", "FSFAP" ]
permissive
apache/subversion
18a9142afe63f060ffc0814fe0c758c91ad8bd31
dd957c4991e61bde23cc60d13449ea8b65f80c43
refs/heads/trunk
2023-09-04T15:22:36.755177
2023-08-29T19:55:03
2023-08-29T19:55:03
454,263
520
207
Apache-2.0
2023-08-26T14:17:30
2009-12-31T09:00:10
C
UTF-8
Python
false
false
49,879
py
win-tests.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 n...
3f15da17a14711b6d4f2cb53c159afe934bd570d
7c308313eda555e8c19f0fb67865e400be9cab1e
/paper2remarkable/providers/_info.py
15d05cd696b30eea34eb87b0351f3f77b41f5cdb
[ "MIT" ]
permissive
GjjvdBurg/paper2remarkable
91f51ca13c27e088b1d5bb740b9185195ee1cc0c
53c84cb336d336f10e980d13a581ae9879b50957
refs/heads/master
2023-07-20T00:26:09.355078
2023-07-09T10:24:47
2023-07-09T10:24:47
168,977,039
274
20
MIT
2023-01-16T21:45:47
2019-02-03T18:15:07
Python
UTF-8
Python
false
false
3,735
py
_info.py
# -*- coding: utf-8 -*- """Functionality for retrieving paper info """ import bs4 import titlecase import unidecode from ..log import Logger from ..utils import clean_string from ..utils import get_page_with_retry logger = Logger() class Informer: """Base class for the informers. The "informer" class is ...
69927772a9e1f7982a21c05c6a0b83ff79535c89
7c9936e3eb0d6672a4bb1ef9fc54eb03a220a11d
/tests/integration_tests/security/test_jail.py
7eb5dc319cf89288a8c79a60b16bf1d7a8edfa8f
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
firecracker-microvm/firecracker
804f4977ee05bb89ef48acdb1b02e8bce4f9721b
028ace17e73dabb40601ecca95fea28bb6da4b4a
refs/heads/main
2023-08-28T12:52:02.105444
2023-08-25T10:41:36
2023-08-25T16:03:30
107,505,869
22,629
1,831
Apache-2.0
2023-09-14T18:18:40
2017-10-19T06:18:47
Rust
UTF-8
Python
false
false
19,030
py
test_jail.py
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """Tests that verify the jailer's behavior.""" # pylint: disable=redefined-outer-name import functools import http.client as http_client import os import resource import stat import subprocess import time ...
4a9ae820ed06d244cd65e9a8d2802b39a4220d75
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
/math/py-numarray/patches/patch-cfg__packages.py
011f6ea51f5fc2262e6a0b21b0a47e62ed88c57b
[]
no_license
NetBSD/pkgsrc
a0732c023519650ef821ab89c23ab6ab59e25bdb
d042034ec4896cc5b47ed6f2e5b8802d9bc5c556
refs/heads/trunk
2023-09-01T07:40:12.138283
2023-09-01T05:25:19
2023-09-01T05:25:19
88,439,572
321
138
null
2023-07-12T22:34:14
2017-04-16T20:04:15
null
UTF-8
Python
false
false
1,112
py
patch-cfg__packages.py
$NetBSD: patch-cfg__packages.py,v 1.1 2015/01/27 05:05:30 dbj Exp $ The vecLib framework has been obsolete since at least osx 10.3 use the Accelerate framework instead --- cfg_packages.py.orig 2005-07-21 13:57:10.000000000 +0000 +++ cfg_packages.py @@ -28,13 +28,12 @@ if USE_LAPACK: lapack_link_args = [] l...
c7a19a4ef1cb956a00bdf7f6e22f7cb1894445d9
242fcea1166b6627421bd777b3c6a8379e1476ac
/bsdploy/tests/test_bootstrap_utils.py
b2e85a06371e360136401d83d5bc7ba983b77220
[ "BSD-3-Clause" ]
permissive
ployground/bsdploy
7fc4778b36f7cb1c6622dcf6730aeb5afc51c345
4029c5fa1059d9cf932fdf1366ed663c088bf659
refs/heads/master
2023-06-21T20:50:00.734997
2022-08-17T15:28:06
2022-08-17T15:28:06
17,872,093
156
28
BSD-3-Clause
2023-06-14T14:20:42
2014-03-18T15:58:41
Python
UTF-8
Python
false
false
12,674
py
test_bootstrap_utils.py
from ansible.errors import AnsibleUndefinedVariable from bsdploy import bootstrap_utils import os import pytest @pytest.fixture def bu(env_mock, environ_mock, run_mock, ployconf, tempdir): ployconf.fill('') environ_mock['HOME'] = tempdir.directory return bootstrap_utils.BootstrapUtils() def test_realmem...
cce44179333d72918d91599700cf466d4d38f959
db85e6659af346ceaffa328c3b790fa77c513d6f
/arxiv_vanity/scraper/tests/test_bulk_sources.py
4297cf3754e4e9148bcafb06269fea3b947e5f38
[ "Apache-2.0" ]
permissive
arxiv-vanity/arxiv-vanity
d51ca32eeed22853c07eb2c81b5d5ac4649241fc
f7eb2f19ee2c3120a3084cfce2ba96fb766fbf8e
refs/heads/master
2023-07-31T14:39:04.566729
2022-01-18T22:55:31
2022-01-18T22:55:42
100,118,170
1,567
105
Apache-2.0
2023-02-13T05:30:09
2017-08-12T14:41:41
Python
UTF-8
Python
false
false
576
py
test_bulk_sources.py
from ..bulk_sources import convert_source_file_to_arxiv_id from django.test import TestCase class BulkSourcesTest(TestCase): def test_convert_source_file_to_arxiv_id(self): self.assertEqual( convert_source_file_to_arxiv_id("source-files/1805.12181.gz"), "1805.12181" ) self.asse...
e349c95e7b0a099193700d65cde19e051d280f97
a5b66100762c0ca7076de26645ef1b732e0ee2d8
/test_python_toolbox/test_nifty_collections/test_lazy_tuple/test_lazy_tuple.py
554ec3c26d61087b7e3cae9ba6aee00280f79d10
[ "MIT", "BSD-3-Clause", "Apache-2.0" ]
permissive
cool-RR/python_toolbox
63400bbc004c63b32fe421b668a64bede4928e90
cb9ef64b48f1d03275484d707dc5079b6701ad0c
refs/heads/master
2022-01-26T14:41:29.194288
2021-12-25T06:49:40
2021-12-25T06:49:40
3,066,283
130
15
NOASSERTION
2021-12-25T06:49:41
2011-12-29T01:39:51
Python
UTF-8
Python
false
false
5,656
py
test_lazy_tuple.py
# Copyright 2009-2017 Ram Rachum. # This program is distributed under the MIT license. '''Testing module for `python_toolbox.nifty_collections.LazyTuple`.''' from __future__ import generator_stop import uuid import itertools import collections from python_toolbox import cute_iter_tools from python_toolbox import se...
186dd7d3e3c25011c61a9daeade46f743629eb7e
d5043b21713419902a9ada8ad77ce704cd2ce6b0
/demos/common_demo_stuff.py
e7a1d20e8ff2c1c1e8f359dabcc153de442e7272
[ "BSD-2-Clause", "LicenseRef-scancode-public-domain" ]
permissive
jupyter/terminado
a697076384253c230603456a9cb0ea320dcb3c25
122af79f8805cee2c3af1bc914c809dedf2a5ff8
refs/heads/main
2023-09-03T21:39:42.465178
2023-08-01T09:54:44
2023-08-01T09:54:44
24,617,259
232
84
BSD-2-Clause
2023-09-14T02:05:14
2014-09-29T23:44:25
Python
UTF-8
Python
false
false
520
py
common_demo_stuff.py
import os.path import webbrowser import tornado.ioloop import terminado STATIC_DIR = os.path.join(os.path.dirname(terminado.__file__), "_static") TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), "templates") def run_and_show_browser(url, term_manager): loop = tornado.ioloop.IOLoop.instance() loop.add...
1251a77564f36e291c78eb2891008333ede7d78b
c6759b857e55991fea3ef0b465dbcee53fa38714
/tools/nntool/nntool/importer/onnx/handlers/backend/non_max_suppression.py
8ad5338980fac40d7a77caa195174fa8c40a1261
[ "Apache-2.0", "AGPL-3.0-or-later", "AGPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
2,840
py
non_max_suppression.py
# Copyright (C) 2020 GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This progr...
dc63aefa78626c8b1be5c2daf9c4e2fabe7ba1c9
3d7fbf490b060f1cf2b5b438df3f802cf4880feb
/strategy.py
053e0c86fa73b7c52b8ffb3df467f9ecab5cd5a5
[]
no_license
gennad/Design-Patterns-in-Python
6e5e847e5b0b327c324ffa794c6923af115896de
9377958fcaee0c547ed9481a97e5fb67c934aa38
refs/heads/master
2022-06-09T12:20:39.854652
2020-12-19T22:54:42
2020-12-19T22:54:42
2,097,144
635
218
null
2021-08-06T01:15:36
2011-07-24T16:15:57
Python
UTF-8
Python
false
false
1,136
py
strategy.py
class StrategyExample: def __init__(self, func=None): if func: self.execute = func def execute(self): print "Original execution" def executeReplacement1(self): print "Strategy 1" def executeReplacement2(self): print "Strategy 2" if __name__ == "__main__": stra...
80abbbe69dd6727386f76d51e982eb810c7960e1
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMOffline/Trigger/python/TopMonitoring_cff.py
0d68473a4b4ff6a3d528b21ff271d18a4c0e3d85
[ "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
54,090
py
TopMonitoring_cff.py
import FWCore.ParameterSet.Config as cms from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring from Configuration.Eras.Modifier_run2_HLTconditions_2018_cff import run2_HLTconditions_2018 from Configuration.Eras.Modifier_run2_HLTconditions_2017_cff import run2_HLTconditions_2017 from Configuration.Eras.Modifi...
1544597b980c4bba46652dffa4c96caa73abebba
b305d7e8d309d963750ecfca62a4ea4b16d01b1f
/tests/unit/test_frame_utils.py
37bb1fa22bab57493c94c3f146234ac1e91ba632
[ "MIT" ]
permissive
JosXa/tgintegration
67440042039e67e70402cce01c018d354e841104
39dfc82eb5c80bb6845c12edf0c112e2fa7de26f
refs/heads/master
2023-07-21T17:08:09.425620
2022-12-01T18:38:50
2022-12-01T18:38:50
131,617,892
132
20
MIT
2023-07-20T11:37:36
2018-04-30T16:11:49
Python
UTF-8
Python
false
false
391
py
test_frame_utils.py
from tgintegration.utils.frame_utils import get_caller_function_name def test_get_caller_function_name(): def foo(): return bar() def bar(): return get_caller_function_name() assert foo() == "foo" def test_get_caller_function_name_lambda(): def foo(): f = lambda: get_caller...
831c0bd48146f9d9abba45322cceebf38155f36b
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Introduction_to_numerical_programming_using_Python_and_CPP_Beu/Ch09/Python/P09-Halides.py
910e07b6ec6aa6650dfb1f662554146482f3e06b
[]
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
3,377
py
P09-Halides.py
# Absorption maximum of halides by linear and non-linear regression from modfunc import * from graphlib import * def Func(x, a, npar): # model function for MarqFit return a[1] * pow(x,a[2]) # main nfit = 100 # number of points plotted from model nn...
5b24080c54d062e9b469fad286efdbe0fe715761
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/terraform/checks/resource/alicloud/RDSIsPublic.py
e38810cd3838cd9b740b07eefed87642accbceb0
[ "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
935
py
RDSIsPublic.py
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class RDSIsPublic(BaseResourceCheck): def __init__(self): name = "Ensure database instance is not public" id = "CKV_ALI_9" supported_reso...
2d07e559440046af61ab0c09d72b4f0420d4b132
c641636e184c0ec1dcc7b851bad678c898cdd05d
/examples/kddcup2022/wpf_baseline/metrics.py
783cac7bf58fda84f9d6c853d9010c45437b454c
[ "Apache-2.0" ]
permissive
PaddlePaddle/PGL
d8f0a82854a141bee1afdddd9a77bdd723c83ed8
7a55649d46d7ad93de31eb9b3ebf71b82d1fcffb
refs/heads/main
2023-08-17T10:33:02.425526
2023-08-04T02:52:06
2023-08-04T02:52:06
191,286,408
1,719
341
Apache-2.0
2023-08-04T02:52:07
2019-06-11T03:23:28
Python
UTF-8
Python
false
false
5,797
py
metrics.py
# -*-Encoding: utf-8 -*- ################################################################################ # # Copyright (c) 2022 Baidu.com, Inc. All Rights Reserved # ################################################################################ """ Description: Some useful metrics Authors: Lu,Xinjiang (luxinjiang@ba...
4c8d7a450d9812c66bef52443ada7be66f270a91
2f1e3f24f2798507c9eb73185a955c9bfb735140
/tests/test_knn_embed.py
95cc89fd0da4327411b86e2ce8bce77b675887a8
[ "MIT" ]
permissive
massquantity/LibRecommender
e4f55b06b2208c794a3f97f7ff89413fa9beaffa
8d5fbe9c177f5b91c2b6f19a155a83320dd0e20c
refs/heads/master
2023-08-31T23:48:37.634663
2023-08-20T11:58:15
2023-08-20T11:58:15
174,493,761
251
55
MIT
2023-08-20T11:58:16
2019-03-08T07:58:27
Python
UTF-8
Python
false
false
4,824
py
test_knn_embed.py
import sys import pytest from libreco.algorithms import ALS, LightGCN, RNN4Rec from tests.utils_data import set_ranking_labels @pytest.mark.skipif( sys.platform.startswith("win") or sys.platform.startswith("darwin"), reason="Possible issue on Windows and MaxOS platform using `nmslib`", ) @pytest.mark.skipif...
a30af0e6883dcf04aa8df5a473f458c2ab718e5c
2337351b228818e41be3002bd38f68f77c2aa074
/sa/profiles/Mellanox/Onyx/get_capabilities.py
59cb38ddadf59fb3403a3399f977f9373b3fdf97
[ "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
751
py
get_capabilities.py
# --------------------------------------------------------------------- # Mellanox.Onyx.get_capabilities # --------------------------------------------------------------------- # Copyright (C) 2007-2022 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # ...
4f9a5bb978bccfee0e9e7c0949ee2ea1a591483a
5a6ccde5f37cc86b6fc0812b2bf40f42eab23906
/B-set/1104B. Game with string.py
f4479bad8d7cae7d8ecb52ff053de4609fc6a31e
[]
no_license
Waqar-107/Codeforces
23f2b1edffb85f6f020107f03e09a455d3e6e792
f0d2f25aa6a09c06083b82c39cdf3288ec2eecba
refs/heads/master
2023-03-09T07:55:46.583363
2023-03-04T09:57:44
2023-03-04T09:57:44
82,915,896
196
138
null
2023-02-11T22:06:20
2017-02-23T10:29:34
C++
UTF-8
Python
false
false
274
py
1104B. Game with string.py
#from dust i have come, dust i will be s = input() stk = [] cnt = 0 for i in range(len(s)): if len(stk) == 0: stk.append(s[i]) else: if s[i] == stk[len(stk) - 1]: stk.pop() cnt += 1 else: stk.append(s[i]) if cnt & 1 : print('Yes') else: print('No')
6883d9a7bbafc8bc31d2c8424e25e640ec8582ff
e22fd36933c9114a9df1694e7a6274bf059de2a6
/selfdrive/ui/SConscript
017ce6679362d02d55eb9b8939319fe5c9269e5d
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
commaai/openpilot
66dfb7f31290bc8f58c9ead95d56697a52b45afb
a0b49d54222c52ff0112c402bc0e0d9262e77a66
refs/heads/master
2023-09-05T21:34:14.076796
2023-09-05T21:15:18
2023-09-05T21:15:18
74,627,617
46,071
9,878
MIT
2023-09-14T21:51:23
2016-11-24T01:33:30
Python
UTF-8
Python
false
false
6,262
SConscript
import os import json Import('qt_env', 'arch', 'common', 'messaging', 'visionipc', 'cereal', 'transformations') base_libs = [common, messaging, cereal, visionipc, transformations, 'zmq', 'capnp', 'kj', 'm', 'OpenCL', 'ssl', 'crypto', 'pthread'] + qt_env["LIBS"] if arch == 'larch64': base_libs.ap...
c301a5910e5a1ce0cbbbe81431eabcbada7e7504
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/chrome/browser/apps/app_service/DEPS
b7716010568786093b7797e19fec6863459b428c
[ "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
446
DEPS
include_rules = [ "+components/services/app_service/public", "+components/app_constants", "+components/app_restore", "+components/webapk", ] specific_include_rules = { "notifications_browsertest\.cc": [ "+ash/system/message_center/arc/arc_notification_manager.h", "+ash/system/message_center/arc/arc_n...
6d09b2f1479e550d62fc9a194032c9b031805916
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/documentdb/v20230315preview/get_database_account.py
47c8389eef251e487df7e97bdaadc66a87a5c7d6
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
34,143
py
get_database_account.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . im...
17cae3012543669f644ea9f8ef1a39008978526e
1f7736bca0ea40ea989f8e3b5598e21aa853c997
/sling/myelin/tests/opcheck.py
7e620f3e6ca14935c25a00d5f30620f336ecaa6f
[ "Apache-2.0" ]
permissive
google/sling
93045899c975ef244a3bdd09b4cea3c536db098d
f408a148a06bc2d62e853a292a8ba7266c642839
refs/heads/master
2023-05-31T19:30:22.235743
2021-01-22T19:30:50
2021-01-22T19:30:50
89,349,679
2,069
322
Apache-2.0
2021-01-22T21:43:15
2017-04-25T10:47:40
C++
UTF-8
Python
false
false
22,995
py
opcheck.py
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
82622b409a20bea54fb0ff9f1ca9be3f13a3873b
a5622dafafd782af153be2bc0bd19cb086fd07b2
/amqp-postgres/amqp_postgres/postgres_publisher.py
44d598aa95faf26486736a56d02a4d5a84e9732c
[ "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
13,033
py
postgres_publisher.py
import json import logging import queue from time import time from threading import Thread, Lock import psycopg2 import psycopg2.errorcodes from psycopg2.extras import execute_values, DictCursor from collections import OrderedDict from cloudify.constants import EVENTS_EXCHANGE_NAME, LOGS_EXCHANGE_NAME from manager_re...
245a7ee8043575c6a692639c1a62d6ab6b2c9581
a4ea525e226d6c401fdb87a6e9adfdc5d07e6020
/src/azure-cli/azure/cli/command_modules/eventhubs/_validator.py
62e4d40fa9ff31d0fd175acd53cadf3eda2374c5
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
Azure/azure-cli
13340eeca2e288e66e84d393fa1c8a93d46c8686
a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca
refs/heads/dev
2023-08-17T06:25:37.431463
2023-08-17T06:00:10
2023-08-17T06:00:10
51,040,886
4,018
3,310
MIT
2023-09-14T11:11:05
2016-02-04T00:21:51
Python
UTF-8
Python
false
false
2,860
py
_validator.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
b7d4ab4cd885756b3011fb3951025ab3f1752304
21590487701d2dcbe1a1c1dd81c6e983f7523cb6
/opentelemetry-api/src/opentelemetry/metrics/_internal/observation.py
7aa24e3342dee66de7be47219521626d2174ec17
[ "Apache-2.0" ]
permissive
open-telemetry/opentelemetry-python
837199e541c03cff311cad075401791ee2a23583
d8490c5f557dd7005badeb800095cb51b553c98c
refs/heads/main
2023-08-26T06:47:23.837997
2023-08-17T22:35:13
2023-08-17T22:35:13
185,478,926
1,361
668
Apache-2.0
2023-09-14T20:48:40
2019-05-07T21:13:30
Python
UTF-8
Python
false
false
1,600
py
observation.py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
d22c47855b9ae2928e9c4dce7a7ce0de603bc2b5
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/volumio/__init__.py
7d8a443aaf87eb14187a83d68e5f845efd213340
[ "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
41
py
__init__.py
"""Tests for the Volumio integration."""
0183bb41da83bbb24e1accbf743ae5f42b8d8bd0
2e6b87dccfaf95eded0c26215f42b584cc0ce393
/tina/core/engine.py
b54685ed34ebab52e844fffbf96db7d1c83aa374
[ "MIT" ]
permissive
taichi-dev/taichi_three
2d3c4022436777bbd6005a38f8cc27cd1f442430
62596cf36fba1c5a528796c51942ce44ed76292a
refs/heads/master
2023-06-20T19:59:09.218689
2021-07-10T09:32:09
2021-07-10T09:32:09
272,924,688
204
30
MIT
2021-07-10T09:32:10
2020-06-17T08:52:31
Python
UTF-8
Python
false
false
2,387
py
engine.py
from ..common import * @ti.data_oriented class Engine: def __init__(self, res_x=512, res_y=None): if res_y is None: res_y = res_x self.res = tovector((res_x, res_y) if isinstance(res_x, int) else res_x) self.depth = ti.field(int, self.res) self.maxdepth = 2**30 ...
cc0dcfcf3f269ad82656b8c0149cbaa3aa0e9183
83963c19fd120dcc7498b726cc56de7fbb900a47
/tests/parse_timewarp_output.py
1e86aa04147b927d6d550d0c6cee67bd03bda79a
[ "MIT", "LicenseRef-scancode-public-domain", "CC-BY-2.0" ]
permissive
RhetTbull/osxphotos
55ad4f1257bcd26bb3fbadde6ce5dd59c0917354
2cb5a4d18a27be6ccf68f5f35abd39418d238016
refs/heads/main
2023-09-02T18:11:06.227191
2023-09-02T16:06:51
2023-09-02T16:06:51
192,160,985
1,287
93
MIT
2023-09-14T14:10:58
2019-06-16T07:07:49
Python
UTF-8
Python
false
false
1,920
py
parse_timewarp_output.py
""" Parse --inspect and --compare-exif output for testing""" from __future__ import annotations from collections import namedtuple from typing import List # filename, uuid, photo time (local), photo time, timezone offset, timezone name InspectValues = namedtuple( "InspectValues", [ "filename", ...
fb8610bb7a2a15668694ed34eb6e6cdce3c0ce6f
35b6013c1943f37d1428afd2663c8aba0a02628d
/dataflow/extensible-templates/e2e_test.py
fcb58c97097cdbe818c61841fa30d730b6d684c5
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
3,935
py
e2e_test.py
# Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
62a5f120ef403b71f0b322d4a04669dc566427bb
7ae5ac3400cffe998d11680416f287d37ffcc837
/Chapter04/tsp.py
38f2195ba8f874f2bfa3bf4a6a480b5ad860b8e9
[ "MIT" ]
permissive
PacktPublishing/Hands-On-Genetic-Algorithms-with-Python
4aaf7b7838872c91358976ddbcec6220c98c789f
cc5a1b8711a3e6cc6d3835335f2d09b8822e97f5
refs/heads/master
2023-02-05T13:12:02.245250
2023-01-30T10:14:05
2023-01-30T10:14:05
173,236,250
230
145
MIT
2022-08-15T08:56:50
2019-03-01T04:45:38
Python
UTF-8
Python
false
false
6,354
py
tsp.py
import csv import pickle import os import codecs import numpy as np from urllib.request import urlopen import matplotlib.pyplot as plt class TravelingSalesmanProblem: """This class encapsulates the Traveling Salesman Problem. City coordinates are read from an online file and distance matrix is calculated. ...
558f65070371af0a4ceef61ec87026e9de5e7583
9efca95a55cb4df52d895d42f1ec10331516a734
/tests/constants.py
7664220e9e9e10ec6244b00128256a73a044c79a
[ "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
108
py
constants.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 ACCOUNT_ID = "644160558196"
0d0a5f6eeaee7c862efc8ff21b65acbe2d16b597
3f55217e912141e04815bc8bcb6fbd5638d0896e
/test/testcases/cal/test_rcalc.py
84163ea07a964db621137551b70a598156a2d54a
[ "BSD-2-Clause" ]
permissive
NREL/Radiance
bfbb93c99d86368ad0f27052a2a5504aeced47f8
2fcca99ace2f2435f32a09525ad31f2b3be3c1bc
refs/heads/master
2021-12-26T12:42:04.586614
2021-12-18T00:43:56
2021-12-18T00:43:56
8,210,805
164
68
NOASSERTION
2019-06-06T19:57:11
2013-02-15T00:47:56
C
UTF-8
Python
false
false
2,559
py
test_rcalc.py
# -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals # We currently only test for output of recno after receiving a # single column list from cnt(). # This serves to uncover the nl eating bug in buffered pipes # in Visual Studio 2015 before update 2. import struct import unitt...
4f1c52c3483a73c224c90a03fd9acce46ea7d65a
0b093577a82356c47c780647c769906a4339ce6a
/tests/web/flaskapp_test.py
7b9b9b66643283a3ba469ccbbae69467e7638d9d
[ "MIT" ]
permissive
ateliedocodigo/py-healthcheck
a50e6a49509c2b29d46a299d4a37737d4066de7a
baa108cc0bc7309d1a7c084cb8fd1fc21fc3ffe4
refs/heads/develop
2022-12-09T11:03:03.861761
2022-11-24T14:55:40
2022-11-24T14:55:40
79,926,501
107
28
MIT
2022-11-02T15:34:52
2017-01-24T15:54:01
Python
UTF-8
Python
false
false
975
py
flaskapp_test.py
import time from flask import Flask from healthcheck import HealthCheck, EnvironmentDump app = Flask(__name__) health = HealthCheck() envdump = EnvironmentDump() # add your own check function to the healthcheck def redis_available(): time.sleep(3) return True, 'redis ok' def rest_available(): time.s...
c4d574a286f73fc9ccea4b3e5954e5aae41bd1b8
eb47bf8011f957e95a84ac64aab29598c59081a1
/sample/CollisionHandler/SetupMaterials.py
3d2ef06a705772bc7813b0a0b67e4def09561916
[ "Zlib", "MIT" ]
permissive
choreonoid/choreonoid
fd776aaab99d9ec544e5ceec04fbc283b8a3aee3
94b353722d5b9ff10e9c0ca8982e549f85b5f59f
refs/heads/master
2023-09-01T12:27:17.849641
2023-08-04T13:54:12
2023-08-04T13:54:12
274,977,786
117
30
NOASSERTION
2023-05-23T08:25:33
2020-06-25T17:36:56
C++
UTF-8
Python
false
false
244
py
SetupMaterials.py
from cnoid.Base import * from cnoid.BodyPlugin import * SR1 = Item.find("SR1").body SR1.link("LLEG_ANKLE_R").setMaterial("Foot") SR1.link("RLEG_ANKLE_R").setMaterial("Foot") Floor = Item.find("Floor").body Floor.rootLink.setMaterial("Floor")
7709101b7b2494e0abcddc7fdb971d70929d46d5
f487532281c1c6a36a5c62a29744d8323584891b
/sdk/python/pulumi_azure/privatedns/get_resolver_virtual_network_link.py
bf5c9250bd4e7dc903637c225b6ba551f37136a8
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-azure
a8f8f21c46c802aecf1397c737662ddcc438a2db
c16962e5c4f5810efec2806b8bb49d0da960d1ea
refs/heads/master
2023-08-25T00:17:05.290397
2023-08-24T06:11:55
2023-08-24T06:11:55
103,183,737
129
57
Apache-2.0
2023-09-13T05:44:10
2017-09-11T20:19:15
Java
UTF-8
Python
false
false
5,707
py
get_resolver_virtual_network_link.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...
ba141b3844454c57a39f4b80b58419927b3dce7a
a1218b2f919ee5a2c105d00fa7bebb17695fcbf7
/segregation/multigroup/multi_dissim.py
35c1fd7efe13e8be4c2bd4fd58e7d038ef9d5fdf
[ "BSD-3-Clause" ]
permissive
pysal/segregation
a7f8d457355ef24175c404e40f1eb22bddfa6c4d
f431b1d1a25fdf11ef216ee242457eecc8b1c731
refs/heads/main
2023-09-02T12:17:23.686120
2023-08-23T18:44:33
2023-08-23T18:44:33
162,503,796
108
32
BSD-3-Clause
2023-08-23T18:44:35
2018-12-19T23:59:59
Jupyter Notebook
UTF-8
Python
false
false
3,290
py
multi_dissim.py
"""Multigroup dissimilarity index""" __author__ = "Renan X. Cortes <renanc@ucr.edu>, Sergio J. Rey <sergio.rey@ucr.edu> and Elijah Knaap <elijah.knaap@ucr.edu>" import numpy as np from geopandas import GeoDataFrame from .._base import MultiGroupIndex, SpatialImplicitIndex np.seterr(divide="ignore", invalid="ignore"...
d020f555afd2d32ad7c6b4e64dbe2cd26d64717c
f39fbc00e7584a3e93f92534ca016fd951110cf1
/tests/rptest/remote_scripts/schema_registry_test_helper.py
2459aa80a84a0422c1538e42eb6e0d26411a20ee
[]
no_license
redpanda-data/redpanda
93234ff70348d3ed131bdc2d121fc8dcb7bffca9
bee41676303c0e5fb161256b844bb14a135de8cd
refs/heads/dev
2023-08-27T21:40:47.107399
2023-08-26T11:45:30
2023-08-26T11:45:30
309,512,982
4,297
308
null
2023-09-14T20:36:21
2020-11-02T22:43:36
C++
UTF-8
Python
false
false
8,932
py
schema_registry_test_helper.py
# This is not a test. It is a remote script for use by schema_registry_test.py import threading import requests import sys import logging import random import time import json log = logging.getLogger("helper") log.setLevel(logging.DEBUG) log.addHandler(logging.StreamHandler()) # How many errors before a worker give...
d72fe83d7328f695bbfffb8b38c42eb9f0f6c3b3
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/mo/openvino/tools/mo/front/kaldi/split_recurrent_memoryoffset.py
0e12ea839d865347fae346ebcdcfb0e6e692ac8e
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
3,330
py
split_recurrent_memoryoffset.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import networkx as nx from openvino.tools.mo.front.common.partial_infer.utils import int64_array from openvino.tools.mo.front.common.replacement import FrontReplacementSubgraph from openvino.tools.mo.graph.graph import Graph from openvi...
ce4aeb06c6dbf473dc150419e67613fef2112462
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/modbus/climate.py
3acf8d7ac296e2b4fa4213af4b97e981fa32878f
[ "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
11,660
py
climate.py
"""Support for Generic Modbus Thermostats.""" from __future__ import annotations from datetime import datetime import struct from typing import Any, cast from homeassistant.components.climate import ( ClimateEntity, ClimateEntityFeature, HVACMode, ) from homeassistant.const import ( ATTR_TEMPERATURE, ...
ef218201f7b7ab93e0d5fcb97c2311435d110976
c7c7f01e20a0383f008c8df94fbf2f42cbc56de5
/src/wagtailmedia/apps.py
313620b923974dae5a5b6c360b692056c9f5215c
[ "BSD-3-Clause" ]
permissive
torchbox/wagtailmedia
c1c8a399a8298c89db0f0190d0a99be224dfd380
8614c1fb0e2a568d81e555fd91c90ef05f4f6026
refs/heads/main
2023-08-31T02:37:07.141773
2023-08-01T16:27:36
2023-08-01T16:27:36
56,688,576
218
81
BSD-3-Clause
2023-08-08T06:08:02
2016-04-20T13:20:38
Python
UTF-8
Python
false
false
804
py
apps.py
from django.apps import AppConfig from django.db.models import ForeignKey class WagtailMediaAppConfig(AppConfig): default_auto_field = "django.db.models.AutoField" name = "wagtailmedia" label = "wagtailmedia" verbose_name = "Wagtail media" def ready(self): from wagtail.admin.compare impor...
f5759c8a698c74ab7be4af03bcb5dce02419f70b
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/mo/unit_tests/mo/ops/op_test.py
240a4146cd1f2fef863cb9ca19e819d764df148a
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
1,198
py
op_test.py
# Copyright (C) 2018-2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import unittest from openvino.tools.mo.ops.lstm_cell import LSTMCell from openvino.tools.mo.graph.graph import Node from unit_tests.utils.graph import build_graph, regular_op nodes = { **regular_op('Op1', {'type': 'Op1', 'kind': 'o...
7ddd3c27183710ccadb56be03104c364e62fa1eb
db85e6659af346ceaffa328c3b790fa77c513d6f
/arxiv_vanity/papers/migrations/0016_auto_20180619_1655.py
3fcf0384f8070e4236b7579f8e5c72e8b32cbac8
[ "Apache-2.0" ]
permissive
arxiv-vanity/arxiv-vanity
d51ca32eeed22853c07eb2c81b5d5ac4649241fc
f7eb2f19ee2c3120a3084cfce2ba96fb766fbf8e
refs/heads/master
2023-07-31T14:39:04.566729
2022-01-18T22:55:31
2022-01-18T22:55:42
100,118,170
1,567
105
Apache-2.0
2023-02-13T05:30:09
2017-08-12T14:41:41
Python
UTF-8
Python
false
false
937
py
0016_auto_20180619_1655.py
# Generated by Django 2.0.6 on 2018-06-19 16:55 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [("papers", "0015_auto_20180117_1737")] operations = [ migrations.AddField( model_name="sourcefile", ...
acf2b8f7cd53ba5b4fc44747e955746abe9e9063
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferSceneUI/RenameUI.py
39a305ba708461495a47f14bfe3e9596880f4871
[ "BSD-3-Clause" ]
permissive
GafferHQ/gaffer
e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64
59cab96598c59b90bee6d3fc1806492a5c03b4f1
refs/heads/main
2023-09-01T17:36:45.227956
2023-08-30T09:10:56
2023-08-30T09:10:56
9,043,124
707
144
BSD-3-Clause
2023-09-14T09:05:37
2013-03-27T00:04:53
Python
UTF-8
Python
false
false
5,714
py
RenameUI.py
########################################################################## # # Copyright (c) 2022, Cinesite VFX Ltd. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions ...
e181ddf4580b025b39534317c9bc16770623633f
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/framework/docstr/trigonometric_ops.py
ed11b85d7b7fc66a26928a3cd1047fcac821bc36
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
1,847
py
trigonometric_ops.py
""" Copyright 2020 The OneFlow 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 agr...
2e1cdf360a37418372c1454fd2cf7ffd585e5d89
88dda5e76cef286c7db3ae7e5d1a32d28f7815a3
/reviewboard/webapi/tests/test_diff_context.py
7a421cb25d19216dc6e53f6f6c62f5acbb01cf06
[ "MIT" ]
permissive
reviewboard/reviewboard
f4d3bada08ba9d6ef53add2d1fdb82bd6cc63a1e
c3a991f1e9d7682239a1ab0e8661cee6da01d537
refs/heads/master
2023-08-31T09:03:14.170335
2023-08-30T08:22:43
2023-08-30T08:22:43
285,304
1,141
353
MIT
2023-06-07T16:51:02
2009-08-22T21:39:49
Python
UTF-8
Python
false
false
5,017
py
test_diff_context.py
"""Tests for the DiffContextResource.""" from djblets.webapi.testing.decorators import webapi_test_template from reviewboard.webapi.resources import resources from reviewboard.webapi.tests.base import BaseWebAPITestCase from reviewboard.webapi.tests.mimetypes import diff_context_mimetype from reviewboard.webapi.tests...
0668a985d558020ef9a59fa1715550ea70034f76
a173777f4ba02c1e683d75810fa6932487ba42cc
/2022/seccon-quals-2022/babycmp/solve.py
a355f4f4e979b05914d82241217a39acde1eedd5
[]
no_license
perfectblue/ctf-writeups
ba9454ef06e1004253f004154fba6ae00d88ca09
3f2a8a2c2598d700f33cb3f39ceb515e2ba46312
refs/heads/master
2023-06-25T19:28:05.222110
2022-12-11T04:55:13
2022-12-11T04:55:13
133,306,580
606
75
null
2023-01-20T22:38:17
2018-05-14T04:53:27
Python
UTF-8
Python
false
false
321
py
solve.py
import angr import claripy p = angr.Project('./chall.baby') flag = claripy.BVS('flag', 50 * 8) st = p.factory.entry_state(argc=2, args=[b'prog', flag]) sim = p.factory.simulation_manager(st) sim.explore(find=0x4012c2, avoid=0x40127d) sim.move('found', 'active') print(sim.active[-1].solver.eval(flag).to_bytes(50, 'big')...
16246e9498f4c287b0324ecb1405174d30a86785
695180c14d136c1af33e50497c7957dc74835680
/models/experimental/show_and_tell/configuration.py
17f1611775b606bc98c2760596e13ee92a8fbe5d
[ "Apache-2.0" ]
permissive
tensorflow/tpu
4517c43b42c3dd98b8abafbbd9457384dd9639b1
0f7adb97a93ec3e3485c261d030c507eb16b33e4
refs/heads/master
2023-09-02T23:33:31.299394
2023-09-01T00:43:03
2023-09-01T00:43:03
96,946,693
5,627
2,107
Apache-2.0
2023-09-13T17:50:43
2017-07-11T23:54:39
Jupyter Notebook
UTF-8
Python
false
false
3,771
py
configuration.py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
2e4a153a50e85cb8af0d1b0cf9c1dc8c88b15e47
fe255e9aee1d0c0f565054f2346221a836f869ab
/bot/exts/utils/utils.py
dd9daef1ddc32929a25b9fd8a9a49971545fe396
[ "MIT", "BSD-3-Clause", "Python-2.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
python-discord/bot
fe04810807f3a712911e76a4d4f0ef03a7eb5c86
f2048684291cc6358565e96ef3562512fbeb2505
refs/heads/main
2023-09-03T21:53:23.100718
2023-09-02T11:07:30
2023-09-02T11:07:30
120,088,519
1,479
1,091
MIT
2023-09-14T17:07:00
2018-02-03T12:20:25
Python
UTF-8
Python
false
false
8,419
py
utils.py
import difflib import re import unicodedata from discord import Colour, Embed, utils from discord.ext.commands import BadArgument, Cog, Context, clean_content, command, has_any_role from discord.utils import snowflake_time from bot.bot import Bot from bot.constants import Channels, MODERATION_ROLES, Roles, STAFF_PART...
9475a5b2418a89c4f9b2960d4dc58e5df584061d
763fe5b00b54da8711f79658f1baf1d42d7844c1
/docs/demos/theme_explorer/modal.py
aa03f52ed5015e464f7d643bd78efe7b6b0d2986
[ "Apache-2.0" ]
permissive
facultyai/dash-bootstrap-components
6082f5af9eb2b148556e0280eda88e31bedca3f1
696f5fbafceb49ad91776f45f300b782efb72cfc
refs/heads/main
2023-08-31T03:34:16.817053
2023-08-29T20:04:23
2023-08-29T20:04:23
149,749,075
989
277
Apache-2.0
2023-09-12T10:11:26
2018-09-21T10:33:46
JavaScript
UTF-8
Python
false
false
777
py
modal.py
import dash_bootstrap_components as dbc from dash import html from .util import make_subheading COOKIE = "https://todaysmama.com/.image/t_share/MTU5OTEwMzkyMDIyMTE1NzAz/cookie-monster.png" # noqa modal = html.Div( [ make_subheading("Modal", "modal"), html.P( [ dbc.Butt...
7796d6be8018c8009959538b8248d27a721c1507
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow_nightly/source2.7/tensorflow/contrib/model_pruning/__init__.py
d32bedbcd6b63bc8e473a9e9d1c8e0753877e6f8
[ "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
2,409
py
__init__.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32607edd696239e2d47011c184ed4abd6b7782b6
226727e281e6ce17450fac3ea78d1a3c4a3999fc
/elastica/rod/factory_function.py
9cd3b84b06495e1ebeadd81278583460f3c3dea6
[ "MIT" ]
permissive
GazzolaLab/PyElastica
20df23e97560d05ef50e60f2aeefb420968fb01d
49017d456aa10032e0ba1af23d5afd92cecedfa5
refs/heads/master
2023-08-31T14:28:48.056038
2023-08-18T16:54:51
2023-08-18T16:54:51
254,172,891
159
94
MIT
2023-09-09T04:11:01
2020-04-08T18:47:47
Python
UTF-8
Python
false
false
14,848
py
factory_function.py
__doc__ = """ Factory function to allocate variables for Cosserat Rod""" from typing import Optional, Tuple import logging import numpy as np from numpy.testing import assert_allclose from elastica.utils import MaxDimension, Tolerance from elastica._linalg import _batch_cross, _batch_norm, _batch_dot def allocate( ...
ac5e4fd0fae10199cdc061861d83dcd9d809a905
f312fcd24d94be8b32e2d1e50643b01c619aa23b
/tensorboard/plugins/audio/summary.py
7f089b202e737496097b2a150056d105a1527b15
[ "Apache-2.0" ]
permissive
tensorflow/tensorboard
bf316fc5d47f78ef980dd2106c99207892a508d5
5961c76dca0fb9bb40d146f5ce13834ac29d8ddb
refs/heads/master
2023-09-03T23:59:03.264261
2023-08-30T22:24:07
2023-08-30T22:24:07
91,379,993
6,766
2,063
Apache-2.0
2023-09-14T20:55:56
2017-05-15T20:08:07
TypeScript
UTF-8
Python
false
false
8,574
py
summary.py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
5975253bfbecffdb68193a4973ae7cbe492d9d66
56a632793f4fe58fde4b4c5146e9d532bd956f6f
/tests/test_inspect.py
cd90ba98aeb0145a2d40b95393e69fae615ff06e
[ "X11", "Libpng", "BSD-3-Clause", "Zlib", "BSL-1.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference" ]
permissive
conda/conda-build
d7583d48958144c8d9633e4acb3c2371b9309f4f
63bf8a6c08c1415a2e675639971b14a4dd4a0688
refs/heads/main
2023-09-01T10:25:17.896359
2023-08-30T15:32:34
2023-08-30T15:32:34
16,008,423
370
498
NOASSERTION
2023-09-14T18:35:23
2014-01-17T18:46:21
Python
UTF-8
Python
false
false
1,011
py
test_inspect.py
# Copyright (C) 2014 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause import re import sys import pytest from conda_build import api def test_inspect_linkages(): if sys.platform == "win32": with pytest.raises(SystemExit) as exc: out_string = api.inspect_linkages("python") as...
1d00755484693ca7b23519e9efdc0556dd4c1278
b04cc98a746d1df457183bc14908094a8be00ba1
/example/auto_compression/ocr/eval.py
0e2cb2ef087950c812cd9af13fecf55eda1edbff
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleSlim
a3bcaef0c92016b7f6946d58787f87c7db8ff3f8
bb02b103a89a09635941bc0bbbd38506d7412468
refs/heads/develop
2023-08-31T01:47:27.824722
2023-08-25T08:06:08
2023-08-25T08:06:08
228,290,594
1,534
402
Apache-2.0
2023-08-29T09:37:55
2019-12-16T02:56:50
Python
UTF-8
Python
false
false
3,602
py
eval.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...
cccd7482764d347d3c94d4e60f7cd98d6abd425b
00efa24c6c89c2c41e641431c3f685f02f7a26be
/specs/matchers/built_in/be_above_spec.py
d7cb90771dc047477216b478b1c7885e1ebb222a
[ "Apache-2.0" ]
permissive
jaimegildesagredo/expects
0e80c3ed4e3063abcbe45fc3b1af79bd248eb832
7c1bbb1833fa5f5cd4e3428cfd8859b122011f53
refs/heads/master
2022-11-24T23:48:11.458697
2022-11-15T17:44:07
2022-11-15T17:44:07
10,266,355
208
34
NOASSERTION
2022-11-15T09:14:42
2013-05-24T12:55:59
Python
UTF-8
Python
false
false
654
py
be_above_spec.py
# -*- coding: utf-8 -* from expects import * from expects.testing import failure with describe('be_above'): with it('should pass if number is above expected'): expect(5).to(be_above(4)) with it('should fail if number is not above expected'): with failure('expected: 1 to be above 4'): ...
1160c76fa66da6669afde2e2f6ce5b124c96cc67
ee6672fe056d589d4bddd8016afa366de61bec4e
/ttrv/theme.py
af662df786e13cb5142cf942cb93c94797b5f3cf
[ "MIT" ]
permissive
tildeclub/ttrv
e1b48930bc52c6bc2bee3cd4ed95ca6a8e2ce610
cda664fac8463b91367cc8b683038887966ce4ba
refs/heads/master
2021-06-27T00:53:22.177736
2021-05-18T05:51:32
2021-05-18T05:51:32
227,508,939
248
30
MIT
2021-03-19T02:21:54
2019-12-12T03:07:36
Python
UTF-8
Python
false
false
22,143
py
theme.py
# pylint: disable=bad-whitespace import os import codecs import curses import logging from collections import OrderedDict from contextlib import contextmanager import six from six.moves import configparser from .config import THEMES, DEFAULT_THEMES from .exceptions import ConfigError _logger = logging.getLogger(__n...
99134a82d4d571e3f9897775babacd8938b31a47
39164ede111f154b31cbb61663ea837f16f8aa4f
/odps/ml/enums.py
b881a8e9644f0b719ee0d0a85ca326c825c61f6b
[ "Apache-2.0" ]
permissive
aliyun/aliyun-odps-python-sdk
217631252e6d52e75354a2a19faab5b9ff40e272
c5b897f03759b1a9851505eea3858a96d628f105
refs/heads/master
2023-08-16T22:42:12.441717
2023-07-19T06:28:25
2023-07-19T06:28:25
45,234,875
437
116
Apache-2.0
2023-08-03T06:45:34
2015-10-30T07:07:59
Python
UTF-8
Python
false
false
1,140
py
enums.py
# encoding: utf-8 # Copyright 1999-2022 Alibaba Group Holding 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 a...
d06095d3bd3d5310b2b0a67b1b7b1c6665af7d0d
1ad268817e4f048815df6e7b7669c45257a37b0e
/kartothek/core/cube/constants.py
1fbff2e3a3779b19dfee425bc64cff4bd5ae9db3
[ "MIT" ]
permissive
JDASoftwareGroup/kartothek
07c7f2fceb3dcee5cf8d0a6a93f4c1060eb0bcf4
1821ea5df60d4079d3911b3c2f17be11d8780e22
refs/heads/master
2023-05-26T11:43:04.781173
2021-12-10T09:15:19
2021-12-10T09:15:19
184,608,549
178
59
MIT
2023-05-15T21:56:50
2019-05-02T15:45:42
Python
UTF-8
Python
false
false
1,477
py
constants.py
""" Common constants for Kartothek. """ from kartothek.serialization import ParquetSerializer __all__ = ( "KTK_CUBE_DF_SERIALIZER", "KTK_CUBE_METADATA_DIMENSION_COLUMNS", "KTK_CUBE_METADATA_KEY_IS_SEED", "KTK_CUBE_METADATA_STORAGE_FORMAT", "KTK_CUBE_METADATA_VERSION", "KTK_CUBE_UUID_SEPERATOR",...
85824cd58ae633439a0f2a1953ff997153a8e3fe
e45960e0d586320b9b7bc86c42636c4db9e687bc
/cli-scanner/src/test/resources/cf-helloworld/setup.py
d97382689c4f83fff28b37e6d141c0809c205110
[ "Apache-2.0", "EPL-1.0", "BSD-3-Clause", "EPL-2.0", "MIT" ]
permissive
eclipse/steady
52a5ae38151a77991e876d7466d53b6f41073855
8565716d823fe11a93a3c8f826b8eb2cc0a2375a
refs/heads/master
2023-08-26T02:18:23.838774
2023-04-28T12:58:21
2023-04-28T12:58:21
145,424,401
184
70
Apache-2.0
2023-08-28T20:17:37
2018-08-20T13:54:15
Java
UTF-8
Python
false
false
326
py
setup.py
from setuptools import setup, find_packages setup( name='cf-helloworld', version='1.0', description='Minimalistic CF python application', author='Roman Kindruk', author_email='roman.kindruk@sap.com', install_requires=[ 'flask>=0.11', 'gunicorn>=19.0'], packages=find_package...
d59e610850aae031ede65e5e9dce3dc5c9917517
78c8e8b86edc843b11b73e9bb03dac640d4dfde1
/zoopt/algos/opt_algorithms/racos/racos_classification.py
0ab521b96f9034e2463ac7d87b1ff490f7773693
[ "MIT" ]
permissive
eyounx/ZOOpt
7d5b842ea01ce676664a08c6200203c77aea3923
2ca4a9fcc0a7a2e93a225e6e193712d04c26723c
refs/heads/master
2023-08-12T16:30:34.627872
2022-06-02T04:48:49
2022-06-02T04:48:49
79,076,232
435
107
MIT
2020-04-05T03:23:02
2017-01-16T02:41:05
Python
UTF-8
Python
false
false
16,481
py
racos_classification.py
""" This module contains the class RacosClassification, which provides a classifier for all Racos algorithms. Author: Yu-Ren Liu Updated by: Ze-Wen Li """ from zoopt.dimension import Dimension, Dimension2 from zoopt.utils.tool_function import ToolFunction import copy import numpy as np from zoopt.utils.zoo_g...
20653f1249d7297760a36603373d781d494ea301
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/CloudbusLocation.py
775c9068a8c76147e2f2e30fc21f283b5f4d08aa
[ "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,178
py
CloudbusLocation.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class CloudbusLocation(object): def __init__(self): self._lat = None self._lng = None @property def lat(self): return self._lat @lat.setter def lat(self, value...
f288f11ac1d45a80e5d67989dcf801c11629f28f
d71c509e18834d4545d613823f28f6b5a7651be8
/files/config/target_ios.py
91ad147ab22376e3eac48a50dbd31f3b2441b9b2
[ "MIT" ]
permissive
ezored/ezored
4cb75ecddccef0cf2576edc28912f96878b09d70
c6fd66f06c0f9a5694160f76d254a318fa7d1762
refs/heads/main
2022-07-12T05:07:52.897937
2022-07-01T08:29:30
2022-07-01T08:29:30
175,111,647
124
21
MIT
2022-07-01T08:29:31
2019-03-12T01:28:12
C++
UTF-8
Python
false
false
5,551
py
target_ios.py
import os from files.core import const from files.config import gluecode as config def run(proj_path, target_name, params): return { "project_name": "ezored", "version": "1.0.0", "build_types": ["Debug", "Release"], "archs": [ { "arch": "armv7", ...
55a55d856b9809ae405bc9f7b77fc769e7c1619d
b9fef83e6cd4fa365328336200b4d42b1fea3af5
/documentation/docbuild/documenters.py
239bf718696c774094f2472a49f01e2cbd1a13b7
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cuthbertLab/music21
af3501d966518d140e50b66ad7d5656faab873a7
fdb126c2c22c53a919a42cf5c0354f3b2aed4c99
refs/heads/master
2023-08-27T21:26:06.420775
2023-08-27T16:42:42
2023-08-27T16:42:42
14,121,294
1,813
441
NOASSERTION
2023-09-12T13:52:44
2013-11-04T19:31:59
Python
UTF-8
Python
false
false
57,313
py
documenters.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # Name: documentation/library/documenters.py # Purpose: music21 documentation helper classes for proper formatting # # Authors: Josiah Wolf Oberholtzer # Christopher Ariza # ...
d8b3b56bda84c186b9ab56aa1a93e81bf29fda08
bea2e5924a62b76a767b3eb915abb3f95a225926
/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/advanced_mia_example.py
f033aa8240be8d56ca38a4ae26ae88cb4fa357b5
[ "Apache-2.0", "MIT" ]
permissive
tensorflow/privacy
741ddc106e9b73384a1356bf915dc8f7f97ce768
c92610e37aa340932ed2d963813e0890035a22bc
refs/heads/master
2023-09-03T20:42:21.040653
2023-08-30T19:53:38
2023-08-30T19:54:08
162,747,292
1,881
493
Apache-2.0
2023-09-14T19:55:15
2018-12-21T18:46:46
Python
UTF-8
Python
false
false
9,837
py
advanced_mia_example.py
# Copyright 2022, The TensorFlow 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 t...
c3b5cb291eb9a3427e16ef8bb7257edac3e01718
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/mystrom/config_flow.py
3dc334d825261e09b772a9fabed2c662efb8ce59
[ "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,828
py
config_flow.py
"""Config flow for myStrom integration.""" from __future__ import annotations import logging from typing import Any import pymystrom from pymystrom.exceptions import MyStromConnectionError import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_HOST, CONF_NAME from home...
5f9c67049dc8842b2800ea8f4538781d96c7264d
0f0ab377a952e81a3bde6fd0af911e2641a3fe27
/tests/flow_field_unit_test.py
5b84403c73019dbe96832d22e9014cae0cda5423
[ "Apache-2.0" ]
permissive
NREL/floris
a9a0bbdec5d61195d0e57ad18646f28f07731c8c
59e53a66aef134a3c9e912f9468ca667b599d4e5
refs/heads/main
2023-09-01T12:06:15.886253
2023-07-06T15:04:31
2023-07-27T19:49:18
178,914,781
151
145
Apache-2.0
2023-09-11T21:58:50
2019-04-01T17:38:14
Python
UTF-8
Python
false
false
2,878
py
flow_field_unit_test.py
# Copyright 2021 NREL # 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 # distri...
e10b8722be7fd1ae05d5b84402dab895e614ec77
ed4828e483301fe4193b3f902a6b49a2b1332441
/upit/inference/cyclegan.py
04c14a855493afed1325d01d257a9e3db27bc025
[ "Apache-2.0" ]
permissive
tmabraham/UPIT
ae210e90ab6cdaa9901bc2db4e77793d22486bf4
3c38f943ed9b28659d50f6c2a94b3cc290754870
refs/heads/master
2023-05-24T00:29:16.749414
2023-05-03T07:18:24
2023-05-03T07:18:24
288,096,687
134
23
Apache-2.0
2022-08-02T08:50:50
2020-08-17T06:03:22
Jupyter Notebook
UTF-8
Python
false
false
4,025
py
cyclegan.py
# AUTOGENERATED! DO NOT EDIT! File to edit: ../../nbs/04_inference.cyclegan.ipynb. # %% auto 0 __all__ = ['FolderDataset', 'load_dataset', 'get_preds_cyclegan', 'export_generator'] # %% ../../nbs/04_inference.cyclegan.ipynb 2 from ..models.cyclegan import * from ..train.cyclegan import * from ..data.unpaired import *...
0c9b43e16f7ec7f847a633915f7039e3f86914c1
a899f29c9e32bafc8eb5bb79608578765cc1e6ec
/basic_algorithm/logistic_regression/train.py
e66a6c7f15751ec38db817101c072450f3f742e8
[ "Apache-2.0" ]
permissive
zlxy9892/ml_code
7274b42fc566a41165fd0d8327164b0da8f66790
2907223b44752f13bdc1d402518799741df587cd
refs/heads/master
2022-08-15T08:04:46.739196
2022-07-25T07:10:21
2022-07-25T07:10:21
102,418,138
105
60
null
null
null
null
UTF-8
Python
false
false
1,262
py
train.py
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import data_helper from logistic_regression import * # data generation x, y = data_helper.generate_data(seed=272) x_train, y_train, x_test, y_test = data_helper.train_test_split(x, y) # visualize data # plt.scatter(x_train[:,0],...
8b8384bc2c9cdae692d2ea2eacd1431d847d8163
6b27c39edc10b1353104043b7a523f4981c99ef2
/pytype/pyc/generate_opcode_diffs.py
65cc3f4483f4d9f338c6a7dab92973a3aad9b12e
[ "Apache-2.0", "MIT" ]
permissive
google/pytype
ad0ff0b6c1083b4f0a1af1747869d422f2b5f4d8
bda0b9547af9a084bb2bd1427f58dcde968e48b5
refs/heads/main
2023-08-26T17:52:23.546035
2023-08-24T22:48:00
2023-08-24T22:48:00
32,483,713
4,595
367
NOASSERTION
2023-09-13T04:40:45
2015-03-18T20:52:08
Python
UTF-8
Python
false
false
6,467
py
generate_opcode_diffs.py
"""Generate code diffs for opcode changes between Python versions. Automates some of the tedious work of updating pytype to support a new Python version. This script should be run from the command line as: python generate_opcode_diffs.py {old_version} {new_version} For example, to generate diffs for updating from ...
18fcd4c7cad7c5eb433b8f5ab19773499873cea3
4054fde482f06ba5566ff88ff7c65b7221f4fd91
/tests/pipeline/wrap/test_auto.py
58cdcffc926d80973d1bc3480a2d4bff250da384
[ "Apache-2.0" ]
permissive
formlio/forml
e54278c2cc76cdfaf9d4feb405bd1a98c6dcd3e6
373bf4329338a9056e43966b8cfa458529ed2817
refs/heads/main
2023-06-07T21:38:34.952453
2023-05-28T21:53:47
2023-05-28T21:53:47
310,066,051
108
15
Apache-2.0
2023-05-28T19:38:16
2020-11-04T17:04:13
Python
UTF-8
Python
false
false
5,192
py
test_auto.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...
75954ed3cf400b5c4ac9b37ae19ebc15b6d951f7
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayOpenSearchboxUpgradePreconsultModel.py
983350e071f900a4a37b8d06e963f0fe1559654c
[ "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
879
py
AlipayOpenSearchboxUpgradePreconsultModel.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayOpenSearchboxUpgradePreconsultModel(object): def __init__(self): self._box_id = None @property def box_id(self): return self._box_id @box_id.setter def box...
f666916cbc8a11c7ca04654cf3bc738dd5c5e0e2
7b9c53348e20bb312f8cd8f62ddae6fa53345075
/amqp/serialization.py
1f2f8e2dcfbe4968cca5556e5aa48e797407e5d4
[ "BSD-3-Clause" ]
permissive
celery/py-amqp
de2c9d758f7e82356fa9a25f8c4ddf08694c9a22
a92dd037712b5b7b1622f4f9d83157d095c90910
refs/heads/main
2023-09-06T03:31:16.639073
2023-02-28T10:42:31
2023-06-14T13:28:02
5,152,372
284
212
NOASSERTION
2023-06-14T13:28:03
2012-07-23T13:50:57
Python
UTF-8
Python
false
false
17,162
py
serialization.py
"""Convert between bytestreams and higher-level AMQP types. 2007-11-05 Barry Pederson <bp@barryp.org> """ # Copyright (C) 2007 Barry Pederson <bp@barryp.org> import calendar from datetime import datetime from decimal import Decimal from io import BytesIO from struct import pack, unpack_from from .exceptions import ...
2a8c14b75d6c94abf809d58c648d483e019f90d6
8d8737b2bf6b6f1cfcc7a0c1d15225453178b597
/tests/tests.py
4fc97705d7d370744fc2cdb748b38bf08794a424
[ "BSD-3-Clause" ]
permissive
gregplaysguitar/django-eventtools
869bea90526e879fa7780830d8e0d16b186d5cab
f7c977494d15fd7044a5ae7d6a9de82d27d4bd43
refs/heads/master
2022-10-04T02:42:28.016325
2021-08-10T00:09:44
2021-08-10T00:09:44
40,336,216
115
21
NOASSERTION
2022-09-25T17:13:03
2015-08-07T02:10:27
Python
UTF-8
Python
false
false
19,713
py
tests.py
from datetime import datetime, date, timedelta from dateutil import rrule from dateutil.relativedelta import relativedelta import pytz from django.utils import timezone from django.test import TestCase, override_settings from django.utils.timezone import get_default_timezone, make_aware from django.conf import setting...
62e6503d1978ccaafb6abc057f54daa9660f4489
9f73d653197b5218f1a5a02e06cb7f56d858a572
/scripts/add_text.py
754e9189fa7ebf1329af952b488cc1031771ff97
[ "MIT" ]
permissive
wikimedia/pywikibot
b32fbc2eb3d688f57668aed4dc488b4055196e8f
5c01e6bfcd328bc6eae643e661f1a0ae57612808
refs/heads/master
2023-09-03T19:22:13.926740
2023-09-03T14:56:01
2023-09-03T14:59:45
10,798,864
432
166
MIT
2023-08-10T23:36:48
2013-06-19T16:18:45
Python
UTF-8
Python
false
false
7,415
py
add_text.py
#!/usr/bin/env python3 r""" Append text to the top or bottom of a page. By default this adds the text to the bottom above the categories and interwiki. Use the following command line parameters to specify what to add: -text Text to append. "\n" are interpreted as newlines. -textfile Path to a fi...
da76c06bfca026e97205ec119a20c7c755fd92a6
6b0ca4ece69cb52c30228395d8201137028605eb
/python/121-130/Word Ladder.py
87394a26554bf6faa2fbd342e650e4fa670fb9d4
[ "MIT" ]
permissive
gzc/leetcode
d8245071199e1b6321856ba0ddbdef5acfb5b2ac
1a604df1e86c9775b8db364bfb3a5462ed96e9d0
refs/heads/master
2022-02-04T00:12:19.448204
2022-01-30T03:08:14
2022-01-30T03:08:14
32,258,529
178
68
MIT
2021-03-28T16:50:18
2015-03-15T12:04:59
C++
UTF-8
Python
false
false
830
py
Word Ladder.py
class Solution: # @param {string} beginWord # @param {string} endWord # @param {set<string>} wordDict # @return {integer} def ladderLength(self, beginWord, endWord, wordDict): dis = {} dis[beginWord] = 1 chars = string.ascii_lowercase myqueue = [beginWord] ...
05ad521f888284a6903ec5340d3bb9a3574288e0
6d1bc2979bc23aae36327fa8c8d845d644bf12c5
/examples/mesh/experiments/test_subclass.py
7df48d1f7a5ff03d56d957a78bdf18e8114d7ce3
[ "BSD-3-Clause" ]
permissive
python-hydro/pyro2
4b41e4ffcc7ad003b069dd009caf726569347c6e
f91789a319caa98dfbc3f496e9953756e6ee3ca9
refs/heads/main
2023-07-20T06:57:19.593484
2023-07-18T13:22:40
2023-07-18T13:22:40
20,570,861
202
72
BSD-3-Clause
2023-09-08T17:42:50
2014-06-06T16:41:40
Jupyter Notebook
UTF-8
Python
false
false
5,538
py
test_subclass.py
# experiments in subclassing the ArrayIndexer # # this all follows: # # https://docs.scipy.org/doc/numpy-1.10.1/user/basics.subclassing.html # # current issues: when we do ip_jp(), perhaps we should just return an # ndarray at that point, since we are going to be inconsistent with the # grid (the view will have a diffe...
e2591a23981ae154dd4ddbd5a9ebcf11a35c75b3
e2b9f2354c36bd1edfa141d29f60c13ea176c0fe
/2017/insomnihack/bender_safe.py
635b0b0bbf08226a67e88ef87a5f4f0e5ed32c95
[]
no_license
Jinmo/ctfs
236d2c9c5a49d500e80ece4631a22c7fb32c3c3f
d225baef7942250a5ff15a3f2a9b7ad8501c7566
refs/heads/master
2021-07-24T15:17:05.489163
2021-07-05T16:05:15
2021-07-05T16:05:15
68,125,231
162
26
null
null
null
null
UTF-8
Python
false
false
2,787
py
bender_safe.py
import angr, claripy from pwn import * from hexdump import hexdump import socket import telnetlib HOST, PORT = '0.0.0.0', 30000 HOST, PORT = 'bender_safe.teaser.insomnihack.ch', 31337 elf = ELF('/=/Downloads/bender_safe-d9df66e258a888af77cbc75567287330920447c9/challenge/bender_safe') context.arch = 'mips' context.endi...
a779e340dd61fc4272a74f94f575ce3b476c288e
999bd9a0ef739a379c258c7388c2dc6531e58d40
/upnpclient/const.py
7761718922d3d23dbb3e90cdd802630a987a544a
[ "MIT" ]
permissive
flyte/upnpclient
abb49c19ee089e9863e335ea3f2aa63195636b34
3699eb3ac7a2b849eeada6b069e57662a174f884
refs/heads/develop
2022-12-14T03:14:21.976296
2020-12-04T14:20:56
2020-12-04T14:20:56
99,926,119
195
45
MIT
2022-12-08T10:33:31
2017-08-10T13:28:43
Python
UTF-8
Python
false
false
18
py
const.py
HTTP_TIMEOUT = 10
5d5ed9b44744bca17590d80d093f283b9c363890
83f6d6a71acf95541feebbdf715f5bea5bfce0ee
/bane/pager.py
771b1a6c7ff14ec6c7aab9f0c58314056f460974
[ "MIT" ]
permissive
AlaBouali/bane
bdd6445cd4e2d719fc6b092e4a978166475a5b6d
6b2fb4fa1c4498bc61919b8a68cf68a4a8f21680
refs/heads/master
2022-08-27T11:39:14.862790
2022-08-09T13:16:15
2022-08-09T13:16:15
174,876,604
222
48
MIT
2021-12-16T06:29:37
2019-03-10T20:23:44
Python
UTF-8
Python
false
false
29,124
py
pager.py
import requests, random, re, time, furl, sys if sys.version_info < (3, 0): from urlparse import urlparse else: from urllib.parse import urlparse import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) import bs4 from bs4 import BeautifulSoup from bane.payloads import * def remove_...
7b1eb234ab0ae256aad50c37827e87edf6ce5814
69e215d4d4f91501558bfa3f529f9569155c1da4
/source/soca/cluster_web_ui/views/remote_desktop.py
b9c7d201d8960c01cb415fb650c43e5cea0f003b
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT", "BSD-3-Clause", "GPL-1.0-or-later", "AGPL-3.0-only", "AGPL-3.0-or-later" ]
permissive
awslabs/scale-out-computing-on-aws
a9ca83602a684c9067d48c19656b294bc12ac5fb
e1617b14bb1b4a29a5bc6e02fa76c1312a333389
refs/heads/main
2023-08-08T23:08:33.652011
2023-07-28T09:23:56
2023-07-28T09:23:56
212,436,034
110
66
Apache-2.0
2023-08-24T20:20:57
2019-10-02T20:34:06
Python
UTF-8
Python
false
false
12,356
py
remote_desktop.py
###################################################################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # ...
7ab4370b655adbb9c145b70ada6749bffe15fb46
b347bc4b850dee4a8a9a171b563a3f31230ce1c7
/sktime/clustering/__init__.py
7c6307af7f06af5d6148e70ca800562a7a08ae61
[ "BSD-3-Clause" ]
permissive
sktime/sktime
5963962df338c5931a2f9f1794d1203c50ddc27e
70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f
refs/heads/main
2023-08-22T18:20:08.022950
2023-08-22T15:24:39
2023-08-22T15:24:39
156,401,841
1,117
268
BSD-3-Clause
2023-09-14T20:44:21
2018-11-06T15:08:24
Python
UTF-8
Python
false
false
122
py
__init__.py
"""Time series clustering module.""" __all__ = [ "BaseClusterer", ] from sktime.clustering.base import BaseClusterer
a937ead99ac3477efe7a38a2f45d5c671c380640
a9ed175e2cf09ea29fe72b90dc4186ff9515c9b0
/tests/integration/suite/test_role_template.py
dd71cc6b0705915e40ed4adb379ff32ea7cb7ea0
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
rancher/rancher
96d67163506fa4ab219dca4d86d9bfebacb68a6d
90fc68836fd8d1bd2996283500f954ace40203ba
refs/heads/release/v2.8
2023-08-29T06:23:12.480919
2023-08-28T21:35:36
2023-08-28T21:35:36
26,337,322
21,773
3,508
Apache-2.0
2023-09-14T19:51:31
2014-11-07T20:49:31
Go
UTF-8
Python
false
false
14,180
py
test_role_template.py
from .common import random_str from .conftest import wait_until_available, wait_until, wait_for from rancher import ApiError import time import pytest import kubernetes def test_role_template_creation(admin_mc, remove_resource): rt_name = random_str() rt = admin_mc.client.create_role_template(name=rt_name) ...
5ff4d6b1220e36cda40f39517d3309e55b141495
b2fef77e77f77b6cfd83da4ec2f89cbe73330844
/tests/test_smooth_field.py
c525311478241bfe05877be605da58d38465c619
[ "Apache-2.0" ]
permissive
Project-MONAI/MONAI
8ef2593cc5fd1cd16e13464f927fe563fe3f5bac
e48c3e2c741fa3fc705c4425d17ac4a5afac6c47
refs/heads/dev
2023-09-02T00:21:04.532596
2023-09-01T06:46:45
2023-09-01T06:46:45
214,485,001
4,805
996
Apache-2.0
2023-09-14T15:19:30
2019-10-11T16:41:38
Python
UTF-8
Python
false
false
6,249
py
test_smooth_field.py
# Copyright (c) MONAI Consortium # 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, so...
3df053cb5ceb09cd4dbabae22a77036175ce039a
bbf0c3294b8aac4cbabf255c2904556144c85610
/modoboa/urls.py
9eaee819673a5e76a231cdfc7ccb01eac4c56a8f
[ "ISC" ]
permissive
modoboa/modoboa
4a170fabcb15b892fe627795b02a02d4c16783d6
df699aab0799ec1725b6b89be38e56285821c889
refs/heads/master
2023-08-30T12:58:51.313642
2023-08-29T13:22:14
2023-08-29T13:22:14
9,469,271
2,201
370
ISC
2023-09-13T12:47:28
2013-04-16T09:43:55
Python
UTF-8
Python
false
false
3,616
py
urls.py
from functools import reduce from ckeditor_uploader import views as cku_views from django.conf import settings from django.contrib.auth import views as auth_views from django.contrib.auth.decorators import login_required from django.urls import include, path from django.views.i18n import JavaScriptCatalog from drf_s...
d434618829a0ebbfaba9713d8a21480f1365d81d
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/14_并查集/经典题/Gene Mutation Groups-广义邻居.py
a8ad7bbf7d212444b5fd29f6c2a427d142b163db
[]
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,249
py
Gene Mutation Groups-广义邻居.py
from collections import defaultdict from typing import DefaultDict, Generic, Iterable, List, Optional, TypeVar T = TypeVar('T') class UnionFindMap(Generic[T]): def __init__(self, iterable: Optional[Iterable[T]] = None): self.count = 0 self.parent = dict() self.rank = defaultdi...
c6ed891f5661b912c072e66cbd6e0690006f8e67
49b25a6c420048e630884a3446eb0fe2eb7a0cfc
/tests/commands/scan.py
5be7e4bd36c6fb53fe2fcb793337147b2ce86dae
[ "MIT", "Python-2.0" ]
permissive
hugsy/gef
dc7a90e33bd2bcc2fada6a81dc32534e1b07461b
6a6e2a05ca8e08ac6845dce655a432fc4e029486
refs/heads/main
2023-09-02T08:18:02.038475
2023-08-26T17:00:13
2023-08-26T17:00:13
32,955,140
6,152
920
MIT
2023-09-12T14:02:46
2015-03-26T22:25:45
Python
UTF-8
Python
false
false
637
py
scan.py
""" scan command test module """ from tests.utils import GefUnitTestGeneric, _target, gdb_run_cmd, gdb_start_silent_cmd class ScanCommand(GefUnitTestGeneric): """`scan` command test module""" def test_cmd_scan(self): cmd = "scan libc stack" target = _target("checksec-no-pie") self....
a865441e0359e09682e84b926f54dbb2565a7712
4c9a5f1b44ad6fa84a984b8164414c99aba7f391
/pepper_variant/modules/python/DataStore.py
58eeb1cdc6a2be9b9736f9583e84a66e2743f8dd
[ "MIT" ]
permissive
kishwarshafin/pepper
20760a2a820d77ca5fc798957f0de658e936dcca
30c8907501b254bb72d8f64dfb8cf54a1b7a60eb
refs/heads/r0.8
2023-08-04T07:03:53.564606
2022-07-08T18:22:01
2022-07-08T18:22:01
185,895,043
219
41
MIT
2023-07-22T05:17:46
2019-05-10T01:13:11
Python
UTF-8
Python
false
false
5,853
py
DataStore.py
import h5py import yaml import numpy as np from pepper_variant.modules.python.Options import ImageSizeOptions class DataStore(object): """Class to read/write to a HELEN's file""" _summary_path_ = 'summaries' _groups_ = ('image', 'position', 'index', 'label') def __init__(self, filename, mode='r'): ...
8a45892a82dd8c6d799c1cdd74a4054c7650d978
ebd9c249d446d809abc9a0f3e4593f34922a1b93
/leetcode/486_predict_the_winner.py
9fd3219c33d468a1c84211970cc6e1416daa681d
[]
no_license
jaychsu/algorithm
ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d
91892fd64281d96b8a9d5c0d57b938c314ae71be
refs/heads/master
2023-05-11T00:40:39.237813
2022-09-14T07:43:12
2022-09-14T07:43:12
106,277,156
143
39
null
2022-09-14T07:43:13
2017-10-09T11:51:48
Python
UTF-8
Python
false
false
1,018
py
486_predict_the_winner.py
""" DP: time: O(n^2) space: O(n) """ class Solution: def PredictTheWinner(self, nums): """ :type nums: List[int] :rtype: bool """ if not nums: return False n = len(nums) dp = [0] * n for i in range(n - 1, -1, -1): for j in ran...
5020c8be6baeb9a38b43d10fec3e4b52c7494a3c
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/control/for_body_get_outer_class_attr.py
f14fc5557647b1473e067839f7df87acff4307bf
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
1,769
py
for_body_get_outer_class_attr.py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
5013a0026daa4f75ada85feea13fc70a7ffd0796
01184c7098e40569dd48219fbe3012321cf31244
/rdflib/plugins/shared/jsonld/errors.py
6aa11c28943b46b2ade4622b2cdbe465ea4e11b0
[ "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
459
py
errors.py
# -*- coding: utf-8 -*- # https://github.com/RDFLib/rdflib-jsonld/blob/feature/json-ld-1.1/rdflib_jsonld/errors.py class JSONLDException(ValueError): # noqa: N818 pass # http://www.w3.org/TR/json-ld-api/#idl-def-JsonLdErrorCode.{code-message} RECURSIVE_CONTEXT_INCLUSION = JSONLDException("recursive context inclu...
1efd71dbc7bf87bf4aa1a21613d40cbbe141ea05
ddddaa700e4642f46a2c1e1e0271a7c8ea62ba0f
/harness/tests/experiment/test_local.py
329efba699256a0352c51257b1213af385c30fe8
[ "Apache-2.0" ]
permissive
determined-ai/determined
9d563cb5ffd074c88ee5edc9bf22ab9c3cb78c7e
8239b1993f4f44390f4e88901ffaf3b12429b83c
refs/heads/main
2023-08-21T12:13:36.651298
2023-08-21T08:34:16
2023-08-21T08:34:16
253,846,879
2,531
330
Apache-2.0
2023-09-14T21:54:17
2020-04-07T16:12:29
Go
UTF-8
Python
false
false
2,784
py
test_local.py
import pathlib import typing import pytest import tensorflow as tf from _pytest import monkeypatch import determined as det from determined import estimator, experimental, keras, pytorch from tests.experiment.fixtures import pytorch_onevar_model def test_test_one_batch(monkeypatch: monkeypatch.MonkeyPatch, tmp_path...
838452ddcd2bb91834f10953c265272711d9f247
0032d988541e85c47b5034c20ecf88220dde5a95
/openbook_common/apps.py
a00658554f74bc0851eaf77a49403204437d24cc
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
OkunaOrg/okuna-api
eabd37fef9d2be59b590ed8d72bee084ac377997
f87d8e80d2f182c01dbce68155ded0078ee707e4
refs/heads/master
2022-02-04T21:31:10.577601
2021-12-28T18:20:39
2021-12-28T18:20:39
151,052,951
185
92
MIT
2022-01-13T01:00:40
2018-10-01T07:44:46
Python
UTF-8
Python
false
false
104
py
apps.py
from django.apps import AppConfig class OpenbookCommonConfig(AppConfig): name = 'openbook_common'