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
85e8608abec5b9d34960fdc8ad8409e40c0bf58a
2337351b228818e41be3002bd38f68f77c2aa074
/commands/collection.py
4582a0846f2e5768a74b4f79ca301ce3e93f578c
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
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
5,758
py
collection.py
# ---------------------------------------------------------------------- # Collections manipulation # ---------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------------------------- # Pyt...
dc52d88debd70f7adf644f1dd6fe0bff6ea1d3b1
8fd935d0bcf03a176dc1c042602e731aab016f43
/libvis/third_party/flann/test/memusage_clustering.py
1b02bbd40bd9e1148d4aa8ce9d522a4607f08fd4
[ "BSD-3-Clause" ]
permissive
ETH3D/badslam
9ce088d96672ee5385f721928d3e6536778e1574
c66bdc841658cc04f9feae229c746b32f4284102
refs/heads/master
2022-07-08T05:39:08.983448
2022-05-11T19:12:04
2022-05-11T19:12:04
192,239,549
691
124
BSD-3-Clause
2022-04-27T23:52:53
2019-06-16T21:43:54
C++
UTF-8
Python
false
false
1,706
py
memusage_clustering.py
#!/usr/bin/env python import sys from os.path import * from pyflann import * from guppy import hpy from numpy.random import rand import os, gc _proc_status = '/proc/%d/status' % os.getpid() _scale = {'kB': 1024.0, 'mB': 1024.0*1024.0, 'KB': 1024.0, 'MB': 1024.0*1024.0} def _VmB(VmKey): '''Private. ...
e14f775521e70f0ec4ec07dacbeee322ffe4ac10
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/pecan_wsgi/hooks/translation.py
23af2f6647fa663c1b7ede7450c1b28aa919bb87
[ "Apache-2.0" ]
permissive
openstack/neutron
0913ee3cd69d5bdb9c10aa084d4e1803abee320c
dde31aae392b80341f6440eb38db1583563d7d1f
refs/heads/master
2023-08-31T13:09:41.831598
2023-08-31T11:37:30
2023-08-31T11:37:30
2,400,289
1,174
1,325
Apache-2.0
2022-06-29T08:00:05
2011-09-16T16:04:08
Python
UTF-8
Python
false
false
1,628
py
translation.py
# Copyright (c) 2015 Mirantis, 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 applicabl...
87466e65ffa35722666976b41d1c359a96c39903
a6c05f5bea011ddce375c4a31e52e04bcb2ee053
/dataprep/clean/components/cat_imputation/__init__.py
65a22358e0a17e7692bca3f9e273b2b9309b7fc7
[ "MIT" ]
permissive
sfu-db/dataprep
8db4286f4eccfde9e00b4e4fe4ac7d0fd567d9f1
17eda6925b9c37200eae969813ed41583d225989
refs/heads/develop
2023-08-18T09:01:04.057248
2023-05-30T02:39:47
2023-08-03T04:05:43
186,311,346
1,755
215
MIT
2023-08-03T04:05:45
2019-05-12T22:37:24
Python
UTF-8
Python
false
false
315
py
__init__.py
""" Initialize dictionary of categorical imputers. """ from .constant_imputer import ConstantImputer from .most_frequent_imputer import MostFrequentImputer from .drop_imputer import DropImputer operator_dic = { "constant": ConstantImputer, "most_frequent": MostFrequentImputer, "drop": DropImputer, }
fad673bad3b0e1f923ad445ecb2d02dbf1d4298a
a411a55762de11dc2c9d913ff33d2f1477ac02cf
/lte/gateway/python/magma/subscriberdb/main.py
a1ac6a0e0cc8edbdfaaec1db2f13576db71cc5b0
[ "BSD-3-Clause" ]
permissive
magma/magma
0dc48c1513d9968bd05fb7589f302c192b7c0f94
0e1d895dfe625681229e181fbc2dbad83e13c5cb
refs/heads/master
2023-09-04T09:31:56.140395
2023-08-29T13:54:49
2023-08-29T13:54:49
170,803,235
1,219
525
NOASSERTION
2023-09-07T17:45:42
2019-02-15T04:46:24
C++
UTF-8
Python
false
false
6,299
py
main.py
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
386a0814576de95345ebd70edd71b7d1b61d70a4
9b2e1c33a8971ecbabac34f6dce66782ac1da0ad
/pydoctor/astbuilder.py
e1fc180044e70ab850c6aabdfba5f95cc684eb6f
[ "LicenseRef-scancode-warranty-disclaimer", "MIT", "Apache-2.0", "LicenseRef-scancode-other-permissive" ]
permissive
twisted/pydoctor
16cd567617b7026f43bba68930404fb21e976ca6
965ed955efde6178cb68f0882a02c34a90204447
refs/heads/master
2023-08-31T10:46:17.459825
2023-06-13T15:26:45
2023-06-13T15:26:45
29,112,171
149
45
NOASSERTION
2023-06-15T14:48:25
2015-01-12T00:47:42
Python
UTF-8
Python
false
false
51,574
py
astbuilder.py
"""Convert ASTs into L{pydoctor.model.Documentable} instances.""" import ast import sys from functools import partial from inspect import Parameter, Signature from itertools import chain from pathlib import Path from typing import ( Any, Callable, Collection, Dict, Iterable, Iterator, List, Mapping, Optional, Seq...
4ee4e0e2eaa615564827e687639c29ca4980c727
d36a429823199f063d3529553e68eb64839534fc
/tests/test_sanity_check.py
ae01bc79cb736cfc3c28337a865237a961c724d1
[ "Apache-2.0" ]
permissive
trailofbits/deepstate
9795d9dfa9c19bdd86b674fe88f24012c6f0bd49
f37a187f453902ca4f7e0911b57ddef8f0193bb4
refs/heads/master
2023-09-04T01:30:01.294595
2023-08-28T18:59:29
2023-08-28T18:59:29
108,593,287
796
103
Apache-2.0
2023-08-28T18:59:31
2017-10-27T20:35:54
Python
UTF-8
Python
false
false
1,350
py
test_sanity_check.py
from __future__ import print_function import os import deepstate_base import logrun class SanityCheck(deepstate_base.DeepStateTestCase): def run_deepstate(self, deepstate): if deepstate != "--fuzz": return os.mkdir("OneOf_out") (r, output) = logrun.logrun(["build/examples/OneOf", ...
154f1ee4a26f3d62b0c9ccd041c00f7d2a7e233d
99bdb3251fecee538e0630f15f6574054dfc1468
/tools/gcc.py
a3e03442007a8e640a7dd99d5b82373cadcc6c50
[ "Apache-2.0" ]
permissive
RT-Thread/rt-thread
03a7c52c2aeb1b06a544143b0e803d72f47d1ece
3602f891211904a27dcbd51e5ba72fefce7326b2
refs/heads/master
2023-09-01T04:10:20.295801
2023-08-31T16:20:55
2023-08-31T16:20:55
7,408,108
9,599
5,805
Apache-2.0
2023-09-14T13:37:26
2013-01-02T14:49:21
C
UTF-8
Python
false
false
5,606
py
gcc.py
# # File : gcc.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the ...
5a818dda2042005a50ec886c5d0c43ec22b5b49a
6f36df6219f8e50374068bb4b3e1a5387c7a2f34
/fipy/terms/nonDiffusionTerm.py
84a892761ffd47376ce0581b07da116625b78018
[ "NIST-PD" ]
permissive
usnistgov/fipy
0a3db715fea452ae710eea3999d9cd42dfe76fe7
fdc17193bc293da7511be9021e6d4766757e1966
refs/heads/master
2023-08-31T21:59:36.611448
2023-06-27T16:28:58
2023-06-27T16:28:58
23,316,495
444
171
NOASSERTION
2023-09-06T19:21:19
2014-08-25T14:27:58
Python
UTF-8
Python
false
false
5,051
py
nonDiffusionTerm.py
from __future__ import unicode_literals __docformat__ = 'restructuredtext' __all__ = [] from fipy.tools import numerix from fipy.terms.unaryTerm import _UnaryTerm from fipy.terms import TermMultiplyError class _NonDiffusionTerm(_UnaryTerm): def __neg__(self): r""" Negate a `Term`. >...
ebcbfd33e5239798444bff6a261a5b6c62a39502
9c87c7ddaf5011cc475ec6f4343cc1c7ff290b33
/wetterdienst/provider/dwd/mosmix/metadata/mosmix_type.py
3de96b99304a2f653c187b7e4d99d36eaf160fea
[ "MIT" ]
permissive
earthobservations/wetterdienst
c74d80bbb4ce178f3e42936ca7364f9bee66d83b
448fbd56b67978cf8f4215dedc02a11b89f66b01
refs/heads/main
2023-08-08T12:02:45.115090
2023-07-30T16:13:41
2023-07-30T16:37:09
160,953,150
283
42
MIT
2023-09-10T22:36:33
2018-12-08T15:39:42
Python
UTF-8
Python
false
false
236
py
mosmix_type.py
# -*- coding: utf-8 -*- # Copyright (C) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. from enum import Enum class DwdMosmixType(Enum): SMALL = "SMALL" LARGE = "LARGE"
c318dd4a48f38a73d4d6db4f4553e26f18c5275d
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/ios/tests/ShowIpv6RipDatabase/cli/equal/golden_output_2_expected.py
d44f870e02e41d1e7f55915adf103d5720816939
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
2,064
py
golden_output_2_expected.py
expected_output = { "vrf": { "VRF1": { "address_family": { "ipv6": { "routes": { "2001:DB8:1:2::/64": { "index": { 1: { "metric": 2, ...
bacc7ba73409f590963b2903538985f617c6aad1
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/rts.py
9f73d1811fa10964698fb411446e53d418929f6c
[ "Unlicense", "GPL-2.0-or-later", "MPL-2.0", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.1-only", "BSD-2-Clause", "MIT" ]
permissive
yt-dlp/yt-dlp
be040bde10cc40258c879c75ab30215686352824
d3d81cc98f554d0adb87d24bfd6fabaaa803944d
refs/heads/master
2023-09-05T21:15:21.050538
2023-09-05T20:35:23
2023-09-05T20:35:23
307,260,205
52,742
5,376
Unlicense
2023-09-14T05:22:08
2020-10-26T04:22:55
Python
UTF-8
Python
false
false
9,508
py
rts.py
import re from .srgssr import SRGSSRIE from ..compat import compat_str from ..utils import ( determine_ext, int_or_none, parse_duration, parse_iso8601, unescapeHTML, urljoin, ) class RTSIE(SRGSSRIE): # XXX: Do not subclass from concrete IE IE_DESC = 'RTS.ch' _VALID_URL = r'rts:(?P<rt...
d77cac4226b72b8e989cbfad5bd2e7d99b2a4147
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/show_l2vpn.py
647a02291df409e1239b79e86750ce1623bccb2c
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
234,790
py
show_l2vpn.py
''' show_l2vpn.py IOSXE parsers for the following show commands: * show bridge-domain * show bridge-domain <BD_ID> * show bridge-domain | count <WORD> * show ethernet service instance detail * show ethernet service instance interface <interface> detail * show l2vpn vfi * show l2vpn vfi nam...
a9bf0cb0e77eaa02e1fcfd2ada85faf812eebba2
f2034c76a11ce6296131d2bab89a5dae7d59edfe
/python/friesian/example/dlrm/dlrm_preprocessing.py
bdbfd88eb8b6716057f8a004f3b432c9ec76b48d
[ "Apache-2.0" ]
permissive
intel-analytics/BigDL
e22cd917eecc7340bda3df4356acba0623a62ef6
4ffa012a426e0d16ed13b707b03d8787ddca6aa4
refs/heads/main
2023-08-22T06:31:37.923091
2023-08-22T02:58:42
2023-08-22T02:58:42
66,823,715
4,913
1,327
Apache-2.0
2023-09-14T10:41:50
2016-08-29T07:59:50
Jupyter Notebook
UTF-8
Python
false
false
6,696
py
dlrm_preprocessing.py
# # Copyright 2016 The BigDL 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 ...
6965bb340f1d411c719db72fccc48edbfebfd031
c5ddaaa915829e946762f83a610a3ef43ad1f190
/src/pip/_vendor/rich/_null_file.py
b659673ef3c1d5431e6699898ae4d073b4be764b
[ "MIT", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-other-copyleft", "Python-2.0", "BSD-3-Clause", "0BSD", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown" ]
permissive
pypa/pip
4cebef8b5e8f69921a4cbd37d5b2021fd3200a16
0778c1c153da7da457b56df55fb77cbba08dfb0c
refs/heads/main
2023-08-15T01:51:24.039937
2023-08-14T06:22:21
2023-08-14T06:22:21
1,446,467
8,612
3,321
MIT
2023-09-12T07:08:11
2011-03-06T14:30:46
Python
UTF-8
Python
false
false
1,387
py
_null_file.py
from types import TracebackType from typing import IO, Iterable, Iterator, List, Optional, Type class NullFile(IO[str]): def close(self) -> None: pass def isatty(self) -> bool: return False def read(self, __n: int = 1) -> str: return "" def readable(self) -> bool: re...
36edd5eb1915ad75507fe2bb51d46cf59c4b0821
c0bd88792742f77b46a3b121e418d1190b003daa
/src/HyperDenseNet/startTesting.py
93ea90132b16a2ab6ec235a9bc3d7b5d70ce8ad8
[ "MIT" ]
permissive
josedolz/HyperDenseNet
c6cd95d939d64c9aad75cfe2f24413f12d21087c
c41678ff9289c9f7792fd4b29162bdb347f51f6b
refs/heads/master
2021-04-29T19:47:13.026792
2019-11-20T18:00:40
2019-11-20T18:00:40
121,584,258
161
45
null
null
null
null
UTF-8
Python
false
false
12,728
py
startTesting.py
""" Copyright (c) 2017, Jose Dolz .All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
010a6ad53d4002b825bb8a9224373fb8ae31ae36
3afe7348e830a0c5139fb7cf393736e18b59ab4a
/src/clusterfuzz/_internal/tests/core/bot/tasks/update_task_test.py
4488cf8cbaba1864bea505f3cd042c1b55cb83d0
[ "Apache-2.0" ]
permissive
google/clusterfuzz
00845899e081dbbb89b70a75ce0b7eba3da73b02
6501a839b27a264500244f32bace8bee4d5cb9a2
refs/heads/master
2023-09-03T17:34:17.821599
2023-09-01T16:11:51
2023-09-01T16:11:51
168,060,021
5,420
639
Apache-2.0
2023-09-13T16:40:54
2019-01-29T00:19:40
Python
UTF-8
Python
false
false
6,426
py
update_task_test.py
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
61eb233202765de4f2eb7dbea190563fec313dbe
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/test/nn/models/test_mask_label.py
51c637a88c1d756bc13eae34c55d31f80d3c664f
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
720
py
test_mask_label.py
import torch from torch_geometric.nn import MaskLabel def test_mask_label(): model = MaskLabel(2, 10) assert str(model) == 'MaskLabel()' x = torch.rand(4, 10) y = torch.tensor([1, 0, 1, 0]) mask = torch.tensor([False, False, True, True]) out = model(x, y, mask) assert out.size() == (4, ...
c4efcf3c804fe89d47028cb681ff69f23c5c8989
69dffe378940f9be0214f319b7374e064b94d855
/tests/scripts/test_3dmaskave.py
57469aa429eaedeb437b804eff6bc19569b3c2b3
[]
no_license
afni/afni
d7aba56d6224f1bde8c1fcb06fe23026912e9d6d
17f180ec63f90a3460551fd2e474f632e4cf49c0
refs/heads/master
2023-09-02T03:34:16.532719
2023-09-01T20:51:01
2023-09-01T20:51:01
35,209,231
143
122
null
2023-09-13T20:34:43
2015-05-07T08:50:23
C
UTF-8
Python
false
false
686
py
test_3dmaskave.py
import pytest import sys from afni_test_utils import tools # Define Data data_paths = {"mask": "mini_data/mask_3mm.nii.gz", "epi": "mini_data/aligned.nii.gz"} @pytest.mark.skipif( sys.platform == "darwin", reason=("3dmaskave removes all voxels on MacOS for some reason."), ) def test_3dmaskave_basic(data): ...
2ccf2281d7af8cb21b0d54256b06f2b59bed6997
f324cd2cbebd303fd34cd2e26fe1a51c44202d55
/test/unit/vint/ast/plugin/scope_plugin/test_identifier_classifier.py
3e78e679a1d37510df1236551a8d5b4ad0e484fe
[ "MIT" ]
permissive
Vimjas/vint
d71579154d177daf458ec68423a66055f90fa308
e12091830f0ae7311066b9d1417951182fb32eb5
refs/heads/master
2023-09-02T07:31:31.299270
2022-10-24T13:06:33
2022-10-24T13:06:33
20,857,415
191
11
MIT
2022-10-24T13:10:00
2014-06-15T14:38:32
Python
UTF-8
Python
false
false
17,083
py
test_identifier_classifier.py
import unittest from pathlib import Path from pprint import pprint from vint.ast.parsing import Parser from vint.ast.plugin.scope_plugin.redir_assignment_parser import traverse from vint.ast.node_type import NodeType from vint.ast.plugin.scope_plugin.identifier_classifier import ( IdentifierClassifier, ) from vint...
1933c4fc7163fabc5b73f3783d42fbe9ca6f4454
aa4a3ccd4e5572396ec737c527c3b4da71a7ec30
/pyne/dbgen/decay.py
dbc77a9311e34d80388c7dd5f685154525028002
[ "MIT", "BSD-2-Clause" ]
permissive
pyne/pyne
6c4d178eedfdeb464966e99a3d27d794a04d1add
8a9ef7291ca5a23ec4da8794cd19cbac93f849ef
refs/heads/develop
2023-08-31T16:00:04.363507
2023-08-26T14:25:38
2023-08-26T14:25:38
1,684,953
218
168
NOASSERTION
2023-09-12T08:21:55
2011-04-30T15:04:07
C++
UTF-8
Python
false
false
16,032
py
decay.py
"""This module provides a way to grab and store raw data for radioactive decay.""" from __future__ import print_function, division import os import glob import shutil from zipfile import ZipFile from pyne.utils import QA_warn try: import urllib.request as urllib except ImportError: import urllib2 as urllib i...
6037c1613eb716f1a6af23d54d1bb73e2bd13575
75f81c32befeccc59b958cf849c777359df68d73
/tests/python/integration/load_and_run_relayvm_model.py
c03f9396c0c4fec5f9dd672c4c441fc47c2bc192
[ "Apache-2.0" ]
permissive
neo-ai/neo-ai-dlr
4e20b40235e1be2d44f55b13cec3c15fc42dba2a
457aabf677ed368aa1077093fce4517381e04038
refs/heads/main
2023-06-07T17:21:14.600599
2022-08-26T22:03:40
2022-08-26T22:03:40
161,846,808
490
125
Apache-2.0
2023-05-18T05:38:28
2018-12-14T22:25:31
C++
UTF-8
Python
false
false
1,064
py
load_and_run_relayvm_model.py
from dlr import DLRModel import numpy as np import cv2 from pathlib import Path MODEL_PATH = Path("../../../build/ssd_mobilenet_v1").resolve() DATA_PATH = Path("../../../build/street_small.npy").resolve() def test_ssd_mobilenet_v2_model(): model = DLRModel(MODEL_PATH.as_posix()) data = np.load(DATA_PATH) assert...
6e444dd71233957c9fc6cb09c5541e3cc17fbe22
811f4cdb25e26f3b27640aaa2e2bca93e660d2d7
/src/anomalib/models/reverse_distillation/torch_model.py
5ada84573ef06060c4566f80ec04e32635e41e12
[ "MIT", "Apache-2.0", "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0" ]
permissive
openvinotoolkit/anomalib
4467dfc392398845e816387267cdf979ff76fe15
4abfa93dcfcb98771bc768b334c929ff9a02ce8b
refs/heads/main
2023-09-03T16:49:05.019269
2023-08-28T14:22:19
2023-08-28T14:22:19
423,775,360
2,325
454
Apache-2.0
2023-09-14T11:21:33
2021-11-02T09:11:38
Python
UTF-8
Python
false
false
2,925
py
torch_model.py
"""PyTorch model for Reverse Distillation.""" # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations from torch import Tensor, nn from anomalib.models.components import FeatureExtractor from anomalib.models.reverse_distillation.anomaly_map import AnomalyMapGe...
dc52789a631d6618dfbad6f15c699d609dc14dfd
507103d591ed6993203db92fd8dffc992e8bcd5c
/k2/python/tests/arc_sort_test.py
11b7ec7850d3a71544c897f74362b97ddf7d66d5
[ "Apache-2.0" ]
permissive
k2-fsa/k2
6e661bd505f06583af779f4249bbb8ea87a0d662
2b2ac14b326d61d79d04e53fbd69b1ff6d630411
refs/heads/master
2023-09-03T11:57:13.505432
2023-08-23T21:58:26
2023-08-23T21:58:26
256,463,281
851
192
Apache-2.0
2023-08-26T06:51:21
2020-04-17T09:44:05
Cuda
UTF-8
Python
false
false
4,328
py
arc_sort_test.py
#!/usr/bin/env python3 # # Copyright 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple 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...
074f73df9d8b328dc16aa7dc518428c80f0ae2b1
cb012762176a51f2670a8e5a4e8e1fa70bf80a7f
/segmentation_models_pytorch/base/model.py
806f27409ee0571966f1b3e72288b6a99f44fdbe
[ "MIT" ]
permissive
qubvel/segmentation_models.pytorch
6db68aa4210b318985cddfb3b116d886a5cc5bc5
6db76a1106426ac5b55f39fba68168f3bccae7f8
refs/heads/master
2023-09-04T22:09:19.890290
2023-09-04T08:15:36
2023-09-04T08:15:36
173,333,035
8,150
1,662
MIT
2023-09-14T08:14:52
2019-03-01T16:21:21
Python
UTF-8
Python
false
false
1,839
py
model.py
import torch from . import initialization as init class SegmentationModel(torch.nn.Module): def initialize(self): init.initialize_decoder(self.decoder) init.initialize_head(self.segmentation_head) if self.classification_head is not None: init.initialize_head(self.classification...
2200c766f922bcc283f482de429beea0190f8fa8
605020b5a89b762e0a991c84968fdaaadbe36f48
/pipeline/pipeline.py
73f0d268dabcbd17188bd3f060a2e08c65d446ee
[]
no_license
jackyko1991/vnet-tensorflow
118071bb62a892ed5fc19c9af1d8d54f16ad761e
ddc04d7c25474d89620cace2a989ac6ba9cae1a2
refs/heads/master
2023-07-10T16:47:36.654053
2023-06-27T17:14:26
2023-06-27T17:14:26
121,372,654
157
72
null
2019-10-25T03:30:16
2018-02-13T11:05:02
Python
UTF-8
Python
false
false
1,426
py
pipeline.py
import NiftiDataset2D,NiftiDataset3D import yaml def main(): # load the yaml with open("pipeline2D.yaml") as f: pipeline_ = yaml.load(f) # start preprocessing print(pipeline_["preprocess"]) train_transform_3d = [] train_transform_2d = [] test_transform_3d = [] test_transform_2d = [] if pipeline_["prepro...
75ac3431787e112d92b72d9ae4db12e5d22d119f
df4361db61d10a10c46ed5f18973d89e4efda82c
/armi/utils/tests/test_parsing.py
5327f5a9fe6842a0a5effc5abe8343754abb0f1d
[ "Apache-2.0", "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
terrapower/armi
5524741c5e80781e136ea3422aed0db8398f76ae
360791847227df3f3a337a996ef561e00f846a09
refs/heads/main
2023-09-04T05:16:29.080518
2023-09-01T16:10:29
2023-09-01T16:10:29
218,863,590
204
75
Apache-2.0
2023-09-14T20:42:24
2019-10-31T21:18:34
Python
UTF-8
Python
false
false
3,367
py
test_parsing.py
# Copyright 2019 TerraPower, 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 writi...
40df193a8f66b6b64f2aa45b9ccfeee2c7c5666d
7a7e2201642a730460dd4d3b0441df3710898787
/PythonWidget/plot/plot3D_cube.py
3ccff9a20783b6eedfab556a5c893f277adbd598
[ "BSD-3-Clause" ]
permissive
xiaodongxiexie/python-widget
87118cbd75927f2f181fc5c9ff1a0fbd1c12af27
58fd929ee57884a73a1d586c7b891c82b9727f93
refs/heads/master
2023-04-02T03:13:51.929149
2023-03-23T02:17:21
2023-03-23T02:17:21
89,505,063
188
55
null
null
null
null
UTF-8
Python
false
false
1,665
py
plot3D_cube.py
# -*- coding: utf-8 -*- # @Author: xiaodong # @Date: just hide # @Last Modified by: xiaodong # @Last Modified time: just hide from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np # %matplotlib inline plt.rcParams['axes.unicode_minus'] = False plt.rcParams['font.sans-ser...
07cf6288b37af7a124b6914ce49ee8b64e6f4ab8
9f4d24ddea8483814c030745dd35093a19269a8f
/CSIKit/util/errors.py
b2cb1edc86893b9b9db022461b211744c2030772
[ "MIT" ]
permissive
Gi-z/CSIKit
471ea76c72ceca155f07504f4949cc3fb33d7251
16df52ba5472645a8b4b6ad72ac9d30cbe6ba4f0
refs/heads/master
2023-05-23T04:52:50.146235
2022-12-21T18:00:45
2022-12-21T18:00:45
246,860,724
135
36
MIT
2021-12-06T13:01:07
2020-03-12T14:52:28
Python
UTF-8
Python
false
false
843
py
errors.py
import os def print_length_error(length: int, data_length: int, i: int, filename: str): """ Prints an error to highlight a difference between the frame's stated data size and the actual size. This usually stems from early file termination. Parameters: length {int} -- Stated len...
ff1a66e31580958aa9f26babc8fd8095e445f73d
9b72a05897dc63c1cf507023ccf3dcfd5f40748c
/mimesis/builtins/pl.py
9bd4f4a350a5add3cb4d21083e4a63e2b2156767
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
lk-geimfari/mimesis
991a0a6a45010fe7dd57682ddc347573ca2325df
653bb5a90a91ea8dfbdb08684c66deb1b23bcda9
refs/heads/master
2023-08-21T02:27:12.837063
2023-08-20T15:57:13
2023-08-20T15:57:13
67,834,502
3,144
370
MIT
2023-09-14T10:37:03
2016-09-09T21:41:22
Python
UTF-8
Python
false
false
3,216
py
pl.py
"""Specific data provider for Poland (pl).""" import typing as t from mimesis.enums import Gender from mimesis.locales import Locale from mimesis.providers import BaseDataProvider, Datetime from mimesis.types import DateTime, MissingSeed, Seed __all__ = ["PolandSpecProvider"] class PolandSpecProvider(BaseDataProvi...
33ed06ad3f49d434ec2e92e1d1c49bc054c7fdf2
7d689ca6fa3fcea87bc636719fcc5594730057d7
/mollie/api/objects/issuer.py
09b737f171e508464b31382f54c281b43de3c668
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
mollie/mollie-api-python
fbbb3c05a7867b122c26debc05a5a91c16169748
e0d553aee4b52c3c7aabba2ff17ccc67e760635a
refs/heads/master
2023-08-27T19:35:19.487382
2023-07-28T13:20:43
2023-07-28T13:20:43
19,978,672
112
79
BSD-2-Clause
2023-08-31T15:35:55
2014-05-20T11:42:28
Python
UTF-8
Python
false
false
645
py
issuer.py
from .base import ObjectBase class Issuer(ObjectBase): @property def resource(self): return self._get_property("resource") @property def id(self): return self._get_property("id") @property def name(self): return self._get_property("name") @property def image_...
8de99df0c8d894fefb76dd82042111d46e9b2f11
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_feature_store_entity/feature_store_entity_schema.py
51505430a71b88a2e240fca15d31be1ca37d1d77
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-python-cwi", "PSF-2.0", "LGPL-2.0-or-later", "GPL-3.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "Python-2.0", "MPL-2.0", "LicenseRef-scancode-other-copyleft", ...
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
1,147
py
feature_store_entity_schema.py
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from marshmallow import fields, post_dump, validate from azure.ai.ml._schema import NestedField from azure.ai.ml._schema.core.schema impo...
ea86c5711309476c17594591ccc09ea76c22e909
b8bbdfc593b6d816e67a344f720f90ec05236778
/airflow/providers/amazon/aws/utils/sqs.py
ea0c7afea10eb81071c4f15bb6618df52fff829d
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
apache/airflow
ed78db0a8bab7e096990e143926e52f518e288ab
1b122c15030e99cef9d4ff26d3781a7a9d6949bc
refs/heads/main
2023-09-01T08:37:34.556097
2023-09-01T06:49:05
2023-09-01T06:49:05
33,884,891
22,756
11,558
Apache-2.0
2023-09-14T20:12:36
2015-04-13T18:04:58
Python
UTF-8
Python
false
false
3,300
py
sqs.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...
a338f06a1d07ad032ebcbd3738603a59e6a6bfec
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/debug/test_large_numpy_arrays.py
14923031aa01243a24f56e9424b171ab52fb79b9
[ "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
137
py
test_large_numpy_arrays.py
import numpy as np import pandas as pd nd = np.arange(1000) s = pd.Series(name='foo', data=nd) df = pd.DataFrame({'bar': nd}) df.size
a8db1258369058caa0a91b50224b1c7f003c9caf
ea2e46fa06a3720c6a6708760f39746c3d5a3f70
/ImageGoNord/GoNord_test.py
81f8ebdf1cde9017a23283949b1f7ab603bbdeb2
[ "MIT" ]
permissive
Schrodinger-Hat/ImageGoNord-pip
6a3e3c61844ebe8ab8a55f4073d10f111a6b76f7
f010982ee9ab07fc40fa48af970bd7262ac11028
refs/heads/master
2023-08-18T02:17:20.261417
2023-07-26T18:57:11
2023-07-26T18:57:11
287,203,592
134
18
MIT
2023-07-18T10:09:21
2020-08-13T06:50:29
Python
UTF-8
Python
false
false
768
py
GoNord_test.py
import pytest from PIL import Image from ImageGoNord import GoNord @pytest.fixture def image(): return Image.open("images/test-profile.jpg") @pytest.fixture def go_nord(): return GoNord() @pytest.mark.skip() # this is the "old" interface def test_resize_image_with_w_and_h(image, go_nord: GoNord): re...
85dc06ef680dad1b9a0201a4d6a97abf726b142b
e75c5412063078c9ea3e7c71a8dc7a2026083a34
/astropy/wcs/tests/test_utils.py
a945aade43b76f89aa8eab0a665c76c621e0afaa
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
astropy/astropy
d6636f24acdf2b18fc3e413ca0c4b1162a63dd41
53188c39a23c33b72df5850ec59e31886f84e29d
refs/heads/main
2023-08-27T18:16:44.061375
2023-08-27T16:07:35
2023-08-27T16:07:35
2,081,289
3,922
1,935
BSD-3-Clause
2023-09-14T09:23:26
2011-07-21T01:33:49
Python
UTF-8
Python
false
false
47,923
py
test_utils.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst from contextlib import nullcontext import numpy as np import pytest from numpy.testing import assert_allclose, assert_almost_equal, assert_equal from packaging.version import Version from astropy import units as u from astropy.coordinates import ITRS, Ea...
ba3d74b2cc885ec785bfda9aceb8f434d5bb3f6c
0588960cdda458d1f3d631921af96eb017591c59
/paperboy/storage/sqla/models/job.py
7da43a4161a359978126fd412a099a756b73c84c
[ "Apache-2.0" ]
permissive
timkpaine/paperboy
c9383ca9d1582637847a211c37f72822b2ba423b
b27bfdbb4ed27dea597ff1d6346eb831542ae81f
refs/heads/main
2022-02-11T03:02:45.425983
2022-02-02T18:57:50
2022-02-02T18:57:50
152,772,708
245
29
Apache-2.0
2022-02-09T18:41:39
2018-10-12T15:37:49
Python
UTF-8
Python
false
false
2,203
py
job.py
from sqlalchemy import Column, Integer, String, DateTime from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship from paperboy.config import JobConfig, JobMetadataConfig from .base import Base class JobSQL(Base): __tablename__ = 'jobs' id = Column(Integer, primary_key=True) name = Column...
f7fc800f8864dad76a4ba1af8e6840900786b279
96dcea595e7c16cec07b3f649afd65f3660a0bad
/script/scaffold/templates/config_flow_helper/tests/test_config_flow.py
d21c66797d86fd6b153fcd9bba7f66a5ed836099
[ "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
3,817
py
test_config_flow.py
"""Test the NEW_NAME config flow.""" from unittest.mock import AsyncMock import pytest from homeassistant import config_entries from homeassistant.components.NEW_DOMAIN.const import DOMAIN from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import FlowResultType from tests.common import M...
08a716beb8e0b94dd272f8e0e41a2e4a6c160c89
3afe81b3edbf3d5d09506c88b3ea43014efdf868
/kglab/esp.py
7cb0d926e723c73b73d6e9eea1bd203611399082
[ "MIT" ]
permissive
DerwenAI/kglab
4ccf674012fee64b1d86e69c457b5e3372b85c05
1992561f57a4669fa11ef843feb65388a3030ea3
refs/heads/main
2023-08-22T19:20:58.947587
2023-08-09T00:35:40
2023-08-09T00:35:40
307,214,458
517
62
MIT
2023-08-31T15:31:27
2020-10-25T23:34:03
Jupyter Notebook
UTF-8
Python
false
false
10,703
py
esp.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # see license https://github.com/DerwenAI/kglab#license-and-copyright # mypy: ignore-errors # pylint: disable-all """ WIP: Evolunationary Shape Prediction """ from collections import deque import random import typing import pandas as pd # type: ignore import rdflib # t...
431bf7f88571d996770712cc285defd801ed83db
c19bcbc98555ef06276f9f0dcffc9ac35942a7c4
/tests/test_vmstat_s.py
01ed7a5695166c07629eda024fb707fe331bf332
[ "MIT" ]
permissive
kellyjonbrazil/jc
4e81a5421cd20be5965baf375f4a5671c2ef0410
4cd721be8595db52b620cc26cd455d95bf56b85b
refs/heads/master
2023-08-30T09:53:18.284296
2023-07-30T17:08:39
2023-07-30T17:08:39
215,404,927
6,278
185
MIT
2023-09-08T14:52:22
2019-10-15T22:04:52
Python
UTF-8
Python
false
false
6,019
py
test_vmstat_s.py
import os import sys import time import json import unittest from jc.exceptions import ParseError import jc.parsers.vmstat_s THIS_DIR = os.path.dirname(os.path.abspath(__file__)) # Set the timezone on POSIX systems. Need to manually set for Windows tests if not sys.platform.startswith('win32'): os.environ['TZ'] =...
57e4ffd5f6c131f3a8fb82b92d99de7080901e7a
b74320ad439e37dfa48cd8db38dab3b7a20a36ff
/scripts/convert_unidiffuser_to_diffusers.py
891d289d8c7601f106724f1196d5f0f0eb3f2650
[ "Apache-2.0" ]
permissive
huggingface/diffusers
c82beba1ec5f0aba01b6744040a5accc41ec2493
5eeedd9e3336882d598091e191559f67433b6427
refs/heads/main
2023-08-29T01:22:52.237910
2023-08-28T18:16:27
2023-08-28T18:16:27
498,011,141
17,308
3,158
Apache-2.0
2023-09-14T20:57:44
2022-05-30T16:04:02
Python
UTF-8
Python
false
false
30,953
py
convert_unidiffuser_to_diffusers.py
# Convert the original UniDiffuser checkpoints into diffusers equivalents. import argparse from argparse import Namespace import torch from transformers import ( CLIPImageProcessor, CLIPTextConfig, CLIPTextModel, CLIPTokenizer, CLIPVisionConfig, CLIPVisionModelWithProjection, GPT2Tokenizer...
5f384f22204840acf2f95117faa121c89b303ed1
21e56f433a800c6f3c1e7b79b04f0a27ce788a51
/tests/unit/api/test_tasks.py
551957d7e299d0094ad412830aee0bfce0959f73
[ "BSD-3-Clause" ]
permissive
mher/flower
01932e724d945650401c6482856f727f46d1d254
066cf497f60e1fb89b439504bd5e4e6cfec8f044
refs/heads/master
2023-09-03T10:00:03.702448
2023-07-04T14:13:43
2023-07-04T14:13:43
4,946,406
5,213
1,126
NOASSERTION
2023-09-13T01:31:53
2012-07-08T13:35:09
Python
UTF-8
Python
false
false
8,174
py
test_tasks.py
import json import time from collections import OrderedDict from datetime import datetime, timedelta from unittest.mock import Mock, PropertyMock, patch import celery.states as states from celery.events import Event from celery.result import AsyncResult from flower.events import EventsState from tests.unit.utils impo...
14b3ded6dcc2e46a2ae9368d47714fbe98cbaa03
be80e20fdab949482cdd9b6148f314813b655014
/stingray/tests/test_crossspectrum.py
2bc0770ccf03f0c5395cdac50152e12b03dc0115
[ "MIT" ]
permissive
StingraySoftware/stingray
5ea2669bba46824504baf055422869cd5383b60a
f661d4513da3d24091e63337e34de9a787b7a5a1
refs/heads/main
2023-08-19T02:08:20.991302
2023-08-18T08:30:56
2023-08-18T08:30:56
43,449,839
171
148
MIT
2023-09-06T10:12:22
2015-09-30T18:04:33
Python
UTF-8
Python
false
false
53,556
py
test_crossspectrum.py
import os import numpy as np import pytest import warnings import matplotlib.pyplot as plt import scipy.special from astropy.io import fits from stingray import Lightcurve from stingray import Crossspectrum, AveragedCrossspectrum from stingray.crossspectrum import cospectra_pvalue from stingray.crossspectrum import nor...
e2f882f2e338ae933f44ade3896080429808abe9
d3f1534c62ab955d883a098d610db41c65aaacfc
/utils/dict_restore.py
1af607e3ae6789e71b52775acacf72b999b3eba0
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
xingyul/meteornet
6e313e36df17ec867952eda283abb7817c78c4c7
5e7dd5f79b764a4af7a789ed84bff4b6dfcdb121
refs/heads/master
2021-11-30T21:28:36.834156
2021-11-19T02:28:24
2021-11-19T02:28:24
218,515,132
148
21
MIT
2020-11-05T09:13:56
2019-10-30T11:47:11
Python
UTF-8
Python
false
false
6,060
py
dict_restore.py
import os import numpy as np import tensorflow as tf import six class SessionUpdate(object): """ Update the variables in a session """ def __init__(self, sess, vars_to_update, logger): """ Args: sess (tf.Session): a session object vars_to_update: a collection of va...
952b72f3bb301b09039bab2f71fae16fb14cb494
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/gpu/test_sparse_add_ops.py
1598ce4306947b557029d5f782ee83ac95598fb9
[ "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
10,532
py
test_sparse_add_ops.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...
ec9b84984275991b40fc21320127991779e46eb8
ee303308d85c28467a7dfe5300951d49a3866fb3
/unit/test_uvm_report_handler.py
3af460ec11ded3fb416b2359e5030d2935dd57ce
[ "Apache-2.0" ]
permissive
tpoikela/uvm-python
3a66a43100a2903f91e0bb73b84c07c1003f7763
fc5f955701b2b56c1fddac195c70cb3ebb9139fe
refs/heads/master
2023-05-02T05:08:00.792132
2023-04-24T16:07:14
2023-04-24T16:07:14
232,838,902
199
43
Apache-2.0
2023-04-24T16:10:44
2020-01-09T15:22:26
Python
UTF-8
Python
false
false
923
py
test_uvm_report_handler.py
import unittest from uvm.base.uvm_report_handler import UVMReportHandler from uvm.base.uvm_object_globals import * class TestUVMReportHandler(unittest.TestCase): def test_handler(self): rh = UVMReportHandler("handler") fhandle = rh.get_severity_id_file(UVM_ERROR, "") self.assertEqual(f...
7f886350385772ad383d09b89db47062ab32e62c
e664468f64af8732e837a2b506c04123274b96d3
/flare/descriptors/env.py
2c6cb2e1d6fda98f56100e153147707a62a7fb81
[ "MIT" ]
permissive
mir-group/flare
94f7ad2c125870956b94193cc45ebbb055165917
700f2c86376a5f439483b55b7b0b2129fd0ca48e
refs/heads/master
2023-08-08T20:33:24.480259
2023-05-26T02:06:09
2023-05-26T02:06:09
146,818,125
247
75
MIT
2023-07-20T11:31:37
2018-08-30T23:40:56
Python
UTF-8
Python
false
false
14,106
py
env.py
"""The :class:`AtomicEnvironment` object stores information about the local environment of an atom. :class:`AtomicEnvironment` objects are inputs to the 2-, 3-, and 2+3-body kernels.""" from typing import List, Union from copy import deepcopy from math import ceil from json import dumps, loads import pickle as pickle...
6e27949a0220e01d400459b297c27d0047ef8412
49b25a6c420048e630884a3446eb0fe2eb7a0cfc
/tests/commands/heap.py
983d4a0eae6d78cebfff593dde2fc59ea5988070
[ "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
7,559
py
heap.py
""" Heap commands test module """ from tests.utils import (ARCH, GefUnitTestGeneric, _target, findlines, gdb_run_cmd, gdb_run_silent_cmd, gdb_start_silent_cmd, is_32b, is_64b) class HeapCommand(GefUnitTestGeneric): """Generic class for command testing, that defin...
685e1ab9abdc7610cc857a82e64856b7490c4cd5
14c3c7e470e3c8048e1fa7d3466c0008577400e6
/Chapter05/concurrent_futures_pooling.py
10747230ed27a87f79202a94bea90fae43a73501
[ "MIT" ]
permissive
PacktPublishing/Python-Parallel-Programming-Cookbook-Second-Edition
7053d7c2ac6f4c53f642e5ee23335c1102398831
a10f0b2ba69995a6a8697e68ae0b53a20f4c04c7
refs/heads/master
2022-10-30T19:55:23.337571
2022-10-28T10:13:28
2022-10-28T10:13:28
166,166,539
105
60
MIT
2021-04-23T04:11:29
2019-01-17T05:35:24
Python
UTF-8
Python
false
false
1,075
py
concurrent_futures_pooling.py
import concurrent.futures import time number_list = list(range(1, 11)) def count(number): for i in range(0,10000000): i += 1 return i*number def evaluate(item): result_item = count(item) print('Item %s, result %s' % (item, result_item)) if __name__ == '__main__': # Sequential Execution...
0cad66a2ac91b5811531ced426a39d85ee014634
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CommonScripts/Scripts/DisplayHTMLWithImages/DisplayHTMLWithImages_test.py
f084cd2b1ab1680b26c8494a0d08030490c8edc9
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
5,169
py
DisplayHTMLWithImages_test.py
import demistomock as demisto import pytest EMAIL_HTML = """ <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div dir="ltr">image 1: <div><div><img src="cid:ii_kgjzy6yh0" alt="image_1.png" width="275" height="184"><br></div></div><div>image 2: </div><div><div><img src="cid:i...
4046f887bfd6b97e19ec14d0728f55f7984d80ba
fce81b804cae23f525a5ad4370b684bf0dc531a5
/numpy/lib/tests/test_mixins.py
632058763b7d9e826122af6834bb72d4bd970434
[ "Zlib", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
numpy/numpy
ba2abcc1d2d46affbb6aabe5aed6407b4b57507e
dc2ff125493777a1084044e6cd6857a42ee323d4
refs/heads/main
2023-09-05T10:10:52.767363
2023-09-04T18:03:29
2023-09-04T18:03:29
908,607
25,725
11,968
BSD-3-Clause
2023-09-14T21:26:09
2010-09-13T23:02:39
Python
UTF-8
Python
false
false
7,030
py
test_mixins.py
import numbers import operator import numpy as np from numpy.testing import assert_, assert_equal, assert_raises # NOTE: This class should be kept as an exact copy of the example from the # docstring for NDArrayOperatorsMixin. class ArrayLike(np.lib.mixins.NDArrayOperatorsMixin): def __init__(self, value): ...
7c69f1c776d84ef3cb424b4669ac082d92cda853
9472c7d1608e318e46214f231773fbb3f33de0f1
/kats/tests/models/test_arima_model.py
da094953328e54d397a3bc06ce5de6c273e3eba2
[ "MIT" ]
permissive
facebookresearch/Kats
16eee984bc1c482bd709cb5d62c226d4ad85f216
00ab9a3db27218b4817eae2e05dc602e437f634f
refs/heads/main
2023-08-30T23:33:12.654847
2023-08-25T16:02:04
2023-08-25T16:02:04
342,388,745
4,514
517
MIT
2023-09-14T15:28:43
2021-02-25T21:51:06
Python
UTF-8
Python
false
false
10,947
py
test_arima_model.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from typing import Dict, Optional, Union from unittest import TestCase import pandas as pd from kats.compat.pandas import a...
436d94a513f1caf2fb143f0a7532460212452efa
eed45ab29d3b36162db3db4b0bda54ed85804f88
/asq/test/test_join.py
c4ea9948e4ab2d12b3ec2eceadb2acb9a5166852
[ "MIT" ]
permissive
sixty-north/asq
af46678b10d6ffea972d7abc8def1443675a0505
facfd55d6b661bbf0d56d2d9cebd9eb3e1febbea
refs/heads/master
2022-04-30T14:11:25.637946
2022-04-23T16:08:22
2022-04-23T16:08:22
39,247,948
183
17
MIT
2020-02-28T16:53:58
2015-07-17T10:04:23
Python
UTF-8
Python
false
false
2,590
py
test_join.py
import unittest from asq.queryables import Queryable from asq.test.test_queryable import infinite, TracingGenerator __author__ = "Sixty North" class TestJoin(unittest.TestCase): def test_join(self): a = [1, 2, 3, 4, 5] b = [4, 5, 6, 7, 8] c = Queryable(a).join(b).to_list() d = [(4...
fb2ecd4a81906c185f08d216b4f00731144e4c9d
6e5b2eb855460fce67fd0d15180caddb2252a256
/sahi/models/base.py
d1cd227d0fa1652b07792392f3801df04128c517
[ "MIT" ]
permissive
obss/sahi
60d526f1e94559737b756fa741a51231580300b7
b115f08f0c0aeeb151adf24e47c222d3483cc931
refs/heads/main
2023-09-01T01:09:21.158024
2023-08-26T22:58:04
2023-08-26T22:58:04
334,412,452
2,987
477
MIT
2023-09-04T10:54:07
2021-01-30T12:54:53
Python
UTF-8
Python
false
false
6,977
py
base.py
# OBSS SAHI Tool # Code written by Fatih C Akyon, 2020. from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np from sahi.utils.import_utils import is_available from sahi.utils.torch import select_device as select_torch_device class DetectionModel: def __init__( self, mode...
67dd35a8de7bc7d9068d9d9d2037b54704e62bdf
47efb342be85bdd66426b8f393ed48e20d4beaff
/extern/blockly/i18n/status.py
64fa98da1d5d6ee40c3efc45a2cffce91f9e76f4
[ "Apache-2.0", "MIT" ]
permissive
entrylabs/entryjs
c5e78bfe4c12bc5bbf49cccacf120f81c2ea37d2
c1ac4da3340bab1b645a8744e65405f13544e06b
refs/heads/develop
2023-08-07T18:39:43.241849
2023-07-28T06:12:20
2023-07-28T06:12:20
37,836,814
132
902
Apache-2.0
2023-09-13T09:32:54
2015-06-22T04:05:07
JavaScript
UTF-8
Python
false
false
8,965
py
status.py
#!/usr/bin/python # Gives the translation status of the specified apps and languages. # # Copyright 2013 Google Inc. # https://blockly.googlecode.com/ # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the Li...
23b9a9273711c9348339a3f6396a0f650eaa66d6
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/tools/memory/partition_allocator/plot_bucket_stats.py
669bd6258f19d9e67e3811d7cc1b526274e1a02a
[ "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
3,427
py
plot_bucket_stats.py
#!/usr/bin/env python3 # Copyright 2022 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Plots the distribution of allocated and unallocated slots in SlotSpans. To run this: 1. Build pa_tcache_inspect at a "close-enough" revision to the Chrom...
566217efd925e2dc63df18e0a2d8522ff3bcf963
8aefc80adcb06731c5b997c4dae2b80b3bf387b4
/tests/test_services.py
2ddeb4bc385b334b8488df7f4cbca27b6fecaa20
[ "Apache-2.0" ]
permissive
airbus-cert/regrippy
d97ebc5e7e701288d0d1f23fc4a22612759f5ee3
5a4babedb31fc1ac4699a435265da18cc60dca30
refs/heads/master
2022-03-21T02:34:22.300016
2022-03-09T08:45:37
2022-03-09T08:45:37
180,773,594
170
22
Apache-2.0
2023-08-29T11:02:06
2019-04-11T10:59:31
Python
UTF-8
Python
false
false
1,185
py
test_services.py
import pytest from Registry.Registry import RegSZ from regrippy.plugins.services import Plugin as plugin from .reg_mock import LoggerMock, RegistryKeyMock, RegistryMock, RegistryValueMock @pytest.fixture def mock_reg(): key = RegistryKeyMock.build("ControlSet002\\Services") reg = RegistryMock("SYSTEM", "sys...
306ec2dcf05b2137856ee86178c6f4e2ed5da51a
d8c44d26e0d0eb9ebba69fa5c0c44f47dcf32065
/elasticsearch/docker/tests/toolbelt.py
f54390a0a024cc0981e7d2a6f8d185ee0b8f6e52
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
opendistro-for-elasticsearch/opendistro-build
d23b65bf76ca236eeb41b893347a7b5a2e7fa1ca
2d329d4ffc9275951d3c7069ebba3ad7a4767da8
refs/heads/main
2023-08-29T12:21:58.835225
2022-03-18T23:42:13
2022-03-18T23:42:13
172,155,554
377
232
Apache-2.0
2022-03-29T22:03:02
2019-02-23T01:07:13
Shell
UTF-8
Python
false
false
3,060
py
toolbelt.py
# Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
4ca7811aab3bf6cc42434bea4a67fbe184708deb
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/win32/gethostbyname.py
ef8b5c5ab0c58b88a434a5aefc7edcaccd5ef77d
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
318
py
gethostbyname.py
import angr import logging l = logging.getLogger("angr.procedures.win32.gethostbyname") class gethostbyname(angr.SimProcedure): def run(self, _): # pylint:disable=arguments-differ ret_expr = self.state.solver.BVS("gethostbyname_retval", 32, key=("api", "gethostbyname_retval")) return ret_expr
cea7bbf81b0211731307aa2e6035aa31d932a515
d4239425234eacb647c4cc4f2f4c8537b618fca0
/onadata/libs/utils/viewer_tools.py
1249ee8bab91a52461582969450726fc3e8b773e
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
onaio/onadata
58762d6a606870bd13d43fd27fdaa61720a745c2
e5bdec91cb47179172b515bbcb91701262ff3377
refs/heads/main
2023-09-04T03:12:43.388668
2023-08-24T07:27:08
2023-08-24T07:27:08
12,888,897
177
149
NOASSERTION
2023-09-13T14:19:05
2013-09-17T07:25:01
Python
UTF-8
Python
false
false
10,006
py
viewer_tools.py
# -*- coding: utf-8 -*- """Utility functions for data views.""" import json import os import sys import zipfile from json.decoder import JSONDecodeError from typing import Dict from defusedxml import minidom from django.conf import settings from django.core.files.storage import get_storage_class from django.utils.tran...
a725b6fd46ee2c0847dba5bf98a711d8b067c3e4
03666e5f961946fc1a0ac67781ac1425562ef0d7
/src/test/tests/queries/scf.py
e64430b74c181ec389b209086ccfc1489bedd519
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
visit-dav/visit
e9f81b4d4b9b9930a0db9d5282cd1bcabf465e2e
601ae46e0bef2e18425b482a755d03490ade0493
refs/heads/develop
2023-09-06T08:19:38.397058
2023-09-05T21:29:32
2023-09-05T21:29:32
165,565,988
335
120
BSD-3-Clause
2023-09-14T00:53:37
2019-01-13T23:27:26
C
UTF-8
Python
false
false
4,142
py
scf.py
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: scf.py # Tests: queries - spherical compactness factor # # Defect ID: VisIt00006385 # # Programmer: Hank Childs # Date: July 14, 2005 # # Modifications: # Mark C. Miller, Fri Nov 1...
6673ae92d65f785e8a2a8266ad1272c9e70b59ac
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/tests/reports/test_office365_reports.py
01caf67d158d375210be42658abb47c60558da1d
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
441
py
test_office365_reports.py
from tests.graph_case import GraphTestCase class TestOffice365Reports(GraphTestCase): @classmethod def setUpClass(cls): super(TestOffice365Reports, cls).setUpClass() @classmethod def tearDownClass(cls): pass def test1_get_office365_activations_user_counts(self): result =...
87b50a54574a7fdc6a28d47cfb367c34216ee077
db12b990924703cd74748d8585cd9c11fafa6746
/scripts/grabGLRMrunLogs.py
7f73120dfc802a6519ddbdfea703fe0d7abc3f02
[ "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
4,852
py
grabGLRMrunLogs.py
#!/usr/bin/python import sys import os import json import pickle import copy import subprocess """ This script is written to grab the logs from our GLRM runs and saved them onto our local machines for later analysis. For me, this is how I will call this script and the input arguments I will use: python grabGLRMru...
7127ccddaaee28075b9dc6002904e5dd0897d37c
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-artifact-registry/google/cloud/artifactregistry_v1/types/yum_artifact.py
701327289f204d6aad1895d81eb582d834be7734
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
5,666
py
yum_artifact.py
# -*- coding: utf-8 -*- # Copyright 2023 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...
e2565df5644adf2b6cdca1533a89dbbc741080d3
bdf0d4d3aac186af3ad0ad6ac9f380f9a0573fba
/demo/runners/support/utils.py
0056686fbfd1996c309b2b96040f5c4cd617154f
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0" ]
permissive
hyperledger/aries-cloudagent-python
f25d961e0717a4d703bf43df3e4b4bc8ec07b908
39cac36d8937ce84a9307ce100aaefb8bc05ec04
refs/heads/main
2023-09-01T15:37:05.353674
2023-08-31T14:13:06
2023-08-31T14:13:06
193,556,007
370
530
Apache-2.0
2023-09-14T17:59:34
2019-06-24T18:12:14
Python
UTF-8
Python
false
false
7,151
py
utils.py
import functools import json import os import sys from timeit import default_timer import prompt_toolkit from prompt_toolkit.application import run_in_terminal from prompt_toolkit.eventloop.defaults import use_asyncio_event_loop from prompt_toolkit.patch_stdout import patch_stdout from prompt_toolkit.shortcuts import ...
f9b98e9a78eaebd06130afe0ffa6b63515776b25
aae3c6fccb2296e4da5bb10310f5dd6baba8b7de
/activitysim/workflows/steps/error_handler.py
97e85bb6181c789e565c45020c458e55d586c6c1
[ "BSD-3-Clause" ]
permissive
ActivitySim/activitysim
3d938e616452be76db1bb0c8a1212e12b9216823
a8e755f96d0e32633a6d3657c4878e3b6a37e59a
refs/heads/main
2023-08-08T16:02:06.275693
2023-05-09T13:08:23
2023-05-09T13:08:23
20,981,950
118
89
BSD-3-Clause
2023-07-25T14:07:16
2014-06-18T23:57:40
Jupyter Notebook
UTF-8
Python
false
false
352
py
error_handler.py
import logging def error_logging(func): def wrapper(*args, **kwargs): try: return func(*args, **kwargs) except Exception as err: logging.error(f"===== ERROR IN {func.__name__} =====") logging.exception(f"{err}") logging.error(f"===== / =====") ...
fefb766f8c764c3687b21fa0627047723d88cd58
09d0d2143026b731ad3c906581291a3c0a83e849
/contrib/cr3bp_DhruvJ/cr3bp_lib_calc.py
e7612101798fede0b12ddd9a8245abd5e97cef49
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
poliastro/poliastro
5fbfeddd44ba5af234452d42f56bbd47c90a8bc4
55e96432b27301c5dffb4ef6b4f383d970c6e9c0
refs/heads/main
2023-08-21T17:20:58.631529
2023-05-07T07:54:00
2023-05-07T07:54:00
11,178,845
814
357
MIT
2023-08-29T10:03:59
2013-07-04T14:14:45
Python
UTF-8
Python
false
false
2,337
py
cr3bp_lib_calc.py
# -*- coding: utf-8 -*- """Created on 7 Jan 22 12:24:03 Updated 20 Mar 2022. @author: Dhruv Jain, Multi-Body Dynaminitial_guesss Research Group, MSAAE Purdue University dhruvj9922@gmail.com Objectve: Calculate the position [nd] of 5 libration points for a system in CR3BP """ import numpy as np d...
f216b953022c6ae0e88833b08714a4bce758c8b7
c641636e184c0ec1dcc7b851bad678c898cdd05d
/legacy/examples/deepwalk/link_predict.py
d0f72bc501aa6169c80a459eb0822220e14968b7
[ "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
8,221
py
link_predict.py
# Copyright (c) 2019 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 applic...
5c0b21c6341ae28a376ea292b525731dcf4c59a0
028a4f23765c317bfee9a8c0434aec615428b431
/rust/experiments/src/validation/generate_test_images.py
25108d7e69b1e7fd8f01ba2d07f13769a38678f6
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mc2-project/delphi
38e26b21bb21022f2b5d008f24fffe875b50c148
92bc0071fa11570df6b048ae0f6937ced249bb5a
refs/heads/master
2022-12-17T18:07:06.230403
2022-11-26T23:06:42
2022-11-26T23:06:42
234,144,768
116
32
Apache-2.0
2022-07-05T19:27:55
2020-01-15T18:23:13
Rust
UTF-8
Python
false
false
4,618
py
generate_test_images.py
""" Evaluate Keras model accuracy on generated test images """ import argparse import numpy as np import os import random import sys os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf from importlib.util import spec_from_file_location, module_from_spec from tensorflow.keras.datasets import cifar10, cifar...
633c1a91c8afdb922338ce82b80eddbf6f91594a
3ebbaf23f44312aa84f8eafd68db2650e9f4d741
/bot/updater.py
790606955f5f0edbc83a7fea02f1cb970264abf9
[]
no_license
zeroone2numeral2/qbittorrent-bot
3f1e2bb91ff8e24002048338930c7e236211f457
81b97ec9b6ac024d629861b8bd638504d6975537
refs/heads/master
2022-12-20T20:04:36.936274
2022-07-04T12:55:07
2022-07-04T12:55:07
209,236,432
158
53
null
2022-12-13T09:14:31
2019-09-18T06:38:59
Python
UTF-8
Python
false
false
629
py
updater.py
# noinspection PyPackageRequirements from telegram.ext import Defaults from .bot import CustomUpdater from config import config REQUEST_KWARGS = {} if config.proxy.url: REQUEST_KWARGS['proxy_url'] = config.proxy.url if config.proxy.username: REQUEST_KWARGS['urllib3_proxy_kwargs'] = { 'use...
af9ab9712edf55231d0fe8a98e767cc3019fea88
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/gpu/test_atan_grad_grad_op.py
2f77e0fcac012333bf33ee77c1260049605c0da2
[ "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
2,883
py
test_atan_grad_grad_op.py
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
919a35aa98ac4be525b97e6dce74933c7fc3f5f3
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/rename/renamePackageUpdatesFirstFormImports/before/a.py
da03f5cf64ee459331054f81550f36350ec81a87
[ "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
40
py
a.py
import f<caret>oo.m1 print(foo.m1.f())
bdb9d8fea0968a95311292794ec034ec6019906b
8c39ba92cc71ff78242477d3256f6ee3daa872c7
/conans/test/integration/remote/test_remote_file_credentials.py
78e0a4ba1dc922aa794548eb3c0fec2e6bfb3d45
[ "MIT" ]
permissive
conan-io/conan
eb4427e534a0edbb1fb06c753d5d9587faaef93c
bac455d1329b6744cdc41747354a727c9233179f
refs/heads/release/2.0
2023-09-03T18:51:54.345761
2023-09-03T17:30:43
2023-09-03T17:30:43
47,190,624
7,754
1,182
MIT
2023-09-14T15:16:09
2015-12-01T13:17:02
Python
UTF-8
Python
false
false
1,546
py
test_remote_file_credentials.py
import json import os import pytest from conans.test.assets.genconanfile import GenConanfile from conans.test.utils.tools import TestClient, TestServer from conans.util.files import save @pytest.fixture() def client(): test_server = TestServer() c = TestClient(servers={"default": test_server}) c.save({"...
1df42021bf2165b4eebe840b5c7e837fe6438e7a
4875f7018eda5c3b2546c885cbc07e761bd21575
/onmt/modules/Conv2Conv.py
5a369eeb5496051845e7d027c1b55e33aa13907d
[ "MIT" ]
permissive
stanfordnlp/cocoa
916fb787e08db894e7f0c19590e369b600c20372
52fb2d47a28537c7892f146a8972a75bcde4812c
refs/heads/master
2023-08-11T00:45:49.702771
2022-04-19T16:34:29
2022-04-19T16:34:29
65,188,526
167
67
MIT
2022-10-04T17:30:31
2016-08-08T08:52:02
Python
UTF-8
Python
false
false
7,820
py
Conv2Conv.py
""" Implementation of "Convolutional Sequence to Sequence Learning" """ import torch import torch.nn as nn import torch.nn.init as init import torch.nn.functional as F from torch.autograd import Variable import onmt.modules from onmt.modules.WeightNorm import WeightNormConv2d from onmt.Models import EncoderBase from o...
0dbf19f0d78d892d930ecf3b3ebaacfd0baf6449
97535f64b6e19a0458d54f9bd8611fa0d3566c2b
/tensorflow_addons/layers/tests/normalizations_test.py
98442ca7f90a4df4cb8e4fe7ef16f386407d1d45
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
tensorflow/addons
41880ec2a0196a9a7e2420d72ed24d3f72fdb9cf
5dd5f65827c37e9b9b616b79ed93da856b57ffe5
refs/heads/master
2023-08-24T15:04:44.189313
2023-07-12T13:46:52
2023-07-12T13:46:52
159,249,114
1,779
761
Apache-2.0
2023-09-12T20:39:49
2018-11-26T23:57:17
Python
UTF-8
Python
false
false
20,332
py
normalizations_test.py
# Copyright 2019 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...
24848df4aaa9894f7a5715a8e82584f758bc5e96
37a420e606a51195b9d82d4dd8682b6010523fee
/keras_unet_collection/_backbone_zoo.py
bd41de3b29203101a9ef4125df04bb6df40c719e
[ "MIT" ]
permissive
yingkaisha/keras-unet-collection
cee50c21dae011c5312f87b589e6058ddb4def50
d30f14a259656d2f26ea11ed978255d6a7d0ce37
refs/heads/main
2023-04-18T15:55:13.460006
2022-07-05T21:43:04
2022-07-05T21:43:04
323,426,984
548
161
MIT
2023-02-22T08:58:53
2020-12-21T19:16:34
Python
UTF-8
Python
false
false
5,193
py
_backbone_zoo.py
from __future__ import absolute_import from tensorflow.keras.applications import * from tensorflow.keras.models import Model from keras_unet_collection.utils import freeze_model import warnings layer_cadidates = { 'VGG16': ('block1_conv2', 'block2_conv2', 'block3_conv3', 'block4_conv3', 'block5_conv3'), 'V...
7c4c25c67293c807305dcf166f6b9824e6f49f95
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/data/experimental/ops/interleave_ops.py
4cf61f9d5c7f9bb27b1d0ed9ebdec462fa7909d9
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
10,358
py
interleave_ops.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...
d96311e6c1a3722691c5123ed3616a1e4759f96d
c429fa5d7aef02d54eb1b5399dab91ab575ae7b2
/pyelasticsearch/exceptions.py
a89d5892af06a9f3eb419a792d28d2afe9d485b5
[ "BSD-3-Clause" ]
permissive
pyelasticsearch/pyelasticsearch
19dacb97dfee30729fb69d0ca7c65693c8cad340
7c2d3dd7dba80e36f061cd20194287ba92b8f81f
refs/heads/master
2022-02-21T19:16:52.018591
2018-04-02T16:54:18
2018-04-02T16:54:18
533,328
162
61
NOASSERTION
2021-02-22T10:01:00
2010-02-24T04:19:00
Python
UTF-8
Python
false
false
3,273
py
exceptions.py
from urllib3.exceptions import TimeoutError as Timeout try: from urllib3.exceptions import NewConnectionError as ConnectionError except ImportError: from urllib3.exceptions import ConnectionError class ElasticHttpError(Exception): """Exception raised when ES returns a non-OK (>=400) HTTP status code""" ...
5399d9bab84c540abd57ef8fb0fcdfd86ba67349
6024e8fb79aadad36f44cd46a085cb10bba86a78
/Chapter_3_code/ControlTurtleBot.py.py
06c333f8290aa1aa51cadc4f161bd54811384dad
[ "MIT" ]
permissive
PacktPublishing/ROS-Robotics-By-Example
68aadf45bdadef163403210fc5a96d4caa683aef
3a072b549efe31318edc2c78b46d20792e49289b
refs/heads/master
2023-02-09T15:06:52.769997
2023-01-30T08:12:09
2023-01-30T08:12:09
64,373,215
106
102
MIT
2022-05-11T05:37:04
2016-07-28T07:22:39
Python
UTF-8
Python
false
false
1,993
py
ControlTurtleBot.py.py
#!/usr/bin/env python # Execute as a python script # Set linear and angular values of TurtleBot's speed and turning. import rospy # Needed to create a ROS node from geometry_msgs.msg import Twist # Message that moves base class ControlTurtleBot(): def __init__(self): # ControlTurtleBot is...
9a7b08d90fe7e686e20e5ca892e58d1f88b7a4d9
48f47ede2aa107edd1c3cf7973dc634f87eb27bd
/pseudocode/multiagent.py
fed9f9838ff257c7f59b222ac6920348dd311814
[ "Apache-2.0" ]
permissive
kimbring2/AlphaStar_Implementation
01c2faf9fabba902146d070cf4a5af52b0324944
ef9a23cebfce385397e1d67273e6b86ea67a9713
refs/heads/master
2023-05-23T14:17:20.085234
2022-12-27T16:53:51
2022-12-27T16:53:51
187,962,388
157
24
null
null
null
null
UTF-8
Python
false
false
16,028
py
multiagent.py
"""Library for multiagent concerns.""" import collections import numpy as np import random from pysc2.lib import actions, features, units from utils import get_entity_obs, get_upgrade_obs, get_gameloop_obs, get_race_onehot, get_agent_statistics from network import EntityEncoder, ScalarEncoder, SpatialEncoder, Core _...
a79d5222b4f06e1dbe0d9ca46bd0513c1a3780cf
503bfe863ae9e92bf940a5e8baa57c0de44f4da6
/src/silx/gui/plot/items/histogram.py
9b436b5d15a5d5837e6c9f1be3435ddde39d5652
[ "MIT", "LicenseRef-scancode-public-domain-disclaimer", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
silx-kit/silx
58105c0ed9cd02c75543c0c67a027471ca87922b
5e33cb69afd2a8b1cfe3183282acdd8b34c1a74f
refs/heads/main
2023-08-24T14:33:49.732794
2023-07-25T07:44:02
2023-07-25T07:44:02
43,291,718
120
78
MIT
2023-09-14T13:07:11
2015-09-28T09:23:13
Python
UTF-8
Python
false
false
14,163
py
histogram.py
# /*########################################################################## # # Copyright (c) 2017-2023 European Synchrotron Radiation Facility # # 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 Sof...
a13a9f5e6cacbf9952b1ee8fa3f95bd433841aa9
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/OpenMetadata/ingestion/tests/unit/metadata/utils/test_class_helper.py
812ccd264ec997c36964eff9a2da47a7f3d78314
[ "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
2,104
py
test_class_helper.py
import pytest from metadata.generated.schema.entity.services.dashboardService import DashboardService from metadata.generated.schema.entity.services.databaseService import DatabaseService from metadata.generated.schema.entity.services.messagingService import MessagingService from metadata.generated.schema.entity.servi...
9b904b6b9a038a2726dcff22a66b489181e8d967
dbab4ef8ab69e46beed07e06523b920bdf4f0bfd
/testing/__init__.py
3f5c8137a84d1244c9eb1cf285f280bdf1e26303
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
chriskuehl/fluffy
9322f240d98576169f5a4e0fe4e4cd06e381745c
d1831685fa80e105d88d8e970d54ba51e502dcc9
refs/heads/main
2023-08-06T21:40:24.443183
2023-05-14T04:34:29
2023-05-14T04:34:29
15,094,183
158
25
NOASSERTION
2023-06-13T06:27:57
2013-12-11T00:49:44
Python
UTF-8
Python
false
false
1,206
py
__init__.py
import re import requests PLAINTEXT_TESTCASES = ( '', '\t\t\t', ' ', 'hello world', 'éóñəå ⊂(◉‿◉)つ(ノ≥∇≤)ノ', 'hello\nworld\n', ) BINARY_TESTCASES = ( b'hello world\00', b'\x43\x92\xd9\x0f\xaf\x32\x2c\x00\x12\x23', b'\x11\x22\x33\x44\x55', ) FILE_CONTENT_TESTCASES = tuple( ...
bf4cac8476c379eb780aac8c1a14695cf4ba6403
e1cddfd754d952134e72dfd03522c5ea4fb6008e
/test/test_map_br.py
ae09e9b7d7adc91e22a93f7b650d7486a7033224
[ "Apache-2.0" ]
permissive
FDio/vpp
0ad30fa1bec2975ffa6b66b45c9f4f32163123b6
f234b0d4626d7e686422cc9dfd25958584f4931e
refs/heads/master
2023-08-31T16:09:04.068646
2022-03-14T09:49:15
2023-08-31T09:50:00
96,556,718
1,048
630
Apache-2.0
2023-06-21T05:39:17
2017-07-07T16:29:40
C
UTF-8
Python
false
false
23,981
py
test_map_br.py
#!/usr/bin/env python3 import ipaddress import unittest from framework import VppTestCase, VppTestRunner from vpp_ip import DpoProto from vpp_ip_route import VppIpRoute, VppRoutePath from util import fragment_rfc791, fragment_rfc8200 import scapy.compat from scapy.layers.l2 import Ether from scapy.packet import Raw ...
4cc7425eb1cf872aee38450bd9d4fbc71fca5432
d5dcc40a62ddb018447cafaa2e7862c2bceed48a
/examples/unittest/snapshots/snap_test_demo.py
2a663f40df870833eafdd1deadbe053ee3b99da9
[ "MIT" ]
permissive
syrusakbary/snapshottest
fcbc5f9e6eb0c7200980ca145d6052af8f19d728
770b8f14cd965d923a0183a0e531e9ec0ba20192
refs/heads/master
2023-08-26T02:04:47.810032
2023-07-21T01:38:33
2023-07-21T01:38:33
87,759,082
520
99
MIT
2023-07-21T01:38:34
2017-04-10T02:45:52
Python
UTF-8
Python
false
false
228
py
snap_test_demo.py
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['TestDemo::test_api_me 1'] = { 'url': '/me' }
c853f5e3e587a7fe287daae8415505e5d7a26ad1
c4b8e1e09dedbccd37ca008ecaaca4438610bbaf
/google_or_tools/set_partition_sat.py
6a54dafbae87fe97ee82c4326a2873ff04ba6da7
[ "MIT" ]
permissive
hakank/hakank
4806598b98cb36dd51b24b0ab688f52dadfe9626
c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2
refs/heads/master
2023-08-15T00:21:52.750270
2023-07-27T16:21:40
2023-07-27T16:21:40
11,933,517
336
97
MIT
2023-07-27T11:19:42
2013-08-06T20:12:10
JavaScript
UTF-8
Python
false
false
5,299
py
set_partition_sat.py
# Copyright 2021 Hakan Kjellerstrand hakank@gmail.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
7ddfbd0997b3bc13ceb2a8e8a46b6a1eb97e5141
5f32d51807618bccf199f3942f5d92a45367b9a9
/noxfile.py
d003088216fa450bbf5fc4bce288bcfe22ca6e4e
[ "MIT" ]
permissive
PyO3/setuptools-rust
89b1ad2bc01da47f8ed90854dd190da2822e9c41
322d5f8a642e66d3168025e864e68d84d8c115ea
refs/heads/main
2023-09-03T03:00:53.325718
2023-09-01T13:39:15
2023-09-01T13:39:15
84,393,574
508
98
MIT
2023-09-05T02:55:05
2017-03-09T03:24:55
Python
UTF-8
Python
false
false
4,671
py
noxfile.py
import os import tarfile from inspect import cleandoc as heredoc from glob import glob from pathlib import Path from unittest.mock import patch import nox @nox.session(name="test-examples", venv_backend="none") def test_examples(session: nox.Session): for example in glob("examples/*/noxfile.py"): session...
22fe3c5b0a0260e22ceb298bf6342e1bf01d6634
1554b551ecf51d38efd27252b52fc722ee3869af
/models/hbert/model.py
697d5e49a11805732934454808d66c2d74b7fa8d
[ "Apache-2.0" ]
permissive
castorini/hedwig
540c231c98f19b576e575f9d8f0a5e937832d752
277814c401f4d17f5489e3c8c6deefc1af9eeffd
refs/heads/master
2023-08-03T08:54:01.015424
2022-05-07T20:01:54
2022-05-07T20:01:54
174,762,036
603
140
Apache-2.0
2023-07-21T16:23:09
2019-03-10T00:44:37
Python
UTF-8
Python
false
false
2,871
py
model.py
import torch import torch.nn.functional as F from torch import nn from models.hbert.sentence_encoder import BertSentenceEncoder class HierarchicalBert(nn.Module): def __init__(self, args, **kwargs): super().__init__() self.args = args input_channels = 1 ks = 3 self.sente...
45127ae7280b7d3513c2ecddc35611e6e111f1b1
8383cd5031e03657a006e05ca229c59f55625c07
/deepwalk/__init__.py
b110c917226d8ae8f9927ce7cdb7c4b7826cdcbc
[ "MIT" ]
permissive
xgfs/deepwalk-c
1288fab41022943f1d23be3c3a9c3b16f30d44a0
73958672002e2ad2756d567ab868701829ab53e0
refs/heads/master
2022-08-08T19:01:06.155093
2020-05-15T18:12:37
2020-05-15T18:12:37
101,648,610
101
18
MIT
2022-12-06T02:40:24
2017-08-28T13:57:45
C++
UTF-8
Python
false
false
35
py
__init__.py
# encoding: utf8 # __init__.py
bd0e5f98c340052b6c224c3980cc2cd89a076a03
753cd066a9bd26b6c37c8d53a86c7a9c659ec18c
/nlp/bert/popxl/run_squad_training.py
f89022c8bec28ba1acd3ba4415326701ae76685b
[ "CC-BY-SA-3.0", "CC-BY-4.0", "MIT" ]
permissive
graphcore/examples
ac872015808ed2a913d4d7bf0d63202ce15ebbae
e2f834dd60e7939672c1795b4ac62e89ad0bca49
refs/heads/master
2023-08-05T02:08:12.341836
2023-07-27T11:13:10
2023-07-27T11:13:10
143,977,106
311
80
MIT
2023-09-11T16:42:56
2018-08-08T07:29:17
Python
UTF-8
Python
false
false
6,640
py
run_squad_training.py
#!/usr/bin/env python3 # Copyright (c) 2021 Graphcore Ltd. All rights reserved. import logging import time import wandb import torch import numpy as np from tqdm import tqdm from datasets import load_dataset, load_metric import popxl from popxl.utils import to_numpy from squad_inference import squad_inference_phased...
a7f94a913f2605daf9a187c8108431f4ee78cb1c
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/quickFixes/PyRenameElementQuickFixTest/pep8Function.py
7a358d7e74048395dcee29975827a4e62de5a789
[ "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
22
py
pep8Function.py
def Fo<caret>o(): pass
323e08a38d51cb4a686ee24c757d5b0067ef8423
d5a3d1197f75b3a0092c370d87f249b1934339bb
/lora_diffusion/preprocess_files.py
bedb89f54dd8ad2b2a5b8b3f3eb69ffb763d38b4
[ "Apache-2.0" ]
permissive
cloneofsimo/lora
5b892b4aa4bcd0ee7a86eaf9d0576e5eb112b4c0
bdd51b04c49fa90a88919a19850ec3b4cf3c5ecd
refs/heads/master
2023-08-31T12:34:50.029052
2023-02-13T09:06:41
2023-02-13T09:06:41
575,628,616
5,410
399
Apache-2.0
2023-08-29T17:57:31
2022-12-08T00:09:05
Jupyter Notebook
UTF-8
Python
false
false
9,962
py
preprocess_files.py
# Have SwinIR upsample # Have BLIP auto caption # Have CLIPSeg auto mask concept from typing import List, Literal, Union, Optional, Tuple import os from PIL import Image, ImageFilter import torch import numpy as np import fire from tqdm import tqdm import glob from transformers import CLIPSegProcessor, CLIPSegForImage...
f722625f5b28aac63c36415a17913cf1d1e8003f
2a71a577dd2a4f235a70b6e54cdfff9c38764081
/Utils/agent.py
30d82122a57dfff98cf24ef4f70ae91dc5184544
[ "MIT" ]
permissive
mkorman90/VolatilityBot
0ad8ca9f50196b1f92616de7e8b739745bf9deda
b31ef29e42fa820d2e1afc99e9e7c318174bb591
refs/heads/master
2021-06-19T13:13:37.347055
2021-06-15T05:31:06
2021-06-15T05:31:06
30,304,847
275
64
null
2021-06-15T05:31:06
2015-02-04T15:13:46
Python
UTF-8
Python
false
false
3,530
py
agent.py
import hashlib import os import base64 import json import subprocess from flask import Flask, request from subprocess import Popen DETACHED_PROCESS = 0x00000008 app = Flask(__name__) class AgentInstance: DEST_PATH = 'C:\\temp' AGENT_KEY = 'ZZ4UNX4MGVSSCQ920O5CFCXR4UOYZ0S1UW70CLF9BC83E1VHA9W9MX0APTQ0WV0G' ...
b2c9ef4ab11188dcd48b99fee2fc8c2a04acfb69
010279e2ba272d09e9d2c4e903722e5faba2cf7a
/contrib/python/scipy/py3/scipy/linalg/special_matrices.py
c862b58d7757b09ac2f2a8d0da8f887570f1ac5f
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT", "Qhull", "BSD-3-Clause", "BSL-1.0", "BSD-2-Clause" ]
permissive
catboost/catboost
854c1a1f439a96f1ae6b48e16644be20aa04dba2
f5042e35b945aded77b23470ead62d7eacefde92
refs/heads/master
2023-09-01T12:14:14.174108
2023-09-01T10:01:01
2023-09-01T10:22:12
97,556,265
8,012
1,425
Apache-2.0
2023-09-11T03:32:32
2017-07-18T05:29:04
Python
UTF-8
Python
false
false
39,925
py
special_matrices.py
import math import numpy as np from numpy.lib.stride_tricks import as_strided __all__ = ['tri', 'tril', 'triu', 'toeplitz', 'circulant', 'hankel', 'hadamard', 'leslie', 'kron', 'block_diag', 'companion', 'helmert', 'hilbert', 'invhilbert', 'pascal', 'invpascal', 'dft', 'fiedler', 'fied...
f4785e9091ccc3a655f029ca53481dfd1b9749b1
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/前端笔记/牛客/牛客网前端笔试题/算法题/美团2016研发工程师编程题/tempCodeRunnerFile.py
d555b4f3147f32ddfbe90906b3a2ded382a005d6
[]
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
222
py
tempCodeRunnerFile.py
n(n: int) -> None: # res = 1 # while res <= n: # res <<= 1 # print((res >> 1) - 1) # while True: # try: # n = int(input()) # main(n) # except EOFError: # br
524c8e90df87845940c493bbc13e009fa659d14f
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/blueprint/test_models.py
b2d3ce517d89c22877344b099a70a1b04ddec9f6
[ "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
9,114
py
test_models.py
"""Test blueprint models.""" import logging from unittest.mock import patch import pytest from homeassistant.components.blueprint import errors, models from homeassistant.core import HomeAssistant from homeassistant.util.yaml import Input @pytest.fixture def blueprint_1(): """Blueprint fixture.""" return mo...
d22a4c6fa17af1e7e860e9f43293629c00fa8cda
db43055180800e54526affb7941fc77e0226c4b3
/city_scrapers/spiders/chi_ssa_60.py
306612a2424ae2405ca9fb5ee2962cb7086353ab
[ "MIT" ]
permissive
City-Bureau/city-scrapers
53724d4e973d71ec331cd9749e350c460aa6fb9d
611fce6a2705446e25a2fc33e32090a571eb35d1
refs/heads/main
2023-08-15T01:06:49.336847
2023-07-01T20:39:28
2023-07-01T20:39:28
97,890,025
308
366
MIT
2023-09-07T07:30:12
2017-07-21T00:45:13
Python
UTF-8
Python
false
false
4,270
py
chi_ssa_60.py
import html import json import re from datetime import datetime from city_scrapers_core.constants import ADVISORY_COMMITTEE, COMMISSION, COMMITTEE from city_scrapers_core.items import Meeting from city_scrapers_core.spiders import CityScrapersSpider from dateutil.relativedelta import relativedelta from scrapy import R...
878826dcd1e6bb8613d0cfb1406b1c8d357d599a
aee26a4c731a84481a499679c3d4cef9ec954aed
/tacker/db/common_services/common_services_db.py
33a5948249e4c796edc7d4a38bc61061beeb3b58
[ "Apache-2.0" ]
permissive
openstack/tacker
6976cbee3afadfd9390849b56da2837feb93e912
9c7918f0b501cdeaffae40f585b76fc92b8e196e
refs/heads/master
2023-09-04T01:22:43.106241
2023-08-31T00:06:42
2023-08-31T00:42:20
21,259,951
125
172
Apache-2.0
2021-05-09T06:13:08
2014-06-27T01:11:56
Python
UTF-8
Python
false
false
1,209
py
common_services_db.py
# Copyright 2016 Brocade Communications System, 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 #...
44c37ff693fd9030c0575630b4b4b4e044c81785
71b8b60c5627ace1bbda39f679f93f60b55543ca
/tensorflow_federated/python/core/backends/xla/runtime_test.py
0df53892a144d924b7fc0525ef79a7c5d1ed5282
[ "Apache-2.0" ]
permissive
tensorflow/federated
ff94b63e9f4af448795bae77cee5b627dcae9051
ad4bca66f4b483e09d8396e9948630813a343d27
refs/heads/main
2023-08-31T11:46:28.559047
2023-08-31T02:04:38
2023-08-31T02:09:59
161,556,784
2,297
631
Apache-2.0
2023-09-13T22:54:14
2018-12-12T23:15:35
Python
UTF-8
Python
false
false
3,348
py
runtime_test.py
# Copyright 2021, The TensorFlow Federated 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 o...
9483452ca2fbdc58f27db3409d526a0b9d9b709f
d12e1825321c6d275ec55f869311d2f3e30cfdab
/libs/deep_models/flow/hd3/models/vgg.py
2c1a5ecb7002ef2b78510ad7069ea77d67ba62d4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Huangying-Zhan/DF-VO
b369e6a00ae0745288acf9d61460f633aa116875
50e6ffa9b5164a0dfb34d3215e86cc2288df256d
refs/heads/master
2022-12-11T18:29:42.457460
2022-03-14T00:34:29
2022-03-14T00:34:29
212,502,276
494
128
MIT
2022-11-22T15:29:20
2019-10-03T05:18:35
Python
UTF-8
Python
false
false
2,085
py
vgg.py
import torch.nn as nn BatchNorm = nn.BatchNorm2d class BasicBlock(nn.Module): def __init__(self, in_planes, out_planes): super(BasicBlock, self).__init__() self.conv1 = nn.Conv2d( in_planes, out_planes, kernel_size=3, stride=2, padding=...