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
d3e7302bc67c06a10f6f24fc9e0ad391a3bcd127
158bc330098e3f7db4ef858a58f1f79e78a6da09
/src/tracker_3d_node 2.py
2fb07e3885ea0fc12f7d48558e601bdab138f727
[ "MIT" ]
permissive
StanfordVL/JRMOT_ROS
92e0a147e1e50d19f05fbc004e869411e313303c
ca1e87e51ecfeb14f2b652d613f3b02c592afb38
refs/heads/master
2023-02-21T06:53:13.185285
2022-02-01T17:27:43
2022-02-01T17:27:43
250,890,537
136
40
MIT
2023-02-15T21:43:03
2020-03-28T20:48:13
Python
UTF-8
Python
false
false
7,568
py
tracker_3d_node 2.py
#!/home/sibot/anaconda2/bin/python """ yolo_bbox_to_sort.py Subscribe to the Yolo 2 bboxes, and publish the detections with a 2d appearance feature used for reidentification """ import time import rospy import ros_numpy import sys import numpy as np import torch import os import message_filters from featurepointnet...
d49c804a6f49922efac34dee13e2423547be1bde
cf8182ecc88888719cfaff79751834500800151a
/examples/undocumented/python/graphical/so_multiclass_BMRM.py
22931e1743b8c71d8de5955287535b6c0ec4db66
[ "BSD-3-Clause", "DOC", "GPL-3.0-only" ]
permissive
shogun-toolbox/shogun
17beb82a04fbf1179d300c4fcd16ee68850ad994
9b8d856971af5a295dd6ad70623ae45647a6334c
refs/heads/develop
2023-03-11T04:46:36.167073
2020-12-08T16:56:38
2020-12-08T16:56:38
1,555,094
2,938
1,246
BSD-3-Clause
2022-08-12T11:12:34
2011-04-01T10:44:32
C++
UTF-8
Python
false
false
2,678
py
so_multiclass_BMRM.py
#!/usr/bin/env python import numpy as np import matplotlib.pyplot as plt import shogun as sg def fill_data(cnt, minv, maxv): x1 = np.linspace(minv, maxv, cnt) a, b = np.meshgrid(x1, x1) X = np.array((np.ravel(a), np.ravel(b))) y = np.zeros((1, cnt*cnt)) tmp = cnt*cnt; y[0, tmp/3:(tmp/3)*2]=1 y[0, tmp/3*2:(tmp...
a6370784ae90329aac7852f8b58241ca092b49ee
63cb78527bcb90f984788587a29f8f115e94ab64
/tests/dashbio_demos/dash-igv/app.py
3fc4db08d161f332f5557856f9e65372ee0d85b7
[ "MIT" ]
permissive
plotly/dash-bio
2b3468626c7f021c083c8b9170e61862d5dc151d
8a97db7811cc586d7e0bf1d33c17b898052b2e8f
refs/heads/master
2023-09-03T13:30:45.743959
2023-08-16T15:26:27
2023-08-16T15:26:27
141,365,566
505
228
MIT
2023-08-23T01:28:46
2018-07-18T01:40:23
Python
UTF-8
Python
false
false
6,363
py
app.py
import dash_html_components as html import dash_core_components as dcc from dash.dependencies import Input, Output import dash_bio from layout_helper import run_standalone_app text_style = { 'color': "#506784", 'font-family': 'Open Sans' } _COMPONENT_ID = 'igv-chart' HOSTED_GENOME_DICT = [ {'value': 'h...
6007cd0c845eb96df5770ea1a93994a5cd833e75
a3fea5ac50d2bc426d90451c2f225f5b488c40c7
/tests/descriptor/test_structures.py
b33e6bfa7484d48f91ba76ae9f4863eb5e5c7c27
[ "BSD-3-Clause" ]
permissive
yoshida-lab/XenonPy
b58f5548cb89ae4ef52892bbe7dd886a52483d49
a1e733e4451706fc751699be884b1e1d318b3d56
refs/heads/master
2023-05-28T18:47:41.579346
2023-05-21T15:53:00
2023-05-21T15:53:00
117,819,602
122
62
BSD-3-Clause
2023-05-18T07:49:15
2018-01-17T10:13:29
Jupyter Notebook
UTF-8
Python
false
false
1,185
py
test_structures.py
# Copyright (c) 2021. yoshida-lab. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from pathlib import Path import pandas as pd import pytest from pymatgen.core import Structure as pmg_S from xenonpy.descriptor import RadialDistributionFun...
bb3291cecc8724566e567e30643299f9546c455b
302ce5ab1045ee93845608c96580c63d54d730af
/src/spikeinterface/postprocessing/spike_amplitudes.py
62a4e2c32086c17e88c420a02b017a8bfb162a98
[ "MIT" ]
permissive
SpikeInterface/spikeinterface
f900b62720860b2881d2e6b5fa4441e0e560f625
ee2237b3f5ce2347b2ec9df90e97b0ee6c738dcf
refs/heads/main
2023-09-02T11:27:54.687021
2023-09-01T13:48:29
2023-09-01T13:48:29
196,581,117
295
133
MIT
2023-09-14T19:12:16
2019-07-12T13:07:46
Python
UTF-8
Python
false
false
9,891
py
spike_amplitudes.py
import numpy as np import shutil from spikeinterface.core.job_tools import ChunkRecordingExecutor, _shared_job_kwargs_doc, ensure_n_jobs, fix_job_kwargs from spikeinterface.core.template_tools import get_template_extremum_channel, get_template_extremum_channel_peak_shift from spikeinterface.core.waveform_extractor i...
b9c26d3e13bd09409698a2ac7242462064919aff
9907672fcd81ab73ac63b2a83422a82bf31eadde
/spoj/tyama_spojBEANONE.py
0dc06651b3d19d8c53da04ec961d0624517d1335
[ "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
170
py
tyama_spojBEANONE.py
#!/usr/bin/python from functools import reduce import sys if sys.version_info[0]>=3: raw_input=input n=int(raw_input())+3 print(reduce(lambda x,y:x*y,range(1,n+1))-n*n+1)
2263765ad708e8b0311ce1afd7f6a15e80391dfb
467be8fc9c975638fcb7a64d098e1526fd1c96f0
/tests/test_bad_pycrypto_use.py
42644af2fceec8dfdc1d53e10d4bf423fcba72de
[ "BSD-3-Clause" ]
permissive
dlint-py/dlint
ed8d2ca0446914fceded654a2b810b7f8ad0d9d3
307b301cd9e280dcd7a7f9d5edfda3d58e4855f5
refs/heads/master
2023-04-13T08:54:52.987469
2023-04-10T19:27:01
2023-04-10T19:27:15
232,599,661
154
16
BSD-3-Clause
2023-03-09T21:21:19
2020-01-08T15:53:36
Python
UTF-8
Python
false
false
1,228
py
test_bad_pycrypto_use.py
#!/usr/bin/env python import unittest import dlint class TestBadPycryptoUse(dlint.test.base.BaseTest): def test_bad_pycrypto_usage(self): python_node = self.get_ast_node( """ import Crypto """ ) linter = dlint.linters.BadPycryptoUseLinter() l...
7a2e067e577474bf7a9005f3709e99f9a556db55
a6c05f5bea011ddce375c4a31e52e04bcb2ee053
/dataprep/tests/eda/test_plot_diff.py
3ad059faa6d695cc8cbb55f6d83fe9778c0380d0
[ "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
2,583
py
test_plot_diff.py
""" module for testing plot_diff([df1, df2, ..., dfn]) function. """ import logging import dask.dataframe as dd import numpy as np import pandas as pd import pytest from ...eda import plot_diff from ...datasets import load_dataset from ...eda.dtypes import Nominal from ...eda.utils import to_dask LOGGER = loggin...
a3ae60683bf94a97a238d7a7c2f7af9ebbd6ad55
50dd46b8ece33f3cdd174284b15d1d51f89669d4
/third_party/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/hashlib.py
a3809485b1e7a62b598cad61eff06f4f22f2759c
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "Python-2.0", "GPL-1.0-or-later", "BSD-2-Clause", "OpenSSL" ]
permissive
google/google-ctf
f99da1ee07729bbccb869fff1cbaed6a80e43bcc
df02323eaf945d15e124801c74abaadca2749dc7
refs/heads/master
2023-08-31T14:30:27.548081
2023-08-29T13:04:20
2023-08-29T13:04:20
131,317,137
4,136
607
Apache-2.0
2023-08-30T22:17:02
2018-04-27T15:56:03
Go
UTF-8
Python
false
false
5,159
py
hashlib.py
# $Id$ # # Copyright (C) 2005 Gregory P. Smith (greg@krypto.org) # Licensed to PSF under a Contributor Agreement. # __doc__ = """hashlib module - A common interface to many hash functions. new(name, string='') - returns a new hash object implementing the given hash function; initia...
0a84253fe2fe30969a1a333568c25f724fd520ce
444a9480bce2035565332d4d4654244c0b5cd47b
/research/nlp/luke/src/reading_comprehension/feature.py
88fbffc4190f7e49748ab361dc3cc94478886d02
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
16,292
py
feature.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...
5db6cbd6e654b294f634fbd9c7bff104c052a2b9
36437b397a855f3986325f1bfe41d7ced00b703a
/tests/handling/daemons/conftest.py
623d0d43c1a5bff69359d6da403a8737a8f6f56b
[ "MIT" ]
permissive
nolar/kopf
090cd21550e3a86e512a4c9150dfcf5f59ac14e4
538df59b88d1aab7b985d703483497f73c6c4783
refs/heads/main
2023-08-29T20:39:07.128912
2023-08-24T15:47:40
2023-08-24T15:47:40
288,234,242
1,627
154
MIT
2023-09-14T12:31:33
2020-08-17T16:45:35
Python
UTF-8
Python
false
false
3,893
py
conftest.py
import asyncio import contextlib import time import freezegun import pytest from mock import MagicMock, patch import kopf from kopf._cogs.aiokits.aiotoggles import ToggleSet from kopf._cogs.structs.bodies import RawBody from kopf._cogs.structs.ephemera import Memo from kopf._core.engines.daemons import daemon_killer ...
e15418b7e1c1ee7b6b1347098c3b06e2dc69f66d
85cae8f37f1e9ff7c1bf294002e841ea674834f0
/app/ui/colours.py
2ea8674bc4abf1cd60f7421910295e03138c4b7c
[ "MIT" ]
permissive
tobykurien/rpi_lcars
1e4bc7bfb3dadacabee71fe4b5446152ca1acacb
656dbff619ebb09a426ee264f024e6b3fc2cf487
refs/heads/master
2023-07-10T05:57:34.118772
2021-07-13T15:52:07
2021-07-13T15:52:07
50,026,729
675
187
MIT
2021-10-19T06:40:22
2016-01-20T11:48:50
Python
UTF-8
Python
false
false
243
py
colours.py
# LCARS colour scheme BLACK = 0, 0, 0 WHITE = 255, 255, 255 ORANGE = 255, 153, 0 PURPLE = 204, 153, 204 GREY_BLUE = 153, 153, 204 RED_BROWN = 204, 102, 102 BEIGE = 255, 204, 153 BLUE = 153, 153, 255 PEACH = 255, 153, 102 PINK = 204, 102, 153
f4e6d8040e3993153f7f46aa45db0bc7636a90bb
69f9287a28472cf64af423bfd6f6bb4b097727b8
/emolga/basic/activations.py
ec64ccaffae79c5363cf910abc09473d57f17376
[ "MIT" ]
permissive
memray/seq2seq-keyphrase
3e0911a12c2cee5aa6c5283886b2317446f72052
e8660727a4f109c05ce52427d2ff756d19fc0f25
refs/heads/master
2023-02-09T14:25:08.971419
2023-01-31T03:23:21
2023-01-31T03:23:21
77,419,203
351
120
null
null
null
null
UTF-8
Python
false
false
1,456
py
activations.py
import theano.tensor as T def softmax(x): return T.nnet.softmax(x.reshape((-1, x.shape[-1]))).reshape(x.shape) def vector_softmax(x): return T.nnet.softmax(x.reshape((1, x.shape[0])))[0] def time_distributed_softmax(x): import warnings warnings.warn("time_distributed_softmax is deprecated. Just us...
fc8eb0559f3f71c99d9c4473ab83142a86c30781
eda6e7b8f399dedcdb960f4b48a2134b978f8d83
/tests/zzz_deprecated_unmaintained/allocmodel/topics/HDP-point-estimation/HDPSB.py
6856c663c06ba31744011c43759a232555727aeb
[ "BSD-3-Clause" ]
permissive
bnpy/bnpy
8ed61bc4fe2f0ed99e0254c11a21c27c0cee59b2
ffc2242427451aa6a61dcac1473c47577a5ade6f
refs/heads/master
2023-08-16T06:49:58.716279
2022-10-15T15:59:12
2022-10-15T15:59:12
75,731,181
197
54
NOASSERTION
2023-07-21T20:59:10
2016-12-06T12:56:07
Python
UTF-8
Python
false
false
15,988
py
HDPSB.py
''' HDPSB.py Bayesian nonparametric admixture model via the Hierarchical Dirichlet Process. Uses a direct construction that maintains K active components. Attributes ------- K : # of components gamma : scalar positive real, global concentration alpha : scalar positive real, document-level concentration param Local M...
20dd035e884048b09c8120627bba050d06e27212
952dc66c61966f099756cdb6c2d13b40352f63cc
/zilencer/migrations/0022_remotezulipserver_create_audit_log_backfill.py
8570796cf7872e95a9be5549a81399f2db0544ad
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
zulip/zulip
5ae6aad35fd9f72996c0a2a9cdd674400966ebf6
965a25d91b6ee2db54038f5df855215fa25146b0
refs/heads/main
2023-08-28T23:43:00.971110
2023-08-28T16:47:09
2023-08-28T19:33:02
43,160,685
20,239
8,996
Apache-2.0
2023-09-14T20:57:47
2015-09-25T16:37:25
Python
UTF-8
Python
false
false
1,632
py
0022_remotezulipserver_create_audit_log_backfill.py
from django.db import migrations from django.db.backends.base.schema import BaseDatabaseSchemaEditor from django.db.migrations.state import StateApps def backfill_remote_zulip_server_creation_log_events( apps: StateApps, schema_editor: BaseDatabaseSchemaEditor ) -> None: RemoteZulipServer = apps.get_model("zi...
ff98a67a1e54d68ae451700a21208b46695141ec
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/auth/tests/test_auth/test_token.py
0f88c7037cfa98caff9da3f80fac6130f926e672
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
18,670
py
test_token.py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ---------------------------------------------...
b01a39529f99c9978f2871472fc3ca5dd5cfdcf5
28bd76bd768656eee11c5e79e284b75e4af10559
/peeldb/migrations/0053_auto_20220412_0906.py
95f88bed2b07016316e7c81fad2eb19373f97a9a
[ "MIT" ]
permissive
MicroPyramid/opensource-job-portal
debfa0b15f8cd0ab82153a143841c3af0801f46a
e21aa8fa62df96f41ddbea913f386ee7c6780ed0
refs/heads/master
2023-07-29T09:38:00.241309
2022-11-29T02:17:04
2022-11-29T02:17:04
227,341,330
360
208
MIT
2023-07-25T15:19:17
2019-12-11T10:42:38
HTML
UTF-8
Python
false
false
535
py
0053_auto_20220412_0906.py
# Generated by Django 3.2.11 on 2022-04-12 09:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("peeldb", "0052_rename_job_id_usermessage_job"), ] operations = [ migrations.AlterField( model_name="city", name="me...
6dac6952af9dd509c700a420dcb32df22cdf5eab
3b63782b0c499deeb9e52b1cfe10e0de1f0c14a9
/service/__init__.py
eb78f055c926f4faa292a87b77bdcff4072ee53c
[]
no_license
laobubu/ssland
db119efec0f1c635ae994e4308123f1108aa5f4f
80aff970c608c51f6fca1f447507f4a03fd9bbe3
refs/heads/universal
2021-01-21T15:00:04.921472
2018-04-08T15:29:15
2018-04-08T15:29:15
59,768,159
113
27
null
2018-04-08T15:29:16
2016-05-26T17:00:52
Python
UTF-8
Python
false
false
174
py
__init__.py
#!/usr/bin/python # -*- coding: utf-8 -*- def getService(name): import importlib ServiceModule = importlib.import_module("service." + name) return ServiceModule
245e28d06aef31bc5cde6faf39c4d6f2f8540a34
399369f692f5776f0ded367e18fd5762bea2d997
/openmmtools/multistate/multistateanalyzer.py
ae7fd793d5a5254fda6df0843ed8b986a98f30ee
[ "MIT" ]
permissive
choderalab/openmmtools
5b78fb7d187e8b9f03f1dd439eecd0ddaa467c65
6cef59b67327d1a16685304368e87e99a37a441c
refs/heads/main
2023-08-30T20:20:31.429532
2023-08-22T21:46:15
2023-08-22T21:46:15
25,416,166
192
74
MIT
2023-08-25T23:59:11
2014-10-19T02:52:35
Python
UTF-8
Python
false
false
116,449
py
multistateanalyzer.py
#!/usr/local/bin/env python # ============================================================================== # MODULE DOCSTRING # ============================================================================== """ MultiStateAnalyzers =================== Analysis tools and module for MultiStateSampler simulations. Pro...
a6e72407b04f6759673354408022422368988479
aae3c6fccb2296e4da5bb10310f5dd6baba8b7de
/activitysim/core/random.py
dc34e27291d240ec07cc9dacdc3b2e62b64cfeab
[ "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
28,168
py
random.py
# ActivitySim # See full license in LICENSE.txt. import hashlib import logging from builtins import object, range import numpy as np import pandas as pd from activitysim.core.util import reindex from .tracing import print_elapsed_time logger = logging.getLogger(__name__) # one more than 0xFFFFFFFF so we can wrap ...
1d54dfcfaf440d84acefcc6dd917f7041825ccfe
fd71cb00faadf42649d732d6f434dc097a77efb9
/examples/MACD/smoke_macd.py
839febde941b5454a5ca90b231855ca494e70064
[ "Apache-2.0" ]
permissive
alpacahq/pylivetrader
bdde914cb503ea514cb85968eb17a6d298974297
d32334dd496d29d50bab9f934bab3778e50bd653
refs/heads/master
2023-08-06T12:56:43.089785
2022-04-11T19:42:20
2022-04-11T19:42:20
143,319,472
686
231
Apache-2.0
2022-10-04T15:17:22
2018-08-02T16:26:17
Python
UTF-8
Python
false
false
285
py
smoke_macd.py
import examples.MACD.macd_example as algo from pylivetrader.testing.smoke import harness def test_algo(): harness.run_smoke(algo) if __name__ == '__main__': import sys from logbook import StreamHandler StreamHandler(sys.stdout).push_application() test_algo()
a1c20eaf8f25bedeb517b7ee5da010430d5b9257
27b86f422246a78704e0e84983b2630533a47db6
/tests/test_02_dxf_graphics/test_201_point.py
43b8cc5bd1576b652c9a94a1ead990ad056db29a
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
4,071
py
test_201_point.py
# Copyright (c) 2019-2020 Manfred Moitzi # License: MIT License import pytest import math from ezdxf.entities.point import Point from ezdxf.lldxf.const import DXF12, DXF2000 from ezdxf.lldxf.tagwriter import TagCollector, basic_tags_from_text from ezdxf.math import Matrix44 from ezdxf.explode import explode_entity TE...
69c8448bd52742ef819749b869f94da9ff58340f
578db86c51d44ebddd0dc7b1738985b3dc69eb74
/corehq/ex-submodules/pillow_retry/models.py
b687c8dcd361401cc844143eda4a453964d9789f
[ "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
5,865
py
models.py
import json import traceback from datetime import datetime, timedelta from dateutil.parser import parse from django.conf import settings import math from django.db import models from django.db.models.aggregates import Count from jsonfield.fields import JSONField from pillow_retry import const from pillowtop.feed.couch...
aacfa3598f163bb4bf3768336baad5dfcb6237ee
13800b7827598e76428a335559b7bf11867ec2f0
/python/ccxt/test/sync/test_fetch_transaction_fees.py
6127211e847fe08b709c132ef08a375672552f13
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
760
py
test_fetch_transaction_fees.py
import os import sys root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) sys.path.append(root) # ---------------------------------------------------------------------------- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/...
3ed1b3b2c26c7323326cb4952513ff6308eeb7ba
b4faab9b904d155ce6e781a675f972dcb810c008
/nunif/utils/perlin2d.py
9e1365720246667fca2d446fc445de877667a75f
[ "MIT", "CC-BY-NC-4.0", "Apache-2.0" ]
permissive
nagadomi/nunif
0c595d3e61f3c89082ce7481cfba139b85ac863d
6d4b92da09801572e984b05f6733d460b60250aa
refs/heads/master
2023-08-31T21:29:56.460275
2023-08-21T18:16:01
2023-08-21T18:16:01
202,088,108
486
59
MIT
2023-08-04T05:51:17
2019-08-13T07:23:32
Python
UTF-8
Python
false
false
1,811
py
perlin2d.py
# Original work is perlin-numpy: https://github.com/pvigier/perlin-numpy) # Pierre Vigier / MIT License # Vadim Kantorov ported to pytorch: https://gist.github.com/vadimkantorov/ac1b097753f217c5c11bc2ff396e0a57 # some minor changes by nagdaomi import torch import math def generate_perlin_noise_2d(shape, res, fade=la...
57e8c1c4af3452b2afc996905a89b9d4b9c603c7
2212a32833776a5d5d2164d8efd11bd18bd3f768
/tf_agents/train/utils/train_utils.py
670e079042a6e94250b57d5470a858bb8fe8d170
[ "Apache-2.0" ]
permissive
tensorflow/agents
f39805fb98ef9af712dcaff3ba49e1ac6d42804b
eca1093d3a047e538f17f6ab92ab4d8144284f23
refs/heads/master
2023-08-14T04:56:30.774797
2023-08-02T17:43:44
2023-08-02T17:44:09
157,936,206
2,755
848
Apache-2.0
2023-07-26T02:35:32
2018-11-17T00:29:12
Python
UTF-8
Python
false
false
8,651
py
train_utils.py
# coding=utf-8 # Copyright 2020 The TF-Agents 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
5bb2156ca157e4885b6c4718e30830356ddc7c3a
d1f15554df2d5c0f74ddbcba6e870359841f682b
/wagtail/contrib/routable_page/apps.py
321065f7c1d9e167771966ac240658263ee82fd8
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license" ]
permissive
wagtail/wagtail
bd405f89b86e0c625fef0685fd6bfba41cf5cbfc
06a7bc6124bf62675c09fbe0a4ed9bbac183e025
refs/heads/main
2023-09-04T06:22:51.601208
2023-09-01T15:22:00
2023-09-01T15:22:00
16,479,108
12,974
3,580
BSD-3-Clause
2023-09-14T10:45:04
2014-02-03T12:41:59
Python
UTF-8
Python
false
false
260
py
apps.py
from django.apps import AppConfig from django.utils.translation import gettext_lazy as _ class WagtailRoutablePageAppConfig(AppConfig): name = "wagtail.contrib.routable_page" label = "wagtailroutablepage" verbose_name = _("Wagtail routablepage")
16d1c6bd5d0ac8db2907b10d6f9694211eca880d
ee6c94d093dc38e9852f5d9f27fa3fa062333a67
/main/_base_/filters/savizky_golay.py
40302b004460699dfe8522c59c9a3e8cf1c35d83
[ "MIT" ]
permissive
IDEA-Research/OSX
5946f9b6d8cb4f53d16b937b1d30e0dac8975983
13df1cbf9cc5ae72deb46ce7ab5832e7bcb8bd9d
refs/heads/main
2023-08-09T04:49:49.195387
2023-07-30T14:34:16
2023-07-30T14:34:16
620,198,494
371
36
MIT
2023-04-27T14:02:07
2023-03-28T08:08:43
Python
UTF-8
Python
false
false
89
py
savizky_golay.py
filter_cfg = dict( type='SavizkyGolayFilter', window_size=11, polyorder=2, )
ef3136b94afb2bb17719b42451f5cd00ab7efb9e
9803232b04daa00eb4038be338b833907fd1625f
/library/utils/fgd_parser/__init__.py
b4c005f2d13c5d5f39d7b151a7f6df97499668a4
[ "MIT" ]
permissive
REDxEYE/SourceIO
a0ff3cff37504afdb906e4ee20c1077a8daf2912
85661fe057cef1ad2a779a9d48e810ea214f4f07
refs/heads/master
2023-08-08T18:35:28.771447
2023-08-07T22:26:59
2023-08-07T22:26:59
170,197,673
409
53
MIT
2023-08-23T18:40:38
2019-02-11T20:33:55
Python
UTF-8
Python
false
false
34
py
__init__.py
from .fgd_parser import FGDParser
2177c971ceb6b699c8c1acf57e04135d81338014
2bbc2628e5b4aaf1e67e04b5485ffc621e088a4d
/qa/common/inferentia_perf_analyzer_input_data_json/simple_model.py
db7ca95848c0e8467f60f571688869344e401964
[ "BSD-3-Clause" ]
permissive
triton-inference-server/server
9dbce65aba73ef36a0d2399ed9d63eccb9f84e52
0f478f32fe74f591400c3a073e253f7dae8a383e
refs/heads/main
2023-08-16T16:46:50.059935
2023-08-15T22:58:44
2023-08-15T22:58:44
151,636,194
4,711
1,085
BSD-3-Clause
2023-09-14T11:14:08
2018-10-04T21:10:30
Python
UTF-8
Python
false
false
5,032
py
simple_model.py
#!/usr/bin/env python # Copyright 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyri...
0223c9c3296dea9e0548ad7e3385b57ee4d7f67d
e73547787354afd9b717ea57fe8dd0695d161821
/tools/splat/util/palettes.py
8ee1e9a014238a1036625f8e3ef93e74e71fac57
[ "MIT" ]
permissive
pmret/papermario
8b514b19653cef8d6145e47499b3636b8c474a37
9774b26d93f1045dd2a67e502b6efc9599fb6c31
refs/heads/main
2023-08-31T07:09:48.951514
2023-08-21T18:07:08
2023-08-21T18:07:08
287,151,133
904
139
null
2023-09-14T02:44:23
2020-08-13T01:22:57
C
UTF-8
Python
false
false
1,155
py
palettes.py
from typing import Dict from segtypes.common.group import CommonSegGroup from segtypes.n64.ci import N64SegCi from segtypes.n64.palette import N64SegPalette as Palette # Resolve Raster#palette and Palette#raster links def initialize(all_segments): def process(segments): raster_map: Dict[str, N64SegCi] = ...
f8de77a7e58e9ba02ae8b71884e66c3e31d4adf9
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CondCore/DBOutputService/test/python/testLumiBasedUpdateAnalyzer_cfg.py
712e988c657e418bba7a0d1b7a574d58dc10137b
[ "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
1,747
py
testLumiBasedUpdateAnalyzer_cfg.py
import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.source = cms.Source("EmptySource", firstRun = cms.untracked.uint32( 260000 ), firstLuminosityBlock = cms.untracked.uint32( 1 ), numberEventsInRun = cms.unt...
3153a9677295fda871162c8b02a8e15f36793268
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/Configuration/Eras/python/Era_Phase2C11I13T25M9_cff.py
d2a615082c43851cb305f4af0330a60e310f4b90
[ "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
331
py
Era_Phase2C11I13T25M9_cff.py
import FWCore.ParameterSet.Config as cms from Configuration.Eras.Era_Phase2C11I13_cff import Phase2C11I13 from Configuration.Eras.Modifier_phase2_3DPixels_cff import phase2_3DPixels from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0 Phase2C11I13T25M9 = cms.ModifierChain(Phase2C11I13, phase2_3DPixels, p...
3d4e8a2fdd2f7025d4aab1579c12b20c8b63e7dc
2aa15786d231136f4487ac904ada5719a0605f3d
/testData/typeinspection/fieldUnionInvalid.py
7e957171bb96886b18d2bb588606cf0ba096c984
[ "Apache-2.0", "MIT" ]
permissive
koxudaxi/pydantic-pycharm-plugin
7b2f248e45aceccb58e12e67abb34c89e32a53a0
61455a7d63c46d567e739ae05f15475b84142a16
refs/heads/main
2023-08-23T07:23:40.067425
2023-08-07T16:25:52
2023-08-07T16:25:52
197,027,423
362
13
MIT
2023-09-14T16:39:41
2019-07-15T15:41:01
Kotlin
UTF-8
Python
false
false
301
py
fieldUnionInvalid.py
from typing import Union from pydantic import BaseModel class A(BaseModel): a: Union[float, int] A(<warning descr="Expected type 'Union[float, int]', got 'bytes' instead">a=bytes(123)</warning>) A(<warning descr="Expected type 'Union[float, int]', got 'str' instead">a=str('123')</warning>)
0c34e4062af5ae848088454a72768b139267149d
04d9a118a63675c55abe63ccbd8498c6b02f9f80
/Cogs/VoteKick.py
9103391a6d7cb578a92a0ed8c9f4a9f0447dc82b
[ "MIT" ]
permissive
corpnewt/CorpBot.py
06bd5ddc47adeecdae3ead6138378f9f88fe2b39
8c7d8fa412bd9728033bf0c5e0916c6ee9e86423
refs/heads/rewrite
2023-08-19T05:20:07.877579
2023-08-16T23:03:15
2023-08-16T23:03:15
68,509,454
393
201
MIT
2022-09-14T17:21:43
2016-09-18T08:59:35
Python
UTF-8
Python
false
false
22,970
py
VoteKick.py
import asyncio import discord import time import parsedatetime from datetime import datetime from discord.ext import commands from Cogs import DisplayName from Cogs import ReadableTime from Cogs import Nullify from Cogs import Mute def setup(bot): # Add the bot and deps settings = bot.get_co...
f44107106133bb0e76f4452d73e00b8101abc66e
1aa4a01014ff5408c8979d2ee91435515a376bcb
/src/core/epanet/calibration.py
958148da6f948e285a1d732f486ada9bc1253780
[]
no_license
USEPA/SWMM-EPANET_User_Interface
49b41b27bfcf7a934203935ccac3cee2ed7c538c
d49a589fc923c716c9ff607228282073126ce6cc
refs/heads/dev-ui-py3qt5
2022-10-06T14:55:55.322050
2022-09-26T19:25:09
2022-09-26T19:25:09
48,242,880
121
77
null
2020-09-15T15:18:32
2015-12-18T15:41:52
Python
UTF-8
Python
false
false
15,513
py
calibration.py
from core.project_base import ProjectBase, Section, SectionAsList #import hydraulics.node #import hydraulics.link from enum import Enum import sys import csv import pandas as pd import os.path #for banker's rounding import numpy as np class ECalibrationType(Enum): """Type of Calibration""" DEMAND = 1 HEAD ...
176d17eb0df3ece42502ae396e954c6b80f7a0c9
3d62372eb5e17bf135616de4f196c14a384adf36
/Tests/test_SearchIO_hmmer3_tab_index.py
a4132dd99d02fc1ebbfc4e3927e1132dea0e227d
[ "BSD-3-Clause", "LicenseRef-scancode-biopython" ]
permissive
biopython/biopython
817c9a995a49528937bebefe99f3f5b9054f8947
d416809344f1e345fbabbdaca4dd6dcf441e53bd
refs/heads/master
2023-08-28T05:26:46.916988
2023-08-23T14:11:24
2023-08-23T14:11:24
151,541
3,669
1,939
NOASSERTION
2023-09-12T10:19:46
2009-03-15T21:09:53
Python
UTF-8
Python
false
false
4,505
py
test_SearchIO_hmmer3_tab_index.py
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Tests for SearchIO hmmer3-tab indexing.""" import os import unittest from search_test...
95e1c037ea8bd7e755ea541218aa77434d124530
3479ae8920fcb66579bb47ebaf37d00ca3395d82
/example/storage_log.py
9f695d21ecfd6e4513580a3fee371829129c674c
[ "MIT" ]
permissive
blinker-iot/blinker-py
2821cc47882aa7517023a6c24cf2d3a197045282
0f7848dbe118ecd00eb1e67a354b4a8a02a57fab
refs/heads/dev_3.0
2022-07-08T16:55:29.158684
2022-04-28T13:37:31
2022-04-28T13:37:31
127,432,055
1,956
32
MIT
2022-03-12T14:11:51
2018-03-30T13:36:17
Python
UTF-8
Python
false
false
329
py
storage_log.py
# -*- coding: utf-8 -*- """ 日志存储示例 """ __author__ = 'stao' from blinker import Device async def ready_func(): while True: log = "This is log test" await device.saveLogData(log) device = Device("authKey", protocol="mqtts", ready_func=ready_func) if __name__ == '__main__': device.run()
475cd0746c2b556494d005b808be32cb011a2984
5e601244fbf32ee5190fb5210a0cd334473a0abe
/projects/LinuxSystemOps/SoftwareManagement/docker/zabbix_monitor_docker.py
52a670f09735b213413c5b2f7489d8adcaac48e8
[]
no_license
DingGuodong/LinuxBashShellScriptForOps
69ebe45cf3f92b741a078b9b78c2600328ce9b9e
b2ca1e4c870626dd078d447e2d1479b08602bdf6
refs/heads/master
2023-08-21T20:53:40.617397
2023-07-17T01:41:05
2023-07-17T01:41:05
57,015,255
453
343
null
2023-02-16T01:29:23
2016-04-25T05:55:28
Python
UTF-8
Python
false
false
4,581
py
zabbix_monitor_docker.py
#!/usr/bin/python # encoding: utf-8 # -*- coding: utf8 -*- """ Created by PyCharm. File: LinuxBashShellScriptForOps:zabbix_monitor_docker.py User: Guodong Create Date: 2017/1/5 Create Time: 15:59 """ # fork and modify something from http://dl528888.blog.51cto.com/2382721/16608...
508445cf840b20a975be7ab946942d6c7ce62abb
9e0c8c8d8bafa73d133e41f201badc756c92978a
/tests/runners/lib/utils.py
cc67b43fba6b340061b648f801eb89f6f29fdc0d
[ "BSD-2-Clause", "MIT", "CC0-1.0", "BSD-3-Clause", "LicenseRef-scancode-public-domain", "BSD-2-Clause-Views" ]
permissive
vvaltchev/tilck
ccf8d9933be1269b85388e5b21645b831ecf5412
e9c27da4dd15f5f8a927b11f31484aec3f1429f0
refs/heads/master
2023-08-16T00:07:42.593483
2023-07-04T21:00:31
2023-07-19T23:25:42
53,845,595
2,142
115
BSD-2-Clause
2023-09-03T05:36:46
2016-03-14T10:02:41
C
UTF-8
Python
false
false
3,005
py
utils.py
# SPDX-License-Identifier: BSD-2-Clause import re import os import sys import fcntl import base64 import zlib import subprocess from enum import Enum from .stdio import msg_print, raw_print, direct_print # Constants TEST_TYPES = ['selftest', 'shellcmd', 'interactive'] TEST_TYPES_PRETTY = ['Self tests', 'Shell cmd te...
49610b56f692e74b9b1be58a16c9a013169f31a8
380a47268c5975473a2e7c38c747bc3bdbd981b1
/benchmark/third_party/DeepSpeed/deepspeed/profiling/config.py
0671211132c626e2a0377218dd5fe75983acd888
[ "MIT", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
FMInference/FlexGen
07aa9b1918c19b02077e13ad07e76840843810dd
d34f7b4b43ed87a374f394b0535ed685af66197b
refs/heads/main
2023-07-24T02:29:51.179817
2023-07-21T22:38:31
2023-07-21T22:38:31
602,270,517
6,821
411
Apache-2.0
2023-07-07T22:59:24
2023-02-15T21:18:53
Python
UTF-8
Python
false
false
2,028
py
config.py
""" Copyright (c) Microsoft Corporation Licensed under the MIT license. """ from deepspeed.runtime.config_utils import get_scalar_param, DeepSpeedConfigObject from deepspeed.profiling.constants import * class DeepSpeedFlopsProfilerConfig(DeepSpeedConfigObject): def __init__(self, param_dict): super(DeepS...
12f6fa59b3629c627673e7e4078a8547a6b87181
113c07b9e4b1824ba96480e0ddb1789451941ec0
/anima/dcc/external.py
ddbfedad08ffb4a2aae3981a9538dfeed346fc67
[ "MIT" ]
permissive
eoyilmaz/anima
72834358e7ad2c33780a963196413861edf7a557
7b4cf60cb17f00435ecc3e03d573a9e2d0b44fe0
refs/heads/master
2023-07-20T05:56:02.982296
2023-07-06T09:13:08
2023-07-06T09:13:08
16,981,630
113
27
MIT
2021-09-02T21:25:57
2014-02-19T11:02:29
Python
UTF-8
Python
false
false
10,666
py
external.py
# -*- coding: utf-8 -*- import os from anima import logger from anima.dcc.base import DCCBase external_dccs = { "MudBox": { "name": "MudBox", "icon": "mudbox.png", "executable": { "linux": "mudbox", "windows": "mudbox.exe", }, "extensions": [".mud"...
7f0217ecc747ecbc26166dc8883118ca0141b79d
3bc139860403ebd05e278c95fca26e24d5189271
/tests/core/full_node/test_address_manager.py
97134e51b9c4cbc751f12ff7f6e497d7f2b03e44
[ "Apache-2.0" ]
permissive
Chia-Network/chia-blockchain
a09183b7240b159419b45f8373a41a1062f77ef3
d966f3f9e63aed52dbd73544164202a9f11ce3d2
refs/heads/main
2023-08-31T09:37:13.741283
2023-08-30T18:27:22
2023-08-30T18:27:22
197,153,676
12,936
2,474
Apache-2.0
2023-09-14T19:08:51
2019-07-16T08:32:40
Python
UTF-8
Python
false
false
23,835
py
test_address_manager.py
from __future__ import annotations import math import time from pathlib import Path import pytest from chia.server.address_manager import AddressManager, ExtendedPeerInfo from chia.server.address_manager_store import AddressManagerStore from chia.types.peer_info import PeerInfo, TimestampedPeerInfo from chia.util.in...
0ffd7c940dd369a9bc2d7daef08b4e02e72b7c25
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/burger_king.py
eeebbe2e77ff61bd2988713606b948178b9b34ed
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
6,909
py
burger_king.py
import scrapy from locations.dict_parser import DictParser from locations.geo import city_locations, point_locations class BurgerKingSpider(scrapy.Spider): name = "burgerking" item_attributes = {"brand": "Burger King", "brand_wikidata": "Q177054"} download_delay = 2.0 custom_settings = {"ROBOTSTXT_OB...
4baa98690159b14626a6a19852bfe340f0a8b787
73f4f74f678fadee409560b78ffacb7aec38c545
/Tests/test_setcomp.py
9ec659173ddd7b240e1eaf0549fd51801ecf2475
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
IronLanguages/ironpython3
14ec38566d7c27675215042d72e38f6a979011ab
e8ed79bd7f0f33eb2af1a538dd7e98767c86c211
refs/heads/master
2023-09-03T03:36:51.590171
2023-09-02T19:02:51
2023-09-02T19:02:51
17,266,066
2,396
349
Apache-2.0
2023-09-09T01:46:11
2014-02-27T21:50:49
Python
UTF-8
Python
false
false
3,769
py
test_setcomp.py
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. import unittest from iptest import run_test class SetCompTest(unittest.TestCase): def test_set_comp(self)...
f06645292d14e889a7e5d970113f63d39c9f55d2
854b94d7be92582bd191a7cb63143a95e5b5c337
/hyfetch/distros/aperture.py
0ca3bcfcabee3497f40e805fcbfdd723b1a65b99
[ "MIT" ]
permissive
hykilpikonna/hyfetch
673c0c999d0f3f542349824495ad6004f450ebac
98863df16d70b030696f4b94080d114396320f35
refs/heads/master
2023-08-17T10:41:10.289997
2023-08-17T03:37:23
2023-08-17T03:37:23
479,913,941
447
78
MIT
2023-09-14T14:39:18
2022-04-10T04:38:15
Shell
UTF-8
Python
false
false
911
py
aperture.py
# This file is automatically generated. Please do not modify. from . import AsciiArt aperture = AsciiArt(match=r'''"Aperture"*''', color='6 6 7 1', ascii=r""" ${c1} .,-:;//;:=, . :H@@@MM@M#H/.,+%;, ,/X+ +M@@M@MM%=,-%HMMM@X/, -+@MM; $M@@MH+-,;XMMMM@MMMM@+- ;@M@@M- XM@X;. -+XXXXXH...
57bd0f06bf2c497886150d8ecd9c414287d08acf
5396a46275e52bfc972f05097e925742d5bbf2d1
/outside_videos/patterns.py
7eb5912e8b1cd1801515a1a6aa83c59220afc804
[ "MIT" ]
permissive
3b1b/videos
6ab0e4fe0fb07d15b5455f8726131a880437c42c
e841b1410fdda2d3bddb7cfa12ce070a3b66a026
refs/heads/master
2023-08-29T01:37:23.424512
2023-08-16T03:35:03
2023-08-16T03:35:03
325,873,493
4,601
1,868
null
2023-03-30T08:15:37
2020-12-31T21:07:33
Python
UTF-8
Python
false
false
5,525
py
patterns.py
from manim_imports_ext import * class PascalColored(Scene): CONFIG = { "colors": [BLUE_E, BLUE_D, BLUE_B], "dot_radius": 0.16, "n_layers": 2 * 81, "rt_reduction_factor": 0.5, } def construct(self): max_height = 6 rt = 1.0 layers = self.get_dots(sel...
85abcfe9415899429c8896b730475a6f5ab4f07a
860c31e414c4c280b70ec0872042d715a2d56978
/torch_ecg/databases/datasets/cinc2020/cinc2020_cfg.py
26bac176053886dde39371a8a3a46149f533a3f8
[ "MIT" ]
permissive
DeepPSP/torch_ecg
255e49ff436e13044a1f049141f982680e56970e
a40c65f4fefa83ba7d3d184072a4c05627b7e226
refs/heads/master
2023-09-01T06:47:17.153216
2023-08-31T18:00:47
2023-08-31T18:00:47
298,482,237
111
16
MIT
2023-08-21T11:25:07
2020-09-25T06:03:17
Python
UTF-8
Python
false
false
6,262
py
cinc2020_cfg.py
""" configurations for signal preprocess, feature extraction, training, etc. along with some constants "Brady", "LAD", "RAD", "PR", "LQRSV" are treated exceptionally, as special classes """ from copy import deepcopy from typing import List from ....cfg import CFG, DEFAULTS from ....utils import ecg_arrhythmia_knowl...
94bc1f4161a6007b39f08da34ed7363516b0e656
d571d407cfda435fcab8b7ccadb1be812c7047c7
/examples/guild-patch/guild_patch.py
6cc842552d6296a8d2d5145cf04d53b971cb5626
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
guildai/guildai
2d8661a2a6bf0d1ced6334095c8bf5a8e391d8af
149055da49f57eaf4aec418f2e339c8905c1f02f
refs/heads/main
2023-08-25T10:09:58.560059
2023-08-12T20:19:05
2023-08-12T20:19:05
105,057,392
833
86
Apache-2.0
2023-08-07T19:34:27
2017-09-27T18:57:50
Python
UTF-8
Python
false
false
367
py
guild_patch.py
import sys from guild.util import check_guild_version def _patch(): from guild import op from guild import python_util python_util.listen_function(op, "run", _patched_op_run) def _patched_op_run(f0, op, *args, **kw): print("You're running %s" % op.opref.to_opspec()) sys.stdout.flush() if che...
5d21cc1bbeb990acd5546e7b296adddaefd50be3
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/amundsen/databuilder/databuilder/__init__.py
6f1d8f2fb467d5b4ed3db3d3015933d5307eb773
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "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,697
py
__init__.py
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import abc from pyhocon import ConfigFactory, ConfigTree class Scoped(object, metaclass=abc.ABCMeta): _EMPTY_CONFIG = ConfigFactory.from_dict({}) """ An interface for class that works with scoped (nested) config. ...
af69cc02484182f35863a5486cf8c4ea85f39819
7442c958dc2522be2e2adcd1d28acf9527d1b5ef
/reapy/core/audio_accessor.py
0656e1ea4911cc0e1e73788c3b0926d0e0b3c330
[ "MIT" ]
permissive
RomeoDespres/reapy
0227bef82828521b836548f5b2115ee354eabcd7
730627cee6f39fc26d6ebc8a3df0112e5921cd9f
refs/heads/master
2022-02-21T02:37:47.456052
2021-02-11T08:26:33
2021-02-11T08:26:33
168,827,206
104
31
MIT
2022-02-04T19:13:32
2019-02-02T12:00:27
Python
UTF-8
Python
false
false
2,285
py
audio_accessor.py
import reapy import reapy.reascript_api as RPR from reapy.core import ReapyObject class AudioAccessor(ReapyObject): def __init__(self, id): self.id = id @property def _args(self): return self.id, def delete(self): """Delete audio accessor.""" RPR.DestroyAudioAccessor...
57a7c71ab8e3fa88649f69a3d0f34abe9f0811eb
6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110
/api/tests/opentrons/protocol_engine/execution/test_thermocycler_plate_lifter.py
67f8cee04b84fb501eaf332886e2206051285e81
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
Opentrons/opentrons
874321e01149184960eeaeaa31b1d21719a1ceda
026b523c8c9e5d45910c490efb89194d72595be9
refs/heads/edge
2023-09-02T02:51:49.579906
2023-08-31T16:02:45
2023-08-31T16:02:45
38,644,841
326
174
Apache-2.0
2023-09-14T21:47:20
2015-07-06T20:41:01
Python
UTF-8
Python
false
false
4,940
py
test_thermocycler_plate_lifter.py
"""Test thermocycler plate lifter execution side effects.""" from __future__ import annotations import pytest from decoy import Decoy, matchers from opentrons.protocol_engine.types import ( ModuleLocation, ModuleModel, DeckSlotLocation, ) from opentrons.protocol_engine.execution import EquipmentHandler, M...
7cd4dec97c1e8922795c81e56a828a56851d90b0
855b013907d33b7e1bb74f688e5314b0e9bae510
/python-package/test/test_data_conversion.py
b9a3d0dd3e21eed5df5e3e4e7f49db438105d970
[ "Apache-2.0" ]
permissive
aksnzhy/xlearn
5b3f3aa29b31c7080a3e0835f073d34157878c44
4c240aa0aa63c1d105fb9aec583adc2ad2840368
refs/heads/master
2023-09-01T08:44:21.447056
2022-06-05T10:44:18
2022-06-05T10:44:18
93,925,242
3,261
624
Apache-2.0
2023-08-28T05:18:27
2017-06-10T08:09:31
C++
UTF-8
Python
false
false
5,138
py
test_data_conversion.py
# Copyright (c) 2018 by contributors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
e2257dada805b739e46809c2a9538c02629647e1
6c37d1d2437a08e43b13d621d4a8da4da7135b3a
/yt_dlp/extractor/sevenplus.py
6c688d1505ed5a718a53b55bb2d757f458d2aab6
[ "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
4,955
py
sevenplus.py
import json import re from .brightcove import BrightcoveNewBaseIE from ..compat import compat_str from ..networking.exceptions import HTTPError from ..utils import ( ExtractorError, try_get, update_url_query, ) class SevenPlusIE(BrightcoveNewBaseIE): IE_NAME = '7plus' _VALID_URL = r'https?://(?:w...
b9e1d6a5de4b193316968e47488a024c4af9886f
c530897cb72b6943c7226b25824444cad5f3503b
/usaspending_api/recipient/migrations/0024_recipient_profile_index_rename.py
8e963e399f6c0563af1c65612f787b36c00b611f
[ "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
517
py
0024_recipient_profile_index_rename.py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("recipient", "0023_shorter_index_names"), ] operations = [ migrations.RunSQL( sql="ALTER INDEX recipient_profile_recipient_hash_recipient_level_ee7ecd55_uniq RENAME TO rp_recipie...
dc542cc19dbadeff2ff00b840063b92adb996006
2b5ffa18e7198e45fa77674b96dac8d91159fed7
/djangae/contrib/common/__init__.py
0e389e373818ab5008801a6a6280994975c74917
[ "BSD-3-Clause" ]
permissive
potatolondon/djangae
73681d0c8302ac216f74bc00b980de368e8d4280
bef308632790bb6f87e71bb91183f57bad6bd149
refs/heads/master
2023-09-01T15:27:51.995232
2023-08-30T14:40:48
2023-08-30T14:40:48
10,217,788
474
155
BSD-3-Clause
2023-02-08T01:05:31
2013-05-22T10:55:55
Python
UTF-8
Python
false
false
125
py
__init__.py
import threading _thread_locals = threading.local() def get_request(): return getattr(_thread_locals, 'request', None)
40aa642a6c559d9de5a7fb9551186dac9106f9fb
6df06b8581a29e93f8d375211ec6ac2626839592
/tests/unit/common/objects/test_verification.py
03c8d96de8b8fed6e3e1f8c3f18a846921f1ed72
[ "Apache-2.0" ]
permissive
openstack/rally
415ed0513ce2a99cdaf0dabc1ae4f14cd200db89
e8613ffeb01f109083f6a75dd148d5a8d37c9564
refs/heads/master
2023-09-04T05:35:11.862008
2023-05-19T21:31:59
2023-05-23T08:09:06
12,645,326
278
291
Apache-2.0
2023-04-22T02:34:29
2013-09-06T13:58:01
Python
UTF-8
Python
false
false
6,230
py
test_verification.py
# Copyright 2016: 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 b...
5a222a34d00331a757ad831b568e09b941ce3105
f509ab9825c542e09b0c6591d86ef1f9feb540a6
/pkgs/clean-pkg/src/genie/libs/clean/stages/iosxe/tests/test_install_image.py
1724b2a8cd6c0a70c1489ffeb96e23474d82f277
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genielibs
97f597117193aaa18028defeb69078ebb241173a
e42e51475cddcb10f5c7814d0fe892ac865742ba
refs/heads/master
2023-08-11T16:39:41.959947
2023-07-27T17:58:42
2023-07-27T17:58:42
130,717,047
109
60
Apache-2.0
2023-08-29T22:32:08
2018-04-23T15:21:56
Python
UTF-8
Python
false
false
14,355
py
test_install_image.py
import logging import unittest from unittest.mock import Mock, MagicMock, call, ANY from collections import OrderedDict from genie.libs.clean.stages.iosxe.stages import InstallImage from genie.libs.clean.stages.tests.utils import CommonStageTests, create_test_device from pyats.aetest.steps import Steps from pyats.r...
373f4a0c1fa15abfe917ecaf836c6dbc2567f44a
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Cocoa/Examples/AppKit/TinyURLService/TinyURLService.py
6bd5584991439eb435a131e1a2e8b6ebe61e6784
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
2,574
py
TinyURLService.py
import traceback import urllib import urllib2 import Cocoa import objc from PyObjCTools import AppHelper def serviceSelector(fn): # this is the signature of service selectors return objc.selector(fn, signature=b"v@:@@o^@") def ERROR(s): # NSLog("ERROR: %s", s) return s NAME = "TinyURLService-0.0"...
598e4aaf848e527de1989a249b7364faf73d4a37
b7d485ac699f2a52e955ee4d3642e56df59a30ff
/setup.py
c8c3cfe2d5d6bc602056edcf1f60cc04ea9ce257
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
erdewit/ib_insync
52c2736d03f60682b786915262540c707a16d7c8
04f4c1efbb739c80d6850ef32fca08576bc182c6
refs/heads/master
2023-09-04T02:59:34.922330
2023-09-01T16:05:55
2023-09-01T16:05:55
97,003,332
2,466
678
BSD-2-Clause
2023-08-29T11:15:40
2017-07-12T12:09:24
Python
UTF-8
Python
false
false
1,669
py
setup.py
"""IB-insync setup script.""" import sys from pathlib import Path from setuptools import setup if sys.version_info < (3, 6, 0): raise RuntimeError("ib_insync requires Python 3.6 or higher") here = Path(__file__).parent.resolve() __version__ = '' with open(here / 'ib_insync/version.py') as f: exec(f.read())...
bd4642b60b777dd7be0cafe6de874d17596b4ff8
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/computational_backends/utils.py
1da3ff610f937ae9cfc9b62fe6edeb88597bcc19
[ "BSD-3-Clause" ]
permissive
alteryx/featuretools
c6e319e063e8e84e7684bf232376f95dc5272160
c284c2d27a95b81e0bae913ac90df2b02c8f3b37
refs/heads/main
2023-08-25T12:21:33.945418
2023-08-23T16:30:25
2023-08-23T16:30:25
102,908,804
1,783
201
BSD-3-Clause
2023-09-07T18:53:19
2017-09-08T22:15:17
Python
UTF-8
Python
false
false
15,370
py
utils.py
import logging import os import typing import warnings from datetime import datetime from functools import wraps import numpy as np import pandas as pd import psutil from woodwork.logical_types import Datetime, Double from featuretools.entityset.relationship import RelationshipPath from featuretools.feature_base impo...
4b0dbce59113f0d117bc5ab3737134f64a55ba4e
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/eventhub/azure-eventhub-checkpointstoreblob-aio/azure/eventhub/extensions/checkpointstoreblobaio/_vendor/storage/blob/_generated/aio/operations/_directory_operations.py
338ff69e3adcf8cdad6c86df65fd52c45cfcf5bf
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
44,892
py
_directory_operations.py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
dfe9d2f26789f32bda7a1dbe503684749123803d
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/unit/utils/test_dns.py
75ceeef135901262b3017a9e186be38683766487
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
saltstack/salt
354fc86a7be1f69514b3dd3b2edb9e6f66844c1d
1ef90cbdc7203f97775edb7666db86a41eb9fc15
refs/heads/master
2023-07-19T20:56:20.210556
2023-06-29T23:12:28
2023-07-19T11:47:47
1,390,248
11,026
6,296
Apache-2.0
2023-09-14T20:45:37
2011-02-20T20:16:56
Python
UTF-8
Python
false
false
28,220
py
test_dns.py
import logging import socket import textwrap import pytest import salt.modules.cmdmod import salt.utils.dns from salt._compat import ipaddress from salt.utils.dns import ( _data2rec, _data2rec_group, _lookup_dig, _lookup_drill, _lookup_gai, _lookup_host, _lookup_nslookup, _to_port, ...
53cc911d4594339f904750e1967d53c707e9b08e
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayUserPassGrouplistQueryResponse.py
abac9c969cc731275b415b8ebcd5e2edbe324520
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,133
py
AlipayUserPassGrouplistQueryResponse.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.PassInfoOpenApiModel import PassInfoOpenApiModel class AlipayUserPassGrouplistQueryResponse(AlipayResponse): def __init__(self): super(AlipayUserPassGrou...
af58143b873cb02cf0eac368b7a91601cde70d7c
21590487701d2dcbe1a1c1dd81c6e983f7523cb6
/opentelemetry-sdk/tests/error_handler/test_error_handler.py
116771dc9a13cdb8aee42c497b7f3c52aa987c13
[ "Apache-2.0" ]
permissive
open-telemetry/opentelemetry-python
837199e541c03cff311cad075401791ee2a23583
d8490c5f557dd7005badeb800095cb51b553c98c
refs/heads/main
2023-08-26T06:47:23.837997
2023-08-17T22:35:13
2023-08-17T22:35:13
185,478,926
1,361
668
Apache-2.0
2023-09-14T20:48:40
2019-05-07T21:13:30
Python
UTF-8
Python
false
false
4,242
py
test_error_handler.py
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
39edded15d7ecc9bf3c766f50f4a3ceaf2864fc3
3dc3bbe607ab7b583eb52dbaae86636eb642960a
/mmaction/structures/__init__.py
ec6f4be8ead8a1d709001da080633b949d66e355
[ "Apache-2.0" ]
permissive
open-mmlab/mmaction2
659c36c6083fd3d9d072e074a8d4b3a50342b9bd
582b78fd6c3240500d5cacd292339d7d1ddbb056
refs/heads/main
2023-08-28T18:14:50.423980
2023-08-10T09:20:06
2023-08-10T09:20:06
278,810,244
3,498
1,028
Apache-2.0
2023-09-07T06:50:44
2020-07-11T07:19:10
Python
UTF-8
Python
false
false
217
py
__init__.py
# Copyright (c) OpenMMLab. All rights reserved. from .action_data_sample import ActionDataSample from .bbox import bbox2result, bbox_target __all__ = [ 'ActionDataSample', 'bbox2result', 'bbox_target', ]
cce604d7c87324c908134270009a9e2f9e3e3505
bd9a09a3f1a8b2b5166c540ada93cc5b30591605
/scanner/plugins/cms/others/hnkj_researchinfo_dan_sqli.py
45e7bf7e021770805dc12e1b41a3c2330a28bc57
[ "MIT" ]
permissive
iceyhexman/onlinetools
3cb6e349fc30c515f96429abeab5fbcc430ac0cc
61f2df7ff8e6ad97ca7901728c3ab749679a2bd0
refs/heads/master
2023-08-06T19:31:51.328657
2022-10-28T04:01:38
2022-10-28T04:01:38
119,565,769
1,662
358
MIT
2023-03-31T14:34:13
2018-01-30T16:51:46
Python
UTF-8
Python
false
false
1,064
py
hnkj_researchinfo_dan_sqli.py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: 汇能群管理系统SQL注入 referer: http://wooyun.org/bugs/wooyun-2010-0152664 author: Lucifer description: 链接/main/model/childcatalog/researchinfo_dan.jsp?researchId=1中 researchID未过滤存在SQL注入漏洞 ''' import sys import requests class hnkj_researchinfo_dan_sqli_BaseVerify: de...
97a940ff67563722359caa1c250e0dd069f22701
005dfd409cb83ebd4b284636a52230be1959fff7
/trust_stores_observatory/store_fetcher/root_records_validator.py
96d51e48bcff479bc3cc4a23c2458cf4a809dbd4
[ "MIT" ]
permissive
nabla-c0d3/trust_stores_observatory
1a69d07cf0aab954d5d3ba55b80fab4bbb12c5e3
e74c3b1ed4e5320b3ef634a9d305c904a0b87025
refs/heads/master
2023-08-30T21:37:50.194770
2023-08-27T00:15:17
2023-08-27T00:15:17
115,378,349
113
18
MIT
2021-03-28T21:49:54
2017-12-26T02:38:24
HTML
UTF-8
Python
false
false
2,289
py
root_records_validator.py
import logging from typing import List, Set from trust_stores_observatory.certificates_repository import RootCertificatesRepository, CertificateNotFoundError from trust_stores_observatory.store_fetcher.scraped_root_record import ScrapedRootCertificateRecord from trust_stores_observatory.root_record import RootCertific...
9dfe51527ba6f8b3b08d1e097d993acbed4f0c9c
568a080aaf2ecdfc566d9b3b1659ae76b1118c6e
/tests/test_github.py
f83c6a506e009ae09f68f22a008bc48f212b1f94
[ "MIT" ]
permissive
joshtemple/lkml
527eb939533705d5391b0f1af6ad2dedb2faf680
c7545dc0567589b2e11a4d759ec66fcdd5969c5a
refs/heads/master
2023-05-25T13:42:58.831755
2022-10-25T17:34:58
2022-10-25T17:34:58
192,979,053
143
33
MIT
2023-05-23T00:16:02
2019-06-20T19:49:16
LookML
UTF-8
Python
false
false
1,407
py
test_github.py
"""Tests open-source LookML files from GitHub to catch edge cases. Tests in this file depend on the presence of .lkml files downloaded to the /github directory. To download these files freshly, you'll need a GitHub API token. Then, run the script in /scripts to download the latest batch of public LookML from GitHub. ...
c74f586788a83086be19cd6c7df8255d9e1214c4
c3e0a6919caf85c35239ef23084df9bbf8dd61c3
/pypeit/scripts/flux_setup.py
ef6a79baebd12b333a4b112618b46130f413c3e6
[ "BSD-3-Clause" ]
permissive
pypeit/PypeIt
6eb9e5afd62acc9d363e497cd9e367d620f86ea4
0d2e2196afc6904050b1af4d572f5c643bb07e38
refs/heads/release
2023-08-25T21:15:59.113114
2023-06-04T15:23:39
2023-06-04T15:23:39
36,958,428
136
98
BSD-3-Clause
2023-09-12T17:42:15
2015-06-05T22:25:37
Python
UTF-8
Python
false
false
6,497
py
flux_setup.py
""" Setup files for flux calibration. .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ import os import time import numpy as np from astropy.table import Table from pypeit import msgs from pypeit import io from pypeit.scripts import scriptbase from pypeit...
3f02da63468931b2a66c50e8ac732a918781a036
7d232f51e2330a4f537c50ede9c6bc023d656fd4
/tools/interop_matrix/client_matrix.py
e94a5aded8a36f8dbcd6d397f3ed3f50865cfb0c
[ "BSD-3-Clause", "MPL-2.0", "Apache-2.0" ]
permissive
grpc/grpc
6975af3ba6f07a6fe965b875a0c09abf18999a52
e4d598ab64aa54f1da78c6ed6133b741742d11d4
refs/heads/master
2023-08-31T01:10:22.666618
2023-08-30T22:35:17
2023-08-30T22:35:17
27,729,880
42,330
13,022
Apache-2.0
2023-09-14T21:54:19
2014-12-08T18:58:53
C++
UTF-8
Python
false
false
35,591
py
client_matrix.py
# Copyright 2017 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
cb2253128e9c5ddedd8f1c01ca7245fd6b5c965c
beaa8e9d6ec16c2ffe8a7d9f72fd6eea904083bb
/ttslearn/tacotron/tts.py
948de592ada3aba5f00e69612c5e8020857f8f0c
[ "MIT" ]
permissive
r9y9/ttslearn
553f7a92c6160d4d379459bbfd5bf5924a4a4a70
a970d4ee8aa1d9ce1603d8d3c06d5d67f26b639e
refs/heads/master
2023-04-09T19:32:28.797819
2023-03-07T11:55:48
2023-03-07T11:55:48
378,789,439
220
43
MIT
2023-03-07T11:55:50
2021-06-21T02:54:03
Jupyter Notebook
UTF-8
Python
false
false
5,852
py
tts.py
import json from pathlib import Path import numpy as np import pyopenjtalk import torch from hydra.utils import instantiate from omegaconf import OmegaConf from tqdm import tqdm from ttslearn.dsp import inv_mulaw_quantize, logmelspectrogram_to_audio from ttslearn.pretrained import retrieve_pretrained_model from ttslea...
1c8b6d2052d5e7e63e66088e0831c9f39547f10a
4091caecbc727e6d6ae0d827afce11c5979a84fd
/tools/accuracy_checker/openvino/tools/accuracy_checker/data_readers/binary_data_readers.py
5454bd8cd359f9b5dda50b0a6018235edc772022
[ "Apache-2.0" ]
permissive
openvinotoolkit/open_model_zoo
fdb03dd40bfccb854e4ed4f7b9beaa90596963cd
7929adbe91e9cfe8dc5dc1daad5ae7392f9719a0
refs/heads/master
2023-08-18T18:03:47.254427
2023-08-18T10:54:31
2023-08-18T10:54:31
153,097,694
1,712
730
Apache-2.0
2023-09-11T11:31:20
2018-10-15T10:55:02
Python
UTF-8
Python
false
false
2,503
py
binary_data_readers.py
""" Copyright (c) 2018-2023 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wri...
c160cd6500d13d7c323710be630dcbe2de41f6de
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/dynamic_sequence/test_dynamic_list_append.py
fc34d934abaec7d244c44ed102a73a3810704514
[ "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
3,780
py
test_dynamic_list_append.py
# Copyright 2023 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...
1b8adbb2cb61d6b5d74f9e25e6e9e36293c38377
afbae26b958b5ef20548402a65002dcc8e55b66a
/release/stubs.min/Autodesk/Revit/DB/__init___parts/ReferenceWithContext.py
649c44f14c9b2e4f36030bc1d92a1072824385c4
[ "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
2,171
py
ReferenceWithContext.py
class ReferenceWithContext(object,IDisposable): """ An object including a reference to a geometric object and related context,as instance transform etc. """ def Dispose(self): """ Dispose(self: ReferenceWithContext) """ pass def GetInstanceTransform(self): """ GetInstanceTransform(self: ReferenceWithC...
e7ec7870c1af708cf7f6b12f35923afdab58d2c5
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/tests/st/ops/gpu/test_searchsorted_op.py
e58a9de63a46ffcaf2dff6f5c6f58e62e600938c
[ "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,048
py
test_searchsorted_op.py
import numpy as np import pytest import mindspore import mindspore.context as context import mindspore.nn as nn from mindspore import Tensor from mindspore.ops import operations as P class SearchSortedNet(nn.Cell): def __init__(self, out_int32=mindspore.int32, right=False): super(SearchSortedNet, self)._...
b306dcf7fd9a0f53ecef01dada87ac44a4b9b182
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/cloudformation/checks/resource/aws/EFSEncryptionEnabled.py
4677b0ca10059e136780c69652317c9866a1dbf3
[ "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
613
py
EFSEncryptionEnabled.py
from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories class EFSEncryption(BaseResourceValueCheck): def __init__(self): name = "Ensure EFS is securely encrypted" id = "CKV_AWS_42" supported...
3e15ac044d6197cd75f9a2725814f158aa33d753
d139ef8d18fcde584b06c1d7d25477d7d31ee59b
/google/ads/googleads/v14/services/types/conversion_adjustment_upload_service.py
db5abd25719091befd4bef65792ba9f4a361a288
[ "Apache-2.0" ]
permissive
googleads/google-ads-python
a53993e6be057d3aa61f276b69e97b8b338d1c12
146d7070c1ea2140555d49d73c77892430b37314
refs/heads/main
2023-08-31T01:58:16.738997
2023-06-05T08:18:42
2023-08-28T19:08:38
143,435,091
422
525
Apache-2.0
2023-09-12T17:46:52
2018-08-03T14:08:04
Python
UTF-8
Python
false
false
13,736
py
conversion_adjustment_upload_service.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...
d4f214b39f66c22358748a1b8d4bd2e1cef374b4
1ec0cf2205deb58b97495e1b5d0a8df3b1f3faf1
/concordia/migrations/0029_assettranscriptionreservation_reservation_token.py
fb07816a60e3ae051559ac91f45ff6e9bdad40c1
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
LibraryOfCongress/concordia
f9d937223320bb6b9185f764485d14d22c06f4cd
2f345cd177c3ae0ec3913e39c21332f5a35f634b
refs/heads/main
2023-08-22T05:28:58.717760
2023-08-21T18:46:22
2023-08-21T18:46:22
134,269,274
152
36
NOASSERTION
2023-09-14T18:50:49
2018-05-21T12:56:57
Python
UTF-8
Python
false
false
414
py
0029_assettranscriptionreservation_reservation_token.py
# Generated by Django 2.2 on 2019-04-23 15:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("concordia", "0028_asset_year")] operations = [ migrations.AddField( model_name="assettranscriptionreservation", name="reservation_to...
34979c7ef3b9396bec49a869ebbe88a19836d58e
160f08e768d7271f9522ad2597ac4ee79c04477a
/src/c3nav/mapdata/migrations/0002_locationredirect.py
781669d3ec03da5059a127966dc9cd94513505ce
[ "Apache-2.0" ]
permissive
c3nav/c3nav
6254724dfc8589ee03c6028577befd7c65b05857
1a4ef5caa06ddacc8d9370b5adcee248fd4f55f7
refs/heads/main
2023-08-04T08:36:18.431458
2023-07-24T09:57:18
2023-07-24T09:57:18
56,852,994
140
47
Apache-2.0
2023-07-05T22:55:27
2016-04-22T12:13:51
Python
UTF-8
Python
false
false
982
py
0002_locationredirect.py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-05-11 19:59 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('mapdata', '0001_squashed_refactor_2017'), ] operat...
f56e44b229b38159d3c5a5eb236474579855ff2b
6793f3b093478fdde550d8669b9b955081af5e0e
/nbconvert/preprocessors/latex.py
312fd13a39eab09104f2deb6f2a2e9fe5c9bfc09
[ "BSD-3-Clause" ]
permissive
jupyter/nbconvert
0afe110c4ec39b68661c601f8f3b20fd21a9ba13
51c6e0a7d40918366e2a68c5ea471fd2c65722cb
refs/heads/main
2023-09-03T16:05:25.981152
2023-08-29T13:57:58
2023-08-29T13:57:58
33,653,617
1,645
654
BSD-3-Clause
2023-09-11T10:42:26
2015-04-09T06:58:23
Python
UTF-8
Python
false
false
2,736
py
latex.py
"""Module that allows latex output notebooks to be conditioned before they are converted. """ # ----------------------------------------------------------------------------- # Copyright (c) 2013, the IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the fi...
3395edb0e2779c4dc49e684491cd85f4549c3c91
3752a799d650bdd36206045f13ff6bc4d5829e17
/common/config.py
294e6e27ccb279c7882ee96ed9f353d445adf23e
[ "MIT" ]
permissive
GavinHacker/recsys_core
b034b41628e8eeb40c2bd32976d62d44e8430e08
51953d92d86799b60694a1be6dfe6fd178101570
refs/heads/master
2021-12-31T01:29:03.636089
2021-12-30T08:53:29
2021-12-30T08:53:29
168,310,743
326
87
MIT
2019-09-10T00:48:44
2019-01-30T08:55:58
Python
UTF-8
Python
false
false
1,258
py
config.py
# -*- coding: utf-8 -*- import pandas as pd import pymysql import pymysql.cursors from functools import reduce import numpy as np import pandas as pd import uuid import datetime from sklearn.feature_extraction import DictVectorizer from sklearn.metrics.pairwise import pairwise_distances import json # 获取数据库中,config表的配...
310838bb36209cbd4bb8038cfafe3bb2deb959db
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/PyListCreationInspection/test.py
3aa31a86316b4895b235c3927a6b351c4822f4ee
[ "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
218
py
test.py
<weak_warning descr="Multi-step list initialization can be replaced with a list literal">my_list = [m]</weak_warning> my_list.append(1) my_list.append(var) do_something() my_list_1 = [m] my_list_1.append(my_list_1)
6884c2f66d54c6dde37325dc61e15d11a55acc9e
b2d49f04f220d46a7572bf424b6c02c7466786e8
/contrib/get_nbconvert_minfied_css.py
69ed855218b44a98b802806acc04969a1646c40d
[ "MIT" ]
permissive
inducer/relate
19a7b83e07de63216918d71e875eca53ee8ceb0c
7c28f65ef99a6f05007c518763762aca4504145b
refs/heads/main
2023-08-29T10:32:43.952986
2023-08-28T15:17:16
2023-08-28T18:40:16
20,311,659
352
138
null
2023-09-09T00:20:05
2014-05-29T23:39:42
Python
UTF-8
Python
false
false
6,618
py
get_nbconvert_minfied_css.py
# -*- coding: utf-8 -*- #! /usr/bin/env python3 """ Generate minified stylesheet for ipython notebook """ import os REPLACE_HIGHLIGHT_WITH_CODEHILITE = False NOTEBOOK_CSS_VERSION = '5.4.0' CSS_URL = ("https://cdn.jupyter.org/notebook/%s/style/style.min.css" % NOTEBOOK_CSS_VERSION) REQUEST_TIMEOUT = 6 RE...
e7b949063e47be1b4ace1ed4137859b0f68b7ad9
93df6fb9e518d7e6486b166665a5b21172fecfba
/backend/users/models.py
daf4b8a3582f01d2a0c44592c3e1ac24a662c1b4
[ "MIT" ]
permissive
vintasoftware/django-react-boilerplate
91e01d06cad611e9feb9a796e52d82c0e7bac387
55ef9677554ba4d8b5ab0b71a3461a24e0a1fb3a
refs/heads/master
2023-09-05T10:34:15.305739
2023-08-14T22:41:21
2023-08-14T22:41:21
63,726,409
1,815
568
MIT
2023-09-14T18:28:07
2016-07-19T20:37:29
Python
UTF-8
Python
false
false
967
py
models.py
from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin from django.db import models from django.utils.translation import ugettext_lazy as _ from common.models import IndexedTimeStampedModel from .managers import UserManager class User(AbstractBaseUser, PermissionsMixin, IndexedTimeStampedModel): ...
efc5bda4b42b3709285db8840ca9015161be68b8
b049a961f100444dde14599bab06a0a4224d869b
/sdk/python/pulumi_azure_native/domainregistration/v20210201/outputs.py
fab80971d71acda491f297d4528a05c982163be8
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-azure-native
b390c88beef8381f9a71ab2bed5571e0dd848e65
4c499abe17ec6696ce28477dde1157372896364e
refs/heads/master
2023-08-30T08:19:41.564780
2023-08-28T19:29:04
2023-08-28T19:29:04
172,386,632
107
29
Apache-2.0
2023-09-14T13:17:00
2019-02-24T20:30:21
Python
UTF-8
Python
false
false
2,448
py
outputs.py
# coding=utf-8 # *** WARNING: this file was generated by pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __all__ ...
c487a55f4cd98ff9488173b950d8f3e8f5e38dc2
4daab5ba90185bae65169ebb8183c635385ab3f8
/tests/test_sn2prime.py
b1b1b92eccad551e159242e869f7eba5d44a6c60
[ "MIT" ]
permissive
duartegroup/autodE
bcf69440bd04411f97d39df0df0ae1f2bf6feb8c
4d6667592f083dfcf38de6b75c4222c0a0e7b60b
refs/heads/master
2023-09-01T15:08:16.028378
2023-07-25T08:09:05
2023-07-25T08:09:05
196,085,570
132
42
MIT
2023-09-12T15:20:54
2019-07-09T21:20:27
Python
UTF-8
Python
false
false
2,725
py
test_sn2prime.py
""" Test that an SN2' substitution reaction is correctly generated """ from autode.reactions import Reaction from autode.species import ReactantComplex from autode.atoms import Atom from autode.reactions.reaction_types import Substitution from autode.species import Reactant, Product from autode.bond_rearrangement impor...
9b6c2a8d9f3ee8e8563ff58d17361c4cf04e35fa
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/RunZero/Integrations/RunZeroEventCollector/RunZeroEventCollector.py
cc3ef8a26c27c02a04d3bd09df8389011a1ee317
[ "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
9,685
py
RunZeroEventCollector.py
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import urllib3 from typing import Any, Dict, Tuple, List, Optional, cast # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' VENDOR = 'runzero' PRODUCT = 'runzero' DEFAULT_LIMIT = "1000" ''' CLIE...
1ad6f7b183881e5acb094aefa73363cd0267f892
3eb3c4046b17e265930aaf89fa93f41896f243cb
/spynnaker/pyNN/connections/ethernet_control_connection.py
6c5b6f0bbe57260280e8722cd841f041675d9469
[ "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
2,632
py
ethernet_control_connection.py
# Copyright (c) 2017 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 ...
fb24d9449f1efd9a2f9cc5e54817fb1c415f00ef
0559694cf652f496c8fc3a7827715e5fcf98e7b8
/InnerEye/ML/configs/segmentation/HeadAndNeckBase.py
602e82adff61f2d91ebd624f619a770de154a24c
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
microsoft/InnerEye-DeepLearning
9f7fc5f5dbeb153138d5668f1d026f24b68cb50f
2877002d50d3a34d80f647c18cb561025d9066cc
refs/heads/main
2023-08-24T16:52:52.817042
2023-03-23T09:36:07
2023-03-23T09:36:07
259,878,805
511
144
MIT
2023-07-26T18:55:26
2020-04-29T09:15:05
Python
UTF-8
Python
false
false
7,110
py
HeadAndNeckBase.py
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
21996e441560da4c9ac68c707fb58a9b1bfa625b
4c54757b8c5293f5587210b2eafd7edfbf380446
/clouseau/clouseau.py
13204f3a573a25644ac6b7a2a3532af92f3709e2
[ "CC0-1.0" ]
permissive
cfpb/clouseau
4d2815bddeaf3d8e17c399d0bf2bc47a7d4e3a30
d9a6672c214266f9eb819490c8b4ee3cffbe4538
refs/heads/master
2021-01-17T14:07:13.002619
2018-10-19T22:02:18
2018-10-19T22:02:18
8,520,426
101
25
NOASSERTION
2019-04-11T17:12:30
2013-03-02T12:50:55
Python
UTF-8
Python
false
false
5,879
py
clouseau.py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # Clouseau, a silly git repo inspector # # import os import argparse as arse import pprint import sys import subprocess from clients import * from clients.colors import * from parser import Parser from commit_parser import CommitParser from terms_collector import TermsCo...
d9778de9ea28564943c8b0600510d8967cf6e52d
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/cluster_list_instances.py
a91df665dbfb5704f4c1f3526c1f501d97eb476b
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
8,326
py
cluster_list_instances.py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ClusterListInstances: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribu...
116741285118653273b05b04f508de81a2b7b399
2a83fcc6c0ba53ac48d6678cc02362795e36e82f
/nbformat/converter.py
4d71e5e5cd84d354ee05b5744a570b80583fc47e
[ "BSD-3-Clause" ]
permissive
jupyter/nbformat
e0caf0e50429024620661ccb88fc95891e56eeb9
a3e787dccbf629c8cbae46f79e74d53ded8b53a9
refs/heads/main
2023-09-01T07:52:52.509860
2023-08-01T09:58:00
2023-08-01T09:58:00
33,640,907
237
161
BSD-3-Clause
2023-09-14T14:33:16
2015-04-09T01:07:29
Python
UTF-8
Python
false
false
2,608
py
converter.py
"""API for converting notebooks between versions.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. from . import versions from .reader import get_version from .validator import ValidationError def convert(nb, to_version): """Convert a notebook node object t...
f57398fcefedb5358448a38e7c89f36e8f03e22c
ee327d13a6e71dd43412ab89092cf3ff5fceb132
/larq/metrics.py
a6d9417f04177a96f661cba1c4ba6340b1489acd
[ "Apache-2.0" ]
permissive
larq/larq
4150c22922efc498831d04f8a316372d30dd6348
5dc58e4f49c1b51554db822b87e6bf947031b990
refs/heads/main
2023-08-31T01:53:41.348448
2023-08-21T09:05:41
2023-08-21T09:05:41
176,374,098
615
76
Apache-2.0
2023-09-11T18:07:34
2019-03-18T21:41:50
Python
UTF-8
Python
false
false
3,341
py
metrics.py
"""We add metrics specific to extremely quantized networks using a `larq.context.metrics_scope` rather than through the `metrics` parameter of `model.compile()`, where most common metrics reside. This is because, to calculate metrics like the `flip_ratio`, we need a layer's kernel or activation and not just the `y_true...
06b9ffde47819c221680a56b9eb10222072179b1
dbe83cf6c2b78a61def862ca19625c2f78268af8
/ibis/backends/dask/execution/indexing.py
c2a5cca21dd12b3ac1c204d6e677734d9503b3f0
[ "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,481
py
indexing.py
"""Execution rules for ops.Where operations.""" from __future__ import annotations import dask.dataframe as dd import ibis.expr.operations as ops from ibis.backends.dask.dispatch import execute_node from ibis.backends.pandas.core import boolean_types, scalar_types, simple_types from ibis.backends.pandas.execution.ge...
13a5c2a3c6983b7260fbbdac7c187454b5f7d1ab
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/DQMServices/Core/python/nanoDQMIO_perLSoutput_cff.py
7ec70f64a16b38332985e47b91311e6cc7b0e7f4
[ "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
14,405
py
nanoDQMIO_perLSoutput_cff.py
import FWCore.ParameterSet.Config as cms # Configuration file for nanoDQMIO # Use this file to specify which monitoring elements (MEs) will be stored in the nanoDQMIO format. # For more information, see https://twiki.cern.ch/twiki/bin/view/CMS/PerLsDQMIO. # Use the full ME path, as displayed for example in the DQM GU...
77d3b0986468fb24622fda27af56f331ba98999a
09e4ef23c31fbb248339c39ceec5226a97ca3103
/benchexec/tools/ulcseq.py
5f3f59a842174152fb9eba7f65ff743baef908fc
[ "Apache-2.0" ]
permissive
sosy-lab/benchexec
a51676f9e501743444c96a32ec2e91ae4f3ac889
2c56e08d5f0f44b3073f9c82a6c5f166a12b45e7
refs/heads/main
2023-09-01T22:45:59.070016
2023-08-23T05:36:58
2023-08-24T09:38:40
30,758,422
176
190
Apache-2.0
2023-06-30T08:39:22
2015-02-13T13:55:15
Python
UTF-8
Python
false
false
591
py
ulcseq.py
# This file is part of BenchExec, a framework for reliable benchmarking: # https://github.com/sosy-lab/benchexec # # SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> # # SPDX-License-Identifier: Apache-2.0 import benchexec.util as util from . import cseq class Tool(cseq.CSeqTool): """ ...
3b6a31c124cc47af77be44481836cf927981c94c
1e924a68d2103f3ddd0c46122e960975eaae9334
/examples/upload_with_zone.py
c8650d39b9c94f680da3903844bd94d041201f18
[ "MIT" ]
permissive
qiniu/python-sdk
d42ed5d9eefbda9ab7735ef89adf124840db4364
7d6eb2dde37a53b421cda71709422574eadc8874
refs/heads/master
2023-08-26T14:22:36.349580
2023-08-21T07:26:51
2023-08-21T07:26:51
3,795,717
527
317
MIT
2023-08-21T07:26:52
2012-03-22T08:25:20
Python
UTF-8
Python
false
false
1,305
py
upload_with_zone.py
# -*- coding: utf-8 -*- # flake8: noqa from qiniu import Auth, put_file from qiniu import Zone, set_default # 需要填写你的 Access Key 和 Secret Key access_key = '' secret_key = '' # 构建鉴权对象 q = Auth(access_key, secret_key) # 要上传的空间 bucket_name = 'bucket_name' # 上传到七牛后保存的文件名 key = 'a.jpg' # 生成上传 Token,可以指定过期时间等 token = q....
0f85d2ccd7128e25585b123684a4ec28cea8d622
b6ef14f2450db87b8b902ee2b606a3d3b223f0ca
/util/generate-mx-pickle.py
a917e0892ba41c168571affeb201dde999b307b1
[ "ISC", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
rthalley/dnspython
88f6b18738b2548e83e6f82e5a296dfa555b77d3
c465d3c0e15a52e4109c9f80131e657d8bdb0471
refs/heads/master
2023-08-30T17:03:04.472884
2023-08-29T21:11:10
2023-08-29T21:11:17
2,261,155
2,049
554
NOASSERTION
2023-09-14T16:05:48
2011-08-24T11:36:39
Python
UTF-8
Python
false
false
437
py
generate-mx-pickle.py
import pickle import sys import dns.rdata import dns.version # Generate a pickled mx RR for the current dnspython version mx = dns.rdata.from_text("in", "mx", "10 mx.example.") filename = f"pickled-{dns.version.MAJOR}-{dns.version.MINOR}.pickle" with open(filename, "wb") as f: pickle.dump(mx, f) with open(filena...
b56af1c44d0b255b58e678152238cb454b9af46d
b4a350c2697dbfdb22215d64034b074c2c1bfe2b
/convtrees/plot.py
eb99098998bd4afec2d02923085d95c79e978f33
[]
no_license
jonnor/embeddedml
391dddd0a930cd77aebc3f920e6c3ea67591dedf
ea13926dcc2d1468680951dc0c37d6d1594251d2
refs/heads/master
2023-08-25T15:38:16.800021
2023-08-15T23:14:33
2023-08-15T23:14:33
197,437,798
137
22
null
null
null
null
UTF-8
Python
false
false
408
py
plot.py
import pandas from matplotlib import pyplot as plt df = pandas.read_csv('results.csv') fig, (est_ax, leaf_ax) = plt.subplots(1, 2, figsize=(8, 6)) df.plot.scatter(ax=est_ax, y='mean_test_score', x='param_n_estimators') df[df.param_n_estimators == 100].plot.scatter(ax=leaf_ax, y='mean_test_score', x='param_min_sample...