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
1874c920beea17a60c6d77dda6e1f3ae89c47fba
bdfd36be0da37a335cabefd41db9df44c31f3b42
/scripts/modules/deeplab.py
9fd96145838222b3f42b6d0c305b994ecfb4284e
[ "BSD-3-Clause", "HPND", "CC-BY-NC-SA-4.0" ]
permissive
mapillary/inplace_abn
54435a7b688da075e37d36d4c2fc09df43a9983d
d7dd3e1f22164083734ad6ac42365a4cc99a5051
refs/heads/main
2023-08-19T19:46:05.503129
2023-01-03T10:31:21
2023-01-03T10:31:21
111,797,719
1,377
216
BSD-3-Clause
2023-07-17T08:13:53
2017-11-23T10:47:45
Python
UTF-8
Python
false
false
4,085
py
deeplab.py
# Copyright (c) Facebook, Inc. and its affiliates. import torch import torch.nn as nn import torch.nn.functional as functional from inplace_abn import ABN from models.util import try_index class DeeplabV3(nn.Module): def __init__( self, in_channels, out_channels, hidden_channels=2...
278d4dcc7fe977c743eadcbfa630f37fa140f758
a2b20597759990445081057d35d113434cfcf970
/stubs/typeshed/typeshed/stubs/influxdb-client/influxdb_client/service/bucket_schemas_service.pyi
276cf48b5f9175196dd744848793c01f26f7147e
[ "MIT", "Apache-2.0" ]
permissive
facebook/pyre-check
34059599c02b65605c574f13555229f3b931fd4e
fe8ccedc572cc1faa1fd01e9138f65e982875002
refs/heads/main
2023-09-03T19:10:11.587028
2023-09-02T07:40:35
2023-09-02T07:40:35
110,274,488
6,703
575
MIT
2023-09-13T17:02:32
2017-11-10T17:31:36
OCaml
UTF-8
Python
false
false
1,418
pyi
bucket_schemas_service.pyi
from _typeshed import Incomplete from influxdb_client.service._base_service import _BaseService class BucketSchemasService(_BaseService): def __init__(self, api_client: Incomplete | None = ...) -> None: ... def create_measurement_schema(self, bucket_id, measurement_schema_create_request, **kwargs): ... de...
6dd5818642dd7e54310c90f44b69c299ba00df26
62179a165ec620ba967dbc20016e890978fbff50
/nncf/experimental/torch/quantization/quantize_model.py
c97ab9c9675b6b959331f3ddb32f0984e50fa1ac
[ "Apache-2.0" ]
permissive
openvinotoolkit/nncf
91fcf153a96f85da166aacb7a70ca4941e4ba4a4
c027c8b43c4865d46b8de01d8350dd338ec5a874
refs/heads/develop
2023-08-24T11:25:05.704499
2023-08-23T14:44:05
2023-08-23T14:44:05
263,687,600
558
157
Apache-2.0
2023-09-14T17:06:41
2020-05-13T16:41:05
Python
UTF-8
Python
false
false
4,779
py
quantize_model.py
# Copyright (c) 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 writ...
4453370a626abfc69bc26a1238138f6f046a1142
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/unwrap/elIfDelete_after.py
3881394316b2e865bd969a76ff8903136a48889c
[ "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
33
py
elIfDelete_after.py
if "1": print 1 else: print 3
e2c79bc348fe2736326a7564ea43130288a0b570
11cd362cdd78c2fc48042ed203614b201ac94aa6
/apps/oozie/examples/managed/shell/hello.py
674e44a8da6e7a8fd67fd54d7571f1cde8d43e8f
[ "CC-BY-3.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0", "Unlicense", "LGPL-3.0-only", "CC0-1.0", "LicenseRef-scancode-other-permissive", "CNRI-Python", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "Python-2.0", "GPL-3.0...
permissive
cloudera/hue
b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908
dccb9467675c67b9c3399fc76c5de6d31bfb8255
refs/heads/master
2023-08-31T06:49:25.724501
2023-08-28T20:45:00
2023-08-28T20:45:00
732,593
5,655
2,244
Apache-2.0
2023-09-14T03:05:41
2010-06-21T19:46:51
JavaScript
UTF-8
Python
false
false
116
py
hello.py
#!/usr/bin/env python from __future__ import print_function import sys print('Hello ' + ', '.join(sys.argv[1:]))
8492ce71b151ab56ad944247b2e73243dbb69dd1
b567d43949cee77b18b3d948ba0147b681014e24
/core/eolearn/core/utils/__init__.py
083ed9fcfeacc73dee5d9e706ab09104b77408d3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sentinel-hub/eo-learn
092630a1dc5b78ae2569c3ec4b0729dc6702958a
a65899e4632b50c9c41a67e1f7698c09b929d840
refs/heads/master
2023-08-31T09:32:31.775754
2023-05-24T10:35:30
2023-05-24T10:35:30
135,559,956
1,072
329
MIT
2023-09-07T06:08:40
2018-05-31T09:08:08
Python
UTF-8
Python
false
false
41
py
__init__.py
""" A subfolder containing utilities """
73c6827db9d988835243ba99f43585325470dfaf
bba97d00eba0c3de8a081e61ed6711f138d6babd
/pipeline/api/layers/latest_region_package.py
ba801c1dda585e30e322b60fd15454581412bb71
[ "Apache-2.0" ]
permissive
keithrozario/Klayers
a6df271a7f72c8b2ae9d2025ff030cff09bd5b75
026ebed4a3de0018418638e37d6453253aa48f0e
refs/heads/master
2023-09-04T12:33:32.454360
2023-09-04T08:44:18
2023-09-04T08:44:18
164,266,648
1,725
276
NOASSERTION
2023-09-04T08:44:19
2019-01-06T01:49:43
Python
UTF-8
Python
false
false
1,574
py
latest_region_package.py
import os import json import boto3 from botocore.exceptions import ClientError from aws_lambda_powertools.logging import Logger from common.dynamodb import map_keys logger = Logger() @logger.inject_lambda_context def main(event, context): """ Args: event.pathParameter.region: AWS region event...
72f5d407e7b77412036642e58bcd00aa62478d25
7030c780db36c7d8efedb1152cf945a3cc248fdb
/python/cuml/tests/dask/test_dask_label_binarizer.py
9af6ff189e6d9385912d74aa2b63a38c43b4ca20
[ "Apache-2.0" ]
permissive
rapidsai/cuml
546af8151fd2ee0f737cc4e62386d4b0ede74f3d
7d86042b8de06bc8acce632230fe5821bd36c17d
refs/heads/branch-23.10
2023-08-30T19:17:41.816373
2023-08-28T13:23:15
2023-08-28T13:23:15
152,616,802
3,615
569
Apache-2.0
2023-09-14T00:21:52
2018-10-11T15:45:35
C++
UTF-8
Python
false
false
2,396
py
test_dask_label_binarizer.py
# Copyright (c) 2020-2023, NVIDIA 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 agre...
5523463e46ace8880c17f1afd145371ab21a4a92
1051e6bca955732982932e5946069beb1f9cfd6d
/stable_baselines/common/vec_env/vec_frame_stack.py
044102ebdd766ead93b745a046f5d12bc875b86d
[ "MIT" ]
permissive
Stable-Baselines-Team/stable-baselines
a842f6edb270aeeefa66043fe2d0b119fa73e272
550db0d667533b9e94672fbbe6d391227f3d08e2
refs/heads/master
2023-05-11T16:27:33.911867
2022-09-05T07:35:56
2022-09-05T07:35:56
166,540,770
296
69
MIT
2023-04-29T12:06:44
2019-01-19T11:47:06
Python
UTF-8
Python
false
false
2,094
py
vec_frame_stack.py
import warnings import numpy as np from gym import spaces from stable_baselines.common.vec_env.base_vec_env import VecEnvWrapper class VecFrameStack(VecEnvWrapper): """ Frame stacking wrapper for vectorized environment :param venv: (VecEnv) the vectorized environment to wrap :param n_stack: (int) N...
fdb009f5bab829b429b7c9998aa4028daa0acfdf
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/nation_change_helpers/client_nation_change_helper.py
1c793234512f68031a0cca34a9a0fcee840fc84e
[]
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
914
py
client_nation_change_helper.py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/nation_change_helpers/client_nation_change_helper.py from helpers import dependency from nation_change.nation_change_helpers import iterVehTypeCDsInNationGroup, isMainInNationGroup from skeletons.gui.shared import IItemsCache def g...
42fbad32f888dc886a0132f057a7b6e23e4f3751
e78a66b3201cc5f6b9fd9a896067c616d97fd669
/src/toil/utils/toilDebugFile.py
e53543d28c12fe8bbf932863a01b713d3fc0ff3a
[ "Apache-2.0" ]
permissive
DataBiosphere/toil
2ba3c223ca673818188b07feab01268b1104d253
87f858d693518d0f0f23cbb4f898cd14b824d843
refs/heads/master
2023-09-03T23:52:38.121916
2023-08-31T13:57:59
2023-08-31T13:57:59
33,148,320
416
158
Apache-2.0
2023-09-13T07:26:38
2015-03-30T21:08:58
Python
UTF-8
Python
false
false
5,468
py
toilDebugFile.py
# Copyright (C) 2015-2021 Regents of the University of California # # 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 app...
73187ab2043bb32d8f83d1ae4cc1aafe8ce4c5b7
a29afc1d7342271ecfd2f4952c859a7a6e665a7a
/tests/operation/test_bump_sequence.py
541ef5d535e996184c73e8580bacc44fd0c90d6d
[ "Apache-2.0" ]
permissive
StellarCN/py-stellar-base
20252abb8ae90b20ac4d7a071046b52a8ccfb273
259ae05ca8155bd1e09fc5d83b8f6c6431eedf31
refs/heads/main
2023-09-02T17:18:18.158221
2023-07-21T02:47:10
2023-07-21T02:47:10
43,143,745
365
205
Apache-2.0
2023-09-14T02:08:18
2015-09-25T13:26:01
Python
UTF-8
Python
false
false
1,582
py
test_bump_sequence.py
import pytest from stellar_sdk import BumpSequence, Operation from . import * class TestBumpSequence: @pytest.mark.parametrize( "bump_to, source, xdr", [ pytest.param( 1234567890, None, "AAAAAAAAAAsAAAAASZYC0g==", id="without_source" ), pytest....
31a244d660fba05787ea9bb1dfa6162226472956
20dda4f19ec777d1a69ae20b5e2a48b9b28bb4a4
/flexbe_testing/src/flexbe_testing/test_interface.py
78331aaa51f2a71b7cf17599bb2ebe86248c3702
[]
permissive
team-vigir/flexbe_behavior_engine
fd94ac2b75bfef6ca318d700d94b76f16cfd6552
6028c8585d852be55f4512024dcca5caa53e57c2
refs/heads/main
2023-05-12T20:25:50.388882
2022-03-09T22:19:43
2022-03-09T22:19:43
38,892,260
131
72
BSD-3-Clause
2023-06-23T03:06:37
2015-07-10T17:06:37
Python
UTF-8
Python
false
false
2,835
py
test_interface.py
#!/usr/bin/env python import inspect import rospy from flexbe_core.core import EventState from .logger import Logger class TestInterface(object): """ Interface to states and behaviors that are subject to testing. """ def __init__(self, path, classname): package = __import__(path, fromlist=[path]) ...
3237ec989abfa427232943b3c1be854b83af2452
88efd76316e4184d76a5e0585d95fe734233942c
/yellowbrick/features/__init__.py
7b7fc0fc212de7fee17535fa836d999c13282d90
[ "Apache-2.0" ]
permissive
DistrictDataLabs/yellowbrick
1ecd9f33e58f0d007569904401c204a6cdeb5661
f7a8e950bd31452ea2f5d402a1c5d519cd163fd5
refs/heads/develop
2023-08-03T12:25:26.511916
2023-07-05T18:14:28
2023-07-05T18:14:28
59,121,694
4,242
660
Apache-2.0
2023-07-15T17:50:31
2016-05-18T14:12:17
Python
UTF-8
Python
false
false
1,296
py
__init__.py
# yellowbrick.features # Visualizers for feature analysis and diagnostics. # # Author: Benjamin Bengfort # Created: Mon Oct 03 21:30:18 2016 -0400 # # Copyright (C) 2016 The scikit-yb developers # For license information, see LICENSE.txt # # ID: __init__.py [0f4b236] benjamin@bengfort.com $ """ Visualizers for feat...
f6f9159beb76a235649b94f91859bb823cf90114
cda44e80665ce5a7d592d811d633358d48d207c5
/src/main.py
f1ed8257bf58d1bf7e320c3c297d34f6641f4869
[ "MIT" ]
permissive
kovinevmv/getcontact
fe996a311f965321c09df6acd4e47acdc7ddba18
4461f7f6e92e4654489736b087824ce9662771da
refs/heads/master
2022-08-10T16:21:37.569765
2022-07-09T16:38:14
2022-07-09T16:38:14
232,601,679
347
80
MIT
2022-03-12T16:53:43
2020-01-08T16:03:27
Python
UTF-8
Python
false
false
900
py
main.py
import argparse from getcontact.getcontact import GetContactAPI from getcontact.config import config description = "Get information about phone number from databases of GetContact" parser = argparse.ArgumentParser(description=description, formatter_class=argparse.RawTextHelpFormatter...
d0455acadd0fc2c360e6363bff1ef525831f1e3a
bc028a1cbc3cfab47b1d5a2df31bee8946881fb4
/Firewall/BUZZDIRECTION/BUZZ_1210/SeconddateCnC/noarch/create_dns_injection.py
a0c0aefdaf1eccec2a9b5ae2be26f3a9b9637bd6
[]
no_license
nneonneo/eqgrp-free-file
58a427b0a9716e7a24de878b1b7a8f06b3d92212
49e457d7ac870d5e00f5a247b94476cd5643f3ba
refs/heads/master
2021-01-19T01:24:37.276779
2016-08-16T22:50:57
2016-08-16T22:56:14
65,761,779
211
195
null
null
null
null
UTF-8
Python
false
false
12,060
py
create_dns_injection.py
#!/usr/bin/env python from optparse import OptionParser, Option, OptionValueError import copy import re import socket import struct import sys from optparse import IndentedHelpFormatter import textwrap Flags = { 'AA' : 10, 'TC' : 9, 'RA' : 7, } Qtypes = { 'A' : 1, 'NS' : 2, 'CNAME' : 5, ...
a6fd960be6f96324f1d65ce38d5888ea693d2760
db12b990924703cd74748d8585cd9c11fafa6746
/h2o-py/tests/testdir_parser/pyunit_hexdev_497_import_gzip_airlines.py
6eb62836dfd2bea3637bc2a3ffa6ed9516e66ef7
[ "Apache-2.0" ]
permissive
h2oai/h2o-3
919019a8f297eec676011a9cfd2cc2d97891ce14
d817ab90c8c47f6787604a0b9639b66234158228
refs/heads/master
2023-08-17T18:50:17.732191
2023-08-17T16:44:42
2023-08-17T16:44:42
17,371,412
6,872
2,345
Apache-2.0
2023-09-14T18:05:40
2014-03-03T16:08:07
Jupyter Notebook
UTF-8
Python
false
false
1,343
py
pyunit_hexdev_497_import_gzip_airlines.py
import sys sys.path.insert(1,"../../") import h2o from tests import pyunit_utils # This test is to make sure that we have fixed the following issue properly using airlines data: # https://github.com/h2oai/private-h2o-3/issues/341: Merged Gzip Files not read properly. # I will import the original files and then the zip...
e365db06ed4b6063781c738b48fec822c7b548f0
5ef6c8d47864f471e26b9902d61f8c687e941f05
/src/genie/libs/parser/iosxe/tests/ShowAaaMemory/cli/equal/golden_output_expected.py
b7b535af10f9e0e6d683cdbda30a1056afc6147d
[ "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
3,420
py
golden_output_expected.py
expected_output = { 'aaa_memory': { 'AAA Acct AVLnod': { 'alloc_name': 'AAA Acct AVLnod', 'allocated': 4556, 'chunk': 'Chunk', 'count': 3, 'in_use': 84, 'percentage': 1, }, 'AAA Acct DB chu': { 'alloc_n...
f5fcfd0bb577852f0254579d43b1927cd6de0b6a
7343ece3b82ac87a594865c4074623b45b0297b4
/tests/handlers/test_room_summary.py
d907fcaf04bd9f9f73cdd49077d467f1c925a6cc
[ "Apache-2.0" ]
permissive
matrix-org/synapse
a00111f83310783b78e2996557f8bbae4d9fb229
d35bed8369514fe727b4fe1afb68f48cc8b2655a
refs/heads/develop
2023-09-05T05:24:20.808942
2023-09-04T16:14:09
2023-09-04T16:14:09
22,844,864
12,215
2,869
Apache-2.0
2023-09-14T15:20:48
2014-08-11T15:51:42
Python
UTF-8
Python
false
false
41,588
py
test_room_summary.py
# Copyright 2021 The Matrix.org Foundation C.I.C. # # 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 la...
f36d2897b708c270a81b3c014505acc8ec4086e3
bbfd441168758ed5fd9801c8330698e2ca3bbaeb
/tf-2-word-embeddings/code/train.py
ee91ee6ddb2e238fb63e323e61e2c96ddd56075a
[ "Apache-2.0" ]
permissive
aws-samples/amazon-sagemaker-script-mode
66d5041bb35e55eea4efe511c83cd21d4add58db
54be9ca995bf33d87ccfede258f1c639e07c19fc
refs/heads/master
2023-08-03T08:49:36.256492
2022-03-09T00:18:07
2022-03-09T00:18:07
169,129,147
168
103
Apache-2.0
2023-07-21T04:47:36
2019-02-04T18:45:15
Jupyter Notebook
UTF-8
Python
false
false
2,531
py
train.py
import argparse import os import sys import numpy as np import tensorflow as tf from model_def import get_model def parse_args(): parser = argparse.ArgumentParser() # hyperparameters sent by the client are passed as command-line arguments to the script parser.add_argument('--epochs', type=int, defa...
18a583917095d5707c20c5f9b4364715849248b7
f4ceb49e5c7ff44964364a24838cb8049a9e82b1
/pangres/tests/test_core.py
5b536d5a97ced6ea4b0da14c4a59fb78c3f7344d
[ "Unlicense" ]
permissive
ThibTrip/pangres
b71eea437b3d5fd38bd8d6c837f1fc14d68d3552
d78296ef6320b89372706fb98251e09ae914f0f7
refs/heads/master
2023-09-01T08:26:25.080628
2023-04-07T19:53:18
2023-04-07T19:53:18
237,447,411
204
16
Unlicense
2023-08-22T21:30:10
2020-01-31T14:33:02
Python
UTF-8
Python
false
false
17,697
py
test_core.py
#!/usr/bin/env python # coding: utf-8 # + """ End to end test similar to the scenario proposed in the docstring of `pangres.upsert_or_aupsert`. We will create a table and then insert with update and then ignore for the `ON CONFLICT` clause. """ import pandas as pd import pytest from sqlalchemy import create_engine, VA...
e844956af17a1460b381deea397832b2e54e1ba1
35d3be219fef064e3049e5d3d3fb73b1928cd837
/bitcoinetl/mappers/join_split_mapper.py
09f29e304e4c2da425471c23f8fc5c6312c44a18
[ "MIT" ]
permissive
blockchain-etl/bitcoin-etl
118f51c9a4b2d09e0bd8a756395e5a3ce811bd26
b868c93cd030c086cbd469f71bfd94799094cbf6
refs/heads/master
2023-08-31T04:19:25.324900
2022-04-23T19:27:54
2022-04-23T19:27:54
148,597,387
365
123
MIT
2023-08-17T05:09:49
2018-09-13T07:13:25
Python
UTF-8
Python
false
false
1,900
py
join_split_mapper.py
# MIT License # # Copyright (c) 2018 Evgeny Medvedev, evge.medvedev@gmail.com # # 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 # ...
cc8fd2d0401d0341ecc2e3ee5ab1f6fe79c063cc
f66ac77663f2067a05c419f27dbd18e11e05be11
/packages/augur-core/tests/libraries/token/test_erc20_proxy.py
b433a6ba37e79f2cb4d58ec76ba541c4fb08a2a5
[ "MIT", "GPL-3.0-or-later", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-only" ]
permissive
AugurProject/augur
a31f0be384be894f933c901ad737b04ea2713c74
bd13a797016b373834e9414096c6086f35aa628f
refs/heads/dev
2023-09-01T23:17:45.887550
2021-11-05T17:40:24
2021-11-05T17:40:24
142,967,010
476
199
MIT
2023-07-23T15:15:30
2018-07-31T05:37:46
TypeScript
UTF-8
Python
false
false
6,004
py
test_erc20_proxy.py
#!/usr/bin/env python from eth_tester.exceptions import TransactionFailed from pytest import fixture, raises from utils import AssertLog, stringToBytes, BuyWithCash INVALID = 0 NO = 1 YES = 2 NULL_ADDRESS = "0x0000000000000000000000000000000000000000" @fixture(scope='session') def testerSnapshot(sessionFixture): ...
ee9812508022d4e95fcbd5c8e3e3ef5cb8758730
c7c1830f23d99806c3532b9a929c08ca0736ad58
/chaospy/distributions/sampler/sequences/grid.py
1cc9214bdc687279f974c185bb27b250f02b1d7c
[ "MIT" ]
permissive
jonathf/chaospy
8a92df59fd83e39bb64921586e7971c03791eea4
b5959a24e0bd9b214c292485919d7ce58795f5dc
refs/heads/master
2023-08-15T16:04:55.764743
2023-06-03T11:35:53
2023-06-03T11:35:53
22,848,758
405
87
MIT
2023-05-18T11:52:46
2014-08-11T17:54:25
Python
UTF-8
Python
false
false
2,200
py
grid.py
""" Generate samples from a regular grid. Example usage ------------- Basic usage:: >>> distribution = chaospy.Uniform(0, 1) >>> samples = distribution.sample(2, rule="grid") >>> samples.round(4) array([0.3333, 0.6667]) >>> samples = distribution.sample(5, rule="grid") >>> samples.round(4) ...
38b2a1de2c2ec5ed1f31f2406b8554c3bb84152e
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/refactoring/makeFunctionTopLevel/methodAttributeWrites.py
a78728affba8cd4b6eee15bae54003ce5016e32d
[ "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
113
py
methodAttributeWrites.py
class C: def __init__(self): self.attr = True def me<caret>thod(self): self.attr = False
ad4024ee2bb90503e935c7ec0deac0ac225c0cf3
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/security/azure-mgmt-security/azure/mgmt/security/v2022_07_01_preview/models/_security_center_enums.py
b9e3ba7c5cc09a9d5783af9f495a02740a264d8f
[ "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
1,508
py
_security_center_enums.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 ...
a4bfb3d3225f0fdc3b5e3696443a11e9603c3257
6037f170d11a1a18bf61b55fa1cc5bc202c4f4f7
/python/examples/debug_info.py
4f4328d3de518e6f031f8893e51ceade2acf2509
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla" ]
permissive
Vector35/binaryninja-api
70da17c1f421f3911868e87250a10399e2df55d9
3c4cf9b06f81e6a2f614ce373a72fa68e6e1a4c0
refs/heads/dev
2023-09-05T01:12:32.981951
2023-09-02T05:46:31
2023-09-02T12:45:26
45,279,022
786
221
MIT
2023-09-08T19:00:06
2015-10-30T22:07:25
C++
UTF-8
Python
false
false
10,115
py
debug_info.py
#!/usr/bin/env python3 # If you're here, you're likely looking for boilerplate code. Here it is: # ``` # import binaryninja as bn # # def is_valid(bv: bn.binaryview.BinaryView): # return bv.view_type == "Raw" # # def parse_info(debug_info: bn.debuginfo.DebugInfo, bv: bn.binaryview.BinaryView): # debug_info.add_ty...
99ca5d12bc0b9c22ea2766b1475a491dfdc50e33
38e5c18fdb3da2fd51d6ffcdbd30fca1f4197220
/events/migrations/0016_make_searchable_uri_unique.py
9cce58c7fc584406c0e67d539a6ed2b7adddaefc
[ "BSD-2-Clause" ]
permissive
GetTogetherComm/GetTogether
3472c00e94c25930bb5f854bdf5ddf6f0b25fe70
6708944bbcecb6d3d1467b096b2d72e991583d51
refs/heads/master
2023-08-20T17:57:30.082021
2022-04-18T22:22:54
2022-04-18T22:22:54
115,438,321
462
106
BSD-2-Clause
2023-02-15T18:23:18
2017-12-26T16:34:28
Python
UTF-8
Python
false
false
537
py
0016_make_searchable_uri_unique.py
# Generated by Django 2.0 on 2018-03-11 06:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("events", "0015_populate_searchable_uri")] operations = [ migrations.AlterField( model_name="searchable", name="event_uri", ...
da19ea4ea943d10c0be675d3e2704854cf16ebf9
0aa0c78a6fcea85cf0ccc19c9b5eed25b1f71e18
/storm_analysis/jupyter_examples/psf_images.py
54af61fa714b69dc547a37f2e1ba6e8b852defc1
[]
no_license
ZhuangLab/storm-analysis
5f61c3cb63d140fed43e64b1db0865dc0cfb2f62
26e4f8038180c3cf29909ed126daa9046f7cd8fc
refs/heads/master
2023-05-02T22:35:39.392231
2023-04-22T17:55:35
2023-04-22T17:55:35
9,655,861
102
81
null
2020-05-28T17:47:43
2013-04-24T19:25:56
Python
UTF-8
Python
false
false
1,867
py
psf_images.py
#!/usr/bin/env python """ Make pictures of a PSF. Hazen 04/18 """ import pickle import matplotlib import matplotlib.pyplot as pyplot def psfImages(psf_filename, verbose = True, sx = 12, sy = 4): with open(psf_filename, 'rb') as fp: psf_data = pickle.load(fp) psf = psf_data["psf"] if...
9a695e0cb3035e5118c203094a32fd439ec4ca74
6186a3787d1e74f1866844491da48b9643c8f1a9
/ghostwriter/api/urls.py
8e3706f71719b986629fff09209bb274c7a550e6
[ "BSD-3-Clause" ]
permissive
GhostManager/Ghostwriter
b46b2421e5737ed0afbf49182dce9eeb5eb31936
b9eae4459ba192fbb2d4a5b66f8210d57fd7112a
refs/heads/master
2023-09-04T02:34:54.085997
2023-07-13T22:38:44
2023-07-13T22:38:44
197,269,443
1,011
197
BSD-3-Clause
2023-09-08T00:19:52
2019-07-16T21:19:43
Python
UTF-8
Python
false
false
3,083
py
urls.py
"""This contains all the URL mappings used by the API application.""" # Django Imports from django.urls import path from django.views.decorators.csrf import csrf_exempt # Ghostwriter Libraries from ghostwriter.api.views import ( ApiKeyCreate, ApiKeyRevoke, GraphqlAttachFinding, GraphqlAuthenticationWe...
416c3e8d1b4659bec94647fa643e4e8f7d0ad39b
64ab5b65afdf8d950c4b56ad2259133b95fc2fec
/zeus/api/schemas/email.py
0e626a5f4a0b05e42e1ce70628b6c1ec529b03dc
[ "Apache-2.0" ]
permissive
getsentry/zeus
3e88895443b23278fdb4c25121422ee214630512
6d4a490c19ebe406b551641a022ca08f26c21fcb
refs/heads/master
2023-09-01T14:20:11.396306
2021-04-30T17:08:33
2021-04-30T17:08:33
96,131,433
222
27
Apache-2.0
2022-06-01T03:17:16
2017-07-03T16:39:35
Python
UTF-8
Python
false
false
172
py
email.py
from marshmallow import Schema, fields class EmailSchema(Schema): id = fields.UUID(dump_only=True) email = fields.Str() verified = fields.Bool(default=False)
a540bd4b76e4aeaafb6119e294c7350721949a18
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-Cocoa/PyObjCTest/test_nsmetadata.py
42e3127e0207005c76a58d7cd4f6917ebc1d4eea
[ "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
4,061
py
test_nsmetadata.py
import Foundation from PyObjCTools.TestSupport import TestCase, min_os_level, min_sdk_level import objc class TestNSMetaData(TestCase): def testConstants(self): self.assertIsInstance( Foundation.NSMetadataQueryDidStartGatheringNotification, str ) self.assertIsInstance( ...
cf8200c126e3751d88331d3872e674c9cb831fe3
6cbc96c74dea3974dcfa296eeb692619d571873b
/scihub_eva/utils/ui_utils.py
3035c41b637e0890df53cd4a97d03c7a87bbc770
[ "LGPL-2.1-or-later", "MIT", "GPL-3.0-only", "LicenseRef-scancode-unknown-license-reference" ]
permissive
leovan/SciHubEVA
9c4fcb49d3c73b55905c0d7bb40de20130c55e35
33b89c0516f974a7c24120a570383291747342d3
refs/heads/main
2023-08-17T21:14:59.213662
2023-05-25T04:59:02
2023-05-25T04:59:02
134,055,753
980
171
MIT
2023-05-24T08:49:22
2018-05-19T11:26:48
Python
UTF-8
Python
false
false
439
py
ui_utils.py
# -*- coding: utf-8 -*- def center_window(window, parent_window): parent_window_center_x = parent_window.x() + int(parent_window.width() / 2) parent_window_center_y = parent_window.y() + int(parent_window.height() / 2) window_x = parent_window_center_x - int(window.width() / 2) window_y = parent_wind...
90c84666a9a99b2e6821b6ffa9c0306c52dbcad8
8a40a3db07eec18178c9b8757aafdb35724ff324
/src/engineio/async_drivers/gevent_uwsgi.py
7587ac155eb45f6539cd33a9976f0c4e55dba699
[ "MIT" ]
permissive
miguelgrinberg/python-engineio
52313e7fd2cd740e5a083976231c056d53c9a590
35cc5ec0a69b5274697928af4a163e0ca42e1afb
refs/heads/main
2023-08-18T05:55:37.901376
2023-08-15T18:02:04
2023-08-15T18:02:04
37,830,040
236
175
MIT
2023-09-03T15:13:49
2015-06-21T23:17:21
Python
UTF-8
Python
false
false
5,916
py
gevent_uwsgi.py
import gevent from gevent import queue from gevent.event import Event from gevent import selectors import uwsgi _websocket_available = hasattr(uwsgi, 'websocket_handshake') class Thread(gevent.Greenlet): # pragma: no cover """ This wrapper class provides gevent Greenlet interface that is compatible with ...
6b0c03686bde17fe86e5817077a736a78c4b15a1
4674b8088ffdf55905d44995f08a0792a3e4cd5c
/tests/hwsim/test_p2p_wifi_display.py
b032c4f42581b91e720ae2e1cb8ac00fe7264698
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
vanhoefm/krackattacks-scripts
41daca791638a92aa4cfa68a582e46119037560e
4b78669686f74efe664c6543b1b5b1616b22f902
refs/heads/research
2022-10-29T20:21:11.512335
2022-10-16T18:44:41
2022-10-16T18:44:41
107,408,514
2,184
577
NOASSERTION
2021-07-06T12:43:49
2017-10-18T12:58:08
C
UTF-8
Python
false
false
20,441
py
test_p2p_wifi_display.py
# Wi-Fi Display test cases # Copyright (c) 2013, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import logging logger = logging.getLogger() import time import threading import Queue import hwsim_u...
53be0c9abe39cebb7aec6e8005117dabc4ef6d87
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/lib/sqlalchemy/dialects/mysql/expression.py
c5bd0be02b0d9d7a44d42e82dba3a43af24ff137
[ "MIT" ]
permissive
sqlalchemy/sqlalchemy
9d949c67c9b5396b1f33e7ff0f3230c81babf5be
b382bff6e3464f039db0fd1f2ce1b79038675e48
refs/heads/main
2023-08-31T17:40:59.565421
2023-08-30T15:01:41
2023-08-30T15:01:41
159,271,175
8,083
1,489
MIT
2023-09-12T18:53:55
2018-11-27T03:35:03
Python
UTF-8
Python
false
false
4,066
py
expression.py
# Copyright (C) 2005-2023 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php # mypy: ignore-errors from ... import exc from ... import util from ...sql import coercions from ......
a1ac8ec13fb5f6f520a4e2520f86bd7335188886
9ce06078a5cd85910fbba882404e877359873989
/pysmt/test/smtlib/test_smtlibscript.py
2ae7c9debc2bc614ac30c74fb0eea81fde502a3f
[ "Apache-2.0" ]
permissive
pysmt/pysmt
af164bd5cb6f622e6cdf174bff5aba8bed35e583
8c79de2635936f980595f4a43ee20a7da7554844
refs/heads/master
2023-08-23T09:46:10.573341
2023-05-03T09:35:39
2023-05-03T09:35:39
27,359,780
536
150
Apache-2.0
2023-07-27T11:46:09
2014-12-01T02:52:26
Python
UTF-8
Python
false
false
11,013
py
test_smtlibscript.py
# # This file is part of pySMT. # # Copyright 2014 Andrea Micheli and Marco Gario # # 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 ...
0f103936804d37ef51767e756df9631d7fb2925b
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/third_party/blink/web_tests/external/wpt/dom/nodes/Document-createElement-namespace-tests/generate.py
20c866bee80b94d36863cbd724a7e4abfc1ff635
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
2,130
py
generate.py
#!/usr/bin/python import os import sys THIS_NAME = u"generate.py" # Note: these lists must be kept in sync with the lists in # Document-createElement-namespace.html, and this script must be run whenever # the lists are updated. (We could keep the lists in a shared JSON file, but # seems like too much effort.) FILES...
253ca8f8b8e17afb49e675429cae8e0ca2681fca
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/core/azure-core/azure/core/pipeline/policies/_sensitive_header_cleanup_policy.py
c883bb2bea0f58e04651e9c9236ce2ee366bee4a
[ "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
3,632
py
_sensitive_header_cleanup_policy.py
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""), ...
318e777de39f7becee73a1ce1889dade9a3e792f
63425f441348aa67d45dbab00a134fc604e18a4e
/python_utils/pycaffe_utils.py
9ce1d6a07fc8795f52d51f1b6194fbab5200e934
[ "MIT" ]
permissive
s-gupta/fast-rcnn
079cbc39c7ca90a342b5d91626de9db1c7dc9de9
da935a12be8078c4d8684100016f82b5a4b02afc
refs/heads/distillation
2020-04-05T10:16:55.800004
2017-03-03T00:10:55
2017-03-03T00:10:55
42,637,609
104
38
null
2017-01-13T10:16:43
2015-09-17T05:52:46
Python
UTF-8
Python
false
false
3,053
py
pycaffe_utils.py
# --------------------------------------------------------- # Copyright (c) 2015, Saurabh Gupta # # Licensed under The MIT License [see LICENSE for details] # --------------------------------------------------------- import caffe, yaml def net_surgery(net, json_file_or_dict): # Load the JSON file if isinst...
e1ecd285c75b4958abdf6e5c33c0010dc0050371
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/onedrive/columns/validation.py
1c27c739a66ee690047a47ddc8970fc05a8aacf5
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
832
py
validation.py
from office365.onedrive.columns.display_name_localization import DisplayNameLocalization from office365.runtime.client_value import ClientValue from office365.runtime.client_value_collection import ClientValueCollection class ColumnValidation(ClientValue): """Represents properties that validates column values."""...
c7f44e93a2a6c5d91ce4c533cc5d8efa3922ac24
d30855895ee0c6ddaef493039dd0e0f1298eeae6
/tests/valai_tests.py
b7f168b6dfe2df57f62ad120238a142e1931e6fc
[ "GPL-1.0-or-later", "GPL-3.0-only", "MIT" ]
permissive
Ezhil-Language-Foundation/open-tamil
f5f28463bff4400aa131b4a428e8f3e17aa63997
8ea745440f96fe587cf0959d12e990ad7923e60e
refs/heads/main
2022-12-23T13:50:19.758812
2022-12-16T21:56:02
2022-12-16T21:56:02
14,263,826
246
72
MIT
2022-09-24T17:49:10
2013-11-09T19:48:48
JavaScript
UTF-8
Python
false
false
1,605
py
valai_tests.py
# -*- coding: utf-8 -*- # (C) 2016-17 Muthiah Annamalai import codecs import os from pprint import pprint from opentamiltests import * from spell import Speller, LoadDictionary, OttruSplit, Mayangoli, ASpell from valai import solthiruthi as tamilpesu from valai import vaani CURRDIR = os.path.dirname(os.path.abspath(...
968d2c886a4babbbd9b0db61f34f4a40650ca860
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/stripe/stripe/stripe_object.pyi
6b93f44c7ac7181d28d6eee261e61b82b92f337d
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
1,913
pyi
stripe_object.pyi
import json from _typeshed import Self from typing import Any from stripe import api_requestor as api_requestor class StripeObject(dict[Any, Any]): class ReprJSONEncoder(json.JSONEncoder): def default(self, obj): ... def __init__( self, id: Any | None = ..., api_key: Any | Non...
89f1a0907ebe251861ea698c2a4c9073a836c664
426a68c76101cbaaf2b3e1d6243a4792694717a3
/extract_feats/opensmile.py
f51e98cff2ef3c053014bd11caf46ec5a8213fc5
[ "MIT" ]
permissive
Renovamen/Speech-Emotion-Recognition
7e7e42af1ffdd5d49941cd9ab2451f23bdb64eba
64e2f48be4ed0ed3fba3f85af824209f6c5c3884
refs/heads/master
2023-04-08T21:18:31.169988
2022-04-16T18:46:02
2022-04-16T18:51:32
180,302,915
710
184
MIT
2023-03-25T01:20:47
2019-04-09T06:47:32
Python
UTF-8
Python
false
false
5,505
py
opensmile.py
import os import csv import sys from typing import Tuple, Union import pandas as pd import numpy as np from sklearn.preprocessing import StandardScaler from sklearn.model_selection import train_test_split import joblib import utils # 每个特征集的特征数量 FEATURE_NUM = { 'IS09_emotion': 384, 'IS10_paraling': 1582, 'I...
c35e894b0a7f568b91481535598eb2ea50bfc95b
f241df59f8e6c13cab13ec3b5d5d9ade89c419f7
/leo/external/npyscreen/apNPSApplication.py
24000f238aa091d13e658797e102a7acf24c885e
[ "BSD-2-Clause", "BSD-3-Clause", "MIT" ]
permissive
leo-editor/leo-editor
6c6e09c1ae89cb9b1952c9f5b0c3a6c76ae9e625
a3f6c3ebda805dc40cd93123948f153a26eccee5
refs/heads/devel
2023-08-28T08:57:01.365701
2023-08-23T10:21:57
2023-08-23T10:21:57
16,728,437
1,671
219
NOASSERTION
2023-09-14T19:39:01
2014-02-11T11:14:41
Python
UTF-8
Python
false
false
1,446
py
apNPSApplication.py
#@+leo-ver=5-thin #@+node:ekr.20170428084207.3: * @file ../external/npyscreen/apNPSApplication.py #!/usr/bin/env python from leo.core import leoGlobals as g assert g #@+others #@+node:ekr.20170428084207.4: ** Declarations import curses # import locale # import _curses from . import npyssafewrapper #@+node:ekr.201704...
6dcb89e00e3105cc88125cb45f76f10c5295ba89
9f84d91a8ae3df53b07fe3267992fba00a99ac9e
/examples/super_gat.py
400d6098530639fcecc0e94edf539bf2330de5d1
[ "MIT" ]
permissive
pyg-team/pytorch_geometric
ebea601eae228f3905465b5c2349d3fb3bb5cb26
a52af694b8ce6a80811e20966fe6d08a3e7511fe
refs/heads/master
2023-08-31T04:13:40.943308
2023-08-30T12:48:42
2023-08-30T12:48:42
106,024,057
6,775
1,563
MIT
2023-09-14T17:10:18
2017-10-06T16:03:03
Python
UTF-8
Python
false
false
2,453
py
super_gat.py
import os.path as osp import time import torch import torch.nn.functional as F import torch_geometric.transforms as T from torch_geometric.datasets import Planetoid from torch_geometric.nn import SuperGATConv dataset = 'Cora' path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', dataset) dataset = Plane...
69328638e3dff03e12dd9d82f62fd0b3a2f253de
8e907b84175c08397b7ea0eea3c7aa5f90a58f28
/aligulac/simul/formats/teampl.py
4f52d984e91d73f7d806dd29dfc1c3a85467093a
[]
no_license
TheBB/aligulac
7e5c081b608278368563650307a521691211ef05
4b18637a6efb898821f15beac9947551aca2a424
refs/heads/master
2022-12-12T05:16:10.186091
2022-02-17T06:29:31
2022-04-20T11:24:29
7,734,890
212
31
null
2022-12-08T05:19:48
2013-01-21T15:38:48
Python
UTF-8
Python
false
false
2,021
py
teampl.py
from simul.formats.match import Match class Tally: def __init__(self, rounds): self.finishes = [0] * rounds self.win, self.loss = 0.0, 0.0 def __getitem__(self, key): return self.finishes[key] def __setitem__(self, key, value): self.finishes[key] = value def __len__(...
96ce201085a759607ef4cd15cf45361f7642af9c
bdf0d4d3aac186af3ad0ad6ac9f380f9a0573fba
/aries_cloudagent/core/plugin_registry.py
f286e2e4049f6e8f41c41a56c3b98fdb3a2a0d3e
[ "LicenseRef-scancode-dco-1.1", "Apache-2.0" ]
permissive
hyperledger/aries-cloudagent-python
f25d961e0717a4d703bf43df3e4b4bc8ec07b908
39cac36d8937ce84a9307ce100aaefb8bc05ec04
refs/heads/main
2023-09-01T15:37:05.353674
2023-08-31T14:13:06
2023-08-31T14:13:06
193,556,007
370
530
Apache-2.0
2023-09-14T17:59:34
2019-06-24T18:12:14
Python
UTF-8
Python
false
false
14,676
py
plugin_registry.py
"""Handle registration of plugin modules for extending functionality.""" import logging from collections import OrderedDict from types import ModuleType from typing import Sequence, Iterable from ..config.injection_context import InjectionContext from ..core.event_bus import EventBus from ..utils.classloader import C...
d502cc33eae57f42e90d698243e3b631e3ce10d4
0dbfceb20b5fdcb3410e34bd68a0e23e54d2fc7a
/omnizart/patch_cnn/inference.py
797b292fdc74dd313c352e10200d6ed10a884f79
[ "MIT" ]
permissive
Music-and-Culture-Technology-Lab/omnizart
e626e2ca2a5efa7ccc4ae85898cb8e227d8ff18a
735c7f9f913611cbf7190d1f6fdbac93b14d49f7
refs/heads/master
2023-08-08T03:24:59.082617
2023-08-04T09:34:56
2023-08-04T09:34:56
290,497,530
1,455
94
MIT
2023-08-18T16:39:42
2020-08-26T13:01:20
Python
UTF-8
Python
false
false
2,135
py
inference.py
import numpy as np def inference(pred, mapping, zzz, cenf, threshold=0.5, max_method="posterior"): """Infers pitch contour from the model prediction. Parameters ---------- pred: The predicted results of the model. mapping: 2D numpy array The original frequency and time index of pa...
11645d2419d81fe348df6c751d97d0773d4ff143
c71b7a8a9dd7bf7c9496b1df2acc1e52a2a913d0
/onadata/apps/logger/fields.py
3b9db6acba3c5460836d9f37898e2c1be97d2442
[ "BSD-2-Clause" ]
permissive
kobotoolbox/kobocat
a5c6fb6a9d3dabe71b5e3c082e4261c4475cbf7f
b8d93d4da649f323af111cf7247206554be7c8b1
refs/heads/main
2023-08-10T00:05:49.384348
2023-07-06T04:47:59
2023-07-06T04:47:59
14,497,749
101
135
BSD-2-Clause
2023-09-13T14:57:13
2013-11-18T16:16:32
Python
UTF-8
Python
false
false
2,486
py
fields.py
# coding: utf-8 from collections.abc import Callable from django.core.exceptions import FieldError from django.db import models class LazyDefaultBooleanField(models.PositiveSmallIntegerField): """ Allows specifying a default value for a new field without having to rewrite every row in the corresponding t...
5af8759b1e566379491b51de1f207aaa87f4ea3b
1cd58db96a3cdaa3162b0b73bc27c0a26393edb6
/tests/conftest.py
5b5feb5d35ae1f5cbdc44f54c28668405a8423db
[ "MIT" ]
permissive
adamchainz/patchy
6cab92e51e6b3e6b3b266df97417679f4f8d9409
fd1570db651328e199252063b32e0cc745230733
refs/heads/main
2023-08-20T00:21:40.770764
2023-08-15T08:36:26
2023-08-15T08:36:26
35,655,230
164
15
MIT
2023-09-12T05:38:50
2015-05-15T05:25:18
Python
UTF-8
Python
false
false
159
py
conftest.py
from __future__ import annotations import pytest import patchy.api @pytest.fixture(autouse=True) def clear_cache(): patchy.api._patching_cache.clear()
42f9bc2ffd1b7f71090ce3628c9e16a65e4db4b2
8cc3498e311d15c9a4394aaa341ef489b482dbe6
/test/language/expressions/python/CastUInt8ToUInt64Test.py
f87d9e7f32da635b71a147ccb03e8b2400d3e95f
[ "BSD-3-Clause" ]
permissive
ndsev/zserio
3e55c064f72e86219a6da297f116d3dbb565a9a9
c540c4a97fee4e08bfc6669a2cec0d2b8282d8f6
refs/heads/master
2023-08-24T14:56:10.750155
2023-08-11T19:36:54
2023-08-11T19:36:54
141,550,444
113
23
BSD-3-Clause
2023-08-30T11:14:47
2018-07-19T08:44:23
Java
UTF-8
Python
false
false
821
py
CastUInt8ToUInt64Test.py
import unittest from testutils import getZserioApi class CastUInt8ToUInt64Test(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "expressions.zs").cast_uint8_to_uint64 def testUInt64ValueUsingUInt8Value(self): uint8Value = 0xBA castUInt8ToUInt6...
41e4c9aa2fe12a99417781b45678e3e2df713732
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/framework/docstr/convolution.py
ee0e3d5950a97d064d148ec5b9f7f78f7f8c1fff
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
2,001
py
convolution.py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
79dc04d474e5a89c3f8aa7f52638c01cda8d87ca
51c102c55a94574f6b093afff8b023773b68561b
/model.py
f981741254e25a7689fac4cb8c5563359414de40
[]
no_license
DSKSD/RNN-for-Joint-NLU
12b2543df4cfa2ac762c592a5a882edd30a6d199
a4c07c8b9e933e57476cd790bef8826c53ef046d
refs/heads/master
2021-06-13T19:57:14.657354
2017-09-18T05:30:52
2017-09-18T05:30:52
99,791,718
215
65
null
2021-06-05T14:56:46
2017-08-09T09:41:20
Jupyter Notebook
UTF-8
Python
false
false
6,395
py
model.py
import torch import torch.nn as nn from torch.autograd import Variable import torch.optim as optim import torch.nn.functional as F USE_CUDA = torch.cuda.is_available() class Encoder(nn.Module): def __init__(self, input_size,embedding_size, hidden_size,batch_size=16 ,n_layers=1): super(Encoder, self).__ini...
cd978201d066c8562dc9b86c0a3daa7fcb38240f
2481cde6506743565dff2b405a2396daf208ab3e
/src/true_coders/migrations/0006_auto_20180204_1542.py
06e1c71c194d8f8641cdef118da3097926f53a35
[ "Apache-2.0" ]
permissive
aropan/clist
4819a3036d179595e4df8c646aff2ed593b9dad3
5c805b2af71acee97f993f19d8d4e229f7f5b411
refs/heads/master
2023-08-31T11:15:17.987776
2023-08-27T21:51:14
2023-08-27T21:52:16
187,111,853
276
35
Apache-2.0
2023-09-06T18:42:53
2019-05-16T22:57:03
Python
UTF-8
Python
false
false
541
py
0006_auto_20180204_1542.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-02-04 15:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('true_coders', '0005_auto_20180203_1628'), ] operations = [ migrations.AlterField...
0aaa74fa4246329a39b800531fbd2fdaae798494
6ffd23679939f59f0a09c9507a126ba056b239d7
/imperative/python/megengine/functional/quantized.py
79f8daa26254394b881452554cdd1a85f79246b6
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
MegEngine/MegEngine
74c1c9b6022c858962caf7f27e6f65220739999f
66b79160d35b2710c00befede0c3fd729109e474
refs/heads/master
2023-08-23T20:01:32.476848
2023-08-01T07:12:01
2023-08-11T06:04:12
248,175,118
5,697
585
Apache-2.0
2023-07-19T05:11:07
2020-03-18T08:21:58
C++
UTF-8
Python
false
false
7,560
py
quantized.py
# pylint: disable=too-many-lines from typing import Tuple, Union from ..core import _config from ..core._imperative_rt.core2 import apply from ..core.ops import builtin from ..tensor import Tensor from ..utils.tuple_function import _pair, _pair_nonzero from .debug_param import get_execution_strategy def conv_bias_ac...
eed321a37cdc78a8065e76823c2fa8dd0b1389af
c3e0a6919caf85c35239ef23084df9bbf8dd61c3
/pypeit/scripts/compare_sky.py
eabc26f2e7a9e693c790e756b3d78b766054fbd9
[ "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
2,715
py
compare_sky.py
""" Plots an extracted sky spectrum with an archived one. Probably most useful for exploring sky spectra in the blue .. include common links, assuming primary doc root is up one directory .. include:: ../include/links.rst """ from pypeit.scripts import scriptbase class CompareSky(scriptbase.ScriptBase): @clas...
60cc110357c878239c2c701a26686f64382c69a9
d2621d10d6d0aa4fcecbb11c281e3dd680b985fc
/test/pytest/test_onnx.py
dd466544eec0c7d2de14640d385ce1c1534524aa
[ "Apache-2.0" ]
permissive
pytorch/serve
7b562a4d6372e77ce28fc71a5b8d5455c6f02290
242895c6b4596c4119ec09d6139e627c5dd696b6
refs/heads/master
2023-08-31T05:24:10.950144
2023-08-31T02:49:22
2023-08-31T02:49:22
212,488,700
3,689
895
Apache-2.0
2023-09-13T22:34:31
2019-10-03T03:17:43
Java
UTF-8
Python
false
false
2,136
py
test_onnx.py
import subprocess import torch import torch.onnx class ToyModel(torch.nn.Module): def __init__(self): super(ToyModel, self).__init__() self.linear1 = torch.nn.Linear(1, 1) self.linear2 = torch.nn.Linear(1, 1) def forward(self, x): x = self.linear1(x) x = self.linear2(...
ef9c4b0f10a3c0a31d942f8c4a3c446528a181c6
307d3837d31f9e3728af2b62ca51ebf63fe6ec6b
/wlwl1011/BOJ/DP/1932.py
f95d7b8f4c5d65fc4efe8cc75b36ee22f717f5e3
[]
no_license
ellynhan/challenge100-codingtest-study
905043497d154b8a7333ca536e536d013f6e7454
bcdc6d04f13b12ba80b42e066f9d244d7c2cc698
refs/heads/master
2023-09-01T14:10:13.481013
2023-08-27T14:38:52
2023-08-27T14:38:52
401,561,230
162
176
null
2023-09-09T14:56:25
2021-08-31T03:30:36
C++
UTF-8
Python
false
false
755
py
1932.py
import sys, os, io, atexit input = lambda : sys.stdin.readline().rstrip('\r\n') stdout = io.BytesIO() sys.stdout.write = lambda s : stdout.write(s.encode("ascii")) atexit.register(lambda : os.write(1, stdout.getvalue())) N = int(input()) arr = [] for i in range(N): arr.append(list(map(int, input().split()))) # ...
4f2eeaefbab2fb07878ee10a4083c3382f16b206
fd6e382dd762c1a7c09af7c0112b9d1469f7d7e3
/tests/test_metrics.py
101aee5f6ad13ec7ba6edca6ead4af8bfe425ff1
[ "MIT" ]
permissive
salu133445/pypianoroll
304f5121abc1d2661ca74792bdd054f622e3ddc9
7bb6dba37da646e13789a083e6ec006a0424730c
refs/heads/main
2023-07-13T07:28:05.449181
2023-06-26T08:16:47
2023-06-26T08:16:47
117,360,127
126
21
MIT
2023-06-26T12:13:12
2018-01-13T16:42:39
Python
UTF-8
Python
false
false
973
py
test_metrics.py
"""Test cases for metrics.""" from math import isnan import numpy as np from pytest import fixture from pypianoroll.metrics import ( empty_beat_rate, n_pitch_classes_used, n_pitches_used, pitch_range, pitch_range_tuple, ) @fixture def pianoroll(): pianoroll = np.zeros((96, 128), np.uint8) ...
ec08dbbdceb74dffe760f5af22f09f3a0b307070
ac235a23f22be0d6f1818bb53902177f9969813a
/tests/tracer/test_single_span_sampling_rules.py
f8e37d62ca21704daa799cbe872a0ded710bff1b
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
DataDog/dd-trace-py
f09d6d48c4c69aea68f999fc8a458ade5c6150cf
1e3bd6d4edef5cda5a0831a6a7ec8e4046659d17
refs/heads/1.x
2023-09-01T20:25:26.746324
2023-09-01T18:54:37
2023-09-01T18:54:37
61,572,326
461
426
NOASSERTION
2023-09-14T20:38:57
2016-06-20T18:52:23
Python
UTF-8
Python
false
false
15,275
py
test_single_span_sampling_rules.py
import sys import pytest from ddtrace import Tracer from ddtrace.constants import SAMPLING_PRIORITY_KEY from ddtrace.constants import _SINGLE_SPAN_SAMPLING_MAX_PER_SEC from ddtrace.constants import _SINGLE_SPAN_SAMPLING_MECHANISM from ddtrace.constants import _SINGLE_SPAN_SAMPLING_RATE from ddtrace.internal.sampling ...
dd7a24b40392a3e6aa4d64ed75d48b3dad0ad0b2
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/exceptions/test_tensor_index.py
0b7ab40f938b38f7eed961b3c7611e3b12e1e081
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
2,563
py
test_tensor_index.py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
fc139e5758a9e750d0080da87a57f080c535a521
160f08e768d7271f9522ad2597ac4ee79c04477a
/src/c3nav/mapdata/render/geometry/altitudearea.py
f7ffc65a73da4dfbcb0939bcbd5b54e6b9cf2382
[ "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
4,722
py
altitudearea.py
from collections import deque from itertools import chain import numpy as np from c3nav.mapdata.models import AltitudeArea from c3nav.mapdata.render.geometry.hybrid import HybridGeometry class AltitudeAreaGeometries: def __init__(self, altitudearea=None, colors=None, obstacles=None): if altitudearea is ...
78e8b4d8970e00cd492a094bd691a55dc0f17058
2617bfec230858814b32795c6a47249c54a15cac
/cupy_alias/creation/__init__.py
5ba6c2b08f0b4fc37989c1b9581142e0b4e9f4c2
[ "MIT", "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fixstars/clpy
a06a1281887470d8faee3ec204b56fbef2496fab
693485f85397cc110fa45803c36c30c24c297df0
refs/heads/clpy
2021-06-10T04:00:30.974447
2021-02-28T06:01:26
2021-02-28T06:01:26
136,439,592
154
20
NOASSERTION
2021-04-07T02:41:03
2018-06-07T07:33:04
Python
UTF-8
Python
false
false
36
py
__init__.py
from clpy.creation import * # NOQA
76ba6e7f7e9d5af60559ce31b0ed02848a83d206
a223de4de3e21f30771d6a67db61b99c0f3b4685
/.github/scripts/util.py
b4dc8d79803b51cead0e2f286ddfc20bf4bbff6a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
juicedata/juicefs-csi-driver
de40eea4cadcec7a2b6e4c483fba2ed935bbfafe
4dedd3f04502d2d92b237d0d11aa1a4dfb181571
refs/heads/master
2023-09-02T23:18:42.777570
2023-09-01T06:46:01
2023-09-01T06:46:01
196,400,330
158
67
Apache-2.0
2023-09-12T06:19:11
2019-07-11T13:28:51
Go
UTF-8
Python
false
false
11,012
py
util.py
# Copyright 2022 Juicedata Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
0f52d7163160a50cc8e57f8e6ab24b8c4f7be287
d110546d747d7e3865ce5742d5fca09f404623c0
/pkg/tests/integration/test_salt_key.py
87275a677fa1a7ea31f6e03e5d4f939d7fb0937b
[ "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
260
py
test_salt_key.py
import pytest pytestmark = [ pytest.mark.skip_on_windows, ] def test_salt_key(salt_key_cli, salt_minion): """ Test running salt-key -L """ ret = salt_key_cli.run("-L") assert ret.data assert salt_minion.id in ret.data["minions"]
f40333e5b3c6d82b93ce42f80449eb34d4f281d6
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/networkx/generators/tests/test_random_graphs.py
4263cebc8e565dcaa818cf2ec267807c79b76488
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
10,602
py
test_random_graphs.py
# -*- encoding: utf-8 -*- # test_random_graphs.py - unit tests for random graph generators # # Copyright 2010-2019 NetworkX developers. # # This file is part of NetworkX. # # NetworkX is distributed under a BSD license; see LICENSE.txt for more # information. """Unit tests for the :mod:`networkx.generators.random_graph...
ce5f105d8fdc1b90bf7fe24858628d413ffc4c1a
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/pytorch/source/torch/distributions/lowrank_multivariate_normal.py
019ac62f3bfcf3e466e66394574e12888e2abb32
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
10,135
py
lowrank_multivariate_normal.py
import math import torch from torch.distributions import constraints from torch.distributions.distribution import Distribution from torch.distributions.multivariate_normal import (_batch_diag, _batch_mahalanobis, _batch_mv, _batch_trtrs_lower) from torch.distributio...
5143c501ff6f5c24b7c00f590ce24fea7f957920
36977d5aba5592ec4ee2090d16958f90df11997d
/tests/multivariate/secret_key_agreement/test_necessary_intrinsic_mutual_information.py
9dd8082c6d0a12349bc16e246d70cb68062962a4
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
dit/dit
8589f969973b204fed828d1f8133f8c30de2cb6b
b13c5020a2b8524527a4a0db5a81d8549142228c
refs/heads/master
2023-08-31T03:58:57.651496
2023-08-30T21:55:54
2023-08-30T21:55:54
13,201,610
468
95
BSD-3-Clause
2023-08-29T03:54:31
2013-09-29T23:03:51
Python
UTF-8
Python
false
false
531
py
test_necessary_intrinsic_mutual_information.py
""" Tests for dit.multivariate.secret_key_agreement.skar_lower_bounds """ import pytest from dit.example_dists.intrinsic import * from dit.multivariate import necessary_intrinsic_mutual_information @pytest.mark.flaky(reruns=5) @pytest.mark.parametrize('dist', [intrinsic_1, intrinsic_2, intrinsic_3]) def test_nimi_1...
582ca1b4b3cb80be2fb5257e91f40704538409a7
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/govern/data-meta/amundsen/databuilder/tests/unit/rest_api/mode_analytics/test_mode_paginated_rest_api_query.py
c0f9d863a374c9a0e501484e118a6194bd03d903
[ "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
4,085
py
test_mode_paginated_rest_api_query.py
# Copyright Contributors to the Amundsen project. # SPDX-License-Identifier: Apache-2.0 import logging import unittest from mock import call, patch from databuilder.rest_api.base_rest_api_query import RestApiQuerySeed from databuilder.rest_api.mode_analytics.mode_paginated_rest_api_query import ModePaginatedRestApiQ...
4fa2c4ef59f2038f8b663b836223547c6aa094c4
fa1ad2e2ac7e376fc7cb3b3a6e1bb88eed3e80be
/ai/modelscope/modelscope/trainers/hooks/lr_scheduler_hook.py
ed018fefde4603f7ca902c8af72261e4ef2651fd
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
alldatacenter/alldata
7bc7713c9f1d56ad6b8e59ea03206d1073b7e047
8d5f9a2d49ab8f9e85ccf058cb02c2fda287afc6
refs/heads/master
2023-08-05T07:32:25.442740
2023-08-03T13:17:24
2023-08-03T13:17:24
213,321,771
774
250
Apache-2.0
2023-09-06T17:35:32
2019-10-07T07:36:18
null
UTF-8
Python
false
false
4,754
py
lr_scheduler_hook.py
# Copyright (c) Alibaba, Inc. and its affiliates. from modelscope.metainfo import Hooks from modelscope.trainers.lrscheduler.builder import build_lr_scheduler from modelscope.utils.constant import LogKeys from modelscope.utils.logger import get_logger from modelscope.utils.torch_utils import is_master from .builder imp...
5b3b5cb1f1d9fb26329b6617318710375627b850
38c290c804501eff492f1fa7ee8abb00b46c70ef
/runtime/stdlib/ffi/bitmask.py
4f41ab6ec7b5bae09e988cae15e7250a243057de
[ "MIT" ]
permissive
cheery/lever
8a9524387bf3bc511889fa9a48f89927fd0b78f2
6fa8cd6afec440b32232f87236b0457fb8bfb8b1
refs/heads/master
2021-01-25T22:09:13.829448
2018-05-14T00:09:17
2018-05-14T00:09:17
45,874,533
144
13
null
2017-10-27T03:04:05
2015-11-09T23:40:43
Python
UTF-8
Python
false
false
4,778
py
bitmask.py
from simple import Type from space import * class Bitmask(Type): #__slots__ = ["basetype", "parametric", "size", "align", "constants", "multichoice"] #__attrs__ = ["basetype", "parametric", "size", "align", "constants", "multichoice"] def __init__(self, basetype, constants, multichoice): assert isi...
6b6b3eac3d5cc0616991dd7ba2a266795ac1bdb1
4d28185e7a78a569f9a449f39f183cac3024f711
/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py
dc7635289edbd0f0eccfed7198f3a252010ac6b2
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
apple/swift-lldb
2789bf44f648609a1674ee520ac20b64c95de072
d74be846ef3e62de946df343e8c234bde93a8912
refs/heads/stable
2023-04-06T00:28:15.882479
2019-10-25T22:46:59
2019-10-25T22:46:59
44,838,862
780
291
Apache-2.0
2020-01-10T19:28:43
2015-10-23T21:13:18
C++
UTF-8
Python
false
false
17,699
py
TestVSCode_launch.py
""" Test lldb-vscode setBreakpoints request """ from __future__ import print_function import unittest2 import vscode from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil import lldbvscode_testcase import os class TestVSCode_launch(lldbvscode_testcase.VSCo...
fae1bf9aae479db1b1506958fb78b3d7218413b0
e849872aed557595cec6ade1180e5f8bbbc29e27
/nilearn/_utils/path_finding.py
771758d35364c14dbcd75b068ac30335eda85431
[ "BSD-3-Clause" ]
permissive
nilearn/nilearn
a071fe00af7d0c605f3030d38588ccfd00cdcb13
f0852e127b620a64af0a1ce02282106ce6f068ba
refs/heads/main
2023-08-31T02:21:22.794164
2023-08-31T01:44:59
2023-08-31T01:44:59
1,235,740
1,049
590
NOASSERTION
2023-09-14T21:33:17
2011-01-09T19:02:23
Python
UTF-8
Python
false
false
441
py
path_finding.py
"""Path finding utilities.""" import glob import os.path from .helpers import stringify_path def _resolve_globbing(path): path = stringify_path(path) if isinstance(path, str): path_list = sorted(glob.glob(os.path.expanduser(path))) # Raise an error in case the list is empty. if len(pa...
2dad1855bc65c003007720aae0b111f0779e8fa8
f8d239baf08742caaafe9c8aac188e8d380450f4
/python/core/ltp_core/models/utils/transformer.py
8c5be9d9bdf27b61b2518f5292565f7cc7d12ef7
[]
no_license
HIT-SCIR/ltp
3bef92308b7325d8b793438ac2f1591b8b552c2e
2aeeeec80d8d882f3a81d3e4e47286b92b44f129
refs/heads/main
2023-08-08T13:00:21.405340
2023-07-05T03:23:56
2023-07-05T03:23:56
1,832,321
4,661
1,087
null
2023-09-12T06:39:55
2011-06-01T15:10:15
Python
UTF-8
Python
false
false
168
py
transformer.py
def load_transformers(config): from transformers import AutoConfig, AutoModel config = AutoConfig.for_model(**config) return AutoModel.from_config(config)
9b8f3da5407ab9f656a9b9d37f9da845ac8c2c4d
2e6b87dccfaf95eded0c26215f42b584cc0ce393
/tina/voxl/scale.py
d256b1b1d6e29570855325448287567cf4a44623
[ "MIT" ]
permissive
taichi-dev/taichi_three
2d3c4022436777bbd6005a38f8cc27cd1f442430
62596cf36fba1c5a528796c51942ce44ed76292a
refs/heads/master
2023-06-20T19:59:09.218689
2021-07-10T09:32:09
2021-07-10T09:32:09
272,924,688
204
30
MIT
2021-07-10T09:32:10
2020-06-17T08:52:31
Python
UTF-8
Python
false
false
475
py
scale.py
from ..common import * from .base import VoxlEditBase class VolumeScale(VoxlEditBase): def __init__(self, voxl, scale=1): super().__init__(voxl) self.scale = ti.field(float, ()) @ti.materialize_callback def init_scale(): self.scale[None] = scale def set_scale(sel...
869a89ddc9a57399c1b293ab5d5bead97df6a922
a4d57ad8975f30bff8c324ad35eaec6c352fecd5
/tests/test_jinja_filters.py
9b716d01182156c80c75b83294818ddb481b1dba
[ "Apache-2.0" ]
permissive
aio-libs/aiohttp-jinja2
4dab9dd456fc77f19cf54bb743aaa7f52b861e0e
8d2f554f5429d8a6db23385983fe8899c79aa1b0
refs/heads/master
2023-08-17T00:08:32.475589
2023-08-11T13:32:13
2023-08-11T13:32:13
28,298,614
197
59
Apache-2.0
2023-09-14T02:13:34
2014-12-21T12:17:21
Python
UTF-8
Python
false
false
623
py
test_jinja_filters.py
import jinja2 from aiohttp import web import aiohttp_jinja2 async def test_jinja_filters(aiohttp_client): @aiohttp_jinja2.template("tmpl.jinja2") async def index(request): return {} def add_2(value): return value + 2 app = web.Application() aiohttp_jinja2.setup( app, ...
38486fd23a06c733bbb63b74fbb90bf23b8f3405
48ee50316a950d9bc789ae843477b58b2913bf0d
/src/app/test/api/http/unit/handlers/v1/token_test.py
a609922189ac6e79caf4a7218b8f1bd82775d85e
[ "MIT" ]
permissive
beer-garden/beer-garden
f6d1c305a261b59d3cb3389513fc3138004a8d07
a5fd2dcc2444409e243d3fdaa43d86695e5cb142
refs/heads/develop
2023-08-15T11:50:29.833953
2023-07-20T03:20:45
2023-07-20T03:20:45
120,045,001
254
38
MIT
2023-07-20T03:20:47
2018-02-03T00:13:29
Python
UTF-8
Python
false
false
7,856
py
token_test.py
# -*- coding: utf-8 -*- import json from datetime import datetime, timedelta, timezone import jwt import pytest from tornado.httpclient import HTTPError from beer_garden.api.http.authentication import issue_token_pair from beer_garden.db.mongo.models import User, UserToken @pytest.fixture def user_password(): y...
9fd509ca6dbac4afdd5e96d7dc88fae56785e85c
8e9db280e102f3c4c0d23be3848261aeb451fbde
/tilecloud/filter/optipng.py
eee770f637791e8f948c42908c98d5f0ae656009
[ "BSD-2-Clause" ]
permissive
camptocamp/tilecloud
8678a291550253325974b98dbef4b3f09fc2a779
0bd8e53d74ad2bd7a7a7aa14795e194cef5dd19f
refs/heads/master
2023-09-01T16:54:55.755088
2023-08-29T13:35:15
2023-08-29T13:35:15
2,954,583
145
18
BSD-2-Clause
2023-09-04T15:46:24
2011-12-10T18:21:01
Python
UTF-8
Python
false
false
861
py
optipng.py
import os from subprocess import call # nosec from tempfile import NamedTemporaryFile from tilecloud import Tile class OptiPNG: def __init__(self, options: list[str], arg0: str = "/usr/bin/optipng"): self.args = [arg0, "-q"] + list(options) def __call__(self, tile: Tile) -> Tile: with Named...
4f6cbb6ad956fa484217dc3484e327e375788a20
04282600d7a0860bc4cf5a54684a48464690be29
/pddlgym/downward_translate/greedy_join.py
d8919eaaddbe8c9629eefe442c146274e73e48b9
[ "MIT" ]
permissive
tomsilver/pddlgym
1acf2b530a1a524939179cf1ed7505a529685792
ea2945d5c26b950325b05360801a69177f666174
refs/heads/master
2023-05-24T13:52:58.352216
2023-05-23T23:52:39
2023-05-23T23:52:39
227,614,241
148
47
MIT
2023-05-23T23:52:40
2019-12-12T13:32:29
PDDL
UTF-8
Python
false
false
4,361
py
greedy_join.py
import sys from . import pddl from . import pddl_to_prolog class OccurrencesTracker: """Keeps track of the number of times each variable appears in a list of symbolic atoms.""" def __init__(self, rule): self.occurrences = {} self.update(rule.effect, +1) for cond in rule.conditions:...
44bd27c8d0bc64a5e4f4f566bc4c59b13f6a00b4
5f1fafe92ff5d704c4da4c1b2204a94099eb2d7a
/bot_test.py
b2d8b729570bc6dd86da39b2d20de264d2b8c53e
[ "MIT" ]
permissive
soxoj/telegram-bot-dumper
41204bdd0709afe7459a99fe7a7a37bc55de26a5
bfaf1c22ab0db6d514a00846d7bb4349a6963418
refs/heads/master
2023-08-17T01:37:53.791928
2022-04-24T15:13:12
2022-04-24T15:13:12
189,640,323
108
25
MIT
2023-04-14T15:10:05
2019-05-31T18:27:17
Python
UTF-8
Python
false
false
2,145
py
bot_test.py
import json import shutil import os import pytest from telethon.sync import TelegramClient from dumper import * bot = None @pytest.mark.asyncio async def test_dumper(): global bot if os.path.exists('5080069482'): shutil.rmtree('5080069482') bot = await bot_auth(os.getenv('TEST_TOKEN')) as...
ab7931b837cb0e5e04996066c35e54018848fce6
b2fef77e77f77b6cfd83da4ec2f89cbe73330844
/tests/test_rand_elastic_3d.py
0ff3ef6129516e932c9f7b8b0c0fa62b4ae05aec
[ "Apache-2.0" ]
permissive
Project-MONAI/MONAI
8ef2593cc5fd1cd16e13464f927fe563fe3f5bac
e48c3e2c741fa3fc705c4425d17ac4a5afac6c47
refs/heads/dev
2023-09-02T00:21:04.532596
2023-09-01T06:46:45
2023-09-01T06:46:45
214,485,001
4,805
996
Apache-2.0
2023-09-14T15:19:30
2019-10-11T16:41:38
Python
UTF-8
Python
false
false
3,762
py
test_rand_elastic_3d.py
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
4d9957576ad1ac1ab60d339e2d2eb179dc20a7ad
c364fdae67ad5298d03d14d442ef890233c45724
/pymel/tools/mel2py/__init__.py
b9691fa71c6a7a06e1454275ad3f9b274b07ffa1
[ "BSD-3-Clause" ]
permissive
LumaPictures/pymel
952b376b1bf4d2cc99c3f99c6c6b4dbc35edd065
5fbe189fc0e0e1fdf056be2dd2ae63d26ca33ed5
refs/heads/master
2023-08-30T01:17:01.855520
2023-04-12T15:48:35
2023-04-12T15:48:35
404,345
388
128
NOASSERTION
2023-09-02T00:00:17
2009-12-07T19:53:19
Python
UTF-8
Python
false
false
22,173
py
__init__.py
""" Convert mel code into python code. ========================== Mel To Python Translator ========================== Known Limitations ================= array index assignment ---------------------- In mel, you can directly assign the value of any element in an array, and all intermediate elements will be automa...
e6a18bb9ea61ae2c0319be20957e63ded2e7b665
6f509fd95f182099f5447b6e597a03eedb9bb408
/setup.py
24abab1f559a890d6f6e6268e39a08dd050bfde5
[ "MIT" ]
permissive
trek10inc/awsume
596e15aa74f0e896430bb6e383ac12e87ae62aa7
c9062cb6bd0d3067ba61558c445a92db0fde6e3a
refs/heads/master
2023-08-23T20:43:39.104563
2023-08-18T20:24:45
2023-08-18T20:24:45
55,160,220
790
105
MIT
2023-09-12T20:58:04
2016-03-31T15:12:15
Python
UTF-8
Python
false
false
1,315
py
setup.py
import fastentrypoints from setuptools import setup, find_packages import awsume from awsume.configure.post_install import CustomInstall setup( name=awsume.__NAME__, packages=find_packages(), version=awsume.__VERSION__, author=awsume.__AUTHOR__, author_email=awsume.__AUTHOR_EMAIL__, descriptio...
030f561c89bd3b9ab027a5bb6fded99f74cc9b0a
572afc77a246acb9483b47fc9e1839f47005d736
/python/federatedml/nn/backend/utils/deepspeed_util.py
8cadcfb89417fce80eac6bccd6bf8b2632fdda93
[ "Apache-2.0" ]
permissive
FederatedAI/FATE
7c787c308cca9ff46f287d24569c68de0a1cac07
8767db5ec0cb93784f64b290bc39b7b545c530fb
refs/heads/master
2023-08-17T10:13:00.302529
2023-06-14T07:01:38
2023-06-14T07:01:38
167,349,656
4,942
1,571
Apache-2.0
2023-09-14T07:02:29
2019-01-24T10:32:43
Python
UTF-8
Python
false
false
1,695
py
deepspeed_util.py
# # Copyright 2019 The FATE Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
a313b0b68b9302588356f550d6050194d459ce36
bb71b5b3ef0e6eb5cfd27e943e206f40cd0aeb90
/azurelinuxagent/common/cgroupapi.py
ca0ef3bb5b2e2781795679080aec684081aae90a
[ "Apache-2.0" ]
permissive
Azure/WALinuxAgent
c35af1df7b52e3e9621757fe7992f3fa4c7c8c49
28345a55f9b21dae89472111635fd6e41809d958
refs/heads/master
2023-08-24T22:08:56.646723
2023-07-27T00:44:46
2023-07-27T00:44:46
4,576,639
473
436
Apache-2.0
2023-09-14T20:11:34
2012-06-06T18:55:55
Python
UTF-8
Python
false
false
16,950
py
cgroupapi.py
# -*- coding: utf-8 -*- # Copyright 2018 Microsoft 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 applic...
20ec5234f8ec1d2996516aca08befe39d53bd5d0
2fe9ec7915276be05ecf8710a63c6e1b5e79730a
/projects/vna/client/vna.py
401f8b2162da636e2cb7871d8297bfa800d4674c
[ "MIT" ]
permissive
pavel-demin/red-pitaya-notes
bd3829ea730d80d34e3dd62a86bbb811ce207190
effa44a5c3cc1b4198c6bd32479b2fd791d3358d
refs/heads/master
2023-08-31T05:03:49.738847
2023-08-30T23:28:08
2023-08-30T23:28:08
28,404,370
308
206
MIT
2023-06-25T15:54:24
2014-12-23T15:15:00
C
UTF-8
Python
false
false
37,648
py
vna.py
#!/usr/bin/env python3 import sys import struct import warnings from functools import partial import numpy as np import matplotlib from matplotlib.figure import Figure from matplotlib.ticker import Formatter, FuncFormatter from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matpl...
643e2a7ad6800a373d5f3ee4ed8deb5b9ed830bd
b728c792b5171f6be6ad91919b4a76a6f198b3e9
/src/lib/python/bundy/cc/__init__.py
089c914491d8de1c64ceef30b018117407407fb5
[ "LicenseRef-scancode-unknown-license-reference", "ISC", "BSL-1.0" ]
permissive
bundy-dns/bundy
c8beeca2c051924590794c92a3a58d1980a86024
3d41934996b82b0cd2fe22dd74d2abc1daba835d
refs/heads/master
2021-09-28T16:24:39.037808
2021-09-22T06:04:17
2021-09-22T06:04:17
19,160,469
110
33
NOASSERTION
2021-09-22T06:04:18
2014-04-25T20:54:37
C++
UTF-8
Python
false
false
55
py
__init__.py
import bundy.cc.message from bundy.cc.session import *
1f2be47b7696ebf704fb300c561767ae4a0187f6
67ae6daab10dbefa937a97b542a97569d95fe271
/7kyuKatas/Are_the_numbers_in_order.py
6941ffc458dd965b59b673b2098d5e06c7182d89
[]
no_license
hevalhazalkurt/codewars_python_solutions
915536ec857157f21d47ee96c2e01eabad2f4ed7
abdb2e63edfe2c70be5df4d56036da73d4a32367
refs/heads/master
2023-06-07T05:06:08.014121
2023-04-08T09:37:02
2023-04-08T09:37:02
237,953,546
167
134
null
2022-08-27T09:04:49
2020-02-03T11:52:04
Python
UTF-8
Python
false
false
54
py
Are_the_numbers_in_order.py
def in_asc_order(arr): return arr == sorted(arr)
1ed311cb8d2521df3dcc1f928c903c2b2ea4dd64
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/citybikes/sensor.py
fcd780dba7d7d609c8b98dc44f5c5984f060453a
[ "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
10,382
py
sensor.py
"""Sensor for the CityBikes data.""" from __future__ import annotations import asyncio from datetime import timedelta import logging import aiohttp import voluptuous as vol from homeassistant.components.sensor import ( ENTITY_ID_FORMAT, PLATFORM_SCHEMA, SensorEntity, ) from homeassistant.const import ( ...
d5a1260965ef6734f49c8c0727cd743756ef2857
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/sfr_box/button.py
c9418bcc2e9c4e0d8fdafad53ca0c389294eaa89
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
3,205
py
button.py
"""SFR Box button platform.""" from __future__ import annotations from collections.abc import Awaitable, Callable, Coroutine from dataclasses import dataclass from functools import wraps from typing import Any, Concatenate, ParamSpec, TypeVar from sfrbox_api.bridge import SFRBox from sfrbox_api.exceptions import SFRB...
f1dca34fbe381fd1ccbc1a32cedcefa547a47274
ed7e61c8eef7fb2213adeb67557d605470c17fb3
/medium/property-based-testing/is_mail.py
1c74fa82e1d68fc33153597bf7b53112e462d622
[]
no_license
MartinThoma/algorithms
535840224323822f2ea6b7dd6f82a0fdd22a0ff9
a251e9599b685dbf89c891f02d20fefd8538ead5
refs/heads/master
2023-02-23T17:58:10.913634
2023-02-21T05:58:59
2023-02-21T05:58:59
4,939,076
241
126
null
2023-02-16T05:16:23
2012-07-07T16:07:23
Python
UTF-8
Python
false
false
342
py
is_mail.py
from email.utils import parseaddr def is_email(potential_email_address: str) -> bool: context, mail = parseaddr(potential_email_address) first_condition = len(context) == 0 dot_after_at = ( "@" in potential_email_address and "." in potential_email_address.split("@")[1] ) return first_condi...
b7febfe86e2a05a49e1b05d853e774e17bfd4299
444a9480bce2035565332d4d4654244c0b5cd47b
/research/nlp/ktnet/src/reader/data_processor_seq.py
3fde15906b9018bda91bf8edb10d1df255d14781
[ "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
12,086
py
data_processor_seq.py
# Copyright 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 agreed to...
4283e3d63a4d6b414433ca8a6e4fb34793626151
1f399edf85d995443d01f66d77eca0723886d0ff
/misc/config_tools/board_inspector/acpiparser/__init__.py
d49bee3e3058c1aa5536444a371ed11cfcd90bec
[ "BSD-3-Clause" ]
permissive
projectacrn/acrn-hypervisor
f9c5864d54929a5d2fa36b5e78c08f19b46b8f98
390740aa1b1e9d62c51f8e3afa0c29e07e43fa23
refs/heads/master
2023-08-18T05:07:01.310327
2023-08-11T07:49:36
2023-08-16T13:20:27
123,983,554
1,059
686
BSD-3-Clause
2023-09-14T09:51:10
2018-03-05T21:52:25
C
UTF-8
Python
false
false
1,250
py
__init__.py
# Copyright (C) 2021-2022 Intel Corporation. # # SPDX-License-Identifier: BSD-3-Clause # import sys, os from acpiparser.apic import APIC from acpiparser.asf import ASF from acpiparser.dmar import DMAR from acpiparser.dsdt import DSDT from acpiparser.facp import FACP from acpiparser.rtct import RTCT from acpiparser.rd...
b95e39624649b265985e1619e3f6c7271cd73e07
636849fc7edd9dcb095cf3410a121ab37de69f02
/SoftLayer/fixtures/SoftLayer_Network_Message_Delivery_Email_Sendgrid.py
6a64d1be68445b9e5d155fa7dae42df57cc558dd
[ "MIT" ]
permissive
softlayer/softlayer-python
bcb09306c3367fdbd2f1407f770c4959729b074c
5798373055d9f34dfd531d81638a64d0a7901a13
refs/heads/master
2023-08-23T19:32:36.990701
2023-08-21T03:29:44
2023-08-21T03:29:44
622,291
126
182
MIT
2023-09-14T15:04:48
2010-04-21T20:36:31
Python
UTF-8
Python
false
false
1,325
py
SoftLayer_Network_Message_Delivery_Email_Sendgrid.py
getAccountOverview = { "creditsAllowed": 25000, "creditsOverage": 0, "creditsRemain": 25000, "creditsUsed": 0, "package": "Free Package", "reputation": 100, "requests": 56 } getStatistics = [{ "blocks": 0, "bounces": 0, "clicks": 0, "date": "2021-04-28", "delivered": 0, ...
976813f28ad2b0bdd538512c52ac08e6125fae55
45e2f5288afd65cd6b2213117e7df4fdc72847c1
/integration_tests/src/main/python/generate_expr_test.py
5d7779ea35ef4b4b9bfaa99780e1109687708822
[ "LicenseRef-scancode-warranty-disclaimer", "Zlib", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NVIDIA/spark-rapids
49cc2fb633f488dd48337c02b227502fcd473a12
5d5b3570eab2c8bb8d77d99613b19197b630a453
refs/heads/branch-23.10
2023-09-03T19:16:46.422726
2023-09-01T13:16:45
2023-09-01T13:16:45
264,043,501
600
212
Apache-2.0
2023-09-13T23:00:22
2020-05-14T22:56:44
Scala
UTF-8
Python
false
false
10,669
py
generate_expr_test.py
# Copyright (c) 2020-2023, NVIDIA 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 agre...
95a310f3d5e2801c4b5f9fb52214c65abf99122e
21e56f433a800c6f3c1e7b79b04f0a27ce788a51
/examples/celeryconfig.py
fd2c7a779436b76ec65e7469f903b0f9526dba02
[ "BSD-3-Clause" ]
permissive
mher/flower
01932e724d945650401c6482856f727f46d1d254
066cf497f60e1fb89b439504bd5e4e6cfec8f044
refs/heads/master
2023-09-03T10:00:03.702448
2023-07-04T14:13:43
2023-07-04T14:13:43
4,946,406
5,213
1,126
NOASSERTION
2023-09-13T01:31:53
2012-07-08T13:35:09
Python
UTF-8
Python
false
false
120
py
celeryconfig.py
broker_url = 'redis://localhost:6379/0' celery_result_backend = 'redis://localhost:6379/0' task_send_sent_event = False
450e4f1b0b9f06e4c9051d9faa888aea1d0bd114
620323fc090cebaf7aca456ff3f7fbbe1e210394
/QuickChart__examples/to_file.py
e2add1ba90d7700366204693452f820ec88ca7bd
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
246
py
to_file.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" from pathlib import Path from common import get_chart PATH = Path(__file__).resolve().absolute() FILE_NAME = Path(f"{PATH}.png") qc = get_chart() qc.to_file(FILE_NAME)
76fca89a69976b7751322a05fd17a28b451e1844
8d77f3b72dc52b85ee0c4ef6ba06f63a6920841f
/fx2ait/fx2ait/test/test_tensor_spec.py
4ab33f2184233e036b64071a55f499049588257b
[ "Apache-2.0" ]
permissive
facebookincubator/AITemplate
b643c217e1d15f7f17dab1eb1cc6855eab664b97
c60dc19788217556ba12ea378c02b9fd0aea9ffe
refs/heads/main
2023-08-28T18:22:15.828008
2023-08-28T14:43:41
2023-08-28T14:43:41
514,321,895
4,065
334
Apache-2.0
2023-09-14T04:53:57
2022-07-15T15:40:58
Python
UTF-8
Python
false
false
6,135
py
test_tensor_spec.py
# Copyright (c) Meta Platforms, Inc. and affiliates. # # 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...
973aa0202ad731f941a6c51cd5d182d3ec9618bc
069c2295076c482afadfe6351da5ae02be8e18e6
/tests/dbshell/fake_client.py
70451f302a73ad31961fa26c06b2569898d2f01a
[ "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "Python-2.0.1", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-permissive", "Python-2.0" ]
permissive
django/django
5eb557f57053631cd4f566f451e43197309dbeeb
c74a6fad5475495756a5bdb18b2cab2b68d429bc
refs/heads/main
2023-09-01T03:43:44.033530
2023-08-31T08:27:32
2023-08-31T08:27:32
4,164,482
73,530
38,187
BSD-3-Clause
2023-09-14T20:03:48
2012-04-28T02:47:18
Python
UTF-8
Python
false
false
24
py
fake_client.py
import sys sys.exit(1)