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
c8317dc01c7102faf412e5cac970595d6932983b
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/cryptography/cryptography/hazmat/primitives/ciphers/modes.pyi
b99d7a89fc924cd0b35a79a678468ddff4710abe
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
3,067
pyi
modes.pyi
from abc import ABCMeta, abstractmethod from cryptography.hazmat.primitives.ciphers import CipherAlgorithm class Mode(metaclass=ABCMeta): @property @abstractmethod def name(self) -> str: ... @abstractmethod def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ... class ModeWithAu...
46a324a4a1e6c8faf62db4ddc2e61a3ecfea0a40
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/miniclient/vehicle_compare/pointcuts.py
a86fc354c83a4d82967e205be94ed138432a290b
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
414
py
pointcuts.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/miniclient/vehicle_compare/pointcuts.py import aspects from helpers import aop class MakeVehicleCompareUnavailable(aop.Pointcut): def __init__(self): aop.Pointcut.__init__(self, 'gui.game_control.veh_comparison_bas...
758e6abc8926b400146f8b70d52975fbd6af380d
4fab2df0ca38e25f0dd88b23e386c6f76206c02e
/warp_maniskill/warp/tests/test_rand.py
13a7c36e9df7a7cb793cd19c625ba42215bed20f
[ "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "CC-BY-NC-4.0" ]
permissive
haosulab/ManiSkill2
96ea208e36a6f8bdd93ad20fdf57263539f7ea00
43546c3341be9e11f369dee1b80c1b201c9cd6ae
refs/heads/main
2023-08-18T01:15:44.557502
2023-08-17T16:37:37
2023-08-17T16:37:37
520,357,130
259
42
Apache-2.0
2023-09-07T18:54:42
2022-08-02T04:56:58
Python
UTF-8
Python
false
false
3,028
py
test_rand.py
# Copyright (c) 2022 NVIDIA CORPORATION. All rights reserved. # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of this software and relate...
03bef0d778e59c74918ea6f3952cfb24b073b6e9
3b79167a9d0b756aa5809bc4938d662ac0387958
/ann_benchmarks/constants.py
03b3c4a2b41a6a65b03cd0e1f4db8fc290c04055
[ "MIT" ]
permissive
erikbern/ann-benchmarks
09708cbe9db498dae3bb9d03c8a36ffd2cd213c6
fa9b8fcea27dd277dcbee240ffd763e9aac93299
refs/heads/main
2023-08-29T22:40:24.454703
2023-08-23T18:32:44
2023-08-23T18:32:44
36,439,741
4,036
677
MIT
2023-08-31T22:41:51
2015-05-28T13:21:43
Python
UTF-8
Python
false
false
22
py
constants.py
INDEX_DIR = "indices"
d293f5dccf755161523881b54894369b57c5cf12
8cd504360c1eefa2412a5a8f1fb1e02c06ae2877
/security/etpro-telemetry/src/opnsense/scripts/etpro_telemetry/send_heartbeat.py
c4805b1e0d122745ef26401500872f467bc10baa
[ "LicenseRef-scancode-proprietary-license", "BSD-2-Clause" ]
permissive
opnsense/plugins
71b041fc9b47d627f1b70fc84d23b06779e8ae76
37ea19d9130ffcf1ed462b52d729c23d3237fd52
refs/heads/master
2023-09-01T09:04:48.918688
2023-09-01T07:00:49
2023-09-01T07:01:23
38,818,223
790
905
BSD-2-Clause
2023-09-09T15:49:06
2015-07-09T12:13:51
PHP
UTF-8
Python
false
false
3,788
py
send_heartbeat.py
#!/usr/local/bin/python3 """ Copyright (c) 2018-2019 Ad Schellevis <ad@opnsense.org> 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 th...
614db5b609de1c4d2c8aac85a16730f5a0146263
5095200e9ca55cd3a37af34ed44448c02e2a1bb5
/paddlehub/datasets/canvas.py
22e1aefe520812a3d01b9b0cc47d94659af88fd1
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleHub
8712603ef486c45e83eb0bc5725b0b3ed3ddbbde
b402610a6f0b382a978e82473b541ea1fc6cf09a
refs/heads/develop
2023-07-24T06:03:13.172978
2023-03-28T11:49:55
2023-03-28T11:49:55
162,672,577
12,914
2,239
Apache-2.0
2023-07-06T21:38:19
2018-12-21T06:00:48
Python
UTF-8
Python
false
false
1,938
py
canvas.py
# coding:utf-8 # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
1bb8ea7db3485c2d3ef7e9b2590d25a2ef949aef
cc127478f47a3af9d9ac3d4418cd2643ed510ded
/tests/test_server_sanity.py
2bbb7665d07de3ca580ea1c090c41631a5c594bd
[ "BSD-2-Clause", "Apache-2.0" ]
permissive
IntelLabs/nlp-architect
3830c8e778081246b6b04b8462b30f44f66d70fb
88b323678642d046415768ef7764523003000ed7
refs/heads/master
2023-09-03T21:02:10.518747
2022-11-07T16:21:47
2022-11-07T16:21:47
133,867,923
459
85
Apache-2.0
2022-11-07T15:30:53
2018-05-17T21:00:13
Python
UTF-8
Python
false
false
7,507
py
test_server_sanity.py
# # ****************************************************************************** # # Copyright 2017-2018 Intel Corporation # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # # You may obtain a copy of the License at # # # # ...
b0a4ca9c42b5ae0ba53e5349cf7dd7af54ddc54b
27ac9607f178d74441eb11a0b73d3e9b9a799626
/tranception/model_pytorch.py
954244c96a4d918801d4b78e6e9cde81d7249f6b
[ "MIT" ]
permissive
OATML-Markslab/Tranception
044530d3c5128c8a9430683669bce43ea2cdefdf
2ddf40e1db9d2d180d1b5fc9d1b39ad5b04fbb6d
refs/heads/main
2023-08-19T06:06:46.117947
2023-07-20T10:39:47
2023-07-20T10:39:47
495,165,462
101
27
MIT
2023-08-15T15:38:37
2022-05-22T20:06:11
Python
UTF-8
Python
false
false
45,439
py
model_pytorch.py
from dataclasses import dataclass from typing import Optional, Tuple import math import os import pandas as pd import torch from torch import nn from torch.nn import CrossEntropyLoss, NLLLoss import torch.nn.functional as F from transformers import GPT2PreTrainedModel from transformers.modeling_utils import ( Con...
0aee10042593f709c4e3461b8aca202760061359
97d7455fbaa56813e97cf601e4a23786d47c2e2c
/tests/api/test_resources.py
49968544987a62932eb6e7798b29cc74b73255fb
[ "Apache-2.0" ]
permissive
Yelp/paasta
9138fbb0beaaa6146520c1483144679f9d5d4941
6fafc7c86073f136e64b959b963994be3d6160ab
refs/heads/master
2023-08-17T00:00:47.610727
2023-08-10T21:40:26
2023-08-10T21:40:26
44,998,824
1,805
291
Apache-2.0
2023-09-13T20:40:04
2015-10-26T21:35:53
Python
UTF-8
Python
false
false
5,912
py
test_resources.py
# Copyright 2015-2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
ce1793f99f17588e74d5c4742edd1f05a639fb61
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/ml/azure-ai-ml/tests/internal_utils/unittests/test_cloud_environments.py
91975a6d6e156a4478e26037341b213fdeabc9c7
[ "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "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", "HPND",...
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
6,985
py
test_cloud_environments.py
import os import mock import pytest from mock import MagicMock, patch from azure.ai.ml._azure_environments import ( AzureEnvironments, EndpointURLS, _get_azure_portal_id_from_metadata, _get_base_url_from_metadata, _get_cloud_details, _get_cloud_information_from_metadata, _get_default_cloud_...
d53c1cbf069de48ef2f1831088c2d6720d43b3f9
3328540b01c313d58d98ef12ebb4a3c1f82f4bf3
/sfm/ui/notifications.py
89b966cc27d868bb766bb829af6c3d2b7f338b9f
[ "MIT" ]
permissive
gwu-libraries/sfm-ui
0f342cc8555813223c048bb26beaeee123a8a319
d38886fb7e534973ea979caad2ab31b3904d651b
refs/heads/master
2023-08-21T16:34:31.967005
2023-08-10T20:51:56
2023-08-10T20:51:56
39,789,776
144
32
MIT
2023-07-05T23:25:54
2015-07-27T18:03:43
Python
UTF-8
Python
false
false
16,697
py
notifications.py
import logging from datetime import date, datetime, timedelta, time from collections import OrderedDict from smtplib import SMTPException from subprocess import check_output, CalledProcessError import pytz from itertools import chain from django.template.loader import get_template from django.core.mail import EmailMul...
04eee69145dab2ff280280cf4d1bd29b06eacffd
38bed8ec0229b2d42ebdb33e09930ba8ee6ba5b7
/references/similarity/model.py
f235ae11116591f6564d3ea6f41dfe58921fede3
[ "BSD-3-Clause", "CC-BY-NC-4.0" ]
permissive
pytorch/vision
10443ac1eddf7a32ecb288fe8f58e28cab2a60a1
1f94320d8db8d102214a7dc02c22fa65ee9ac58a
refs/heads/main
2023-09-06T03:48:02.303020
2023-09-04T18:25:36
2023-09-04T18:25:36
73,328,905
15,620
8,564
BSD-3-Clause
2023-09-14T17:52:49
2016-11-09T23:11:43
Python
UTF-8
Python
false
false
395
py
model.py
import torch.nn as nn import torchvision.models as models class EmbeddingNet(nn.Module): def __init__(self, backbone=None): super().__init__() if backbone is None: backbone = models.resnet50(num_classes=128) self.backbone = backbone def forward(self, x): x = self....
bb942c3604ce44000125f611d964dfd2e3f5ae90
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Validation/HGCalValidation/test/python/standalone_fromRECO.py
92d46ceb9ae92393af702e5584d28ca18a3d35f4
[ "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
2,295
py
standalone_fromRECO.py
import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9 process = cms.Process('HGCAL',Phase2C17I13M9) # import of standard configurations process.load('Configuration.StandardSequences.Services_cff') process.load('FWCore.MessageService.MessageLogger_cfi') process.l...
22f1a19edc1ccd05f73c221aa0d4ea0405299062
ca7a8f43442e2c6722ebaf03f0abe9a22575a130
/autolens/lens/mock/mock_tracer.py
332b302731059d9054818f42930de9c20e81a543
[ "MIT" ]
permissive
Jammy2211/PyAutoLens
764f2ccdb76b54eea0b4a8f2a0ae077397fb0315
b31b9d7c8a55d7232695761a41383cb1cc30bd76
refs/heads/main
2023-08-23T10:07:14.015683
2023-08-17T15:39:49
2023-08-17T15:39:49
105,440,853
142
37
MIT
2023-09-13T14:08:23
2017-10-01T12:33:03
Python
UTF-8
Python
false
false
1,698
py
mock_tracer.py
class MockTracer: def __init__( self, traced_grid_2d_list_from=None, sparse_image_plane_grid_pg_list=None ): self.sparse_image_plane_grid_pg_list = sparse_image_plane_grid_pg_list self._traced_grid_2d_list_from = traced_grid_2d_list_from def traced_grid_2d_list_from(self, gri...
e6c1635111e5a6e05aea90dd485b31c8d07e2943
40195e6f86bf8620850f0c56e98eae5693e88277
/coremltools/converters/mil/frontend/tensorflow2/test/test_v2_load.py
376abf2de1e32469ad89334740d2b13d5c4f804a
[ "MIT", "BSD-3-Clause" ]
permissive
apple/coremltools
009dfa7154d34cab8edcafa618e689e407521f50
feed174188f7773631a3d574e1ff9889a135c986
refs/heads/main
2023-09-01T23:26:13.491955
2023-08-31T18:44:31
2023-08-31T18:44:31
95,862,535
3,742
705
BSD-3-Clause
2023-09-14T17:33:58
2017-06-30T07:39:02
Python
UTF-8
Python
false
false
9,970
py
test_v2_load.py
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import os import shutil import tempfile import pytest import coremltools.converters as converter fr...
e0d8146996356be68632e21671a9bca93a54dec9
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/docstrings/googleNoEmptyLineAfterSummary.py
bca70b915a8077246d0c0f64eed06850c1b17010
[ "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
60
py
googleNoEmptyLineAfterSummary.py
def f(): """Summary. Returns: Nothing: """
c03d126818dc9216a76f741d74821234063aa21f
b54f5fe75dbb010a18d1da30a4f030fbb257ed4a
/attic/win32/toga_win32/widgets/passwordinput.py
708a074d1e7eb3afaad11931759312f6231da60e
[ "BSD-3-Clause" ]
permissive
beeware/toga
449e3f008ad89e10f8ffcc61bdac798e7e825d09
01b076bd6434d0bd04c04ff72ac6eb20b9e973ea
refs/heads/main
2023-08-24T11:33:53.705165
2023-08-24T00:06:09
2023-08-24T00:06:09
22,529,973
1,865
468
BSD-3-Clause
2023-09-14T18:46:58
2014-08-01T21:44:10
Python
UTF-8
Python
false
false
124
py
passwordinput.py
from .textinput import TextInput from ..libs import * class PasswordInput(TextInput): control_style = ES_PASSWORD
45af1f444b0c96737a2507fb2645353269c5524b
afbae26b958b5ef20548402a65002dcc8e55b66a
/release/stubs/System/Web.py
4a7bc81caefb399cbd6ed81e6933d7bcb4e482c4
[ "MIT" ]
permissive
gtalarico/ironpython-stubs
d875cb8932c7644f807dc6fde9dd513d159e4f5c
c7f6a6cb197e3949e40a4880a0b2a44e72d0a940
refs/heads/master
2023-07-12T01:43:47.295560
2022-05-23T18:12:06
2022-05-23T18:12:06
95,340,553
235
88
NOASSERTION
2023-07-05T06:36:28
2017-06-25T05:30:46
Python
UTF-8
Python
false
false
8,433
py
Web.py
# encoding: utf-8 # module System.Web calls itself Web # from System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 # by generator 1.145 """ NamespaceTracker represent a CLS namespace. """ # no imports # no functions # classes class AspNetHostingPermission(CodeAccessPermission, IPermissi...
a45c2777827ca550c68cf85e4ae0cab92073f51b
b18b01b32e67433a6e749e2aae48fb69bcfc42f9
/financial_time_series/tensorflow_model/serving_requests/request_random.py
0689caa20351c749d2b558cc44ca459857155b9f
[ "Apache-2.0" ]
permissive
kubeflow/examples
f83c920cb94b32f0271103afb74b3efaaae35b41
40cba72b522ca6879672dca24398973c8f0ef32d
refs/heads/master
2023-09-01T20:39:26.577041
2023-08-05T16:51:33
2023-08-05T16:51:33
119,894,375
1,375
813
Apache-2.0
2023-08-30T14:40:56
2018-02-01T21:13:10
Jsonnet
UTF-8
Python
false
false
514
py
request_random.py
""" Module that sends a random request to the tf-server. Uses numpy random array to obtain a response/prediction from the tf-server. """ import numpy as np from . import request_helper #pylint: disable=relative-beyond-top-level def send_random_request(): """Obtain the prediction for a random request (test func...
e6b8619c91d4e7dafd200e947cf22fe8bb0009d1
f167dffa2f767a0419aa82bf434852069a8baeb8
/lib/youtube_dl/cache.py
54123da0e7ea4fe8693c04227eaa6905d9dd1ae7
[ "MIT" ]
permissive
firsttris/plugin.video.sendtokodi
d634490b55149adfdcb62c1af1eb77568b8da3f5
1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3
refs/heads/master
2023-08-18T10:10:39.544848
2023-08-15T17:06:44
2023-08-15T17:06:44
84,665,460
111
31
MIT
2022-11-11T08:05:21
2017-03-11T16:53:06
Python
UTF-8
Python
false
false
3,763
py
cache.py
from __future__ import unicode_literals import errno import json import os import re import shutil import traceback from .compat import ( compat_getenv, compat_open as open, ) from .utils import ( error_to_compat_str, expand_path, is_outdated_version, try_get, write_json_file, ) from .vers...
8cc91793e7da2f10d689924453848cd3f917d0d8
529e713a78e82de2ae5d44cfb8ef209e0894d72a
/asyncio-walkthrough/asyncq.py
debf5a3a809e3a731acd3617b5f1b0cebee5d154
[ "MIT" ]
permissive
realpython/materials
cd2f548276be2c82f134ca03eadb1cd279e0f26e
d2d62756d3854f54a12a767f2bf9470486c0ceef
refs/heads/master
2023-09-05T22:12:29.806738
2023-08-31T20:56:28
2023-08-31T20:56:28
132,374,697
4,678
6,482
MIT
2023-09-12T22:22:06
2018-05-06T20:46:18
HTML
UTF-8
Python
false
false
1,899
py
asyncq.py
#!/usr/bin/env python3 # asyncq.py import asyncio import itertools as it import os import random import time async def makeitem(size: int = 5) -> str: return os.urandom(size).hex() async def seconds() -> float: return time.perf_counter() async def randint(a: int, b: int) -> int: return random.randint...
2c926b29d6c880bb898ee7adad8cf4bd365f4569
f4f704f309849a8e476bfeffa68b17ac228df04d
/documentation/test_python/inspect_underscored/inspect_underscored/__init__.py
f7e3e269911edb99e14e0845002f613fe855e54b
[ "MIT" ]
permissive
mosra/m.css
3d0c3c2f7b93039eb529e154e59ff8d91d45e88d
c34e8608973548c5e3d31d65cbfdd5b2fc42a59e
refs/heads/master
2023-08-17T09:48:14.652793
2023-08-09T15:34:09
2023-08-09T15:34:09
95,897,280
414
118
MIT
2022-10-03T03:52:50
2017-06-30T14:42:14
Python
UTF-8
Python
false
false
2,142
py
__init__.py
""".. :data _DATA_IN_MODULE: In-module documented underscored data. This won't be picked up by the initial crawl, unfortunately, as the docstrings are processed much later. """ import enum from . import _submodule, _submodule_external, _submodule_undocumented class _Class: """Documented underscored clas...
a74b9becad438da165acdbed29a97de75204b7db
3ee5bf329a2e58eb9f775ec5ee6a329fd3541e36
/tests/test_item.py
ce2b4fd15e275b676314bd9ae5a426a40aba978f
[ "BSD-3-Clause" ]
permissive
scrapy/scrapy
53bd79e500e2cb7441d33bfd61ba003962d5fb46
cddb8c15d66831dc4e1bc4b745fcc6c534bb03dc
refs/heads/master
2023-08-31T04:08:06.193342
2023-08-30T18:29:54
2023-08-30T18:29:54
529,502
47,472
12,120
BSD-3-Clause
2023-09-14T12:08:07
2010-02-22T02:01:14
Python
UTF-8
Python
false
false
8,991
py
test_item.py
import unittest from unittest import mock from scrapy.item import ABCMeta, Field, Item, ItemMeta class ItemTest(unittest.TestCase): def assertSortedEqual(self, first, second, msg=None): return self.assertEqual(sorted(first), sorted(second), msg) def test_simple(self): class TestItem(Item): ...
f89e9d58c9807d88c3c1a77118f714d3685dfd93
8c8a073459dcd834cebac51a2c6ad3a3c0f59fcd
/repos/cibuild.py
10cf8d84c983b4f77ec8601d0e92615640ab0011
[]
no_license
FZUG/repo
a8789d57f94462d3df4e86a73005405314692989
b2474d8aa6f8f4404921f73a47bed77b54a6ec3f
refs/heads/master
2023-08-11T01:07:46.099837
2022-03-13T16:08:41
2022-03-16T14:12:59
34,797,461
707
176
null
2022-03-25T22:46:35
2015-04-29T14:09:28
DIGITAL Command Language
UTF-8
Python
false
false
20,954
py
cibuild.py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Author: mosquito # Email: sensor.wen@gmail.com # Description: CI build for repo from subprocess import getoutput, getstatusoutput, call from urllib.request import urlretrieve from operator import itemgetter import urllib.error import re import os import sys import rpm impor...
695df71a36d761836d37f05011181ccb2e743fb5
6dfc23ef65e5943712340ef2b4b648cc25ea1fad
/2021/07/27/The First Thing You Should Do at the Start of a New Django Project/djangodemo/myproject/myapp/views.py
8c278d47420c5ff2a5712e6701fdb8343bfa44aa
[ "Unlicense" ]
permissive
PrettyPrinted/youtube_video_code
6d265c910de18d780cdb99f7ea11b8b963929dc2
5654e5feba854d3b41b8dd75218e0221408e7831
refs/heads/master
2023-09-04T21:28:57.386174
2023-08-11T07:07:45
2023-08-11T07:07:45
186,743,986
698
2,347
Unlicense
2022-10-06T04:06:56
2019-05-15T03:40:45
HTML
UTF-8
Python
false
false
137
py
views.py
from django.shortcuts import render from django.contrib.auth import get_user_model User = get_user_model() # Create your views here.
4f39f2205e645e5949b48843fe2c187de7b4bc83
c7c73566784a7896100e993606e1bd8fdd0ea94e
/direct/src/controls/PhysicsWalker.py
4575856922d0a6d11735a93a9569a6f613a2924d
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
panda3d/panda3d
c3f94df2206ff7cfe4a3b370777a56fb11a07926
160ba090a5e80068f61f34fc3d6f49dbb6ad52c5
refs/heads/master
2023-08-21T13:23:16.904756
2021-04-11T22:55:33
2023-08-06T06:09:32
13,212,165
4,417
1,072
NOASSERTION
2023-09-09T19:26:14
2013-09-30T10:20:25
C++
UTF-8
Python
false
false
29,452
py
PhysicsWalker.py
""" PhysicsWalker.py is for avatars. A walker control such as this one provides: - creation of the collision nodes - handling the keyboard and mouse input for avatar movement - moving the avatar it does not: - play sounds - play animations although it does send messages that allow a listener to play sounds or anim...
f534a9d5cbe984ba96b8541140a5bfec670cdb3f
ff477a586b946c575441b6189123ab86c175e5ae
/linker_tests/link_pre_489/cy_build.py
d741d4947a62d0aaeddf36fa7d958223c8d30ccc
[ "MIT" ]
permissive
pysam-developers/pysam
5552e4903106fc253869a405f4a2c068c6bd65c5
0663ca85739877e5dd05c0eb2512a8bcaa515b39
refs/heads/master
2023-08-16T19:10:17.566296
2023-08-15T10:06:59
2023-08-15T12:28:29
16,557,526
678
332
MIT
2023-09-14T10:40:22
2014-02-05T20:38:10
C
UTF-8
Python
false
false
3,012
py
cy_build.py
import os import re import sys try: from Cython.Distutils import build_ext except ImportError: from setuptools.command.build_ext import build_ext from distutils.extension import Extension from distutils.sysconfig import get_config_var, get_config_vars, get_python_lib, get_python_version from pkg_resources imp...
a16dd10ac0a34e876ac4ffbdcea79f2a2fbff425
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/osf/models/outcomes.py
8a6c901cb11851bcc92d991635dbbea31a522025
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
3,307
py
outcomes.py
''' This module defines the Outcome model and its custom manager. Outcomes serve as a way to collect metadata about a research effort and to aggregate Identifiers used to share data or provide context for a that research effort, along with some additional metadata stored in the OutcomeArtifact through table. ''' from...
68fb4ac65cbd817a2aac15d60b86986d69a81230
47582a78f9861642308b084418815a43b07249f5
/src/target_dsp/calypso/dump2coff.py
17ff9fafae6078af6fd436a8f015f668eda7a237
[]
no_license
osmocom/osmocom-bb
836de24bc9ac3bd2ce6081a865be205d9378415d
8bbd0d173fad3708fac3207d56dd04c14912351e
refs/heads/master
2023-08-17T00:37:09.746676
2023-08-10T12:25:34
2023-08-10T12:28:06
6,985,130
260
134
null
2019-02-16T07:17:07
2012-12-03T16:08:08
C
UTF-8
Python
false
false
6,529
py
dump2coff.py
#!/usr/bin/env python import re import sys import struct DATA = 0 DATA = 1 class Section(object): DATA = 0 CODE = 1 STYP_NOLOAD = 0x0002 STYP_TEXT = 0x0020 STYP_DATA = 0x0040 STYP_BSS = 0x0080 def __init__(self, name, type, start, size, data=None): self.name = name self.type = type self.start = ...
a7eb2c52f6ee581a4b20b005a69103577fcfe6cc
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/apps/es/management/commands/make_elastic_migration.py
0e5da237b075093cfa52f49d9a36ba304b1178c7
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
9,856
py
make_elastic_migration.py
from argparse import ArgumentTypeError from datetime import datetime from django.core.management.base import CommandError from django.db.migrations import Migration from corehq.apps.es.migration_operations import ( CreateIndex, DeleteIndex, UpdateIndexMapping, ) from corehq.apps.es.transient_util import (...
6403fcfe8ef8a56c852fa65493f2242ccda6666c
f4ac42a3316e8815cdd307fbe11229438d0cb951
/Kernels/Research/FFT/config/strtools.py
a1ce449077fa0e759098c96ebb247921c16ad86f
[ "Apache-2.0" ]
permissive
ARM-software/EndpointAI
6879c160645c741d217421050cc824bb06eb6471
b18e7ddc6e14229a724f2d7ae1f6c721013cbb68
refs/heads/master
2023-07-31T22:20:37.023081
2023-05-18T15:25:11
2023-05-18T15:25:11
292,621,053
231
96
Apache-2.0
2021-07-31T23:18:44
2020-09-03T16:19:43
C
UTF-8
Python
false
false
900
py
strtools.py
# # # Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved. # # SPDX-License-Identifier: Apache-2.0 # # 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 # # www.apache.org/lice...
9098f7a3e6660ace92105df9ca945810b962ad20
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/PyTorch/Translation/GNMT/seq2seq/utils.py
2164dd39bd0cc13e73f9a3d382ff41bc7013667e
[ "MIT" ]
permissive
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
12,801
py
utils.py
# Copyright (c) 2017 Elad Hoffer # Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without l...
ea1c3055ae685a9f3caab6d8a0f506afaea2c320
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/colossalai/utils/data_sampler/__init__.py
12798a94c2d063bb120f805967e748c5a1059a3a
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
hpcaitech/ColossalAI
a082ed08a3807b53c49d1f86835b9808590d9042
c7b60f75470f067d1342705708810a660eabd684
refs/heads/main
2023-09-01T04:13:13.834565
2023-08-30T15:07:21
2023-08-30T15:07:21
422,274,596
32,044
4,084
Apache-2.0
2023-09-14T15:19:54
2021-10-28T16:19:44
Python
UTF-8
Python
false
false
177
py
__init__.py
from .base_sampler import BaseSampler from .data_parallel_sampler import DataParallelSampler, get_dataloader __all__ = ['BaseSampler', 'DataParallelSampler', 'get_dataloader']
83683a98a0ab97ab3cacaefe57cd9760f4634c27
ebd9c249d446d809abc9a0f3e4593f34922a1b93
/other/unique_paths_with_followups.py
5e3ba18db3720c83e3cb6bef3183a71194544db4
[]
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
6,792
py
unique_paths_with_followups.py
""" 给定一个矩形的宽和长,求所有可能的路径数量 Rules: 1. 从左上角走到右上角 2. 要求每一步只能向正右、右上或右下走,即 →↗↘ followup1: 优化空间复杂度至 O(n) followup2: 给定矩形里的三个点,判断是否存在遍历这三个点的路经 followup3: 给定矩形里的三个点,找到遍历这三个点的所有路径数量 followup4: 给定一个下界 (x == H),找到能经过给定下界的所有路径数量 (x >= H) followup5: 起点和终点改成从左上到左下,每一步只能 ↓↘↙,求所有可能的路径数量 """ def find_unique_paths(m, n): """ ...
810a158324610dbdd5d4925cd7214433f042ad64
e9aabf2d3c117f37230d89bc4516b984074a1e81
/mmdet3d/models/necks/feature_transformation.py
0eab64fbe62aa00433dbb1f39c28120e28f74f4d
[ "Apache-2.0" ]
permissive
Tai-Wang/Depth-from-Motion
d0934396e588700f6cf8fd1a2c11f6a5d5d0b428
e2321189f923564788d59a627129fc10a9db191b
refs/heads/main
2023-05-24T01:34:35.666074
2022-10-11T11:52:03
2022-10-11T11:52:03
516,021,516
278
25
null
null
null
null
UTF-8
Python
false
false
6,914
py
feature_transformation.py
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data from mmcv.cnn import ConvModule from mmcv.runner import BaseModule from mmdet.models.builder import NECKS @NECKS.register_module() class FrustumToVoxel(BaseModule): def __in...
e85447f15f3aaa3644c2e18f875272be1a4b4748
4e582ab5fe95a22f87a66d6857c67c73f5bc9ea6
/tests/urls.py
bd2d5487277d6f2338415d792e332c4328d750bc
[ "MIT" ]
permissive
yezyilomo/django-restql
678de8df1e49841c36362824f4c16f14a60f9945
a232d51bcaa51e8d70da1b35b051c3da1211dfb2
refs/heads/master
2023-07-04T16:50:25.459718
2022-11-02T19:28:53
2022-11-02T19:28:53
179,890,697
645
52
MIT
2022-11-02T19:28:54
2019-04-06T21:53:41
Python
UTF-8
Python
false
false
2,699
py
urls.py
"""test_app URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
0ec7d4e7e8d2b9fcfba77c0e68ee6ec18ed20578
e03bce53de6f88c0e09f56e4fe11c36af0f1161f
/typings/awacs/ram.pyi
0035a06c97f8d5fc6330a678866324efaaaab802
[ "Apache-2.0" ]
permissive
onicagroup/runway
20c31df9cbc1a1ffc5c9aa468ce5cf7d6ac7899f
0763b06aee07d2cf3f037a49ca0cb81a048c5deb
refs/heads/master
2023-08-30T22:35:54.113981
2023-08-29T14:13:35
2023-08-29T14:13:35
122,529,924
156
79
Apache-2.0
2023-09-13T13:43:50
2018-02-22T20:12:55
Python
UTF-8
Python
false
false
1,637
pyi
ram.pyi
""" This type stub file was generated by pyright. """ from .aws import Action as BaseAction from .aws import BaseARN service_name = "AWS Resource Access Manager" prefix = "ram" class Action(BaseAction): def __init__(self, action=...) -> None: ... class ARN(BaseARN): def __init__(self, resource=..., region=....
e897c4e1cc8f833f5804774d8b5d1a7fa26d9214
c64fb4456932789dffd87eb6d07c8a43003ae987
/jarviscli/plugins/stateinfo.py
f2924b0772482a29e97fc9d9c586f18658d4654a
[ "MIT" ]
permissive
sukeesh/Jarvis
9fb7fc14ebefa27203ebf9af005e236a0a32a292
369a0e00b8a6fbd1132657cf2da39220ce84207e
refs/heads/master
2023-08-09T12:25:38.009222
2023-07-02T20:17:48
2023-07-02T20:17:48
84,604,734
3,172
1,398
MIT
2023-09-13T16:37:44
2017-03-10T22:09:14
Python
UTF-8
Python
false
false
4,462
py
stateinfo.py
from plugin import plugin, alias @alias("state capital", "state abbreviation") @plugin("stateinfo") class stateinfo: """ Get the postal abbreviation and state capital of a given U.S. state Usage: stateinfo [command] Aliases: state state capital state abbreviation """ ...
d3b0fc64d61f0b2303ffe7d19f5d98b2dbd4f725
ccb0740c4846e943003b075bddd52fd7c884b6d8
/auto_pose/ae/ae_init_workspace.py
2810290b2731be6448e3049c9bdf0b783c5dcdbd
[ "MIT" ]
permissive
DLR-RM/AugmentedAutoencoder
87a8bc5e32832cadbbfaafca8e19f15f2ce7718a
9f0a56f622fabf6200d9f034fcb2eef106997118
refs/heads/master
2022-09-12T08:51:59.086448
2022-08-16T09:43:02
2022-08-16T09:43:02
156,195,670
347
106
MIT
2022-06-22T00:55:31
2018-11-05T09:56:25
Python
UTF-8
Python
false
false
1,154
py
ae_init_workspace.py
# -*- coding: utf-8 -*- import os import glob import shutil from . import utils as u def main(): workspace_path = os.environ.get('AE_WORKSPACE_PATH') if workspace_path == None: print('Please define a workspace path:\n') print('export AE_WORKSPACE_PATH=/path/to/workspace\n') exit(-1) if len(os.li...
6a3166ea0a330d0aa7a32918e221ac6ab43cde26
88dd4380e0d33d4a118ca4e69e4ca9b1c8f45e1f
/pyspedas/de2/config.py
ef2b881b78af31487e9481cd6fc326e6ae3a1a45
[ "MIT" ]
permissive
spedas/pyspedas
16d34015961e3a4d3eaf8637d3cb6abca95df1b1
1d07b148753afa96e148c5835ed9545c507577da
refs/heads/master
2023-09-01T16:07:47.131334
2023-08-25T17:15:35
2023-08-25T17:15:35
167,614,292
125
61
MIT
2023-09-08T18:41:27
2019-01-25T21:11:14
Python
UTF-8
Python
false
false
407
py
config.py
import os CONFIG = {'local_data_dir': 'de2_data/', 'remote_data_dir': 'https://spdf.gsfc.nasa.gov/pub/data/de/de2/'} # override local data directory with environment variables if os.environ.get('SPEDAS_DATA_DIR'): CONFIG['local_data_dir'] = os.sep.join([os.environ['SPEDAS_DATA_DIR'], 'de2']) if os.envi...
f670234cb7522f50115fd69955bf551634b4a765
5770a3fc8bd224d926d4aff5b7d8f1863f145cab
/quarkchain/cluster/log_filter.py
764a260177201d7ef6c32bae4e6159529af1ae7b
[ "MIT" ]
permissive
QuarkChain/pyquarkchain
d06a59d630fd0c4a07e1c10548ba044329da95ba
2068153c9386a1eacb5eccb8cf93d98f87537203
refs/heads/master
2023-02-27T14:16:07.419575
2022-04-18T20:35:59
2022-04-18T20:35:59
143,354,339
253
133
MIT
2023-02-07T21:54:01
2018-08-02T23:28:47
Python
UTF-8
Python
false
false
6,320
py
log_filter.py
import time from typing import List, Optional from quarkchain.cluster.shard_db_operator import ShardDbOperator from quarkchain.core import Address, Log, MinorBlock, MinorBlockHeader from quarkchain.evm.bloom import bloom from quarkchain.utils import Logger class LogFilter: """ Filter class for logs, blocks, ...
e8d17295c83e81cb437acae1d3e3cf7c77fde24e
0218f8cf2751e1662ee69f526ec6995ee657092d
/src/tasks/tianchi/happiness/test.py
41333e26d5fa1c1c5a34bd7dc251af879ba6b3d5
[]
no_license
lipengyuer/DataScience
d8996004366907bfa6e303b879a452772cfedb48
52af044150d362c81f6c94617170a759f54ef9c5
refs/heads/master
2022-01-19T05:42:23.517231
2022-01-08T10:12:43
2022-01-08T10:12:43
157,036,574
116
60
null
null
null
null
UTF-8
Python
false
false
15,526
py
test.py
import pandas as pd import sklearn as sk from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor from sklearn.model_selection import train_test_split from sklearn.linear_model import SGDClassifier from sklearn.ensemble import GradientBoostingClassifier, AdaBoostClassifier, GradientBoostingRegressor f...
6d1eadf913841139532155119635bb293b6ef5b1
2b319ab54d06a304397c43176ede37ae8669c6df
/ruby-publify/browser_test.py
e21a2bda6b36708641ea043a9e09820fd98e3cf8
[]
no_license
cloudius-systems/osv-apps
54c389eb72f100a6e8485f92aa4553896c4bc8e5
22e1541ca18d3794053b9ca61671508a2d1944ec
refs/heads/master
2023-06-08T01:13:22.161834
2023-05-31T15:49:10
2023-05-31T15:49:10
14,896,375
122
69
null
2023-01-21T01:34:28
2013-12-03T14:44:26
Makefile
UTF-8
Python
false
false
2,993
py
browser_test.py
import sys import subprocess import signal import re from selenium import webdriver def do_browser_test(): try: driver = webdriver.Firefox() driver.implicitly_wait(5) # seconds driver.get('http://192.168.122.89:3000/') driver.implicitly_wait(3) # seconds blog_name =...
e2020618f713d39d81a83e1b21aead550b718e0e
914faa10e5423efc87d0079248b3eb7df72ed83e
/sublime.py
8c56ecdbb5d9a8e9bf058abc6e3c42757f2a66ac
[ "MIT" ]
permissive
MagicStack/MagicPython
cf7b7ae8290b0e997adf6a197b2f5be300391a0a
7d0f2b22a5ad8fccbd7341bc7b7a715169283044
refs/heads/master
2023-08-26T04:16:54.672649
2022-10-18T07:43:20
2022-10-19T23:20:38
43,982,620
1,564
146
MIT
2023-02-23T19:40:57
2015-10-09T22:13:24
JavaScript
UTF-8
Python
false
false
536
py
sublime.py
"""A plugin for Sublime Text to enhance f-string editing experience. Specifically, this plugin simplifies typing of escaped curly braces in an f-string: {|}, where | is for cursir, gets replaced with {{|, when '{' is typed again. """ # Used by `settings/sublime/Default.sublime-keymap`. import sublime_plugin ...
5d509a85c362b631037375ae97708369a3f42906
c530897cb72b6943c7226b25824444cad5f3503b
/usaspending_api/etl/management/commands/create_delta_table.py
ccf56a2fc79dea9c6654423edba7fbe6c691ddf1
[ "CC0-1.0" ]
permissive
fedspendingtransparency/usaspending-api
fc63a22d32ea0207b7273d3e1ef26ba9dbabc42a
38f920438697930ae3ac57bbcaae9034877d8fb7
refs/heads/master
2023-09-01T22:00:36.633612
2023-08-29T18:39:18
2023-08-29T18:39:18
65,394,827
276
118
CC0-1.0
2023-09-14T20:33:15
2016-08-10T15:39:45
Python
UTF-8
Python
false
false
3,866
py
create_delta_table.py
from django.core.management.base import BaseCommand from pyspark.sql import SparkSession from usaspending_api.config import CONFIG from usaspending_api.common.helpers.spark_helpers import ( configure_spark_session, get_jvm_logger, get_active_spark_session, ) from usaspending_api.etl.management.commands.loa...
285c6213753cb3cf9c30bdbb023cb7669561bcca
61b1380f8e6cc00a2dcab0280deff8c18c4812c2
/pydis_site/apps/api/migrations/0084_infraction_last_applied.py
7704ddb821864f734879dcacd41d436cd1dfd7bc
[ "MIT" ]
permissive
python-discord/site
969ada9c7d70edeaadb781e630c8896b4a207f90
cb6326cabee6570a5725702cb2893ae39f752279
refs/heads/main
2023-09-04T07:17:58.116382
2023-08-31T14:20:38
2023-08-31T14:20:38
120,370,405
746
224
MIT
2023-09-14T10:23:08
2018-02-05T22:31:04
Python
UTF-8
Python
false
false
816
py
0084_infraction_last_applied.py
# Generated by Django 4.0.6 on 2022-07-27 20:32 import django.utils.timezone from django.db import migrations, models from django.apps.registry import Apps def set_last_applied_to_inserted_at(apps: Apps, schema_editor): Infractions = apps.get_model("api", "infraction") Infractions.objects.all().update(last_a...
ffa9d6f4fb4eb7180e84e4285090be2789f51d3a
4d44674625100e62be2bb5033339fb641bd454ac
/snippet/example/python/check_music.py
fd3572bb2ddc9c0d535058b428d522488f956308
[ "MIT" ]
permissive
xgfone/snippet
8b9004a649d2575b493a376c4b4f3d4a7c56a4b0
b0b734dd35478b7ef3e6193623981f4f29b6748c
refs/heads/master
2022-03-18T12:41:09.033144
2022-02-20T15:26:35
2022-02-20T15:26:35
41,615,643
158
61
null
null
null
null
UTF-8
Python
false
false
36,520
py
check_music.py
#!/usr/bin/env python3 # -*- coding: utf8 -*- # # Support Python 3.6+ # # Install: # $ pip3 install six gevent requests sqlalchemy pymysql requests_html openpyxl # # Run: # $ python check_music.py -h # import gevent.pool import gevent.monkey gevent.monkey.patch_all(Event=True, sys=True) taskpool = gevent.pool.Pool(siz...
cd833d2493eeea9eeedea143ef1778817f442218
3829c6e0381216e19fec68f34eb8ef327c6989f4
/roku/scripting.py
0f65c609fcf2dd8826ee868e81cbfeb7bab38efe
[]
permissive
jcarbaugh/python-roku
f9d8553ba4c1d4999dbcb4c4173b1a117ef5d512
b88125abca91573f4882d1265a38490a4bbff8ba
refs/heads/main
2023-08-04T08:31:43.725487
2023-04-22T00:13:09
2023-04-22T00:13:09
15,637,861
253
97
BSD-3-Clause
2023-07-25T21:37:57
2014-01-04T19:09:41
Python
UTF-8
Python
false
false
1,418
py
scripting.py
import logging import os import re import time from collections import namedtuple SCRIPT_RE = re.compile( r"(?P<command>\w+)(?:\:(?P<param>[\w\s]+))?(?:\@(?P<count>\d+))?(?:\*(?P<sleep>[\d\.]+))?" ) # noqa Command = namedtuple("Command", ["command", "param", "count", "sleep"]) logger = logging.getLogger("roku.s...
d8366688808b2dc2923ddf93355affa9134e97f5
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/tests/common/utils/test_data_structures_utils.py
42f4fe0657f2d327976b6668bb97a29a4fc082be
[ "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
950
py
test_data_structures_utils.py
from typing import Any import pytest from checkov.common.util.data_structures_utils import find_in_dict @pytest.mark.parametrize( "key_path,expected_value", [ ("key_99", None), ("key_1/key_2/key_3", None), ("key_1/key_2/[10]/key_3", None), ("key_1/key_5", "string"), (...
c3776267123af76cecad9972a40b946eb6512b8a
b06340ae3dfcb551bacefa362c034b064809fd28
/examples/test_example_stop_on_fail.py
21e2dc960843972152aefa6eb1fa936ffb9a32c3
[ "MIT" ]
permissive
okken/pytest-check
cd3b82ae31932d54550822abb6cc96fa6b4e7c88
c7e7741e4d5665a07b0985932acc484aac2d5095
refs/heads/main
2023-08-19T09:10:40.776832
2023-08-11T20:44:36
2023-08-11T20:44:36
108,791,429
282
35
MIT
2023-08-11T20:37:17
2017-10-30T02:22:27
Python
UTF-8
Python
false
false
604
py
test_example_stop_on_fail.py
""" An example useful for playing with stop on fail. -x or --maxfail=1 should result in one failed check and one failed test. --maxfail=2 should run both tests and catch all 4 check failures This is because --maxfail=1/-x stops on first failure, check or assert. Using --maxfail=2 or more counts failing test function...
9f0b11fa367ad2d6261563619a5ac5f60a1810cb
c19bcbc98555ef06276f9f0dcffc9ac35942a7c4
/tests/test_syslog_bsd.py
f1a3e389bc7ba19fecb4f321791d5d5856aa100b
[ "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
924
py
test_syslog_bsd.py
import os import unittest import json import jc.parsers.syslog_bsd THIS_DIR = os.path.dirname(os.path.abspath(__file__)) class MyTests(unittest.TestCase): # input with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/generic/syslog-3164.out'), 'r', encoding='utf-8') as f: syslog = f.read() ...
d8eb343e695705f888937fcd6bb58884f60b4af2
26cadb387da6dc71f5536b9d74ad44b7b974d26d
/launch_testing/test/launch_testing/test_tools.py
3084120d4a1b32a35eb52d1eb8e343390546d48a
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
ros2/launch
84971e86f6131976bdfaf872fca12f1a6a377cd6
f2b232555900d62c3cec839a49afd4cdc01cda58
refs/heads/rolling
2023-08-24T14:33:18.237122
2023-08-23T17:12:30
2023-08-23T17:12:30
32,485,326
116
139
Apache-2.0
2023-09-14T12:07:30
2015-03-18T21:27:58
Python
UTF-8
Python
false
false
5,547
py
test_tools.py
# Copyright 2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
20484aa771bd1c2c23d69a9a4f2ceb9f47f40d4c
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/ios/build/bots/scripts/result_sink_util.py
1964791442fee01c4c834fc53270d831c4a42366
[ "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
6,613
py
result_sink_util.py
# Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import atexit import base64 import cgi import json import logging import os import requests import sys LOGGER = logging.getLogger(__name__) # VALID_STATUSES is a list of valid st...
40e02e9662be9e7b5bd53db48d4a3d7757208bcf
0d9b75fee49b37038a10e467c39cf75c9cf4d5ae
/OpenCV_learn/code_045/opencv_045.py
7111bcb3aecc83dda462febeac76a68b054b75f1
[]
no_license
MachineLP/OpenCV-
743a5fcfc3f300ccb135f869e2f048cb5fdcd02a
f3da4feb71c20d2e8bc426eb5a4e2e61a2fd4a75
refs/heads/master
2023-03-23T15:31:22.985413
2023-03-08T09:33:28
2023-03-08T09:33:28
178,887,816
104
51
null
null
null
null
UTF-8
Python
false
false
1,156
py
opencv_045.py
import cv2 as cv import numpy as np def method_1(image): gray = cv.cvtColor(image, cv.COLOR_BGR2GRAY) t, binary = cv.threshold(gray, 0, 255, cv.THRESH_BINARY | cv.THRESH_OTSU) return binary def method_2(image): blurred = cv.GaussianBlur(image, (3, 3), 0) gray = cv.cvtColor(blurred, c...
19dd23872e8261c7b62ef2e337e7d170b8b13418
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/wpt_tools/wpt/tools/third_party_modified/mozlog/mozlog/structuredlog.py
20924e8b16a61cbbe771547a2395b1a0c35b5a7a
[ "BSD-3-Clause", "GPL-1.0-or-later", "MIT", "LGPL-2.0-or-later", "Apache-2.0" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
27,968
py
structuredlog.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import json import sys import time import traceback from multiprocessing import current_process from threading import Lo...
9df3dd6f0ad7d760a1b1a19f44c67c91a81c2458
7343ece3b82ac87a594865c4074623b45b0297b4
/synapse/storage/schema/main/delta/37/remove_auth_idx.py
d672f9b43cdf21098334fd65d26faab4558e90de
[ "Apache-2.0" ]
permissive
matrix-org/synapse
a00111f83310783b78e2996557f8bbae4d9fb229
d35bed8369514fe727b4fe1afb68f48cc8b2655a
refs/heads/develop
2023-09-05T05:24:20.808942
2023-09-04T16:14:09
2023-09-04T16:14:09
22,844,864
12,215
2,869
Apache-2.0
2023-09-14T15:20:48
2014-08-11T15:51:42
Python
UTF-8
Python
false
false
2,682
py
remove_auth_idx.py
# Copyright 2016 OpenMarket 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 in writin...
1c350af4e92696933bf6a47dc5f5d05da0f987f4
8b12d44618a870d0b4d11719928035f52930093f
/src/torchio/transforms/augmentation/spatial/random_elastic_deformation.py
b3aa698407e2e2ed18ecc77cd785e64e888a121d
[ "Apache-2.0" ]
permissive
fepegar/torchio
a37635dbdaea5b2f797e3975a1e74c39049a9874
97232165c74061b0fe9e018c5377cb3ed63d67fe
refs/heads/main
2023-09-01T13:41:52.838197
2023-08-03T11:49:37
2023-08-03T11:49:37
224,148,738
1,831
239
Apache-2.0
2023-09-11T17:03:52
2019-11-26T09:10:09
Python
UTF-8
Python
false
false
14,122
py
random_elastic_deformation.py
import warnings from numbers import Number from typing import Sequence from typing import Tuple from typing import Union import numpy as np import SimpleITK as sitk import torch from .. import RandomTransform from ... import SpatialTransform from ....data.image import ScalarImage from ....data.io import nib_to_sitk f...
bce003c6e9d45075e6e291e619ef4990d31a2843
aba5caebbaea79f798c063db4386ebe040a62d54
/rplugin/python3/defx/base/kind.py
36dd8140d224adf1a5d2d2f4b6dc08937a58854b
[ "MIT" ]
permissive
Shougo/defx.nvim
9aeb30f2208043228a64c3b661fae0b98cb2c827
eb66962f7b9f7a4d23a1e0be122b45a88331dffa
refs/heads/master
2023-08-16T23:03:51.817726
2023-04-25T09:56:56
2023-04-25T09:56:56
77,885,726
1,336
144
NOASSERTION
2022-03-01T00:49:13
2017-01-03T05:07:46
Python
UTF-8
Python
false
false
15,131
py
kind.py
# ============================================================================ # FILE: kind.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license # ============================================================================ from pathlib import Path from pynvim import Nvim import json impor...
5cec9fcfcfb9140cc58eb71007802e685566b32f
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/tests/unit/scheduler/test_l3_agent_scheduler.py
b729e0f78b3a45b978b4c11efc6e1a210be55c8e
[ "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
97,948
py
test_l3_agent_scheduler.py
# Copyright (c) 2013 OpenStack Foundation # 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 ...
1ed39b707fdf117366e1b24952dc57ab864f3f3f
3eb3c4046b17e265930aaf89fa93f41896f243cb
/spynnaker8/spynnaker_plotting.py
f7fcd0b8b7a86cd9502ebf7dded0e35d88a3526b
[ "Apache-2.0" ]
permissive
SpiNNakerManchester/sPyNNaker
b177613a114cfc7e7687ec36c1f72a2f07f66977
891cfb3046f66185fd8df52d270380fa94c32eab
refs/heads/master
2023-09-01T11:28:21.252266
2023-08-17T08:07:43
2023-08-17T08:07:43
20,801,613
101
53
Apache-2.0
2023-09-14T18:39:29
2014-06-13T11:07:19
Python
UTF-8
Python
false
false
4,167
py
spynnaker_plotting.py
# Copyright (c) 2021 The University of Manchester # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
0bdd5893618fe96521235205e4411f76a5594bdb
098bdd84c5c13c1c750bd66848d3cc394a2f4da3
/contrib/adsk/MaterialX/Utilities/Scripts/mxnodedefconvert.py
32b08da4b9e85ff80341a2022462f639dd4475b4
[ "Apache-2.0" ]
permissive
autodesk-forks/MaterialX
0526c4cdd36cc4d0f0e1773b6833da2f28f53b84
f6fdb68d9929fa26458161718c6b26dd69f246de
refs/heads/adsk_contrib/dev
2023-08-17T03:00:13.163418
2023-07-24T17:35:14
2023-07-24T17:35:14
99,679,762
110
25
Apache-2.0
2023-09-13T05:14:38
2017-08-08T10:16:05
Mathematica
UTF-8
Python
false
false
10,807
py
mxnodedefconvert.py
#!/usr/bin/env python """ Utility to generate json and hpp from MaterialX nodedef Given a node def e.g. ND_standard_surface_surfaceshader will generate a standard_surface.json and standard_surface.hpp The hpp/json can be used for simple reflection instead of parsing mtlx libraries """ import sys import os import argp...
7a544dfa7b3f33b3d9b3ea1a0744b5efa12f70b2
9907672fcd81ab73ac63b2a83422a82bf31eadde
/tyama_icpc2015dpA.py
73ca29381e2a7a385c189d7f7d5abdd4b1c5d955
[ "0BSD" ]
permissive
cielavenir/procon
bbe1974b9bddb51b76d58722a0686a5b477c4456
746e1a91f574f20647e8aaaac0d9e6173f741176
refs/heads/master
2023-06-21T23:11:24.562546
2023-06-11T13:15:15
2023-06-11T13:15:15
7,557,464
137
136
null
2020-10-20T09:35:52
2013-01-11T09:40:26
C++
UTF-8
Python
false
false
209
py
tyama_icpc2015dpA.py
#!/usr/bin/python import sys,math if sys.version_info[0]>=3: raw_input=input while True: a,b=[int(e) for e in raw_input().split()] if not a: break print(min(abs(b-math.hypot(i,a-i)) for i in range(a//2+1)))
94c2007d1c7ca21e26b89536633db4a0b70cb837
e65a4dbfbfb0e54e59787ba7741efee12f7687f3
/x11-toolkits/py-qt5-chart/files/patch-configure.py
01781a2e74801a97c48f368e28bd4bd97c08a885
[ "BSD-2-Clause" ]
permissive
freebsd/freebsd-ports
86f2e89d43913412c4f6b2be3e255bc0945eac12
605a2983f245ac63f5420e023e7dce56898ad801
refs/heads/main
2023-08-30T21:46:28.720924
2023-08-30T19:33:44
2023-08-30T19:33:44
1,803,961
916
918
NOASSERTION
2023-09-08T04:06:26
2011-05-26T11:15:35
null
UTF-8
Python
false
false
829
py
patch-configure.py
--- configure.py.orig 2021-10-26 11:10:38 UTC +++ configure.py @@ -1549,10 +1549,10 @@ INSTALLS += sip # These optimisations could apply to other platforms. if module_config.no_exceptions: - if target_config.py_platform.startswith('linux') or target_config.py_platform == 'darwin': + if target_...
a97c4a9cae429eb0c4374d84b26c2a6f9cbfff23
1742b6719b988e5519373002305e31d28b8bd691
/sdk/python/pulumi_aws/lakeformation/get_resource.py
2f4789fb310701d2be86d399ebc5c0af7c9dd677
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
pulumi/pulumi-aws
4f7fdb4a816c5ea357cff2c2e3b613c006e49f1a
42b0a0abdf6c14da248da22f8c4530af06e67b98
refs/heads/master
2023-08-03T23:08:34.520280
2023-08-01T18:09:58
2023-08-01T18:09:58
97,484,940
384
171
Apache-2.0
2023-09-14T14:48:40
2017-07-17T14:20:33
Java
UTF-8
Python
false
false
3,931
py
get_resource.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...
38eef92bb1e4300d1771d0e3e0cbc289267e2495
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/CommonScripts/Scripts/ChangeContext/ChangeContext.py
3fe0bb9e2abe55e20cf80ed7086a2f115c7ed2c8
[ "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
1,281
py
ChangeContext.py
from CommonServerPython import * import json def replace_context(args: dict) -> tuple: context = args.get('input', '') output_key = args.get('output_key', '') inplace = args.get('inplace', 'True') == 'True' capitalize = args.get('capitalize') == 'True' replace_dict = json.loads(args.get('replace_...
7ddde8adc11cdac5a6c68113f1df0998dae56b94
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/nemo/collections/nlp/data/text_normalization_as_tagging/thutmose_tagger_dataset.py
c8df33885622798bce3c25e4204b9b9a0625bc73
[ "Apache-2.0" ]
permissive
NVIDIA/NeMo
1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1
c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7
refs/heads/main
2023-08-21T15:28:04.447838
2023-08-21T00:49:36
2023-08-21T00:49:36
200,722,670
7,957
1,986
Apache-2.0
2023-09-14T18:49:54
2019-08-05T20:16:42
Python
UTF-8
Python
false
false
4,122
py
thutmose_tagger_dataset.py
# Copyright (c) 2022, NVIDIA CORPORATION & 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
dcd9144ebea0ba875871699cdac5b4dc5813d923
b3950a2a6912c9b494d22b9353322c3357df0110
/tock/tock/apps.py
2f83c7883915590f4cb3e8bfb62fce9be3663333
[ "CC0-1.0", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
18F/tock
df1fa5e817e690ce0bff315a15799e2f78915882
99005d8f6c4605a69fbb620c41f38447ecbee459
refs/heads/main
2023-08-31T01:34:55.299577
2023-08-23T18:49:10
2023-08-23T18:49:10
30,162,008
135
50
NOASSERTION
2023-09-07T18:40:30
2015-02-01T22:19:32
Python
UTF-8
Python
false
false
166
py
apps.py
from django.apps import AppConfig from .signals import setup_signals class TockAppConfig(AppConfig): name = "tock" def ready(self): setup_signals()
22fee79bfbecf2a6f0056dd95ec96be51234d174
ecaba173879f92f24e3c951866fda23c0a4fc426
/tests/linux_benchmarks/large_scale_boot_benchmark_test.py
9e583f2a030f7ffc964fe96d2bdf37deae8d38e2
[ "Classpath-exception-2.0", "BSD-3-Clause", "AGPL-3.0-only", "MIT", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
GoogleCloudPlatform/PerfKitBenchmarker
2f4917fd796db4eb90822c557d8fa08a497fbd48
d0699f32998898757b036704fba39e5471641f01
refs/heads/master
2023-09-02T08:14:54.110308
2023-09-01T20:28:01
2023-09-01T20:28:38
21,950,910
1,923
567
Apache-2.0
2023-09-13T22:37:42
2014-07-17T17:23:26
Python
UTF-8
Python
false
false
5,453
py
large_scale_boot_benchmark_test.py
# Copyright 2018 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
5e78d478dc2be5ae6c1efc5a2da8a0194192f357
75762795be601735f4a5ae80f39ea93ae597b8c1
/mp_readline/test.py
ef9be6c268d24989adf5a9481f298c3a45f41da4
[ "MIT" ]
permissive
leffss/devops
49a60792d2fdbf5152a3db8021185c0b7bff336d
dd590c8bada955f27562a0881ad3445442958f86
refs/heads/master
2023-04-07T01:24:53.052233
2022-08-09T09:15:49
2022-08-09T09:15:49
199,561,033
372
162
MIT
2023-03-31T14:55:52
2019-07-30T02:39:28
JavaScript
UTF-8
Python
false
false
729
py
test.py
#!/usr/bin/env python3 """Test cases for mp_readline""" import mp_readline mp_readline.TESTING = True rl = mp_readline.MpReadline() if __name__ == "__main__": input1 = b'free asd\x08\x08\x08\x08\x08\x08\x08\x08pp\x1b[K\x08\x08free asd\x08\x08\x08\x08\x08\x08\x08\x08pp\x1b[K\x08\x08sk\x08\x08vim xasd\x08\x08\x08...
2365cd8bac63cda5e797bb925c7510375f072d6e
bdc27c22522a99b5bff2ec4cfa95fadcba65747d
/testing/adios2/bindings/python/TestBPPNGHighLevelAPI.py
fc3588b8f4c996aa0c4f385bdd30134118db612d
[ "Apache-2.0" ]
permissive
ornladios/ADIOS2
a34e257b28adb26e6563b800502266ebb0c9088c
c8b7b66ed21b03bfb773bd972d5aeaaf10231e67
refs/heads/master
2023-08-31T18:11:22.186415
2023-08-29T20:45:03
2023-08-29T20:45:03
75,750,830
243
140
Apache-2.0
2023-09-14T11:15:00
2016-12-06T16:39:55
C++
UTF-8
Python
false
false
2,480
py
TestBPPNGHighLevelAPI.py
#!/usr/bin/env python # # Distributed under the OSI-approved Apache License, Version 2.0. See # accompanying file Copyright.txt for details. # # TestBPPNGHighLevelAPI.py # # Created on: June 7th, 2019 # Author: William F Godoy import numpy as np import random from mpi4py import MPI import adios2 def Compress...
2e72879983a74cf407f77b1c10ec56e87a372198
d17a8870ff8ac77b82d0d37e20c85b23aa29ca74
/lite/tests/unittest_py/op/common/test_beam_search_decode_op_base.py
1985632bd27a1ecf8a596207cb6fe84913cdb893
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle-Lite
4ab49144073451d38da6f085a8c56822caecd5b2
e241420f813bd91f5164f0d9ee0bc44166c0a172
refs/heads/develop
2023-09-02T05:28:14.017104
2023-09-01T10:32:39
2023-09-01T10:32:39
104,208,128
2,545
1,041
Apache-2.0
2023-09-12T06:46:10
2017-09-20T11:41:42
C++
UTF-8
Python
false
false
2,371
py
test_beam_search_decode_op_base.py
# Copyright (c) 2021 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...
e692c1d12af004b80fefc0e4ffd1172a60794675
26060f5ea4d7efee2d03cbbd0b49c099e0f5f38a
/tests/linear/uvlm/test_infinite_span.py
70a857e4cdfa90342a52668b553230b705ef137b
[ "BSD-3-Clause" ]
permissive
ImperialCollegeLondon/sharpy
0fcd1fba9ed2181dabc1124f9800aa75521bfc3d
58ddceb985bef13af3ea199a1764c8dc9b088907
refs/heads/main
2023-08-19T03:04:26.044857
2023-07-17T07:05:06
2023-07-17T07:05:06
70,235,936
106
55
BSD-3-Clause
2023-08-16T02:27:58
2016-10-07T10:11:51
Python
UTF-8
Python
false
false
19,018
py
test_infinite_span.py
"""Linearised UVLM 2D tests Test linear UVLM solver against analytical results for 2D wing Author: S. Maraniello, Dec 2018 Modified: N. Goizueta, Sep 2019 """ import unittest import os # import matplotlib.pyplot as plt import numpy as np import shutil import sharpy.sharpy_main import sharpy.utils.algebra as algebra...
39ddee3b218539e6e0049166a214662e57072908
d1c2d00078520cd556f60b7213c27856f8b3460d
/sdks/python/apache_beam/ml/inference/sklearn_inference_test.py
c2ea9fa1e95597dd6992c748a31c29b9a72757d1
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-protobuf", "Apache-2.0", "Python-2.0" ]
permissive
apache/beam
ed11b9e043465c720659eac20ac71b5b171bfa88
6d5048e05087ea54abc889ce402ae2a0abb9252b
refs/heads/master
2023-09-04T07:41:07.002653
2023-09-01T23:01:05
2023-09-01T23:01:05
50,904,245
7,061
4,522
Apache-2.0
2023-09-14T21:43:38
2016-02-02T08:00:06
Java
UTF-8
Python
false
false
23,120
py
sklearn_inference_test.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 us...
6b59cf2972ac1a05d6287e98a143e7e977f30dea
b04cc98a746d1df457183bc14908094a8be00ba1
/paddleslim/nas/ofa/utils/nlp_utils.py
88c167ff0cf98ec4cfbb9b6f6fb0308095931752
[ "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
11,436
py
nlp_utils.py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 appl...
d50aafb71c102198bd604c1b73139093c3feb9fa
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/util/bitly.py
77cd18a9b56380eb87dfce61dbddb524d8293a11
[ "BSD-3-Clause" ]
permissive
dimagi/commcare-hq
a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b
e7391ddae1af1dbf118211ecb52c83fc508aa656
refs/heads/master
2023-08-16T22:38:27.853437
2023-08-16T19:07:19
2023-08-16T19:07:19
247,278
499
203
BSD-3-Clause
2023-09-14T19:03:24
2009-07-09T17:00:07
Python
UTF-8
Python
false
false
1,776
py
bitly.py
import json import warnings from functools import partial from django.conf import settings import requests from requests import HTTPError from six.moves.urllib.request import urlopen BITLY_CONFIGURED = False class BitlyError(Exception): def __init__(self, status_code, status_txt): self.status_code = ...
a2494cd31fdb5a1a59b6a67bdc3adf3d6b0d910b
2f1e3f24f2798507c9eb73185a955c9bfb735140
/libreco/utils/exception.py
c54c333d648b7f8ba6805455085014e862f3dcc6
[ "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
319
py
exception.py
class NotSamplingError(Exception): """Exception related to sampling data If client wants to use batch_sampling and then evaluation on the dataset, but forgot to do whole data sampling beforehand, this exception will be raised. Because in this case, unsampled data can't be evaluated. """ pass
fe4d00190f5949043a51b714149f4deb21a2c24e
3138dfcf72a0f2e5b9b4bd04ee3740b55f3a0141
/docs/tutorials/multinode/noiseless3.py
f35dcb5c383ac2c920779254b061dd347310f1c8
[ "Apache-2.0" ]
permissive
quantumlib/qsim
040c218ea6736e6724e0ac75e38a691862834bd5
235ae2fc039fb4a98beb4a6114d10c7f8d2070f7
refs/heads/master
2023-09-04T11:03:09.833512
2023-06-01T18:07:08
2023-06-01T18:07:08
236,547,448
367
137
Apache-2.0
2023-08-20T02:42:50
2020-01-27T17:19:36
C++
UTF-8
Python
false
false
396
py
noiseless3.py
import cirq, qsimcirq # Create a Bell state, |00) + |11) q0, q1 = cirq.LineQubit.range(2) circuit = cirq.Circuit(cirq.H(q0), cirq.CNOT(q0, q1), cirq.measure(q0, q1, key="m")) sim = qsimcirq.QSimSimulator() result = sim.run(circuit, repetitions=1000) # Outputs a histogram dict of result:count pairs. # Expected result ...
4e6b49159b908e5f8c31cba54cb608517a44e848
2f4605e878c073d7f735eed1d675c2ee454ad68e
/sdk/python/pulumi_kubernetes/yaml/yaml.py
cdaf951f57f06125dab2a226b26cf50ca896461f
[ "Apache-2.0" ]
permissive
pulumi/pulumi-kubernetes
3c0c82e03a19f4077625d2ff6dae5ea4dbf90243
b5d76f0731383f39903f35a6c1566f2f4344c944
refs/heads/master
2023-08-17T16:57:11.845935
2023-08-16T00:55:18
2023-08-16T00:55:18
116,869,354
353
128
Apache-2.0
2023-09-13T21:42:01
2018-01-09T20:50:33
Java
UTF-8
Python
false
false
102,331
py
yaml.py
# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings from copy import copy from glob import glob from inspect import getfullargspec, ismethod from typing import Any, Callable, List,...
2d5dd2b22b2834ad316de918ea28587714530c1e
db58d00b8be8978b81a567ca5800ec0b40b11d6f
/Modulos/cfirm.py
e5a1307319cf2f807f6042d57a0f8ef329aff915
[ "MIT" ]
permissive
AAAAAEXQOSyIpN2JZ0ehUQ/SSHPLUS-MANAGER-FREE
bc81e56298c162aec00e4c6be4755113863320e6
77134647c771227d2973840e9736c9a2bcfb8793
refs/heads/master
2023-08-31T06:52:25.258819
2023-08-29T06:40:21
2023-08-29T06:40:21
178,086,467
221
393
null
2023-08-08T07:16:50
2019-03-27T22:52:21
Shell
UTF-8
Python
false
false
2,530
py
cfirm.py
#!/usr/bin/env python # encoding: utf-8 import smtplib,socket,sys from os import system from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from datetime import datetime _NOME_ = sys.argv[1] _IP_ = sys.argv[2] _ADRESS_OS_ = '/etc/issue.net' OS = open(_ADRESS_OS_).readlines() for SYS in O...
77d69b22b91d819db01b8b90163d51cd59e2b42e
dbe83cf6c2b78a61def862ca19625c2f78268af8
/ibis/backends/pandas/tests/conftest.py
4c6bdd567d879fbb70f067e95514a3e1a984a626
[ "Apache-2.0" ]
permissive
ibis-project/ibis
56a169d75805db7dfd39192cf0562521c405ff1c
3866492906d731dc170b560e7d7471bd4855169a
refs/heads/master
2023-09-01T17:07:38.854510
2023-09-01T13:52:08
2023-09-01T15:32:04
34,139,230
2,304
384
Apache-2.0
2023-09-14T21:52:21
2015-04-17T20:43:46
Python
UTF-8
Python
false
false
1,169
py
conftest.py
from __future__ import annotations from typing import Any import ibis from ibis.backends.conftest import TEST_TABLES from ibis.backends.tests.base import BackendTest, RoundHalfToEven from ibis.backends.tests.data import array_types, json_types, struct_types, win class TestConf(BackendTest, RoundHalfToEven): che...
fb78acd4d255f1eb5d264e51d7d7a545ad99f3e3
691b6f10991743b4af7a58434917e2ecd9c7b16f
/src/fable-library-py/fable_library/file.py
d95d69da3dcc97cee4e7112f4d2099cd47ef9004
[ "MIT" ]
permissive
fable-compiler/Fable
821021ce4c1f5e8cc323ee9af842ea05ca0f8daa
dd4d6c986c1083495044ed29e9f9d11abe4dfd66
refs/heads/main
2023-09-02T22:32:34.222718
2023-08-25T13:24:03
2023-08-25T13:24:03
49,417,923
2,517
346
MIT
2023-09-11T14:06:58
2016-01-11T10:10:13
F#
UTF-8
Python
false
false
2,785
py
file.py
import os from typing import Awaitable def read_all_text(file_name: str) -> str: with open(file_name, "r") as f: return f.read() def read_all_text_async(file_name: str) -> Awaitable[str]: async def read_all_text_async(): with open(file_name, "r") as f: return f.read() return...
f0443c1cbe8abc6b47ca26f37028b0816a5c649e
5f69a6549b8d5e417553d910622e6855b2ae679b
/projects/opendr_ws_2/src/opendr_planning/launch/end_to_end_planning_robot_launch.py
aba39bce53d78d4763e6fda7927eea44c688077c
[ "Apache-2.0" ]
permissive
opendr-eu/opendr
822219f709613d77c5eb62c5d02808d344239835
b3d6ce670cdf63469fc5766630eb295d67b3d788
refs/heads/master
2023-08-31T07:02:36.375231
2023-08-29T06:39:51
2023-08-29T06:39:51
293,755,225
535
82
Apache-2.0
2023-09-13T16:53:34
2020-09-08T08:55:04
Python
UTF-8
Python
false
false
1,998
py
end_to_end_planning_robot_launch.py
#!/usr/bin/env python # Copyright 2020-2023 OpenDR European Project # # 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...
2299daa0a9caeef8dcaebdb7b184263fdd88b975
7f620e7902c0b9ccb1fcfd1427acd5936ea33814
/mlrun/api/api/endpoints/runs.py
8c489b4945b142ad5c7eaf4533155762fe0facc6
[ "Apache-2.0" ]
permissive
mlrun/mlrun
2074c230070129ce3becb211b92c90b29a2ce850
b5fe0c05ae7f5818a4a5a5a40245c851ff9b2c77
refs/heads/development
2023-09-06T00:09:21.546135
2023-09-05T19:38:13
2023-09-05T19:38:13
205,706,595
1,093
229
Apache-2.0
2023-09-14T14:14:10
2019-09-01T16:59:19
Python
UTF-8
Python
false
false
12,457
py
runs.py
# Copyright 2023 Iguazio # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
2b3ddf1bb6dbac828d7e3151e3cbd04aeac36d61
376e1818d427b5e4d32fa6dd6c7b71e9fd88afdb
/textproc/py-feedparser5/patches/patch-feedparser_feedparser.py
e9599bbdb4c07646c286810a9583f83d928e702c
[]
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
824
py
patch-feedparser_feedparser.py
$NetBSD: patch-feedparser_feedparser.py,v 1.1 2021/08/19 19:21:00 nia Exp $ Fix compatibility with Python 3.9. Backported from: https://github.com/kurtmckee/feedparser/pull/206 https://bugzilla.redhat.com/show_bug.cgi?id=1807186 --- feedparser/feedparser.py.orig 2015-07-24 05:00:04.000000000 +0000 +++ feedparser/fee...
857e6a96e4474b05695a7ddb4996494d9cda248e
6416b746ee71d897789eab1e450000831674dbd0
/src/otx/algorithms/anomaly/adapters/anomalib/data/mvtec.py
18f792445a9dc228f049df661a483e153ec02170
[ "Apache-2.0" ]
permissive
openvinotoolkit/training_extensions
c921f83ad52311af96ff45ae0b88d0aecddd855b
80454808b38727e358e8b880043eeac0f18152fb
refs/heads/develop
2023-08-31T06:29:07.229339
2023-08-31T01:57:26
2023-08-31T01:57:26
154,843,614
397
230
Apache-2.0
2023-09-14T06:17:01
2018-10-26T14:02:29
Python
UTF-8
Python
false
false
6,963
py
mvtec.py
"""OTX MVTec Dataset facilitate OTX Anomaly Training. License: MVTec AD dataset is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0)(https://creativecommons.org/licenses/by-nc-sa/4.0/). Reference: - Paul Bergmann, Kilian Batzner, Micha...
9029d8cb2472add1b26f1003c3ed5f91f8214188
ff1c4267608ed27711b6f4ee06327a2cf5ced17d
/tests/test_utilities.py
97515736e5a7f34258ded3bce0ba7144c3226ecf
[ "MIT" ]
permissive
dusktreader/flask-praetorian
ce190fd0d6cd2050b2b882fcede42fcb78bc8bfe
32e614e0cd1374b3519144fbefe8e09f6162c813
refs/heads/master
2023-08-23T13:49:04.649111
2022-09-20T21:39:07
2022-09-20T21:39:07
74,596,218
370
81
MIT
2023-02-16T06:33:20
2016-11-23T16:47:18
Python
UTF-8
Python
false
false
5,626
py
test_utilities.py
import flask import pendulum import pytest from flask_praetorian.utilities import ( add_jwt_data_to_app_context, app_context_has_jwt_data, remove_jwt_data_from_app_context, current_user, current_user_id, current_rolenames, current_custom_claims, duration_from_string, ) from flask_praeto...
4c5cef02d9e84333d228702a1aa63f096ad88906
9d7506d03e4f07293143b2ee73a77c5b9ae0fc5a
/MachineLearning/LinearRegression/Application/Advertising.csv
1d7bf8eaeec1a9aa1bddd8e64d9408b543012bc9
[ "MIT" ]
permissive
excelsimon/AI
52aa72157b5a548744539fbacd0cb60994ccf556
a54da940a1b47eb7d6fd921052932345eb12aeb2
refs/heads/master
2023-06-21T13:20:17.265234
2021-08-05T05:19:17
2021-08-05T05:19:17
103,625,033
130
40
null
null
null
null
UTF-8
Python
false
false
4,756
csv
Advertising.csv
,TV,Radio,Newspaper,Sales 1,230.1,37.8,69.2,22.1 2,44.5,39.3,45.1,10.4 3,17.2,45.9,69.3,9.3 4,151.5,41.3,58.5,18.5 5,180.8,10.8,58.4,12.9 6,8.7,48.9,75,7.2 7,57.5,32.8,23.5,11.8 8,120.2,19.6,11.6,13.2 9,8.6,2.1,1,4.8 10,199.8,2.6,21.2,10.6 11,66.1,5.8,24.2,8.6 12,214.7,24,4,17.4 13,23.8,35.1,65.9,9.2 14,9...
4acc70d943e1d1d3554b9d872b6f93ab6b8f1398
c882c16e1c42974f2744a79738bde155acc985b6
/runtests.py
3baf7e6fd799481e5172f14436e0eba109dcf328
[ "MIT" ]
permissive
nitely/Spirit
4e4f1615a990ec8174f71ab66c64de5c4e599107
9a304a57de021108d9225b87f35ad6395d5d56d3
refs/heads/master
2023-06-09T02:09:47.275554
2023-05-24T09:19:48
2023-05-24T09:19:48
19,626,318
1,049
391
MIT
2023-08-20T05:34:25
2014-05-09T21:31:33
Python
UTF-8
Python
false
false
1,048
py
runtests.py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import os import sys import logging import django from django.test.runner import DiscoverRunner os.environ['DJANGO_SETTINGS_MODULE'] = 'project.project.settings.test' def setup_celery(): try: from celery import Cele...
5aae8b9431b96ee03a93d8000437de88d74f02a4
a2b3987eb8a50bee311f869e39d1c76e738ba2b8
/authlib/jose/rfc7517/jwk.py
b1578c49c5afecc54adc35e98293179530b0cf0a
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lepture/authlib
abb3e14b8ccacef9ade90b28efed827ab65aadce
1846d6ac66e89bdb3268fffe15b7e49289966366
refs/heads/master
2023-09-04T04:27:56.650738
2023-09-02T07:42:47
2023-09-02T07:42:47
108,510,280
4,091
481
BSD-3-Clause
2023-09-13T13:04:38
2017-10-27T06:52:26
Python
UTF-8
Python
false
false
2,042
py
jwk.py
from authlib.common.encoding import json_loads from .key_set import KeySet from ._cryptography_key import load_pem_key class JsonWebKey: JWK_KEY_CLS = {} @classmethod def generate_key(cls, kty, crv_or_size, options=None, is_private=False): """Generate a Key with the given key type, curve name or ...
14e265690c6653d6f5604c43a4dde0d8f283a536
09b542643e43d4e31035faf014fbd61b766587e0
/midi-script/DeviceParameter.py
4cff410bb00c9a512de5c2a51768c9f04d6848be
[ "MIT" ]
permissive
leolabs/ableton-js
964f8077d4f25933045b50bc5f95934cc337d747
d239edf91a3c46a9444a6d5a533be66936452527
refs/heads/master
2023-08-03T21:46:31.449486
2023-07-27T12:02:26
2023-07-27T12:02:26
187,489,144
259
34
MIT
2023-07-22T10:22:36
2019-05-19T14:44:42
TypeScript
UTF-8
Python
false
false
566
py
DeviceParameter.py
from __future__ import absolute_import from .Interface import Interface class DeviceParameter(Interface): @staticmethod def serialize_device_parameter(param): if param is None: return None device_parameter_id = Interface.save_obj(param) return { "id": device_pa...
ad775752ffc1196a21cf5b9843fb4013e9f394b1
acad69f0abe162eea0cb13cbe15bfd88f6da08b4
/optim/__init__.py
7dab15c8832dbb471480bd7e77bd6db9fdda52f2
[]
no_license
zhangzjn/EMO
69afcac53800d8b9a390f1214e178e2ca4da3b24
141afbdbce04683790f0699f256327ec420be442
refs/heads/main
2023-08-27T19:04:23.313676
2023-08-15T04:09:55
2023-08-15T04:09:55
584,987,542
139
9
null
null
null
null
UTF-8
Python
false
false
2,309
py
__init__.py
import torch from torch import optim as optim from timm.optim.adafactor import Adafactor from timm.optim.adahessian import Adahessian from timm.optim.adamp import AdamP from timm.optim.nadam import Nadam from timm.optim.radam import RAdam from timm.optim.rmsprop_tf import RMSpropTF from timm.optim.sgdp import S...
7e5be0f5f8ee1fcc540ceb6ebc3e5fd946837a36
676acab8ff535019faff7da3afb8eecc3fa127f5
/target/pixhawk/fmt-io/project/rtconfig.py
86aee4c77b9f5d7397068d8df8dbc9d9cefcf8a8
[ "Apache-2.0" ]
permissive
Firmament-Autopilot/FMT-Firmware
f8c324577245bd7e91af436954b4ce9421acbb41
0212fe89820376bfbedaded519552f6b011a7b8a
refs/heads/master
2023-09-01T11:37:46.194145
2023-08-29T06:33:10
2023-08-29T06:33:10
402,557,689
351
143
Apache-2.0
2023-09-12T05:28:39
2021-09-02T20:42:56
C
UTF-8
Python
false
false
1,550
py
rtconfig.py
import os # toolchains options ARCH='arm' CPU='cortex-m3' CROSS_TOOL='gcc' # build version: debug or release BUILD = 'release' #device options STM32_TYPE = 'STM32F10X_MD' # cross_tool provides the cross compiler # EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR if CROSS_TOOL == 'gcc...
fbf584b5dea7f12bb44bd5068540eb698ec2b777
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/shared/utils/requesters/game_restrictions_requester.py
774b15d4ca56338fde4dd8e08ee2ea9db7f3925e
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
958
py
game_restrictions_requester.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/shared/utils/requesters/game_restrictions_requester.py import typing import BigWorld from adisp import async from gui.shared.utils.requesters.abstract import AbstractSyncDataRequester from skeletons.gui.shared.utils.requesters i...
0297d2474c401c76e75d034ec7d30b43a9312913
f740d8dbaaf74688278c9df3badd3d6acc2a2761
/torchattacks/__init__.py
4f1fd2d7fecff9be787dbd31f29c78569e216ded
[ "MIT" ]
permissive
Harry24k/adversarial-attacks-pytorch
4a52f47a79bbe88cd91e5ea76c3fc8d40e2cc1e5
3c8e03fdf6688bfa4e4ebfc6a63762df0ad258b0
refs/heads/master
2023-09-05T10:58:57.135718
2023-07-03T08:47:17
2023-07-03T08:47:17
182,017,442
1,420
312
MIT
2023-07-24T09:08:14
2019-04-18T04:43:39
Python
UTF-8
Python
false
false
1,957
py
__init__.py
# None attacks from .attacks.vanila import VANILA from .attacks.gn import GN # Linf attacks from .attacks.fgsm import FGSM from .attacks.bim import BIM from .attacks.rfgsm import RFGSM from .attacks.pgd import PGD from .attacks.eotpgd import EOTPGD from .attacks.ffgsm import FFGSM from .attacks.tpgd import TPGD from ....
639db2146c52a20a519cf762067be50f313a1749
af666c914f3878793ec76e20f71fa3ff992fa181
/Test/astc_image_sweep.py
575a75a21b31476fe51c7b29bde7e3ea04293fd8
[ "Apache-2.0" ]
permissive
ARM-software/astc-encoder
d0cce03f91571ee96edb75ec7a9fe20538ba5ff5
3a2cda16c8bc20efa0dbda907447136ccfb88d7f
refs/heads/main
2023-09-04T23:31:54.734837
2023-09-03T17:18:36
2023-09-03T17:19:05
34,799,882
887
233
Apache-2.0
2023-09-03T12:43:16
2015-04-29T14:51:23
C
UTF-8
Python
false
false
2,739
py
astc_image_sweep.py
#!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 # ----------------------------------------------------------------------------- # Copyright 2021-2022 Arm Limited # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may ob...
9c27fcf78c66ccd21e8a632767e44ec044d9e2aa
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/find-the-closest-palindrome.py
a004106d3469519a5e9a504e4b0575bc0d30719c
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
495
py
find-the-closest-palindrome.py
# Time: O(l) # Space: O(l) class Solution(object): def nearestPalindromic(self, n): """ :type n: str :rtype: str """ l = len(n) candidates = set((str(10**l + 1), str(10**(l - 1) - 1))) prefix = int(n[:(l + 1)/2]) for i in map(str, (prefix-1, prefix, ...
ca52657dbabca7860b7c9364bfc663f668c141c3
9ed3b16b3da72e4c47a04f2f2e3ef395e9fd9f20
/contrib/libexttextcat/template.py
9a907353a19310a4d73bae2242ae826eba142ab8
[ "BSD-2-Clause" ]
permissive
chimera-linux/cports
fdae59dc25856942be3041e10e3533dbf8f883c3
714680161cd719dd047452c95fbb9b447bc23a86
refs/heads/master
2023-09-03T19:30:40.720670
2023-09-03T15:07:40
2023-09-03T15:07:40
374,000,317
118
37
BSD-2-Clause
2023-09-14T20:31:08
2021-06-05T02:07:34
Python
UTF-8
Python
false
false
810
py
template.py
pkgname = "libexttextcat" pkgver = "3.4.6" pkgrel = 0 build_style = "gnu_configure" configure_args = ["--disable-werror"] make_cmd = "gmake" hostmakedepends = ["pkgconf", "gmake", "automake", "libtool"] checkdepends = ["bash"] pkgdesc = "N-Gram-Based Text Categorization library" maintainer = "q66 <q66@chimera-linux.org...
41d26d68360d1d712289172ae72fa9f26b37128f
e7bf1ff05319acc59bba5af5890041bd82c3e197
/examples/decoding/linear_model_patterns.py
1786df4a4b8c9a15bbf85b9f2340189a0ab0b403
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mne-tools/mne-python
7e8d7e945dfbbee6432a4955cf050fa823f2d34b
f44636f00666b8eb869417960926d01690ff4f42
refs/heads/main
2023-09-04T03:05:37.402100
2023-09-03T14:15:18
2023-09-03T14:15:18
1,301,584
2,437
1,418
BSD-3-Clause
2023-09-14T19:23:38
2011-01-28T03:31:13
Python
UTF-8
Python
false
false
4,035
py
linear_model_patterns.py
""" .. _ex-linear-patterns: =============================================================== Linear classifier on sensor data with plot patterns and filters =============================================================== Here decoding, a.k.a MVPA or supervised machine learning, is applied to M/EEG data in sensor space...
2ebf9f59e46f7ac532fe2b1dcb96c216a35c25f5
df1254b56f35b24644e00493c50d4b6eb3c15b7b
/colour/plotting/models.py
4cfea6b3f97e549ccbb4b67073f244ba63d19335
[ "BSD-3-Clause" ]
permissive
colour-science/colour
908400b227cf81668675e41099256ce50b23ae4b
1fdf3b3042922e8d4f86b989b00a06e7e5d81102
refs/heads/develop
2023-09-01T23:17:07.186869
2023-08-26T09:40:45
2023-08-26T09:40:45
17,114,363
1,756
301
BSD-3-Clause
2023-09-14T10:24:37
2014-02-23T18:55:40
Python
UTF-8
Python
false
false
66,570
py
models.py
""" Colour Models Plotting ====================== Defines the colour models plotting objects: - :func:`colour.plotting.\ plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931` - :func:`colour.plotting.\ plot_RGB_colourspaces_in_chromaticity_diagram_CIE1960UCS` - :func:`colour.plotting.\ plot_RGB_colourspaces_in...
94d90bb541221f2bd4b82a7c2fe6c036e60ef410
faf7ed9d56d408a261a69fcc9eb3b5f9c6e38873
/alerta/database/backends/mongodb/base.py
2a4c71408e53a806bed4989c3667dcd758b13753
[ "Apache-2.0" ]
permissive
alerta/alerta
53eaf5e491da46a8faae37824eebd02e92b25dac
5b572c3aa9b086f02e366e3f8a2173174b0c5a87
refs/heads/master
2023-08-19T19:21:55.272638
2023-06-30T08:38:25
2023-06-30T08:38:25
3,877,327
1,468
282
Apache-2.0
2023-09-04T17:32:20
2012-03-30T14:19:34
Python
UTF-8
Python
false
false
71,239
py
base.py
from collections import defaultdict from datetime import datetime, timedelta from flask import current_app from pymongo import ASCENDING, TEXT, MongoClient, ReturnDocument from pymongo.errors import ConnectionFailure from alerta.app import alarm_model from alerta.database.base import Database from alerta.exceptions i...