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
647f594b1d03d31d1e230c66200c22b7fad4a48d
0a16415a4e7657570b95e96c16a9bffbeeddd279
/tools/kapture_import_nvm.py
51630405a5daa7db60b1f532cab574f15d4a7757
[ "MIT", "BSD-3-Clause" ]
permissive
naver/kapture
13fda56217751ac12c77f0be658815ea6a598fa8
392677fb974aaa7c9c7c65d05c09abdb8a681124
refs/heads/main
2023-08-24T16:25:20.195565
2023-03-29T15:58:07
2023-03-29T15:58:07
275,164,995
386
64
BSD-3-Clause
2023-09-04T15:48:49
2020-06-26T13:40:30
Python
UTF-8
Python
false
false
16,410
py
kapture_import_nvm.py
#!/usr/bin/env python3 # Copyright 2020-present NAVER Corp. Under BSD 3-clause license """ This script imports an NVM model in the kapture format. VisualSFM saves SfM workspaces into NVM files, which contain input image paths and multiple 3D models. Below is the format description NVM_V3 [optional calibration] ...
ec19c205bb8d30cfcd469351f321e88872ca4542
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/impl/gen/view_models/views/lobby/battle_matters/battle_matters_exchange_rewards_model.py
2049d1de7682e1e458d4a583f79410dd76c233cf
[]
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
933
py
battle_matters_exchange_rewards_model.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/battle_matters/battle_matters_exchange_rewards_model.py from frameworks.wulf import ViewModel class BattleMattersExchangeRewardsModel(ViewModel): __slots__ = () def __init__(self, prope...
0675ec33b47501852a2d6528b1dd5964a4a33e92
050fc5ca698dfd7612dee42aa980fc7b5eee40a2
/skywalking/plugins/sw_happybase.py
0df76ae1ccfb4b92531ba7c647401acc5610d99e
[ "Apache-2.0" ]
permissive
apache/skywalking-python
8ac6ce06630c519f9984a45e74c1fcc88cf5b9d6
1a360228c63cd246dd4c5dd8e1f09bdd5556ad7d
refs/heads/master
2023-09-05T02:45:56.225937
2023-08-28T22:19:24
2023-08-28T22:19:24
261,456,329
178
122
Apache-2.0
2023-08-28T22:19:26
2020-05-05T12:13:49
Python
UTF-8
Python
false
false
4,734
py
sw_happybase.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...
388a4851404674362e3720ac81fc7fa27b7334b3
b1f587ee6eed481af0e453903e1c1ae7a2e7ef87
/pyxtal/miscellaneous/test_get_csd.py
284e1b350b8c7109701709dc1003b43a933bd132
[ "MIT" ]
permissive
qzhu2017/PyXtal
cdae49664c876c8d2b452b0c3f0db36587c34532
9fdb4ec509da6a97a239a3ae4fcfa427dcf32eff
refs/heads/master
2023-08-20T08:20:37.452641
2023-08-11T15:15:36
2023-08-11T15:15:36
128,165,891
194
62
MIT
2023-07-01T13:00:11
2018-04-05T06:08:04
Python
UTF-8
Python
false
false
2,054
py
test_get_csd.py
import warnings warnings.filterwarnings('ignore') from ase.db import connect from pyxtal import pyxtal from pyxtal.util import search_csd_entries_by_code strucs = [] for csd in [#'GLYCIN01', 'HUSVUM', 'HIHDUZ', 'DOPSIK', 'TABQOG03', 'DUPXOD', #'GLYMSN10', 'GOBFAF', 'GOBZOO', 'ARAZEZ','HMBENZ21', 'BEMQUF...
93758fe9ec323250f80daac9bc1155046cb3e452
ea57d267ab31480d8d731b2c095e9da9ad989133
/aea/test_tools/generic.py
0f5f8c36a26f44cf224a9603c7dc02ee43c5cf42
[ "Apache-2.0" ]
permissive
fetchai/agents-aea
6d034f1db6f3beacf31dac2f5a1baaa60c8edb7d
bec49adaeba661d8d0f03ac9935dc89f39d95a0d
refs/heads/main
2023-08-08T23:19:06.276643
2023-02-04T10:46:39
2023-02-04T10:46:39
203,558,879
192
58
Apache-2.0
2023-07-19T04:45:26
2019-08-21T10:12:47
Python
UTF-8
Python
false
false
7,470
py
generic.py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2023 Fetch.AI 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 obtain a copy of the ...
8a7898c3cd1b03df464d24a9eddca810d037851a
6267a009f15f15381e7c35417f47afe64f13b618
/hvac/api/system_backend/wrapping.py
142561c1a5c869bfc6c31ade1244004a762e115d
[ "Apache-2.0" ]
permissive
hvac/hvac
f46b114d34067a1563a31c8888dd791a11e52c3c
1f88016df7d8d882d154c491e351bac15b4093b5
refs/heads/main
2023-08-16T22:39:11.126707
2023-08-14T20:22:10
2023-08-14T20:22:10
35,126,062
731
304
Apache-2.0
2023-09-11T19:02:21
2015-05-05T21:56:50
Python
UTF-8
Python
false
false
1,146
py
wrapping.py
from hvac.api.system_backend.system_backend_mixin import SystemBackendMixin class Wrapping(SystemBackendMixin): def unwrap(self, token=None): """Return the original response inside the given wrapping token. Unlike simply reading cubbyhole/response (which is deprecated), this endpoint provides add...
2efdaf67b0d250387cc7b8843ecab1818cbf11e0
50dd46b8ece33f3cdd174284b15d1d51f89669d4
/third_party/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/fix_xrange.py
109c5ca2d08bfd9477085ed7a5ec2ff734a058e8
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-generic-cla", "Apache-2.0", "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
2,772
py
fix_xrange.py
# Copyright 2007 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Fixer that changes xrange(...) into range(...).""" # Local imports from .. import fixer_base from ..fixer_util import Name, Call, consuming_calls from .. import patcomp class FixXrange(fixer_base.BaseFi...
8dac53d737a127da99f45cc55316e1315453fab8
be815aacbd7b06ac0ce3f412831639aa0297b988
/pipe-cli/src/utilities/permissions_operations.py
0744d403b96cad6713d843a354509c02d9bcee24
[ "Apache-2.0" ]
permissive
epam/cloud-pipeline
8a861dae60d0f86089ff55e2f278e8593fc5e112
570dd898e96de931b96e584c86e72296b0e40607
refs/heads/develop
2023-08-30T08:03:18.672866
2023-08-29T17:07:13
2023-08-29T17:07:13
174,065,041
155
73
Apache-2.0
2023-09-14T13:36:36
2019-03-06T03:34:40
Java
UTF-8
Python
false
false
1,013
py
permissions_operations.py
# Copyright 2017-2020 EPAM Systems, Inc. (https://www.epam.com/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
c68d82581cfc277c65f4e9ea858566452472a04b
baa2c6f22ff563d417e34692bf3345077eb8fa5f
/IPython/core/tests/print_argv.py
4ec9e2799ede8f83053fbe20df50b0ee097dda77
[ "BSD-3-Clause" ]
permissive
ipython/ipython
c42ea223b6e391bb7dd39888cb959d4d5d6b21a1
e5103f971233fd66b558585cce7a4f52a716cd56
refs/heads/main
2023-08-30T18:27:18.436521
2023-08-29T12:16:00
2023-08-29T12:16:00
658,518
13,673
4,729
BSD-3-Clause
2023-09-12T20:22:09
2010-05-10T04:46:06
Python
UTF-8
Python
false
false
32
py
print_argv.py
import sys print(sys.argv[1:])
9c8683a4ee6778b0861f5631e3da4e3d578d1988
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/common_ext/scripts/client/__init__.py
4b276f151ec1424b1bd76fd0fa7ead27c752ef40
[]
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
116
py
__init__.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: common_ext/scripts/client/__init__.py pass
bdb55db5e0f341f9d1c04b6cdacf00035f9050d0
479a9c76b19b84d6cde69305828031cd2531aa56
/testing/classifier_test_err_on_empty_sets.py
9b596ec9d5118fae54919ef7779d2c0809c08bf4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mldbai/mldb
d36801bd99dd3f82d7557cd0f438b0121f63f22c
19bc4bc92a41ee8ad4eab0979dffd9c985d95758
refs/heads/master
2023-09-03T22:59:11.621839
2022-12-30T18:42:24
2022-12-30T18:42:24
47,634,692
701
107
Apache-2.0
2023-02-10T23:08:05
2015-12-08T16:34:16
C++
UTF-8
Python
false
false
3,314
py
classifier_test_err_on_empty_sets.py
# # classifier_test_err_on_empty_sets.py # Mich, 2016-06-07 # This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved. # from mldb import mldb, MldbUnitTest, ResponseException import os tmp_dir=os.getenv("TMP") class ClassifierTestErrorWhenNoDataTest(MldbUnitTest): # noqa @classmethod def...
40092c1ca67dff26c5d470fb40c42c1871e93323
3abc1fef99ac6ce0b845a1090fae7f6875fee729
/src/ralph/data_center/migrations/0014_custom_move_managment_to_networks.py
0d8d7301db8c0d89a8c00ad7d932e1210b2b7d72
[ "Apache-2.0" ]
permissive
allegro/ralph
5ff9165a202e836061c99e8af20214e0d651622f
b4a72356f527b1f12c7babd7465d2d7fa3ffb0d3
refs/heads/ng
2023-09-02T01:13:43.672554
2023-09-01T09:48:38
2023-09-01T09:48:38
4,359,038
1,970
617
Apache-2.0
2023-09-01T09:44:39
2012-05-17T14:04:57
Python
UTF-8
Python
false
false
2,325
py
0014_custom_move_managment_to_networks.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import ipaddress from django.db import migrations, models def move_to_networks(apps, schema_editor): DataCenterAsset = apps.get_model('data_center', 'DataCenterAsset') IPAddress = apps.get_model('networks', 'IPAddress') assets = DataCenterA...
9e2f111209554ff43f64f473dbb562d12ed90183
2f1e3f24f2798507c9eb73185a955c9bfb735140
/libreco/algorithms/rnn4rec.py
6217dcbb1765bc92c7425ae443118d9452277283
[ "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
9,365
py
rnn4rec.py
"""Implementation of RNN4Rec model.""" from ..bases import DynEmbedBase, ModelMeta from ..layers import embedding_lookup, normalize_embeds, tf_dense, tf_rnn from ..tfops import dropout_config, reg_config, tf from ..torchops import hidden_units_config from ..utils.misc import count_params class RNN4Rec(DynEmbedBase, m...
4efdc34a94c6f5cc5f4b217374c44bae682394d0
751fe2de18f00596e4f1ed342b56bd6f38ee2053
/wisdem/rotorse/rotor_power.py
d34f691fd49c2f52091a66578d7ae81824fdc68b
[ "Apache-2.0" ]
permissive
WISDEM/WISDEM
42fa780915d62fd4e4203050e886093ecc806c8a
d7270ebe1c554293a9d36730d67ab555c071cb17
refs/heads/master
2023-08-04T01:22:43.215105
2023-06-22T23:36:07
2023-06-22T23:36:07
23,678,280
120
86
Apache-2.0
2023-06-22T19:26:34
2014-09-04T20:30:24
Python
UTF-8
Python
false
false
47,627
py
rotor_power.py
""" Script that computes the regulation trajectory of the rotor and the annual energy production Nikhar J. Abbas, Pietro Bortolotti January 2020 """ import logging import numpy as np from openmdao.api import Group, ExplicitComponent from scipy.optimize import brentq, minimize, minimize_scalar from scipy.interpolate ...
9aa7fa4963d7e54db9d917f1f9322015b71c3ebe
e04a5b20f946c5033f24d4dd8acda395a98747c5
/h2o/custom-recipes/h2o-build-model/recipe.py
0d5a7646838446942407d4380b65ee888bfbdea9
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive" ]
permissive
dataiku/dataiku-contrib
2a2f2fb420d7f2ab49b82d80659cc6f6ec1d8f61
9a9f189e8a544a81c205d8a8b3779d4517b88653
refs/heads/master
2023-09-04T03:33:58.625093
2023-04-26T08:17:34
2023-04-26T08:17:34
45,074,604
103
94
Apache-2.0
2023-06-08T21:29:07
2015-10-27T22:41:00
Python
UTF-8
Python
false
false
3,962
py
recipe.py
# coding: utf-8 import dataiku from dataiku.customrecipe import * import pandas as pd import os, sys, json, shutil import h2o from h2o_utils import DSS_dataset_to_H2O_frame, saved_model_folder ## init h2o ip = get_plugin_config()['h2o_server_ip'] port = int(get_plugin_config()['h2o_server_port']) h2o.init(ip, port) #...
5336fb2fc5f663884881e6ec71ce361087510092
40282fc3afc28166ce01cdf2240d445a1930f2b0
/docs/sections/section5/solutions/breakout_1_sol.py
003975ee8e69ce82e64900a0fb14ea887ffb7b23
[ "MIT" ]
permissive
Harvard-IACS/2020-CS109A
7dac61f88aefe9647fe7e3eabb3dc6ef85cc8d73
665100fec24309edb818a51bc8c29db2912d370f
refs/heads/master
2022-07-31T18:05:47.127653
2021-11-17T22:30:00
2021-11-17T22:30:00
287,811,847
114
123
MIT
2022-05-04T06:26:14
2020-08-15T19:28:34
Jupyter Notebook
UTF-8
Python
false
false
937
py
breakout_1_sol.py
# init breakout 1 solution # Train model model1_wine = LogisticRegression(penalty='none').fit(X_wine_train, y_wine_train) # Score model train_score = model1_wine.score(X_wine_train, y_wine_train) test_score = model1_wine.score(X_wine_test, y_wine_test) # Print scores print("Training Set Accuracy: {:.4f}".format(trai...
e0da69acd1b096f5475b650be74766344cd7511b
6a85191d6c2ae1e0db5873e7c6cb5d341eb72253
/benchs/bench_speed.py
6709e121c14fd4195aa06b4d859040aac920dbca
[ "MIT" ]
permissive
KinglittleQ/torch-batch-svd
3875b182ec2b496fda46dacbbb4e972b741d8223
c0a96119187f7d55f939d2ff2b92942c6d6ca930
refs/heads/master
2022-10-23T06:23:39.906646
2022-10-10T05:27:37
2022-10-10T05:27:37
171,496,660
356
36
MIT
2022-05-04T02:51:00
2019-02-19T15:17:40
C++
UTF-8
Python
false
false
837
py
bench_speed.py
import torch from torch_batch_svd import svd def bench_speed(N, H, W): start = torch.cuda.Event(enable_timing=True) end = torch.cuda.Event(enable_timing=True) torch.manual_seed(0) a = torch.randn(N, H, W).cuda() b = a.clone().cuda() torch.cuda.synchronize() start.record() for i in ra...
dd73a6754441408b1a4f5ad1b7e3558d638e9101
d110546d747d7e3865ce5742d5fca09f404623c0
/tests/pytests/functional/cli/test_batch.py
e721b729cfe4ea93ae8c4b249ab4713abeeb9d80
[ "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
6,639
py
test_batch.py
""" tests.pytests.functional.cli.test_batch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ import salt.cli.batch import salt.config import salt.utils.jid from tests.support.mock import Mock, patch class MockPub: """ Mock salt.client.LocalClient.pub method """ calls = 0 initial_ping = False batch...
7b9b11f5f7d3a5a8406787721a4fdba4305924d8
12f0bd77926127cdacc2452d6f9cfed91806b2fe
/idaes/models_extra/gas_distribution/properties/natural_gas.py
b972d431cc493c1ea43d9b25c80a8eea42f78399
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
IDAES/idaes-pse
e03d2583ae1ba968a7099f9f439fd8c3efa12904
deacf4c422bc9e50cb347e11a8cbfa0195bd4274
refs/heads/main
2023-08-16T19:13:00.355572
2023-08-04T04:19:29
2023-08-04T04:19:29
168,622,088
173
227
NOASSERTION
2023-09-11T16:04:55
2019-02-01T01:12:51
Python
UTF-8
Python
false
false
16,502
py
natural_gas.py
################################################################################# # The Institute for the Design of Advanced Energy Systems Integrated Platform # Framework (IDAES IP) was produced under the DOE Institute for the # Design of Advanced Energy Systems (IDAES). # # Copyright (c) 2018-2023 by the software own...
71fef814f2176bb56c5a64cd711d59869c097434
0c3cf82c1f3f4dfe3f7d3a3d0f5912a25c821264
/pandasdmx/urn.py
aec252a27a0555d3b6b332e54859059b108176b4
[ "LicenseRef-scancode-warranty-disclaimer", "Python-2.0", "Apache-2.0" ]
permissive
dr-leo/pandaSDMX
ae9ac430433afa0e57a574ba0aea416fdb3c399f
c72224efd2219db9b926de9c7ca8d312132ab592
refs/heads/master
2023-03-10T17:40:08.026395
2023-02-25T19:23:44
2023-02-25T19:23:44
21,954,882
128
60
Apache-2.0
2023-02-25T13:33:19
2014-07-17T19:33:42
Python
UTF-8
Python
false
false
1,655
py
urn.py
import re from typing import Dict from pandasdmx.model import PACKAGE, MaintainableArtefact # Regular expression for URNs URN = re.compile( r"urn:sdmx:org\.sdmx\.infomodel" r"\.(?P<package>[^\.]*)" r"\.(?P<class>[^=]*)=((?P<agency>[^:]*):)?" r"(?P<id>[^\(\.]*)(\((?P<version>[\d\.]*)\))?" r"(\.(?P<...
fd3b5f22ee2a1b6a36abe98888fa8ef6b1e1282a
019f03d6713a2bc5344b644aeb5ebe70aaf7cfd0
/src/super_gradients/common/exceptions/sg_trainer_exceptions.py
73202c50a13df2418ef7fc23fa20bb5ee5c3a241
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
Deci-AI/super-gradients
6f52cd15bc2f9f39e3cdc6067292b6512aba5dd0
7240726cf6425b53a26ed2faec03672f30fee6be
refs/heads/master
2023-08-25T17:47:02.595029
2023-08-24T11:50:50
2023-08-24T11:50:50
432,652,408
3,237
331
Apache-2.0
2023-09-14T11:24:46
2021-11-28T07:58:02
Jupyter Notebook
UTF-8
Python
false
false
1,268
py
sg_trainer_exceptions.py
class UnsupportedTrainingParameterFormat(Exception): """Exception raised illegal training param format. :param desc: Explanation of the error """ def __init__(self, desc: str): self.message = "Unsupported training parameter format: " + desc super().__init__(self.message) class Unsupp...
69b6b2065f5e70111452420d2ea2d5889446f83b
92b2002d90f4a3d8d7ae2e10c3dc9df3145e6e80
/examples/minimal.py
01087600256f70fb90c86c36a5c439f5a0037aed
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sciter-sdk/pysciter
62cc25d75f9630c84ad446316effae91592e339c
a32b2cee5e6ada5c2bd210bf790710671668cbe1
refs/heads/master
2023-08-17T08:23:46.645047
2022-08-27T00:48:52
2022-08-27T03:24:46
51,951,031
403
49
MIT
2022-08-27T03:24:47
2016-02-17T19:57:51
Python
UTF-8
Python
false
false
298
py
minimal.py
"""Minimalistic PySciter sample for Windows.""" import sciter if __name__ == '__main__': sciter.runtime_features(file_io=True, allow_sysinfo=True) frame = sciter.Window(ismain=True, uni_theme=True) frame.minimal_menu() frame.load_file("examples/minimal.htm") frame.run_app()
0d5ee2af7245061d495ab3b5f5e19fcae85ca42f
4124e6d1a99b40e3e990915969899ba0ddfa9390
/kaldi/matrix/packed.py
17f3206e1624f32f143cad09faec49385b0f47e4
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
pykaldi/pykaldi
23f0554072e99fbfa036be27a1b4d1e08f719525
b482f79a334383a16a3805d658aa221ca3d23c6d
refs/heads/master
2023-03-10T06:02:38.465779
2022-05-29T21:24:42
2022-05-29T21:24:42
94,806,200
1,019
283
Apache-2.0
2022-09-18T13:34:33
2017-06-19T18:05:19
Python
UTF-8
Python
false
false
9,317
py
packed.py
from . import _kaldi_matrix import _matrix_common # FIXME: Relative/absolute import is buggy in Python 3. from . import _packed_matrix from . import _sp_matrix from . import _tp_matrix ################################################################################ # single precision packed matrix types ##############...
9a9bff98d86e84402ffa9854fd3ff33b11ca04d1
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/__init__.py
aaa15e299059770892415dbb4e89b99363571a8e
[]
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
4,177
py
__init__.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/__init__.py from frameworks.wulf import WindowLayer from gui.Scaleform.daapi.settings.views import VIEW_ALIAS from gui.Scaleform.framework import ScopeTemplates, ComponentSettings, GroupedV...
5606e56d8675469ac42ba379db7dc888ddfdbddc
279f415dd1e06c594c6c87deda57e201c73c4542
/test/espnet2/utils/test_eer.py
8c44c334b4153ac1e343a5018efdae88b75d294b
[ "Apache-2.0" ]
permissive
espnet/espnet
f7ba47271c1a6b1ed606dbbfb04a7f14220bb585
bcd20948db7846ee523443ef9fd78c7a1248c95e
refs/heads/master
2023-08-28T23:43:34.238336
2023-08-23T02:51:39
2023-08-23T02:51:39
114,054,873
7,242
2,244
Apache-2.0
2023-09-14T08:01:11
2017-12-13T00:45:11
Python
UTF-8
Python
false
false
591
py
test_eer.py
import pytest from espnet2.utils.eer import ComputeErrorRates, ComputeMinDcf, tuneThresholdfromScore @pytest.mark.parametrize( "scores, labels, eer", [([0.0, 1.0], [0, 1], 0.0), ([0.7, 0.2, 0.9, 0.3], [0, 1, 0, 1], 100.0)], ) def test_eer_computation(scores, labels, eer): results = tuneThresholdfromScore...
8ca81420eb4a07b62d8b3b742e299c1efa39e5d9
0ae45f428c4ad4c5a5e4861e68380b451d11132f
/trench/backends/aws.py
7d8cfaed3f1ae583a5d208353ebd4b01cda96c31
[ "MIT" ]
permissive
merixstudio/django-trench
09645d38b40dccf3b3db19b1c020a8ea8c35d741
b7f0eb4f0031e6013826e59a38ebd7010661cfd9
refs/heads/develop
2023-06-10T21:21:30.426789
2023-03-17T08:18:30
2023-03-17T08:18:30
151,680,451
270
53
NOASSERTION
2023-05-25T02:33:36
2018-10-05T06:39:47
Python
UTF-8
Python
false
false
1,460
py
aws.py
from django.utils.translation import gettext_lazy as _ import logging import boto3 import botocore.exceptions from trench.backends.base import AbstractMessageDispatcher from trench.responses import ( DispatchResponse, FailedDispatchResponse, SuccessfulDispatchResponse, ) from trench.settings import AWS_AC...
7f1ae740797336605ae009af3208d4d6dca930d3
432ea480327c3e0ce37d605d1c4ac29a8b653853
/src/visions/typesets/typeset.py
f42fa302178044f52a7f0c8a7ded1e21d5169dd3
[ "BSD-4-Clause", "BSD-2-Clause" ]
permissive
dylan-profiler/visions
3f7f99b06cc8a7b90cb4df988dbbec6c329a8e0a
a0b55bbf95e6efe001195e4b497358d6283966b5
refs/heads/develop
2022-11-27T01:17:01.735418
2022-10-30T10:44:37
2022-10-30T10:44:37
227,633,867
188
23
NOASSERTION
2022-10-05T23:06:31
2019-12-12T15:09:01
Python
UTF-8
Python
false
false
15,020
py
typeset.py
import warnings from functools import singledispatch from pathlib import Path from typing import ( Any, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Type, TypeVar, Union, ) import networkx as nx import pandas as pd from visions.types.generic import Generic from vis...
6ff8b6a6f28bcc1e77853be40c923520aadc5f95
51819802a13fbf4c71ea0f6ee3771b86fcf1834c
/srsly/tests/ruamel_yaml/test_fail.py
02cef0b11f5ecb59408ecb0eeac299c049de26d3
[ "MIT" ]
permissive
explosion/srsly
1860eda76b79bce49e46a8edeb39828774d1d900
1aa4ae1b690b513092ce1e58257427cddf38e97f
refs/heads/master
2023-08-23T00:56:04.762619
2023-07-24T11:40:07
2023-07-24T11:40:07
159,904,634
383
43
MIT
2023-07-25T12:13:06
2018-12-01T03:21:56
Python
UTF-8
Python
false
false
6,290
py
test_fail.py
# coding: utf-8 # there is some work to do # provide a failing test xyz and a non-failing xyz_no_fail ( to see # what the current failing output is. # on fix of srsly.ruamel_yaml, move the marked test to the appropriate test (without mark) # and remove remove the xyz_no_fail import pytest from .roundtrip import roun...
0835da7cedca8f7ab911ceca733269288141afa2
bed34365a9dab825fd9f4a4ff1b0863f441266ac
/neutron/api/v2/base.py
4dffbed7c43d3434f2cb63405480932939645e29
[ "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
38,420
py
base.py
# Copyright (c) 2012 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...
3fe267d37c2a2bdde093c6098cd591609956cbe4
2337351b228818e41be3002bd38f68f77c2aa074
/sa/profiles/Huawei/VRP3/get_config.py
0535150e9cb761312a0874ad37bff71b275ed4dc
[ "BSD-3-Clause" ]
permissive
nocproject/noc
57d40c680a1499374463e472434f9595ed6d1374
6e6d71574e9b9d822bec572cc629a0ea73604a59
refs/heads/master
2023-08-31T01:11:33.544573
2023-08-30T17:31:11
2023-08-30T17:31:11
107,815,776
105
33
BSD-3-Clause
2023-07-31T07:57:45
2017-10-21T21:04:33
Python
UTF-8
Python
false
false
950
py
get_config.py
# --------------------------------------------------------------------- # Huawei.VRP3.get_config # sergey.sadovnikov@gmail.com # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # ---------------------------------------------------...
f948c90a2ad774777e348ade41d56aa7d9b65453
4fb35218d67890a6e011b149be391dfd78d931b7
/self_instruct/src/data_processing/generate_char_image_prompts.py
231055635444f2de8e0d463ae5866c79a9d8cc3b
[ "Apache-2.0" ]
permissive
IlyaGusev/rulm
8d76dc9f1b230e314412673b3b3ed7312b1de3db
ede656a2fa6cd68af8ae3dfecde300758a9bae6f
refs/heads/master
2023-07-28T10:31:47.336766
2023-07-26T19:03:23
2023-07-26T19:03:23
148,945,566
204
23
Apache-2.0
2023-08-26T13:07:05
2018-09-15T22:45:08
Jupyter Notebook
UTF-8
Python
false
false
2,852
py
generate_char_image_prompts.py
import json import os import shutil import fire from jinja2 import Template from tqdm import tqdm from src.util.io import read_jsonl, write_jsonl from src.util.openai import openai_batch_completion, OpenAIDecodingArguments def encode_prompt(char, template_path): with open(template_path) as f: template =...
bcf2c78d58dbedbcc7a2d9e792e0ec6c93e7ca0d
09557f76830b73d95ac1c7175833bc74280db53b
/dmb/utils/dist_utils.py
249c42feb428e5d54f3d41b2a98e251a8499deb8
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DeepMotionAIResearch/DenseMatchingBenchmark
e32c6c0846dcb4103289d539be28ef7382b70c8e
010aeb66e3ceaf3d866036b0ca751861df39432d
refs/heads/master
2021-11-11T18:56:05.160934
2021-11-08T10:28:47
2021-11-08T10:28:47
222,069,511
183
39
null
null
null
null
UTF-8
Python
false
false
3,042
py
dist_utils.py
from collections import OrderedDict import torch.distributed as dist from torch._utils import ( _flatten_dense_tensors, _unflatten_dense_tensors, _take_tensors ) from mmcv.runner import OptimizerHook try: from apex import amp import apex except ImportError: raise ImportError('Use APEX for multi-precis...
fb2b0f739ab1ad22597faf3a1c5d59a3764404d0
95b4a15808b9c412c8364db80fd619a65dd587e0
/src/compas/geometry/_core/predicates_3.py
55560cdf7a9f675f965a06b1f27ce75bb64b8d32
[ "MIT" ]
permissive
compas-dev/compas
11d5c4d9afd554833297b4a5dbe6a975e6940ce3
486e2e9332553240bcbd80e100d26bff58071709
refs/heads/main
2023-08-31T15:49:32.430570
2023-08-17T10:19:52
2023-08-17T10:19:52
104,857,648
286
116
MIT
2023-09-12T13:53:36
2017-09-26T08:28:01
Python
UTF-8
Python
false
false
17,563
py
predicates_3.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from math import fabs from compas.utilities import window from compas.geometry import subtract_vectors from compas.geometry import cross_vectors from compas.geometry import dot_vectors from compas.geometry im...
0b92fdcbde539dba413e965eb06dc0debf7c1664
4506d81df5ae98078e5cbe79f613514ad12b1c83
/nipype/interfaces/slicer/registration/specialized.py
e03f1a95b1686f5c4ba2800d7d0bcbf55494ccf9
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
nipy/nipype
d52eba1b98fda68e24d006ac0d5701fc8a531b9c
03a236320fa229299d637ff9af97865a6ae76aca
refs/heads/master
2023-08-28T10:36:07.020541
2023-08-25T13:40:09
2023-08-25T13:40:09
791,477
692
569
NOASSERTION
2023-09-11T06:04:51
2010-07-22T17:06:49
Python
UTF-8
Python
false
false
25,701
py
specialized.py
"""Autogenerated file - DO NOT EDIT If you spot a bug, please report it on the mailing list and/or change the generator.""" from nipype.interfaces.base import ( CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, ...
89cf808962ee35982e6ea2b77b1a1e5ea997cc5d
bec3ad1268b2b45941a2f4277ccd8e2a0860952e
/2020/KAPO/Child_Beubmi/config.py
0e7363311e68c327e8357b72be93152e89498b55
[]
no_license
pcw109550/write-up
7a5e19e6c52f7831c6c7709331eb84b9a67cfd2c
bf6ab22619a107c8eb4011861a3c1ea80ac1c9f8
refs/heads/master
2023-07-08T18:10:56.780156
2023-07-04T17:28:12
2023-07-04T17:28:12
186,902,436
168
34
null
2023-02-08T05:21:24
2019-05-15T21:03:53
Sage
UTF-8
Python
false
false
1,170
py
config.py
(N, e, ct) = (463082806219936580883135666334369918679238281446351110278776719661479088673665544319208959694407590613953423024929195611477219164472874962273346765831858927593487925977518628492905858122061607836951556625898739173918175634438349489053081163089035828510864774700923582441063158846702096255234134036013036677...
f617a19ca804c92fe834ce7fc2946085dafed5d0
ec85250addb7357dfe7bb3e0680d53fc7b0fd8fb
/python_modules/libraries/dagster-azure/dagster_azure_tests/adls2_tests/test_io_manager.py
93701dd7fe8d03d6c69ff3e6632aaaa7c3be4ad4
[ "Apache-2.0" ]
permissive
dagster-io/dagster
6adb5deee8bcf3ea1866a6a64f2ed81e1db5e73a
fe21995e0402878437a828c6a4244025eac8c43b
refs/heads/master
2023-09-05T20:46:08.203794
2023-09-05T19:54:52
2023-09-05T19:54:52
131,619,646
8,565
1,154
Apache-2.0
2023-09-14T21:57:37
2018-04-30T16:30:04
Python
UTF-8
Python
false
false
12,272
py
test_io_manager.py
from uuid import uuid4 import pytest from azure.storage.filedatalake import DataLakeLeaseClient from dagster import ( AssetIn, AssetKey, DagsterInstance, DagsterRun, DynamicOut, DynamicOutput, GraphOut, In, Int, Out, asset, build_input_context, build_output_context, ...
c5f51fd472d21caabf4836f8f0093a4ec2d8b6b0
d6aae799e18e907fb413b715200c7832252a87e5
/responsible_ai/data_cleansing/datasets/create_cifar10_csv.py
5c0e4010ec658ff2c623e2527eaa1795cc380761
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-proprietary-license", "Apache-2.0", "CC-BY-NC-4.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sony/nnabla-examples
0d0bbd5df3028996e790bcf07248fdb0932697d1
41f71faa6efff7774a76bbd5af3198322a90a6ab
refs/heads/master
2023-09-04T03:45:54.023899
2023-08-22T03:31:21
2023-08-22T03:31:21
109,625,584
308
108
Apache-2.0
2023-08-22T03:31:23
2017-11-05T23:30:40
Python
UTF-8
Python
false
false
7,610
py
create_cifar10_csv.py
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group 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 requi...
e975437d8e08f014c028d73e896b04089bbcc6ff
6b6d42eadf53e90b08ce564fb188a9a4b126ef12
/testsuite/tests/properties/imprecise_is_dot_call/test.py
4b914051ea65f2aa64e7f6f48e4bc9cd4219142d
[ "Apache-2.0", "LLVM-exception", "NCSA" ]
permissive
AdaCore/libadalang
f97b95d1672cb1e5083c49ee632c6f9c787d36c2
50d658afa70ccbf46b8f7d9d43a21d45d56b206c
refs/heads/master
2023-09-01T18:34:26.976692
2023-08-25T15:53:43
2023-08-25T15:53:43
47,627,172
158
49
Apache-2.0
2022-12-14T10:29:45
2015-12-08T14:28:22
Ada
UTF-8
Python
false
false
556
py
test.py
import sys import libadalang as lal for filename in sys.argv[1:]: print('== {} =='.format(filename)) u = lal.AnalysisContext().get_from_file(filename) assert not u.diagnostics for n in u.root.findall(lal.DottedName): is_dot_call_precise = n.p_is_dot_call(imprecise_fallback=False) is_...
7ef63801e9b67b597ad1f02ae48d429b7c2d8a41
ec120a737f147a0e5c495ede305098345a1055a8
/niftymic/application/register_image.py
bddcc793a7e1391a701f3939a328b40bf4edf76a
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
gift-surg/NiftyMIC
bbc56009f300d4572b92177098ebe319e646a613
553bce0824e7b40cd221897b683142d9aeee77d8
refs/heads/master
2022-03-08T06:18:29.877635
2022-02-15T12:58:45
2022-02-15T12:58:45
108,846,947
118
31
BSD-3-Clause
2020-11-26T17:47:34
2017-10-30T12:21:38
Python
UTF-8
Python
false
false
10,207
py
register_image.py
## # \file register_image.py # \brief Script to register the obtained reconstruction to a template # space. # # \author Michael Ebner (michael.ebner.14@ucl.ac.uk) # \date October 2017 # import re import os import numpy as np import SimpleITK as sitk import pysitk.python_helper as ph import ...
f6c2b712ba5ad5340544139ac8a437bec567b4b4
10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8
/tests/unit/lib/utils/test_boto_utils.py
626d9d1ab2578ae7ae8b10693e01d9759da10c25
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
aws/aws-sam-cli
6d4411aacf7f861e75e5cf4882a32858797a276d
b297ff015f2b69d7c74059c2d42ece1c29ea73ee
refs/heads/develop
2023-08-30T23:28:36.179932
2023-08-30T21:58:26
2023-08-30T21:58:26
92,205,085
1,402
470
Apache-2.0
2023-09-14T21:14:23
2017-05-23T18:16:23
Python
UTF-8
Python
false
false
5,290
py
test_boto_utils.py
from unittest import TestCase from unittest.mock import patch, Mock from parameterized import parameterized from samcli.lib.utils.boto_utils import ( get_boto_config_with_user_agent, get_boto_client_provider_with_config, get_boto_resource_provider_with_config, get_boto_resource_provider_from_session_w...
0474c1216340f5a96572bb5924fbec4f134cfaa4
6e235014528acc05996e6a4ef2b33e348bbc5114
/json_to_models/models/string_converters.py
988abdd0e80e619f739d351b346816ca6c85ab25
[ "MIT" ]
permissive
bogdandm/json2python-models
f7cf02417c38de587d86aa045756c6b61aa42cb1
e2606e8f2c22d3bc11b09f5eb2bc73323ce151c5
refs/heads/master
2023-01-13T03:47:47.135160
2023-01-02T12:28:47
2023-01-02T12:28:47
144,019,032
153
12
MIT
2023-01-02T12:18:26
2018-08-08T13:40:00
Python
UTF-8
Python
false
false
6,197
py
string_converters.py
from functools import wraps from inspect import isclass from typing import Any, Callable, List, Optional, Tuple from . import ClassType from ..dynamic_typing import ( BaseType, DDict, DList, DOptional, DUnion, MetaData, ModelMeta, ModelPtr, StringLiteral, StringSerializable ) fr...
7826ab481bd46145aedaa5af279da3048327cf84
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-IOBluetoothUI/setup.py
d6348366ee9147205b7a01c47f3420d8ae26ca04
[ "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
825
py
setup.py
""" Wrappers for the "IOBluetoothUI" framework on macOS. These wrappers don't include documentation, please check Apple's documentation for information on how to use this framework and PyObjC's documentation for general tips and tricks regarding the translation between Python and (Objective-)C frameworks """ import o...
59c49eaf756c01fae0fffa3756d2b8fd6d4ea950
c641636e184c0ec1dcc7b851bad678c898cdd05d
/legacy/examples/SAGPool/layers.py
3dfa0822ece9e564adfbc9b15e0a62e1e1f4b08d
[ "Apache-2.0" ]
permissive
PaddlePaddle/PGL
d8f0a82854a141bee1afdddd9a77bdd723c83ed8
7a55649d46d7ad93de31eb9b3ebf71b82d1fcffb
refs/heads/main
2023-08-17T10:33:02.425526
2023-08-04T02:52:06
2023-08-04T02:52:06
191,286,408
1,719
341
Apache-2.0
2023-08-04T02:52:07
2019-06-11T03:23:28
Python
UTF-8
Python
false
false
5,024
py
layers.py
# 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 required by applic...
a353f873272b601c3a1090f0b1c8c5f91146f789
04b020de6a2bc96bc8b30b369c4440e360f60e88
/tests/unit/server/server_tests.py
07dc7bf985e0d2d1008ea3df2ff22979b167b88f
[ "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "CC-BY-SA-3.0", "LicenseRef-scancode-proprietary-license", "BSD-3-Clause-Modification", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
reddit/baseplate.py
5dbfaac91dafab31078f44b3d3438669c9ddeac0
114248987ce0e8a0ddd102c80b00ef43f4dbf14e
refs/heads/develop
2023-09-05T15:34:26.476934
2023-08-07T21:52:49
2023-08-07T21:52:49
44,694,978
237
125
BSD-3-Clause
2023-09-05T19:22:27
2015-10-21T18:07:55
Python
UTF-8
Python
false
false
6,766
py
server_tests.py
import io import socket import sys import unittest from unittest import mock import pytest from baseplate import server from baseplate.lib import config EXAMPLE_ENDPOINT = config.EndpointConfiguration(socket.AF_INET, ("127.0.0.1", 1234)) class ParseArgsTests(unittest.TestCase): def test_no_args(self): ...
6dc7c3da9af6f34bc37700d143dfebfa2e88625b
52245910f830dbfb2b1432ad2a967df7321ee6de
/panel/theme/__init__.py
80b6d93a7cf824640223ad2e5bfb47ea503cc1bb
[ "BSD-3-Clause" ]
permissive
holoviz/panel
92c19f979353d456512abbce5a027dff6ddb3a5c
2c6e165e2bba96c0cb97947aa072d4429133cf7a
refs/heads/main
2023-08-17T11:28:06.581979
2023-08-17T11:23:09
2023-08-17T11:23:09
145,848,899
2,544
373
BSD-3-Clause
2023-09-14T17:13:31
2018-08-23T12:14:24
Python
UTF-8
Python
false
false
627
py
__init__.py
""" The theme module contains Design and Theme components. Each Design applies a coherent design system (e.g. bootstrap or material) to a template or a set of components, while Theme objects implement different color palettes (e.g. dark or default). """ from .base import ( # noqa THEMES, DarkTheme, DefaultTheme,...
04c9f14aa427f8f19fc1f37bafd6d2ee8f443f63
a79c7c01b97e391bcd833a8b7b1dfd7cf982d59c
/tests/unit/experience_replay_tests.py
50f61a69cae5bf0fe570de4ab1cc87cc3cc00a98
[ "Apache-2.0" ]
permissive
learnables/cherry
32f3a545563e0446ad3b0243a5cc8225033c0a7f
f4164a53dcc762ac5ce53a761fb54f3f69847f90
refs/heads/master
2023-06-27T14:20:06.027516
2023-06-26T01:34:54
2023-06-26T01:34:54
159,752,575
185
33
Apache-2.0
2023-06-26T01:34:56
2018-11-30T01:46:38
Python
UTF-8
Python
false
false
21,118
py
experience_replay_tests.py
#!/usr/bin/env python3 import unittest import random import numpy as np import torch as th import cherry as ch import os import copy NUM_SAMPLES = 100 VECTOR_SIZE = 5 def close(a, b): return (a-b).norm(p=2) <= 1e-8 class TestExperienceReplay(unittest.TestCase): def setUp(self): self.replay = ch....
45973df7debe7c5b0f52bf00a6989cb4cb83faa6
87d9e6c0606ec9b18d2016fe4e21601c7b37b216
/src/postmarker/models/domains.py
b44280d3722b5ebb73658ae65d9e02f106cd3caf
[ "Python-2.0", "MIT" ]
permissive
Stranger6667/postmarker
d693f1b4d03f8770c5415048ad896601ba618a04
c5717014b6c837502353a8a5361832cb3bc49d7b
refs/heads/master
2023-06-22T01:57:01.797338
2022-01-15T14:09:43
2022-01-15T14:09:43
69,878,276
116
28
MIT
2023-06-20T20:17:31
2016-10-03T14:24:07
Python
UTF-8
Python
false
false
2,119
py
domains.py
from .base import Model, ModelManager class Domain(Model): def __str__(self): return "{}: {} ({})".format( self.__class__.__name__, self._data.get("Name"), self._data.get("ID"), ) def get(self): new_instance = self._manager.get(self.ID) self...
d2c778f4bf398e89bae51307d1abf0d9dd4563dd
b4faab9b904d155ce6e781a675f972dcb810c008
/nunif/modules/charbonnier_loss.py
4149bd784782a6f99ca7426aef64ee5a97c2ca5b
[ "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
622
py
charbonnier_loss.py
from torch import nn import torch def charbonnier_loss(input, target, reduction="mean", eps=1.0e-6): loss = torch.sqrt(((input - target) ** 2) + eps ** 2) if reduction is None or reduction == "none": return loss elif reduction == "mean": return loss.mean() else: return loss.sum...
02145d5e509634892ea13491ac95d3e4d6f67dbc
74164811083a502d294d970ade1ec81aa49e130c
/MicroTokenizer/ensemble/merge_solutions.py
8f8e4337ab4bdf24c09c72173d5c395ace888f04
[ "MIT" ]
permissive
howl-anderson/MicroTokenizer
51d89a52edd84f863e8f06426a8da5517b2b9c1a
f0ad19ee42fc947f432dfcbe687a474ccc78c7c8
refs/heads/master
2023-01-05T12:42:27.294464
2021-09-28T10:32:02
2021-09-28T10:32:02
137,062,055
153
19
MIT
2022-12-26T20:40:49
2018-06-12T11:28:38
Python
UTF-8
Python
false
false
2,856
py
merge_solutions.py
import networkx as nx class MergeSolutions(object): def __init__(self): self.G = nx.DiGraph() self.start_node = "<start>" self.G.add_node(self.start_node, label=self.start_node) self.end_node = "<end>" self.G.add_node(self.end_node, label=self.end_node) self.existi...
53c4e89784ea79247256eedb1dc4d6ed13ea8b66
568fa58296378fa129ab3349adf010daa44ed45b
/tests/common/test_run/ascend/prelu_run.py
ac8101af8ba5acba9887263f551f12d6db146a04
[ "Apache-2.0", "BSD-3-Clause", "NCSA", "X11-distribute-modifications-variant", "Zlib", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "LLVM-exception", "BSD-2-Clause" ]
permissive
mindspore-ai/akg
37f471badc66de6a831f1f45ad84344f34d23ef2
99f33858d6972741748cbfc9ab0bf9600428fef7
refs/heads/master
2023-07-25T23:03:17.672665
2023-07-11T07:33:57
2023-07-11T07:33:57
274,077,856
319
36
Apache-2.0
2021-12-30T13:43:08
2020-06-22T08:09:05
Python
UTF-8
Python
false
false
3,218
py
prelu_run.py
# Copyright 2019-2021 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 agre...
f83267d1fc636e99cbf1b3b104a834af0a1b3017
96dcea595e7c16cec07b3f649afd65f3660a0bad
/tests/components/automation/test_recorder.py
4aa84dbd6027eeee50828515f325a0225861adaf
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
2,199
py
test_recorder.py
"""The tests for automation recorder.""" from __future__ import annotations import pytest from homeassistant.components import automation from homeassistant.components.automation import ( ATTR_CUR, ATTR_LAST_TRIGGERED, ATTR_MAX, ATTR_MODE, CONF_ID, ) from homeassistant.components.recorder import R...
4212a4edb1893a80b545e6994ddf43b1c2e9501a
2dd26e031162e75f37ecb1f7dd7f675eeb634c63
/nemo/collections/nlp/models/language_modeling/megatron_gpt_peft_models.py
c32c9a8c5d237090ba4c325076c309b770897bb5
[ "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
24,598
py
megatron_gpt_peft_models.py
# coding=utf-8 # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
54c6354058966ea39fddc399ce65ad91ab5718cb
811f4cdb25e26f3b27640aaa2e2bca93e660d2d7
/tools/benchmarking/utils/__init__.py
b9eebfed7836c8126a66de81f48d7e1ee64757fc
[ "CC-BY-SA-4.0", "CC-BY-SA-3.0", "CC-BY-NC-SA-4.0", "Python-2.0", "Apache-2.0" ]
permissive
openvinotoolkit/anomalib
4467dfc392398845e816387267cdf979ff76fe15
4abfa93dcfcb98771bc768b334c929ff9a02ce8b
refs/heads/main
2023-09-03T16:49:05.019269
2023-08-28T14:22:19
2023-08-28T14:22:19
423,775,360
2,325
454
Apache-2.0
2023-09-14T11:21:33
2021-11-02T09:11:38
Python
UTF-8
Python
false
false
269
py
__init__.py
"""Utils specific to running benchmarking scripts.""" # Copyright (C) 2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from .metrics import upload_to_comet, upload_to_wandb, write_metrics __all__ = ["write_metrics", "upload_to_comet", "upload_to_wandb"]
8e7439bbfa2655c6d8deb5074f0ac35c55bbe3eb
7e844c1b6f06941285a91bd488700a90ce142216
/tests/conftest.py
530a4c2a5f9917d62ffed2e2eecfdb8164655740
[ "Apache-2.0" ]
permissive
psf/requests
8e0ae54deb392c335de687522394ffb8445292e7
8b560ecb24ee4fa4e839272dcf2653a4fa525a34
refs/heads/main
2023-09-04T15:46:56.978881
2023-08-29T14:27:10
2023-08-29T14:27:10
1,362,490
13,941
3,733
Apache-2.0
2023-09-14T09:01:08
2011-02-13T18:38:17
Python
UTF-8
Python
false
false
1,581
py
conftest.py
try: from http.server import HTTPServer, SimpleHTTPRequestHandler except ImportError: from BaseHTTPServer import HTTPServer from SimpleHTTPServer import SimpleHTTPRequestHandler import ssl import threading import pytest from requests.compat import urljoin def prepare_url(value): # Issue #1483: Make...
aeadc457adde8c5a5a1074465fa3785d889fe25b
5e9576c368e98927e2965bd2fb23bd35d9993d69
/featuretools/primitives/standard/aggregation/last.py
45728cb3fed49f36a2a4d8c76e8925e94fa89811
[ "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
656
py
last.py
from woodwork.column_schema import ColumnSchema from featuretools.primitives.base.aggregation_primitive_base import AggregationPrimitive from featuretools.utils.gen_utils import Library class Last(AggregationPrimitive): """Determines the last value in a list. Examples: >>> last = Last() >>> ...
dcb8ada4ce86a1053dff4ca05e41cf422b2839bc
5dc77586e3e0f9de1f032fd2ca68494d8e58928f
/great_expectations/dataset/pandas_dataset.py
979294410278cfd94e1337aa0887ada654abbac5
[ "Apache-2.0" ]
permissive
great-expectations/great_expectations
dd7c22e6277d6b08bee3ff38a015e6e8cd434df6
b0290e2fd2aa05aec6d7d8871b91cb4478e9501d
refs/heads/develop
2023-09-04T09:30:26.395518
2023-09-02T00:00:13
2023-09-02T00:00:13
103,071,520
8,931
1,535
Apache-2.0
2023-09-14T19:57:16
2017-09-11T00:18:46
Python
UTF-8
Python
false
false
68,612
py
pandas_dataset.py
import inspect import json import logging from datetime import datetime from functools import wraps from operator import ge, gt, le, lt from typing import List import jsonschema import numpy as np import pandas as pd from dateutil.parser import parse from scipy import stats from great_expectations.compatibility.typin...
4746eb98546fcdab2d925c17c06c1bd8a8181433
375a222af8a11353c86d4bcdfbcb5e6ac1b81a41
/perceiver/data/text/collator.py
f32854b48dd24ff31ddd280c49b19e09b0f3f0c6
[ "Apache-2.0" ]
permissive
krasserm/perceiver-io
5a1ac14ea399d46c0331d82d11d8924b91265a31
4ac9b2c43164cf0372abf7d0239eba74ef3658e8
refs/heads/main
2023-06-25T07:28:11.173330
2023-06-12T11:02:45
2023-06-12T11:02:45
413,288,566
334
34
Apache-2.0
2023-06-12T11:00:26
2021-10-04T05:42:06
Python
UTF-8
Python
false
false
5,753
py
collator.py
from collections import defaultdict from typing import Optional import numpy as np import torch from transformers import ( DataCollatorForLanguageModeling, DataCollatorWithPadding, DefaultDataCollator, PreTrainedTokenizerFast, ) from transformers.utils import PaddingStrategy class Collator: def ...
cebe3db025e8533d23250302394f7131a5ceee86
6e56e6b4bb562cd1db6e38b5f089b863b77e087f
/dragonfly/exd/domains.py
0b0130d34188bcdf460f14e273b79023dd2c199d
[ "MIT" ]
permissive
dragonfly/dragonfly
aa5f3a64bfe7800c44c32e58b487b5733c40035d
3eef7d30bcc2e56f2221a624bd8ec7f933f81e40
refs/heads/master
2023-08-06T08:34:29.317771
2022-10-01T22:21:50
2022-10-01T22:21:50
130,418,835
868
374
MIT
2023-06-19T20:23:17
2018-04-20T22:19:50
Python
UTF-8
Python
false
false
19,702
py
domains.py
""" Harness to manage optimisation domains. -- kandasamy@cs.cmu.edu """ # pylint: disable=invalid-name # pylint: disable=arguments-differ import numpy as np from numbers import Number from scipy.spatial.distance import cdist class Domain(object): """ Domain class. An abstract class which implements domains. ""...
253b97c01f0e75944f29f05790ff224aca5935a0
6d54a7b26d0eb82152a549a6a9dfde656687752c
/scripts/py_matter_yamltests/matter_yamltests/pseudo_clusters/clusters/equality_commands.py
30f6c80b8dea0fa0a16fb2f648483f7b873a8c93
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
project-chip/connectedhomeip
81a123d675cf527773f70047d1ed1c43be5ffe6d
ea3970a7f11cd227ac55917edaa835a2a9bc4fc8
refs/heads/master
2023-09-01T11:43:37.546040
2023-09-01T08:01:32
2023-09-01T08:01:32
244,694,174
6,409
1,789
Apache-2.0
2023-09-14T20:56:31
2020-03-03T17:05:10
C++
UTF-8
Python
false
false
2,227
py
equality_commands.py
# # Copyright (c) 2023 Project CHIP 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 applica...
740d7596120f1863668bbfe8b58da002604aa9b1
aaabf5c6cea75fb6649fafff57d4e92e9b7142b8
/smote_variants/_version.py
270ce0483a784da82e5a31930c91ef037421e040
[ "MIT" ]
permissive
analyticalmindsltd/smote_variants
febcdad7c64c5d6bce5a69a51d7228ea629aa7c4
708568e5b44abdc798d9329f993ac6561ad1439d
refs/heads/master
2023-05-12T21:24:57.222534
2023-04-17T10:43:06
2023-04-17T10:43:06
151,773,885
434
106
MIT
2023-05-04T14:18:28
2018-10-05T20:21:54
Jupyter Notebook
UTF-8
Python
false
false
141
py
_version.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Dec 28 17:21:13 2018 @author: gykovacs """ __version__= '0.7.1'
fb8d5cdb4b53966d71e0d06167c3ab2f5d9be19a
f8dee139258b7d971bd1cfa16bd16e356537bbac
/Contents/Libraries/Shared/subliminal/providers/addic7ed.py
2926081e0d5644343d839c20dfd8276d66d42b83
[ "MIT" ]
permissive
pannal/Sub-Zero.bundle
79673016ae68d1f2e9886fd30b8763b73a8f6cf8
4ced7d8c8f9f5fb47d12410f87fa33d782e9f0f4
refs/heads/master
2023-07-27T23:04:32.925845
2023-07-09T13:07:38
2023-07-09T13:08:04
21,959,699
1,820
178
NOASSERTION
2022-11-28T03:23:13
2014-07-17T22:19:13
Python
UTF-8
Python
false
false
12,524
py
addic7ed.py
# -*- coding: utf-8 -*- import logging import re from babelfish import Language, language_converters from guessit import guessit from requests import Session from . import ParserBeautifulSoup, Provider from .. import __short_version__ from ..cache import SHOW_EXPIRATION_TIME, region from ..exceptions import Authentic...
3584cdd944ab91f1b991a6bb3deab618a1a3343f
c7fda71ef70a7ffcc59ba648e164f5b7666d3fc8
/test/parser/unit_operators/create_testcases/onnx_runner_generator.py
af350a1363496adbb4b8e7d1c59eef267fda0a77
[ "Apache-2.0" ]
permissive
ai-techsystems/deepC
6c7df32ba61f2e85fc1eab5af4ef4f5c1368cf71
064a7cc04f96e20013ad7ae26a6abd6ef16ab77c
refs/heads/master
2023-08-04T06:08:20.817613
2022-10-29T15:12:26
2022-10-29T15:12:26
193,276,319
343
69
Apache-2.0
2021-08-19T19:39:50
2019-06-22T20:23:12
C++
UTF-8
Python
false
false
1,782
py
onnx_runner_generator.py
import os def generate_onnx_runner(op_name, inputs): py_file = ''' # Copyright 2018 The DNNC Authors. All Rights Reserved. # # 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 c...
53d8af48707d94d482cc250ce94cc1fb52089dd2
f53d2df2c979063c48ecf1e751d002c8a389c15c
/test/test_samples/pytest/test/inner_fixture_test.py
6bb875efa1d88c8b4da9dada7e86c5c210152000
[ "MIT" ]
permissive
kondratyev-nv/vscode-python-test-adapter
b5c98653d197dbf58de02070f627ca74e148e9e7
2d3a15a174ea48d19f9978d7942874eafc95107a
refs/heads/master
2023-08-17T17:02:20.643958
2023-08-13T09:16:08
2023-08-13T09:16:08
147,100,981
120
33
MIT
2023-09-09T10:26:30
2018-09-02T16:08:33
TypeScript
UTF-8
Python
false
false
1,178
py
inner_fixture_test.py
import pytest import unittest class Test_CheckMyApp: @unittest.skip("demonstrating skipping") def test_simple_check_skipped(self): pass def test_complex_check_passed(self): pass class Test_NestedClassB: class Test_nested_classC_Of_B: def test_e_passed(self): ...
cb407ded0e3d9a38d2023b81de55dcc43ef186ef
0d6e9c15edafe14b5d373f2180809b94786cdb88
/torch_mimicry/datasets/imagenet/imagenet.py
4c3540ad70a70fc840898c14095ebf3ca5acea5e
[ "MIT" ]
permissive
kwotsin/mimicry
6190e159f96418e9773a453aa17450f372767ffa
a7fda06c4aff1e6af8dc4c4a35ed6636e434c766
refs/heads/master
2023-08-02T21:49:54.864461
2022-08-07T18:28:05
2022-08-07T18:28:05
251,697,485
621
70
MIT
2022-08-07T18:30:23
2020-03-31T18:35:55
Python
UTF-8
Python
false
false
7,704
py
imagenet.py
""" Modified version of imagenet torchvision dataset source code to allow customised token for automatic download. """ from __future__ import print_function import os import shutil import tempfile import torch from torchvision.datasets import ImageFolder from torchvision.datasets.utils import check_integrity, downlo...
2eb22a2a7c62c893a979c6ce8f460f9cb1d554ea
32809f6f425bf5665fc19de2bc929bacc3eeb469
/src/0945-Minimum-Increment-to-Make-Array-Unique/0945.py
2de851d68712850986a9c4c51a53a5ade9f835c8
[]
no_license
luliyucoordinate/Leetcode
9f6bf01f79aa680e2dff11e73e4d10993467f113
bcc04d49969654cb44f79218a7ef2fd5c1e5449a
refs/heads/master
2023-05-25T04:58:45.046772
2023-05-24T11:57:20
2023-05-24T11:57:20
132,753,892
1,575
569
null
2023-05-24T11:57:22
2018-05-09T12:30:59
C++
UTF-8
Python
false
false
579
py
0945.py
class Solution: def minIncrementForUnique(self, A): """ :type A: List[int] :rtype: int """ box, result, max_A = [0]*40000, 0, 0 for a in A: box[a] += 1 if max_A < a: max_A = a for i in range(max_A): ...
d5396da83f13c99ad0e15eb74d21acdce3291e1e
3c6b36eb1f4f9760c52903f6d0ec4a501f948c90
/osp/test/citations/utils/test_clean_field.py
6b56816a35ced7eac7df62ca9313a0c89a1f6938
[ "Apache-2.0" ]
permissive
davidmcclure/open-syllabus-project
38444249af845013e3f281a7a713dca83159c56e
078cfd4c5a257fbfb0901d43bfbc6350824eed4e
refs/heads/master
2021-06-30T21:47:07.636558
2021-06-27T15:15:35
2021-06-27T15:15:35
50,152,020
220
14
Apache-2.0
2021-06-27T15:11:15
2016-01-22T02:29:57
Python
UTF-8
Python
false
false
373
py
test_clean_field.py
import pytest from osp.citations.utils import clean_field @pytest.mark.parametrize('raw,clean', [ ('War and Peace', 'War and Peace'), # Strip whitespace. (' War and Peace ', 'War and Peace'), # Empty -> None. (None, None), ('', None), (' ', None), ]) def test_clean_field(raw, cle...
cbe9305740f7e0a9e8c7be9dbfcb606f8abb2758
da1500e0d3040497614d5327d2461a22e934b4d8
/third_party/web_platform_tests/XMLHttpRequest/resources/auth2/auth.py
8b6682686c8709994a19ae430ed2120a047f9398
[ "BSD-3-Clause", "GPL-1.0-or-later", "LGPL-2.0-or-later", "Apache-2.0", "MIT" ]
permissive
youtube/cobalt
34085fc93972ebe05b988b15410e99845efd1968
acefdaaadd3ef46f10f63d1acae2259e4024d383
refs/heads/main
2023-09-01T13:09:47.225174
2023-09-01T08:54:54
2023-09-01T08:54:54
50,049,789
169
80
BSD-3-Clause
2023-09-14T21:50:50
2016-01-20T18:11:34
null
UTF-8
Python
false
false
309
py
auth.py
import imp import os here = os.path.split(os.path.abspath(__file__))[0] def main(request, response): auth = imp.load_source("", os.path.join(here, "..", "authentication.py")) return auth.main(request, response)
11be347a938f5c901b7ccf57ca56b023b6988126
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/infoxlm/fairseq/fairseq/tasks/semisupervised_translation.py
612ea48c46b1e28a4ab39522ac6f3323d0e6316a
[ "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
19,504
py
semisupervised_translation.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from collections import OrderedDict import os from fairseq.data import ( BacktranslationDataset, IndexedCachedDataset, IndexedDat...
00131fab13b704870de4a2453e7aa99e38d101fc
e3cfab409afb5ff9a0b3812bf848be6ca9239cee
/pygeodesy/auxilats/_CX_4.py
8f0be523af660c0f819c189cb7568d29290f9271
[ "MIT" ]
permissive
mrJean1/PyGeodesy
565266a4f7f6cda5abe98e915bbd868f6cbe1760
eba35704b248a7a0388b30f3cea19793921e99b7
refs/heads/master
2023-08-23T13:58:20.069917
2023-08-20T18:50:45
2023-08-20T18:50:45
68,028,481
283
66
null
2022-04-09T00:40:52
2016-09-12T16:49:10
Python
UTF-8
Python
false
false
8,662
py
_CX_4.py
# -*- coding: utf-8 -*- u'''Coeficients for C{_AUXLATITUDE_ORDER} 4 from I{Karney}'s C++ class U{AuxLatitude <https://GeographicLib.SourceForge.io/C++/doc/classGeographicLib_1_1AuxLatitude.html>} trancoded to a double, uniquified Python C{dict[auxout][auxin]}. Copyright (C) Charles Karney (2022-2023) Karney@Alum.MIT...
7467182243f7e13e03f50be1eb53f31f8e21229d
f86c72ebd4a46d12cf8c750c1f7526c42e40111d
/utils/hershey_to_py.py
1f1d396bf20004f36b3098daebf8878539bdf5ec
[ "MIT" ]
permissive
russhughes/st7789_mpy
65e5052d4ca28db6423af38d24a3c90622a39cea
47db47361eb89719cbc1c59b36e31cb69be03911
refs/heads/master
2023-07-24T10:32:43.458118
2023-06-11T06:26:28
2023-06-11T06:26:28
237,678,059
404
103
NOASSERTION
2023-07-13T04:30:05
2020-02-01T21:07:38
Python
UTF-8
Python
false
false
7,189
py
hershey_to_py.py
#!/usr/bin/env python3 """ Convert Hershey font data to python module. Usage: hershey_to_py.py <glyph_file> [map_file] The glyph_file (hf) is the Hershey font data file. The map_file (hmp) is an optional file that maps the Hershey font data to a character set. The hershey_to_py.py script is compatible with the outp...
920117c4e439d7bda4b90683be3b7bd5fa33da1d
b95d2aef1da5489d20b0d068ef7cece1ae32466f
/src/auditwheel/repair.py
23f172e90d7cfa11cae05d448d3bb8c38c2df9b0
[ "MIT", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
pypa/auditwheel
55fc242ebc541b7fb24ddd65acafba08aa742344
ebd4bc0de49394adcad557532eb19fe6598cd886
refs/heads/main
2023-09-02T19:51:37.625078
2023-07-17T23:27:37
2023-07-25T08:17:53
49,615,802
375
136
NOASSERTION
2023-09-12T08:58:06
2016-01-14T02:05:24
Python
UTF-8
Python
false
false
7,967
py
repair.py
from __future__ import annotations import itertools import logging import os import platform import re import shutil import stat from collections import OrderedDict from os.path import abspath, basename, dirname, exists, isabs from os.path import join as pjoin from subprocess import check_call from typing import Itera...
2a80395ae29fc481fb79d3f3f1bb27507fc392e2
8f4db78e562ab88ef6eadf991c340829f2c67217
/doc/examples/type_hints_notemplate.py
6677dd247b8149992d1485257548adda025b55dd
[ "BSD-3-Clause" ]
permissive
fluiddyn/transonic
3df606abda7f98c9958a8964ce1c6ab442167574
40329915cb277645c0a54286ef9e1d400e29719f
refs/heads/branch/default
2023-08-30T14:00:12.851327
2023-08-24T09:16:38
2023-08-24T09:16:38
164,679,098
107
1
BSD-3-Clause
2021-12-30T11:58:11
2019-01-08T15:34:10
Python
UTF-8
Python
false
false
257
py
type_hints_notemplate.py
import numpy as np from transonic import Type, NDim, Array, boost T = Type(int, np.complex128) N = NDim(1, 3) A = Array[T, N] A1 = Array[np.float32, N + 1] @boost def compute(a: A, b: A, c: T, d: A1, e: str): print(e) tmp = a + b return tmp
be01c96d76b27836ba00087fb8665c92b7389455
3257372291236aac1737b057c9ac6c61da9ccca0
/tutorials/W0D5_Statistics/solutions/W0D5_Tutorial2_Solution_582d22a1.py
c1b15f9357dbee6334574295b7cd465df9633786
[ "CC-BY-4.0", "BSD-3-Clause", "MIT" ]
permissive
NeuromatchAcademy/precourse
230ead0d11ae7b0dba21c8df97695a1796e9797d
b7f2432c6a68a7984ca923ceed8e07d5cfdb77c3
refs/heads/main
2023-07-26T11:18:24.493966
2023-07-09T14:42:49
2023-07-09T14:42:49
256,327,558
639
174
MIT
2023-07-09T14:42:50
2020-04-16T20:54:03
Jupyter Notebook
UTF-8
Python
false
false
455
py
W0D5_Tutorial2_Solution_582d22a1.py
# Transition matrix transition_matrix = np.array([[ 0.2, 0.6, 0.2], [ .6, 0.3, 0.1], [0.8, 0.2, 0]]) # Initial state, p0 p0 = np.array([0, 1, 0]) # Compute the probabilities 4 transitions later (use np.linalg.matrix_power to raise a matrix a power) p4 = p0 @ np.linalg.matrix_power(transition_matrix, 4) # The second...
a18b3c1110d5717071b0976c928b91adbcc143f7
e73547787354afd9b717ea57fe8dd0695d161821
/tools/splat_ext/pm_msg.py
7fce2326b5011f7ca9326458a7920731cad042fe
[]
no_license
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
14,244
py
pm_msg.py
import shutil from segtypes.n64.segment import N64Segment from pathlib import Path from util import options import re import pylibyaml import yaml as yaml_loader CHARSET = { 0x00: "[NOTE]", 0x01: "!", 0x02: '"', 0x03: "#", 0x04: "$", 0x05: "%", 0x06: "&", 0x07: "'", 0x08: "(", ...
673fbf3ed565b8c77c12d7ba3e74f8cb4bef5dc1
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tools/pot/openvino/tools/pot/graph/model_utils.py
2d1b660e9a000f761ee542c015cf9de901c002d1
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
6,221
py
model_utils.py
# Copyright (C) 2020-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import networkx as nx from openvino.tools.mo.graph.graph import Node from openvino.tools.mo.middle.passes.infer import type_infer from openvino.tools.mo.middle.pattern_match import for_graph_and_each_sub_graph_recursively from . import ...
c907c81913ae13806093ee10db66f78d316197ba
fa89ef4a8eb06dc2015d7116637f230b6891eb8d
/refinery/units/__init__.py
1d11b20c75ae852b0aa0659b33b10e101fcb0285
[ "BSD-3-Clause" ]
permissive
binref/refinery
f61878d9fddf616fee8edf226df22f6a35238940
4c7c3717ae45543b9d7bae60a4af4c00993cf719
refs/heads/master
2023-08-17T17:02:34.357138
2023-08-14T08:43:05
2023-08-14T08:43:05
228,019,736
439
48
NOASSERTION
2023-09-11T10:26:02
2019-12-14T12:32:06
Python
UTF-8
Python
false
false
71,597
py
__init__.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This package contains all refinery units. To write an executable refinery unit, it is sufficient to write a class that inherits from `refinery.units.Unit` and implements `refinery.units.Unit.process`. If the operation implemented by this unit should be reversible, then...
bb21759b911bdf8d86aa131270b3933c52a1933a
dd0d1e578321adb92a865b302b3180d4c34cc514
/Hackathon2022/calibrator.py
de6cacbca4ed9ce607a093f9ca0d0be93d4e4aa7
[]
no_license
LitLeo/TensorRT_Tutorial
a99055160cea88109ad2a5561fabf0fdd02f1c0e
0abd8ed708ea97ff598923fbfd9cb65c5dee1fff
refs/heads/master
2023-06-08T00:36:52.974872
2023-05-29T07:57:02
2023-05-29T07:57:02
89,451,146
819
170
null
2017-05-01T11:46:31
2017-04-26T07:25:35
null
UTF-8
Python
false
false
4,212
py
calibrator.py
import tensorrt as trt import os import numpy as np import pycuda.driver as cuda import pycuda.autoinit from sys import getsizeof # import pycuda.driver as cuda # import pycuda.autoinit # import numpy as np # import helpers.tokenization as tokenization # import helpers.data_processing as dp class EncoderCalibrator(t...
69f2292d36545c20e27d0b796317d19e1c055608
8f2c55a2530c3e59dab5907c0044c618b88dd09b
/_pydevd_bundle/pydevconsole_code.py
e6ba3002378115f9286357b747a3534dccc8ae48
[ "Apache-2.0", "EPL-1.0" ]
permissive
fabioz/PyDev.Debugger
5a9c6d4c09be85a0e2d9fb93567fd65faf04c81d
26864816cbfcf002a99913bcc31ebef48042a4ac
refs/heads/main
2023-08-18T01:08:34.323363
2023-04-15T11:15:47
2023-04-15T11:15:47
21,870,144
363
126
Apache-2.0
2023-07-30T23:03:31
2014-07-15T18:01:12
Python
UTF-8
Python
false
false
19,014
py
pydevconsole_code.py
""" A copy of the code module in the standard library with some changes to work with async evaluation. Utilities needed to emulate Python's interactive interpreter. """ # Inspired by similar code by Jeff Epler and Fredrik Lundh. import sys import traceback import inspect # START --------------------------- from cod...
412da4ba9807ae3a47955dc6a75f350cf4fb7b0b
6146e33102797407ede06ce2daa56c28fdfa2812
/python/GafferSceneUITest/ParameterInspectorTest.py
f1f2cb9c082fe5b5b8eb2552273029b403222ece
[ "BSD-3-Clause" ]
permissive
GafferHQ/gaffer
e1eb78ba8682bfbb7b17586d6e7b47988c3b7d64
59cab96598c59b90bee6d3fc1806492a5c03b4f1
refs/heads/main
2023-09-01T17:36:45.227956
2023-08-30T09:10:56
2023-08-30T09:10:56
9,043,124
707
144
BSD-3-Clause
2023-09-14T09:05:37
2013-03-27T00:04:53
Python
UTF-8
Python
false
false
31,878
py
ParameterInspectorTest.py
########################################################################## # # Copyright (c) 2021, Cinesite VFX Ltd. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions ...
3ca3778822636998a0f468e0946aac58ebf80c24
c80df697c0b66cd58a039c928574926bd6161a36
/tools/dom/scripts/databasebuilder_test.py
840e6dd4c6c8ed663530576a2b44362718e0e442
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-unknown" ]
permissive
dart-lang/sdk
d4e50700dfc54b33c0a7a09fab1aa9623ebc84e5
b25873f11c68772408f6a4aea5f5c961f31ac9f7
refs/heads/master
2023-08-31T11:13:09.400940
2023-08-31T09:10:57
2023-08-31T09:10:57
35,726,310
10,701
2,079
BSD-3-Clause
2023-09-14T10:34:15
2015-05-16T14:14:58
Dart
UTF-8
Python
false
false
13,259
py
databasebuilder_test.py
#!/usr/bin/env python3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. import database import idlparser import logging.config import os import os.path imp...
b39679a0b338659172bffcf3e9147ae358d9bfa8
b8dad2a51911f71c3f4946b98573a487d9e4c29e
/custom_components/ble_monitor/test/test_mikrotik.py
eee21b368e044986fe5cfcde2bb33f7a4e28a049
[ "MIT" ]
permissive
custom-components/ble_monitor
2b9dfc99f740314130fb21a29f070d21ec0d5a37
f52860aed1b2791e2b4643a25f73157694d8c3a2
refs/heads/master
2023-08-23T10:48:16.567468
2023-07-25T17:53:34
2023-07-25T17:53:34
223,993,584
1,294
215
MIT
2023-09-11T06:54:43
2019-11-25T16:30:04
Python
UTF-8
Python
false
false
2,854
py
test_mikrotik.py
"""The tests for the Laica Smart Scale ble_parser.""" from ble_monitor.ble_parser import BleParser class TestLaica: """Tests for the Mikrotik parser""" def test_mikrotik_tg_bt5_in(self): """Test Mikrotik TG-BT5-IN parser.""" data_string = "043E2202010300DD7B146E2CDC1615FF4F09010010A90000FDFF01...
546e21e229bbe621439ec1e4c67cdb1d6f4c199c
4a5681a81c8720087291bcf6caacef083cb7af16
/src/python/strelka/tests/test_scan_msi.py
702f2c5027fca4ec0015b6b8c932f314a9ccba5e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
target/strelka
8d0801dbca270c46bd2ea998c0cf72f80e741cee
e42800362535a8fec956689e4de81235231022db
refs/heads/master
2023-08-18T15:35:01.150070
2023-08-15T12:05:07
2023-08-15T12:05:07
149,654,117
739
114
NOASSERTION
2023-09-12T18:18:25
2018-09-20T18:38:12
Python
UTF-8
Python
false
false
1,700
py
test_scan_msi.py
from pathlib import Path from unittest import TestCase, mock from strelka.scanners.scan_msi import ScanMsi as ScanUnderTest from strelka.tests import run_test_scan def test_scan_msi(mocker): """ Pass: Sample event matches output of scanner. Failure: Unable to load file or sample event fails to match. ...
0b1060caacfb96d3b19dbacb54bb7ad0028a0ba4
e384f5467d8bcfd70845997bcbd68d950e874a61
/example/python/mesh/mesh_002_torus/torus.py
5385cfcac897b4b13f99ed6c0d3da07ddb925777
[]
no_license
Rabbid76/graphics-snippets
ee642f1ed9ceafc6d320e467d3a084d2446d22c2
fa187afeabb9630bc1d988304fb5787e95a91385
refs/heads/master
2023-08-04T04:32:06.884318
2023-07-21T09:15:43
2023-07-21T09:15:43
109,126,544
177
12
null
2023-04-11T20:05:52
2017-11-01T12:05:56
C++
UTF-8
Python
false
false
3,389
py
torus.py
import os import sys sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), os.pardir, os.pardir)) os.chdir(os.path.dirname(os.path.abspath(__file__))) import math # PyOpenGL import from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * # MyLibOGL import from MyLibOGL.math imp...
9baa2dfba778aa90fe8a0160867a9fde2cc8438e
d4412fbe37540e2c4cbe59ed6503d3661ccb7d9c
/applications/Chat/examples/community/peft/train_peft_prompts.py
9385e457d852ff042a42439c467bc5b02b7c6e73
[ "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
10,275
py
train_peft_prompts.py
import argparse import pandas as pd import torch import torch.distributed as dist from coati.dataset import DataCollatorForSupervisedDataset, PromptDataset, SupervisedDataset from coati.models.bloom import BLOOMRM, BLOOMCritic from coati.models.gpt import GPTRM, GPTActor, GPTCritic from coati.models.llama import Llama...
a956f6af550c7d0460f5acc9d6d60751e3c55cef
76dee2c21e55c69d62c5413a4629b3f7b4450051
/qmk_cli/helpers.py
90767fa13d87f517bd659d44b437b8babf20ee1c
[ "MIT" ]
permissive
qmk/qmk_cli
865d624b58166b14d0fb3a997a2f38814089a206
1c72e1e564239e47634c0f1173add6b73927a2b6
refs/heads/master
2023-06-21T22:12:58.143930
2023-06-13T18:16:53
2023-06-13T18:16:53
194,550,935
113
42
MIT
2023-09-12T17:41:03
2019-06-30T19:00:33
Python
UTF-8
Python
false
false
1,559
py
helpers.py
"""Useful helper functions. """ import os from functools import lru_cache from importlib.util import find_spec from pathlib import Path from milc import cli def is_qmk_firmware(qmk_firmware): """Returns True if the given Path() is a qmk_firmware clone. """ paths = [ qmk_firmware, qmk_firm...
1e60f810cb4bdccac387b43d5333e0a2a0f215e3
67cc5db4593e2cdd109e589e13fb07074bcff5d9
/dace/transformation/passes/dead_state_elimination.py
a5ff0ba71a7c58e18b00d54cbb761db3e6e3ff24
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
spcl/dace
39849b1488e8f59f880fc0e2572687556c51847d
c5ca99ad37e7ceef6da71026c3c8bb579f64117f
refs/heads/master
2023-08-31T10:45:09.480018
2023-08-30T06:05:10
2023-08-30T06:05:10
172,703,996
402
114
BSD-3-Clause
2023-09-14T15:18:29
2019-02-26T12:05:50
Python
UTF-8
Python
false
false
7,062
py
dead_state_elimination.py
# Copyright 2019-2022 ETH Zurich and the DaCe authors. All rights reserved. import collections import sympy as sp from typing import Optional, Set, Tuple, Union from dace import SDFG, InterstateEdge, SDFGState, symbolic, properties from dace.properties import CodeBlock from dace.sdfg.graph import Edge from dace.sdfg....
7523cdf7101e19534a18c4e1729bc0b4103f538d
9472c7d1608e318e46214f231773fbb3f33de0f1
/kats/models/ensemble/kats_ensemble.py
2f063131bfff14c0fe6af6db7fb919d9c5812f84
[ "MIT" ]
permissive
facebookresearch/Kats
16eee984bc1c482bd709cb5d62c226d4ad85f216
00ab9a3db27218b4817eae2e05dc602e437f634f
refs/heads/main
2023-08-30T23:33:12.654847
2023-08-25T16:02:04
2023-08-25T16:02:04
342,388,745
4,514
517
MIT
2023-09-14T15:28:43
2021-02-25T21:51:06
Python
UTF-8
Python
false
false
30,751
py
kats_ensemble.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Kats ensemble model Implementation of the Kats ensemble model. It starts from seasonality detection, if seasonality detected, it continu...
ee0869ff9f07e01e58e70f23b93d2487cb19612d
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree.py
341d2f701f5033d357f190d33aae34e0e4f2c98e
[ "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
1,673
py
find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree.py
# Time: O(nlogn) # Space: O(n) class UnionFind(object): def __init__(self, n): self.set = range(n) self.count = n def find_set(self, x): if self.set[x] != x: self.set[x] = self.find_set(self.set[x]) # path compression. return self.set[x] def union_set(self, x...
44e3af5599164fd723a6fc660b9ec0f410941320
cd8a9ac708be8f559da1e9cadc1d5ad457226364
/mods/Paint.py
cfae7a23db04e74699c2f674a87c07c80cecbbed
[ "Unlicense" ]
permissive
Mrmaxmeier/BombSquad-Community-Mod-Manager
078d0c95f326979989b8a9338c89724a08bcf077
aeba3f6858335aa08243c02ea29d4d4c807d43cc
refs/heads/master
2023-01-25T05:38:15.945963
2023-01-22T11:20:19
2023-01-22T11:20:19
28,673,893
143
155
Unlicense
2020-04-10T10:43:37
2014-12-31T19:54:47
Python
UTF-8
Python
false
false
6,252
py
Paint.py
#Canvas import bs import random def bsGetAPIVersion(): return 4 def bsGetGames(): return [Paint] def bsGetLevels(): return [bs.Level('Paint', displayName='${GAME}', gameType=Paint, settings={}, previewTexName='courtyardP...
fe621391ac7f38d59256b2fc2003d677dbd116c6
3420cceca75758b7d0b54da3a550456234bdbe05
/scripts/sgdml_datasets_from_model.py
5fc2a1a77c6bc0f588876d5fea3ab2fe8a3cae46
[ "MIT" ]
permissive
stefanch/sGDML
8663c3791bd7521c6cc7e320f493d96240bc07f3
b8e88de09301a8b3c35b4aee390138dec1b42521
refs/heads/master
2023-08-18T23:27:19.739089
2023-06-08T12:49:46
2023-06-08T12:49:46
140,593,875
127
41
MIT
2023-08-31T09:40:09
2018-07-11T15:20:30
Python
UTF-8
Python
false
false
3,388
py
sgdml_datasets_from_model.py
#!/usr/bin/python # MIT License # # Copyright (c) 2018 Stefan Chmiela # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use,...
33d1d1e4ecb6fa9e1427f35d1fd46bee148ee425
6630694f401f6f475dd81bb01ff9368db844ccff
/tests/test_models/test_backbones/test_tinyvit.py
9747b76b3a465069fe66eb41e0a51dac28f9bd5f
[ "Apache-2.0" ]
permissive
open-mmlab/mmpretrain
98a4d6b3bb747efc3d50decebf84fc3ffa41076a
d2ccc44a2c8e5d49bb26187aff42f2abc90aee28
refs/heads/main
2023-08-30T19:11:24.771498
2023-08-23T02:45:18
2023-08-23T02:45:18
278,415,292
652
186
Apache-2.0
2023-09-08T08:01:40
2020-07-09T16:25:04
Python
UTF-8
Python
false
false
2,284
py
test_tinyvit.py
# Copyright (c) OpenMMLab. All rights reserved. # Copyright (c) OpenMMLab. All rights reserved. import pytest import torch from mmpretrain.models.backbones import TinyViT def test_assertion(): with pytest.raises(AssertionError): TinyViT(arch='unknown') with pytest.raises(AssertionError): # M...
61e35536f99a74ffdeabcffe73d0772e33ffa0e1
8110781934e5ac078ace2430aa5d8d4c91837562
/tests/tools/txt2tikztiming.py
9c6cd3a19e54acf9c65a48f0b6f477d9ff3505fb
[ "ISC", "MIT", "LicenseRef-scancode-other-copyleft", "BSD-2-Clause" ]
permissive
YosysHQ/yosys
91acb592cb47b8298b115572faa02edfa468c1f0
72bec94ef4f0ce8090f22c16cd5163b816e8c698
refs/heads/master
2023-09-01T17:46:13.846954
2023-09-01T08:15:51
2023-09-01T08:15:51
7,454,197
2,389
769
ISC
2023-09-13T15:43:31
2013-01-05T10:10:48
C++
UTF-8
Python
false
false
3,144
py
txt2tikztiming.py
#!/usr/bin/env python3 import argparse import fileinput import sys parser = argparse.ArgumentParser(description='Convert vcd2txt output to tikz-timing line.') parser.add_argument('filename', metavar='FILE', help='input txt file') parser.add_argument('signame', metavar='SIG', help='Signal name') parser.add_argument('-...
15ce364ac740f2d322f003355b9a5414991cc548
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowLispEthernetMapCachePrefix/cli/equal/golden_output2_expected.py
224c39f248a399c2d61e5f9a9bb1772bba502025
[ "Apache-2.0" ]
permissive
CiscoTestAutomation/genieparser
169c196558f1c1a0f0d10650876096f993224917
b531eff760b2e44cd69d7a2716db6f866907c239
refs/heads/master
2023-09-03T08:56:18.831340
2023-08-29T22:32:02
2023-08-29T22:32:02
131,621,824
247
409
Apache-2.0
2023-08-29T22:32:04
2018-04-30T16:51:50
Python
UTF-8
Python
false
false
2,257
py
golden_output2_expected.py
expected_output = { "lisp_id": { 0: { "instance_id": { 8188: { "eid_table": "Vlan 210", "entries": 1, "eid_prefix": { "0017.0100.0001/48": { "uptime": "01:10:28", ...
81ce63b46a70e72e76b10a5a40b1de97d3a494e9
41db6c672362ccafdd28af40ecf7df51ffa90a15
/guppy/heapy/test/test_gsl.py
b6714add5a5776ba9b4b5ab88a702b747ac76a39
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
zhuyifei1999/guppy3
e5649a066199a92dc3bf8e77bdd6ffb44e790449
1b2db87af36388e43afd6ce5774b869bcc4a9452
refs/heads/master
2023-06-24T23:03:52.612921
2023-06-17T01:18:06
2023-06-17T01:54:06
202,611,372
371
24
MIT
2023-06-17T01:54:09
2019-08-15T21:05:15
Python
UTF-8
Python
false
false
421
py
test_gsl.py
# Test the gsl subpackage # Ideally this should be a top level test. def test_main(debug=0): from guppy import Root gsl = Root().guppy.gsl gsl.Document._test_main_() gsl.DottedTree.test_main() gsl.FileIO.set_test_mode() gsl.Filer._test_main_() gsl.Gsml._test_main_() gsl.Main._test_main...
830bf432012579c11a4cfadb60a58821706e30e9
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/confidentialledger/azure-confidentialledger/azure/confidentialledger/_patch.py
399b716b05f79f354afe8ea4498b9243013a53e9
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
5,013
py
_patch.py
# ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ """Customize generated code here. Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize """ import os from typing import Any, List,...
d12f2762dbdc7e90d78983c5c0c33ebb77339f75
d7fd46dfd8aab520c4958fa065367e168b6bfee7
/benchmarks/parallelization_load_test_test.py
35d73ad27b0fff729b0dd37e81f314a36dfa2915
[ "MIT" ]
permissive
facebookresearch/CompilerGym
f04a79fbfdbaf8afd6920ec205db6f1b6003d073
9e0c0beb12da1e1ea82ae6ce920713ee28dda4c9
refs/heads/development
2023-08-31T09:17:48.967970
2023-03-10T19:29:56
2023-03-10T19:29:56
312,059,069
787
126
MIT
2023-03-10T19:29:58
2020-11-11T18:44:35
Python
UTF-8
Python
false
false
1,473
py
parallelization_load_test_test.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Smoke test for //benchmarks:parallelization_load_test.""" from pathlib import Path from absl import flags from benchmarks.parallelization_...
4bf8228d7babb3c4ef3e48fd7bf2db4ffa3af8a6
9efca95a55cb4df52d895d42f1ec10331516a734
/tools/c7n_azure/c7n_azure/resources/cdn.py
373c6539df944c4269ca803a51f64d63a7662289
[ "Apache-2.0" ]
permissive
cloud-custodian/cloud-custodian
519e602abe00c642786441b64cc40857ef5bc9de
27563cf4571040f923124e1acb2463f11e372225
refs/heads/main
2023-09-04T10:54:55.963703
2023-09-01T17:40:17
2023-09-01T17:40:17
52,837,350
3,327
1,096
Apache-2.0
2023-09-14T14:03:30
2016-03-01T01:11:20
Python
UTF-8
Python
false
false
2,110
py
cdn.py
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from c7n_azure.provider import resources from c7n_azure.resources.arm import ArmResourceManager from c7n.filters import Filter from c7n.utils import type_schema @resources.register('cdnprofile') class CdnProfile(ArmResourceManager): "...
69abe278aad4a93518ad7da0664237549f49bf95
2b74dd623e2fd02167b74c8d1df29e53a8c95ce9
/docs/source/examples/client_paged_search_results.py
8497a2a44aec9842e257044fe4cf9e6acf7836b1
[ "MIT" ]
permissive
twisted/ldaptor
19d6e5d38832a804e01444a30e9b24f415b83f7a
4bfe2897c8b9b510d647fb1c2a5b50c88d492ab1
refs/heads/master
2023-08-31T12:29:40.539819
2022-02-04T11:09:23
2022-02-04T11:09:23
21,404,464
153
57
MIT
2022-07-28T18:51:00
2014-07-01T22:43:43
Python
UTF-8
Python
false
false
3,769
py
client_paged_search_results.py
#! /usr/bin/env python import argparse import sys from twisted.internet import defer from twisted.internet.endpoints import clientFromString, connectProtocol from twisted.internet.task import react from ldaptor.protocols.ldap.ldapclient import LDAPClient from ldaptor.protocols.ldap.ldapsyntax import LDAPEntry from ld...
9a2297cd87580f230df294bed552c5c403e14a4b
1bc67a91d85a7106106ca31307ef9ee93f1d1a20
/src/py/flwr/client/secure_aggregation/secaggplus_handler.py
d05fd61878a3f303acd106831d5c2fba9a344a29
[ "Apache-2.0" ]
permissive
adap/flower
4915d143c674eb675504d585e1e90ed06833812f
55be690535e5f3feb33c888c3e4a586b7bdbf489
refs/heads/main
2023-08-17T01:18:12.168723
2023-08-16T17:17:48
2023-08-16T17:17:48
241,095,326
2,999
658
Apache-2.0
2023-09-14T15:43:22
2020-02-17T11:51:29
Python
UTF-8
Python
false
false
18,910
py
secaggplus_handler.py
# Copyright 2020 Adap GmbH. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
6095df6d4bde6ebdfbd99069d0504eeee6051e35
932ea8ba9b39bc2f37347d04d74c618f1bd37535
/lm_val_fns.py
8b34d1b47c6fd165f57c62315884f5407eb26c90
[]
no_license
sgugger/Adam-experiments
03224552defb1c8ff45e98c1e3eaff53f5535af5
b1ede770e6403e3d555d80280538def63e69a8da
refs/heads/master
2020-03-22T04:26:49.166001
2018-09-05T17:30:03
2018-09-05T17:30:03
139,499,459
191
36
null
2018-09-05T17:30:04
2018-07-02T22:03:11
Python
UTF-8
Python
false
false
3,763
py
lm_val_fns.py
from fastai.text import * class TextReader(): """ Returns a language model iterator that iterates through batches that are of length N(bptt,5) The first batch returned is always bptt+25; the max possible width. This is done because of they way that pytorch allocates cuda memory in order to prevent multipl...